|
|
import{aa as Fi,ab as q3}from"./index-b8bd6c45.js";var Vi={exports:{}};Vi.exports;(function(pe,xe){(function(Un){const Ge=Un.zh=Un.zh||{};Ge.dictionary=Object.assign(Ge.dictionary||{},{"%0 of %1":"%0/%1",Accept:"接受","Align cell text to the bottom":"向下對齊","Align cell text to the center":"置中對齊","Align cell text to the left":"靠左對齊","Align cell text to the middle":"置中對齊","Align cell text to the right":"靠右對齊","Align cell text to the top":"向上對齊","Align table to the left":"靠左對齊","Align table to the right":"靠右對齊",Alignment:"對齊",Aquamarine:"淺綠色",Background:"背景顏色",Black:"黑色","Block quote":"段落引用",Blue:"藍色",Bold:"粗體",Border:"邊框","Break text":"上及下","Bulleted List":"符號清單","Bulleted list styles toolbar":"無序清單工具列",Cancel:"取消","Caption for image: %0":"影像標題:%0","Caption for the image":"影像的標題","Cell properties":"儲存格屬性","Center table":"置中對齊","Centered image":"置中圖片","Change image text alternative":"修改圖片的替代文字","Choose heading":"選取標題",Circle:"空心圓點",Clear:"清除","Click to edit block":"點擊來編輯區塊",Code:"代碼",Color:"文字顏色","Color picker":"顏色選擇",Column:"欄",Dashed:"虛線",Decimal:"數字","Decimal with leading zero":"0開頭的數字","Decrease indent":"減少縮排","Delete column":"刪除欄","Delete row":"刪除列","Dim grey":"淡灰色",Dimensions:"尺寸",Disc:"實心圓點",Dotted:"點線",Double:"雙線",Downloadable:"可下載","Drag to move":"拖曳來移動","Dropdown toolbar":"下拉選單","Edit block":"編輯區塊","Edit link":"編輯連結","Editor block content toolbar":"編輯器區塊內容工具列","Editor contextual toolbar":"編輯器關聯式工具列","Editor editing area: %0":"編輯器編輯區:%0","Editor toolbar":"編輯器工具","Enter image caption":"輸入圖片說明","Enter table caption":"輸入表標題","Full size image":"完整尺寸圖片",Green:"綠色",Grey:"灰色",Groove:"內凹線","Header column":"標題欄","Header row":"標題列",Heading:"標題","Heading 1":"標題 1","Heading 2":"標題 2","Heading 3":"標題 3","Heading 4":"標題 4","Heading 5":"標題 5","Heading 6":"標題 6",Height:"高度",HEX:"十六進位","Horizontal text alignment toolbar":"水平對齊","Image resize list":"圖片縮放清單","Image toolbar":"圖片工具","image widget":"圖片小工具","In line":"行中","Increase indent":"增加縮排",Insert:"插入","Insert column left":"插入左方欄","Insert column right":"插入右方欄","Insert image":"插入圖片","Insert image via URL":"使用連結插入圖片","Insert media":"插入影音","Insert paragraph after block":"在這個區塊後面插入一個段落","Insert paragraph before block":"在這個區塊前面插入一個段落","Insert row above":"插入上方列","Insert row below":"插入下方列","Insert table":"插入表格",Inset:"內邊線",Italic:"斜體","Justify cell text":"分散對齊","Left aligned image":"向左對齊圖片","Light blue":"亮藍色","Light green":"亮綠色","Light grey":"亮灰色",Link:"連結","Link image":"圖片連結","Link URL":"連結˙ URL","List properties":"清單屬性","Lower-latin":"小寫拉丁字母","Lower–roman":"小寫羅馬數字","Media toolbar":"影音工具","Media URL":"影音網址","media widget":"影音小工具","Merge cell down":"合併下方儲存格","Merge cell left":"合併左方儲存格","Merge cell right":"合併右方儲存格","Merge cell up":"合併上方儲存格","Merge cells":"合併儲存格",Next:"下一","No results found":"找不到結果","No searchable items":"沒有可搜尋的項目",None:"無","Numbered List":"有序清單","Numbered list styles toolbar":"有序清單工具列","Open in a new tab":"在新視窗開啟","Open link in new tab":"在新視窗開啟連結","Open media in new tab":"在新分頁打開媒體",Orange:"橘色",Original:"原始圖片",Outset:"外框線",Padding:"儲存格留白",Paragraph:"段落","Paste the media URL in the input.":"在輸入框貼上影音網址。","Press Enter to type after or press Shift + Enter to type before the widget":"按下 Enter 在小工具後輸入,或按下 Shift + Enter 在小工具前輸入",Previous:"上一",Purple:"紫色",Red:"紅色",Redo:"重做","Remove color":"移除顏色","Replace from computer":"從電腦替換","Replace image":"替換圖片","Replace image from computer":"從電腦替換圖片","Resize image":"縮放圖片","Resize image to %0":"縮放圖片到 %0","Resize image to the original size":"縮放圖片到原始尺寸","Restore default":"重設至預設值","Reversed order":"反轉順序","Rich Text Editor":"富文本編輯器",Ridge:"凸起線","Right aligned image":"向右對齊圖片",Row:"列",Save:"儲存","Select all":"選取全部","Select column":"選擇欄","Select row":"選擇列","Show more items":"顯示更多","Side image":"側邊圖片",Solid:"實線",Source:"原始碼","Split cell horizontally":"水平分割儲存格","Split cell vertically":"垂直分割儲存格",Square:"方形","Start at":"起始於","Start index must be greater than 0.":"起始索引須大於 0。",Strikethrough:"刪除線",Style:"樣式",Subscript:"下標",Superscript:"上標","Table alignment toolbar":"表格對齊","Table cell text alignment":"儲存格文字對齊","Table properties":"表格屬性","Table toolbar":"表格工具","Text alternative":"替代文字",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'顏色代碼錯誤。試試看 "#FF0000" 或 "rgb(255, 0, 0)" 或 "red"。',"The URL must not be empty.":"網址不能空白。",'The value is invalid. Try "10px" or "2em" or simply "2".':'尺寸代碼錯誤。試試看 "10px" 或 "2em" 或簡單寫 "2"。',"This link has no URL":"此連結沒有URL","This media URL is not supported.":"不支援此影音網址。","Tip: Paste the URL into the content to embed faster.":"提示:在內容貼上網址更快崁入。","To-do List":"代辦清單","Toggle caption off":"關閉表標題","Toggle caption on":"開啟表標題","Toggle the circle list style":"切換為空心圓點標示","Toggle the decimal list style":"切換為數字標示","Toggle the decimal with leading zero list style":"切換為0開頭的數字標示","Toggle the disc list style":"切換為實心圓點標示","Toggle the lower–latin list style":"切換為小寫拉丁文字標示","Toggle the lower–roman list style":"切換為小寫羅馬數字標示","Toggle the square list style":"切換為方形標示","Toggle the upper–latin list style":"切換為大寫拉丁文字標示","Toggle the upper–roman list style":"切換為大寫羅馬數字標示",Turquoise:"藍綠色","Type or paste your content here.":"在此輸入或貼上你的內容。","Type your title":"輸入你的標題",Underline:"底線",Undo:"取消",Unlink:"移除連結",Update:"更新","Update image URL":"更新圖片連結","Upload failed":"上傳失敗","Upload from computer":"從電腦上傳","Upload image from computer":"從電腦上傳圖片","Upload in progress":"正在上傳","Upper-latin":"大寫拉丁字母","Upper-roman":"大寫羅馬數字","Vertical text alignment toolbar":"垂直對齊",White:"白色","Widget toolbar":"小工具",Width:"寬度","Wrap text":"文繞圖",Yellow:"黃色"}),Ge.getPluralForm=function(L){return 0}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));/*!
|
|
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md.
|
|
|
*/(function(Ge,L){pe.exports=L()})(self,()=>(()=>{var Un={8168:(_,x,h)=>{const y=h(8874),E={};for(const g of Object.keys(y))E[y[g]]=g;const k={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};_.exports=k;for(const g of Object.keys(k)){if(!("channels"in k[g]))throw new Error("missing channels property: "+g);if(!("labels"in k[g]))throw new Error("missing channel labels property: "+g);if(k[g].labels.length!==k[g].channels)throw new Error("channel and label counts mismatch: "+g);const{channels:m,labels:A}=k[g];delete k[g].channels,delete k[g].labels,Object.defineProperty(k[g],"channels",{value:m}),Object.defineProperty(k[g],"labels",{value:A})}k.rgb.hsl=function(g){const m=g[0]/255,A=g[1]/255,C=g[2]/255,v=Math.min(m,A,C),I=Math.max(m,A,C),M=I-v;let j,W;I===v?j=0:m===I?j=(A-C)/M:A===I?j=2+(C-m)/M:C===I&&(j=4+(m-A)/M),j=Math.min(j*60,360),j<0&&(j+=360);const R=(v+I)/2;return I===v?W=0:R<=.5?W=M/(I+v):W=M/(2-I-v),[j,W*100,R*100]},k.rgb.hsv=function(g){let m,A,C,v,I;const M=g[0]/255,j=g[1]/255,W=g[2]/255,R=Math.max(M,j,W),G=R-Math.min(M,j,W),$=function(nt){return(R-nt)/6/G+1/2};return G===0?(v=0,I=0):(I=G/R,m=$(M),A=$(j),C=$(W),M===R?v=C-A:j===R?v=.3333333333333333+m-C:W===R&&(v=.6666666666666666+A-m),v<0?v+=1:v>1&&(v-=1)),[v*360,I*100,R*100]},k.rgb.hwb=function(g){const m=g[0],A=g[1];let C=g[2];const v=k.rgb.hsl(g)[0],I=1/255*Math.min(m,Math.min(A,C));return C=1-.00392156862745098*Math.max(m,Math.max(A,C)),[v,I*100,C*100]},k.rgb.cmyk=function(g){const m=g[0]/255,A=g[1]/255,C=g[2]/255,v=Math.min(1-m,1-A,1-C),I=(1-m-v)/(1-v)||0,M=(1-A-v)/(1-v)||0,j=(1-C-v)/(1-v)||0;return[I*100,M*100,j*100,v*100]};function D(g,m){return(g[0]-m[0])**2+(g[1]-m[1])**2+(g[2]-m[2])**2}k.rgb.keyword=function(g){const m=E[g];if(m)return m;let A=1/0,C;for(const v of Object.keys(y)){const I=y[v],M=D(g,I);M<A&&(A=M,C=v)}return C},k.keyword.rgb=function(g){return y[g]},k.rgb.xyz=function(g){let m=g[0]/255,A=g[1]/255,C=g[2]/255;m=m>.04045?((m+.055)/1.055)**2.4:m/12.92,A=A>.04045?((A+.055)/1.055)**2.4:A/12.92,C=C>.04045?((C+.055)/1.055)**2.4:C/12.92;const v=m*.4124+A*.3576+C*.1805,I=m*.2126+A*.7152+C*.0722,M=m*.0193+A*.1192+C*.9505;return[v*100,I*100,M*100]},k.rgb.lab=function(g){const m=k.rgb.xyz(g);let A=m[0],C=m[1],v=m[2];A/=95.047,C/=100,v/=108.883,A=A>.008856?A**.3333333333333333:7.787*A+.13793103448275862,C=C>.008856?C**.3333333333333333:7.787*C+.13793103448275862,v=v>.008856?v**.3333333333333333:7.787*v+.13793103448275862;const I=116*C-16,M=500*(A-C),j=200*(C-v);return[I,M,j]},k.hsl.rgb=function(g){const m=g[0]/360,A=g[1]/100,C=g[2]/100;let v,I,M;if(A===0)return M=C*255,[M,M,M];C<.5?v=C*(1+A):v=C+A-C*A;const j=2*C-v,W=[0,0,0];for(let R=0;R<3;R++)I=m+.3333333333333333*-(R-1),I<0&&I++,I>1&&I--,6*I<1?M=j+(v-j)*6*I:2*I<1?M=v:3*I<2?M=j+(v-j)*(.6666666666666666-I)*6:M=j,W[R]=M*255;return W},k.hsl.hsv=function(g){const m=g[0];let A=g[1]/100,C=g[2]/100,v=A;const I=Math.max(C,.01);C*=2,A*=C<=1?C:2-C,v*=I<=1?I:2-I;const M=(C+A)/2,j=C===0?2*v/(I+v):2*A/(C+A);return[m,j*100,M*100]},k.hsv.rgb=function(g){const m=g[0]/60,A=g[1]/100;let C=g[2]/100;const v=Math.floor(m)%6,I=m-Math.floor(m),M=255*C*(1-A),j=255*C*(1-A*I),W=255*C*(1-A*(1-I));switch(C*=255,v){case 0:return[C,W,M];case 1:return[j,C,M];case 2:return[M,C,W];case 3:return[M,j,C];case 4:return[W,M,C];case 5:return[C,M,j]}},k.hsv.hsl=function(g){const m=g[0],A=g[1]/100,C=g[2]/100,v=Math.max(C,.01);let I,M;M=(2-A)*C;const j=(2-A)*v;return I=A*v,I/=j<=1?j:2-j,I=I||0,M/=2,[m,I*100,M*100]},k.hwb.rgb=function(g){const m=g[0]/360;let A=g[1]/100,C=g[2]/100;const v=A+C;let I;v>1&&(A/=v,C/=v);const M=Math.floor(6*m),j=1-C;I=6*m-M,M&1&&(I=1-I);const W=A+I*(j-A);let R,G,$;switch(M){default:case 6:case 0:R=j,G=W,$=A;break;case 1:R=W,G=j,$=A;break;case 2:R=A,G=j,$=W;break;case 3:R=A,G=W,$=j;break;case 4:R=W,G=A,$=j;break;case 5:R=j,G=A,$=W;break}return[R*255,G*255,$*255]},k.cmyk.rgb=function(g){const m=g[0]/100,A=g[1]/100,C=g[2]/100,v=g[3]/100,I=1-Math.min(1,m*(1-v)+v),M=1-Math.min(1,A*(1-v)+v),j=1-Math.min(1,C*(1-v)+v);return[I*255,M*255,j*255]},k.xyz.rgb=function(g){const m=g[0]/100,A=g[1]/100,C=g[2]/100;let v,I,M;return v=m*3.2406+A*-1.5372+C*-.4986,I=m*-.9689+A*1.8758+C*.0415,M=m*.0557+A*-.204+C*1.057,v=v>.0031308?1.055*v**.4166666666666667-.055:v*12.92,I=I>.0031308?1.055*I**.4166666666666667-.055:I*12.92,M=M>.0031308?1.055*M**.4166666666666667-.055:M*12.92,v=Math.min(Math.max(0,v),1),I=Math.min(Math.max(0,I),1),M=Math.min(Math.max(0,M),1),[v*255,I*255,M*255]},k.xyz.lab=function(g){let m=g[0],A=g[1],C=g[2];m/=95.047,A/=100,C/=108.883,m=m>.008856?m**.3333333333333333:7.787*m+.13793103448275862,A=A>.008856?A**.3333333333333333:7.787*A+.13793103448275862,C=C>.008856?C**.3333333333333333:7.787*C+.13793103448275862;const v=116*A-16,I=500*(m-A),M=200*(A-C);return[v,I,M]},k.lab.xyz=function(g){const m=g[0],A=g[1],C=g[2];let v,I,M;I=(m+16)/116,v=A/500+I,M=I-C/200;const j=I**3,W=v**3,R=M**3;return I=j>.008856?j:(I-.13793103448275862)/7.787,v=W>.008856?W:(v-.13793103448275862)/7.787,M=R>.008856?R:(M-.13793103448275862)/7.787,v*=95.047,I*=100,M*=108.883,[v,I,M]},k.lab.lch=function(g){const m=g[0],A=g[1],C=g[2];let v;v=Math.atan2(C,A)*360/2/Math.PI,v<0&&(v+=360);const M=Math.sqrt(A*A+C*C);return[m,M,v]},k.lch.lab=function(g){const m=g[0],A=g[1],v=g[2]/360*2*Math.PI,I=A*Math.cos(v),M=A*Math.sin(v);return[m,I,M]},k.rgb.ansi16=function(g,m=null){const[A,C,v]=g;let I=m===null?k.rgb.hsv(g)[2]:m;if(I=Math.round(I/50),I===0)return 30;let M=30+(Math.round(v/255)<<2|Math.round(C/255)<<1|Math.round(A/255));return I===2&&(M+=60),M},k.hsv.ansi16=function(g){return k.rgb.ansi16(k.hsv.rgb(g),g[2])},k.rgb.ansi256=function(g){const m=g[0],A=g[1],C=g[2];return m===A&&A===C?m<8?16:m>248?231:Math.round((m-8)/247*24)+232:16+36*Math.round(m/255*5)+6*Math.round(A/255*5)+Math.round(C/255*5)},k.ansi16.rgb=function(g){let m=g%10;if(m===0||m===7)return g>50&&(m+=3.5),m=m/10.5*255,[m,m,m];const A=(~~(g>50)+1)*.5,C=(m&1)*A*255,v=(m>>1&1)*A*255,I=(m>>2&1)*A*255;return[C,v,I]},k.ansi256.rgb=function(g){if(g>=232){const I=(g-232)*10+8;return[I,I,I]}g-=16;let m;const A=Math.floor(g/36)/5*255,C=Math.floor((m=g%36)/6)/5*255,v=m%6/5*255;return[A,C,v]},k.rgb.hex=function(g){const A=(((Math.round(g[0])&255)<<16)+((Math.round(g[1])&255)<<8)+(Math.round(g[2])&255)).toString(16).toUpperCase();return"000000".substring(A.length)+A},k.hex.rgb=function(g){const m=g.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!m)return[0,0,0];let A=m[0];m[0].length===3&&(A=A.split("").map(j=>j+j).join(""));const C=parseInt(A,16),v=C>>16&255,I=C>>8&255,M=C&255;return[v,I,M]},k.rgb.hcg=function(g){const m=g[0]/255,A=g[1]/255,C=g[2]/255,v=Math.max(Math.max(m,A),C),I=Math.min(Math.min(m,A),C),M=v-I;let j,W;return M<1?j=I/(1-M):j=0,M<=0?W=0:v===m?W=(A-C)/M%6:v===A?W=2+(C-m)/M:W=4+(m-A)/M,W/=6,W%=1,[W*360,M*100,j*100]},k.hsl.hcg=function(g){const m=g[1]/100,A=g[2]/100,C=A<.5?2*m*A:2*m*(1-A);let v=0;return C<1&&(v=(A-.5*C)/(1-C)),[g[0],C*100,v*100]},k.hsv.hcg=function(g){const m=g[1]/100,A=g[2]/100,C=m*A;let v=0;return C<1&&(v=(A-C)/(1-C)),[g[0],C*100,v*100]},k.hcg.rgb=function(g){const m=g[0]/360,A=g[1]/100,C=g[2]/100;if(A===0)return[C*255,C*255,C*255];const v=[0,0,0],I=m%1*6,M=I%1,j=1-M;let W=0;switch(Math.floor(I)){case 0:v[0]=1,v[1]=M,v[2]=0;break;case 1:v[0]=j,v[1]=1,v[2]=0;break;case 2:v[0]=0,v[1]=1,v[2]=M;break;case 3:v[0]=0,v[1]=j,v[2]=1;break;case 4:v[0]=M,v[1]=0,v[2]=1;break;default:v[0]=1,v[1]=0,v[2]=j}return W=(1-A)*C,[(A*v[0]+W)*255,(A*v[1]+W)*255,(A*v[2]+W)*255]},k.hcg.hsv=function(g){const m=g[1]/100,A=g[2]/100,C=m+A*(1-m);let v=0;return C>0&&(v=m/C),[g[0],v*100,C*100]},k.hcg.hsl=function(g){const m=g[1]/100,C=g[2]/100*(1-m)+.5*m;let v=0;return C>0&&C<.5?v=m/(2*C):C>=.5&&C<1&&(v=m/(2*(1-C))),[g[0],v*100,C*100]},k.hcg.hwb=function(g){const m=g[1]/100,A=g[2]/100,C=m+A*(1-m);return[g[0],(C-m)*100,(1-C)*100]},k.hwb.hcg=function(g){const m=g[1]/100,C=1-g[2]/100,v=C-m;let I=0;return v<1&&(I=(C-v)/(1-v)),[g[0],v*100,I*100]},k.apple.rgb=function(g){return[g[0]/65535*255,g[1]/65535*255,g[2]/65535*255]},k.rgb.apple=function(g){return[g[0]/255*65535,g[1]/255*65535,g[2]/255*65535]},k.gray.rgb=function(g){return[g[0]/100*255,g[0]/100*255,g[0]/100*255]},k.gray.hsl=function(g){return[0,0,g[0]]},k.gray.hsv=k.gray.hsl,k.gray.hwb=function(g){return[0,100,g[0]]},k.gray.cmyk=function(g){return[0,0,0,g[0]]},k.gray.lab=function(g){return[g[0],0,0]},k.gray.hex=function(g){const m=Math.round(g[0]/100*255)&255,C=((m<<16)+(m<<8)+m).toString(16).toUpperCase();return"000000".substring(C.length)+C},k.rgb.gray=function(g){return[(g[0]+g[1]+g[2])/3/255*100]}},2085:(_,x,h)=>{const y=h(8168),E=h(4111),k={},D=Object.keys(y);function g(A){const C=function(...v){const I=v[0];return I==null?I:(I.length>1&&(v=I),A(v))};return"conversion"in A&&(C.conversion=A.conversion),C}function m(A){const C=function(...v){const I=v[0];if(I==null)return I;I.length>1&&(v=I);const M=A(v);if(typeof M=="object")for(let j=M.length,W=0;W<j;W++)M[W]=Math.round(M[W]);return M};return"conversion"in A&&(C.conversion=A.conversion),C}D.forEach(A=>{k[A]={},Object.defineProperty(k[A],"channels",{value:y[A].channels}),Object.defineProperty(k[A],"labels",{value:y[A].labels});const C=E(A);Object.keys(C).forEach(I=>{const M=C[I];k[A][I]=m(M),k[A][I].raw=g(M)})}),_.exports=k},4111:(_,x,h)=>{const y=h(8168);function E(){const m={},A=Object.keys(y);for(let C=A.length,v=0;v<C;v++)m[A[v]]={distance:-1,parent:null};return m}function k(m){const A=E(),C=[m];for(A[m].distance=0;C.length;){const v=C.pop(),I=Object.keys(y[v]);for(let M=I.length,j=0;j<M;j++){const W=I[j],R=A[W];R.distance===-1&&(R.distance=A[v].distance+1,R.parent=v,C.unshift(W))}}return A}function D(m,A){return function(C){return A(m(C))}}function g(m,A){const C=[A[m].parent,m];let v=y[A[m].parent][m],I=A[m].parent;for(;A[I].parent;)C.unshift(A[I].parent),v=D(y[A[I].parent][I],v),I=A[I].parent;return v.conversion=C,v}_.exports=function(m){const A=k(m),C={},v=Object.keys(A);for(let I=v.length,M=0;M<I;M++){const j=v[M];A[j].parent!==null&&(C[j]=g(j,A))}return C}},8874:_=>{_.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5363:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content code {
|
|
|
background-color: hsla(0, 0%, 78%, 0.3);
|
|
|
padding: .15em;
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable .ck-code_selected {
|
|
|
background-color: hsla(0, 0%, 78%, 0.5);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3789:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content blockquote {
|
|
|
/* See #12 */
|
|
|
overflow: hidden;
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */
|
|
|
padding-right: 1.5em;
|
|
|
padding-left: 1.5em;
|
|
|
|
|
|
margin-left: 0;
|
|
|
margin-right: 0;
|
|
|
font-style: italic;
|
|
|
border-left: solid 5px hsl(0, 0%, 80%);
|
|
|
}
|
|
|
|
|
|
.ck-content[dir="rtl"] blockquote {
|
|
|
border-left: 0;
|
|
|
border-right: solid 5px hsl(0, 0%, 80%);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},799:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/*
|
|
|
* Vertical drop target (in text).
|
|
|
*/
|
|
|
& .ck.ck-clipboard-drop-target-position {
|
|
|
display: inline;
|
|
|
position: relative;
|
|
|
pointer-events: none;
|
|
|
|
|
|
& span {
|
|
|
position: absolute;
|
|
|
width: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the widget being dragged (its preview).
|
|
|
*/
|
|
|
& .ck-widget:-webkit-drag {
|
|
|
& > .ck-widget__selection-handle {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
& > .ck-widget__type-around {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-clipboard-drop-target-line {
|
|
|
position: absolute;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-clipboard-drop-target-dot-width: 12px;
|
|
|
--ck-clipboard-drop-target-dot-height: 8px;
|
|
|
--ck-clipboard-drop-target-color: var(--ck-color-focus-border);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/*
|
|
|
* Vertical drop target (in text).
|
|
|
*/
|
|
|
& .ck.ck-clipboard-drop-target-position {
|
|
|
& span {
|
|
|
bottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
|
|
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
|
|
border: 1px solid var(--ck-clipboard-drop-target-color);
|
|
|
background: var(--ck-clipboard-drop-target-color);
|
|
|
margin-left: -1px;
|
|
|
|
|
|
/* The triangle above the marker */
|
|
|
&::after {
|
|
|
content: '';
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
|
|
|
|
|
transform: translateX(-50%);
|
|
|
border-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;
|
|
|
border-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));
|
|
|
border-style: solid;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the widget that it a drop target.
|
|
|
*/
|
|
|
& .ck-widget.ck-clipboard-drop-target-range {
|
|
|
outline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the widget being dragged (its preview).
|
|
|
*/
|
|
|
& .ck-widget:-webkit-drag {
|
|
|
zoom: 0.6;
|
|
|
outline: none !important;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-clipboard-drop-target-line {
|
|
|
height: 0;
|
|
|
border: 1px solid var(--ck-clipboard-drop-target-color);
|
|
|
background: var(--ck-clipboard-drop-target-color);
|
|
|
margin-top: -1px;
|
|
|
|
|
|
&::before {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-style: solid;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
left: -1px;
|
|
|
|
|
|
border-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);
|
|
|
border-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
right: -1px;
|
|
|
|
|
|
border-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;
|
|
|
border-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3624:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor {
|
|
|
/* All the elements within \`.ck-editor\` are positioned relatively to it.
|
|
|
If any element needs to be positioned with respect to the <body>, etc.,
|
|
|
it must land outside of the \`.ck-editor\` in DOM. */
|
|
|
position: relative;
|
|
|
|
|
|
& .ck-editor__top .ck-sticky-panel .ck-toolbar {
|
|
|
/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */
|
|
|
z-index: var(--ck-z-modal);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../mixins/_rounded.css";
|
|
|
|
|
|
.ck.ck-editor__top {
|
|
|
& .ck-sticky-panel {
|
|
|
& .ck-toolbar {
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
border-bottom-width: 0;
|
|
|
}
|
|
|
|
|
|
& .ck-sticky-panel__content_sticky .ck-toolbar {
|
|
|
border-bottom-width: 1px;
|
|
|
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */
|
|
|
.ck.ck-editor__main > .ck-editor__editable {
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */
|
|
|
background: var(--ck-color-base-background);
|
|
|
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&:not(.ck-focused) {
|
|
|
border-color: var(--ck-color-base-border);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},7372:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* See ckeditor/ckeditor5#936. */
|
|
|
.ck.ck-placeholder,
|
|
|
.ck .ck-placeholder {
|
|
|
position: relative;
|
|
|
|
|
|
&::before {
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
content: attr(data-placeholder);
|
|
|
|
|
|
/* See ckeditor/ckeditor5#469. */
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* See ckeditor/ckeditor5#1987. */
|
|
|
.ck.ck-read-only .ck-placeholder {
|
|
|
&::before {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Rules for the \`ck-placeholder\` are loaded before the rules for \`ck-reset_all\` in the base CKEditor 5 DLL build.
|
|
|
* This fix overwrites the incorrectly set \`position: static\` from \`ck-reset_all\`.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/11418.
|
|
|
*/
|
|
|
.ck.ck-reset_all .ck-placeholder {
|
|
|
position: relative;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* See ckeditor/ckeditor5#936. */
|
|
|
.ck.ck-placeholder, .ck .ck-placeholder {
|
|
|
&::before {
|
|
|
cursor: text;
|
|
|
color: var(--ck-color-engine-placeholder-text);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},5037:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* Elements marked by the Renderer as hidden should be invisible in the editor. */
|
|
|
.ck.ck-editor__editable span[data-ck-unsafe-element] {
|
|
|
display: none;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4249:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-heading_heading1 {
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-heading_heading2 {
|
|
|
font-size: 17px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-heading_heading3 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.ck[class*="ck-heading_heading"] {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* Resize dropdown's button label. */
|
|
|
.ck.ck-dropdown.ck-heading-dropdown {
|
|
|
& .ck-dropdown__button .ck-button__label {
|
|
|
width: 8em;
|
|
|
}
|
|
|
|
|
|
& .ck-dropdown__panel .ck-list__item {
|
|
|
min-width: 18em;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2430:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content {
|
|
|
& .image {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
text-align: center;
|
|
|
|
|
|
/* Make sure there is some space between the content and the image. Center image by default. */
|
|
|
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
|
|
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
|
|
margin: 0.9em auto;
|
|
|
|
|
|
/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */
|
|
|
min-width: 50px;
|
|
|
|
|
|
& img {
|
|
|
/* Prevent unnecessary margins caused by line-height (see #44). */
|
|
|
display: block;
|
|
|
|
|
|
/* Center the image if its width is smaller than the content's width. */
|
|
|
margin: 0 auto;
|
|
|
|
|
|
/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */
|
|
|
max-width: 100%;
|
|
|
|
|
|
/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */
|
|
|
min-width: 100%;
|
|
|
|
|
|
/* Keep proportions of the block image if the height is set and the image is wider than the editor width.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/14542. */
|
|
|
height: auto;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .image-inline {
|
|
|
/*
|
|
|
* Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).
|
|
|
* Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.
|
|
|
* This strange behavior does not happen with inline-flex.
|
|
|
*/
|
|
|
display: inline-flex;
|
|
|
|
|
|
/* While being resized, don't allow the image to exceed the width of the editing root. */
|
|
|
max-width: 100%;
|
|
|
|
|
|
/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */
|
|
|
align-items: flex-start;
|
|
|
|
|
|
/* When the picture is present it must act as a flex container to let the img resize properly */
|
|
|
& picture {
|
|
|
display: flex;
|
|
|
}
|
|
|
|
|
|
/* When the picture is present, it must act like a resizable img. */
|
|
|
& picture,
|
|
|
& img {
|
|
|
/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */
|
|
|
flex-grow: 1;
|
|
|
flex-shrink: 1;
|
|
|
|
|
|
/* Prevents overflowing the editing root boundaries when an inline image is very wide. */
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/*
|
|
|
* Inhertit the content styles padding of the <figcaption> in case the integration overrides \`text-align: center\`
|
|
|
* of \`.image\` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native
|
|
|
* caret does, and not at the edge of <figcaption>.
|
|
|
*/
|
|
|
& .image > figcaption.ck-placeholder::before {
|
|
|
padding-left: inherit;
|
|
|
padding-right: inherit;
|
|
|
|
|
|
/*
|
|
|
* Make sure the image caption placeholder doesn't overflow the placeholder area.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9162.
|
|
|
*/
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/15115.
|
|
|
*/
|
|
|
& .image {
|
|
|
z-index: 1;
|
|
|
|
|
|
/*
|
|
|
* Make sure the selected image always stays on top of its siblings.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9108.
|
|
|
*/
|
|
|
&.ck-widget_selected {
|
|
|
z-index: 2;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/15115.
|
|
|
*/
|
|
|
& .image-inline {
|
|
|
z-index: 1;
|
|
|
|
|
|
/*
|
|
|
* Make sure the selected inline image always stays on top of its siblings.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9108.
|
|
|
*/
|
|
|
&.ck-widget_selected {
|
|
|
z-index: 2;
|
|
|
|
|
|
/*
|
|
|
* Make sure the native browser selection style is not displayed.
|
|
|
* Inline image widgets have their own styles for the selected state and
|
|
|
* leaving this up to the browser is asking for a visual collision.
|
|
|
*/
|
|
|
& ::selection {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/14542. */
|
|
|
& .image-inline img {
|
|
|
height: auto;
|
|
|
}
|
|
|
|
|
|
/* The inline image nested in the table should have its original size if not resized.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/9117. */
|
|
|
& td,
|
|
|
& th {
|
|
|
& .image-inline img {
|
|
|
max-width: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2423:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-image-caption-background: hsl(0, 0%, 97%);
|
|
|
--ck-color-image-caption-text: hsl(0, 0%, 20%);
|
|
|
--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);
|
|
|
}
|
|
|
|
|
|
/* Content styles */
|
|
|
.ck-content .image > figcaption {
|
|
|
display: table-caption;
|
|
|
caption-side: bottom;
|
|
|
word-break: break-word;
|
|
|
color: var(--ck-color-image-caption-text);
|
|
|
background-color: var(--ck-color-image-caption-background);
|
|
|
padding: .6em;
|
|
|
font-size: .75em;
|
|
|
outline-offset: -1px;
|
|
|
}
|
|
|
|
|
|
/* Editing styles */
|
|
|
.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {
|
|
|
animation: ck-image-caption-highlight .6s ease-out;
|
|
|
}
|
|
|
|
|
|
@keyframes ck-image-caption-highlight {
|
|
|
0% {
|
|
|
background-color: var(--ck-color-image-caption-highligted-background);
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
background-color: var(--ck-color-image-caption-background);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},8879:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;padding:var(--ck-list-button-padding);width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible,.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAMC,yDACC,YAAa,CACb,mCACD,CCFD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CAEd,qCAAsC,CADtC,UAUD,CAZA,iDAME,eAMF,CAZA,iDAUE,gBAEF,CAGC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,6FAJC,oDAOD,CAHA,iDAEC,+BACD,CAEA,+BACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-image-insert-url {
|
|
|
& .ck-image-insert-url__action-row {
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-image-insert-insert-by-url-width: 250px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-image-insert-url {
|
|
|
--ck-input-width: 100%;
|
|
|
|
|
|
& .ck-image-insert-url__action-row {
|
|
|
grid-column-gap: var(--ck-spacing-large);
|
|
|
margin-top: var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-button-save,
|
|
|
& .ck-button-cancel {
|
|
|
justify-content: center;
|
|
|
min-width: auto;
|
|
|
}
|
|
|
|
|
|
& .ck-button .ck-button__label {
|
|
|
color: var(--ck-color-text);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-image-insert-form {
|
|
|
& > .ck.ck-button {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
padding: var(--ck-list-button-padding);
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
text-align: right;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-collapsible {
|
|
|
&:not(:first-child) {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
border-bottom: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
min-width: var(--ck-image-insert-insert-by-url-width);
|
|
|
}
|
|
|
|
|
|
/* This is the case when there are no other integrations configured than insert by URL */
|
|
|
& > .ck.ck-image-insert-url {
|
|
|
min-width: var(--ck-image-insert-insert-by-url-width);
|
|
|
padding: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},31:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
& img.image_placeholder {
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2400:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* Preserve aspect ratio of the resized image after introducing image height attribute. */
|
|
|
.ck-content img.image_resized {
|
|
|
height: auto;
|
|
|
}
|
|
|
|
|
|
.ck-content .image.image_resized {
|
|
|
max-width: 100%;
|
|
|
/*
|
|
|
The \`<figure>\` element for resized images must not use \`display:table\` as browsers do not support \`max-width\` for it well.
|
|
|
See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.
|
|
|
Fortunately, since we control the width, there is no risk that the image will look bad.
|
|
|
*/
|
|
|
display: block;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
& img {
|
|
|
/* For resized images it is the \`<figure>\` element that determines the image width. */
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
& > figcaption {
|
|
|
/* The \`<figure>\` element uses \`display:block\`, so \`<figcaption>\` also has to. */
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/* The resized inline image nested in the table should respect its parent size.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/9117. */
|
|
|
& td,
|
|
|
& th {
|
|
|
& .image-inline.image_resized img {
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {
|
|
|
margin-right: var(--ck-spacing-standard);
|
|
|
}
|
|
|
|
|
|
[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
|
|
|
.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {
|
|
|
width: 4em;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3534:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-image-style-spacing: 1.5em;
|
|
|
--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);
|
|
|
}
|
|
|
|
|
|
.ck-content {
|
|
|
/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback
|
|
|
confirming successful application of the style if image width exceeds the editor's size.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/9342 */
|
|
|
& .image-style-block-align-left,
|
|
|
& .image-style-block-align-right {
|
|
|
max-width: calc(100% - var(--ck-image-style-spacing));
|
|
|
}
|
|
|
|
|
|
/* Allows displaying multiple floating images in the same line.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */
|
|
|
& .image-style-align-left,
|
|
|
& .image-style-align-right {
|
|
|
clear: none;
|
|
|
}
|
|
|
|
|
|
& .image-style-side {
|
|
|
float: right;
|
|
|
margin-left: var(--ck-image-style-spacing);
|
|
|
max-width: 50%;
|
|
|
}
|
|
|
|
|
|
& .image-style-align-left {
|
|
|
float: left;
|
|
|
margin-right: var(--ck-image-style-spacing);
|
|
|
}
|
|
|
|
|
|
& .image-style-align-center {
|
|
|
margin-left: auto;
|
|
|
margin-right: auto;
|
|
|
}
|
|
|
|
|
|
& .image-style-align-right {
|
|
|
float: right;
|
|
|
margin-left: var(--ck-image-style-spacing);
|
|
|
}
|
|
|
|
|
|
& .image-style-block-align-right {
|
|
|
margin-right: 0;
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
|
|
|
& .image-style-block-align-left {
|
|
|
margin-left: 0;
|
|
|
margin-right: auto;
|
|
|
}
|
|
|
|
|
|
/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */
|
|
|
& p + .image-style-align-left,
|
|
|
& p + .image-style-align-right,
|
|
|
& p + .image-style-side {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
& .image-inline {
|
|
|
&.image-style-align-left,
|
|
|
&.image-style-align-right {
|
|
|
margin-top: var(--ck-inline-image-style-spacing);
|
|
|
margin-bottom: var(--ck-inline-image-style-spacing);
|
|
|
}
|
|
|
|
|
|
&.image-style-align-left {
|
|
|
margin-right: var(--ck-inline-image-style-spacing);
|
|
|
}
|
|
|
|
|
|
&.image-style-align-right {
|
|
|
margin-left: var(--ck-inline-image-style-spacing);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-splitbutton {
|
|
|
/* The button should display as a regular drop-down if the action button
|
|
|
is forced to fire the same action as the arrow button. */
|
|
|
&.ck-splitbutton_flatten {
|
|
|
&:hover,
|
|
|
&.ck-splitbutton_open {
|
|
|
& > .ck-splitbutton__action:not(.ck-disabled),
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled),
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
|
|
|
background-color: var(--ck-color-button-on-background);
|
|
|
|
|
|
&::after {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-splitbutton_open:hover {
|
|
|
& > .ck-splitbutton__action:not(.ck-disabled),
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled),
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
|
|
|
background-color: var(--ck-color-button-on-hover-background);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},1547:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-image-upload-complete-icon {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
|
|
|
/*
|
|
|
* Smaller images should have the icon closer to the border.
|
|
|
* Match the icon position with the linked image indicator brought by the link image feature.
|
|
|
*/
|
|
|
top: min(var(--ck-spacing-medium), 6%);
|
|
|
right: min(var(--ck-spacing-medium), 6%);
|
|
|
border-radius: 50%;
|
|
|
z-index: 1;
|
|
|
|
|
|
&::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-image-upload-icon: hsl(0, 0%, 100%);
|
|
|
--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);
|
|
|
|
|
|
/* Match the icon size with the linked image indicator brought by the link image feature. */
|
|
|
--ck-image-upload-icon-size: 20;
|
|
|
--ck-image-upload-icon-width: 2px;
|
|
|
--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);
|
|
|
}
|
|
|
|
|
|
.ck-image-upload-complete-icon {
|
|
|
opacity: 0;
|
|
|
background: var(--ck-color-image-upload-icon-background);
|
|
|
animation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;
|
|
|
animation-fill-mode: forwards, forwards;
|
|
|
animation-duration: 500ms, 500ms;
|
|
|
|
|
|
/* To make animation scalable. */
|
|
|
font-size: calc(1px * var(--ck-image-upload-icon-size));
|
|
|
|
|
|
/* Hide completed upload icon after 3 seconds. */
|
|
|
animation-delay: 0ms, 3000ms;
|
|
|
|
|
|
/*
|
|
|
* Use CSS math to simulate container queries.
|
|
|
* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things
|
|
|
*/
|
|
|
overflow: hidden;
|
|
|
width: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));
|
|
|
height: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));
|
|
|
|
|
|
/* This is check icon element made from border-width mixed with animations. */
|
|
|
&::after {
|
|
|
/* Because of border transformation we need to "hard code" left position. */
|
|
|
left: 25%;
|
|
|
|
|
|
top: 50%;
|
|
|
opacity: 0;
|
|
|
height: 0;
|
|
|
width: 0;
|
|
|
|
|
|
transform: scaleX(-1) rotate(135deg);
|
|
|
transform-origin: left top;
|
|
|
border-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);
|
|
|
border-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);
|
|
|
|
|
|
animation-name: ck-upload-complete-icon-check;
|
|
|
animation-duration: 500ms;
|
|
|
animation-delay: 500ms;
|
|
|
animation-fill-mode: forwards;
|
|
|
|
|
|
/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-upload-complete-icon-show {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-upload-complete-icon-hide {
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-upload-complete-icon-check {
|
|
|
0% {
|
|
|
opacity: 1;
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
}
|
|
|
33% {
|
|
|
width: 0.3em;
|
|
|
height: 0;
|
|
|
}
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
width: 0.3em;
|
|
|
height: 0.45em;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},6618:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-upload-placeholder-loader {
|
|
|
position: absolute;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
|
|
|
&::before {
|
|
|
content: '';
|
|
|
position: relative;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);
|
|
|
--ck-upload-placeholder-loader-size: 32px;
|
|
|
--ck-upload-placeholder-image-aspect-ratio: 2.8;
|
|
|
}
|
|
|
|
|
|
.ck .ck-image-upload-placeholder {
|
|
|
/* We need to control the full width of the SVG gray background. */
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
|
|
|
&.image-inline {
|
|
|
width: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );
|
|
|
}
|
|
|
|
|
|
& img {
|
|
|
/*
|
|
|
* This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.
|
|
|
* There's nothing special about this number except that it should make the image placeholder look like
|
|
|
* a real image during this short period after the upload started and before the image was read from the
|
|
|
* file system (and a rich preview was loaded).
|
|
|
*/
|
|
|
aspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-upload-placeholder-loader {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
|
|
|
&::before {
|
|
|
width: var(--ck-upload-placeholder-loader-size);
|
|
|
height: var(--ck-upload-placeholder-loader-size);
|
|
|
border-radius: 50%;
|
|
|
border-top: 3px solid var(--ck-color-upload-placeholder-loader);
|
|
|
border-right: 2px solid transparent;
|
|
|
animation: ck-upload-placeholder-loader 1s linear infinite;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-upload-placeholder-loader {
|
|
|
to {
|
|
|
transform: rotate( 360deg );
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2926:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
& .image,
|
|
|
& .image-inline {
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
/* Upload progress bar. */
|
|
|
& .image .ck-progress-bar,
|
|
|
& .image-inline .ck-progress-bar {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
& .image,
|
|
|
& .image-inline {
|
|
|
/* Showing animation. */
|
|
|
&.ck-appear {
|
|
|
animation: fadeIn 700ms;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Upload progress bar. */
|
|
|
& .image .ck-progress-bar,
|
|
|
& .image-inline .ck-progress-bar {
|
|
|
height: 2px;
|
|
|
width: 0;
|
|
|
background: var(--ck-color-upload-bar-background);
|
|
|
transition: width 100ms;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
from { opacity: 0; }
|
|
|
to { opacity: 1; }
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},5269:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-text-alternative-form {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
& .ck-label {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button {
|
|
|
flex-basis: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3925:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* Class added to span element surrounding currently selected link. */
|
|
|
.ck .ck-link_selected {
|
|
|
background: var(--ck-color-link-selected-background);
|
|
|
|
|
|
/* Give linked inline images some outline to let the user know they are also part of the link. */
|
|
|
& span.image-inline {
|
|
|
outline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Classes used by the "fake visual selection" displayed in the content when an input
|
|
|
* in the link UI has focus (the browser does not render the native selection in this state).
|
|
|
*/
|
|
|
.ck .ck-fake-link-selection {
|
|
|
background: var(--ck-color-link-fake-selection);
|
|
|
}
|
|
|
|
|
|
/* A collapsed fake visual selection. */
|
|
|
.ck .ck-fake-link-selection_collapsed {
|
|
|
height: 100%;
|
|
|
border-right: 1px solid var(--ck-color-base-text);
|
|
|
margin-right: -1px;
|
|
|
outline: solid 1px hsla(0, 0%, 100%, .5);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},7536:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-link-actions {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
& .ck-link-actions__preview {
|
|
|
display: inline-block;
|
|
|
|
|
|
& .ck-button__label {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck-link-actions__preview {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button:not(.ck-link-actions__preview) {
|
|
|
flex-basis: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
@import "../mixins/_focus.css";
|
|
|
@import "../mixins/_shadow.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-link-actions {
|
|
|
& .ck-button.ck-link-actions__preview {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
|
|
|
& .ck-button__label {
|
|
|
padding: 0 var(--ck-spacing-medium);
|
|
|
color: var(--ck-color-link-default);
|
|
|
text-overflow: ellipsis;
|
|
|
cursor: pointer;
|
|
|
|
|
|
/* Match the box model of the link editor form's input so the balloon
|
|
|
does not change width when moving between actions and the form. */
|
|
|
max-width: var(--ck-input-width);
|
|
|
min-width: 3em;
|
|
|
text-align: center;
|
|
|
|
|
|
&:hover {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&,
|
|
|
&:hover,
|
|
|
&:focus,
|
|
|
&:active {
|
|
|
background: none;
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
& .ck-button__label {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
& .ck-button:not(:first-child) {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
& .ck-button:not(:last-child) {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
& .ck-button.ck-link-actions__preview {
|
|
|
margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;
|
|
|
|
|
|
& .ck-button__label {
|
|
|
min-width: 0;
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-button:not(.ck-link-actions__preview) {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4874:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-link-form {
|
|
|
display: flex;
|
|
|
|
|
|
& .ck-label {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button {
|
|
|
flex-basis: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Style link form differently when manual decorators are available.
|
|
|
* See: https://github.com/ckeditor/ckeditor5-link/issues/186.
|
|
|
*/
|
|
|
.ck.ck-link-form_layout-vertical {
|
|
|
display: block;
|
|
|
|
|
|
/*
|
|
|
* Whether the form is in the responsive mode or not, if there are decorator buttons
|
|
|
* keep the top margin of action buttons medium.
|
|
|
*/
|
|
|
& .ck-button {
|
|
|
&.ck-button-save,
|
|
|
&.ck-button-cancel {
|
|
|
margin-top: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
/*
|
|
|
* Style link form differently when manual decorators are available.
|
|
|
* See: https://github.com/ckeditor/ckeditor5-link/issues/186.
|
|
|
*/
|
|
|
.ck.ck-link-form_layout-vertical {
|
|
|
padding: 0;
|
|
|
min-width: var(--ck-input-width);
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
margin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);
|
|
|
|
|
|
& .ck-input-text {
|
|
|
min-width: 0;
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-button {
|
|
|
padding: var(--ck-spacing-standard);
|
|
|
margin: 0;
|
|
|
width: 50%;
|
|
|
border-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: 0;
|
|
|
|
|
|
&:last-of-type {
|
|
|
border-right: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Using additional \`.ck\` class for stronger CSS specificity than \`.ck.ck-link-form > :not(:first-child)\`. */
|
|
|
& .ck.ck-list {
|
|
|
margin: var(--ck-spacing-standard) var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-button.ck-switchbutton {
|
|
|
padding: 0;
|
|
|
width: 100%;
|
|
|
|
|
|
&:hover {
|
|
|
background: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4330:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/* Linked image indicator */
|
|
|
& figure.image > a,
|
|
|
& a span.image-inline {
|
|
|
&::after {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/* Match the icon size with the upload indicator brought by the image upload feature. */
|
|
|
--ck-link-image-indicator-icon-size: 20;
|
|
|
--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/* Linked image indicator */
|
|
|
& figure.image > a,
|
|
|
& a span.image-inline {
|
|
|
&::after {
|
|
|
content: "";
|
|
|
|
|
|
/*
|
|
|
* Smaller images should have the icon closer to the border.
|
|
|
* Match the icon position with the upload indicator brought by the image upload feature.
|
|
|
*/
|
|
|
top: min(var(--ck-spacing-medium), 6%);
|
|
|
right: min(var(--ck-spacing-medium), 6%);
|
|
|
|
|
|
background-color: hsla(0, 0%, 0%, .4);
|
|
|
background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");
|
|
|
background-size: 14px;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: center;
|
|
|
border-radius: 100%;
|
|
|
|
|
|
/*
|
|
|
* Use CSS math to simulate container queries.
|
|
|
* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things
|
|
|
*/
|
|
|
overflow: hidden;
|
|
|
width: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
|
|
|
height: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const m=g},3190:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-editor__editable .ck-list-bogus-paragraph {
|
|
|
display: block;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4784:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content ol {
|
|
|
list-style-type: decimal;
|
|
|
|
|
|
& ol {
|
|
|
list-style-type: lower-latin;
|
|
|
|
|
|
& ol {
|
|
|
list-style-type: lower-roman;
|
|
|
|
|
|
& ol {
|
|
|
list-style-type: upper-latin;
|
|
|
|
|
|
& ol {
|
|
|
list-style-type: upper-roman;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck-content ul {
|
|
|
list-style-type: disc;
|
|
|
|
|
|
& ul {
|
|
|
list-style-type: circle;
|
|
|
|
|
|
& ul {
|
|
|
list-style-type: square;
|
|
|
|
|
|
& ul {
|
|
|
list-style-type: square;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},9938:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-list-properties {
|
|
|
/* When there are no list styles and there is no collapsible. */
|
|
|
&.ck-list-properties_without-styles {
|
|
|
padding: var(--ck-spacing-large);
|
|
|
|
|
|
& > * {
|
|
|
min-width: 14em;
|
|
|
|
|
|
& + * {
|
|
|
margin-top: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* When the numbered list property fields (start at, reversed) should be displayed,
|
|
|
* more horizontal space is needed. Reconfigure the style grid to create that space.
|
|
|
*/
|
|
|
&.ck-list-properties_with-numbered-properties {
|
|
|
& > .ck-list-styles-list {
|
|
|
grid-template-columns: repeat( 4, auto );
|
|
|
}
|
|
|
|
|
|
/* When list styles are rendered and property fields are in a collapsible. */
|
|
|
& > .ck-collapsible {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
|
|
|
& > .ck-collapsible__children {
|
|
|
& > * {
|
|
|
width: 100%;
|
|
|
|
|
|
& + * {
|
|
|
margin-top: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-numbered-list-properties__start-index .ck-input {
|
|
|
min-width: auto;
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-numbered-list-properties__reversed-order {
|
|
|
background: transparent;
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
margin-bottom: calc(-1 * var(--ck-spacing-tiny));
|
|
|
|
|
|
&:active, &:hover {
|
|
|
box-shadow: none;
|
|
|
border-color: transparent;
|
|
|
background: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2591:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/liststyles.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-list-styles-list {
|
|
|
display: grid;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-list-style-button-size: 44px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-list-styles-list {
|
|
|
grid-template-columns: repeat( 3, auto );
|
|
|
row-gap: var(--ck-spacing-medium);
|
|
|
column-gap: var(--ck-spacing-medium);
|
|
|
padding: var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-button {
|
|
|
/* Make the button look like a thumbnail (the icon "takes it all"). */
|
|
|
width: var(--ck-list-style-button-size);
|
|
|
height: var(--ck-list-style-button-size);
|
|
|
padding: 0;
|
|
|
|
|
|
/*
|
|
|
* Buttons are aligned by the grid so disable default button margins to not collide with the
|
|
|
* gaps in the grid.
|
|
|
*/
|
|
|
margin: 0;
|
|
|
|
|
|
/*
|
|
|
* Make sure the button border (which is displayed on focus, BTW) does not steal pixels
|
|
|
* from the button dimensions and, as a result, decrease the size of the icon
|
|
|
* (which becomes blurry as it scales down).
|
|
|
*/
|
|
|
box-sizing: content-box;
|
|
|
|
|
|
& .ck-icon {
|
|
|
width: var(--ck-list-style-button-size);
|
|
|
height: var(--ck-list-style-button-size);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},9292:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-todo-list-checkmark-size: 16px;
|
|
|
}
|
|
|
|
|
|
@define-mixin todo-list-checkbox {
|
|
|
-webkit-appearance: none;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
width: var(--ck-todo-list-checkmark-size);
|
|
|
height: var(--ck-todo-list-checkmark-size);
|
|
|
vertical-align: middle;
|
|
|
|
|
|
/* Needed on iOS */
|
|
|
border: 0;
|
|
|
|
|
|
/* LTR styles */
|
|
|
left: -25px;
|
|
|
margin-right: -15px;
|
|
|
right: 0;
|
|
|
margin-left: 0;
|
|
|
|
|
|
/* RTL styles */
|
|
|
@nest [dir=rtl]& {
|
|
|
left: 0;
|
|
|
margin-right: 0;
|
|
|
right: -25px;
|
|
|
margin-left: -15px;
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
content: '';
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
border: 1px solid hsl(0, 0%, 20%);
|
|
|
border-radius: 2px;
|
|
|
transition: 250ms ease-in-out box-shadow;
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
box-sizing: content-box;
|
|
|
pointer-events: none;
|
|
|
content: '';
|
|
|
|
|
|
/* Calculate tick position, size and border-width proportional to the checkmark size. */
|
|
|
left: calc( var(--ck-todo-list-checkmark-size) / 3 );
|
|
|
top: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
|
|
|
width: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
|
|
|
height: calc( var(--ck-todo-list-checkmark-size) / 2.6 );
|
|
|
border-style: solid;
|
|
|
border-color: transparent;
|
|
|
border-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;
|
|
|
transform: rotate(45deg);
|
|
|
}
|
|
|
|
|
|
&[checked] {
|
|
|
&::before {
|
|
|
background: hsl(126, 64%, 41%);
|
|
|
border-color: hsl(126, 64%, 41%);
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: hsl(0, 0%, 100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* To-do list content styles.
|
|
|
*/
|
|
|
.ck-content .todo-list {
|
|
|
list-style: none;
|
|
|
|
|
|
& li {
|
|
|
position: relative;
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
& .todo-list {
|
|
|
margin-top: 5px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .todo-list__label {
|
|
|
& > input {
|
|
|
@mixin todo-list-checkbox;
|
|
|
}
|
|
|
|
|
|
& .todo-list__label__description {
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
&.todo-list__label_without-description input[type=checkbox] {
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* To-do list editing view styles.
|
|
|
*/
|
|
|
.ck-editor__editable.ck-content .todo-list .todo-list__label {
|
|
|
/*
|
|
|
* To-do list should be interactive only during the editing
|
|
|
* (https://github.com/ckeditor/ckeditor5/issues/2090).
|
|
|
*/
|
|
|
& > input,
|
|
|
& > span[contenteditable=false] > input {
|
|
|
cursor: pointer;
|
|
|
|
|
|
&:hover::before {
|
|
|
box-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Document Lists - editing view has an additional span around checkbox.
|
|
|
*/
|
|
|
& > span[contenteditable=false] > input {
|
|
|
@mixin todo-list-checkbox;
|
|
|
}
|
|
|
|
|
|
&.todo-list__label_without-description {
|
|
|
& input[type=checkbox] {
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},8705:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content .media {
|
|
|
/* Don't allow floated content overlap the media.
|
|
|
https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */
|
|
|
clear: both;
|
|
|
|
|
|
/* Make sure there is some space between the content and the media. */
|
|
|
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
|
|
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
|
|
margin: 0.9em 0;
|
|
|
|
|
|
/* Make sure media is not overriden with Bootstrap default \`flex\` value.
|
|
|
See: https://github.com/ckeditor/ckeditor5/issues/1373. */
|
|
|
display: block;
|
|
|
|
|
|
/* Give the media some minimal width in the content to prevent them
|
|
|
from being "squashed" in tight spaces, e.g. in table cells (#44) */
|
|
|
min-width: 15em;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},1922:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-media__wrapper {
|
|
|
& .ck-media__placeholder {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
|
|
|
& .ck-media__placeholder__url {
|
|
|
/* Otherwise the URL will overflow when the content is very narrow. */
|
|
|
max-width: 100%;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
overflow: hidden;
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="twitter.com"],
|
|
|
&[data-oembed-url*="google.com/maps"],
|
|
|
&[data-oembed-url*="goo.gl/maps"],
|
|
|
&[data-oembed-url*="maps.google.com"],
|
|
|
&[data-oembed-url*="maps.app.goo.gl"],
|
|
|
&[data-oembed-url*="facebook.com"],
|
|
|
&[data-oembed-url*="instagram.com"] {
|
|
|
& .ck-media__placeholder__icon * {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Disable all mouse interaction as long as the editor is not read–only.
|
|
|
https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */
|
|
|
.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).
|
|
|
https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */
|
|
|
.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-media-embed-placeholder-icon-size: 3em;
|
|
|
|
|
|
--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);
|
|
|
--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);
|
|
|
}
|
|
|
|
|
|
.ck-media__wrapper {
|
|
|
margin: 0 auto;
|
|
|
|
|
|
& .ck-media__placeholder {
|
|
|
padding: calc( 3 * var(--ck-spacing-standard) );
|
|
|
background: var(--ck-color-base-foreground);
|
|
|
|
|
|
& .ck-media__placeholder__icon {
|
|
|
min-width: var(--ck-media-embed-placeholder-icon-size);
|
|
|
height: var(--ck-media-embed-placeholder-icon-size);
|
|
|
margin-bottom: var(--ck-spacing-large);
|
|
|
background-position: center;
|
|
|
background-size: cover;
|
|
|
|
|
|
& .ck-icon {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
color: var(--ck-color-media-embed-placeholder-url-text);
|
|
|
white-space: nowrap;
|
|
|
text-align: center;
|
|
|
font-style: italic;
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
&:hover {
|
|
|
color: var(--ck-color-media-embed-placeholder-url-text-hover);
|
|
|
cursor: pointer;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="open.spotify.com"] {
|
|
|
max-width: 300px;
|
|
|
max-height: 380px;
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,
|
|
|
&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,
|
|
|
&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,
|
|
|
&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {
|
|
|
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="facebook.com"] .ck-media__placeholder {
|
|
|
background: hsl(220, 46%, 48%);
|
|
|
|
|
|
& .ck-media__placeholder__icon {
|
|
|
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);
|
|
|
}
|
|
|
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
color: hsl(220, 100%, 90%);
|
|
|
|
|
|
&:hover {
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="instagram.com"] .ck-media__placeholder {
|
|
|
background: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));
|
|
|
|
|
|
& .ck-media__placeholder__icon {
|
|
|
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);
|
|
|
}
|
|
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
color: hsl(302, 100%, 94%);
|
|
|
|
|
|
&:hover {
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {
|
|
|
/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */
|
|
|
background: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );
|
|
|
|
|
|
& .ck-media__placeholder__icon {
|
|
|
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);
|
|
|
}
|
|
|
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
color: hsl(201, 100%, 86%);
|
|
|
|
|
|
&:hover {
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},7138:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-media-form {
|
|
|
display: flex;
|
|
|
align-items: flex-start;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
& .ck-label {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button {
|
|
|
flex-basis: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4420:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck-source-editing-area{overflow:hidden;position:relative}.ck-source-editing-area textarea,.ck-source-editing-area:after{border:1px solid transparent;font-family:monospace;font-size:var(--ck-font-size-normal);line-height:var(--ck-line-height-base);margin:0;padding:var(--ck-spacing-large);white-space:pre-wrap}.ck-source-editing-area:after{content:attr(data-value) " ";display:block;visibility:hidden}.ck-source-editing-area textarea{border-color:var(--ck-color-base-border);border-radius:0;box-sizing:border-box;height:100%;outline:none;overflow:hidden;position:absolute;resize:none;width:100%}.ck-rounded-corners .ck-source-editing-area textarea,.ck-source-editing-area textarea.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck-source-editing-area textarea:not([readonly]):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-source-editing/theme/sourceediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,wBAEC,eAAgB,CADhB,iBAED,CAEA,+DAIC,4BAA6B,CAG7B,qBAAsB,CADtB,oCAAqC,CADrC,sCAAuC,CAFvC,QAAS,CADT,+BAAgC,CAMhC,oBACD,CAEA,8BACC,4BAA6B,CAE7B,aAAc,CADd,iBAED,CAEA,iCASC,wCAAyC,CC7BzC,eAAgB,CD2BhB,qBAAsB,CAJtB,WAAY,CAEZ,YAAa,CACb,eAAgB,CALhB,iBAAkB,CAGlB,WAAY,CAFZ,UAkBD,CApBA,yGChBE,qCAAsC,CD4BtC,wBAAyB,CACzB,yBAOF,CAJC,uDEpCA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFwCA",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
|
|
|
|
|
.ck-source-editing-area {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
.ck-source-editing-area::after,
|
|
|
.ck-source-editing-area textarea {
|
|
|
padding: var(--ck-spacing-large);
|
|
|
margin: 0;
|
|
|
border: 1px solid transparent;
|
|
|
line-height: var(--ck-line-height-base);
|
|
|
font-size: var(--ck-font-size-normal);
|
|
|
font-family: monospace;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
.ck-source-editing-area::after {
|
|
|
content: attr(data-value) " ";
|
|
|
visibility: hidden;
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
.ck-source-editing-area textarea {
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
overflow: hidden;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
border-color: var(--ck-color-base-border);
|
|
|
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&:not([readonly]):focus {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-inner-shadow);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},9953:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-input-color {
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
|
& > input.ck.ck-input-text {
|
|
|
min-width: auto;
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
|
|
|
& > div.ck.ck-dropdown {
|
|
|
min-width: auto;
|
|
|
|
|
|
/* This dropdown has no arrow but a color preview instead. */
|
|
|
& > .ck-input-color__button .ck-dropdown__arrow {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-input-color__button {
|
|
|
/* Resolving issue with misaligned buttons on Safari (see #10589) */
|
|
|
display: flex;
|
|
|
|
|
|
& .ck.ck-input-color__button__preview {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
|
|
|
& > .ck.ck-input-color__button__preview__no-color-indicator {
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
@import "../mixins/_rounded.css";
|
|
|
|
|
|
.ck.ck-input-color {
|
|
|
& > .ck.ck-input-text {
|
|
|
@mixin ck-dir ltr {
|
|
|
border-top-right-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
/* Make sure the focused input is always on top of the dropdown button so its
|
|
|
outline and border are never cropped (also when the input is read-only). */
|
|
|
&:focus {
|
|
|
z-index: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-dropdown {
|
|
|
& > .ck.ck-button.ck-input-color__button {
|
|
|
padding: 0;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-left: 1px solid transparent;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
border-top-right-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-right: 1px solid transparent;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-disabled {
|
|
|
background: var(--ck-color-input-disabled-background);
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-input-color__button__preview {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
border: 1px solid var(--ck-color-input-border);
|
|
|
|
|
|
& > .ck.ck-input-color__button__preview__no-color-indicator {
|
|
|
top: -30%;
|
|
|
left: 50%;
|
|
|
height: 150%;
|
|
|
width: 8%;
|
|
|
background: hsl(0, 100%, 50%);
|
|
|
border-radius: 2px;
|
|
|
transform: rotate(45deg);
|
|
|
transform-origin: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-input-color__remove-color {
|
|
|
width: 100%;
|
|
|
padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);
|
|
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-bottom: 1px solid var(--ck-color-input-border);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
border-top-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-icon {
|
|
|
margin-right: var(--ck-spacing-standard);
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-right: 0;
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},7502:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-form {
|
|
|
padding: 0 0 var(--ck-spacing-large);
|
|
|
|
|
|
&:focus {
|
|
|
/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-input-text {
|
|
|
min-width: 100%;
|
|
|
width: 0;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-dropdown {
|
|
|
min-width: 100%;
|
|
|
|
|
|
& .ck-dropdown__button {
|
|
|
&:not(:focus) {
|
|
|
border: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},6908:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/formrow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-form__row {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
justify-content: space-between;
|
|
|
|
|
|
/* Ignore labels that work as fieldset legends */
|
|
|
& > *:not(.ck-label) {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__action-row {
|
|
|
& .ck-button-save,
|
|
|
& .ck-button-cancel {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-form__row {
|
|
|
padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;
|
|
|
|
|
|
/* Ignore labels that work as fieldset legends */
|
|
|
& > *:not(.ck-label) {
|
|
|
& + * {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-right: var(--ck-spacing-large);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-label {
|
|
|
width: 100%;
|
|
|
min-width: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__action-row {
|
|
|
margin-top: var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-button .ck-button__label {
|
|
|
color: var(--ck-color-text);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},468:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-insert-table-dropdown__grid {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-insert-table-dropdown-padding: 10px;
|
|
|
--ck-insert-table-dropdown-box-height: 11px;
|
|
|
--ck-insert-table-dropdown-box-width: 12px;
|
|
|
--ck-insert-table-dropdown-box-margin: 1px;
|
|
|
}
|
|
|
|
|
|
.ck .ck-insert-table-dropdown__grid {
|
|
|
/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */
|
|
|
width: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);
|
|
|
padding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;
|
|
|
}
|
|
|
|
|
|
.ck .ck-insert-table-dropdown__label,
|
|
|
.ck[dir=rtl] .ck-insert-table-dropdown__label {
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
.ck .ck-insert-table-dropdown-grid-box {
|
|
|
min-width: var(--ck-insert-table-dropdown-box-width);
|
|
|
min-height: var(--ck-insert-table-dropdown-box-height);
|
|
|
margin: var(--ck-insert-table-dropdown-box-margin);
|
|
|
border: 1px solid var(--ck-color-base-border);
|
|
|
border-radius: 1px;
|
|
|
outline: none;
|
|
|
transition: none;
|
|
|
|
|
|
&:focus {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&.ck-on {
|
|
|
border-color: var(--ck-color-focus-border);
|
|
|
background: var(--ck-color-focus-outer-shadow);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const m=g},2510:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content .table {
|
|
|
/* Give the table widget some air and center it horizontally */
|
|
|
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
|
|
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
|
|
margin: 0.9em auto;
|
|
|
display: table;
|
|
|
|
|
|
& table {
|
|
|
/* The table cells should have slight borders */
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
|
|
|
/* Table width and height are set on the parent <figure>. Make sure the table inside stretches
|
|
|
to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
|
|
|
/* The outer border of the table should be slightly darker than the inner lines.
|
|
|
Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */
|
|
|
border: 1px double hsl(0, 0%, 70%);
|
|
|
|
|
|
& td,
|
|
|
& th {
|
|
|
min-width: 2em;
|
|
|
padding: .4em;
|
|
|
|
|
|
/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here.
|
|
|
However, the border is a content style, so it should use .ck-content (so it works outside the editor).
|
|
|
Hence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */
|
|
|
border: 1px solid hsl(0, 0%, 75%);
|
|
|
}
|
|
|
|
|
|
& th {
|
|
|
font-weight: bold;
|
|
|
background: hsla(0, 0%, 0%, 5%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Text alignment of the table header should match the editor settings and override the native browser styling,
|
|
|
when content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */
|
|
|
.ck-content[dir="rtl"] .table th {
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
.ck-content[dir="ltr"] .table th {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
.ck-editor__editable .ck-table-bogus-paragraph {
|
|
|
/*
|
|
|
* Use display:inline-block to force Chrome/Safari to limit text mutations to this element.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/6062.
|
|
|
*/
|
|
|
display: inline-block;
|
|
|
|
|
|
/*
|
|
|
* Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9117.
|
|
|
*/
|
|
|
width: 100%;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},1111:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-selector-caption-background: hsl(0, 0%, 97%);
|
|
|
--ck-color-selector-caption-text: hsl(0, 0%, 20%);
|
|
|
--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);
|
|
|
}
|
|
|
|
|
|
/* Content styles */
|
|
|
.ck-content .table > figcaption {
|
|
|
display: table-caption;
|
|
|
caption-side: top;
|
|
|
word-break: break-word;
|
|
|
text-align: center;
|
|
|
color: var(--ck-color-selector-caption-text);
|
|
|
background-color: var(--ck-color-selector-caption-background);
|
|
|
padding: .6em;
|
|
|
font-size: .75em;
|
|
|
outline-offset: -1px;
|
|
|
}
|
|
|
|
|
|
/* Editing styles */
|
|
|
.ck.ck-editor__editable .table > figcaption {
|
|
|
&.table__caption_highlighted {
|
|
|
animation: ck-table-caption-highlight .6s ease-out;
|
|
|
}
|
|
|
|
|
|
&.ck-placeholder::before {
|
|
|
padding-left: inherit;
|
|
|
padding-right: inherit;
|
|
|
|
|
|
/*
|
|
|
* Make sure the table caption placeholder doesn't overflow the placeholder area.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9162.
|
|
|
*/
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-table-caption-highlight {
|
|
|
0% {
|
|
|
background-color: var(--ck-color-selector-caption-highlighted-background);
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
background-color: var(--ck-color-selector-caption-background);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3964:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecellproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-cell-properties-form {
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-cell-properties-form__alignment-row {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck.ck-toolbar {
|
|
|
&:first-of-type {
|
|
|
/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */
|
|
|
flex-grow: 0.57;
|
|
|
}
|
|
|
|
|
|
&:last-of-type {
|
|
|
/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */
|
|
|
flex-grow: 0.43;
|
|
|
}
|
|
|
|
|
|
& .ck-button {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-cell-properties-form {
|
|
|
width: 320px;
|
|
|
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-cell-properties-form__padding-row {
|
|
|
align-self: flex-end;
|
|
|
padding: 0;
|
|
|
width: 25%;
|
|
|
}
|
|
|
|
|
|
&.ck-table-cell-properties-form__alignment-row {
|
|
|
& .ck.ck-toolbar {
|
|
|
background: none;
|
|
|
|
|
|
/* Compensate for missing input label that would push the margin (toolbar has no inputs). */
|
|
|
margin-top: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},7176:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);
|
|
|
--ck-table-column-resizer-width: 7px;
|
|
|
|
|
|
/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.
|
|
|
The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */
|
|
|
--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);
|
|
|
}
|
|
|
|
|
|
.ck-content .table .ck-table-resized {
|
|
|
table-layout: fixed;
|
|
|
}
|
|
|
|
|
|
.ck-content .table table {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
.ck-content .table td,
|
|
|
.ck-content .table th {
|
|
|
/* To prevent text overflowing beyond its cell when columns are resized by resize handler
|
|
|
(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */
|
|
|
overflow-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable .table .ck-table-column-resizer {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
bottom: 0;
|
|
|
right: var(--ck-table-column-resizer-position-offset);
|
|
|
width: var(--ck-table-column-resizer-width);
|
|
|
cursor: col-resize;
|
|
|
user-select: none;
|
|
|
z-index: var(--ck-z-default);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,
|
|
|
all resizers must be hidden while the table is dragged. */
|
|
|
.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable .table .ck-table-column-resizer:hover,
|
|
|
.ck.ck-editor__editable .table .ck-table-column-resizer__active {
|
|
|
background-color: var(--ck-color-selector-column-resizer-hover);
|
|
|
opacity: 0.25;
|
|
|
/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,
|
|
|
it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as
|
|
|
it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally
|
|
|
unrealistic height for a single table. */
|
|
|
top: -999999px;
|
|
|
bottom: -999999px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {
|
|
|
left: var(--ck-table-column-resizer-position-offset);
|
|
|
right: unset;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},8361:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);
|
|
|
}
|
|
|
|
|
|
.ck-widget.table {
|
|
|
& td,
|
|
|
& th {
|
|
|
&.ck-editor__nested-editable.ck-editor__nested-editable_focused,
|
|
|
&.ck-editor__nested-editable:focus {
|
|
|
/* A very slight background to highlight the focused cell */
|
|
|
background: var(--ck-color-selector-focused-cell-background);
|
|
|
|
|
|
/* Fixes the problem where surrounding cells cover the focused cell's border.
|
|
|
It does not fix the problem in all places but the UX is improved.
|
|
|
See https://github.com/ckeditor/ckeditor5-table/issues/29. */
|
|
|
border-style: none;
|
|
|
outline: 1px solid var(--ck-color-focus-border);
|
|
|
outline-offset: -1px; /* progressive enhancement - no IE support */
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},9429:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-form {
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-form__border-row {
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__background-row {
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__dimensions-row {
|
|
|
flex-wrap: wrap;
|
|
|
align-items: center;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
display: flex;
|
|
|
flex-direction: column-reverse;
|
|
|
align-items: center;
|
|
|
|
|
|
& .ck.ck-dropdown {
|
|
|
flex-grow: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-table-form__dimension-operator {
|
|
|
flex-grow: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-labeled-field-view {
|
|
|
/* Allow absolute positioning of the status (error) balloons. */
|
|
|
position: relative;
|
|
|
|
|
|
& .ck.ck-labeled-field-view__status {
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
bottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );
|
|
|
transform: translate(-50%,100%);
|
|
|
|
|
|
/* Make sure the balloon status stays on top of other form elements. */
|
|
|
z-index: 1;
|
|
|
|
|
|
/* The arrow pointing towards the field. */
|
|
|
&::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
top: calc( -1 * var(--ck-table-properties-error-arrow-size) );
|
|
|
left: 50%;
|
|
|
transform: translateX( -50% );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../mixins/_rounded.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-table-properties-error-arrow-size: 6px;
|
|
|
--ck-table-properties-min-error-width: 150px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-table-form {
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-form__border-row {
|
|
|
& .ck-labeled-field-view {
|
|
|
& > .ck-label {
|
|
|
font-size: var(--ck-font-size-tiny);
|
|
|
text-align: center;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-table-form__border-style,
|
|
|
& .ck-table-form__border-width {
|
|
|
width: 80px;
|
|
|
min-width: 80px;
|
|
|
max-width: 80px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__dimensions-row {
|
|
|
padding: 0;
|
|
|
|
|
|
& .ck-table-form__dimensions-row__width,
|
|
|
& .ck-table-form__dimensions-row__height {
|
|
|
margin: 0
|
|
|
}
|
|
|
|
|
|
& .ck-table-form__dimension-operator {
|
|
|
align-self: flex-end;
|
|
|
display: inline-block;
|
|
|
height: var(--ck-ui-component-min-height);
|
|
|
line-height: var(--ck-ui-component-min-height);
|
|
|
margin: 0 var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-labeled-field-view {
|
|
|
padding-top: var(--ck-spacing-standard);
|
|
|
|
|
|
& .ck.ck-labeled-field-view__status {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
background: var(--ck-color-base-error);
|
|
|
color: var(--ck-color-base-background);
|
|
|
padding: var(--ck-spacing-small) var(--ck-spacing-medium);
|
|
|
min-width: var(--ck-table-properties-min-error-width);
|
|
|
text-align: center;
|
|
|
|
|
|
/* The arrow pointing towards the field. */
|
|
|
&::after {
|
|
|
border-color: transparent transparent var(--ck-color-base-error) transparent;
|
|
|
border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
|
|
|
border-style: solid;
|
|
|
}
|
|
|
|
|
|
animation: ck-table-form-labeled-view-status-appear .15s ease both;
|
|
|
}
|
|
|
|
|
|
/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
|
|
|
& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-table-form-labeled-view-status-appear {
|
|
|
0% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},6596:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-properties-form {
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-properties-form__alignment-row {
|
|
|
flex-wrap: wrap;
|
|
|
flex-basis: 0;
|
|
|
align-content: baseline;
|
|
|
|
|
|
& .ck.ck-toolbar .ck-toolbar__items {
|
|
|
flex-wrap: nowrap;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-properties-form {
|
|
|
width: 320px;
|
|
|
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-properties-form__alignment-row {
|
|
|
align-self: flex-end;
|
|
|
padding: 0;
|
|
|
|
|
|
& .ck.ck-toolbar {
|
|
|
background: none;
|
|
|
|
|
|
/* Compensate for missing input label that would push the margin (toolbar has no inputs). */
|
|
|
margin-top: var(--ck-spacing-standard);
|
|
|
|
|
|
& .ck-toolbar__items > * {
|
|
|
width: 40px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},1546:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable .table table {
|
|
|
& td.ck-editor__editable_selected,
|
|
|
& th.ck-editor__editable_selected {
|
|
|
position: relative;
|
|
|
caret-color: transparent;
|
|
|
outline: unset;
|
|
|
box-shadow: unset;
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/6446 */
|
|
|
&:after {
|
|
|
content: '';
|
|
|
pointer-events: none;
|
|
|
background-color: var(--ck-table-selected-cell-background);
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
}
|
|
|
|
|
|
& ::selection,
|
|
|
&:focus {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9491.
|
|
|
*/
|
|
|
& .ck-widget {
|
|
|
outline: unset;
|
|
|
|
|
|
& > .ck-widget__selection-handle {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3290:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-aria-live-announcer {
|
|
|
position: absolute;
|
|
|
left: -10000px;
|
|
|
top: -10000px;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4029:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-autocomplete {
|
|
|
position: relative;
|
|
|
|
|
|
& > .ck-search__results {
|
|
|
position: absolute;
|
|
|
z-index: var(--ck-z-modal);
|
|
|
|
|
|
&.ck-search__results_n {
|
|
|
bottom: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-search__results_s {
|
|
|
top: 100%;
|
|
|
bottom: auto;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
|
|
|
|
|
.ck.ck-autocomplete {
|
|
|
& > .ck-search__results {
|
|
|
@mixin ck-rounded-corners;
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
max-height: 200px;
|
|
|
overflow-y: auto;
|
|
|
background: var(--ck-color-base-background);
|
|
|
border: 1px solid var(--ck-color-dropdown-panel-border);
|
|
|
min-width: auto;
|
|
|
|
|
|
&.ck-search__results_n {
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
/* Prevent duplicated borders between the input and the results pane. */
|
|
|
margin-bottom: -1px;
|
|
|
}
|
|
|
|
|
|
&.ck-search__results_s {
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
|
/* Prevent duplicated borders between the input and the results pane. */
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4971:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEzBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../mixins/_unselectable.css";
|
|
|
@import "../../mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-button,
|
|
|
a.ck.ck-button {
|
|
|
@mixin ck-unselectable;
|
|
|
|
|
|
position: relative;
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
justify-content: left;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
justify-content: right;
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
&.ck-button_with-text {
|
|
|
& .ck-button__label {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Center the icon horizontally in a button without text. */
|
|
|
&:not(.ck-button_with-text) {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Makes element unselectable.
|
|
|
*/
|
|
|
@define-mixin ck-unselectable {
|
|
|
-moz-user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_focus.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../mixins/_button.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-button,
|
|
|
a.ck.ck-button {
|
|
|
@mixin ck-button-colors --ck-color-button-default;
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
cursor: default;
|
|
|
vertical-align: middle;
|
|
|
padding: var(--ck-spacing-tiny);
|
|
|
text-align: center;
|
|
|
|
|
|
/* A very important piece of styling. Go to variable declaration to learn more. */
|
|
|
min-width: var(--ck-ui-component-min-height);
|
|
|
min-height: var(--ck-ui-component-min-height);
|
|
|
|
|
|
/* Normalize the height of the line. Removing this will break consistent height
|
|
|
among text and text-less buttons (with icons). */
|
|
|
line-height: 1;
|
|
|
|
|
|
/* Enable font size inheritance, which allows fluid UI scaling. */
|
|
|
font-size: inherit;
|
|
|
|
|
|
/* Avoid flickering when the foucs border shows up. */
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
/* Apply some smooth transition to the box-shadow and border. */
|
|
|
transition: box-shadow .2s ease-in-out, border .2s ease-in-out;
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */
|
|
|
-webkit-appearance: none;
|
|
|
|
|
|
&:active,
|
|
|
&:focus {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
|
|
}
|
|
|
|
|
|
/* Allow icon coloring using the text "color" property. */
|
|
|
& .ck-button__icon {
|
|
|
& use,
|
|
|
& use * {
|
|
|
color: inherit;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
/* Enable font size inheritance, which allows fluid UI scaling. */
|
|
|
font-size: inherit;
|
|
|
font-weight: inherit;
|
|
|
color: inherit;
|
|
|
cursor: inherit;
|
|
|
|
|
|
/* Must be consistent with .ck-icon's vertical align. Otherwise, buttons with and
|
|
|
without labels (but with icons) have different sizes in Chrome */
|
|
|
vertical-align: middle;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
text-align: right;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-button__keystroke {
|
|
|
color: inherit;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-right: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
font-weight: bold;
|
|
|
opacity: .7;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
|
|
|
&.ck-disabled {
|
|
|
&:active,
|
|
|
&:focus {
|
|
|
/* The disabled button should have a slightly less visible shadow when focused. */
|
|
|
@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);
|
|
|
}
|
|
|
|
|
|
& .ck-button__icon {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
|
|
|
& .ck-button__label {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
& .ck-button__keystroke {
|
|
|
opacity: .3;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-button_with-text {
|
|
|
padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);
|
|
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
& .ck-button__icon {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: calc(-1 * var(--ck-spacing-small));
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-right: calc(-1 * var(--ck-spacing-small));
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-button_with-keystroke {
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
& .ck-button__label {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* A style of the button which is currently on, e.g. its feature is active. */
|
|
|
&.ck-on {
|
|
|
@mixin ck-button-colors --ck-color-button-on;
|
|
|
|
|
|
color: var(--ck-color-button-on-color);
|
|
|
}
|
|
|
|
|
|
&.ck-button-save {
|
|
|
color: var(--ck-color-button-save);
|
|
|
}
|
|
|
|
|
|
&.ck-button-cancel {
|
|
|
color: var(--ck-color-button-cancel);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* A style of the button which handles the primary action. */
|
|
|
.ck.ck-button-action,
|
|
|
a.ck.ck-button-action {
|
|
|
@mixin ck-button-colors --ck-color-button-action;
|
|
|
|
|
|
color: var(--ck-color-button-action-text);
|
|
|
}
|
|
|
|
|
|
.ck.ck-button-bold,
|
|
|
a.ck.ck-button-bold {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements a button of given background color.
|
|
|
*
|
|
|
* @param {String} $background - Background color of the button.
|
|
|
* @param {String} $border - Border color of the button.
|
|
|
*/
|
|
|
@define-mixin ck-button-colors $prefix {
|
|
|
background: var($(prefix)-background);
|
|
|
|
|
|
&:not(.ck-disabled) {
|
|
|
&:hover {
|
|
|
background: var($(prefix)-hover-background);
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
background: var($(prefix)-active-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
|
|
|
&.ck-disabled {
|
|
|
background: var($(prefix)-disabled-background);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class which indicates that an element holding it is disabled.
|
|
|
*/
|
|
|
@define-mixin ck-disabled {
|
|
|
opacity: var(--ck-disabled-opacity);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},7258:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-button.ck-switchbutton {
|
|
|
& .ck-button__toggle {
|
|
|
display: block;
|
|
|
|
|
|
& .ck-button__toggle__inner {
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature
|
|
|
of the component, floating–point numbers have been used which, for the default font size
|
|
|
(see: --ck-font-size-base), will generate simple integers. */
|
|
|
:root {
|
|
|
/* 34px at 13px font-size */
|
|
|
--ck-switch-button-toggle-width: 2.6153846154em;
|
|
|
/* 14px at 13px font-size */
|
|
|
--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);
|
|
|
--ck-switch-button-translation: calc(
|
|
|
var(--ck-switch-button-toggle-width) -
|
|
|
var(--ck-switch-button-toggle-inner-size) -
|
|
|
2px /* Border */
|
|
|
);
|
|
|
--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);
|
|
|
}
|
|
|
|
|
|
.ck.ck-button.ck-switchbutton {
|
|
|
/* Unlike a regular button, the switch button text color and background should never change.
|
|
|
* Changing toggle switch (background, outline) is enough to carry the information about the
|
|
|
* state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)
|
|
|
*/
|
|
|
&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {
|
|
|
color: inherit;
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
@mixin ck-dir ltr {
|
|
|
/* Separate the label from the switch */
|
|
|
margin-right: calc(2 * var(--ck-spacing-large));
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
/* Separate the label from the switch */
|
|
|
margin-left: calc(2 * var(--ck-spacing-large));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-button__toggle {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
/* Make sure the toggle is always to the right as far as possible. */
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
/* Make sure the toggle is always to the left as far as possible. */
|
|
|
margin-right: auto;
|
|
|
}
|
|
|
|
|
|
/* Apply some smooth transition to the box-shadow and border. */
|
|
|
/* Gently animate the background color of the toggle switch */
|
|
|
transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;
|
|
|
border: 1px solid transparent;
|
|
|
width: var(--ck-switch-button-toggle-width);
|
|
|
background: var(--ck-color-switch-button-off-background);
|
|
|
|
|
|
& .ck-button__toggle__inner {
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-radius: calc(.5 * var(--ck-border-radius));
|
|
|
}
|
|
|
|
|
|
width: var(--ck-switch-button-toggle-inner-size);
|
|
|
height: var(--ck-switch-button-toggle-inner-size);
|
|
|
background: var(--ck-color-switch-button-inner-background);
|
|
|
|
|
|
/* Gently animate the inner part of the toggle switch */
|
|
|
transition: all 300ms ease;
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
background: var(--ck-color-switch-button-off-hover-background);
|
|
|
|
|
|
& .ck-button__toggle__inner {
|
|
|
box-shadow: var(--ck-switch-button-inner-hover-shadow);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-disabled .ck-button__toggle {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
/* Overriding default .ck-button:focus styles + an outline around the toogle */
|
|
|
&:focus {
|
|
|
border-color: transparent;
|
|
|
outline: none;
|
|
|
box-shadow: none;
|
|
|
|
|
|
& .ck-button__toggle {
|
|
|
box-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);
|
|
|
outline-offset: 1px;
|
|
|
outline: var(--ck-focus-ring);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
&.ck-on {
|
|
|
& .ck-button__toggle {
|
|
|
background: var(--ck-color-switch-button-on-background);
|
|
|
|
|
|
&:hover {
|
|
|
background: var(--ck-color-switch-button-on-hover-background);
|
|
|
}
|
|
|
|
|
|
& .ck-button__toggle__inner {
|
|
|
/*
|
|
|
* Move the toggle switch to the right. It will be animated.
|
|
|
*/
|
|
|
@mixin ck-dir ltr {
|
|
|
transform: translateX( var( --ck-switch-button-translation ) );
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class which indicates that an element holding it is disabled.
|
|
|
*/
|
|
|
@define-mixin ck-disabled {
|
|
|
opacity: var(--ck-disabled-opacity);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4095:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-list-button-padding);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,qCAAsC,CAFtC,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-collapsible.ck-collapsible_collapsed {
|
|
|
& > .ck-collapsible__children {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));
|
|
|
}
|
|
|
|
|
|
.ck.ck-collapsible {
|
|
|
& > .ck.ck-button {
|
|
|
width: 100%;
|
|
|
font-weight: bold;
|
|
|
padding: var(--ck-list-button-padding);
|
|
|
border-radius: 0;
|
|
|
color: inherit;
|
|
|
|
|
|
&:focus {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
&:active, &:not(:focus), &:hover:not(:focus) {
|
|
|
background: transparent;
|
|
|
border-color: transparent;
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
& > .ck-icon {
|
|
|
margin-right: var(--ck-spacing-medium);
|
|
|
width: var(--ck-collapsible-arrow-size);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-collapsible__children {
|
|
|
padding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
&.ck-collapsible_collapsed {
|
|
|
& > .ck.ck-button .ck-icon {
|
|
|
transform: rotate(-90deg);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4923:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-color-grid {
|
|
|
display: grid;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-color-grid-tile-size: 24px;
|
|
|
|
|
|
/* Not using global colors here because these may change but some colors in a pallette
|
|
|
* require special treatment. For instance, this ensures no matter what the UI text color is,
|
|
|
* the check icon will look good on the black color tile. */
|
|
|
--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);
|
|
|
}
|
|
|
|
|
|
.ck.ck-color-grid {
|
|
|
grid-gap: 5px;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-color-grid__tile {
|
|
|
width: var(--ck-color-grid-tile-size);
|
|
|
height: var(--ck-color-grid-tile-size);
|
|
|
min-width: var(--ck-color-grid-tile-size);
|
|
|
min-height: var(--ck-color-grid-tile-size);
|
|
|
padding: 0;
|
|
|
transition: .2s ease box-shadow;
|
|
|
border: 0;
|
|
|
|
|
|
&.ck-disabled {
|
|
|
cursor: unset;
|
|
|
transition: unset;
|
|
|
}
|
|
|
|
|
|
&.ck-color-selector__color-tile_bordered {
|
|
|
box-shadow: 0 0 0 1px var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& .ck.ck-icon {
|
|
|
display: none;
|
|
|
color: var(--ck-color-color-grid-check-icon);
|
|
|
}
|
|
|
|
|
|
&.ck-on {
|
|
|
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);
|
|
|
|
|
|
& .ck.ck-icon {
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-on,
|
|
|
&:focus:not( .ck-disabled ),
|
|
|
&:hover:not( .ck-disabled ) {
|
|
|
/* Disable the default .ck-button's border ring. */
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
&:focus:not( .ck-disabled ),
|
|
|
&:hover:not( .ck-disabled ) {
|
|
|
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-color-grid__label {
|
|
|
padding: 0 var(--ck-spacing-standard);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4257:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.color-picker-hex-input {
|
|
|
width: max-content;
|
|
|
|
|
|
& .ck.ck-input {
|
|
|
min-width: unset;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-color-picker__row {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
justify-content: space-between;
|
|
|
margin: var(--ck-spacing-large) 0 0;
|
|
|
width: unset;
|
|
|
|
|
|
& .ck.ck-labeled-field-view {
|
|
|
padding-top: unset;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-input-text {
|
|
|
width: unset;
|
|
|
}
|
|
|
|
|
|
& .ck-color-picker__hash-view {
|
|
|
padding-top: var(--ck-spacing-tiny);
|
|
|
padding-right: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},6306:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-color-selector {
|
|
|
/* View fragment with color grids. */
|
|
|
& .ck-color-grids-fragment {
|
|
|
& .ck-button.ck-color-selector__remove-color,
|
|
|
& .ck-button.ck-color-selector__color-picker {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
justify-content: flex-start;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* View fragment with a color picker. */
|
|
|
& .ck-color-picker-fragment {
|
|
|
& .ck.ck-color-selector_action-bar {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
|
|
|
& .ck-button-save,
|
|
|
& .ck-button-cancel {
|
|
|
flex: 1
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-color-selector {
|
|
|
/* View fragment with color grids. */
|
|
|
& .ck-color-grids-fragment {
|
|
|
& .ck-button.ck-color-selector__remove-color,
|
|
|
& .ck-button.ck-color-selector__color-picker {
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button.ck-color-selector__color-picker {
|
|
|
padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& .ck.ck-icon {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-right: var(--ck-spacing-standard);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& label.ck.ck-color-grid__label {
|
|
|
font-weight: unset;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* View fragment with a color picker. */
|
|
|
& .ck-color-picker-fragment {
|
|
|
& .ck.ck-color-picker {
|
|
|
padding: 8px;
|
|
|
|
|
|
& .hex-color-picker {
|
|
|
height: 100px;
|
|
|
min-width: 180px;
|
|
|
|
|
|
&::part(saturation) {
|
|
|
border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;
|
|
|
}
|
|
|
|
|
|
&::part(hue) {
|
|
|
border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);
|
|
|
}
|
|
|
|
|
|
&::part(saturation-pointer),
|
|
|
&::part(hue-pointer) {
|
|
|
width: 15px;
|
|
|
height: 15px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-color-selector_action-bar {
|
|
|
padding: 0 8px 8px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},5062:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-dropdown-max-width: 75vw;
|
|
|
}
|
|
|
|
|
|
.ck.ck-dropdown {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
|
|
|
& .ck-dropdown__arrow {
|
|
|
pointer-events: none;
|
|
|
z-index: var(--ck-z-default);
|
|
|
}
|
|
|
|
|
|
/* Dropdown button should span horizontally, e.g. in vertical toolbars */
|
|
|
& .ck-button.ck-dropdown__button {
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-dropdown__panel {
|
|
|
display: none;
|
|
|
z-index: var(--ck-z-modal);
|
|
|
max-width: var(--ck-dropdown-max-width);
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
&.ck-dropdown__panel-visible {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_ne,
|
|
|
&.ck-dropdown__panel_nw,
|
|
|
&.ck-dropdown__panel_n,
|
|
|
&.ck-dropdown__panel_nmw,
|
|
|
&.ck-dropdown__panel_nme {
|
|
|
bottom: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_se,
|
|
|
&.ck-dropdown__panel_sw,
|
|
|
&.ck-dropdown__panel_smw,
|
|
|
&.ck-dropdown__panel_sme,
|
|
|
&.ck-dropdown__panel_s {
|
|
|
/*
|
|
|
* Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/1053.
|
|
|
*/
|
|
|
top: 100%;
|
|
|
bottom: auto;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_ne,
|
|
|
&.ck-dropdown__panel_se {
|
|
|
left: 0px;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_nw,
|
|
|
&.ck-dropdown__panel_sw {
|
|
|
right: 0px;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_s,
|
|
|
&.ck-dropdown__panel_n {
|
|
|
/* Positioning panels relative to the center of the button */
|
|
|
left: 50%;
|
|
|
transform: translateX(-50%);
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_nmw,
|
|
|
&.ck-dropdown__panel_smw {
|
|
|
/* Positioning panels relative to the middle-west of the button */
|
|
|
left: 75%;
|
|
|
transform: translateX(-75%);
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_nme,
|
|
|
&.ck-dropdown__panel_sme {
|
|
|
/* Positioning panels relative to the middle-east of the button */
|
|
|
left: 25%;
|
|
|
transform: translateX(-25%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/7874
|
|
|
*/
|
|
|
.ck.ck-toolbar .ck-dropdown__panel {
|
|
|
z-index: calc( var(--ck-z-modal) + 1 );
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));
|
|
|
}
|
|
|
|
|
|
.ck.ck-dropdown {
|
|
|
/* Enable font size inheritance, which allows fluid UI scaling. */
|
|
|
font-size: inherit;
|
|
|
|
|
|
& .ck-dropdown__arrow {
|
|
|
width: var(--ck-dropdown-arrow-size);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
& .ck-dropdown__arrow {
|
|
|
right: var(--ck-spacing-standard);
|
|
|
|
|
|
/* A space to accommodate the triangle. */
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
& .ck-dropdown__arrow {
|
|
|
left: var(--ck-spacing-standard);
|
|
|
|
|
|
/* A space to accommodate the triangle. */
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-disabled .ck-dropdown__arrow {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
& .ck-button.ck-dropdown__button {
|
|
|
@mixin ck-dir ltr {
|
|
|
&:not(.ck-button_with-text) {
|
|
|
/* Make sure dropdowns with just an icon have the right inner spacing */
|
|
|
padding-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
&:not(.ck-button_with-text) {
|
|
|
/* Make sure dropdowns with just an icon have the right inner spacing */
|
|
|
padding-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* #23 */
|
|
|
& .ck-button__label {
|
|
|
width: 7em;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
|
|
|
&.ck-disabled .ck-button__label {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/816 */
|
|
|
&.ck-on {
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__button_label-width_auto .ck-button__label {
|
|
|
width: auto;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/8699 */
|
|
|
&.ck-off:active,
|
|
|
&.ck-on:active {
|
|
|
box-shadow: none;
|
|
|
|
|
|
&:focus {
|
|
|
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-dropdown__panel {
|
|
|
@mixin ck-rounded-corners;
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
background: var(--ck-color-dropdown-panel-background);
|
|
|
border: 1px solid var(--ck-color-dropdown-panel-border);
|
|
|
bottom: 0;
|
|
|
|
|
|
/* Make sure the panel is at least as wide as the drop-down's button. */
|
|
|
min-width: 100%;
|
|
|
|
|
|
/* Disabled corner border radius to be consistent with the .dropdown__button
|
|
|
https://github.com/ckeditor/ckeditor5/issues/816 */
|
|
|
&.ck-dropdown__panel_se {
|
|
|
border-top-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_sw {
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_ne {
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_nw {
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class which indicates that an element holding it is disabled.
|
|
|
*/
|
|
|
@define-mixin ck-disabled {
|
|
|
opacity: var(--ck-disabled-opacity);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},1883:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
.ck.ck-dropdown .ck-dropdown__panel .ck-list {
|
|
|
/* Disabled radius of top-left border to be consistent with .dropdown__button
|
|
|
https://github.com/ckeditor/ckeditor5/issues/816 */
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
/* Make sure the button belonging to the first/last child of the list goes well with the
|
|
|
border radius of the entire panel. */
|
|
|
& .ck-list__item {
|
|
|
&:first-child .ck-button {
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:last-child .ck-button {
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4791:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-splitbutton {
|
|
|
/* Enable font size inheritance, which allows fluid UI scaling. */
|
|
|
font-size: inherit;
|
|
|
|
|
|
& .ck-splitbutton__action:focus {
|
|
|
z-index: calc(var(--ck-z-default) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-color-split-button-hover-background: hsl(0, 0%, 92%);
|
|
|
--ck-color-split-button-hover-border: hsl(0, 0%, 70%);
|
|
|
}
|
|
|
|
|
|
.ck.ck-splitbutton {
|
|
|
/*
|
|
|
* Note: ck-rounded and ck-dir mixins don't go together (because they both use @nest).
|
|
|
*/
|
|
|
&:hover > .ck-splitbutton__action,
|
|
|
&.ck-splitbutton_open > .ck-splitbutton__action {
|
|
|
@nest [dir="ltr"] & {
|
|
|
/* Don't round the action button on the right side */
|
|
|
border-top-right-radius: unset;
|
|
|
border-bottom-right-radius: unset;
|
|
|
}
|
|
|
|
|
|
@nest [dir="rtl"] & {
|
|
|
/* Don't round the action button on the left side */
|
|
|
border-top-left-radius: unset;
|
|
|
border-bottom-left-radius: unset;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-splitbutton__arrow {
|
|
|
/* It's a text-less button and since the icon is positioned absolutely in such situation,
|
|
|
it must get some arbitrary min-width. */
|
|
|
min-width: unset;
|
|
|
|
|
|
@nest [dir="ltr"] & {
|
|
|
/* Don't round the arrow button on the left side */
|
|
|
border-top-left-radius: unset;
|
|
|
border-bottom-left-radius: unset;
|
|
|
}
|
|
|
|
|
|
@nest [dir="rtl"] & {
|
|
|
/* Don't round the arrow button on the right side */
|
|
|
border-top-right-radius: unset;
|
|
|
border-bottom-right-radius: unset;
|
|
|
}
|
|
|
|
|
|
& svg {
|
|
|
width: var(--ck-dropdown-arrow-size);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Make sure the divider stretches 100% height of the button
|
|
|
https://github.com/ckeditor/ckeditor5/issues/10936 */
|
|
|
& > .ck-splitbutton__arrow:not(:focus) {
|
|
|
border-top-width: 0px;
|
|
|
border-bottom-width: 0px;
|
|
|
}
|
|
|
|
|
|
/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling
|
|
|
as a whole. The background of both buttons should stand out and there should be a visual
|
|
|
separation between both buttons. */
|
|
|
&.ck-splitbutton_open,
|
|
|
&:hover {
|
|
|
/* When the split button hovered as a whole, not as individual buttons. */
|
|
|
& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {
|
|
|
background: var(--ck-color-split-button-hover-background);
|
|
|
}
|
|
|
|
|
|
/* Splitbutton separator needs to be set with the ::after pseudoselector
|
|
|
to display properly the borders on focus */
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 100%;
|
|
|
background-color: var(--ck-color-split-button-hover-border);
|
|
|
}
|
|
|
|
|
|
/* Make sure the divider between the buttons looks fine when the button is focused */
|
|
|
& > .ck-splitbutton__arrow:focus::after {
|
|
|
--ck-color-split-button-hover-border: var(--ck-color-focus-border);
|
|
|
}
|
|
|
|
|
|
@nest [dir="ltr"] & {
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
|
|
left: -1px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@nest [dir="rtl"] & {
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
|
|
right: -1px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Don't round the bottom left and right corners of the buttons when "open"
|
|
|
https://github.com/ckeditor/ckeditor5/issues/816 */
|
|
|
&.ck-splitbutton_open {
|
|
|
@mixin ck-rounded-corners {
|
|
|
& > .ck-splitbutton__action {
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
& > .ck-splitbutton__arrow {
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2704:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-toolbar-dropdown-max-width: 60vw;
|
|
|
}
|
|
|
|
|
|
.ck.ck-toolbar-dropdown > .ck-dropdown__panel {
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/5586 */
|
|
|
width: max-content;
|
|
|
max-width: var(--ck-toolbar-dropdown-max-width);
|
|
|
|
|
|
& .ck-button {
|
|
|
&:focus {
|
|
|
z-index: calc(var(--ck-z-default) + 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-toolbar-dropdown .ck-toolbar {
|
|
|
border: 0;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},9847:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
@import "../../../mixins/_focus.css";
|
|
|
@import "../../mixins/_button.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-color-editable-blur-selection: hsl(0, 0%, 85%);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable:not(.ck-editor__nested-editable) {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
&.ck-focused {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-inner-shadow);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable_inline {
|
|
|
overflow: auto;
|
|
|
padding: 0 var(--ck-spacing-standard);
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
&[dir="ltr"] {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
&[dir="rtl"] {
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */
|
|
|
& > *:first-child {
|
|
|
margin-top: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/847 */
|
|
|
& > *:last-child {
|
|
|
/*
|
|
|
* This value should match with the default margins of the block elements (like .media or .image)
|
|
|
* to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).
|
|
|
*/
|
|
|
margin-bottom: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/6517 */
|
|
|
&.ck-blurred ::selection {
|
|
|
background: var(--ck-color-editable-blur-selection);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */
|
|
|
.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {
|
|
|
&::after {
|
|
|
border-bottom-color: var(--ck-color-panel-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {
|
|
|
&::after {
|
|
|
border-top-color: var(--ck-color-panel-background);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},1874:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header .ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAkBD,CAbC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-form__header {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
|
|
|
& h2.ck-form__header__label {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-form-header-height: 38px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-form__header {
|
|
|
padding: var(--ck-spacing-small) var(--ck-spacing-large);
|
|
|
height: var(--ck-form-header-height);
|
|
|
line-height: var(--ck-form-header-height);
|
|
|
border-bottom: 1px solid var(--ck-color-base-border);
|
|
|
|
|
|
& .ck-icon {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-right: var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-form__header__label {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4746:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-highlighted-text mark {
|
|
|
background: var(--ck-color-highlight-background);
|
|
|
vertical-align: initial;
|
|
|
font-weight: inherit;
|
|
|
line-height: inherit;
|
|
|
font-size: inherit;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},1977:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-icon {
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));
|
|
|
}
|
|
|
|
|
|
.ck.ck-icon {
|
|
|
width: var(--ck-icon-size);
|
|
|
height: var(--ck-icon-size);
|
|
|
|
|
|
/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */
|
|
|
font-size: .8333350694em;
|
|
|
|
|
|
/* Inherit cursor style (#5). */
|
|
|
cursor: inherit;
|
|
|
|
|
|
/* This will prevent blurry icons on Firefox. See #340. */
|
|
|
will-change: transform;
|
|
|
|
|
|
& * {
|
|
|
/* Inherit cursor style (#5). */
|
|
|
cursor: inherit;
|
|
|
}
|
|
|
|
|
|
/* Allows dynamic coloring of an icon by inheriting its color from the parent. */
|
|
|
&.ck-icon_inherit-color {
|
|
|
color: inherit;
|
|
|
|
|
|
& * {
|
|
|
color: inherit;
|
|
|
|
|
|
&:not([fill]) {
|
|
|
/* Needed by FF. */
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2470:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_focus.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-input-width: 18em;
|
|
|
|
|
|
/* Backward compatibility. */
|
|
|
--ck-input-text-width: var(--ck-input-width);
|
|
|
}
|
|
|
|
|
|
.ck.ck-input {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
background: var(--ck-color-input-background);
|
|
|
border: 1px solid var(--ck-color-input-border);
|
|
|
padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);
|
|
|
min-width: var(--ck-input-width);
|
|
|
|
|
|
/* This is important to stay of the same height as surrounding buttons */
|
|
|
min-height: var(--ck-ui-component-min-height);
|
|
|
|
|
|
/* Apply some smooth transition to the box-shadow and border. */
|
|
|
transition: box-shadow .1s ease-in-out, border .1s ease-in-out;
|
|
|
|
|
|
&:focus {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
|
|
}
|
|
|
|
|
|
&[readonly] {
|
|
|
border: 1px solid var(--ck-color-input-disabled-border);
|
|
|
background: var(--ck-color-input-disabled-background);
|
|
|
color: var(--ck-color-input-disabled-text);
|
|
|
|
|
|
&:focus {
|
|
|
/* The read-only input should have a slightly less visible shadow when focused. */
|
|
|
@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-error {
|
|
|
border-color: var(--ck-color-input-error-border);
|
|
|
animation: ck-input-shake .3s ease both;
|
|
|
|
|
|
&:focus {
|
|
|
@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-input-shake {
|
|
|
20% {
|
|
|
transform: translateX(-2px);
|
|
|
}
|
|
|
|
|
|
40% {
|
|
|
transform: translateX(2px);
|
|
|
}
|
|
|
|
|
|
60% {
|
|
|
transform: translateX(-1px);
|
|
|
}
|
|
|
|
|
|
80% {
|
|
|
transform: translateX(1px);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3525:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-label {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
.ck.ck-voice-label {
|
|
|
display: none;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-label {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2933:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD+GD,CA1GA,2FCDE,qCD2GF,CAvGC,mEACC,UAoCD,CAlCC,gFACC,KAgCD,CAjCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBA4BF,CAjCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAqBF,CAjCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,4WAGE,+HAYF,CAfA,4WAOE,wIAQF,CAfA,wVAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-labeled-field-view {
|
|
|
& > .ck.ck-labeled-field-view__input-wrapper {
|
|
|
display: flex;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-label {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);
|
|
|
--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);
|
|
|
--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);
|
|
|
--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));
|
|
|
--ck-color-labeled-field-label-background: var(--ck-color-base-background);
|
|
|
}
|
|
|
|
|
|
.ck.ck-labeled-field-view {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
& > .ck.ck-labeled-field-view__input-wrapper {
|
|
|
width: 100%;
|
|
|
|
|
|
& > .ck.ck-label {
|
|
|
top: 0px;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
left: 0px;
|
|
|
transform-origin: 0 0;
|
|
|
/* By default, display the label scaled down above the field. */
|
|
|
transform: translate(var(--ck-spacing-medium), -6px) scale(.75);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
right: 0px;
|
|
|
transform-origin: 100% 0;
|
|
|
transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);
|
|
|
}
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
background: var(--ck-color-labeled-field-label-background);
|
|
|
padding: 0 calc(.5 * var(--ck-font-size-tiny));
|
|
|
line-height: initial;
|
|
|
font-weight: normal;
|
|
|
|
|
|
/* Prevent overflow when the label is longer than the input */
|
|
|
text-overflow: ellipsis;
|
|
|
overflow: hidden;
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
transition:
|
|
|
transform var(--ck-labeled-field-view-transition),
|
|
|
padding var(--ck-labeled-field-view-transition),
|
|
|
background var(--ck-labeled-field-view-transition);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-error {
|
|
|
& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
|
|
color: var(--ck-color-base-error);
|
|
|
}
|
|
|
|
|
|
& .ck-input:not([readonly]) + .ck.ck-label {
|
|
|
color: var(--ck-color-base-error);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-labeled-field-view__status {
|
|
|
font-size: var(--ck-font-size-small);
|
|
|
margin-top: var(--ck-spacing-small);
|
|
|
|
|
|
/* Let the info wrap to the next line to avoid stretching the layout horizontally.
|
|
|
The status could be very long. */
|
|
|
white-space: normal;
|
|
|
|
|
|
&.ck-labeled-field-view__status_error {
|
|
|
color: var(--ck-color-base-error);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Disabled fields and fields that have no focus should fade out. */
|
|
|
&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
|
|
|
&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
|
|
color: var(--ck-color-input-disabled-text);
|
|
|
}
|
|
|
|
|
|
/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
|
|
|
&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
|
|
@mixin ck-dir ltr {
|
|
|
transform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
transform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);
|
|
|
}
|
|
|
|
|
|
/* Compensate for the default translate position. */
|
|
|
max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));
|
|
|
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
/*------ DropdownView integration ----------------------------------------------------------------------------------- */
|
|
|
|
|
|
/* Make sure dropdown' background color in any of dropdown's state does not collide with labeled field. */
|
|
|
& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
/* When the dropdown is "empty", the labeled field label replaces its label. */
|
|
|
&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
|
|
|
/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */
|
|
|
&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {
|
|
|
max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},179:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}:root{--ck-list-button-padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list__item .ck-button{text-align:left}[dir=rtl] .ck.ck-list__item .ck-button{text-align:right}.ck.ck-list__item .ck-button{padding:var(--ck-list-button-padding)}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,MACC,oJAGD,CAEA,YCLC,eDUD,CALA,+DCDE,qCDMF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cAgED,CA9DC,6BAGC,eAAgB,CAFhB,gBAAiB,CACjB,UA6CD,CA/CA,uCAME,eAyCF,CA/CA,uCAUE,gBAqCF,CA/CA,6BAgBC,qCA+BD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,mCACC,cAAe,CACf,eAAiB,CACjB,oFACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../mixins/_unselectable.css";
|
|
|
|
|
|
.ck.ck-list {
|
|
|
@mixin ck-unselectable;
|
|
|
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
|
|
|
& .ck-list__item,
|
|
|
& .ck-list__separator {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
/* Make sure that whatever child of the list item gets focus, it remains on the
|
|
|
top. Thanks to that, styles like box-shadow, outline, etc. are not masked by
|
|
|
adjacent list items. */
|
|
|
& .ck-list__item > *:focus {
|
|
|
position: relative;
|
|
|
z-index: var(--ck-z-default);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Makes element unselectable.
|
|
|
*/
|
|
|
@define-mixin ck-unselectable {
|
|
|
-moz-user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-list-button-padding:
|
|
|
calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))
|
|
|
calc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
|
}
|
|
|
|
|
|
.ck.ck-list {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
list-style-type: none;
|
|
|
background: var(--ck-color-list-background);
|
|
|
}
|
|
|
|
|
|
.ck.ck-list__item {
|
|
|
cursor: default;
|
|
|
min-width: 12em;
|
|
|
|
|
|
& .ck-button {
|
|
|
min-height: unset;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
/* List items should have the same height. Use absolute units to make sure it is so
|
|
|
because e.g. different heading styles may have different height
|
|
|
https://github.com/ckeditor/ckeditor5-heading/issues/63 */
|
|
|
padding: var(--ck-list-button-padding);
|
|
|
|
|
|
& .ck-button__label {
|
|
|
/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */
|
|
|
line-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&.ck-on {
|
|
|
background: var(--ck-color-list-button-on-background);
|
|
|
color: var(--ck-color-list-button-on-text);
|
|
|
|
|
|
&:active {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&:hover:not(.ck-disabled) {
|
|
|
background: var(--ck-color-list-button-on-background-focus);
|
|
|
}
|
|
|
|
|
|
&:focus:not(.ck-switchbutton):not(.ck-disabled) {
|
|
|
border-color: var(--ck-color-base-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:hover:not(.ck-disabled) {
|
|
|
background: var(--ck-color-list-button-hover-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* It's unnecessary to change the background/text of a switch toggle; it has different ways
|
|
|
of conveying its state (like the switcher) */
|
|
|
& .ck-switchbutton {
|
|
|
&.ck-on {
|
|
|
background: var(--ck-color-list-background);
|
|
|
color: inherit;
|
|
|
|
|
|
&:hover:not(.ck-disabled) {
|
|
|
background: var(--ck-color-list-button-hover-background);
|
|
|
color: inherit;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck-list .ck-list__group {
|
|
|
padding-top: var(--ck-spacing-medium);
|
|
|
|
|
|
/* The group should have a border when it's not the first item. */
|
|
|
*:not(.ck-hidden) ~ & {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& > .ck-label {
|
|
|
font-size: 11px;
|
|
|
font-weight: bold;
|
|
|
padding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-list__separator {
|
|
|
height: 1px;
|
|
|
width: 100%;
|
|
|
background: var(--ck-color-base-border);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4460:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/* Make sure the balloon arrow does not float over its children. */
|
|
|
--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);
|
|
|
}
|
|
|
|
|
|
.ck.ck-balloon-panel {
|
|
|
display: none;
|
|
|
position: absolute;
|
|
|
|
|
|
z-index: var(--ck-z-modal);
|
|
|
|
|
|
&.ck-balloon-panel_with-arrow {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
z-index: var(--ck-balloon-panel-arrow-z-index);
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_n"] {
|
|
|
&::before {
|
|
|
z-index: var(--ck-balloon-panel-arrow-z-index);
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_s"] {
|
|
|
&::before {
|
|
|
z-index: var(--ck-balloon-panel-arrow-z-index);
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_visible {
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-balloon-border-width: 1px;
|
|
|
--ck-balloon-arrow-offset: 2px;
|
|
|
--ck-balloon-arrow-height: 10px;
|
|
|
--ck-balloon-arrow-half-width: 8px;
|
|
|
--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);
|
|
|
}
|
|
|
|
|
|
.ck.ck-balloon-panel {
|
|
|
@mixin ck-rounded-corners;
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
min-height: 15px;
|
|
|
|
|
|
background: var(--ck-color-panel-background);
|
|
|
border: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);
|
|
|
|
|
|
&.ck-balloon-panel_with-arrow {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-style: solid;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_n"] {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
border-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
border-color: transparent transparent var(--ck-color-panel-border) transparent;
|
|
|
margin-top: calc( -1 * var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: transparent transparent var(--ck-color-panel-background) transparent;
|
|
|
margin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_s"] {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
border-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
border-color: var(--ck-color-panel-border) transparent transparent;
|
|
|
filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));
|
|
|
margin-bottom: calc( -1 * var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: var(--ck-color-panel-background) transparent transparent transparent;
|
|
|
margin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_e"] {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
border-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
border-color: transparent transparent transparent var(--ck-color-panel-border);
|
|
|
margin-right: calc( -1 * var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: transparent transparent transparent var(--ck-color-panel-background);
|
|
|
margin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_w"] {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
border-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
border-color: transparent var(--ck-color-panel-border) transparent transparent;
|
|
|
margin-left: calc( -1 * var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: transparent var(--ck-color-panel-background) transparent transparent;
|
|
|
margin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_n {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: 50%;
|
|
|
margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_nw {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_ne {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_s {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: 50%;
|
|
|
margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_sw {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_se {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_sme {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: 25%;
|
|
|
margin-right: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_smw {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: 25%;
|
|
|
margin-left: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_nme {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: 25%;
|
|
|
margin-right: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_nmw {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: 25%;
|
|
|
margin-left: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_e {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));
|
|
|
top: 50%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_w {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));
|
|
|
top: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},7592:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-balloon-rotator__navigation {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
/* Buttons inside a toolbar should be centered when rotator bar is wider.
|
|
|
* See: https://github.com/ckeditor/ckeditor5-ui/issues/495
|
|
|
*/
|
|
|
.ck .ck-balloon-rotator__content .ck-toolbar {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-balloon-rotator__navigation {
|
|
|
background: var(--ck-color-toolbar-background);
|
|
|
border-bottom: 1px solid var(--ck-color-toolbar-border);
|
|
|
padding: 0 var(--ck-spacing-small);
|
|
|
|
|
|
/* Let's keep similar appearance to \`ck-toolbar\`. */
|
|
|
& > * {
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
margin-top: var(--ck-spacing-small);
|
|
|
margin-bottom: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
/* Gives counter more breath than buttons. */
|
|
|
& .ck-balloon-rotator__counter {
|
|
|
margin-right: var(--ck-spacing-standard);
|
|
|
|
|
|
/* We need to use smaller margin because of previous button's right margin. */
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-balloon-rotator__content {
|
|
|
|
|
|
/* Disable default annotation shadow inside rotator with fake panels. */
|
|
|
& .ck.ck-annotation-wrapper {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},6356:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-fake-panel {
|
|
|
position: absolute;
|
|
|
|
|
|
/* Fake panels should be placed under main balloon content. */
|
|
|
z-index: calc(var(--ck-z-modal) - 1);
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div {
|
|
|
position: absolute;
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div:nth-child( 1 ) {
|
|
|
z-index: 2;
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div:nth-child( 2 ) {
|
|
|
z-index: 1;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-balloon-fake-panel-offset-horizontal: 6px;
|
|
|
--ck-balloon-fake-panel-offset-vertical: 6px;
|
|
|
}
|
|
|
|
|
|
/* Let's use \`.ck-balloon-panel\` appearance. See: balloonpanel.css. */
|
|
|
.ck .ck-fake-panel div {
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
min-height: 15px;
|
|
|
|
|
|
background: var(--ck-color-panel-background);
|
|
|
border: 1px solid var(--ck-color-panel-border);
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div:nth-child( 1 ) {
|
|
|
margin-left: var(--ck-balloon-fake-panel-offset-horizontal);
|
|
|
margin-top: var(--ck-balloon-fake-panel-offset-vertical);
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div:nth-child( 2 ) {
|
|
|
margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);
|
|
|
margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);
|
|
|
}
|
|
|
.ck .ck-fake-panel div:nth-child( 3 ) {
|
|
|
margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);
|
|
|
margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);
|
|
|
}
|
|
|
|
|
|
/* If balloon is positioned above element, we need to move fake panel to the top. */
|
|
|
.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,
|
|
|
.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,
|
|
|
.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {
|
|
|
--ck-balloon-fake-panel-offset-vertical: -6px;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3707:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-sticky-panel {
|
|
|
& .ck-sticky-panel__content_sticky {
|
|
|
z-index: var(--ck-z-modal); /* #315 */
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
|
}
|
|
|
|
|
|
& .ck-sticky-panel__content_sticky_bottom-limit {
|
|
|
top: auto;
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
|
|
|
.ck.ck-sticky-panel {
|
|
|
& .ck-sticky-panel__content_sticky {
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
border-width: 0 1px 1px;
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},6603:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck-vertical-form .ck-button {
|
|
|
&::after {
|
|
|
content: "";
|
|
|
width: 0;
|
|
|
position: absolute;
|
|
|
right: -1px;
|
|
|
top: -1px;
|
|
|
bottom: -1px;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
|
|
|
&:focus::after {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-responsive-form {
|
|
|
@mixin ck-media-phone {
|
|
|
& .ck-button {
|
|
|
&::after {
|
|
|
content: "";
|
|
|
width: 0;
|
|
|
position: absolute;
|
|
|
right: -1px;
|
|
|
top: -1px;
|
|
|
bottom: -1px;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
|
|
|
&:focus::after {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck-vertical-form > .ck-button:nth-last-child(2)::after {
|
|
|
border-right: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
.ck.ck-responsive-form {
|
|
|
padding: var(--ck-spacing-large);
|
|
|
|
|
|
&:focus {
|
|
|
/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
& > :not(:first-child) {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
& > :not(:last-child) {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
padding: 0;
|
|
|
width: calc(.8 * var(--ck-input-width));
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;
|
|
|
|
|
|
& .ck-input-text {
|
|
|
min-width: 0;
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
/* Let the long error messages wrap in the narrow form. */
|
|
|
& .ck-labeled-field-view__error {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */
|
|
|
& > .ck-button:nth-last-child(2) {
|
|
|
&::after {
|
|
|
border-right: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-button:nth-last-child(1),
|
|
|
& > .ck-button:nth-last-child(2) {
|
|
|
padding: var(--ck-spacing-standard);
|
|
|
margin-top: var(--ck-spacing-large);
|
|
|
border-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: 0;
|
|
|
|
|
|
&:last-of-type {
|
|
|
border-right: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},9332:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/search/search.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-search {
|
|
|
& > .ck-labeled-field-view {
|
|
|
& > .ck-labeled-field-view__input-wrapper > .ck-icon {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
left: var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
right: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-search__reset {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-search__results {
|
|
|
& > .ck-search__info {
|
|
|
& > span:first-child {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
/* Hide the filtered view when nothing was found */
|
|
|
&:not(.ck-hidden) ~ * {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));
|
|
|
}
|
|
|
|
|
|
.ck.ck-search {
|
|
|
& > .ck-labeled-field-view {
|
|
|
& .ck-input {
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-search__query_with-icon {
|
|
|
--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);
|
|
|
|
|
|
& > .ck-labeled-field-view__input-wrapper > .ck-icon {
|
|
|
opacity: .5;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
& .ck-input {
|
|
|
width: 100%;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
padding-left: var(--ck-search-field-view-horizontal-spacing);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
&:not(.ck-input-text_empty) {
|
|
|
padding-left: var(--ck-search-field-view-horizontal-spacing);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-search__query_with-reset {
|
|
|
--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);
|
|
|
|
|
|
&.ck-labeled-field-view_empty {
|
|
|
--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
& .ck-search__reset {
|
|
|
min-width: auto;
|
|
|
min-height: auto;
|
|
|
|
|
|
background: none;
|
|
|
opacity: .5;
|
|
|
padding: 0;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
right: var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
left: var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-input {
|
|
|
width: 100%;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
&:not(.ck-input-text_empty) {
|
|
|
padding-right: var(--ck-search-field-view-horizontal-spacing);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
padding-right: var(--ck-search-field-view-horizontal-spacing);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-search__results {
|
|
|
min-width: 100%;
|
|
|
|
|
|
& > .ck-search__info {
|
|
|
width: 100%;
|
|
|
padding: var(--ck-spacing-medium) var(--ck-spacing-large);
|
|
|
|
|
|
& * {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
|
|
|
& > span:first-child {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
& > span:last-child {
|
|
|
margin-top: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const m=g},6446:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-toolbar-spinner-size: 18px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-spinner-container {
|
|
|
display: block;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ck.ck-spinner {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
margin: 0 auto;
|
|
|
transform: translateY(-50%);
|
|
|
z-index: 1;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-toolbar-spinner-size: 18px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-spinner-container {
|
|
|
width: var(--ck-toolbar-spinner-size);
|
|
|
height: var(--ck-toolbar-spinner-size);
|
|
|
animation: 1.5s infinite rotate linear;
|
|
|
}
|
|
|
|
|
|
.ck.ck-spinner {
|
|
|
width: var(--ck-toolbar-spinner-size);
|
|
|
height: var(--ck-toolbar-spinner-size);
|
|
|
border-radius: 50%;
|
|
|
border: 2px solid var(--ck-color-text);
|
|
|
border-top-color: transparent;
|
|
|
}
|
|
|
|
|
|
@keyframes rotate {
|
|
|
to {
|
|
|
transform: rotate(360deg)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const m=g},5224:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/*
|
|
|
* This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.
|
|
|
* This bug is especially visible when rows=1.
|
|
|
*/
|
|
|
.ck-textarea {
|
|
|
overflow-x: hidden
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4176:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-block-toolbar-button {
|
|
|
position: absolute;
|
|
|
z-index: var(--ck-z-default);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-block-toolbar-button: var(--ck-color-text);
|
|
|
--ck-block-toolbar-button-size: var(--ck-font-size-normal);
|
|
|
}
|
|
|
|
|
|
.ck.ck-block-toolbar-button {
|
|
|
color: var(--ck-color-block-toolbar-button);
|
|
|
font-size: var(--ck-block-toolbar-size);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4768:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../mixins/_unselectable.css";
|
|
|
|
|
|
.ck.ck-toolbar {
|
|
|
@mixin ck-unselectable;
|
|
|
|
|
|
display: flex;
|
|
|
flex-flow: row nowrap;
|
|
|
align-items: center;
|
|
|
|
|
|
& > .ck-toolbar__items {
|
|
|
display: flex;
|
|
|
flex-flow: row wrap;
|
|
|
align-items: center;
|
|
|
flex-grow: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
& .ck.ck-toolbar__separator {
|
|
|
display: inline-block;
|
|
|
|
|
|
/*
|
|
|
* A leading or trailing separator makes no sense (separates from nothing on one side).
|
|
|
* For instance, it can happen when toolbar items (also separators) are getting grouped one by one and
|
|
|
* moved to another toolbar in the dropdown.
|
|
|
*/
|
|
|
&:first-child,
|
|
|
&:last-child {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-toolbar__line-break {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_grouping > .ck-toolbar__items {
|
|
|
flex-wrap: nowrap;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_vertical > .ck-toolbar__items {
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_floating > .ck-toolbar__items {
|
|
|
flex-wrap: nowrap;
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-toolbar__grouped-dropdown {
|
|
|
& > .ck-dropdown__button .ck-dropdown__arrow {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Makes element unselectable.
|
|
|
*/
|
|
|
@define-mixin ck-unselectable {
|
|
|
-moz-user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-toolbar {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
background: var(--ck-color-toolbar-background);
|
|
|
padding: 0 var(--ck-spacing-small);
|
|
|
border: 1px solid var(--ck-color-toolbar-border);
|
|
|
|
|
|
& .ck.ck-toolbar__separator {
|
|
|
align-self: stretch;
|
|
|
width: 1px;
|
|
|
min-width: 1px;
|
|
|
background: var(--ck-color-toolbar-border);
|
|
|
|
|
|
/*
|
|
|
* These margins make the separators look better in balloon toolbars (when aligned with the "tip").
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/7493.
|
|
|
*/
|
|
|
margin-top: var(--ck-spacing-small);
|
|
|
margin-bottom: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
& .ck-toolbar__line-break {
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
& > .ck-toolbar__items {
|
|
|
& > *:not(.ck-toolbar__line-break) {
|
|
|
/* (#11) Separate toolbar items. */
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
/* Don't display a separator after an empty items container, for instance,
|
|
|
when all items were grouped */
|
|
|
&:empty + .ck.ck-toolbar__separator {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),
|
|
|
& > .ck.ck-toolbar__grouped-dropdown {
|
|
|
/* Make sure items wrapped to the next line have v-spacing */
|
|
|
margin-top: var(--ck-spacing-small);
|
|
|
margin-bottom: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_vertical {
|
|
|
/* Items in a vertical toolbar span the entire width. */
|
|
|
padding: 0;
|
|
|
|
|
|
/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */
|
|
|
& > .ck-toolbar__items > .ck {
|
|
|
/* Items in a vertical toolbar should span the horizontal space. */
|
|
|
width: 100%;
|
|
|
|
|
|
/* Items in a vertical toolbar should have no margin. */
|
|
|
margin: 0;
|
|
|
|
|
|
/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */
|
|
|
border-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_compact {
|
|
|
/* No spacing around items. */
|
|
|
padding: 0;
|
|
|
|
|
|
& > .ck-toolbar__items > * {
|
|
|
/* Compact toolbar items have no spacing between them. */
|
|
|
margin: 0;
|
|
|
|
|
|
/* "Middle" children should have no rounded corners. */
|
|
|
&:not(:first-child):not(:last-child) {
|
|
|
border-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-toolbar__grouped-dropdown {
|
|
|
/*
|
|
|
* Dropdown button has asymmetric padding to fit the arrow.
|
|
|
* This button has no arrow so let's revert that padding back to normal.
|
|
|
*/
|
|
|
& > .ck.ck-button.ck-dropdown__button {
|
|
|
padding-left: var(--ck-spacing-tiny);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* A drop-down containing the nested toolbar with configured items. */
|
|
|
& .ck-toolbar__nested-toolbar-dropdown {
|
|
|
/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */
|
|
|
& > .ck-dropdown__panel {
|
|
|
min-width: auto;
|
|
|
}
|
|
|
|
|
|
& > .ck-button > .ck-button__label {
|
|
|
max-width: 7em;
|
|
|
width: auto;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
@nest .ck-toolbar-container & {
|
|
|
border: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* stylelint-disable */
|
|
|
|
|
|
/*
|
|
|
* Styles for RTL toolbars.
|
|
|
*
|
|
|
* Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"
|
|
|
* because its parent is not controlled by the editor framework.
|
|
|
*/
|
|
|
[dir="rtl"] .ck.ck-toolbar,
|
|
|
.ck.ck-toolbar[dir="rtl"] {
|
|
|
& > .ck-toolbar__items > .ck {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
|
|
|
&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {
|
|
|
/* (#11) Separate toolbar items. */
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
& > .ck-toolbar__items > .ck:last-child {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_compact > .ck-toolbar__items > .ck {
|
|
|
/* No rounded corners on the right side of the first child. */
|
|
|
&:first-child {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
/* No rounded corners on the left side of the last child. */
|
|
|
&:last-child {
|
|
|
border-top-right-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Separate the the separator form the grouping dropdown when some items are grouped. */
|
|
|
& > .ck.ck-toolbar__separator {
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
/* Some spacing between the items and the separator before the grouped items dropdown. */
|
|
|
&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for LTR toolbars.
|
|
|
*
|
|
|
* Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"
|
|
|
* because its parent is not controlled by the editor framework.
|
|
|
*/
|
|
|
[dir="ltr"] .ck.ck-toolbar,
|
|
|
.ck.ck-toolbar[dir="ltr"] {
|
|
|
& > .ck-toolbar__items > .ck:last-child {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_compact > .ck-toolbar__items > .ck {
|
|
|
/* No rounded corners on the right side of the first child. */
|
|
|
&:first-child {
|
|
|
border-top-right-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
/* No rounded corners on the left side of the last child. */
|
|
|
&:last-child {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Separate the the separator form the grouping dropdown when some items are grouped. */
|
|
|
& > .ck.ck-toolbar__separator {
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
/* Some spacing between the items and the separator before the grouped items dropdown. */
|
|
|
&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* stylelint-enable */
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3888:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-balloon-panel.ck-tooltip {
|
|
|
/* Keep tooltips transparent for any interactions. */
|
|
|
pointer-events: none;
|
|
|
|
|
|
z-index: calc( var(--ck-z-modal) + 100 );
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
.ck.ck-balloon-panel.ck-tooltip {
|
|
|
--ck-balloon-border-width: 0px;
|
|
|
--ck-balloon-arrow-offset: 0px;
|
|
|
--ck-balloon-arrow-half-width: 4px;
|
|
|
--ck-balloon-arrow-height: 4px;
|
|
|
--ck-tooltip-text-padding: 4px;
|
|
|
--ck-color-panel-background: var(--ck-color-tooltip-background);
|
|
|
|
|
|
padding: 0 var(--ck-spacing-medium);
|
|
|
|
|
|
& .ck-tooltip__text {
|
|
|
font-size: .9em;
|
|
|
line-height: 1.5;
|
|
|
color: var(--ck-color-tooltip-text);
|
|
|
}
|
|
|
|
|
|
&.ck-tooltip_multi-line .ck-tooltip__text {
|
|
|
white-space: break-spaces;
|
|
|
display: inline-block;
|
|
|
padding: var(--ck-tooltip-text-padding) 0;
|
|
|
}
|
|
|
|
|
|
/* Reset balloon panel styles */
|
|
|
box-shadow: none;
|
|
|
|
|
|
/* Hide the default shadow of the .ck-balloon-panel tip */
|
|
|
&::before {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},5167:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_poweredby.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,CAIzD,yBAAgD,CC3GhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJ2GD,CIrGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class which hides an element in DOM.
|
|
|
*/
|
|
|
.ck-hidden {
|
|
|
/* Override selector specificity. Otherwise, all elements with some display
|
|
|
style defined will override this one, which is not a desired result. */
|
|
|
display: none !important;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-reset,
|
|
|
.ck.ck-reset_all,
|
|
|
.ck-reset_all *:not(.ck-reset_all-excluded *) {
|
|
|
box-sizing: border-box;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
position: static;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-z-default: 1;
|
|
|
--ck-z-modal: calc( var(--ck-z-default) + 999 );
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class that disables all transitions of the element and its children.
|
|
|
*/
|
|
|
.ck-transitions-disabled,
|
|
|
.ck-transitions-disabled * {
|
|
|
transition: none !important;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-powered-by-line-height: 10px;
|
|
|
--ck-powered-by-padding-vertical: 2px;
|
|
|
--ck-powered-by-padding-horizontal: 4px;
|
|
|
--ck-powered-by-text-color: hsl(0, 0%, 31%);
|
|
|
--ck-powered-by-border-radius: var(--ck-border-radius);
|
|
|
--ck-powered-by-background: hsl(0, 0%, 100%);
|
|
|
--ck-powered-by-border-color: var(--ck-color-focus-border);
|
|
|
}
|
|
|
|
|
|
.ck.ck-balloon-panel.ck-powered-by-balloon {
|
|
|
--ck-border-radius: var(--ck-powered-by-border-radius);
|
|
|
|
|
|
box-shadow: none;
|
|
|
background: var(--ck-powered-by-background);
|
|
|
min-height: unset;
|
|
|
z-index: calc( var(--ck-z-modal) - 1 );
|
|
|
|
|
|
& .ck.ck-powered-by {
|
|
|
line-height: var(--ck-powered-by-line-height);
|
|
|
|
|
|
& a {
|
|
|
cursor: pointer;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
opacity: .66;
|
|
|
filter: grayscale(80%);
|
|
|
line-height: var(--ck-powered-by-line-height);
|
|
|
padding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);
|
|
|
}
|
|
|
|
|
|
& .ck-powered-by__label {
|
|
|
font-size: 7.5px;
|
|
|
letter-spacing: -.2px;
|
|
|
padding-left: 2px;
|
|
|
text-transform: uppercase;
|
|
|
font-weight: bold;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
line-height: normal;
|
|
|
color: var(--ck-powered-by-text-color);
|
|
|
|
|
|
}
|
|
|
|
|
|
& .ck-icon {
|
|
|
display: block;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
& a {
|
|
|
filter: grayscale(0%);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="position_inside"] {
|
|
|
border-color: transparent;
|
|
|
}
|
|
|
|
|
|
&[class*="position_border"] {
|
|
|
border: var(--ck-focus-ring);
|
|
|
border-color: var(--ck-powered-by-border-color);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-base-foreground: hsl(0, 0%, 98%);
|
|
|
--ck-color-base-background: hsl(0, 0%, 100%);
|
|
|
--ck-color-base-border: hsl(220, 6%, 81%);
|
|
|
--ck-color-base-action: hsl(104, 50.2%, 42.5%);
|
|
|
--ck-color-base-focus: hsl(209, 92%, 70%);
|
|
|
--ck-color-base-text: hsl(0, 0%, 20%);
|
|
|
--ck-color-base-active: hsl(218.1, 100%, 58%);
|
|
|
--ck-color-base-active-focus: hsl(218.2, 100%, 52.5%);
|
|
|
--ck-color-base-error: hsl(15, 100%, 43%);
|
|
|
|
|
|
/* -- Generic colors ------------------------------------------------------------------------ */
|
|
|
|
|
|
--ck-color-focus-border-coordinates: 218, 81.8%, 56.9%;
|
|
|
--ck-color-focus-border: hsl(var(--ck-color-focus-border-coordinates));
|
|
|
--ck-color-focus-outer-shadow: hsl(212.4, 89.3%, 89%);
|
|
|
--ck-color-focus-disabled-shadow: hsla(209, 90%, 72%,.3);
|
|
|
--ck-color-focus-error-shadow: hsla(9,100%,56%,.3);
|
|
|
--ck-color-text: var(--ck-color-base-text);
|
|
|
--ck-color-shadow-drop: hsla(0, 0%, 0%, 0.15);
|
|
|
--ck-color-shadow-drop-active: hsla(0, 0%, 0%, 0.2);
|
|
|
--ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1);
|
|
|
|
|
|
/* -- Buttons ------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-button-default-background: transparent;
|
|
|
--ck-color-button-default-hover-background: hsl(0, 0%, 94.1%);
|
|
|
--ck-color-button-default-active-background: hsl(0, 0%, 94.1%);
|
|
|
--ck-color-button-default-disabled-background: transparent;
|
|
|
|
|
|
--ck-color-button-on-background: hsl(212, 100%, 97.1%);
|
|
|
--ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%);
|
|
|
--ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%);
|
|
|
--ck-color-button-on-disabled-background: hsl(211, 15%, 95%);
|
|
|
--ck-color-button-on-color: hsl(218.1, 100%, 58%);
|
|
|
|
|
|
|
|
|
--ck-color-button-action-background: var(--ck-color-base-action);
|
|
|
--ck-color-button-action-hover-background: hsl(104, 53.2%, 40.2%);
|
|
|
--ck-color-button-action-active-background: hsl(104, 53.2%, 40.2%);
|
|
|
--ck-color-button-action-disabled-background: hsl(104, 44%, 58%);
|
|
|
--ck-color-button-action-text: var(--ck-color-base-background);
|
|
|
|
|
|
--ck-color-button-save: hsl(120, 100%, 27%);
|
|
|
--ck-color-button-cancel: hsl(15, 100%, 43%);
|
|
|
|
|
|
--ck-color-switch-button-off-background: hsl(0, 0%, 57.6%);
|
|
|
--ck-color-switch-button-off-hover-background: hsl(0, 0%, 49%);
|
|
|
--ck-color-switch-button-on-background: var(--ck-color-button-action-background);
|
|
|
--ck-color-switch-button-on-hover-background: hsl(104, 53.2%, 40.2%);
|
|
|
--ck-color-switch-button-inner-background: var(--ck-color-base-background);
|
|
|
--ck-color-switch-button-inner-shadow: hsla(0, 0%, 0%, 0.1);
|
|
|
|
|
|
/* -- Dropdown ------------------------------------------------------------------------------ */
|
|
|
|
|
|
--ck-color-dropdown-panel-background: var(--ck-color-base-background);
|
|
|
--ck-color-dropdown-panel-border: var(--ck-color-base-border);
|
|
|
|
|
|
/* -- Input --------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-input-background: var(--ck-color-base-background);
|
|
|
--ck-color-input-border: var(--ck-color-base-border);
|
|
|
--ck-color-input-error-border: var(--ck-color-base-error);
|
|
|
--ck-color-input-text: var(--ck-color-base-text);
|
|
|
--ck-color-input-disabled-background: hsl(0, 0%, 95%);
|
|
|
--ck-color-input-disabled-border: var(--ck-color-base-border);
|
|
|
--ck-color-input-disabled-text: hsl(0, 0%, 46%);
|
|
|
|
|
|
/* -- List ---------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-list-background: var(--ck-color-base-background);
|
|
|
--ck-color-list-button-hover-background: var(--ck-color-button-default-hover-background);
|
|
|
--ck-color-list-button-on-background: var(--ck-color-button-on-color);
|
|
|
--ck-color-list-button-on-background-focus: var(--ck-color-button-on-color);
|
|
|
--ck-color-list-button-on-text: var(--ck-color-base-background);
|
|
|
|
|
|
/* -- Panel --------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-panel-background: var(--ck-color-base-background);
|
|
|
--ck-color-panel-border: var(--ck-color-base-border);
|
|
|
|
|
|
/* -- Toolbar ------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-toolbar-background: var(--ck-color-base-background);
|
|
|
--ck-color-toolbar-border: var(--ck-color-base-border);
|
|
|
|
|
|
/* -- Tooltip ------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-tooltip-background: var(--ck-color-base-text);
|
|
|
--ck-color-tooltip-text: var(--ck-color-base-background);
|
|
|
|
|
|
/* -- Engine -------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-engine-placeholder-text: hsl(0, 0%, 44%);
|
|
|
|
|
|
/* -- Upload -------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-upload-bar-background: hsl(209, 92%, 70%);
|
|
|
|
|
|
/* -- Link -------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-link-default: hsl(240, 100%, 47%);
|
|
|
--ck-color-link-selected-background: hsla(201, 100%, 56%, 0.1);
|
|
|
--ck-color-link-fake-selection: hsla(201, 100%, 56%, 0.3);
|
|
|
|
|
|
/* -- Search result highlight ---------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-highlight-background: hsl(60, 100%, 50%);
|
|
|
|
|
|
/* -- Generic colors ------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-light-red: hsl(0, 100%, 90%);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/**
|
|
|
* An opacity value of disabled UI item.
|
|
|
*/
|
|
|
--ck-disabled-opacity: .5;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/**
|
|
|
* The geometry of the of focused element's outer shadow.
|
|
|
*/
|
|
|
--ck-focus-outer-shadow-geometry: 0 0 0 3px;
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's outer shadow.
|
|
|
*/
|
|
|
--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's outer shadow (when disabled).
|
|
|
*/
|
|
|
--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's outer shadow (when has errors).
|
|
|
*/
|
|
|
--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border or outline.
|
|
|
*/
|
|
|
--ck-focus-ring: 1px solid var(--ck-color-focus-border);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-font-size-base: 13px;
|
|
|
--ck-line-height-base: 1.84615;
|
|
|
--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;
|
|
|
|
|
|
--ck-font-size-tiny: 0.7em;
|
|
|
--ck-font-size-small: 0.75em;
|
|
|
--ck-font-size-normal: 1em;
|
|
|
--ck-font-size-big: 1.4em;
|
|
|
--ck-font-size-large: 1.8em;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/* This is super-important. This is **manually** adjusted so a button without an icon
|
|
|
is never smaller than a button with icon, additionally making sure that text-less buttons
|
|
|
are perfect squares. The value is also shared by other components which should stay "in-line"
|
|
|
with buttons. */
|
|
|
--ck-ui-component-min-height: 2.3em;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Resets an element, ignoring its children.
|
|
|
*/
|
|
|
.ck.ck-reset,
|
|
|
.ck.ck-reset_all,
|
|
|
.ck-reset_all *:not(.ck-reset_all-excluded *) {
|
|
|
/* Do not include inheritable rules here. */
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
border: 0;
|
|
|
background: transparent;
|
|
|
text-decoration: none;
|
|
|
vertical-align: middle;
|
|
|
transition: none;
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */
|
|
|
word-wrap: break-word;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Resets an element AND its children.
|
|
|
*/
|
|
|
.ck.ck-reset_all,
|
|
|
.ck-reset_all *:not(.ck-reset_all-excluded *) {
|
|
|
/* These are rule inherited by all children elements. */
|
|
|
border-collapse: collapse;
|
|
|
font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);
|
|
|
color: var(--ck-color-text);
|
|
|
text-align: left;
|
|
|
white-space: nowrap;
|
|
|
cursor: auto;
|
|
|
float: none;
|
|
|
}
|
|
|
|
|
|
.ck-reset_all {
|
|
|
& .ck-rtl *:not(.ck-reset_all-excluded *) {
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
& iframe:not(.ck-reset_all-excluded *) {
|
|
|
/* For IE */
|
|
|
vertical-align: inherit;
|
|
|
}
|
|
|
|
|
|
& textarea:not(.ck-reset_all-excluded *) {
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
& textarea:not(.ck-reset_all-excluded *),
|
|
|
& input[type="text"]:not(.ck-reset_all-excluded *),
|
|
|
& input[type="password"]:not(.ck-reset_all-excluded *) {
|
|
|
cursor: text;
|
|
|
}
|
|
|
|
|
|
& textarea[disabled]:not(.ck-reset_all-excluded *),
|
|
|
& input[type="text"][disabled]:not(.ck-reset_all-excluded *),
|
|
|
& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
& fieldset:not(.ck-reset_all-excluded *) {
|
|
|
padding: 10px;
|
|
|
border: 2px groove hsl(255, 7%, 88%);
|
|
|
}
|
|
|
|
|
|
& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {
|
|
|
/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */
|
|
|
padding: 0;
|
|
|
border: 0
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Default UI rules for RTL languages.
|
|
|
*/
|
|
|
.ck[dir="rtl"],
|
|
|
.ck[dir="rtl"] .ck {
|
|
|
text-align: right;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Default border-radius value.
|
|
|
*/
|
|
|
:root{
|
|
|
--ck-border-radius: 2px;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/**
|
|
|
* A visual style of element's inner shadow (i.e. input).
|
|
|
*/
|
|
|
--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;
|
|
|
|
|
|
/**
|
|
|
* A visual style of element's drop shadow (i.e. panel).
|
|
|
*/
|
|
|
--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);
|
|
|
|
|
|
/**
|
|
|
* A visual style of element's active shadow (i.e. comment or suggestion).
|
|
|
*/
|
|
|
--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-spacing-unit: 0.6em;
|
|
|
--ck-spacing-large: calc(var(--ck-spacing-unit) * 1.5);
|
|
|
--ck-spacing-standard: var(--ck-spacing-unit);
|
|
|
--ck-spacing-medium: calc(var(--ck-spacing-unit) * 0.8);
|
|
|
--ck-spacing-small: calc(var(--ck-spacing-unit) * 0.5);
|
|
|
--ck-spacing-tiny: calc(var(--ck-spacing-unit) * 0.3);
|
|
|
--ck-spacing-extra-tiny: calc(var(--ck-spacing-unit) * 0.16);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},7153:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-resizer: var(--ck-color-focus-border);
|
|
|
--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);
|
|
|
--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);
|
|
|
|
|
|
--ck-resizer-border-radius: var(--ck-border-radius);
|
|
|
--ck-resizer-tooltip-offset: 10px;
|
|
|
--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget {
|
|
|
/* This is neccessary for type around UI to be positioned properly. */
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget.ck-widget_with-selection-handle {
|
|
|
/* Make the widget wrapper a relative positioning container for the drag handle. */
|
|
|
position: relative;
|
|
|
|
|
|
& .ck-widget__selection-handle {
|
|
|
position: absolute;
|
|
|
|
|
|
& .ck-icon {
|
|
|
/* Make sure the icon in not a subject to font-size or line-height to avoid
|
|
|
unnecessary spacing around it. */
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */
|
|
|
&:hover > .ck-widget__selection-handle {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
|
|
|
/* Show the selection handle when the widget is selected, but not for nested widgets. */
|
|
|
&.ck-widget_selected > .ck-widget__selection-handle {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-size-view {
|
|
|
background: var(--ck-color-resizer-tooltip-background);
|
|
|
color: var(--ck-color-resizer-tooltip-text);
|
|
|
border: 1px solid var(--ck-color-resizer-tooltip-text);
|
|
|
border-radius: var(--ck-resizer-border-radius);
|
|
|
font-size: var(--ck-font-size-tiny);
|
|
|
display: block;
|
|
|
padding: 0 var(--ck-spacing-small);
|
|
|
height: var(--ck-resizer-tooltip-height);
|
|
|
line-height: var(--ck-resizer-tooltip-height);
|
|
|
|
|
|
&.ck-orientation-top-left,
|
|
|
&.ck-orientation-top-right,
|
|
|
&.ck-orientation-bottom-right,
|
|
|
&.ck-orientation-bottom-left,
|
|
|
&.ck-orientation-above-center {
|
|
|
position: absolute;
|
|
|
}
|
|
|
|
|
|
&.ck-orientation-top-left {
|
|
|
top: var(--ck-resizer-tooltip-offset);
|
|
|
left: var(--ck-resizer-tooltip-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-orientation-top-right {
|
|
|
top: var(--ck-resizer-tooltip-offset);
|
|
|
right: var(--ck-resizer-tooltip-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-orientation-bottom-right {
|
|
|
bottom: var(--ck-resizer-tooltip-offset);
|
|
|
right: var(--ck-resizer-tooltip-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-orientation-bottom-left {
|
|
|
bottom: var(--ck-resizer-tooltip-offset);
|
|
|
left: var(--ck-resizer-tooltip-offset);
|
|
|
}
|
|
|
|
|
|
/* Class applied if the widget is too small to contain the size label */
|
|
|
&.ck-orientation-above-center {
|
|
|
top: calc(var(--ck-resizer-tooltip-height) * -1);
|
|
|
left: 50%;
|
|
|
transform: translate(-50%);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../mixins/_focus.css";
|
|
|
@import "../mixins/_shadow.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-widget-outline-thickness: 3px;
|
|
|
--ck-widget-handler-icon-size: 16px;
|
|
|
--ck-widget-handler-animation-duration: 200ms;
|
|
|
--ck-widget-handler-animation-curve: ease;
|
|
|
|
|
|
--ck-color-widget-blurred-border: hsl(0, 0%, 87%);
|
|
|
--ck-color-widget-hover-border: hsl(43, 100%, 62%);
|
|
|
--ck-color-widget-editable-focus-background: var(--ck-color-base-background);
|
|
|
--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget {
|
|
|
outline-width: var(--ck-widget-outline-thickness);
|
|
|
outline-style: solid;
|
|
|
outline-color: transparent;
|
|
|
transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
|
|
|
|
|
&.ck-widget_selected,
|
|
|
&.ck-widget_selected:hover {
|
|
|
outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
outline-color: var(--ck-color-widget-hover-border);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-editor__nested-editable {
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.
|
|
|
These styles show a different border for a blink of an eye, so \`:focus\` need to have same styles applied. */
|
|
|
&.ck-editor__nested-editable_focused,
|
|
|
&:focus {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-inner-shadow);
|
|
|
|
|
|
background-color: var(--ck-color-widget-editable-focus-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget.ck-widget_with-selection-handle {
|
|
|
& .ck-widget__selection-handle {
|
|
|
padding: 4px;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
/* Background and opacity will be animated as the handler shows up or the widget gets selected. */
|
|
|
background-color: transparent;
|
|
|
opacity: 0;
|
|
|
|
|
|
/* Transition:
|
|
|
* background-color for the .ck-widget_selected state change,
|
|
|
* visibility for hiding the handler,
|
|
|
* opacity for the proper look of the icon when the handler disappears. */
|
|
|
transition:
|
|
|
background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),
|
|
|
visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),
|
|
|
opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
|
|
|
|
|
/* Make only top corners round. */
|
|
|
border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;
|
|
|
|
|
|
/* Place the drag handler outside the widget wrapper. */
|
|
|
transform: translateY(-100%);
|
|
|
left: calc(0px - var(--ck-widget-outline-thickness));
|
|
|
top: 0;
|
|
|
|
|
|
& .ck-icon {
|
|
|
/* Make sure the dimensions of the icon are independent of the fon-size of the content. */
|
|
|
width: var(--ck-widget-handler-icon-size);
|
|
|
height: var(--ck-widget-handler-icon-size);
|
|
|
color: var(--ck-color-widget-drag-handler-icon-color);
|
|
|
|
|
|
/* The "selected" part of the icon is invisible by default */
|
|
|
& .ck-icon__selected-indicator {
|
|
|
opacity: 0;
|
|
|
|
|
|
/* Note: The animation is longer on purpose. Simply feels better. */
|
|
|
transition: opacity 300ms var(--ck-widget-handler-animation-curve);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */
|
|
|
&:hover .ck-icon .ck-icon__selected-indicator {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */
|
|
|
&:hover > .ck-widget__selection-handle {
|
|
|
opacity: 1;
|
|
|
background-color: var(--ck-color-widget-hover-border);
|
|
|
}
|
|
|
|
|
|
/* Show the selection handler when the widget is selected, but not for nested widgets. */
|
|
|
&.ck-widget_selected,
|
|
|
&.ck-widget_selected:hover {
|
|
|
& > .ck-widget__selection-handle {
|
|
|
opacity: 1;
|
|
|
background-color: var(--ck-color-focus-border);
|
|
|
|
|
|
/* When the widget is selected, notify the user using the proper look of the icon. */
|
|
|
& .ck-icon .ck-icon__selected-indicator {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* In a RTL environment, align the selection handler to the right side of the widget */
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
|
|
|
left: auto;
|
|
|
right: calc(0px - var(--ck-widget-outline-thickness));
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/6415 */
|
|
|
.ck.ck-editor__editable.ck-read-only .ck-widget {
|
|
|
/* Prevent the :hover outline from showing up because of the used outline-color transition. */
|
|
|
transition: none;
|
|
|
|
|
|
&:not(.ck-widget_selected) {
|
|
|
/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.
|
|
|
* See: https://github.com/ckeditor/ckeditor5/issues/1261
|
|
|
*
|
|
|
* Leave the unit because this custom property is used in calc() by other features.
|
|
|
* See: https://github.com/ckeditor/ckeditor5/issues/6775
|
|
|
*/
|
|
|
--ck-widget-outline-thickness: 0px;
|
|
|
}
|
|
|
|
|
|
&.ck-widget_with-selection-handle {
|
|
|
& .ck-widget__selection-handle,
|
|
|
& .ck-widget__selection-handle:hover {
|
|
|
background: var(--ck-color-widget-blurred-border);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Style the widget when it's selected but the editable it belongs to lost focus. */
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
.ck.ck-editor__editable.ck-blurred .ck-widget {
|
|
|
&.ck-widget_selected,
|
|
|
&.ck-widget_selected:hover {
|
|
|
outline-color: var(--ck-color-widget-blurred-border);
|
|
|
|
|
|
&.ck-widget_with-selection-handle {
|
|
|
& > .ck-widget__selection-handle,
|
|
|
& > .ck-widget__selection-handle:hover {
|
|
|
background: var(--ck-color-widget-blurred-border);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,
|
|
|
.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {
|
|
|
/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.
|
|
|
In fact, anything with overflow: hidden.
|
|
|
https://github.com/ckeditor/ckeditor5-block-quote/issues/28
|
|
|
https://github.com/ckeditor/ckeditor5-widget/issues/44
|
|
|
https://github.com/ckeditor/ckeditor5-widget/issues/66 */
|
|
|
margin-top: calc(1em + var(--ck-widget-handler-icon-size));
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},4875:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-widget_with-resizer {
|
|
|
/* Make the widget wrapper a relative positioning container for the drag handle. */
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget__resizer {
|
|
|
display: none;
|
|
|
position: absolute;
|
|
|
|
|
|
/* The wrapper itself should not interfere with the pointer device, only the handles should. */
|
|
|
pointer-events: none;
|
|
|
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
}
|
|
|
|
|
|
.ck-focused .ck-widget_with-resizer.ck-widget_selected {
|
|
|
& > .ck-widget__resizer {
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget__resizer__handle {
|
|
|
position: absolute;
|
|
|
|
|
|
/* Resizers are the only UI elements that should interfere with a pointer device. */
|
|
|
pointer-events: all;
|
|
|
|
|
|
&.ck-widget__resizer__handle-top-left,
|
|
|
&.ck-widget__resizer__handle-bottom-right {
|
|
|
cursor: nwse-resize;
|
|
|
}
|
|
|
|
|
|
&.ck-widget__resizer__handle-top-right,
|
|
|
&.ck-widget__resizer__handle-bottom-left {
|
|
|
cursor: nesw-resize;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-resizer-size: 10px;
|
|
|
|
|
|
/* Set the resizer with a 50% offset. */
|
|
|
--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);
|
|
|
--ck-resizer-border-width: 1px;
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget__resizer {
|
|
|
outline: 1px solid var(--ck-color-resizer);
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget__resizer__handle {
|
|
|
width: var(--ck-resizer-size);
|
|
|
height: var(--ck-resizer-size);
|
|
|
background: var(--ck-color-focus-border);
|
|
|
border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);
|
|
|
border-radius: var(--ck-resizer-border-radius);
|
|
|
|
|
|
&.ck-widget__resizer__handle-top-left {
|
|
|
top: var(--ck-resizer-offset);
|
|
|
left: var(--ck-resizer-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__resizer__handle-top-right {
|
|
|
top: var(--ck-resizer-offset);
|
|
|
right: var(--ck-resizer-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__resizer__handle-bottom-right {
|
|
|
bottom: var(--ck-resizer-offset);
|
|
|
right: var(--ck-resizer-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__resizer__handle-bottom-left {
|
|
|
bottom: var(--ck-resizer-offset);
|
|
|
left: var(--ck-resizer-offset);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},2347:(_,x,h)=>{h.d(x,{Z:()=>m});var y=h(4015),E=h.n(y),k=h(3645),D=h.n(k),g=D()(E());g.push([_.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-widget {
|
|
|
/*
|
|
|
* Styles of the type around buttons
|
|
|
*/
|
|
|
& .ck-widget__type-around__button {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
overflow: hidden;
|
|
|
z-index: var(--ck-z-default);
|
|
|
|
|
|
& svg {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
left: 50%;
|
|
|
z-index: calc(var(--ck-z-default) + 2);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__type-around__button_before {
|
|
|
/* Place it in the middle of the outline */
|
|
|
top: calc(-0.5 * var(--ck-widget-outline-thickness));
|
|
|
left: min(10%, 30px);
|
|
|
|
|
|
transform: translateY(-50%);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__type-around__button_after {
|
|
|
/* Place it in the middle of the outline */
|
|
|
bottom: calc(-0.5 * var(--ck-widget-outline-thickness));
|
|
|
right: min(10%, 30px);
|
|
|
|
|
|
transform: translateY(50%);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the buttons when:
|
|
|
* - the widget is selected,
|
|
|
* - or the button is being hovered (regardless of the widget state).
|
|
|
*/
|
|
|
&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button:hover {
|
|
|
&::after {
|
|
|
content: "";
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
top: 1px;
|
|
|
left: 1px;
|
|
|
z-index: calc(var(--ck-z-default) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.
|
|
|
*/
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
|
|
display: none;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* When the widget is hovered the "fake caret" would normally be narrower than the
|
|
|
* extra outline displayed around the widget. Let's extend the "fake caret" to match
|
|
|
* the full width of the widget.
|
|
|
*/
|
|
|
&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
|
|
left: calc( -1 * var(--ck-widget-outline-thickness) );
|
|
|
right: calc( -1 * var(--ck-widget-outline-thickness) );
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).
|
|
|
*/
|
|
|
&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
|
|
top: calc( -1 * var(--ck-widget-outline-thickness) - 1px );
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).
|
|
|
*/
|
|
|
&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
|
|
bottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Integration with the read-only mode of the editor.
|
|
|
*/
|
|
|
.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Integration with the restricted editing mode (feature) of the editor.
|
|
|
*/
|
|
|
.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Integration with the #isEnabled property of the WidgetTypeAround plugin.
|
|
|
*/
|
|
|
.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {
|
|
|
display: none;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-widget-type-around-button-size: 20px;
|
|
|
--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);
|
|
|
--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);
|
|
|
--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);
|
|
|
--ck-color-widget-type-around-button-radar-start-alpha: 0;
|
|
|
--ck-color-widget-type-around-button-radar-end-alpha: .3;
|
|
|
--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);
|
|
|
}
|
|
|
|
|
|
@define-mixin ck-widget-type-around-button-visible {
|
|
|
opacity: 1;
|
|
|
pointer-events: auto;
|
|
|
}
|
|
|
|
|
|
@define-mixin ck-widget-type-around-button-hidden {
|
|
|
opacity: 0;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget {
|
|
|
/*
|
|
|
* Styles of the type around buttons
|
|
|
*/
|
|
|
& .ck-widget__type-around__button {
|
|
|
width: var(--ck-widget-type-around-button-size);
|
|
|
height: var(--ck-widget-type-around-button-size);
|
|
|
background: var(--ck-color-widget-type-around-button);
|
|
|
border-radius: 100px;
|
|
|
transition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
|
|
|
|
|
@mixin ck-widget-type-around-button-hidden;
|
|
|
|
|
|
& svg {
|
|
|
width: 10px;
|
|
|
height: 8px;
|
|
|
transform: translate(-50%,-50%);
|
|
|
transition: transform .5s ease;
|
|
|
margin-top: 1px;
|
|
|
|
|
|
& * {
|
|
|
stroke-dasharray: 10;
|
|
|
stroke-dashoffset: 0;
|
|
|
|
|
|
fill: none;
|
|
|
stroke: var(--ck-color-widget-type-around-button-icon);
|
|
|
stroke-width: 1.5px;
|
|
|
stroke-linecap: round;
|
|
|
stroke-linejoin: round;
|
|
|
}
|
|
|
|
|
|
& line {
|
|
|
stroke-dasharray: 7;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
/*
|
|
|
* Display the "sonar" around the button when hovered.
|
|
|
*/
|
|
|
animation: ck-widget-type-around-button-sonar 1s ease infinite;
|
|
|
|
|
|
/*
|
|
|
* Animate active button's icon.
|
|
|
*/
|
|
|
& svg {
|
|
|
& polyline {
|
|
|
animation: ck-widget-type-around-arrow-dash 2s linear;
|
|
|
}
|
|
|
|
|
|
& line {
|
|
|
animation: ck-widget-type-around-arrow-tip-dash 2s linear;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Show type around buttons when the widget gets selected or being hovered.
|
|
|
*/
|
|
|
&.ck-widget_selected,
|
|
|
&:hover {
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
|
|
@mixin ck-widget-type-around-button-visible;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the buttons when the widget is NOT selected (but the buttons are visible
|
|
|
* and still can be hovered).
|
|
|
*/
|
|
|
&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {
|
|
|
background: var(--ck-color-widget-type-around-button-hover);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the buttons when:
|
|
|
* - the widget is selected,
|
|
|
* - or the button is being hovered (regardless of the widget state).
|
|
|
*/
|
|
|
&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button:hover {
|
|
|
background: var(--ck-color-widget-type-around-button-active);
|
|
|
|
|
|
&::after {
|
|
|
width: calc(var(--ck-widget-type-around-button-size) - 2px);
|
|
|
height: calc(var(--ck-widget-type-around-button-size) - 2px);
|
|
|
border-radius: 100px;
|
|
|
background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the "before" button when the widget has a selection handle. Because some space
|
|
|
* is consumed by the handle, the button must be moved slightly to the right to let it breathe.
|
|
|
*/
|
|
|
&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.
|
|
|
*/
|
|
|
& .ck-widget__type-around__fake-caret {
|
|
|
pointer-events: none;
|
|
|
height: 1px;
|
|
|
animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;
|
|
|
|
|
|
/*
|
|
|
* The semi-transparent-outline+background combo improves the contrast
|
|
|
* when the background underneath the fake caret is dark.
|
|
|
*/
|
|
|
outline: solid 1px hsla(0, 0%, 100%, .5);
|
|
|
background: var(--ck-color-base-text);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).
|
|
|
* Despite the widget being physically selected in the model, its outline should disappear.
|
|
|
*/
|
|
|
&.ck-widget_selected {
|
|
|
&.ck-widget_type-around_show-fake-caret_before,
|
|
|
&.ck-widget_type-around_show-fake-caret_after {
|
|
|
outline-color: transparent;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-widget_type-around_show-fake-caret_before,
|
|
|
&.ck-widget_type-around_show-fake-caret_after {
|
|
|
/*
|
|
|
* When the "fake caret" is visible we simulate that the widget is not selected
|
|
|
* (despite being physically selected), so the outline color should be for the
|
|
|
* unselected widget.
|
|
|
*/
|
|
|
&.ck-widget_selected:hover {
|
|
|
outline-color: var(--ck-color-widget-hover-border);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).
|
|
|
* In this state, the type around buttons would collide with the fake carets so they should disappear.
|
|
|
*/
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
|
|
@mixin ck-widget-type-around-button-hidden;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Fake horizontal caret integration with the selection handle. When the caret is visible, simply
|
|
|
* hide the handle because it intersects with the caret (and does not make much sense anyway).
|
|
|
*/
|
|
|
&.ck-widget_with-selection-handle {
|
|
|
&.ck-widget_selected,
|
|
|
&.ck-widget_selected:hover {
|
|
|
& > .ck-widget__selection-handle {
|
|
|
opacity: 0
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Fake horizontal caret integration with the resize UI. When the caret is visible, simply
|
|
|
* hide the resize UI because it creates too much noise. It can be visible when the user
|
|
|
* hovers the widget, though.
|
|
|
*/
|
|
|
&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {
|
|
|
opacity: 0
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the "before" button when the widget has a selection handle in an RTL environment.
|
|
|
* The selection handler is aligned to the right side of the widget so there is no need to create
|
|
|
* additional space for it next to the "before" button.
|
|
|
*/
|
|
|
.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {
|
|
|
margin-left: 0;
|
|
|
margin-right: 20px;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Hide type around buttons when the widget is selected as a child of a selected
|
|
|
* nested editable (e.g. mulit-cell table selection).
|
|
|
*
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/7263.
|
|
|
*/
|
|
|
.ck-editor__nested-editable.ck-editor__editable_selected {
|
|
|
& .ck-widget {
|
|
|
&.ck-widget_selected,
|
|
|
&:hover {
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
|
|
@mixin ck-widget-type-around-button-hidden;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).
|
|
|
*/
|
|
|
.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {
|
|
|
background: var(--ck-color-widget-type-around-button-blurred-editable);
|
|
|
|
|
|
& svg * {
|
|
|
stroke: hsl(0,0%,60%);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-widget-type-around-arrow-dash {
|
|
|
0% {
|
|
|
stroke-dashoffset: 10;
|
|
|
}
|
|
|
20%, 100% {
|
|
|
stroke-dashoffset: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-widget-type-around-arrow-tip-dash {
|
|
|
0%, 20% {
|
|
|
stroke-dashoffset: 7;
|
|
|
}
|
|
|
40%, 100% {
|
|
|
stroke-dashoffset: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-widget-type-around-button-sonar {
|
|
|
0% {
|
|
|
box-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));
|
|
|
}
|
|
|
50% {
|
|
|
box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));
|
|
|
}
|
|
|
100% {
|
|
|
box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-widget-type-around-fake-caret-pulse {
|
|
|
0% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
49% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
99% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const m=g},3645:_=>{_.exports=function(x){var h=[];return h.toString=function(){return this.map(function(E){var k=x(E);return E[2]?"@media ".concat(E[2]," {").concat(k,"}"):k}).join("")},h.i=function(y,E,k){typeof y=="string"&&(y=[[null,y,""]]);var D={};if(k)for(var g=0;g<this.length;g++){var m=this[g][0];m!=null&&(D[m]=!0)}for(var A=0;A<y.length;A++){var C=[].concat(y[A]);k&&D[C[0]]||(E&&(C[2]?C[2]="".concat(E," and ").concat(C[2]):C[2]=E),h.push(C))}},h}},4015:_=>{function x(g,m){return D(g)||k(g,m)||y(g,m)||h()}function h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(g,m){if(g){if(typeof g=="string")return E(g,m);var A=Object.prototype.toString.call(g).slice(8,-1);if(A==="Object"&&g.constructor&&(A=g.constructor.name),A==="Map"||A==="Set")return Array.from(g);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return E(g,m)}}function E(g,m){(m==null||m>g.length)&&(m=g.length);for(var A=0,C=new Array(m);A<m;A++)C[A]=g[A];return C}function k(g,m){var A=g&&(typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"]);if(A!=null){var C=[],v=!0,I=!1,M,j;try{for(A=A.call(g);!(v=(M=A.next()).done)&&(C.push(M.value),!(m&&C.length===m));v=!0);}catch(W){I=!0,j=W}finally{try{!v&&A.return!=null&&A.return()}finally{if(I)throw j}}return C}}function D(g){if(Array.isArray(g))return g}_.exports=function(m){var A=x(m,4),C=A[1],v=A[3];if(!v)return C;if(typeof btoa=="function"){var I=btoa(unescape(encodeURIComponent(JSON.stringify(v)))),M="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(I),j="/*# ".concat(M," */"),W=v.sources.map(function(R){return"/*# sourceURL=".concat(v.sourceRoot||"").concat(R," */")});return[C].concat(W).concat([j]).join(`
|
|
|
`)}return[C].join(`
|
|
|
`)}},3379:(_,x,h)=>{var y=function(){var G;return function(){return typeof G>"u"&&(G=!!(window&&document&&document.all&&!window.atob)),G}}(),E=function(){var G={};return function(nt){if(typeof G[nt]>"u"){var it=document.querySelector(nt);if(window.HTMLIFrameElement&&it instanceof window.HTMLIFrameElement)try{it=it.contentDocument.head}catch{it=null}G[nt]=it}return G[nt]}}(),k=[];function D(R){for(var G=-1,$=0;$<k.length;$++)if(k[$].identifier===R){G=$;break}return G}function g(R,G){for(var $={},nt=[],it=0;it<R.length;it++){var Ct=R[it],Bt=G.base?Ct[0]+G.base:Ct[0],ee=$[Bt]||0,Pe="".concat(Bt," ").concat(ee);$[Bt]=ee+1;var Pt=D(Pe),xt={css:Ct[1],media:Ct[2],sourceMap:Ct[3]};Pt!==-1?(k[Pt].references++,k[Pt].updater(xt)):k.push({identifier:Pe,updater:W(xt,G),references:1}),nt.push(Pe)}return nt}function m(R){var G=document.createElement("style"),$=R.attributes||{};if(typeof $.nonce>"u"){var nt=h.nc;nt&&($.nonce=nt)}if(Object.keys($).forEach(function(Ct){G.setAttribute(Ct,$[Ct])}),typeof R.insert=="function")R.insert(G);else{var it=E(R.insert||"head");if(!it)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");it.appendChild(G)}return G}function A(R){if(R.parentNode===null)return!1;R.parentNode.removeChild(R)}var C=function(){var G=[];return function(nt,it){return G[nt]=it,G.filter(Boolean).join(`
|
|
|
`)}}();function v(R,G,$,nt){var it=$?"":nt.media?"@media ".concat(nt.media," {").concat(nt.css,"}"):nt.css;if(R.styleSheet)R.styleSheet.cssText=C(G,it);else{var Ct=document.createTextNode(it),Bt=R.childNodes;Bt[G]&&R.removeChild(Bt[G]),Bt.length?R.insertBefore(Ct,Bt[G]):R.appendChild(Ct)}}function I(R,G,$){var nt=$.css,it=$.media,Ct=$.sourceMap;if(it?R.setAttribute("media",it):R.removeAttribute("media"),Ct&&typeof btoa<"u"&&(nt+=`
|
|
|
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(Ct))))," */")),R.styleSheet)R.styleSheet.cssText=nt;else{for(;R.firstChild;)R.removeChild(R.firstChild);R.appendChild(document.createTextNode(nt))}}var M=null,j=0;function W(R,G){var $,nt,it;if(G.singleton){var Ct=j++;$=M||(M=m(G)),nt=v.bind(null,$,Ct,!1),it=v.bind(null,$,Ct,!0)}else $=m(G),nt=I.bind(null,$,G),it=function(){A($)};return nt(R),function(ee){if(ee){if(ee.css===R.css&&ee.media===R.media&&ee.sourceMap===R.sourceMap)return;nt(R=ee)}else it()}}_.exports=function(R,G){G=G||{},!G.singleton&&typeof G.singleton!="boolean"&&(G.singleton=y()),R=R||[];var $=g(R,G);return function(it){if(it=it||[],Object.prototype.toString.call(it)==="[object Array]"){for(var Ct=0;Ct<$.length;Ct++){var Bt=$[Ct],ee=D(Bt);k[ee].references--}for(var Pe=g(it,G),Pt=0;Pt<$.length;Pt++){var xt=$[Pt],qt=D(xt);k[qt].references===0&&(k[qt].updater(),k.splice(qt,1))}$=Pe}}}}},Ge={};function L(_){var x=Ge[_];if(x!==void 0)return x.exports;var h=Ge[_]={id:_,exports:{}};return Un[_](h,h.exports,L),h.exports}L.n=_=>{var x=_&&_.__esModule?()=>_.default:()=>_;return L.d(x,{a:x}),x},L.d=(_,x)=>{for(var h in x)L.o(x,h)&&!L.o(_,h)&&Object.defineProperty(_,h,{enumerable:!0,get:x[h]})},L.o=(_,x)=>Object.prototype.hasOwnProperty.call(_,x),L.nc=void 0;var Io={};return(()=>{L.d(Io,{default:()=>U3});function _({emitter:o,activator:t,callback:e,contextElements:n}){o.listenTo(document,"mousedown",(i,r)=>{if(!t())return;const s=typeof r.composedPath=="function"?r.composedPath():[],a=typeof n=="function"?n():n;for(const c of a)if(c.contains(r.target)||s.includes(c))return;e()})}function x(o){class t extends o{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...n){super(...n),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}return t}function h({view:o}){o.listenTo(o.element,"submit",(t,e)=>{e.preventDefault(),o.fire("submit")},{useCapture:!0})}function y({keystrokeHandler:o,focusTracker:t,gridItems:e,numberOfColumns:n,uiLanguageDirection:i}){const r=typeof n=="number"?()=>n:n;o.set("arrowright",s((l,d)=>i==="rtl"?c(l,d.length):a(l,d.length))),o.set("arrowleft",s((l,d)=>i==="rtl"?a(l,d.length):c(l,d.length))),o.set("arrowup",s((l,d)=>{let u=l-r();return u<0&&(u=l+r()*Math.floor(d.length/r()),u>d.length-1&&(u-=r())),u})),o.set("arrowdown",s((l,d)=>{let u=l+r();return u>d.length-1&&(u=l%r()),u}));function s(l){return d=>{const u=e.find(w=>w.element===t.focusedElement),f=e.getIndex(u),p=l(f,e);e.get(p).focus(),d.stopPropagation(),d.preventDefault()}}function a(l,d){return l===d-1?0:l+1}function c(l,d){return l===0?d-1:l-1}}function E(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const k=E(),g={isMac:m(k),isWindows:A(k),isGecko:C(k),isSafari:v(k),isiOS:I(k),isAndroid:M(k),isBlink:j(k),features:{isRegExpUnicodePropertySupported:W()}};function m(o){return o.indexOf("macintosh")>-1}function A(o){return o.indexOf("windows")>-1}function C(o){return!!o.match(/gecko\/\d+/)}function v(o){return o.indexOf(" applewebkit/")>-1&&o.indexOf("chrome")===-1}function I(o){return!!o.match(/iphone|ipad/i)||m(o)&&navigator.maxTouchPoints>0}function M(o){return o.indexOf("android")>-1}function j(o){return o.indexOf("chrome/")>-1&&o.indexOf("edge/")<0}function W(){let o=!1;try{o="ć".search(new RegExp("[\\p{L}]","u"))===0}catch{}return o}function R(o,t,e,n){e=e||function(c,l){return c===l};const i=Array.isArray(o)?o:Array.prototype.slice.call(o),r=Array.isArray(t)?t:Array.prototype.slice.call(t),s=G(i,r,e);return n?Ct(s,r.length):it(r,s)}function G(o,t,e){const n=$(o,t,e);if(n===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=nt(o,n),r=nt(t,n),s=$(i,r,e),a=o.length-s,c=t.length-s;return{firstIndex:n,lastIndexOld:a,lastIndexNew:c}}function $(o,t,e){for(let n=0;n<Math.max(o.length,t.length);n++)if(o[n]===void 0||t[n]===void 0||!e(o[n],t[n]))return n;return-1}function nt(o,t){return o.slice(t).reverse()}function it(o,t){const e=[],{firstIndex:n,lastIndexOld:i,lastIndexNew:r}=t;return r-n>0&&e.push({index:n,type:"insert",values:o.slice(n,r)}),i-n>0&&e.push({index:n+(r-n),type:"delete",howMany:i-n}),e}function Ct(o,t){const{firstIndex:e,lastIndexOld:n,lastIndexNew:i}=o;if(e===-1)return Array(t).fill("equal");let r=[];return e>0&&(r=r.concat(Array(e).fill("equal"))),i-e>0&&(r=r.concat(Array(i-e).fill("insert"))),n-e>0&&(r=r.concat(Array(n-e).fill("delete"))),i<t&&(r=r.concat(Array(t-i).fill("equal"))),r}function Bt(o,t,e){e=e||function(S,B){return S===B};const n=o.length,i=t.length;if(n>200||i>200||n+i>300)return Bt.fastDiff(o,t,e,!0);let r,s;if(i<n){const S=o;o=t,t=S,r="delete",s="insert"}else r="insert",s="delete";const a=o.length,c=t.length,l=c-a,d={},u={};function f(S){const B=(u[S-1]!==void 0?u[S-1]:-1)+1,z=u[S+1]!==void 0?u[S+1]:-1,V=B>z?-1:1;d[S+V]&&(d[S]=d[S+V].slice(0)),d[S]||(d[S]=[]),d[S].push(B>z?r:s);let J=Math.max(B,z),st=J-S;for(;st<a&&J<c&&e(o[st],t[J]);)st++,J++,d[S].push("equal");return J}let p=0,w;do{for(w=-p;w<l;w++)u[w]=f(w);for(w=l+p;w>l;w--)u[w]=f(w);u[l]=f(l),p++}while(u[l]!==c);return d[l].slice(1)}Bt.fastDiff=R;function ee(){return function o(){o.called=!0}}const Pe=ee;class Pt{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=Pe(),this.off=Pe()}}const xt=new Array(256).fill("").map((o,t)=>("0"+t.toString(16)).slice(-2));function qt(){const o=Math.random()*4294967296>>>0,t=Math.random()*4294967296>>>0,e=Math.random()*4294967296>>>0,n=Math.random()*4294967296>>>0;return"e"+xt[o>>0&255]+xt[o>>8&255]+xt[o>>16&255]+xt[o>>24&255]+xt[t>>0&255]+xt[t>>8&255]+xt[t>>16&255]+xt[t>>24&255]+xt[e>>0&255]+xt[e>>8&255]+xt[e>>16&255]+xt[e>>24&255]+xt[n>>0&255]+xt[n>>8&255]+xt[n>>16&255]+xt[n>>24&255]}const Le={get(o="normal"){return typeof o!="number"?this[o]||this.normal:o},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function xc(o,t){const e=Le.get(t.priority);for(let n=0;n<o.length;n++)if(Le.get(o[n].priority)<e){o.splice(n,0,t);return}o.push(t)}const Jp="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class b extends Error{constructor(t,e,n){super(Xp(t,n)),this.name="CKEditorError",this.context=e,this.data=n}is(t){return t==="CKEditorError"}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new b(t.message,e);throw n.stack=t.stack,n}}function at(o,t){console.warn(...tk(o,t))}function Ec(o){return`
|
|
|
Read more: ${Jp}#error-${o}`}function Xp(o,t){const e=new WeakSet,i=t?` ${JSON.stringify(t,(s,a)=>{if(typeof a=="object"&&a!==null){if(e.has(a))return`[object ${a.constructor.name}]`;e.add(a)}return a})}`:"",r=Ec(o);return o+i+r}function tk(o,t){const e=Ec(o);return t?[o,t,e]:[o,e]}const ek="40.2.0",nk=new Date(2023,11,12);if(globalThis.CKEDITOR_VERSION)throw new b("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=ek;const pn=Symbol("listeningTo"),Hi=Symbol("emitterId"),Ee=Symbol("delegations"),Dc=ct(Object);function ct(o){if(!o)return Dc;class t extends o{on(n,i,r){this.listenTo(this,n,i,r)}once(n,i,r){let s=!1;const a=(c,...l)=>{s||(s=!0,c.off(),i.call(this,c,...l))};this.listenTo(this,n,a,r)}off(n,i){this.stopListening(this,n,i)}listenTo(n,i,r,s={}){let a,c;this[pn]||(this[pn]={});const l=this[pn];Ui(n)||Sc(n);const d=Ui(n);(a=l[d])||(a=l[d]={emitter:n,callbacks:{}}),(c=a.callbacks[i])||(c=a.callbacks[i]=[]),c.push(r),sk(this,n,i,r,s)}stopListening(n,i,r){const s=this[pn];let a=n&&Ui(n);const c=s&&a?s[a]:void 0,l=c&&i?c.callbacks[i]:void 0;if(!(!s||n&&!c||i&&!l))if(r)Wi(this,n,i,r),l.indexOf(r)!==-1&&(l.length===1?delete c.callbacks[i]:Wi(this,n,i,r));else if(l){for(;r=l.pop();)Wi(this,n,i,r);delete c.callbacks[i]}else if(c){for(i in c.callbacks)this.stopListening(n,i);delete s[a]}else{for(a in s)this.stopListening(s[a].emitter);delete this[pn]}}fire(n,...i){try{const r=n instanceof Pt?n:new Pt(this,n),s=r.name;let a=Ic(this,s);if(r.path.push(this),a){const l=[r,...i];a=Array.from(a);for(let d=0;d<a.length&&(a[d].callback.apply(this,l),r.off.called&&(delete r.off.called,this._removeEventListener(s,a[d].callback)),!r.stop.called);d++);}const c=this[Ee];if(c){const l=c.get(s),d=c.get("*");l&&Mc(l,r,i),d&&Mc(d,r,i)}return r.return}catch(r){b.rethrowUnexpectedError(r,this)}}delegate(...n){return{to:(i,r)=>{this[Ee]||(this[Ee]=new Map),n.forEach(s=>{const a=this[Ee].get(s);a?a.set(i,r):this[Ee].set(s,new Map([[i,r]]))})}}}stopDelegating(n,i){if(this[Ee])if(!n)this[Ee].clear();else if(!i)this[Ee].delete(n);else{const r=this[Ee].get(n);r&&r.delete(i)}}_addEventListener(n,i,r){rk(this,n);const s=qi(this,n),a=Le.get(r.priority),c={callback:i,priority:a};for(const l of s)xc(l,c)}_removeEventListener(n,i){const r=qi(this,n);for(const s of r)for(let a=0;a<s.length;a++)s[a].callback==i&&(s.splice(a,1),a--)}}return t}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{ct[o]=Dc.prototype[o]});function ok(o,t){const e=o[pn];return e&&e[t]?e[t].emitter:null}function Sc(o,t){o[Hi]||(o[Hi]=t||qt())}function Ui(o){return o[Hi]}function Tc(o){return o._events||Object.defineProperty(o,"_events",{value:{}}),o._events}function ik(){return{callbacks:[],childEvents:[]}}function rk(o,t){const e=Tc(o);if(e[t])return;let n=t,i=null;const r=[];for(;n!==""&&!e[n];)e[n]=ik(),r.push(e[n]),i&&e[n].childEvents.push(i),i=n,n=n.substr(0,n.lastIndexOf(":"));if(n!==""){for(const s of r)s.callbacks=e[n].callbacks.slice();e[n].childEvents.push(i)}}function qi(o,t){const e=Tc(o)[t];if(!e)return[];let n=[e.callbacks];for(let i=0;i<e.childEvents.length;i++){const r=qi(o,e.childEvents[i]);n=n.concat(r)}return n}function Ic(o,t){let e;return!o._events||!(e=o._events[t])||!e.callbacks.length?t.indexOf(":")>-1?Ic(o,t.substr(0,t.lastIndexOf(":"))):null:e.callbacks}function Mc(o,t,e){for(let[n,i]of o){i?typeof i=="function"&&(i=i(t.name)):i=t.name;const r=new Pt(t.source,i);r.path=[...t.path],n.fire(r,...e)}}function sk(o,t,e,n,i){t._addEventListener?t._addEventListener(e,n,i):o._addEventListener.call(t,e,n,i)}function Wi(o,t,e,n){t._removeEventListener?t._removeEventListener(e,n):o._removeEventListener.call(t,e,n)}function ak(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")}const _t=ak,Mo=Symbol("observableProperties"),Bo=Symbol("boundObservables"),No=Symbol("boundProperties"),kn=Symbol("decoratedMethods"),Bc=Symbol("decoratedOriginal"),Nc=rt(ct());function rt(o){if(!o)return Nc;class t extends o{set(n,i){if(_t(n)){Object.keys(n).forEach(s=>{this.set(s,n[s])},this);return}Gi(this);const r=this[Mo];if(n in this&&!r.has(n))throw new b("observable-set-cannot-override",this);Object.defineProperty(this,n,{enumerable:!0,configurable:!0,get(){return r.get(n)},set(s){const a=r.get(n);let c=this.fire(`set:${n}`,n,s,a);c===void 0&&(c=s),(a!==c||!r.has(n))&&(r.set(n,c),this.fire(`change:${n}`,n,c,a))}}),this[n]=i}bind(...n){if(!n.length||!zc(n))throw new b("observable-bind-wrong-properties",this);if(new Set(n).size!==n.length)throw new b("observable-bind-duplicate-properties",this);Gi(this);const i=this[No];n.forEach(s=>{if(i.has(s))throw new b("observable-bind-rebind",this)});const r=new Map;return n.forEach(s=>{const a={property:s,to:[]};i.set(s,a),r.set(s,a)}),{to:ck,toMany:lk,_observable:this,_bindProperties:n,_to:[],_bindings:r}}unbind(...n){if(!this[Mo])return;const i=this[No],r=this[Bo];if(n.length){if(!zc(n))throw new b("observable-unbind-wrong-properties",this);n.forEach(s=>{const a=i.get(s);a&&(a.to.forEach(([c,l])=>{const d=r.get(c),u=d[l];u.delete(a),u.size||delete d[l],Object.keys(d).length||(r.delete(c),this.stopListening(c,"change"))}),i.delete(s))})}else r.forEach((s,a)=>{this.stopListening(a,"change")}),r.clear(),i.clear()}decorate(n){Gi(this);const i=this[n];if(!i)throw new b("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:n});this.on(n,(r,s)=>{r.return=i.apply(this,s)}),this[n]=function(...r){return this.fire(n,r)},this[n][Bc]=i,this[kn]||(this[kn]=[]),this[kn].push(n)}stopListening(n,i,r){if(!n&&this[kn]){for(const s of this[kn])this[s]=this[s][Bc];delete this[kn]}super.stopListening(n,i,r)}}return t}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{rt[o]=Nc.prototype[o]});function Gi(o){o[Mo]||(Object.defineProperty(o,Mo,{value:new Map}),Object.defineProperty(o,Bo,{value:new Map}),Object.defineProperty(o,No,{value:new Map}))}function ck(...o){const t=uk(...o),e=Array.from(this._bindings.keys()),n=e.length;if(!t.callback&&t.to.length>1)throw new b("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new b("observable-bind-to-extra-callback",this);t.to.forEach(i=>{if(i.properties.length&&i.properties.length!==n)throw new b("observable-bind-to-properties-length",this);i.properties.length||(i.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(e[0]).callback=t.callback),fk(this._observable,this._to),gk(this),this._bindProperties.forEach(i=>{Pc(this._observable,i)})}function lk(o,t,e){if(this._bindings.size>1)throw new b("observable-bind-to-many-not-one-binding",this);this.to(...dk(o,t),e)}function dk(o,t){const e=o.map(n=>[n,t]);return Array.prototype.concat.apply([],e)}function zc(o){return o.every(t=>typeof t=="string")}function uk(...o){if(!o.length)throw new b("observable-bind-to-parse-error",null);const t={to:[]};let e;return typeof o[o.length-1]=="function"&&(t.callback=o.pop()),o.forEach(n=>{if(typeof n=="string")e.properties.push(n);else if(typeof n=="object")e={observable:n,properties:[]},t.to.push(e);else throw new b("observable-bind-to-parse-error",null)}),t}function hk(o,t,e,n){const i=o[Bo],r=i.get(e),s=r||{};s[n]||(s[n]=new Set),s[n].add(t),r||i.set(e,s)}function gk(o){let t;o._bindings.forEach((e,n)=>{o._to.forEach(i=>{t=i.properties[e.callback?0:o._bindProperties.indexOf(n)],e.to.push([i.observable,t]),hk(o._observable,e,i.observable,t)})})}function Pc(o,t){const n=o[No].get(t);let i;n.callback?i=n.callback.apply(o,n.to.map(r=>r[0][r[1]])):(i=n.to[0],i=i[0][i[1]]),Object.prototype.hasOwnProperty.call(o,t)?o[t]=i:o.set(t,i)}function fk(o,t){t.forEach(e=>{const n=o[Bo];let i;n.get(e.observable)||o.listenTo(e.observable,"change",(r,s)=>{i=n.get(e.observable)[s],i&&i.forEach(a=>{Pc(o,a.property)})})})}class Lc{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:e})=>{t.style.display="",e&&e.remove()}),this._replacedElements=[]}}function $i(o){let t=0;for(const e of o)t++;return t}function jt(o,t){const e=Math.min(o.length,t.length);for(let n=0;n<e;n++)if(o[n]!=t[n])return n;return o.length==t.length?"same":o.length<t.length?"prefix":"extension"}function $t(o){return!!(o&&o[Symbol.iterator])}var mk=typeof Fi=="object"&&Fi&&Fi.Object===Object&&Fi;const Oc=mk;var pk=typeof self=="object"&&self&&self.Object===Object&&self,kk=Oc||pk||Function("return this")();const le=kk;var bk=le.Symbol;const ke=bk;var Rc=Object.prototype,wk=Rc.hasOwnProperty,Ak=Rc.toString,qn=ke?ke.toStringTag:void 0;function Ck(o){var t=wk.call(o,qn),e=o[qn];try{o[qn]=void 0;var n=!0}catch{}var i=Ak.call(o);return n&&(t?o[qn]=e:delete o[qn]),i}const _k=Ck;var vk=Object.prototype,yk=vk.toString;function xk(o){return yk.call(o)}const Ek=xk;var Dk="[object Null]",Sk="[object Undefined]",jc=ke?ke.toStringTag:void 0;function Tk(o){return o==null?o===void 0?Sk:Dk:jc&&jc in Object(o)?_k(o):Ek(o)}const Oe=Tk;var Ik=Array.isArray;const Vt=Ik;function Mk(o){return o!=null&&typeof o=="object"}const ne=Mk;var Bk="[object String]";function Nk(o){return typeof o=="string"||!Vt(o)&&ne(o)&&Oe(o)==Bk}const Fc=Nk;function Wn(o,t,e={},n=[]){const i=e&&e.xmlns,r=i?o.createElementNS(i,t):o.createElement(t);for(const s in e)r.setAttribute(s,e[s]);(Fc(n)||!$t(n))&&(n=[n]);for(let s of n)Fc(s)&&(s=o.createTextNode(s)),r.appendChild(s);return r}function zk(o,t){return function(e){return o(t(e))}}const Vc=zk;var Pk=Vc(Object.getPrototypeOf,Object);const Ki=Pk;var Lk="[object Object]",Ok=Function.prototype,Rk=Object.prototype,Hc=Ok.toString,jk=Rk.hasOwnProperty,Fk=Hc.call(Object);function Vk(o){if(!ne(o)||Oe(o)!=Lk)return!1;var t=Ki(o);if(t===null)return!0;var e=jk.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Hc.call(e)==Fk}const Kt=Vk;function Hk(){this.__data__=[],this.size=0}const Uk=Hk;function qk(o,t){return o===t||o!==o&&t!==t}const Gn=qk;function Wk(o,t){for(var e=o.length;e--;)if(Gn(o[e][0],t))return e;return-1}const zo=Wk;var Gk=Array.prototype,$k=Gk.splice;function Kk(o){var t=this.__data__,e=zo(t,o);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():$k.call(t,e,1),--this.size,!0}const Zk=Kk;function Yk(o){var t=this.__data__,e=zo(t,o);return e<0?void 0:t[e][1]}const Qk=Yk;function Jk(o){return zo(this.__data__,o)>-1}const Xk=Jk;function tb(o,t){var e=this.__data__,n=zo(e,o);return n<0?(++this.size,e.push([o,t])):e[n][1]=t,this}const eb=tb;function bn(o){var t=-1,e=o==null?0:o.length;for(this.clear();++t<e;){var n=o[t];this.set(n[0],n[1])}}bn.prototype.clear=Uk,bn.prototype.delete=Zk,bn.prototype.get=Qk,bn.prototype.has=Xk,bn.prototype.set=eb;const Po=bn;function nb(){this.__data__=new Po,this.size=0}const ob=nb;function ib(o){var t=this.__data__,e=t.delete(o);return this.size=t.size,e}const rb=ib;function sb(o){return this.__data__.get(o)}const ab=sb;function cb(o){return this.__data__.has(o)}const lb=cb;var db="[object AsyncFunction]",ub="[object Function]",hb="[object GeneratorFunction]",gb="[object Proxy]";function fb(o){if(!_t(o))return!1;var t=Oe(o);return t==ub||t==hb||t==db||t==gb}const $e=fb;var mb=le["__core-js_shared__"];const Zi=mb;var Uc=function(){var o=/[^.]+$/.exec(Zi&&Zi.keys&&Zi.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function pb(o){return!!Uc&&Uc in o}const kb=pb;var bb=Function.prototype,wb=bb.toString;function Ab(o){if(o!=null){try{return wb.call(o)}catch{}try{return o+""}catch{}}return""}const Ke=Ab;var Cb=/[\\^$.*+?()[\]{}|]/g,_b=/^\[object .+?Constructor\]$/,vb=Function.prototype,yb=Object.prototype,xb=vb.toString,Eb=yb.hasOwnProperty,Db=RegExp("^"+xb.call(Eb).replace(Cb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sb(o){if(!_t(o)||kb(o))return!1;var t=$e(o)?Db:_b;return t.test(Ke(o))}const Tb=Sb;function Ib(o,t){return o==null?void 0:o[t]}const Mb=Ib;function Bb(o,t){var e=Mb(o,t);return Tb(e)?e:void 0}const Ze=Bb;var Nb=Ze(le,"Map");const $n=Nb;var zb=Ze(Object,"create");const Kn=zb;function Pb(){this.__data__=Kn?Kn(null):{},this.size=0}const Lb=Pb;function Ob(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t}const Rb=Ob;var jb="__lodash_hash_undefined__",Fb=Object.prototype,Vb=Fb.hasOwnProperty;function Hb(o){var t=this.__data__;if(Kn){var e=t[o];return e===jb?void 0:e}return Vb.call(t,o)?t[o]:void 0}const Ub=Hb;var qb=Object.prototype,Wb=qb.hasOwnProperty;function Gb(o){var t=this.__data__;return Kn?t[o]!==void 0:Wb.call(t,o)}const $b=Gb;var Kb="__lodash_hash_undefined__";function Zb(o,t){var e=this.__data__;return this.size+=this.has(o)?0:1,e[o]=Kn&&t===void 0?Kb:t,this}const Yb=Zb;function wn(o){var t=-1,e=o==null?0:o.length;for(this.clear();++t<e;){var n=o[t];this.set(n[0],n[1])}}wn.prototype.clear=Lb,wn.prototype.delete=Rb,wn.prototype.get=Ub,wn.prototype.has=$b,wn.prototype.set=Yb;const qc=wn;function Qb(){this.size=0,this.__data__={hash:new qc,map:new($n||Po),string:new qc}}const Jb=Qb;function Xb(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}const tw=Xb;function ew(o,t){var e=o.__data__;return tw(t)?e[typeof t=="string"?"string":"hash"]:e.map}const Lo=ew;function nw(o){var t=Lo(this,o).delete(o);return this.size-=t?1:0,t}const ow=nw;function iw(o){return Lo(this,o).get(o)}const rw=iw;function sw(o){return Lo(this,o).has(o)}const aw=sw;function cw(o,t){var e=Lo(this,o),n=e.size;return e.set(o,t),this.size+=e.size==n?0:1,this}const lw=cw;function An(o){var t=-1,e=o==null?0:o.length;for(this.clear();++t<e;){var n=o[t];this.set(n[0],n[1])}}An.prototype.clear=Jb,An.prototype.delete=ow,An.prototype.get=rw,An.prototype.has=aw,An.prototype.set=lw;const Oo=An;var dw=200;function uw(o,t){var e=this.__data__;if(e instanceof Po){var n=e.__data__;if(!$n||n.length<dw-1)return n.push([o,t]),this.size=++e.size,this;e=this.__data__=new Oo(n)}return e.set(o,t),this.size=e.size,this}const hw=uw;function Cn(o){var t=this.__data__=new Po(o);this.size=t.size}Cn.prototype.clear=ob,Cn.prototype.delete=rb,Cn.prototype.get=ab,Cn.prototype.has=lb,Cn.prototype.set=hw;const Zn=Cn;function gw(o,t){for(var e=-1,n=o==null?0:o.length;++e<n&&t(o[e],e,o)!==!1;);return o}const fw=gw;var mw=function(){try{var o=Ze(Object,"defineProperty");return o({},"",{}),o}catch{}}();const Ro=mw;function pw(o,t,e){t=="__proto__"&&Ro?Ro(o,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):o[t]=e}const Yi=pw;var kw=Object.prototype,bw=kw.hasOwnProperty;function ww(o,t,e){var n=o[t];(!(bw.call(o,t)&&Gn(n,e))||e===void 0&&!(t in o))&&Yi(o,t,e)}const Qi=ww;function Aw(o,t,e,n){var i=!e;e||(e={});for(var r=-1,s=t.length;++r<s;){var a=t[r],c=n?n(e[a],o[a],a,e,o):void 0;c===void 0&&(c=o[a]),i?Yi(e,a,c):Qi(e,a,c)}return e}const _n=Aw;function Cw(o,t){for(var e=-1,n=Array(o);++e<o;)n[e]=t(e);return n}const _w=Cw;var vw="[object Arguments]";function yw(o){return ne(o)&&Oe(o)==vw}const Wc=yw;var Gc=Object.prototype,xw=Gc.hasOwnProperty,Ew=Gc.propertyIsEnumerable,Dw=Wc(function(){return arguments}())?Wc:function(o){return ne(o)&&xw.call(o,"callee")&&!Ew.call(o,"callee")};const Ji=Dw;function Sw(){return!1}const Tw=Sw;var $c=xe&&!xe.nodeType&&xe,Kc=$c&&!0&&pe&&!pe.nodeType&&pe,Iw=Kc&&Kc.exports===$c,Zc=Iw?le.Buffer:void 0,Mw=Zc?Zc.isBuffer:void 0,Bw=Mw||Tw;const Yn=Bw;var Nw=9007199254740991,zw=/^(?:0|[1-9]\d*)$/;function Pw(o,t){var e=typeof o;return t=t??Nw,!!t&&(e=="number"||e!="symbol"&&zw.test(o))&&o>-1&&o%1==0&&o<t}const Xi=Pw;var Lw=9007199254740991;function Ow(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Lw}const Yc=Ow;var Rw="[object Arguments]",jw="[object Array]",Fw="[object Boolean]",Vw="[object Date]",Hw="[object Error]",Uw="[object Function]",qw="[object Map]",Ww="[object Number]",Gw="[object Object]",$w="[object RegExp]",Kw="[object Set]",Zw="[object String]",Yw="[object WeakMap]",Qw="[object ArrayBuffer]",Jw="[object DataView]",Xw="[object Float32Array]",tA="[object Float64Array]",eA="[object Int8Array]",nA="[object Int16Array]",oA="[object Int32Array]",iA="[object Uint8Array]",rA="[object Uint8ClampedArray]",sA="[object Uint16Array]",aA="[object Uint32Array]",wt={};wt[Xw]=wt[tA]=wt[eA]=wt[nA]=wt[oA]=wt[iA]=wt[rA]=wt[sA]=wt[aA]=!0,wt[Rw]=wt[jw]=wt[Qw]=wt[Fw]=wt[Jw]=wt[Vw]=wt[Hw]=wt[Uw]=wt[qw]=wt[Ww]=wt[Gw]=wt[$w]=wt[Kw]=wt[Zw]=wt[Yw]=!1;function cA(o){return ne(o)&&Yc(o.length)&&!!wt[Oe(o)]}const lA=cA;function dA(o){return function(t){return o(t)}}const tr=dA;var Qc=xe&&!xe.nodeType&&xe,Qn=Qc&&!0&&pe&&!pe.nodeType&&pe,uA=Qn&&Qn.exports===Qc,er=uA&&Oc.process,hA=function(){try{var o=Qn&&Qn.require&&Qn.require("util").types;return o||er&&er.binding&&er.binding("util")}catch{}}();const vn=hA;var Jc=vn&&vn.isTypedArray,gA=Jc?tr(Jc):lA;const nr=gA;var fA=Object.prototype,mA=fA.hasOwnProperty;function pA(o,t){var e=Vt(o),n=!e&&Ji(o),i=!e&&!n&&Yn(o),r=!e&&!n&&!i&&nr(o),s=e||n||i||r,a=s?_w(o.length,String):[],c=a.length;for(var l in o)(t||mA.call(o,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||r&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Xi(l,c)))&&a.push(l);return a}const Xc=pA;var kA=Object.prototype;function bA(o){var t=o&&o.constructor,e=typeof t=="function"&&t.prototype||kA;return o===e}const or=bA;var wA=Vc(Object.keys,Object);const AA=wA;var CA=Object.prototype,_A=CA.hasOwnProperty;function vA(o){if(!or(o))return AA(o);var t=[];for(var e in Object(o))_A.call(o,e)&&e!="constructor"&&t.push(e);return t}const yA=vA;function xA(o){return o!=null&&Yc(o.length)&&!$e(o)}const jo=xA;function EA(o){return jo(o)?Xc(o):yA(o)}const ir=EA;function DA(o,t){return o&&_n(t,ir(t),o)}const SA=DA;function TA(o){var t=[];if(o!=null)for(var e in Object(o))t.push(e);return t}const IA=TA;var MA=Object.prototype,BA=MA.hasOwnProperty;function NA(o){if(!_t(o))return IA(o);var t=or(o),e=[];for(var n in o)n=="constructor"&&(t||!BA.call(o,n))||e.push(n);return e}const zA=NA;function PA(o){return jo(o)?Xc(o,!0):zA(o)}const yn=PA;function LA(o,t){return o&&_n(t,yn(t),o)}const OA=LA;var tl=xe&&!xe.nodeType&&xe,el=tl&&!0&&pe&&!pe.nodeType&&pe,RA=el&&el.exports===tl,nl=RA?le.Buffer:void 0,ol=nl?nl.allocUnsafe:void 0;function jA(o,t){if(t)return o.slice();var e=o.length,n=ol?ol(e):new o.constructor(e);return o.copy(n),n}const il=jA;function FA(o,t){var e=-1,n=o.length;for(t||(t=Array(n));++e<n;)t[e]=o[e];return t}const rl=FA;function VA(o,t){for(var e=-1,n=o==null?0:o.length,i=0,r=[];++e<n;){var s=o[e];t(s,e,o)&&(r[i++]=s)}return r}const HA=VA;function UA(){return[]}const sl=UA;var qA=Object.prototype,WA=qA.propertyIsEnumerable,al=Object.getOwnPropertySymbols,GA=al?function(o){return o==null?[]:(o=Object(o),HA(al(o),function(t){return WA.call(o,t)}))}:sl;const rr=GA;function $A(o,t){return _n(o,rr(o),t)}const KA=$A;function ZA(o,t){for(var e=-1,n=t.length,i=o.length;++e<n;)o[i+e]=t[e];return o}const cl=ZA;var YA=Object.getOwnPropertySymbols,QA=YA?function(o){for(var t=[];o;)cl(t,rr(o)),o=Ki(o);return t}:sl;const ll=QA;function JA(o,t){return _n(o,ll(o),t)}const XA=JA;function tC(o,t,e){var n=t(o);return Vt(o)?n:cl(n,e(o))}const dl=tC;function eC(o){return dl(o,ir,rr)}const sr=eC;function nC(o){return dl(o,yn,ll)}const oC=nC;var iC=Ze(le,"DataView");const ar=iC;var rC=Ze(le,"Promise");const cr=rC;var sC=Ze(le,"Set");const lr=sC;var aC=Ze(le,"WeakMap");const dr=aC;var ul="[object Map]",cC="[object Object]",hl="[object Promise]",gl="[object Set]",fl="[object WeakMap]",ml="[object DataView]",lC=Ke(ar),dC=Ke($n),uC=Ke(cr),hC=Ke(lr),gC=Ke(dr),Ye=Oe;(ar&&Ye(new ar(new ArrayBuffer(1)))!=ml||$n&&Ye(new $n)!=ul||cr&&Ye(cr.resolve())!=hl||lr&&Ye(new lr)!=gl||dr&&Ye(new dr)!=fl)&&(Ye=function(o){var t=Oe(o),e=t==cC?o.constructor:void 0,n=e?Ke(e):"";if(n)switch(n){case lC:return ml;case dC:return ul;case uC:return hl;case hC:return gl;case gC:return fl}return t});const Jn=Ye;var fC=Object.prototype,mC=fC.hasOwnProperty;function pC(o){var t=o.length,e=new o.constructor(t);return t&&typeof o[0]=="string"&&mC.call(o,"index")&&(e.index=o.index,e.input=o.input),e}const kC=pC;var bC=le.Uint8Array;const Fo=bC;function wC(o){var t=new o.constructor(o.byteLength);return new Fo(t).set(new Fo(o)),t}const ur=wC;function AC(o,t){var e=t?ur(o.buffer):o.buffer;return new o.constructor(e,o.byteOffset,o.byteLength)}const CC=AC;var _C=/\w*$/;function vC(o){var t=new o.constructor(o.source,_C.exec(o));return t.lastIndex=o.lastIndex,t}const yC=vC;var pl=ke?ke.prototype:void 0,kl=pl?pl.valueOf:void 0;function xC(o){return kl?Object(kl.call(o)):{}}const EC=xC;function DC(o,t){var e=t?ur(o.buffer):o.buffer;return new o.constructor(e,o.byteOffset,o.length)}const bl=DC;var SC="[object Boolean]",TC="[object Date]",IC="[object Map]",MC="[object Number]",BC="[object RegExp]",NC="[object Set]",zC="[object String]",PC="[object Symbol]",LC="[object ArrayBuffer]",OC="[object DataView]",RC="[object Float32Array]",jC="[object Float64Array]",FC="[object Int8Array]",VC="[object Int16Array]",HC="[object Int32Array]",UC="[object Uint8Array]",qC="[object Uint8ClampedArray]",WC="[object Uint16Array]",GC="[object Uint32Array]";function $C(o,t,e){var n=o.constructor;switch(t){case LC:return ur(o);case SC:case TC:return new n(+o);case OC:return CC(o,e);case RC:case jC:case FC:case VC:case HC:case UC:case qC:case WC:case GC:return bl(o,e);case IC:return new n;case MC:case zC:return new n(o);case BC:return yC(o);case NC:return new n;case PC:return EC(o)}}const KC=$C;var wl=Object.create,ZC=function(){function o(){}return function(t){if(!_t(t))return{};if(wl)return wl(t);o.prototype=t;var e=new o;return o.prototype=void 0,e}}();const YC=ZC;function QC(o){return typeof o.constructor=="function"&&!or(o)?YC(Ki(o)):{}}const Al=QC;var JC="[object Map]";function XC(o){return ne(o)&&Jn(o)==JC}const t_=XC;var Cl=vn&&vn.isMap,e_=Cl?tr(Cl):t_;const n_=e_;var o_="[object Set]";function i_(o){return ne(o)&&Jn(o)==o_}const r_=i_;var _l=vn&&vn.isSet,s_=_l?tr(_l):r_;const a_=s_;var c_=1,l_=2,d_=4,vl="[object Arguments]",u_="[object Array]",h_="[object Boolean]",g_="[object Date]",f_="[object Error]",yl="[object Function]",m_="[object GeneratorFunction]",p_="[object Map]",k_="[object Number]",xl="[object Object]",b_="[object RegExp]",w_="[object Set]",A_="[object String]",C_="[object Symbol]",__="[object WeakMap]",v_="[object ArrayBuffer]",y_="[object DataView]",x_="[object Float32Array]",E_="[object Float64Array]",D_="[object Int8Array]",S_="[object Int16Array]",T_="[object Int32Array]",I_="[object Uint8Array]",M_="[object Uint8ClampedArray]",B_="[object Uint16Array]",N_="[object Uint32Array]",kt={};kt[vl]=kt[u_]=kt[v_]=kt[y_]=kt[h_]=kt[g_]=kt[x_]=kt[E_]=kt[D_]=kt[S_]=kt[T_]=kt[p_]=kt[k_]=kt[xl]=kt[b_]=kt[w_]=kt[A_]=kt[C_]=kt[I_]=kt[M_]=kt[B_]=kt[N_]=!0,kt[f_]=kt[yl]=kt[__]=!1;function Vo(o,t,e,n,i,r){var s,a=t&c_,c=t&l_,l=t&d_;if(e&&(s=i?e(o,n,i,r):e(o)),s!==void 0)return s;if(!_t(o))return o;var d=Vt(o);if(d){if(s=kC(o),!a)return rl(o,s)}else{var u=Jn(o),f=u==yl||u==m_;if(Yn(o))return il(o,a);if(u==xl||u==vl||f&&!i){if(s=c||f?{}:Al(o),!a)return c?XA(o,OA(s,o)):KA(o,SA(s,o))}else{if(!kt[u])return i?o:{};s=KC(o,u,a)}}r||(r=new Zn);var p=r.get(o);if(p)return p;r.set(o,s),a_(o)?o.forEach(function(B){s.add(Vo(B,t,e,B,o,r))}):n_(o)&&o.forEach(function(B,z){s.set(z,Vo(B,t,e,z,o,r))});var w=l?c?oC:sr:c?yn:ir,S=d?void 0:w(o);return fw(S||o,function(B,z){S&&(z=B,B=o[z]),Qi(s,z,Vo(B,t,e,z,o,r))}),s}const hr=Vo;var z_=1,P_=4;function L_(o,t){return t=typeof t=="function"?t:void 0,hr(o,z_|P_,t)}const gr=L_;function O_(o){return ne(o)&&o.nodeType===1&&!Kt(o)}const Qe=O_;class El{constructor(t,e){this._config={},e&&this.define(Dl(e)),t&&this._setObjectToTarget(this._config,t)}set(t,e){this._setToTarget(this._config,t,e)}define(t,e){this._setToTarget(this._config,t,e,!0)}get(t){return this._getFromSource(this._config,t)}*names(){for(const t of Object.keys(this._config))yield t}_setToTarget(t,e,n,i=!1){if(Kt(e)){this._setObjectToTarget(t,e,i);return}const r=e.split(".");e=r.pop();for(const s of r)Kt(t[s])||(t[s]={}),t=t[s];if(Kt(n)){Kt(t[e])||(t[e]={}),t=t[e],this._setObjectToTarget(t,n,i);return}i&&typeof t[e]<"u"||(t[e]=n)}_getFromSource(t,e){const n=e.split(".");e=n.pop();for(const i of n){if(!Kt(t[i])){t=null;break}t=t[i]}return t?Dl(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach(i=>{this._setToTarget(t,i,e[i],n)})}}function Dl(o){return gr(o,R_)}function R_(o){return Qe(o)||typeof o=="function"?o:void 0}function Re(o){if(o){if(o.defaultView)return o instanceof o.defaultView.Document;if(o.ownerDocument&&o.ownerDocument.defaultView)return o instanceof o.ownerDocument.defaultView.Node}return!1}function Ho(o){const t=Object.prototype.toString.apply(o);return t=="[object Window]"||t=="[object global]"}const Sl=Zt(ct());function Zt(o){if(!o)return Sl;class t extends o{listenTo(n,i,r,s={}){if(Re(n)||Ho(n)){const a={capture:!!s.useCapture,passive:!!s.usePassive},c=this._getProxyEmitter(n,a)||new j_(n,a);this.listenTo(c,i,r,s)}else super.listenTo(n,i,r,s)}stopListening(n,i,r){if(Re(n)||Ho(n)){const s=this._getAllProxyEmitters(n);for(const a of s)this.stopListening(a,i,r)}else super.stopListening(n,i,r)}_getProxyEmitter(n,i){return ok(this,Tl(n,i))}_getAllProxyEmitters(n){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(i=>this._getProxyEmitter(n,i)).filter(i=>!!i)}}return t}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{Zt[o]=Sl.prototype[o]});class j_ extends ct(){constructor(t,e){super(),Sc(this,Tl(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;this._domListeners[t]&&(!(e=this._events[t])||!e.callbacks.length)&&this._domListeners[t].removeListener()}_addEventListener(t,e,n){this.attach(t),ct().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){ct().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=n=>{this.fire(t,n)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function F_(o){return o["data-ck-expando"]||(o["data-ck-expando"]=qt())}function Tl(o,t){let e=F_(o);for(const n of Object.keys(t).sort())t[n]&&(e+="-"+n);return e}let fr;try{fr={window,document}}catch{fr={window:{},document:{}}}const U=fr;function V_(o){const t=[];let e=o;for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}function H_(o){return o instanceof HTMLTextAreaElement?o.value:o.innerHTML}function Dt(o){return Object.prototype.toString.call(o)=="[object Text]"}function Uo(o){return Object.prototype.toString.apply(o)=="[object Range]"}function Il(o){const t=o.ownerDocument.defaultView.getComputedStyle(o);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function Ml(o){return!o||!o.parentNode||o.offsetParent===U.document.body?null:o.offsetParent}const Bl=["top","right","bottom","left","width","height"];class Q{constructor(t){const e=Uo(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),mr(t)||e)if(e){const n=Q.getDomRangeRects(t);qo(this,Q.getBoundingRect(n))}else qo(this,t.getBoundingClientRect());else if(Ho(t)){const{innerWidth:n,innerHeight:i}=t;qo(this,{top:0,right:n,bottom:i,left:0,width:n,height:i})}else qo(this,t)}clone(){return new Q(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const n=new Q(e);return n._source=this._source,n}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(Nl(t))return e;let n=t,i=t.parentNode||t.commonAncestorContainer,r;for(;i&&!Nl(i);){const s=U_(i)==="visible";n instanceof HTMLElement&&zl(n)==="absolute"&&(r=n);const a=zl(i);if(s||r&&(a==="relative"&&s||a!=="relative")){n=i,i=i.parentNode;continue}const c=new Q(i),l=e.getIntersection(c);if(l)l.getArea()<e.getArea()&&(e=l);else return null;n=i,i=i.parentNode}return e}isEqual(t){for(const e of Bl)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!!(e&&e.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:e}=U.window,n=this.clone().moveBy(t,e);if(mr(n._source)){const i=Ml(n._source);i&&q_(n,i)}return n}excludeScrollbarsAndBorders(){const t=this._source;let e,n,i;if(Ho(t))e=t.innerWidth-t.document.documentElement.clientWidth,n=t.innerHeight-t.document.documentElement.clientHeight,i=t.getComputedStyle(t.document.documentElement).direction;else{const r=Il(t);e=t.offsetWidth-t.clientWidth-r.left-r.right,n=t.offsetHeight-t.clientHeight-r.top-r.bottom,i=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,i==="ltr"?this.right-=e:this.left+=e,this.height-=n,this.bottom-=n,this}static getDomRangeRects(t){const e=[],n=Array.from(t.getClientRects());if(n.length)for(const i of n)e.push(new Q(i));else{let i=t.startContainer;Dt(i)&&(i=i.parentNode);const r=new Q(i.getBoundingClientRect());r.right=r.left,r.width=0,e.push(r)}return e}static getBoundingRect(t){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let n=0;for(const i of t)n++,e.left=Math.min(e.left,i.left),e.top=Math.min(e.top,i.top),e.right=Math.max(e.right,i.right),e.bottom=Math.max(e.bottom,i.bottom);return n==0?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new Q(e))}}function qo(o,t){for(const e of Bl)o[e]=t[e]}function Nl(o){return mr(o)?o===o.ownerDocument.body:!1}function mr(o){return o!==null&&typeof o=="object"&&o.nodeType===1&&typeof o.getBoundingClientRect=="function"}function zl(o){return o instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).position:"static"}function U_(o){return o instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).overflow:"visible"}function q_(o,t){const e=new Q(t),n=Il(t);let i=0,r=0;i-=e.left,r-=e.top,i+=t.scrollLeft,r+=t.scrollTop,i-=n.left,r-=n.top,o.moveBy(i,r)}class bt{constructor(t,e){bt._observerInstance||bt._createObserver(),this._element=t,this._callback=e,bt._addElementCallback(t,e),bt._observerInstance.observe(t)}get element(){return this._element}destroy(){bt._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){bt._elementCallbacks||(bt._elementCallbacks=new Map);let n=bt._elementCallbacks.get(t);n||(n=new Set,bt._elementCallbacks.set(t,n)),n.add(e)}static _deleteElementCallback(t,e){const n=bt._getElementCallbacks(t);n&&(n.delete(e),n.size||(bt._elementCallbacks.delete(t),bt._observerInstance.unobserve(t))),bt._elementCallbacks&&!bt._elementCallbacks.size&&(bt._observerInstance=null,bt._elementCallbacks=null)}static _getElementCallbacks(t){return bt._elementCallbacks?bt._elementCallbacks.get(t):null}static _createObserver(){bt._observerInstance=new U.window.ResizeObserver(t=>{for(const e of t){const n=bt._getElementCallbacks(e.target);if(n)for(const i of n)i(e)}})}}bt._observerInstance=null,bt._elementCallbacks=null;function Pl(o,t){o instanceof HTMLTextAreaElement&&(o.value=t),o.innerHTML=t}function Xn(o){return t=>t+o}function Wo(o){let t=0;for(;o.previousSibling;)o=o.previousSibling,t++;return t}function Ll(o,t,e){o.insertBefore(e,o.childNodes[t]||null)}function to(o){return o&&o.nodeType===Node.COMMENT_NODE}function W_(o){try{U.document.createAttribute(o)}catch{return!1}return!0}function Je(o){return!!(o&&o.getClientRects&&o.getClientRects().length)}function pr({element:o,target:t,positions:e,limiter:n,fitInViewport:i,viewportOffsetConfig:r}){$e(t)&&(t=t()),$e(n)&&(n=n());const s=Ml(o),a=G_(r),c=new Q(o),l=Ol(t,a);let d;if(!l||!a.getIntersection(l))return null;const u={targetRect:l,elementRect:c,positionedElementAncestor:s,viewportRect:a};if(!n&&!i)d=new Rl(e[0],u);else{if(n){const f=Ol(n,a);f&&(u.limiterRect=f)}d=$_(e,u)}return d}function Ol(o,t){const e=new Q(o).getVisible();return e?e.getIntersection(t):null}function G_(o){o=Object.assign({top:0,bottom:0,left:0,right:0},o);const t=new Q(U.window);return t.top+=o.top,t.height-=o.top,t.bottom-=o.bottom,t.height-=o.bottom,t}function $_(o,t){const{elementRect:e}=t,n=e.getArea(),i=o.map(a=>new Rl(a,t)).filter(a=>!!a.name);let r=0,s=null;for(const a of i){const{limiterIntersectionArea:c,viewportIntersectionArea:l}=a;if(c===n)return a;const d=l**2+c**2;d>r&&(r=d,s=a)}return s}class Rl{constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!n)return;const{left:i,top:r,name:s,config:a}=n;this.name=s,this.config=a,this._positioningFunctionCoordinates={left:i,top:r},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect?this._cachedRect:(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top),this._cachedRect)}get _absoluteRect(){return this._cachedAbsoluteRect?this._cachedAbsoluteRect:(this._cachedAbsoluteRect=this._rect.toAbsoluteRect(),this._cachedAbsoluteRect)}}function jl(o){const t=o.parentNode;t&&t.removeChild(o)}function K_({target:o,viewportOffset:t=0,ancestorOffset:e=0,alignToTop:n,forceScroll:i}){const r=kr(o);let s=r,a=null;for(t=Q_(t);s;){let c;s==r?c=ql(o):c=ql(a),Y_({parent:c,getRect:()=>Wl(o,s),alignToTop:n,ancestorOffset:e,forceScroll:i});const l=Wl(o,s);if(Z_({window:s,rect:l,viewportOffset:t,alignToTop:n,forceScroll:i}),s.parent!=s){if(a=s.frameElement,s=s.parent,!a)return}else s=null}}function Z_({window:o,rect:t,alignToTop:e,forceScroll:n,viewportOffset:i}){const r=t.clone().moveBy(0,i.bottom),s=t.clone().moveBy(0,-i.top),a=new Q(o).excludeScrollbarsAndBorders(),c=[s,r],l=e&&n,d=c.every(S=>a.contains(S));let{scrollX:u,scrollY:f}=o;const p=u,w=f;l?f-=a.top-t.top+i.top:d||(Vl(s,a)?f-=a.top-t.top+i.top:Fl(r,a)&&(e?f+=t.top-a.top-i.top:f+=t.bottom-a.bottom+i.bottom)),d||(Hl(t,a)?u-=a.left-t.left+i.left:Ul(t,a)&&(u+=t.right-a.right+i.right)),(u!=p||f!==w)&&o.scrollTo(u,f)}function Y_({parent:o,getRect:t,alignToTop:e,forceScroll:n,ancestorOffset:i=0,limiterElement:r}){const s=kr(o),a=e&&n;let c,l,d;const u=r||s.document.body;for(;o!=u;)l=t(),c=new Q(o).excludeScrollbarsAndBorders(),d=c.contains(l),a?o.scrollTop-=c.top-l.top+i:d||(Vl(l,c)?o.scrollTop-=c.top-l.top+i:Fl(l,c)&&(e?o.scrollTop+=l.top-c.top-i:o.scrollTop+=l.bottom-c.bottom+i)),d||(Hl(l,c)?o.scrollLeft-=c.left-l.left+i:Ul(l,c)&&(o.scrollLeft+=l.right-c.right+i)),o=o.parentNode}function Fl(o,t){return o.bottom>t.bottom}function Vl(o,t){return o.top<t.top}function Hl(o,t){return o.left<t.left}function Ul(o,t){return o.right>t.right}function kr(o){return Uo(o)?o.startContainer.ownerDocument.defaultView:o.ownerDocument.defaultView}function ql(o){if(Uo(o)){let t=o.commonAncestorContainer;return Dt(t)&&(t=t.parentNode),t}else return o.parentNode}function Wl(o,t){const e=kr(o),n=new Q(o);if(e===t)return n;{let i=e;for(;i!=t;){const r=i.frameElement,s=new Q(r).excludeScrollbarsAndBorders();n.moveBy(s.left,s.top),i=i.parent}}return n}function Q_(o){return typeof o=="number"?{top:o,bottom:o,left:o,right:o}:o}const J_={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},X_={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},tt=i0(),t0=Object.fromEntries(Object.entries(tt).map(([o,t])=>[t,o.charAt(0).toUpperCase()+o.slice(1)]));function xn(o){let t;if(typeof o=="string"){if(t=tt[o.toLowerCase()],!t)throw new b("keyboard-unknown-key",null,{key:o})}else t=o.keyCode+(o.altKey?tt.alt:0)+(o.ctrlKey?tt.ctrl:0)+(o.shiftKey?tt.shift:0)+(o.metaKey?tt.cmd:0);return t}function eo(o){return typeof o=="string"&&(o=r0(o)),o.map(t=>typeof t=="string"?n0(t):t).reduce((t,e)=>e+t,0)}function Gl(o){let t=eo(o);return Object.entries(g.isMac||g.isiOS?J_:X_).reduce((i,[r,s])=>(t&tt[r]&&(t&=~tt[r],i+=s),i),"")+(t?t0[t]:"")}function e0(o){return o==tt.arrowright||o==tt.arrowleft||o==tt.arrowup||o==tt.arrowdown}function br(o,t){const e=t==="ltr";switch(o){case tt.arrowleft:return e?"left":"right";case tt.arrowright:return e?"right":"left";case tt.arrowup:return"up";case tt.arrowdown:return"down"}}function n0(o){if(o.endsWith("!"))return xn(o.slice(0,-1));const t=xn(o);return(g.isMac||g.isiOS)&&t==tt.ctrl?tt.cmd:t}function o0(o,t){const e=br(o,t);return e==="down"||e==="right"}function i0(){const o={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++){const e=String.fromCharCode(t);o[e.toLowerCase()]=t}for(let t=48;t<=57;t++)o[t-48]=t;for(let t=112;t<=123;t++)o["f"+(t-111)]=t;for(const t of"`-=[];',./\\")o[t]=t.charCodeAt(0);return o}function r0(o){return o.split("+").map(t=>t.trim())}function Tt(o){return Array.isArray(o)?o:[o]}U.window.CKEDITOR_TRANSLATIONS||(U.window.CKEDITOR_TRANSLATIONS={});function s0(o,t,e=1){if(typeof e!="number")throw new b("translation-service-quantity-not-a-number",null,{quantity:e});const n=c0();n===1&&(o=Object.keys(U.window.CKEDITOR_TRANSLATIONS)[0]);const i=t.id||t.string;if(n===0||!a0(o,i))return e!==1?t.plural:t.string;const r=U.window.CKEDITOR_TRANSLATIONS[o].dictionary,s=U.window.CKEDITOR_TRANSLATIONS[o].getPluralForm||(l=>l===1?0:1),a=r[i];if(typeof a=="string")return a;const c=Number(s(e));return a[c]}function a0(o,t){return!!U.window.CKEDITOR_TRANSLATIONS[o]&&!!U.window.CKEDITOR_TRANSLATIONS[o].dictionary[t]}function c0(){return Object.keys(U.window.CKEDITOR_TRANSLATIONS).length}const l0=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function $l(o){return l0.includes(o)?"rtl":"ltr"}class d0{constructor({uiLanguage:t="en",contentLanguage:e}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=$l(this.uiLanguage),this.contentLanguageDirection=$l(this.contentLanguage),this.t=(n,i)=>this._t(n,i)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){e=Tt(e),typeof t=="string"&&(t={string:t});const i=!!t.plural?e[0]:1,r=s0(this.uiLanguage,t,i);return u0(r,e)}}function u0(o,t){return o.replace(/%(\d+)/g,(e,n)=>n<t.length?t[n]:e)}class oe extends ct(){constructor(t={},e={}){super();const n=$t(t);if(n||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const i of t)this._items.push(i),this._itemMap.set(this._getItemIdBeforeAdding(i),i)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(e===void 0)e=this._items.length;else if(e>this._items.length||e<0)throw new b("collection-add-item-invalid-index",this);let n=0;for(const i of t){const r=this._getItemIdBeforeAdding(i),s=e+n;this._items.splice(s,0,i),this._itemMap.set(r,i),this.fire("add",i,s),n++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if(typeof t=="string")e=this._itemMap.get(t);else if(typeof t=="number")e=this._items[t];else throw new b("collection-get-invalid-arg",this);return e||null}has(t){if(typeof t=="string")return this._itemMap.has(t);{const e=this._idProperty,n=t[e];return n&&this._itemMap.has(n)}}getIndex(t){let e;return typeof t=="string"?e=this._itemMap.get(t):e=t,e?this._items.indexOf(e):-1}remove(t){const[e,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),e}map(t,e){return this._items.map(t,e)}forEach(t,e){this._items.forEach(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new b("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:e=>{this._setUpBindToBinding(n=>new e(n))},using:e=>{typeof e=="function"?this._setUpBindToBinding(e):this._setUpBindToBinding(n=>n[e])}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(i,r,s)=>{const a=e._bindToCollection==this,c=e._bindToInternalToExternalMap.get(r);if(a&&c)this._bindToExternalToInternalMap.set(r,c),this._bindToInternalToExternalMap.set(c,r);else{const l=t(r);if(!l){this._skippedIndexesFromExternal.push(s);return}let d=s;for(const u of this._skippedIndexesFromExternal)s>u&&d--;for(const u of e._skippedIndexesFromExternal)d>=u&&d++;this._bindToExternalToInternalMap.set(r,l),this._bindToInternalToExternalMap.set(l,r),this.add(l,d);for(let u=0;u<e._skippedIndexesFromExternal.length;u++)d<=e._skippedIndexesFromExternal[u]&&e._skippedIndexesFromExternal[u]++}};for(const i of e)n(null,i,e.getIndex(i));this.listenTo(e,"add",n),this.listenTo(e,"remove",(i,r,s)=>{const a=this._bindToExternalToInternalMap.get(r);a&&this.remove(a),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((c,l)=>(s<l&&c.push(l-1),s>l&&c.push(l),c),[])})}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],typeof n!="string")throw new b("collection-add-invalid-id",this);if(this.get(n))throw new b("collection-add-item-already-exists",this)}else t[e]=n=qt();return n}_remove(t){let e,n,i,r=!1;const s=this._idProperty;if(typeof t=="string"?(n=t,i=this._itemMap.get(n),r=!i,i&&(e=this._items.indexOf(i))):typeof t=="number"?(e=t,i=this._items[e],r=!i,i&&(n=i[s])):(i=t,n=i[s],e=this._items.indexOf(i),r=e==-1||!this._itemMap.get(n)),r)throw new b("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,e),[i,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function It(o){const t=o.next();return t.done?null:t.value}class Ht extends Zt(rt()){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(t){if(this._elements.has(t))throw new b("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>this._focus(t),{useCapture:!0}),this.listenTo(t,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class ie{constructor(){this._listener=new(Zt())}listenTo(t){this._listener.listenTo(t,"keydown",(e,n)=>{this._listener.fire("_keydown:"+xn(n),n)})}set(t,e,n={}){const i=eo(t),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(s,a)=>{e(a,()=>{a.preventDefault(),a.stopPropagation(),s.stop()}),s.return=!0},{priority:r})}press(t){return!!this._listener.fire("_keydown:"+xn(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function h0(o){const t=new Map;for(const e in o)t.set(e,o[e]);return t}function De(o){return $t(o)?new Map(o):h0(o)}const g0=1e4;function f0(o,t,e,n){if(Math.max(t.length,o.length)>g0)return o.slice(0,e).concat(t).concat(o.slice(e+n,o.length));{const i=Array.from(o);return i.splice(e,n,...t),i}}function wr(o,t){let e;function n(...i){n.cancel(),e=setTimeout(()=>o(...i),t)}return n.cancel=()=>{clearTimeout(e)},n}function m0(o){function t(u){return u.length>=40&&u.length<=255?"VALID":"INVALID"}if(!o)return"INVALID";let e="";try{e=atob(o)}catch{return"INVALID"}const n=e.split("-"),i=n[0],r=n[1];if(!r)return t(o);try{atob(r)}catch{try{if(atob(i),!atob(i).length)return t(o)}catch{return t(o)}}if(i.length<40||i.length>255)return"INVALID";let s="";try{atob(i),s=atob(r)}catch{return"INVALID"}if(s.length!==8)return"INVALID";const a=Number(s.substring(0,4)),c=Number(s.substring(4,6))-1,l=Number(s.substring(6,8)),d=new Date(a,c,l);return d<nk||isNaN(Number(d))?"INVALID":"VALID"}function p0(o){return!!o&&o.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(o)}function k0(o){return!!o&&o.length==1&&/[\ud800-\udbff]/.test(o)}function b0(o){return!!o&&o.length==1&&/[\udc00-\udfff]/.test(o)}function Ar(o,t){return k0(o.charAt(t-1))&&b0(o.charAt(t))}function Cr(o,t){return p0(o.charAt(t))}const w0=A0();function Kl(o,t){const e=String(o).matchAll(w0);return Array.from(e).some(n=>n.index<t&&t<n.index+n[0].length)}function A0(){const o=[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u],t=/\p{Regional_Indicator}{2}/u.source,e="(?:"+o.map(i=>i.source).join("|")+")",n=`${t}|${e}(?:${e})*`;return new RegExp(n,"ug")}class be extends oe{constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",(e,n,i)=>{this._renderViewIntoCollectionParent(n,i)}),this.on("remove",(e,n)=>{n.element&&this._parentElement&&n.element.remove()}),this._parentElement=null}destroy(){this.map(t=>t.destroy())}setParent(t){this._parentElement=t;for(const e of this)this._renderViewIntoCollectionParent(e)}delegate(...t){if(!t.length||!C0(t))throw new b("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const i of t)n.delegate(i).to(e);this.on("add",(n,i)=>{for(const r of t)i.delegate(r).to(e)}),this.on("remove",(n,i)=>{for(const r of t)i.stopDelegating(r,e)})}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}function C0(o){return o.every(t=>typeof t=="string")}var _0=L(3379),F=L.n(_0),Zl=L(5167),_r={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};_r.insert="head",_r.singleton=!0,F()(Zl.Z,_r),Zl.Z.locals;class Y extends Zt(rt()){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new oe,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(e,n)=>{n.locale=t,n.t=t&&t.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=re.bind(this,this)}createCollection(t){const e=new be(t);return this._viewCollections.add(e),e}registerChild(t){$t(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){$t(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new re(t)}extendTemplate(t){re.extend(this.template,t)}render(){if(this.isRendered)throw new b("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(t=>t.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}const v0="http://www.w3.org/1999/xhtml";class re extends ct(){constructor(t){super(),Object.assign(this,Xl(Jl(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData=rd(),this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new b("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){function*t(e){if(e.children)for(const n of e.children)$o(n)?yield n:vr(n)&&(yield*t(n))}yield*t(this)}static bind(t,e){return{to(n,i){return new y0({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:i})},if(n,i,r){return new Yl({observable:t,emitter:e,attribute:n,valueIfTrue:i,callback:r})}}}static extend(t,e){if(t._isRendered)throw new b("template-extend-render",[this,t]);od(t,Xl(Jl(e)))}_renderNode(t){let e;if(t.node?e=this.tag&&this.text:e=this.tag?this.text:!this.text,e)throw new b("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||v0,this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Go(this.text)?this._bindToObservable({schema:this.text,updater:E0(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,n=t.revertData;for(const i in this.attributes){const r=e.getAttribute(i),s=this.attributes[i];n&&(n.attributes[i]=r);const a=id(s)?s[0].ns:null;if(Go(s)){const c=id(s)?s[0].value:s;n&&sd(i)&&c.unshift(r),this._bindToObservable({schema:c,updater:D0(e,i,a),data:t})}else if(i=="style"&&typeof s[0]!="string")this._renderStyleAttribute(s[0],t);else{n&&r&&sd(i)&&s.unshift(r);const c=s.map(l=>l&&(l.value||l)).reduce((l,d)=>l.concat(d),[]).reduce(ed,"");En(c)||e.setAttributeNS(a,i,c)}}}_renderStyleAttribute(t,e){const n=e.node;for(const i in t){const r=t[i];Go(r)?this._bindToObservable({schema:[r],updater:S0(n,i),data:e}):n.style[i]=r}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,i=t.isApplying;let r=0;for(const s of this.children)if(yr(s)){if(!i){s.setParent(e);for(const a of s)n.appendChild(a.element)}}else if($o(s))i||(s.isRendered||s.render(),n.appendChild(s.element));else if(Re(s))n.appendChild(s);else if(i){const a=t.revertData,c=rd();a.children.push(c),s._renderNode({intoFragment:!1,node:n.childNodes[r++],isApplying:!0,revertData:c})}else n.appendChild(s.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map(i=>{const[r,s]=e.split("@");return i.activateDomEventListener(r,s,t)});t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const i=n.revertData;Ql(t,e,n);const r=t.filter(s=>!En(s)).filter(s=>s.observable).map(s=>s.activateAttributeListener(t,e,n));i&&i.bindings.push(r)}_revertTemplateFromNode(t,e){for(const i of e.bindings)for(const r of i)r();if(e.text){t.textContent=e.text;return}const n=t;for(const i in e.attributes){const r=e.attributes[i];r===null?n.removeAttribute(i):n.setAttribute(i,r)}for(let i=0;i<e.children.length;++i)this._revertTemplateFromNode(n.childNodes[i],e.children[i])}}class no{constructor(t){this.attribute=t.attribute,this.observable=t.observable,this.emitter=t.emitter,this.callback=t.callback}getValue(t){const e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}activateAttributeListener(t,e,n){const i=()=>Ql(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,i),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,i)}}}class y0 extends no{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,n){const i=(r,s)=>{(!e||s.target.matches(e))&&(typeof this.eventNameOrFunction=="function"?this.eventNameOrFunction(s):this.observable.fire(this.eventNameOrFunction,s))};return this.emitter.listenTo(n.node,t,i),()=>{this.emitter.stopListening(n.node,t,i)}}}class Yl extends no{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){const e=super.getValue(t);return En(e)?!1:this.valueIfTrue||!0}}function Go(o){return o?(o.value&&(o=o.value),Array.isArray(o)?o.some(Go):o instanceof no):!1}function x0(o,t){return o.map(e=>e instanceof no?e.getValue(t):e)}function Ql(o,t,{node:e}){const n=x0(o,e);let i;o.length==1&&o[0]instanceof Yl?i=n[0]:i=n.reduce(ed,""),En(i)?t.remove():t.set(i)}function E0(o){return{set(t){o.textContent=t},remove(){o.textContent=""}}}function D0(o,t,e){return{set(n){o.setAttributeNS(e,t,n)},remove(){o.removeAttributeNS(e,t)}}}function S0(o,t){return{set(e){o.style[t]=e},remove(){o.style[t]=null}}}function Jl(o){return gr(o,e=>{if(e&&(e instanceof no||vr(e)||$o(e)||yr(e)))return e})}function Xl(o){if(typeof o=="string"?o=M0(o):o.text&&B0(o),o.on&&(o.eventListeners=I0(o.on),delete o.on),!o.text){o.attributes&&T0(o.attributes);const t=[];if(o.children)if(yr(o.children))t.push(o.children);else for(const e of o.children)vr(e)||$o(e)||Re(e)?t.push(e):t.push(new re(e));o.children=t}return o}function T0(o){for(const t in o)o[t].value&&(o[t].value=Tt(o[t].value)),td(o,t)}function I0(o){for(const t in o)td(o,t);return o}function M0(o){return{text:[o]}}function B0(o){o.text=Tt(o.text)}function td(o,t){o[t]=Tt(o[t])}function ed(o,t){return En(t)?o:En(o)?t:`${o} ${t}`}function nd(o,t){for(const e in t)o[e]?o[e].push(...t[e]):o[e]=t[e]}function od(o,t){if(t.attributes&&(o.attributes||(o.attributes={}),nd(o.attributes,t.attributes)),t.eventListeners&&(o.eventListeners||(o.eventListeners={}),nd(o.eventListeners,t.eventListeners)),t.text&&o.text.push(...t.text),t.children&&t.children.length){if(o.children.length!=t.children.length)throw new b("ui-template-extend-children-mismatch",o);let e=0;for(const n of t.children)od(o.children[e++],n)}}function En(o){return!o&&o!==0}function $o(o){return o instanceof Y}function vr(o){return o instanceof re}function yr(o){return o instanceof be}function id(o){return _t(o[0])&&o[0].ns}function rd(){return{children:[],bindings:[],attributes:{}}}function sd(o){return o=="class"||o=="style"}class N0 extends be{constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new re({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=Wn(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&t.childElementCount==0&&t.remove()}}var ad=L(1977),xr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};xr.insert="head",xr.singleton=!0,F()(ad.Z,xr),ad.Z.locals;class Se extends Y{constructor(){super();const t=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",t.if("isVisible","ck-hidden",e=>!e),"ck-reset_all-excluded",t.if("isColorInherited","ck-icon_inherit-color")],viewBox:t.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const e=new DOMParser().parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),n=e.getAttribute("viewBox");n&&(this.viewBox=n);for(const{name:i,value:r}of Array.from(e.attributes))Se.presentationalAttributeNames.includes(i)&&this.element.setAttribute(i,r);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(t=>{t.style.fill=this.fillColor})}}Se.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class z0 extends Y{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:t.to("style"),id:t.to("id")},children:[{text:t.to("text")}]})}}var cd=L(4971),Er={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Er.insert="head",Er.singleton=!0,F()(cd.Z,Er),cd.Z.locals;class ht extends Y{constructor(t,e=new z0){super(t),this._focusDelayed=null;const n=this.bindTemplate,i=qt();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${i}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(e),this.iconView=new Se,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const r={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",s=>!s),n.if("isVisible","ck-hidden",s=>!s),n.to("isOn",s=>s?"ck-on":"ck-off"),n.if("withText","ck-button_with-text"),n.if("withKeystroke","ck-button_with-keystroke")],role:n.to("role"),type:n.to("type",s=>s||"button"),tabindex:n.to("tabindex"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,s=>!s),"aria-pressed":n.to("isOn",s=>this.isToggleable?String(!!s):!1),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to(s=>{this.isEnabled?this.fire("execute"):s.preventDefault()})}};g.isSafari&&(this._focusDelayed||(this._focusDelayed=wr(()=>this.focus(),0)),r.on.mousedown=n.to(()=>{this._focusDelayed()}),r.on.mouseup=n.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(r)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(t){return t.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),t}_createKeystrokeView(){const t=new Y;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>Gl(e))}]}),t}_getTooltipString(t,e,n){return t?typeof t=="string"?t:(n&&(n=Gl(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var ld=L(7258),Dr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Dr.insert="head",Dr.singleton=!0,F()(ld.Z,Dr),ld.Z.locals;class Ko extends ht{constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new Y;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}var dd=L(4923),Sr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Sr.insert="head",Sr.singleton=!0,F()(dd.Z,Sr),dd.Z.locals,L(8874),L(2085);var ud=L(3525),Tr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Tr.insert="head",Tr.singleton=!0,F()(ud.Z,Tr),ud.Z.locals;class Ir extends Y{constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${qt()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}var hd=L(2933),Mr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Mr.insert="head",Mr.singleton=!0,F()(hd.Z,Mr),hd.Z.locals;class Zo extends Y{constructor(t,e){super(t);const n=`ck-labeled-field-view-${qt()}`,i=`ck-labeled-field-view-status-${qt()}`;this.fieldView=e(this,n,i),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(i),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(s,a)=>s||a);const r=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",r.to("class"),r.if("isEnabled","ck-disabled",s=>!s),r.if("isEmpty","ck-labeled-field-view_empty"),r.if("isFocused","ck-labeled-field-view_focused"),r.if("placeholder","ck-labeled-field-view_placeholder"),r.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(t){const e=new Ir(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new Y(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",i=>!i)],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(t){this.fieldView.focus(t)}}class P0 extends Y{constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new Ht,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},on:{input:e.to((...n)=>{this.fire("input",...n),this._updateIsEmpty()}),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=L0(this.element)}_setDomElementValue(t){this.element.value=!t&&t!==0?"":t}}function L0(o){return!o.value}var gd=L(2470),Br={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Br.insert="head",Br.singleton=!0,F()(gd.Z,Br),gd.Z.locals;class O0 extends P0{constructor(t){super(t),this.set("inputMode","text");const e=this.bindTemplate;this.extendTemplate({attributes:{inputmode:e.to("inputMode")}})}}class R0 extends O0{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var fd=L(5224),Nr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Nr.insert="head",Nr.singleton=!0,F()(fd.Z,Nr),fd.Z.locals;class j0 extends Y{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",n=>`ck-dropdown__panel_${n}`),e.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:e.to(n=>{n.target.tagName.toLocaleLowerCase()!=="input"&&n.preventDefault()})}})}focus(){if(this.children.length){const t=this.children.first;typeof t.focus=="function"?t.focus():at("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const t=this.children.last;typeof t.focusLast=="function"?t.focusLast():t.focus()}}}var md=L(5062),zr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};zr.insert="head",zr.singleton=!0,F()(md.Z,zr),md.Z.locals;class Dn extends Y{constructor(t,e,n){super(t);const i=this.bindTemplate;this.buttonView=e,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new ie,this.focusTracker=new Ht,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",i.to("class"),i.if("isEnabled","ck-disabled",r=>!r)],id:i.to("id"),"aria-describedby":i.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":i.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.on("change:isOpen",(e,n,i)=>{if(i)if(this.panelPosition==="auto"){const r=Dn._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=r?r.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const t=(e,n)=>{this.isOpen&&(this.isOpen=!1,n())};this.keystrokes.set("arrowdown",(e,n)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,n())}),this.keystrokes.set("arrowright",(e,n)=>{this.isOpen&&n()}),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:t,north:e,southEast:n,southWest:i,northEast:r,northWest:s,southMiddleEast:a,southMiddleWest:c,northMiddleEast:l,northMiddleWest:d}=Dn.defaultPanelPositions;return this.locale.uiLanguageDirection!=="rtl"?[n,i,a,c,t,r,s,l,d,e]:[i,n,c,a,t,s,r,d,l,e]}}Dn.defaultPanelPositions={south:(o,t)=>({top:o.bottom,left:o.left-(t.width-o.width)/2,name:"s"}),southEast:o=>({top:o.bottom,left:o.left,name:"se"}),southWest:(o,t)=>({top:o.bottom,left:o.left-t.width+o.width,name:"sw"}),southMiddleEast:(o,t)=>({top:o.bottom,left:o.left-(t.width-o.width)/4,name:"sme"}),southMiddleWest:(o,t)=>({top:o.bottom,left:o.left-(t.width-o.width)*3/4,name:"smw"}),north:(o,t)=>({top:o.top-t.height,left:o.left-(t.width-o.width)/2,name:"n"}),northEast:(o,t)=>({top:o.top-t.height,left:o.left,name:"ne"}),northWest:(o,t)=>({top:o.top-t.height,left:o.left-t.width+o.width,name:"nw"}),northMiddleEast:(o,t)=>({top:o.top-t.height,left:o.left-(t.width-o.width)/4,name:"nme"}),northMiddleWest:(o,t)=>({top:o.top-t.height,left:o.left-(t.width-o.width)*3/4,name:"nmw"})},Dn._getOptimalPosition=pr;const Pr='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class pd extends ht{constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",e=>String(e))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new Se;return t.content=Pr,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}class Te extends ct(){constructor(t){if(super(),this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];typeof n=="string"&&(n=[n]);for(const i of n)t.keystrokeHandler.set(i,(r,s)=>{this[e](),s()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Lr)||null}get last(){return this.focusables.filter(Lr).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return this.focusTracker.focusedElement===null?null:(this.focusables.find((e,n)=>{const i=e.element===this.focusTracker.focusedElement;return i&&(t=n),i}),t)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const t=this.next;t&&this.focusables.getIndex(t)===this.current||(t===this.first?this.fire("forwardCycle"):this._focus(t,1))}focusPrevious(){const t=this.previous;t&&this.focusables.getIndex(t)===this.current||(t===this.last?this.fire("backwardCycle"):this._focus(t,-1))}_focus(t,e){t&&t.focus(e)}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(e===null)return this[t===1?"first":"last"];let i=(e+n+t)%n;do{const r=this.focusables.get(i);if(Lr(r))return r;i=(i+n+t)%n}while(i!==e);return null}}function Lr(o){return!!("focus"in o&&Je(o.element))}class kd extends Y{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class F0 extends Y{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function V0(o){return o.bindTemplate.to(t=>{t.target===o.element&&t.preventDefault()})}function bd(o){if(Array.isArray(o))return{items:o,removeItems:[]};const t={items:[],removeItems:[]};return o?{...t,...o}:t}class P extends rt(){constructor(t){super(),this._disableStack=new Set,this.editor=t,this.set("isEnabled",!0)}forceDisabled(t){this._disableStack.add(t),this._disableStack.size==1&&(this.on("set:isEnabled",wd,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),this._disableStack.size==0&&(this.off("set:isEnabled",wd),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function wd(o){o.return=!1,o.stop()}class X extends rt(){constructor(t){super(),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(t,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",e=>{if(!this.affectsData)return;const n=t.model.document.selection,r=!(n.getFirstPosition().root.rootName=="$graveyard")&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!r)&&(e.return=!1,e.stop())},{priority:"highest"}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(t){this._affectsData=t}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),this._disableStack.size==1&&(this.on("set:isEnabled",Ad,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),this._disableStack.size==0&&(this.off("set:isEnabled",Ad),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function Ad(o){o.return=!1,o.stop()}class Cd extends X{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){xc(this._childCommandsDefinitions,{command:t,priority:e.priority||"normal"}),t.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const t=this._childCommandsDefinitions.find(({command:e})=>e.isEnabled);return t&&t.command}}class _d extends ct(){constructor(t,e=[],n=[]){super(),this._plugins=new Map,this._context=t,this._availablePlugins=new Map;for(const i of e)i.pluginName&&this._availablePlugins.set(i.pluginName,i);this._contextPlugins=new Map;for(const[i,r]of n)this._contextPlugins.set(i,r),this._contextPlugins.set(r,i),i.pluginName&&this._availablePlugins.set(i.pluginName,i)}*[Symbol.iterator](){for(const t of this._plugins)typeof t[0]=="function"&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let n=t;throw typeof t=="function"&&(n=t.pluginName||t.name),new b("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const i=this,r=this._context;p(t),S(t);const s=t.filter(H=>!u(H,e)),a=[...w(s)];pt(a,n);const c=J(a);return st(c,"init").then(()=>st(c,"afterInit")).then(()=>c);function l(H){return typeof H=="function"}function d(H){return l(H)&&!!H.isContextPlugin}function u(H,Z){return Z.some(q=>q===H||f(H)===q||f(q)===H)}function f(H){return l(H)?H.pluginName||H.name:H}function p(H,Z=new Set){H.forEach(q=>{l(q)&&(Z.has(q)||(Z.add(q),q.pluginName&&!i._availablePlugins.has(q.pluginName)&&i._availablePlugins.set(q.pluginName,q),q.requires&&p(q.requires,Z)))})}function w(H,Z=new Set){return H.map(q=>l(q)?q:i._availablePlugins.get(q)).reduce((q,At)=>Z.has(At)?q:(Z.add(At),At.requires&&(S(At.requires,At),w(At.requires,Z).forEach(mn=>q.add(mn))),q.add(At)),new Set)}function S(H,Z=null){H.map(q=>l(q)?q:i._availablePlugins.get(q)||q).forEach(q=>{B(q,Z),z(q,Z),V(q,Z)})}function B(H,Z){if(!l(H))throw Z?new b("plugincollection-soft-required",r,{missingPlugin:H,requiredBy:f(Z)}):new b("plugincollection-plugin-not-found",r,{plugin:H})}function z(H,Z){if(d(Z)&&!d(H))throw new b("plugincollection-context-required",r,{plugin:f(H),requiredBy:f(Z)})}function V(H,Z){if(Z&&u(H,e))throw new b("plugincollection-required",r,{plugin:f(H),requiredBy:f(Z)})}function J(H){return H.map(Z=>{let q=i._contextPlugins.get(Z);return q=q||new Z(r),i._add(Z,q),q})}function st(H,Z){return H.reduce((q,At)=>!At[Z]||i._contextPlugins.has(At)?q:q.then(At[Z].bind(At)),Promise.resolve())}function pt(H,Z){for(const q of Z){if(typeof q!="function")throw new b("plugincollection-replace-plugin-invalid-type",null,{pluginItem:q});const At=q.pluginName;if(!At)throw new b("plugincollection-replace-plugin-missing-name",null,{pluginItem:q});if(q.requires&&q.requires.length)throw new b("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:At});const mn=i._availablePlugins.get(At);if(!mn)throw new b("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:At});const Qp=H.indexOf(mn);if(Qp===-1){if(i._contextPlugins.has(mn))return;throw new b("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:At})}if(mn.requires&&mn.requires.length)throw new b("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:At});H.splice(Qp,1,q),i._availablePlugins.set(At,q)}}}destroy(){const t=[];for(const[,e]of this)typeof e.destroy=="function"&&!this._contextPlugins.has(e)&&t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new b("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class vd{constructor(t){this._contextOwner=null,this.config=new El(t,this.constructor.defaultConfig);const e=this.constructor.builtinPlugins;this.config.define("plugins",e),this.plugins=new _d(this,e);const n=this.config.get("language")||{};this.locale=new d0({uiLanguage:typeof n=="string"?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new oe}initPlugins(){const t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];for(const n of t.concat(e)){if(typeof n!="function")throw new b("context-initplugins-constructor-only",null,{Plugin:n});if(n.isContextPlugin!==!0)throw new b("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(t,[],e)}destroy(){return Promise.all(Array.from(this.editors,t=>t.destroy())).then(()=>this.plugins.destroy())}_addEditor(t,e){if(this._contextOwner)throw new b("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise(e=>{const n=new this(t);e(n.initPlugins().then(()=>n))})}}class Yo extends rt(){constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var yd=L(7372),Or={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Or.insert="head",Or.singleton=!0,F()(yd.Z,Or),yd.Z.locals;const Qo=new WeakMap;let xd=!1;function Ed({view:o,element:t,text:e,isDirectHost:n=!0,keepOnFocus:i=!1}){const r=o.document;Qo.has(r)||(Qo.set(r,new Map),r.registerPostFixer(a=>Rr(r,a)),r.on("change:isComposing",()=>{o.change(a=>Rr(r,a))},{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",(a,c,l)=>{s(l)}),t.placeholder?s(t.placeholder):e&&s(e),e&&G0();function s(a){Qo.get(r).set(t,{text:a,isDirectHost:n,keepOnFocus:i,hostElement:n?t:null}),o.change(c=>Rr(r,c))}}function H0(o,t){return t.hasClass("ck-placeholder")?!1:(o.addClass("ck-placeholder",t),!0)}function U0(o,t){return t.hasClass("ck-placeholder")?(o.removeClass("ck-placeholder",t),!0):!1}function q0(o,t){if(!o.isAttached()||Array.from(o.getChildren()).some(s=>!s.is("uiElement")))return!1;const n=o.document,r=n.selection.anchor;return n.isComposing&&r&&r.parent===o?!1:t||!n.isFocused?!0:!!r&&r.parent!==o}function Rr(o,t){const e=Qo.get(o),n=[];let i=!1;for(const[r,s]of e)s.isDirectHost&&(n.push(r),Dd(t,r,s)&&(i=!0));for(const[r,s]of e){if(s.isDirectHost)continue;const a=W0(r);a&&(n.includes(a)||(s.hostElement=a,Dd(t,r,s)&&(i=!0)))}return i}function Dd(o,t,e){const{text:n,isDirectHost:i,hostElement:r}=e;let s=!1;return r.getAttribute("data-placeholder")!==n&&(o.setAttribute("data-placeholder",n,r),s=!0),(i||t.childCount==1)&&q0(r,e.keepOnFocus)?H0(o,r)&&(s=!0):U0(o,r)&&(s=!0),s}function W0(o){if(o.childCount){const t=o.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}function G0(){xd||at("enableplaceholder-deprecated-text-option"),xd=!0}class Xe{is(){throw new Error("is() method is abstract")}}var $0=4;function K0(o){return hr(o,$0)}const Sd=K0;class tn extends ct(Xe){constructor(t){super(),this.document=t,this.parent=null}get index(){let t;if(!this.parent)return null;if((t=this.parent.getChildIndex(this))==-1)throw new b("view-node-not-found-in-parent",this);return t}get nextSibling(){const t=this.index;return t!==null&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return t!==null&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),i=t.getAncestors(e);let r=0;for(;n[r]==i[r]&&n[r];)r++;return r===0?null:n[r-1]}isBefore(t){if(this==t||this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=jt(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}isAfter(t){return this==t||this.root!==t.root?!1:!this.isBefore(t)}_remove(){this.parent._removeChildren(this.index)}_fireChange(t,e){this.fire(`change:${t}`,e),this.parent&&this.parent._fireChange(t,e)}toJSON(){const t=Sd(this);return delete t.parent,t}}tn.prototype.is=function(o){return o==="node"||o==="view:node"};class gt extends tn{constructor(t,e){super(t),this._textData=e}get data(){return this._textData}get _data(){return this.data}set _data(t){this._fireChange("text",this),this._textData=t}isSimilar(t){return t instanceof gt?this===t||this.data===t.data:!1}_clone(){return new gt(this.document,this.data)}}gt.prototype.is=function(o){return o==="$text"||o==="view:$text"||o==="text"||o==="view:text"||o==="node"||o==="view:node"};class we extends Xe{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.data.length)throw new b("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new b("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(t={}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;n!==null;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}we.prototype.is=function(o){return o==="$textProxy"||o==="view:$textProxy"||o==="textProxy"||o==="view:textProxy"};class de{constructor(...t){this._patterns=[],this.add(...t)}add(...t){for(let e of t)(typeof e=="string"||e instanceof RegExp)&&(e={name:e}),this._patterns.push(e)}match(...t){for(const e of t)for(const n of this._patterns){const i=Td(e,n);if(i)return{element:e,pattern:n,match:i}}return null}matchAll(...t){const e=[];for(const n of t)for(const i of this._patterns){const r=Td(n,i);r&&e.push({element:n,pattern:i,match:r})}return e.length>0?e:null}getElementName(){if(this._patterns.length!==1)return null;const t=this._patterns[0],e=t.name;return typeof t!="function"&&e&&!(e instanceof RegExp)?e:null}}function Td(o,t){if(typeof t=="function")return t(o);const e={};return t.name&&(e.name=Z0(t.name,o.name),!e.name)||t.attributes&&(e.attributes=X0(t.attributes,o),!e.attributes)||t.classes&&(e.classes=tv(t.classes,o),!e.classes)||t.styles&&(e.styles=ev(t.styles,o),!e.styles)?null:e}function Z0(o,t){return o instanceof RegExp?!!t.match(o):o===t}function jr(o,t,e){const n=Y0(o),i=Array.from(t),r=[];if(n.forEach(([s,a])=>{i.forEach(c=>{Q0(s,c)&&J0(a,c,e)&&r.push(c)})}),!(!n.length||r.length<n.length))return r}function Y0(o){return Array.isArray(o)?o.map(t=>Kt(t)?((t.key===void 0||t.value===void 0)&&at("matcher-pattern-missing-key-or-value",t),[t.key,t.value]):[t,!0]):Kt(o)?Object.entries(o):[[o,!0]]}function Q0(o,t){return o===!0||o===t||o instanceof RegExp&&t.match(o)}function J0(o,t,e){if(o===!0)return!0;const n=e(t);return o===n||o instanceof RegExp&&!!String(n).match(o)}function X0(o,t){const e=new Set(t.getAttributeKeys());return Kt(o)?(o.style!==void 0&&at("matcher-pattern-deprecated-attributes-style-key",o),o.class!==void 0&&at("matcher-pattern-deprecated-attributes-class-key",o)):(e.delete("style"),e.delete("class")),jr(o,e,n=>t.getAttribute(n))}function tv(o,t){return jr(o,t.getClassNames(),()=>{})}function ev(o,t){return jr(o,t.getStyleNames(!0),e=>t.getStyle(e))}var nv="[object Symbol]";function ov(o){return typeof o=="symbol"||ne(o)&&Oe(o)==nv}const Jo=ov;var iv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rv=/^\w*$/;function sv(o,t){if(Vt(o))return!1;var e=typeof o;return e=="number"||e=="symbol"||e=="boolean"||o==null||Jo(o)?!0:rv.test(o)||!iv.test(o)||t!=null&&o in Object(t)}const av=sv;var cv="Expected a function";function Fr(o,t){if(typeof o!="function"||t!=null&&typeof t!="function")throw new TypeError(cv);var e=function(){var n=arguments,i=t?t.apply(this,n):n[0],r=e.cache;if(r.has(i))return r.get(i);var s=o.apply(this,n);return e.cache=r.set(i,s)||r,s};return e.cache=new(Fr.Cache||Oo),e}Fr.Cache=Oo;const lv=Fr;var dv=500;function uv(o){var t=lv(o,function(n){return e.size===dv&&e.clear(),n}),e=t.cache;return t}const hv=uv;var gv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fv=/\\(\\)?/g,mv=hv(function(o){var t=[];return o.charCodeAt(0)===46&&t.push(""),o.replace(gv,function(e,n,i,r){t.push(i?r.replace(fv,"$1"):n||e)}),t});const pv=mv;function kv(o,t){for(var e=-1,n=o==null?0:o.length,i=Array(n);++e<n;)i[e]=t(o[e],e,o);return i}const bv=kv;var wv=1/0,Id=ke?ke.prototype:void 0,Md=Id?Id.toString:void 0;function Bd(o){if(typeof o=="string")return o;if(Vt(o))return bv(o,Bd)+"";if(Jo(o))return Md?Md.call(o):"";var t=o+"";return t=="0"&&1/o==-wv?"-0":t}const Av=Bd;function Cv(o){return o==null?"":Av(o)}const Vr=Cv;function _v(o,t){return Vt(o)?o:av(o,t)?[o]:pv(Vr(o))}const Hr=_v;function vv(o){var t=o==null?0:o.length;return t?o[t-1]:void 0}const yv=vv;var xv=1/0;function Ev(o){if(typeof o=="string"||Jo(o))return o;var t=o+"";return t=="0"&&1/o==-xv?"-0":t}const Ur=Ev;function Dv(o,t){t=Hr(t,o);for(var e=0,n=t.length;o!=null&&e<n;)o=o[Ur(t[e++])];return e&&e==n?o:void 0}const Nd=Dv;function Sv(o,t,e){var n=-1,i=o.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var r=Array(i);++n<i;)r[n]=o[n+t];return r}const zd=Sv;function Tv(o,t){return t.length<2?o:Nd(o,zd(t,0,-1))}const Iv=Tv;function Mv(o,t){return t=Hr(t,o),o=Iv(o,t),o==null||delete o[Ur(yv(t))]}const Bv=Mv;function Nv(o,t){return o==null?!0:Bv(o,t)}const zv=Nv;function Pv(o,t,e){var n=o==null?void 0:Nd(o,t);return n===void 0?e:n}const Xo=Pv;function Lv(o,t,e){(e!==void 0&&!Gn(o[t],e)||e===void 0&&!(t in o))&&Yi(o,t,e)}const qr=Lv;function Ov(o){return function(t,e,n){for(var i=-1,r=Object(t),s=n(t),a=s.length;a--;){var c=s[o?a:++i];if(e(r[c],c,r)===!1)break}return t}}var Rv=Ov();const jv=Rv;function Fv(o){return ne(o)&&jo(o)}const Vv=Fv;function Hv(o,t){if(!(t==="constructor"&&typeof o[t]=="function")&&t!="__proto__")return o[t]}const Wr=Hv;function Uv(o){return _n(o,yn(o))}const qv=Uv;function Wv(o,t,e,n,i,r,s){var a=Wr(o,e),c=Wr(t,e),l=s.get(c);if(l){qr(o,e,l);return}var d=r?r(a,c,e+"",o,t,s):void 0,u=d===void 0;if(u){var f=Vt(c),p=!f&&Yn(c),w=!f&&!p&&nr(c);d=c,f||p||w?Vt(a)?d=a:Vv(a)?d=rl(a):p?(u=!1,d=il(c,!0)):w?(u=!1,d=bl(c,!0)):d=[]:Kt(c)||Ji(c)?(d=a,Ji(a)?d=qv(a):(!_t(a)||$e(a))&&(d=Al(c))):u=!1}u&&(s.set(c,d),i(d,c,n,r,s),s.delete(c)),qr(o,e,d)}const Gv=Wv;function Pd(o,t,e,n,i){o!==t&&jv(t,function(r,s){if(i||(i=new Zn),_t(r))Gv(o,t,s,e,Pd,n,i);else{var a=n?n(Wr(o,s),r,s+"",o,t,i):void 0;a===void 0&&(a=r),qr(o,s,a)}},yn)}const $v=Pd;function Kv(o){return o}const en=Kv;function Zv(o,t,e){switch(e.length){case 0:return o.call(t);case 1:return o.call(t,e[0]);case 2:return o.call(t,e[0],e[1]);case 3:return o.call(t,e[0],e[1],e[2])}return o.apply(t,e)}const Yv=Zv;var Ld=Math.max;function Qv(o,t,e){return t=Ld(t===void 0?o.length-1:t,0),function(){for(var n=arguments,i=-1,r=Ld(n.length-t,0),s=Array(r);++i<r;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=e(s),Yv(o,this,a)}}const Jv=Qv;function Xv(o){return function(){return o}}const ty=Xv;var ey=Ro?function(o,t){return Ro(o,"toString",{configurable:!0,enumerable:!1,value:ty(t),writable:!0})}:en;const ny=ey;var oy=800,iy=16,ry=Date.now;function sy(o){var t=0,e=0;return function(){var n=ry(),i=iy-(n-e);if(e=n,i>0){if(++t>=oy)return arguments[0]}else t=0;return o.apply(void 0,arguments)}}var ay=sy(ny);const cy=ay;function ly(o,t){return cy(Jv(o,t,en),o+"")}const dy=ly;function uy(o,t,e){if(!_t(e))return!1;var n=typeof t;return(n=="number"?jo(e)&&Xi(t,e.length):n=="string"&&t in e)?Gn(e[t],o):!1}const hy=uy;function gy(o){return dy(function(t,e){var n=-1,i=e.length,r=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(r=o.length>3&&typeof r=="function"?(i--,r):void 0,s&&hy(e[0],e[1],s)&&(r=i<3?void 0:r,i=1),t=Object(t);++n<i;){var a=e[n];a&&o(t,a,n,r)}return t})}const Od=gy;var fy=Od(function(o,t,e){$v(o,t,e)});const Rd=fy;function my(o,t,e,n){if(!_t(o))return o;t=Hr(t,o);for(var i=-1,r=t.length,s=r-1,a=o;a!=null&&++i<r;){var c=Ur(t[i]),l=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return o;if(i!=s){var d=a[c];l=n?n(d,c,a):void 0,l===void 0&&(l=_t(d)?d:Xi(t[i+1])?[]:{})}Qi(a,c,l),a=a[c]}return o}const py=my;function ky(o,t,e){return o==null?o:py(o,t,e)}const by=ky;class wy{constructor(t){this._styles={},this._styleProcessor=t}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(t){this.clear();const e=Cy(t);for(const[n,i]of e)this._styleProcessor.toNormalizedForm(n,i,this._styles)}has(t){if(this.isEmpty)return!1;const n=this._styleProcessor.getReducedForm(t,this._styles).find(([i])=>i===t);return Array.isArray(n)}set(t,e){if(_t(t))for(const[n,i]of Object.entries(t))this._styleProcessor.toNormalizedForm(n,i,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=Gr(t);zv(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(t=>t.join(":")).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!_t(this._styles[t]))return this._styles[t];const n=this._styleProcessor.getReducedForm(t,this._styles).find(([i])=>i===t);if(Array.isArray(n))return n[1]}getStyleNames(t=!1){return this.isEmpty?[]:t?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([n])=>n)}clear(){this._styles={}}_getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const i=e.splice(0,e.length-1).join("."),r=Xo(this._styles,i);if(!r)return;!Object.keys(r).length&&this.remove(i)}}class Ay{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(_t(e)){$r(n,Gr(t),e);return}if(this._normalizers.has(t)){const i=this._normalizers.get(t),{path:r,value:s}=i(e);$r(n,r,s)}else $r(n,t,e)}getNormalized(t,e){if(!t)return Rd({},e);if(e[t]!==void 0)return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if(typeof n=="string")return Xo(e,n);const i=n(t,e);if(i)return i}return Xo(e,Gr(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);return n===void 0?[]:this._reducers.has(t)?this._reducers.get(t)(n):[[t,n]]}getStyleNames(t){const e=Array.from(this._consumables.keys()).filter(i=>{const r=this.getNormalized(i,t);return r&&typeof r=="object"?Object.keys(r).length:r}),n=new Set([...e,...Object.keys(t)]);return Array.from(n)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function Cy(o){let t=null,e=0,n=0,i=null;const r=new Map;if(o==="")return r;o.charAt(o.length-1)!=";"&&(o=o+";");for(let s=0;s<o.length;s++){const a=o.charAt(s);if(t===null)switch(a){case":":i||(i=o.substr(e,s-e),n=s+1);break;case'"':case"'":t=a;break;case";":{const c=o.substr(n,s-n);i&&r.set(i.trim(),c.trim()),i=null,e=s+1;break}}else a===t&&(t=null)}return r}function Gr(o){return o.replace("-",".")}function $r(o,t,e){let n=e;_t(e)&&(n=Rd({},Xo(o,t),e)),by(o,t,n)}class Yt extends tn{constructor(t,e,n,i){if(super(t),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=e,this._attrs=_y(n),this._children=[],i&&this._insertChild(0,i),this._classes=new Set,this._attrs.has("class")){const r=this._attrs.get("class");jd(this._classes,r),this._attrs.delete("class")}this._styles=new wy(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style"))}get childCount(){return this._children.length}get isEmpty(){return this._children.length===0}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if(t=="class")return this._classes.size>0?[...this._classes].join(" "):void 0;if(t=="style"){const e=this._styles.toString();return e==""?void 0:e}return this._attrs.get(t)}hasAttribute(t){return t=="class"?this._classes.size>0:t=="style"?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof Yt))return!1;if(this===t)return!0;if(this.name!=t.name||this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new de(...t);let n=this.parent;for(;n&&!n.is("documentFragment");){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map(i=>`${i[0]}="${i[1]}"`).sort().join(" ");return this.name+(t==""?"":` class="${t}"`)+(e?` style="${e}"`:"")+(n==""?"":` ${n}`)}shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t)}_clone(t=!1){const e=[];if(t)for(const i of this.getChildren())e.push(i._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const i=vy(this.document,e);for(const r of i)r.parent!==null&&r._remove(),r.parent=this,r.document=this.document,this._children.splice(t,0,r),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_setAttribute(t,e){const n=String(e);this._fireChange("attributes",this),t=="class"?jd(this._classes,n):t=="style"?this._styles.setTo(n):this._attrs.set(t,n)}_removeAttribute(t){return this._fireChange("attributes",this),t=="class"?this._classes.size>0?(this._classes.clear(),!0):!1:t=="style"?this._styles.isEmpty?!1:(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of Tt(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of Tt(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),typeof t!="string"?this._styles.set(t):this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of Tt(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}Yt.prototype.is=function(o,t){return t?t===this.name&&(o==="element"||o==="view:element"):o==="element"||o==="view:element"||o==="node"||o==="view:node"};function _y(o){const t=De(o);for(const[e,n]of t)n===null?t.delete(e):typeof n!="string"&&t.set(e,String(n));return t}function jd(o,t){const e=t.split(/\s+/);o.clear(),e.forEach(n=>o.add(n))}function vy(o,t){return typeof t=="string"?[new gt(o,t)]:($t(t)||(t=[t]),Array.from(t).map(e=>typeof e=="string"?new gt(o,e):e instanceof we?new gt(o,e.data):e))}class oo extends Yt{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=Fd}}oo.prototype.is=function(o,t){return t?t===this.name&&(o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"):o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};function Fd(){const o=[...this.getChildren()],t=o[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const e of o)if(!e.is("uiElement"))return null;return this.childCount}class ti extends rt(oo){constructor(t,e,n,i){super(t,e,n,i),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",r=>r&&t.selection.editableElement==this),this.listenTo(t.selection,"change",()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this})}destroy(){this.stopListening()}}ti.prototype.is=function(o,t){return t?t===this.name&&(o==="editableElement"||o==="view:editableElement"||o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"):o==="editableElement"||o==="view:editableElement"||o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};const Vd=Symbol("rootName");class Hd extends ti{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(Vd)}set rootName(t){this._setCustomProperty(Vd,t)}set _name(t){this.name=t}}Hd.prototype.is=function(o,t){return t?t===this.name&&(o==="rootElement"||o==="view:rootElement"||o==="editableElement"||o==="view:editableElement"||o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"):o==="rootElement"||o==="view:rootElement"||o==="editableElement"||o==="view:editableElement"||o==="containerElement"||o==="view:containerElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};class nn{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new b("view-tree-walker-no-start-position",null);if(t.direction&&t.direction!="forward"&&t.direction!="backward")throw new b("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=O._createAt(t.startPosition):this._position=O._createAt(t.boundaries[t.direction=="backward"?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n;do n=this.position,e=this.next();while(!e.done&&t(e.value));e.done||(this._position=n)}next(){return this.direction=="forward"?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(n.parent===null&&t.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let i;if(n instanceof gt){if(t.isAtEnd)return this._position=O._createAfter(n),this._next();i=n.data[t.offset]}else i=n.getChild(t.offset);if(i instanceof Yt){if(!this.shallow)t=new O(i,0);else{if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}return this._position=t,this._formatReturnValue("elementStart",i,e,t,1)}if(i instanceof gt){if(this.singleCharacters)return t=new O(i,0),this._position=t,this._next();let r=i.data.length,s;return i==this._boundaryEndParent?(r=this.boundaries.end.offset,s=new we(i,0,r),t=O._createAfter(s)):(s=new we(i,0,i.data.length),t.offset++),this._position=t,this._formatReturnValue("text",s,e,t,r)}if(typeof i=="string"){let r;this.singleCharacters?r=1:r=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset;const s=new we(n,t.offset,r);return t.offset+=r,this._position=t,this._formatReturnValue("text",s,e,t,r)}return t=O._createAfter(n),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(n.parent===null&&t.offset===0)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let i;if(n instanceof gt){if(t.isAtStart)return this._position=O._createBefore(n),this._previous();i=n.data[t.offset-1]}else i=n.getChild(t.offset-1);if(i instanceof Yt)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",i,e,t,1)):(t=new O(i,i.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",i,e,t));if(i instanceof gt){if(this.singleCharacters)return t=new O(i,i.data.length),this._position=t,this._previous();let r=i.data.length,s;if(i==this._boundaryStartParent){const a=this.boundaries.start.offset;s=new we(i,a,i.data.length-a),r=s.data.length,t=O._createBefore(s)}else s=new we(i,0,i.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",s,e,t,r)}if(typeof i=="string"){let r;if(this.singleCharacters)r=1;else{const a=n===this._boundaryStartParent?this.boundaries.start.offset:0;r=t.offset-a}t.offset-=r;const s=new we(n,t.offset,r);return this._position=t,this._formatReturnValue("text",s,e,t,r)}return t=O._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,i,r){return e instanceof we&&(e.offsetInText+e.data.length==e.textNode.data.length&&(this.direction=="forward"&&!(this.boundaries&&this.boundaries.end.isEqual(this.position))?(i=O._createAfter(e.textNode),this._position=i):n=O._createAfter(e.textNode)),e.offsetInText===0&&(this.direction=="backward"&&!(this.boundaries&&this.boundaries.start.isEqual(this.position))?(i=O._createBefore(e.textNode),this._position=i):n=O._createBefore(e.textNode))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}}class O extends Xe{constructor(t,e){super(),this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return this.offset===0}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof ti);)if(t.parent)t=t.parent;else return null;return t}getShiftedBy(t){const e=O._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new nn(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let i=0;for(;e[i]==n[i]&&e[i];)i++;return i===0?null:e[i-1]}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return this.compareWith(t)=="before"}isAfter(t){return this.compareWith(t)=="after"}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const i=jt(e,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return e[i]<n[i]?"before":"after"}}getWalker(t={}){return t.startPosition=this,new nn(t)}clone(){return new O(this.parent,this.offset)}static _createAt(t,e){if(t instanceof O)return new this(t.parent,t.offset);{const n=t;if(e=="end")e=n.is("$text")?n.data.length:n.childCount;else{if(e=="before")return this._createBefore(n);if(e=="after")return this._createAfter(n);if(e!==0&&!e)throw new b("view-createpositionat-offset-required",n)}return new O(n,e)}}static _createAfter(t){if(t.is("$textProxy"))return new O(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new b("view-position-after-root",t,{root:t});return new O(t.parent,t.index+1)}static _createBefore(t){if(t.is("$textProxy"))return new O(t.textNode,t.offsetInText);if(!t.parent)throw new b("view-position-before-root",t,{root:t});return new O(t.parent,t.index)}}O.prototype.is=function(o){return o==="position"||o==="view:position"};class K extends Xe{constructor(t,e=null){super(),this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new nn({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let t=this.start.getLastMatchingPosition(ei,{direction:"backward"}),e=this.end.getLastMatchingPosition(ei);return t.parent.is("$text")&&t.isAtStart&&(t=O._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=O._createAfter(e.parent)),new K(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(ei);if(t.isAfter(this.end)||t.isEqual(this.end))return new K(t,t);let e=this.end.getLastMatchingPosition(ei,{direction:"backward"});const n=t.nodeAfter,i=e.nodeBefore;return n&&n.is("$text")&&(t=new O(n,0)),i&&i.is("$text")&&(e=new O(i,i.data.length)),new K(t,e)}isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end)}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new K(this.start,t.start)),this.containsPosition(t.end)&&e.push(new K(t.end,this.end))):e.push(this.clone()),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new K(e,n)}return null}getWalker(t={}){return t.boundaries=this,new nn(t)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null}clone(){return new K(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new nn(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new nn(t);yield e.position;for(const n of e)yield n.nextPosition}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}static _createFromParentsAndOffsets(t,e,n,i){return new this(new O(t,e),new O(n,i))}static _createFromPositionAndShift(t,e){const n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(O._createBefore(t),e)}}K.prototype.is=function(o){return o==="range"||o==="view:range"};function ei(o){return!!(o.item.is("attributeElement")||o.item.is("uiElement"))}class ue extends ct(Xe){constructor(...t){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",t.length&&this.setTo(...t)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return this.rangeCount===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)(!t||e.start.isBefore(t.start))&&(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)(!t||e.end.isAfter(t.end))&&(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake||this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel||this.rangeCount!=t.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=$i(this.getRanges()),n=$i(t.getRanges());if(e!=n)return!1;if(e==0)return!0;for(let i of this.getRanges()){i=i.getTrimmed();let r=!1;for(let s of t.getRanges())if(s=s.getTrimmed(),i.start.isEqual(s.start)&&i.end.isEqual(s.end)){r=!0;break}if(!r)return!1}return!0}getSelectedElement(){return this.rangeCount!==1?null:this.getFirstRange().getContainedElement()}setTo(...t){let[e,n,i]=t;if(typeof n=="object"&&(i=n,n=void 0),e===null)this._setRanges([]),this._setFakeOptions(i);else if(e instanceof ue||e instanceof Kr)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof K)this._setRanges([e],i&&i.backward),this._setFakeOptions(i);else if(e instanceof O)this._setRanges([new K(e)]),this._setFakeOptions(i);else if(e instanceof tn){const r=!!i&&!!i.backward;let s;if(n===void 0)throw new b("view-selection-setto-required-second-parameter",this);n=="in"?s=K._createIn(e):n=="on"?s=K._createOn(e):s=new K(O._createAt(e,n)),this._setRanges([s],r),this._setFakeOptions(i)}else if($t(e))this._setRanges(e,i&&i.backward),this._setFakeOptions(i);else throw new b("view-selection-setto-not-selectable",this);this.fire("change")}setFocus(t,e){if(this.anchor===null)throw new b("view-selection-setfocus-no-ranges",this);const n=O._createAt(t,e);if(n.compareWith(this.focus)=="same")return;const i=this.anchor;this._ranges.pop(),n.compareWith(i)=="before"?this._addRange(new K(n,i),!0):this._addRange(new K(i,n)),this.fire("change")}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const n of t)this._addRange(n);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof K))throw new b("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new b("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new K(t.start,t.end))}}ue.prototype.is=function(o){return o==="selection"||o==="view:selection"};class Kr extends ct(Xe){constructor(...t){super(),this._selection=new ue,this._selection.delegate("change").to(this),t.length&&this._selection.setTo(...t)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}_setTo(...t){this._selection.setTo(...t)}_setFocus(t,e){this._selection.setFocus(t,e)}}Kr.prototype.is=function(o){return o==="selection"||o=="documentSelection"||o=="view:selection"||o=="view:documentSelection"};class Sn extends Pt{constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Zr=Symbol("bubbling contexts");function Yr(o){class t extends o{fire(n,...i){try{const r=n instanceof Pt?n:new Pt(this,n),s=Qr(this);if(!s.size)return;if(io(r,"capturing",this),Tn(s,"$capture",r,...i))return r.return;const a=r.startRange||this.selection.getFirstRange(),c=a?a.getContainedElement():null,l=c?!!Ud(s,c):!1;let d=c||yy(a);if(io(r,"atTarget",d),!l){if(Tn(s,"$text",r,...i))return r.return;io(r,"bubbling",d)}for(;d;){if(d.is("rootElement")){if(Tn(s,"$root",r,...i))return r.return}else if(d.is("element")&&Tn(s,d.name,r,...i))return r.return;if(Tn(s,d,r,...i))return r.return;d=d.parent,io(r,"bubbling",d)}return io(r,"bubbling",this),Tn(s,"$document",r,...i),r.return}catch(r){b.rethrowUnexpectedError(r,this)}}_addEventListener(n,i,r){const s=Tt(r.context||"$document"),a=Qr(this);for(const c of s){let l=a.get(c);l||(l=new(ct()),a.set(c,l)),this.listenTo(l,n,i,r)}}_removeEventListener(n,i){const r=Qr(this);for(const s of r.values())this.stopListening(s,n,i)}}return t}{const o=Yr(Object);["fire","_addEventListener","_removeEventListener"].forEach(t=>{Yr[t]=o.prototype[t]})}function io(o,t,e){o instanceof Sn&&(o._eventPhase=t,o._currentTarget=e)}function Tn(o,t,e,...n){const i=typeof t=="string"?o.get(t):Ud(o,t);return i?(i.fire(e,...n),e.stop.called):!1}function Ud(o,t){for(const[e,n]of o)if(typeof e=="function"&&e(t))return n;return null}function Qr(o){return o[Zr]||(o[Zr]=new Map),o[Zr]}function yy(o){if(!o)return null;const t=o.start.parent,e=o.end.parent,n=t.getPath(),i=e.getPath();return n.length>i.length?t:e}class ni extends Yr(rt()){constructor(t){super(),this._postFixers=new Set,this.selection=new Kr,this.roots=new oe({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.forEach(t=>t.destroy()),this.stopListening()}_callPostFixers(t){let e=!1;do for(const n of this._postFixers)if(e=n(t),e)break;while(e)}}const qd=10;class on extends Yt{constructor(t,e,n,i){super(t,e,n,i),this._priority=qd,this._id=null,this._clonesGroup=null,this.getFillerOffset=xy}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(this.id===null)throw new b("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(t){return this.id!==null||t.id!==null?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t=!1){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}on.DEFAULT_PRIORITY=qd,on.prototype.is=function(o,t){return t?t===this.name&&(o==="attributeElement"||o==="view:attributeElement"||o==="element"||o==="view:element"):o==="attributeElement"||o==="view:attributeElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};function xy(){if(Jr(this))return null;let o=this.parent;for(;o&&o.is("attributeElement");){if(Jr(o)>1)return null;o=o.parent}return!o||Jr(o)>1?null:this.childCount}function Jr(o){return Array.from(o.getChildren()).filter(t=>!t.is("uiElement")).length}class Xr extends Yt{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=Ey}_insertChild(t,e){if(e&&(e instanceof tn||Array.from(e).length>0))throw new b("view-emptyelement-cannot-add",[this,e]);return 0}}Xr.prototype.is=function(o,t){return t?t===this.name&&(o==="emptyElement"||o==="view:emptyElement"||o==="element"||o==="view:element"):o==="emptyElement"||o==="view:emptyElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};function Ey(){return null}class oi extends Yt{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=Sy}_insertChild(t,e){if(e&&(e instanceof tn||Array.from(e).length>0))throw new b("view-uielement-cannot-add",[this,e]);return 0}render(t,e){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const n of this.getAttributeKeys())e.setAttribute(n,this.getAttribute(n));return e}}oi.prototype.is=function(o,t){return t?t===this.name&&(o==="uiElement"||o==="view:uiElement"||o==="element"||o==="view:element"):o==="uiElement"||o==="view:uiElement"||o==="element"||o==="view:element"||o==="node"||o==="view:node"};function Dy(o){o.document.on("arrowKey",(t,e)=>Ty(t,e,o.domConverter),{priority:"low"})}function Sy(){return null}function Ty(o,t,e){if(t.keyCode==tt.arrowright){const n=t.domTarget.ownerDocument.defaultView.getSelection(),i=n.rangeCount==1&&n.getRangeAt(0).collapsed;if(i||t.shiftKey){const r=n.focusNode,s=n.focusOffset,a=e.domPositionToView(r,s);if(a===null)return;let c=!1;const l=a.getLastMatchingPosition(d=>(d.item.is("uiElement")&&(c=!0),!!(d.item.is("uiElement")||d.item.is("attributeElement"))));if(c){const d=e.viewPositionToDom(l);i?n.collapse(d.parent,d.offset):n.extend(d.parent,d.offset)}}}}class ts extends Yt{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=Iy}_insertChild(t,e){if(e&&(e instanceof tn||Array.from(e).length>0))throw new b("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}ts.prototype.is=function(o,t){return t?t===this.name&&(o==="rawElement"||o==="view:rawElement"||o==="element"||o==="view:element"):o==="rawElement"||o==="view:rawElement"||o===this.name||o==="view:"+this.name||o==="element"||o==="view:element"||o==="node"||o==="view:node"};function Iy(){return null}class rn extends ct(Xe){constructor(t,e){super(),this._children=[],this._customProperties=new Map,this.document=t,e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return this.childCount===0}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const i=My(this.document,e);for(const r of i)r.parent!==null&&r._remove(),r.parent=this,this._children.splice(t,0,r),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_fireChange(t,e){this.fire("change:"+t,e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}rn.prototype.is=function(o){return o==="documentFragment"||o==="view:documentFragment"};function My(o,t){return typeof t=="string"?[new gt(o,t)]:($t(t)||(t=[t]),Array.from(t).map(e=>typeof e=="string"?new gt(o,e):e instanceof we?new gt(o,e.data):e))}class Wd{constructor(t){this._cloneGroups=new Map,this._slotFactory=null,this.document=t}setSelection(...t){this.document.selection._setTo(...t)}setSelectionFocus(t,e){this.document.selection._setFocus(t,e)}createDocumentFragment(t){return new rn(this.document,t)}createText(t){return new gt(this.document,t)}createAttributeElement(t,e,n={}){const i=new on(this.document,t,e);return typeof n.priority=="number"&&(i._priority=n.priority),n.id&&(i._id=n.id),n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createContainerElement(t,e,n={},i={}){let r=null;Kt(n)?i=n:r=n;const s=new oo(this.document,t,e,r);return i.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),s}createEditableElement(t,e,n={}){const i=new ti(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createEmptyElement(t,e,n={}){const i=new Xr(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createUIElement(t,e,n){const i=new oi(this.document,t,e);return n&&(i.render=n),i}createRawElement(t,e,n,i={}){const r=new ts(this.document,t,e);return n&&(r.render=n),i.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),r}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){Kt(t)&&n===void 0?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}breakAttributes(t){return t instanceof O?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new b("view-writer-break-non-container-element",this.document);if(!e.parent)throw new b("view-writer-break-root",this.document);if(t.isAtStart)return O._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(O._createAfter(e),n);const i=new K(t,O._createAt(e,"end")),r=new O(n,0);this.move(i,r)}return O._createAfter(e)}mergeAttributes(t){const e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&n.childCount===0){const s=n.parent,a=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new O(s,a))}const i=n.getChild(e-1),r=n.getChild(e);if(!i||!r)return t;if(i.is("$text")&&r.is("$text"))return $d(i,r);if(i.is("attributeElement")&&r.is("attributeElement")&&i.isSimilar(r)){const s=i.childCount;return i._appendChild(r.getChildren()),r._remove(),this._removeFromClonedElementsGroup(r),this.mergeAttributes(new O(i,s))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!e||!n||!e.is("containerElement")||!n.is("containerElement"))throw new b("view-writer-merge-containers-invalid-position",this.document);const i=e.getChild(e.childCount-1),r=i instanceof gt?O._createAt(i,"end"):O._createAt(e,"end");return this.move(K._createIn(n),O._createAt(e,"end")),this.remove(K._createOn(n)),r}insert(t,e){e=$t(e)?[...e]:[e],Kd(e,this.document);const n=e.reduce((s,a)=>{const c=s[s.length-1],l=!a.is("uiElement");return!c||c.breakAttributes!=l?s.push({breakAttributes:l,nodes:[a]}):c.nodes.push(a),s},[]);let i=null,r=t;for(const{nodes:s,breakAttributes:a}of n){const c=this._insertNodes(r,s,a);i||(i=c.start),r=c.end}return i?new K(i,r):new K(t)}remove(t){const e=t instanceof K?t:K._createOn(t);if(ro(e,this.document),e.isCollapsed)return new rn(this.document);const{start:n,end:i}=this._breakAttributesRange(e,!0),r=n.parent,s=i.offset-n.offset,a=r._removeChildren(n.offset,s);for(const l of a)this._removeFromClonedElementsGroup(l);const c=this.mergeAttributes(n);return e.start=c,e.end=c.clone(),new rn(this.document,a)}clear(t,e){ro(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const i of n){const r=i.item;let s;if(r.is("element")&&e.isSimilar(r))s=K._createOn(r);else if(!i.nextPosition.isAfter(t.start)&&r.is("$textProxy")){const a=r.getAncestors().find(c=>c.is("element")&&e.isSimilar(c));a&&(s=K._createIn(a))}s&&(s.end.isAfter(t.end)&&(s.end=t.end),s.start.isBefore(t.start)&&(s.start=t.start),this.remove(s))}}move(t,e){let n;if(e.isAfter(t.end)){e=this._breakAttributes(e,!0);const i=e.parent,r=i.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=i.childCount-r}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof on))throw new b("view-writer-wrap-invalid-attribute",this.document);if(ro(t,this.document),t.isCollapsed){let n=t.start;n.parent.is("element")&&!By(n.parent)&&(n=n.getLastMatchingPosition(r=>r.item.is("uiElement"))),n=this._wrapPosition(n,e);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(t.start)&&this.setSelection(n),new K(n)}else return this._wrapRange(t,e)}unwrap(t,e){if(!(e instanceof on))throw new b("view-writer-unwrap-invalid-attribute",this.document);if(ro(t,this.document),t.isCollapsed)return t;const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent,s=this._unwrapChildren(r,n.offset,i.offset,e),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new K(a,c)}rename(t,e){const n=new oo(this.document,t,e.getAttributes());return this.insert(O._createAfter(e),n),this.move(K._createIn(e),O._createAt(n,0)),this.remove(K._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return O._createAt(t,e)}createPositionAfter(t){return O._createAfter(t)}createPositionBefore(t){return O._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new ue(...t)}createSlot(t="children"){if(!this._slotFactory)throw new b("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}_registerSlotFactory(t){this._slotFactory=t}_clearSlotFactory(){this._slotFactory=null}_insertNodes(t,e,n){let i;if(n?i=es(t):i=t.parent.is("$text")?t.parent.parent:t.parent,!i)throw new b("view-writer-invalid-position-container",this.document);let r;n?r=this._breakAttributes(t,!0):r=t.parent.is("$text")?ns(t):t;const s=i._insertChild(r.offset,e);for(const d of e)this._addToClonedElementsGroup(d);const a=r.getShiftedBy(s),c=this.mergeAttributes(r);c.isEqual(r)||a.offset--;const l=this.mergeAttributes(a);return new K(c,l)}_wrapChildren(t,e,n,i){let r=e;const s=[];for(;r<n;){const c=t.getChild(r),l=c.is("$text"),d=c.is("attributeElement");if(d&&this._wrapAttributeElement(i,c))s.push(new O(t,r));else if(l||!d||Ny(i,c)){const u=i._clone();c._remove(),u._appendChild(c),t._insertChild(r,u),this._addToClonedElementsGroup(u),s.push(new O(t,r))}else this._wrapChildren(c,0,c.childCount,i);r++}let a=0;for(const c of s){if(c.offset-=a,c.offset==e)continue;this.mergeAttributes(c).isEqual(c)||(a++,n--)}return K._createFromParentsAndOffsets(t,e,t,n)}_unwrapChildren(t,e,n,i){let r=e;const s=[];for(;r<n;){const c=t.getChild(r);if(!c.is("attributeElement")){r++;continue}if(c.isSimilar(i)){const l=c.getChildren(),d=c.childCount;c._remove(),t._insertChild(r,l),this._removeFromClonedElementsGroup(c),s.push(new O(t,r),new O(t,r+d)),r+=d,n+=d-1;continue}if(this._unwrapAttributeElement(i,c)){s.push(new O(t,r),new O(t,r+1)),r++;continue}this._unwrapChildren(c,0,c.childCount,i),r++}let a=0;for(const c of s){if(c.offset-=a,c.offset==e||c.offset==n)continue;this.mergeAttributes(c).isEqual(c)||(a++,n--)}return K._createFromParentsAndOffsets(t,e,t,n)}_wrapRange(t,e){const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent,s=this._wrapChildren(r,n.offset,i.offset,e),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new K(a,c)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return Gd(t.clone());t.parent.is("$text")&&(t=ns(t));const n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,t.parent._insertChild(t.offset,n);const i=new K(t,t.getShiftedBy(1));this.wrap(i,e);const r=new O(n.parent,n.index);n._remove();const s=r.nodeBefore,a=r.nodeAfter;return s instanceof gt&&a instanceof gt?$d(s,a):Gd(r)}_wrapAttributeElement(t,e){if(!Zd(t,e)||t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if(!(n==="class"||n==="style")&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())n==="class"||n==="style"||e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e);for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!Zd(t,e)||t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if(!(n==="class"||n==="style")&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())n==="class"||n==="style"||this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,i=t.end;if(ro(t,this.document),t.isCollapsed){const c=this._breakAttributes(t.start,e);return new K(c,c)}const r=this._breakAttributes(i,e),s=r.parent.childCount,a=this._breakAttributes(n,e);return r.offset+=r.parent.childCount-s,new K(a,r)}_breakAttributes(t,e=!1){const n=t.offset,i=t.parent;if(t.parent.is("emptyElement"))throw new b("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new b("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new b("view-writer-cannot-break-raw-element",this.document);if(!e&&i.is("$text")&&os(i.parent)||os(i))return t.clone();if(i.is("$text"))return this._breakAttributes(ns(t),e);const r=i.childCount;if(n==r){const s=new O(i.parent,i.index+1);return this._breakAttributes(s,e)}else if(n===0){const s=new O(i.parent,i.index);return this._breakAttributes(s,e)}else{const s=i.index+1,a=i._clone();i.parent._insertChild(s,a),this._addToClonedElementsGroup(a);const c=i.childCount-n,l=i._removeChildren(n,c);a._appendChild(l);const d=new O(i.parent,s);return this._breakAttributes(d,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const i of t.getChildren())this._addToClonedElementsGroup(i);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const i of t.getChildren())this._removeFromClonedElementsGroup(i);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function By(o){return Array.from(o.getChildren()).some(t=>!t.is("uiElement"))}function es(o){let t=o.parent;for(;!os(t);){if(!t)return;t=t.parent}return t}function Ny(o,t){return o.priority<t.priority?!0:o.priority>t.priority?!1:o.getIdentity()<t.getIdentity()}function Gd(o){const t=o.nodeBefore;if(t&&t.is("$text"))return new O(t,t.data.length);const e=o.nodeAfter;return e&&e.is("$text")?new O(e,0):o}function ns(o){if(o.offset==o.parent.data.length)return new O(o.parent.parent,o.parent.index+1);if(o.offset===0)return new O(o.parent.parent,o.parent.index);const t=o.parent.data.slice(o.offset);return o.parent._data=o.parent.data.slice(0,o.offset),o.parent.parent._insertChild(o.parent.index+1,new gt(o.root.document,t)),new O(o.parent.parent,o.parent.index+1)}function $d(o,t){const e=o.data.length;return o._data+=t.data,t._remove(),new O(o,e)}const zy=[gt,on,oo,Xr,ts,oi];function Kd(o,t){for(const e of o){if(!zy.some(n=>e instanceof n))throw new b("view-writer-insert-invalid-node-type",t);e.is("$text")||Kd(e.getChildren(),t)}}function os(o){return o&&(o.is("containerElement")||o.is("documentFragment"))}function ro(o,t){const e=es(o.start),n=es(o.end);if(!e||!n||e!==n)throw new b("view-writer-invalid-range-container",t)}function Zd(o,t){return o.id===null&&t.id===null}const Yd=o=>o.createTextNode(" "),Qd=o=>{const t=o.createElement("span");return t.dataset.ckeFiller="true",t.innerText=" ",t},Jd=o=>{const t=o.createElement("br");return t.dataset.ckeFiller="true",t},he=7,so="".repeat(he);function Qt(o){return typeof o=="string"?o.substr(0,he)===so:Dt(o)&&o.data.substr(0,he)===so}function ao(o){return o.data.length==he&&Qt(o)}function Xd(o){const t=typeof o=="string"?o:o.data;return Qt(o)?t.slice(he):t}function Py(o){o.document.on("arrowKey",Ly,{priority:"low"})}function Ly(o,t){if(t.keyCode==tt.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(e.rangeCount==1&&e.getRangeAt(0).collapsed){const n=e.getRangeAt(0).startContainer,i=e.getRangeAt(0).startOffset;Qt(n)&&i<=he&&e.collapse(n,0)}}}var tu=L(5037),is={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};is.insert="head",is.singleton=!0,F()(tu.Z,is),tu.Z.locals;class Oy extends rt(){constructor(t,e){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=t,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),g.isBlink&&!g.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(t,e){if(t==="text")this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if(t==="attributes")this.markedAttributes.add(e);else if(t==="children")this.markedChildren.add(e);else throw new b("view-renderer-unknown-type",this)}}render(){if(this.isComposing&&!g.isAndroid)return;let t=null;const e=g.isBlink&&!g.isAndroid?!this.isSelecting:!0;for(const n of this.markedChildren)this._updateChildrenMappings(n);e?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller),t&&t.parent.is("$text")&&(t=O._createBefore(t.parent)));for(const n of this.markedAttributes)this._updateAttrs(n);for(const n of this.markedChildren)this._updateChildren(n,{inlineFillerPosition:t});for(const n of this.markedTexts)!this.markedChildren.has(n.parent)&&this.domConverter.mapViewToDom(n.parent)&&this._updateText(n,{inlineFillerPosition:t});if(e)if(t){const n=this.domConverter.viewPositionToDom(t),i=n.parent.ownerDocument;Qt(n.parent)?this._inlineFiller=n.parent:this._inlineFiller=eu(i,n.parent,n.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.childNodes),i=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),r=this._diffNodeLists(n,i),s=this._findUpdateActions(r,n,i,jy);if(s.indexOf("update")!==-1){const a={equal:0,insert:0,delete:0};for(const c of s)if(c==="update"){const l=a.equal+a.insert,d=a.equal+a.delete,u=t.getChild(l);u&&!u.is("uiElement")&&!u.is("rawElement")&&this._updateElementMappings(u,n[d]),jl(i[l]),a.equal++}else a[c]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?O._createBefore(t.parent):t}_isSelectionInInlineFiller(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&Dt(e.parent)&&Qt(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!Qt(t))throw new b("view-renderer-filler-was-lost",this);ao(t)?t.remove():t.data=t.data.substr(he),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root)||!e.is("element")||!Ry(e)||n===e.getFillerOffset())return!1;const i=t.nodeBefore,r=t.nodeAfter;return!(i instanceof gt||r instanceof gt||g.isAndroid&&(i||r))}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let r=this.domConverter.viewToDom(t).data;const s=e.inlineFillerPosition;s&&s.parent==t.parent&&s.offset==t.index&&(r=so+r),nu(n,r)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map(r=>r.name),i=t.getAttributeKeys();for(const r of i)this.domConverter.setDomElementAttribute(e,r,t.getAttribute(r),t);for(const r of n)t.hasAttribute(r)||this.domConverter.removeDomElementAttribute(e,r)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(g.isAndroid){let u=null;for(const f of Array.from(n.childNodes)){if(u&&Dt(u)&&Dt(f)){n.normalize();break}u=f}}const i=e.inlineFillerPosition,r=n.childNodes,s=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));i&&i.parent===t&&eu(n.ownerDocument,s,i.offset);const a=this._diffNodeLists(r,s),c=this._findUpdateActions(a,r,s,Fy);let l=0;const d=new Set;for(const u of c)u==="delete"?(d.add(r[l]),jl(r[l])):(u==="equal"||u==="update")&&l++;l=0;for(const u of c)u==="insert"?(Ll(n,l,s[l]),l++):u==="update"?(nu(r[l],s[l].data),l++):u==="equal"&&(this._markDescendantTextToSync(this.domConverter.domToView(s[l])),l++);for(const u of d)u.parentNode||this.domConverter.unbindDomElement(u)}_diffNodeLists(t,e){return t=Uy(t,this._fakeSelectionContainer),Bt(t,e,Vy.bind(null,this.domConverter))}_findUpdateActions(t,e,n,i){if(t.indexOf("insert")===-1||t.indexOf("delete")===-1)return t;let r=[],s=[],a=[];const c={equal:0,insert:0,delete:0};for(const l of t)l==="insert"?a.push(n[c.equal+c.insert]):l==="delete"?s.push(e[c.equal+c.delete]):(r=r.concat(Bt(s,a,i).map(d=>d==="equal"?"update":d)),r.push("equal"),s=[],a=[]),c[l]++;return r.concat(Bt(s,a,i).map(l=>l==="equal"?"update":l))}_markDescendantTextToSync(t){if(t){if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}}_updateSelection(){if(g.isBlink&&!g.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(this.selection.rangeCount===0){this._removeDomSelection(),this._removeFakeSelection();return}const t=this.domConverter.mapViewToDom(this.selection.editableElement);!this.isFocused||!t||(this.selection.isFake?this._updateFakeSelection(t):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(t)):this.isComposing&&g.isAndroid||this._updateDomSelection(t))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=qy(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;(!n.parentElement||n.parentElement!=t)&&t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const i=e.getSelection(),r=e.createRange();i.removeAllRanges(),r.selectNodeContents(n),i.addRange(r)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.setBaseAndExtent(n.parent,n.offset,i.parent,i.offset),g.isGecko&&Hy(i,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return!(e&&this.selection.isEqual(e)||!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||n.anchorNode!==e&&!e.contains(n.anchorNode)?!0:e.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const t of this.domDocuments){const e=t.getSelection();if(e.rangeCount){const n=t.activeElement,i=this.domConverter.mapDomToView(n);n&&i&&e.removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function Ry(o){if(o.getAttribute("contenteditable")=="false")return!1;const t=o.findAncestor(e=>e.hasAttribute("contenteditable"));return!t||t.getAttribute("contenteditable")=="true"}function eu(o,t,e){const n=t instanceof Array?t:t.childNodes,i=n[e];if(Dt(i))return i.data=so+i.data,i;{const r=o.createTextNode(so);return Array.isArray(t)?n.splice(e,0,r):Ll(t,e,r),r}}function jy(o,t){return Re(o)&&Re(t)&&!Dt(o)&&!Dt(t)&&!to(o)&&!to(t)&&o.tagName.toLowerCase()===t.tagName.toLowerCase()}function Fy(o,t){return Re(o)&&Re(t)&&Dt(o)&&Dt(t)}function Vy(o,t,e){return t===e?!0:Dt(t)&&Dt(e)?t.data===e.data:!!(o.isBlockFiller(t)&&o.isBlockFiller(e))}function Hy(o,t){const e=o.parent;if(e.nodeType!=Node.ELEMENT_NODE||o.offset!=e.childNodes.length-1)return;const n=e.childNodes[o.offset];n&&n.tagName=="BR"&&t.addRange(t.getRangeAt(0))}function Uy(o,t){const e=Array.from(o);return e.length==0||!t||e[e.length-1]==t&&e.pop(),e}function qy(o){const t=o.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}function nu(o,t){const e=o.data;if(e==t)return;const n=R(e,t);for(const i of n)i.type==="insert"?o.insertData(i.index,i.values.join("")):o.deleteData(i.index,i.howMany)}const Wy=Jd(U.document),Gy=Yd(U.document),$y=Qd(U.document),ii="data-ck-unsafe-attribute-",ou="data-ck-unsafe-element";class ri{constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new de,this._inlineObjectElementMatcher=new de,this._elementsWithTemporaryCustomProperties=new Set,this.document=t,this.renderingMode=n,this.blockFillerMode=e||(n==="editing"?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument=this.renderingMode==="editing"?U.document:U.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new ue(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const n of Array.from(t.children))this.unbindDomElement(n)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return this.renderingMode==="data"?!0:(t=t.toLowerCase(),t.startsWith("on")||t==="srcdoc"&&e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i)?!1:n==="img"&&(t==="src"||t==="srcset")||n==="source"&&t==="srcset"?!0:!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(t,e){if(this.renderingMode==="data"){t.innerHTML=e;return}const n=new DOMParser().parseFromString(e,"text/html"),i=n.createDocumentFragment(),r=n.body.childNodes;for(;r.length>0;)i.appendChild(r[0]);const s=n.createTreeWalker(i,NodeFilter.SHOW_ELEMENT),a=[];let c;for(;c=s.nextNode();)a.push(c);for(const l of a){for(const u of l.getAttributeNames())this.setDomElementAttribute(l,u,l.getAttribute(u));const d=l.tagName.toLowerCase();this._shouldRenameElement(d)&&(su(d),l.replaceWith(this._createReplacementDomElement(d,l)))}for(;t.firstChild;)t.firstChild.remove();t.append(i)}viewToDom(t,e={}){if(t.is("$text")){const n=this._processDataFromViewText(t);return this._domDocument.createTextNode(n)}else{const n=t;if(this.mapViewToDom(n))if(n.getCustomProperty("editingPipeline:doNotReuseOnce"))this._elementsWithTemporaryCustomProperties.add(n);else return this.mapViewToDom(n);let i;if(n.is("documentFragment"))i=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(i,n);else{if(n.is("uiElement"))return n.name==="$comment"?i=this._domDocument.createComment(n.getCustomProperty("$rawContent")):i=n.render(this._domDocument,this),e.bind&&this.bindElements(i,n),i;this._shouldRenameElement(n.name)?(su(n.name),i=this._createReplacementDomElement(n.name)):n.hasAttribute("xmlns")?i=this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):i=this._domDocument.createElement(n.name),n.is("rawElement")&&n.render(i,this),e.bind&&this.bindElements(i,n);for(const r of n.getAttributeKeys())this.setDomElementAttribute(i,r,n.getAttribute(r),n)}if(e.withChildren!==!1)for(const r of this.viewChildrenToDom(n,e))i.appendChild(r);return i}}setDomElementAttribute(t,e,n,i){const r=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||i&&i.shouldRenderUnsafeAttribute(e);if(r||at("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),!W_(e)){at("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n});return}t.hasAttribute(e)&&!r?t.removeAttribute(e):t.hasAttribute(ii+e)&&r&&t.removeAttribute(ii+e),t.setAttribute(r?e:ii+e,n)}removeDomElementAttribute(t,e){e!=ou&&(t.removeAttribute(e),t.removeAttribute(ii+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let i=0;for(const r of t.getChildren()){n===i&&(yield this._getBlockFiller());const s=r.is("element")&&!!r.getCustomProperty("dataPipeline:transparentRendering")&&!It(r.getAttributes());s&&this.renderingMode=="data"?yield*this.viewChildrenToDom(r,e):(s&&at("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:r}),yield this.viewToDom(r,e)),i++}n===i&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),i=this._domDocument.createRange();return i.setStart(e.parent,e.offset),i.setEnd(n.parent,n.offset),i}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let i=t.offset;return Qt(n)&&(i+=he),{parent:n,offset:i}}else{let n,i,r;if(t.offset===0){if(n=this.mapViewToDom(e),!n)return null;r=n.childNodes[0]}else{const a=t.nodeBefore;if(i=a.is("$text")?this.findCorrespondingDomText(a):this.mapViewToDom(a),!i)return null;n=i.parentNode,r=i.nextSibling}if(Dt(r)&&Qt(r))return{parent:r,offset:he};const s=i?Wo(i)+1:0;return{parent:n,offset:s}}}domToView(t,e={}){const n=[],i=this._domToView(t,e,n),r=i.next().value;return!r||(i.next(),this._processDomInlineNodes(null,n,e),r.is("$text")&&r.data.length==0)?null:r}*domChildrenToView(t,e={},n=[]){for(let i=0;i<t.childNodes.length;i++){const r=t.childNodes[i],s=this._domToView(r,e,n),a=s.next().value;a!==null&&(this._isBlockViewElement(a)&&this._processDomInlineNodes(t,n,e),yield a,s.next())}this._processDomInlineNodes(t,n,e)}domSelectionToView(t){if(Yy(t))return new ue([]);if(t.rangeCount===1){let i=t.getRangeAt(0).startContainer;Dt(i)&&(i=i.parentNode);const r=this.fakeSelectionToView(i);if(r)return r}const e=this.isDomSelectionBackward(t),n=[];for(let i=0;i<t.rangeCount;i++){const r=t.getRangeAt(i),s=this.domRangeToView(r);s&&n.push(s)}return new ue(n,{backward:e})}domRangeToView(t){const e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new K(e,n):null}domPositionToView(t,e=0){if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,Wo(t));const n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return O._createBefore(n);if(Dt(t)){if(ao(t))return this.domPositionToView(t.parentNode,Wo(t));const i=this.findCorrespondingViewText(t);let r=e;return i?(Qt(t)&&(r-=he,r=r<0?0:r),new O(i,r)):null}else{if(e===0){const i=this.mapDomToView(t);if(i)return new O(i,0)}else{const i=t.childNodes[e-1];if(Dt(i)&&ao(i)||i&&this.isBlockFiller(i))return this.domPositionToView(i.parentNode,Wo(i));const r=Dt(i)?this.findCorrespondingViewText(i):this.mapDomToView(i);if(r&&r.parent)return new O(r.parent,r.index+1)}return null}}mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if(ao(t))return null;const e=this.getHostViewElement(t);if(e)return e;const n=t.previousSibling;if(n){if(!this.isElement(n))return null;const i=this.mapDomToView(n);if(i){const r=i.nextSibling;return r instanceof gt?r:null}}else{const i=this.mapDomToView(t.parentNode);if(i){const r=i.getChild(0);return r instanceof gt?r:null}}return null}mapViewToDom(t){return this._viewToDomMapping.get(t)}findCorrespondingDomText(t){const e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null}focus(t){const e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){const{scrollX:n,scrollY:i}=U.window,r=[];iu(e,s=>{const{scrollLeft:a,scrollTop:c}=s;r.push([a,c])}),e.focus(),iu(e,s=>{const[a,c]=r.shift();s.scrollLeft=a,s.scrollTop=c}),U.window.scrollTo(n,i)}}_clearDomSelection(){const t=this.mapViewToDom(this.document.selection.editableElement);if(!t)return;const e=t.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(e);n&&n.rangeCount>0&&e.removeAllRanges()}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(t){return this.blockFillerMode=="br"?t.isEqualNode(Wy):t.tagName==="BR"&&ru(t,this.blockElements)&&t.parentNode.childNodes.length===1?!0:t.isEqualNode($y)||Zy(t,this.blockElements)}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset)}catch{return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=V_(t);for(e.pop();e.length;){const n=e.pop(),i=this._domToViewMapping.get(n);if(i&&(i.is("uiElement")||i.is("rawElement")))return i}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}registerInlineObjectMatcher(t){this._inlineObjectElementMatcher.add(t)}_clearTemporaryCustomProperties(){for(const t of this._elementsWithTemporaryCustomProperties)t._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Yd(this._domDocument);case"markedNbsp":return Qd(this._domDocument);case"br":return Jd(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(Dt(t)&&Qt(t)&&e<he||this.isElement(t)&&Qt(t.childNodes[e]))return!1;const n=this.mapDomToView(t);return!(n&&(n.is("uiElement")||n.is("rawElement")))}*_domToView(t,e,n){if(this.isBlockFiller(t))return null;const i=this.getHostViewElement(t);if(i)return i;if(to(t)&&e.skipComments)return null;if(Dt(t)){if(ao(t))return null;{const r=t.data;if(r==="")return null;const s=new gt(this.document,r);return n.push(s),s}}else{let r=this.mapDomToView(t);if(r)return this._isInlineObjectElement(r)&&n.push(r),r;if(this.isDocumentFragment(t))r=new rn(this.document),e.bind&&this.bindDocumentFragments(t,r);else{r=this._createViewElement(t,e),e.bind&&this.bindElements(t,r);const a=t.attributes;if(a)for(let c=a.length,l=0;l<c;l++)r._setAttribute(a[l].name,a[l].value);if(this._isViewElementWithRawContent(r,e))return r._setCustomProperty("$rawContent",t.innerHTML),this._isBlockViewElement(r)||n.push(r),r;if(to(t))return r._setCustomProperty("$rawContent",t.data),r}yield r;const s=[];if(e.withChildren!==!1)for(const a of this.domChildrenToView(t,e,s))r._appendChild(a);if(this._isInlineObjectElement(r))n.push(r);else for(const a of s)n.push(a)}}_processDomInlineNodes(t,e,n){if(!e.length||t&&!this.isDocumentFragment(t)&&!this._isBlockDomElement(t))return;let i=!1;for(let r=0;r<e.length;r++){const s=e[r];if(!s.is("$text")){i=!1;continue}let a,c=!1;if(Ky(s,this.preElements))a=Xd(s.data);else{a=s.data.replace(/[ \n\t\r]{1,}/g," "),c=/[^\S\u00A0]/.test(a.charAt(a.length-1));const l=r>0?e[r-1]:null,d=r+1<e.length?e[r+1]:null,u=!l||l.is("element")&&l.name=="br"||i,f=d?!1:!Qt(s.data);n.withChildren!==!1&&(u&&(a=a.replace(/^ /,"")),f&&(a=a.replace(/ $/,""))),a=Xd(a),a=a.replace(/ \u00A0/g," ");const p=d&&d.is("element")&&d.name!="br",w=d&&d.is("$text")&&d.data.charAt(0)==" ";(/[ \u00A0]\u00A0$/.test(a)||!d||p||w)&&(a=a.replace(/\u00A0$/," ")),(u||l&&l.is("element")&&l.name!="br")&&(a=a.replace(/^\u00A0/," "))}a.length==0&&s.parent?(s._remove(),e.splice(r,1),r--):(s._data=a,i=c)}e.length=0}_processDataFromViewText(t){let e=t.data;if(t.getAncestors().some(n=>this.preElements.includes(n.name)))return e;if(e.charAt(0)==" "){const n=this._getTouchingInlineViewNode(t,!1);(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n)||!n)&&(e=" "+e.substr(1))}if(e.charAt(e.length-1)==" "){const n=this._getTouchingInlineViewNode(t,!0),i=n&&n.is("$textProxy")&&n.data.charAt(0)==" ";(e.charAt(e.length-2)==" "||!n||i)&&(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g," ")}_nodeEndsWithSpace(t){if(t.getAncestors().some(n=>this.preElements.includes(n.name)))return!1;const e=this._processDataFromViewText(t);return e.charAt(e.length-1)==" "}_getTouchingInlineViewNode(t,e){const n=new nn({startPosition:e?O._createAfter(t):O._createBefore(t),direction:e?"forward":"backward"});for(const i of n){if(i.item.is("element","br"))return null;if(this._isInlineObjectElement(i.item))return i.item;if(i.item.is("containerElement"))return null;if(i.item.is("$textProxy"))return i.item}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return t.is("element")?t.name=="br"||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t):!1}_createViewElement(t,e){if(to(t))return new oi(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new Yt(this.document,n)}_isViewElementWithRawContent(t,e){return e.withChildren!==!1&&t.is("element")&&!!this._rawContentElementMatcher.match(t)}_shouldRenameElement(t){const e=t.toLowerCase();return this.renderingMode==="editing"&&this.unsafeElements.includes(e)}_createReplacementDomElement(t,e){const n=this._domDocument.createElement("span");if(n.setAttribute(ou,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const i of e.getAttributeNames())n.setAttribute(i,e.getAttribute(i))}return n}}function Ky(o,t){return o.getAncestors().some(e=>e.is("element")&&t.includes(e.name))}function iu(o,t){let e=o;for(;e;)t(e),e=e.parentElement}function Zy(o,t){return o.isEqualNode(Gy)&&ru(o,t)&&o.parentNode.childNodes.length===1}function ru(o,t){const e=o.parentNode;return!!e&&!!e.tagName&&t.includes(e.tagName.toLowerCase())}function su(o){o==="script"&&at("domconverter-unsafe-script-element-detected"),o==="style"&&at("domconverter-unsafe-style-element-detected")}function Yy(o){if(!g.isGecko||!o.rangeCount)return!1;const t=o.getRangeAt(0).startContainer;try{Object.prototype.toString.call(t)}catch{return!0}return!1}class Ae extends Zt(){constructor(t){super(),this._isEnabled=!1,this.view=t,this.document=t.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&t.nodeType===3&&(t=t.parentNode),!t||t.nodeType!==1?!1:t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}var Qy=Od(function(o,t){_n(t,yn(t),o)});const au=Qy;class In{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,au(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class je extends Ae{constructor(){super(...arguments),this.useCapture=!1}observe(t){(typeof this.domEventType=="string"?[this.domEventType]:this.domEventType).forEach(n=>{this.listenTo(t,n,(i,r)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(r.target)&&this.onDomEvent(r)},{useCapture:this.useCapture})})}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new In(this.view,e,n))}}class Jy extends je{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(t){const e={keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return xn(this)}};this.fire(t.type,t,e)}}var Xy=function(){return le.Date.now()};const rs=Xy;var t1=/\s/;function e1(o){for(var t=o.length;t--&&t1.test(o.charAt(t)););return t}const n1=e1;var o1=/^\s+/;function i1(o){return o&&o.slice(0,n1(o)+1).replace(o1,"")}const r1=i1;var cu=0/0,s1=/^[-+]0x[0-9a-f]+$/i,a1=/^0b[01]+$/i,c1=/^0o[0-7]+$/i,l1=parseInt;function d1(o){if(typeof o=="number")return o;if(Jo(o))return cu;if(_t(o)){var t=typeof o.valueOf=="function"?o.valueOf():o;o=_t(t)?t+"":t}if(typeof o!="string")return o===0?o:+o;o=r1(o);var e=a1.test(o);return e||c1.test(o)?l1(o.slice(2),e?2:8):s1.test(o)?cu:+o}const lu=d1;var u1="Expected a function",h1=Math.max,g1=Math.min;function f1(o,t,e){var n,i,r,s,a,c,l=0,d=!1,u=!1,f=!0;if(typeof o!="function")throw new TypeError(u1);t=lu(t)||0,_t(e)&&(d=!!e.leading,u="maxWait"in e,r=u?h1(lu(e.maxWait)||0,t):r,f="trailing"in e?!!e.trailing:f);function p(H){var Z=n,q=i;return n=i=void 0,l=H,s=o.apply(q,Z),s}function w(H){return l=H,a=setTimeout(z,t),d?p(H):s}function S(H){var Z=H-c,q=H-l,At=t-Z;return u?g1(At,r-q):At}function B(H){var Z=H-c,q=H-l;return c===void 0||Z>=t||Z<0||u&&q>=r}function z(){var H=rs();if(B(H))return V(H);a=setTimeout(z,S(H))}function V(H){return a=void 0,f&&n?p(H):(n=i=void 0,s)}function J(){a!==void 0&&clearTimeout(a),l=0,n=c=i=a=void 0}function st(){return a===void 0?s:V(rs())}function pt(){var H=rs(),Z=B(H);if(n=arguments,i=this,c=H,Z){if(a===void 0)return w(c);if(u)return clearTimeout(a),a=setTimeout(z,t),p(c)}return a===void 0&&(a=setTimeout(z,t)),s}return pt.cancel=J,pt.flush=st,pt}const co=f1;class m1 extends Ae{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=co(e=>{this.document.fire("selectionChangeDone",e)},200)}observe(){const t=this.document;t.on("arrowKey",(e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()},{context:"$capture"}),t.on("arrowKey",(e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new ue(e.getRanges(),{backward:e.isBackward,fake:!1});(t==tt.arrowleft||t==tt.arrowup)&&n.setTo(n.getFirstPosition()),(t==tt.arrowright||t==tt.arrowdown)&&n.setTo(n.getLastPosition());const i={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}var p1="__lodash_hash_undefined__";function k1(o){return this.__data__.set(o,p1),this}const b1=k1;function w1(o){return this.__data__.has(o)}const A1=w1;function si(o){var t=-1,e=o==null?0:o.length;for(this.__data__=new Oo;++t<e;)this.add(o[t])}si.prototype.add=si.prototype.push=b1,si.prototype.has=A1;const C1=si;function _1(o,t){for(var e=-1,n=o==null?0:o.length;++e<n;)if(t(o[e],e,o))return!0;return!1}const v1=_1;function y1(o,t){return o.has(t)}const x1=y1;var E1=1,D1=2;function S1(o,t,e,n,i,r){var s=e&E1,a=o.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var l=r.get(o),d=r.get(t);if(l&&d)return l==t&&d==o;var u=-1,f=!0,p=e&D1?new C1:void 0;for(r.set(o,t),r.set(t,o);++u<a;){var w=o[u],S=t[u];if(n)var B=s?n(S,w,u,t,o,r):n(w,S,u,o,t,r);if(B!==void 0){if(B)continue;f=!1;break}if(p){if(!v1(t,function(z,V){if(!x1(p,V)&&(w===z||i(w,z,e,n,r)))return p.push(V)})){f=!1;break}}else if(!(w===S||i(w,S,e,n,r))){f=!1;break}}return r.delete(o),r.delete(t),f}const du=S1;function T1(o){var t=-1,e=Array(o.size);return o.forEach(function(n,i){e[++t]=[i,n]}),e}const I1=T1;function M1(o){var t=-1,e=Array(o.size);return o.forEach(function(n){e[++t]=n}),e}const B1=M1;var N1=1,z1=2,P1="[object Boolean]",L1="[object Date]",O1="[object Error]",R1="[object Map]",j1="[object Number]",F1="[object RegExp]",V1="[object Set]",H1="[object String]",U1="[object Symbol]",q1="[object ArrayBuffer]",W1="[object DataView]",uu=ke?ke.prototype:void 0,ss=uu?uu.valueOf:void 0;function G1(o,t,e,n,i,r,s){switch(e){case W1:if(o.byteLength!=t.byteLength||o.byteOffset!=t.byteOffset)return!1;o=o.buffer,t=t.buffer;case q1:return!(o.byteLength!=t.byteLength||!r(new Fo(o),new Fo(t)));case P1:case L1:case j1:return Gn(+o,+t);case O1:return o.name==t.name&&o.message==t.message;case F1:case H1:return o==t+"";case R1:var a=I1;case V1:var c=n&N1;if(a||(a=B1),o.size!=t.size&&!c)return!1;var l=s.get(o);if(l)return l==t;n|=z1,s.set(o,t);var d=du(a(o),a(t),n,i,r,s);return s.delete(o),d;case U1:if(ss)return ss.call(o)==ss.call(t)}return!1}const $1=G1;var K1=1,Z1=Object.prototype,Y1=Z1.hasOwnProperty;function Q1(o,t,e,n,i,r){var s=e&K1,a=sr(o),c=a.length,l=sr(t),d=l.length;if(c!=d&&!s)return!1;for(var u=c;u--;){var f=a[u];if(!(s?f in t:Y1.call(t,f)))return!1}var p=r.get(o),w=r.get(t);if(p&&w)return p==t&&w==o;var S=!0;r.set(o,t),r.set(t,o);for(var B=s;++u<c;){f=a[u];var z=o[f],V=t[f];if(n)var J=s?n(V,z,f,t,o,r):n(z,V,f,o,t,r);if(!(J===void 0?z===V||i(z,V,e,n,r):J)){S=!1;break}B||(B=f=="constructor")}if(S&&!B){var st=o.constructor,pt=t.constructor;st!=pt&&"constructor"in o&&"constructor"in t&&!(typeof st=="function"&&st instanceof st&&typeof pt=="function"&&pt instanceof pt)&&(S=!1)}return r.delete(o),r.delete(t),S}const J1=Q1;var X1=1,hu="[object Arguments]",gu="[object Array]",ai="[object Object]",tx=Object.prototype,fu=tx.hasOwnProperty;function ex(o,t,e,n,i,r){var s=Vt(o),a=Vt(t),c=s?gu:Jn(o),l=a?gu:Jn(t);c=c==hu?ai:c,l=l==hu?ai:l;var d=c==ai,u=l==ai,f=c==l;if(f&&Yn(o)){if(!Yn(t))return!1;s=!0,d=!1}if(f&&!d)return r||(r=new Zn),s||nr(o)?du(o,t,e,n,i,r):$1(o,t,c,e,n,i,r);if(!(e&X1)){var p=d&&fu.call(o,"__wrapped__"),w=u&&fu.call(t,"__wrapped__");if(p||w){var S=p?o.value():o,B=w?t.value():t;return r||(r=new Zn),i(S,B,e,n,r)}}return f?(r||(r=new Zn),J1(o,t,e,n,i,r)):!1}const nx=ex;function mu(o,t,e,n,i){return o===t?!0:o==null||t==null||!ne(o)&&!ne(t)?o!==o&&t!==t:nx(o,t,e,n,mu,i)}const pu=mu;function ox(o,t,e){e=typeof e=="function"?e:void 0;var n=e?e(o,t):void 0;return n===void 0?pu(o,t,void 0,e):!!n}const ix=ox;class ku extends Ae{constructor(t){super(t),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=t.domConverter,this.renderer=t._renderer,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(t){this._domElements.add(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}stopObserving(t){if(this._domElements.delete(t),this.isEnabled){this._mutationObserver.disconnect();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}}enable(){super.enable();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(t){if(t.length===0)return;const e=this.domConverter,n=new Set,i=new Set;for(const s of t){const a=e.mapDomToView(s.target);a&&(a.is("uiElement")||a.is("rawElement")||s.type==="childList"&&!this._isBogusBrMutation(s)&&i.add(a))}for(const s of t){const a=e.mapDomToView(s.target);if(!(a&&(a.is("uiElement")||a.is("rawElement")))&&s.type==="characterData"){const c=e.findCorrespondingViewText(s.target);c&&!i.has(c.parent)?n.add(c):!c&&Qt(s.target)&&i.add(e.mapDomToView(s.target.parentNode))}}let r=!1;for(const s of n)r=!0,this.renderer.markToSync("text",s);for(const s of i){const a=e.mapViewToDom(s),c=Array.from(s.getChildren()),l=Array.from(e.domChildrenToView(a,{withChildren:!1}));ix(c,l,rx)||(r=!0,this.renderer.markToSync("children",s))}r&&this.view.forceRender()}_isBogusBrMutation(t){let e=null;return t.nextSibling===null&&t.removedNodes.length===0&&t.addedNodes.length==1&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}function rx(o,t){if(!Array.isArray(o))return o===t?!0:o.is("$text")&&t.is("$text")?o.data===t.data:!1}class ci extends je{constructor(t){super(t),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const e=this.document;e.on("focus",()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),t.change(()=>{})},50)}),e.on("blur",(n,i)=>{const r=e.selection.editableElement;(r===null||r===i.target)&&(e.isFocused=!1,this._isFocusChanging=!1,t.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class sx extends Ae{constructor(t){super(t),this.mutationObserver=t.getObserver(ku),this.focusObserver=t.getObserver(ci),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=co(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=co(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},i=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",n,{priority:"highest"}),this.listenTo(t,"keydown",i,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",i,{priority:"highest",useCapture:!0}),!this._documents.has(e)&&(this.listenTo(e,"mouseup",i,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",(r,s)=>{this.document.isComposing&&!g.isAndroid||(this._handleSelectionChange(s,e),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const i=this.domConverter.domSelectionToView(n);if(i.rangeCount==0){this.view.hasDomSelection=!1;return}if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!(this.selection.isEqual(i)&&this.domConverter.isDomSelectionCorrect(n))){if(++this._loopbackCounter>60){this._reportInfiniteLoop();return}if(this.selection.isSimilar(i))this.view.forceRender();else{const r={oldSelection:this.selection,newSelection:i,domSelection:n};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}}_clearInfiniteLoop(){this._loopbackCounter=0}}class ax extends je{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];const e=this.document;e.on("compositionstart",()=>{e.isComposing=!0},{priority:"low"}),e.on("compositionend",()=>{e.isComposing=!1},{priority:"low"})}onDomEvent(t){this.fire(t.type,t,{data:t.data})}}class bu{constructor(t,e={}){this._files=e.cacheFiles?wu(t):null,this._native=t}get files(){return this._files||(this._files=wu(this._native)),this._files}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}setDragImage(t,e,n){this._native.setDragImage(t,e,n)}get isCanceled(){return this._native.dropEffect=="none"||!!this._native.mozUserCancelled}}function wu(o){const t=Array.from(o.files||[]),e=Array.from(o.items||[]);return t.length?t:e.filter(n=>n.kind==="file").map(n=>n.getAsFile())}class cx extends je{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(t){const e=t.getTargetRanges(),n=this.view,i=n.document;let r=null,s=null,a=[];if(t.dataTransfer&&(r=new bu(t.dataTransfer)),t.data!==null?s=t.data:r&&(s=r.getData("text/plain")),i.selection.isFake)a=Array.from(i.selection.getRanges());else if(e.length)a=e.map(c=>{const l=n.domConverter.domPositionToView(c.startContainer,c.startOffset),d=n.domConverter.domPositionToView(c.endContainer,c.endOffset);if(l)return n.createRange(l,d);if(d)return n.createRange(d)}).filter(c=>!!c);else if(g.isAndroid){const c=t.target.ownerDocument.defaultView.getSelection();a=Array.from(n.domConverter.domSelectionToView(c).getRanges())}if(g.isAndroid&&t.inputType=="insertCompositionText"&&s&&s.endsWith(`
|
|
|
`)){this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(a[0].end)]});return}if(t.inputType=="insertText"&&s&&s.includes(`
|
|
|
`)){const c=s.split(/\n{1,2}/g);let l=a;for(let d=0;d<c.length;d++){const u=c[d];u!=""&&(this.fire(t.type,t,{data:u,dataTransfer:r,targetRanges:l,inputType:t.inputType,isComposing:t.isComposing}),l=[i.selection.getFirstRange()]),d+1<c.length&&(this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:l}),l=[i.selection.getFirstRange()])}return}this.fire(t.type,t,{data:s,dataTransfer:r,targetRanges:a,inputType:t.inputType,isComposing:t.isComposing})}}class lx extends Ae{constructor(t){super(t),this.document.on("keydown",(e,n)=>{if(this.isEnabled&&e0(n.keyCode)){const i=new Sn(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(i,n),i.stop.called&&e.stop()}})}observe(){}stopObserving(){}}class dx extends Ae{constructor(t){super(t);const e=this.document;e.on("keydown",(n,i)=>{if(!this.isEnabled||i.keyCode!=tt.tab||i.ctrlKey)return;const r=new Sn(e,"tab",e.selection.getFirstRange());e.fire(r,i),r.stop.called&&n.stop()})}observe(){}stopObserving(){}}var ux=1,hx=4;function gx(o){return hr(o,ux|hx)}const Fe=gx;class fx extends rt(){constructor(t){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new ni(t),this.domConverter=new ri(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Oy(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Wd(this.document),this.addObserver(ku),this.addObserver(ci),this.addObserver(sx),this.addObserver(Jy),this.addObserver(m1),this.addObserver(ax),this.addObserver(lx),this.addObserver(cx),this.addObserver(dx),Py(this),Dy(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),g.isiOS&&this.listenTo(this.document,"blur",(e,n)=>{this.domConverter.mapDomToView(n.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const i={};for(const{name:s,value:a}of Array.from(t.attributes))i[s]=a,s==="class"?this._writer.addClass(a.split(" "),n):this._writer.setAttribute(s,a,n);this._initialDomRootAttributes.set(t,i);const r=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};r(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",(s,a)=>this._renderer.markToSync("children",a)),n.on("change:attributes",(s,a)=>this._renderer.markToSync("attributes",a)),n.on("change:text",(s,a)=>this._renderer.markToSync("text",a)),n.on("change:isReadOnly",()=>this.change(r)),n.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const s of this._observers.values())s.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach(({name:i})=>e.removeAttribute(i));const n=this._initialDomRootAttributes.get(e);for(const i in n)e.setAttribute(i,n[i]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e);for(const i of this._observers.values())i.stopObserving(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[n,i]of this.domRoots)e.observe(i,n);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection({alignToTop:t,forceScroll:e,viewportOffset:n=20,ancestorOffset:i=20}={}){const r=this.document.selection.getFirstRange();if(!r)return;const s=Fe({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:i});typeof n=="number"&&(n={top:n,bottom:n,left:n,right:n});const a={target:this.domConverter.viewRangeToDom(r),viewportOffset:n,ancestorOffset:i,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",a,s),K_(a)}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new b("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(e){b.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(ci).flush(),this.change(()=>{})}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return O._createAt(t,e)}createPositionAfter(t){return O._createAfter(t)}createPositionBefore(t){return O._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new ue(...t)}_disableRendering(t){this._renderingDisabled=t,t==!1&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Ve{is(){throw new Error("is() method is abstract")}}class sn extends Ve{constructor(t){super(),this.parent=null,this._attrs=De(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if((t=this.parent.getChildIndex(this))===null)throw new b("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if((t=this.parent.getChildStartOffset(this))===null)throw new b("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return t!==null&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return t!==null&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.parent===null?!1:this.root.isAttached()}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),i=t.getAncestors(e);let r=0;for(;n[r]==i[r]&&n[r];)r++;return r===0?null:n[r-1]}isBefore(t){if(this==t||this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=jt(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}isAfter(t){return this==t||this.root!==t.root?!1:!this.isBefore(t)}hasAttribute(t){return this._attrs.has(t)}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce((e,n)=>(e[n[0]]=n[1],e),{})),t}_clone(t){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=De(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}sn.prototype.is=function(o){return o==="node"||o==="model:node"};class lo{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((t,e)=>t+e.offsetSize,0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return e==-1?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return e===null?null:this._nodes.slice(0,e).reduce((n,i)=>n+i.offsetSize,0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new b("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t<e+n.offsetSize)return this.getNodeIndex(n);e+=n.offsetSize}if(e!=t)throw new b("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length}_insertNodes(t,e){for(const n of e)if(!(n instanceof sn))throw new b("model-nodelist-insertnodes-not-node",this);this._nodes=f0(this._nodes,Array.from(e),t,0)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map(t=>t.toJSON())}}class ft extends sn{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new ft(this.data,this.getAttributes())}static fromJSON(t){return new ft(t.data,t.attributes)}}ft.prototype.is=function(o){return o==="$text"||o==="model:$text"||o==="text"||o==="model:text"||o==="node"||o==="model:node"};class ge extends Ve{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new b("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new b("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return this.textNode.startOffset!==null?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return this.startOffset!==null?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}ge.prototype.is=function(o){return o==="$textProxy"||o==="model:$textProxy"||o==="textProxy"||o==="model:textProxy"};class lt extends sn{constructor(t,e,n){super(e),this._children=new lo,this.name=t,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map(n=>n._clone(!0)):void 0;return new lt(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=mx(e);for(const i of n)i.parent!==null&&i._remove(),i.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const i of n)i.parent=null;return n}static fromJSON(t){let e;if(t.children){e=[];for(const n of t.children)n.name?e.push(lt.fromJSON(n)):e.push(ft.fromJSON(n))}return new lt(t.name,t.attributes,e)}}lt.prototype.is=function(o,t){return t?t===this.name&&(o==="element"||o==="model:element"):o==="element"||o==="model:element"||o==="node"||o==="model:node"};function mx(o){return typeof o=="string"?[new ft(o)]:($t(o)||(o=[o]),Array.from(o).map(t=>typeof t=="string"?new ft(t):t instanceof ge?new ft(t.data,t.getAttributes()):t))}class fe{constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new b("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if(e!="forward"&&e!="backward")throw new b("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this._position=t.startPosition.clone():this._position=N._createAt(this.boundaries[this.direction=="backward"?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n,i,r;do i=this.position,r=this._visitedParent,{done:e,value:n}=this.next();while(!e&&t(n));e||(this._position=i,this._visitedParent=r)}next(){return this.direction=="forward"?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(n.parent===null&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const i=uo(e,n),r=i||Au(e,n,i);if(r instanceof lt){if(!this.shallow)e.path.push(0),this._visitedParent=r;else{if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}return this._position=e,an("elementStart",r,t,e,1)}if(r instanceof ft){let s;if(this.singleCharacters)s=1;else{let l=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<l&&(l=this.boundaries.end.offset),s=l-e.offset}const a=e.offset-r.startOffset,c=new ge(r,a,s);return e.offset+=s,this._position=e,an("text",c,t,e,s)}return e.path.pop(),e.offset++,this._position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():an("elementEnd",n,t,e)}_previous(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(n.parent===null&&e.offset===0)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const i=e.parent,r=uo(e,i),s=r||Cu(e,i,r);if(s instanceof lt)return e.offset--,this.shallow?(this._position=e,an("elementStart",s,t,e,1)):(e.path.push(s.maxOffset),this._position=e,this._visitedParent=s,this.ignoreElementEnd?this._previous():an("elementEnd",s,t,e));if(s instanceof ft){let a;if(this.singleCharacters)a=1;else{let d=s.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>d&&(d=this.boundaries.start.offset),a=e.offset-d}const c=e.offset-s.startOffset,l=new ge(s,c-a,a);return e.offset-=a,this._position=e,an("text",l,t,e,a)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,an("elementStart",n,t,e,1)}}function an(o,t,e,n,i){return{done:!1,value:{type:o,item:t,previousPosition:e,nextPosition:n,length:i}}}class N extends Ve{constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new b("model-position-root-invalid",t);if(!(e instanceof Array)||e.length===0)throw new b("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e<this.path.length-1;e++)if(t=t.getChild(t.offsetToIndex(this.path[e])),!t)throw new b("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new b("model-position-path-incorrect",this,{position:this});return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return uo(this,this.parent)}get nodeAfter(){const t=this.parent;return Au(this,t,uo(this,t))}get nodeBefore(){const t=this.parent;return Cu(this,t,uo(this,t))}get isAtStart(){return this.offset===0}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(t){if(this.root!=t.root)return"different";const e=jt(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after"}}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new fe(e);return n.skip(t),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0})}findAncestor(t){const e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null}getCommonPath(t){if(this.root!=t.root)return[];const e=jt(this.path,t.path),n=typeof e=="string"?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n)}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let i=0;for(;e[i]==n[i]&&e[i];)i++;return i===0?null:e[i-1]}getShiftedBy(t){const e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}isAfter(t){return this.compareWith(t)=="after"}isBefore(t){return this.compareWith(t)=="before"}isEqual(t){return this.compareWith(t)=="same"}isTouching(t){if(this.root!==t.root)return!1;const e=Math.min(this.path.length,t.path.length);for(let n=0;n<e;n++){const i=this.path[n]-t.path[n];if(i<-1||i>1)return!1;if(i===1)return _u(t,this,n);if(i===-1)return _u(this,t,n)}return this.path.length===t.path.length?!0:this.path.length>t.path.length?as(this.path,e):as(t.path,e)}hasSameParentAs(t){if(this.root!==t.root)return!1;const e=this.getParentPath(),n=t.getParentPath();return jt(e,n)=="same"}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=N._createAt(this);break}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&this.stickiness=="toNext"?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange,n=e.containsPosition(this)||e.start.isEqual(this);let i;return n?(i=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(i=i._getTransformedByDeletion(t.deletionPosition,1))):this.isEqual(t.deletionPosition)?i=N._createAt(t.deletionPosition):i=this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),i}_getTransformedByDeletion(t,e){const n=N._createAt(this);if(this.root!=t.root)return n;if(jt(t.getParentPath(),this.getParentPath())=="same"){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e}}else if(jt(t.getParentPath(),this.getParentPath())=="prefix"){const i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+e>this.path[i])return null;n.path[i]-=e}}return n}_getTransformedByInsertion(t,e){const n=N._createAt(this);if(this.root!=t.root)return n;if(jt(t.getParentPath(),this.getParentPath())=="same")(t.offset<this.offset||t.offset==this.offset&&this.stickiness!="toPrevious")&&(n.offset+=e);else if(jt(t.getParentPath(),this.getParentPath())=="prefix"){const i=t.path.length-1;t.offset<=this.path[i]&&(n.path[i]+=e)}return n}_getTransformedByMove(t,e,n){if(e=e._getTransformedByDeletion(t,n),t.isEqual(e))return N._createAt(this);const i=this._getTransformedByDeletion(t,n);return i===null||t.isEqual(this)&&this.stickiness=="toNext"||t.getShiftedBy(n).isEqual(this)&&this.stickiness=="toPrevious"?this._getCombined(t,e):i._getTransformedByInsertion(e,n)}_getCombined(t,e){const n=t.path.length-1,i=N._createAt(e);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[n]-t.offset,i.path=[...i.path,...this.path.slice(n+1)],i}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(t,e,n="toNone"){if(t instanceof N)return new N(t.root,t.path,t.stickiness);{const i=t;if(e=="end")e=i.maxOffset;else{if(e=="before")return this._createBefore(i,n);if(e=="after")return this._createAfter(i,n);if(e!==0&&!e)throw new b("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new b("model-position-parent-incorrect",[this,t]);const r=i.getPath();return r.push(e),new this(i.root,r,n)}}static _createAfter(t,e){if(!t.parent)throw new b("model-position-after-root",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}static _createBefore(t,e){if(!t.parent)throw new b("model-position-before-root",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}static fromJSON(t,e){if(t.root==="$graveyard"){const n=new N(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new b("model-position-fromjson-no-root",e,{rootName:t.root});return new N(e.getRoot(t.root),t.path,t.stickiness)}}N.prototype.is=function(o){return o==="position"||o==="model:position"};function uo(o,t){const e=t.getChild(t.offsetToIndex(o.offset));return e&&e.is("$text")&&e.startOffset<o.offset?e:null}function Au(o,t,e){return e!==null?null:t.getChild(t.offsetToIndex(o.offset))}function Cu(o,t,e){return e!==null?null:t.getChild(t.offsetToIndex(o.offset)-1)}function _u(o,t,e){return!(e+1===o.path.length||!as(t.path,e+1)||!px(o,e+1))}function as(o,t){for(;t<o.length;){if(o[t]!==0)return!1;t++}return!0}function px(o,t){let e=o.parent,n=o.path.length-1,i=0;for(;n>=t;){if(o.path[n]+i!==e.maxOffset)return!1;i=1,n--,e=e.parent}return!0}class T extends Ve{constructor(t,e){super(),this.start=N._createAt(t),this.end=e?N._createAt(e):N._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new fe({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const t=this.start.getParentPath(),e=this.end.getParentPath();return jt(t,e)=="same"}get root(){return this.start.root}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}containsItem(t){const e=N._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}isEqual(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new T(this.start,t.start)),this.containsPosition(t.end)&&e.push(new T(t.end,this.end))):e.push(new T(this.start,this.end)),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new T(e,n)}return null}getJoined(t,e=!1){let n=this.isIntersecting(t);if(n||(this.start.isBefore(t.start)?n=e?this.end.isTouching(t.start):this.end.isEqual(t.start):n=e?t.end.isTouching(this.start):t.end.isEqual(this.start)),!n)return null;let i=this.start,r=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(r)&&(r=t.end),new T(i,r)}getMinimalFlatRanges(){const t=[],e=this.start.getCommonPath(this.end).length,n=N._createAt(this.start);let i=n.parent;for(;n.path.length>e+1;){const r=i.maxOffset-n.offset;r!==0&&t.push(new T(n,n.getShiftedBy(r))),n.path=n.path.slice(0,-1),n.offset++,i=i.parent}for(;n.path.length<=this.end.path.length;){const r=this.end.path[n.path.length-1],s=r-n.offset;s!==0&&t.push(new T(n,n.getShiftedBy(s))),n.offset=r,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new fe(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new fe(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new fe(t);yield e.position;for(const n of e)yield n.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new T(this.start,this.end)]}getTransformedByOperations(t){const e=[new T(this.start,this.end)];for(const n of t)for(let i=0;i<e.length;i++){const r=e[i].getTransformedByOperation(n);e.splice(i,1,...r),i+=r.length-1}for(let n=0;n<e.length;n++){const i=e[n];for(let r=n+1;r<e.length;r++){const s=e[r];(i.containsRange(s)||s.containsRange(i)||i.isEqual(s))&&e.splice(r,1)}}return e}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const t=this.start.nodeAfter,e=this.end.nodeBefore;return t&&t.is("element")&&t===e?t:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(t,e=!1){return this._getTransformedByInsertion(t.position,t.howMany,e)}_getTransformedByMoveOperation(t,e=!1){const n=t.sourcePosition,i=t.howMany,r=t.targetPosition;return this._getTransformedByMove(n,r,i,e)}_getTransformedBySplitOperation(t){const e=this.start._getTransformedBySplitOperation(t);let n=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(n=this.end.getShiftedBy(1)),e.root!=n.root&&(n=this.end.getShiftedBy(-1)),new T(e,n)}_getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new T(this.start);let e=this.start._getTransformedByMergeOperation(t),n=this.end._getTransformedByMergeOperation(t);return e.root!=n.root&&(n=this.end.getShiftedBy(-1)),e.isAfter(n)?(t.sourcePosition.isBefore(t.targetPosition)?(e=N._createAt(n),e.offset=0):(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new T(e,n)):new T(e,n)}_getTransformedByInsertion(t,e,n=!1){if(n&&this.containsPosition(t))return[new T(this.start,t),new T(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{const i=new T(this.start,this.end);return i.start=i.start._getTransformedByInsertion(t,e),i.end=i.end._getTransformedByInsertion(t,e),[i]}}_getTransformedByMove(t,e,n,i=!1){if(this.isCollapsed){const u=this.start._getTransformedByMove(t,e,n);return[new T(u)]}const r=T._createFromPositionAndShift(t,n),s=e._getTransformedByDeletion(t,n);if(this.containsPosition(e)&&!i&&(r.containsPosition(this.start)||r.containsPosition(this.end))){const u=this.start._getTransformedByMove(t,e,n),f=this.end._getTransformedByMove(t,e,n);return[new T(u,f)]}let a;const c=this.getDifference(r);let l=null;const d=this.getIntersection(r);if(c.length==1?l=new T(c[0].start._getTransformedByDeletion(t,n),c[0].end._getTransformedByDeletion(t,n)):c.length==2&&(l=new T(this.start,this.end._getTransformedByDeletion(t,n))),l?a=l._getTransformedByInsertion(s,n,d!==null||i):a=[],d){const u=new T(d.start._getCombined(r.start,s),d.end._getCombined(r.start,s));a.length==2?a.splice(1,0,u):a.push(u)}return a}_getTransformedByDeletion(t,e){let n=this.start._getTransformedByDeletion(t,e),i=this.end._getTransformedByDeletion(t,e);return n==null&&i==null?null:(n==null&&(n=t),i==null&&(i=t),new T(n,i))}static _createFromPositionAndShift(t,e){const n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}static _createIn(t){return new this(N._createAt(t,0),N._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(N._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(t.length===0)throw new b("range-create-from-ranges-empty-array",null);if(t.length==1)return t[0].clone();const e=t[0];t.sort((r,s)=>r.start.isAfter(s.start)?1:-1);const n=t.indexOf(e),i=new this(e.start,e.end);if(n>0)for(let r=n-1;t[r].end.isEqual(i.start);r++)i.start=N._createAt(t[r].start);for(let r=n+1;r<t.length&&t[r].start.isEqual(i.end);r++)i.end=N._createAt(t[r].end);return i}static fromJSON(t,e){return new this(N.fromJSON(t.start,e),N.fromJSON(t.end,e))}}T.prototype.is=function(o){return o==="range"||o==="model:range"};class vu extends ct(){constructor(){super(),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._deferredBindingRemovals=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(t,e)=>{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new b("mapping-model-position-view-parent-not-found",this,{modelPosition:e.modelPosition});e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),i=this._viewToModelMapping.get(n),r=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=N._createAt(i,r)},{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t,e={}){const n=this.toModelElement(t);if(this._elementToMarkerNames.has(t))for(const i of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(i);e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const i=this._elementToMarkerNames.get(t)||new Set;i.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,i)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),n.size==0&&this._markerNameToElements.delete(e));const i=this._elementToMarkerNames.get(t);i&&(i.delete(e),i.size==0&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}flushDeferredBindings(){for(const[t,e]of this._deferredBindingRemovals)t.root==e&&this.unbindViewElement(t);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new T(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new K(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const i of e)if(i.is("attributeElement"))for(const r of i.getElementsWithSameId())n.add(r);else n.add(i);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t){const r=this._toModelOffset(t.parent,t.index,n),s=this._toModelOffset(t,e,t);return r+s}if(t.is("$text"))return e;let i=0;for(let r=0;r<e;r++)i+=this.getModelLength(t.getChild(r));return i}getModelLength(t){if(this._viewToModelLengthCallbacks.get(t.name))return this._viewToModelLengthCallbacks.get(t.name)(t);if(this._viewToModelMapping.has(t))return 1;if(t.is("$text"))return t.data.length;if(t.is("uiElement"))return 0;{let e=0;for(const n of t.getChildren())e+=this.getModelLength(n);return e}}findPositionIn(t,e){let n,i=0,r=0,s=0;if(t.is("$text"))return new O(t,e);for(;r<e;)n=t.getChild(s),i=this.getModelLength(n),r+=i,s++;return r==e?this._moveViewPositionToTextNode(new O(t,s)):this.findPositionIn(n,e-(r-i))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof gt?new O(e,e.data.length):n instanceof gt?new O(n,0):t}}class kx{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(t,e){e=li(e),t instanceof ge&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map),this._consumable.get(t).set(e,!0)}consume(t,e){return e=li(e),t instanceof ge&&(t=this._getSymbolForTextProxy(t)),this.test(t,e)?(this._consumable.get(t).set(e,!1),!0):!1}test(t,e){e=li(e),t instanceof ge&&(t=this._getSymbolForTextProxy(t));const n=this._consumable.get(t);if(n===void 0)return null;const i=n.get(e);return i===void 0?null:i}revert(t,e){e=li(e),t instanceof ge&&(t=this._getSymbolForTextProxy(t));const n=this.test(t,e);return n===!1?(this._consumable.get(t).set(e,!0),!0):n===!0?!1:null}verifyAllConsumed(t){const e=[];for(const[n,i]of this._consumable)for(const[r,s]of i){const a=r.split(":")[0];s&&t==a&&e.push({event:r,item:n.name||n.description})}if(e.length)throw new b("conversion-model-consumable-not-consumed",null,{items:e})}_getSymbolForTextProxy(t){let e=null;const n=this._textProxyRegistry.get(t.startOffset);if(n){const i=n.get(t.endOffset);i&&(e=i.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t)),e}_addSymbolForTextProxy(t){const e=t.startOffset,n=t.endOffset,i=t.parent,r=Symbol("$textProxy:"+t.data);let s,a;return s=this._textProxyRegistry.get(e),s||(s=new Map,this._textProxyRegistry.set(e,s)),a=s.get(n),a||(a=new Map,s.set(n,a)),a.set(i,r),r}}function li(o){const t=o.split(":");return t[0]=="insert"?t[0]:t[0]=="addMarker"||t[0]=="removeMarker"?o:t.length>1?t[0]+":"+t[1]:t[0]}class yu extends ct(){constructor(t){super(),this._conversionApi={dispatcher:this,...t},this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const i=this._createConversionApi(n,t.getRefreshedItems());for(const s of t.getMarkersToRemove())this._convertMarkerRemove(s.name,s.range,i);const r=this._reduceChanges(t.getChanges());for(const s of r)s.type==="insert"?this._convertInsert(T._createFromPositionAndShift(s.position,s.length),i):s.type==="reinsert"?this._convertReinsert(T._createFromPositionAndShift(s.position,s.length),i):s.type==="remove"?this._convertRemove(s.position,s.length,s.name,i):this._convertAttribute(s.range,s.attributeKey,s.attributeOldValue,s.attributeNewValue,i);i.mapper.flushDeferredBindings();for(const s of i.mapper.flushUnboundMarkerNames()){const a=e.get(s).getRange();this._convertMarkerRemove(s,a,i),this._convertMarkerAdd(s,a,i)}for(const s of t.getMarkersToAdd())this._convertMarkerAdd(s.name,s.range,i);i.consumable.verifyAllConsumed("insert")}convert(t,e,n,i={}){const r=this._createConversionApi(n,void 0,i);this._convertInsert(t,r);for(const[s,a]of e)this._convertMarkerAdd(s,a,r);r.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const i=this._createConversionApi(n);this.fire("cleanSelection",{selection:t},i);const r=t.getFirstPosition().root;if(!i.mapper.toViewElement(r))return;const s=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this._addConsumablesForSelection(i.consumable,t,s),this.fire("selection",{selection:t},i),!!t.isCollapsed){for(const a of s)if(i.consumable.test(t,"addMarker:"+a.name)){const c=a.getRange();if(!bx(t.getFirstPosition(),a,i.mapper))continue;const l={item:t,markerName:a.name,markerRange:c};this.fire(`addMarker:${a.name}`,l,i)}for(const a of t.getAttributeKeys())if(i.consumable.test(t,"attribute:"+a)){const c={item:t,range:t.getFirstRange(),attributeKey:a,attributeOldValue:null,attributeNewValue:t.getAttribute(a)};this.fire(`attribute:${a}:$text`,c,i)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,t);for(const i of Array.from(t.getWalker({shallow:!0})).map(xu))this._testAndFire("insert",i,e)}_convertRemove(t,e,n,i){this.fire(`remove:${n}`,{position:t,length:e},i)}_convertAttribute(t,e,n,i,r){this._addConsumablesForRange(r.consumable,t,`attribute:${e}`);for(const s of t){const a={item:s.item,range:T._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:e,attributeOldValue:n,attributeNewValue:i};this._testAndFire(`attribute:${e}`,a,r)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const i of n.map(xu))this._testAndFire("insert",{...i,reconversion:!0},e)}_convertMarkerAdd(t,e,n){if(e.root.rootName=="$graveyard")return;const i=`addMarker:${t}`;if(n.consumable.add(e,i),this.fire(i,{markerName:t,markerRange:e},n),!!n.consumable.consume(e,i)){this._addConsumablesForRange(n.consumable,e,i);for(const r of e.getItems()){if(!n.consumable.test(r,i))continue;const s={item:r,range:T._createOn(r),markerName:t,markerRange:e};this.fire(i,s,n)}}}_convertMarkerRemove(t,e,n){e.root.rootName!="$graveyard"&&this.fire(`removeMarker:${t}`,{markerName:t,markerRange:e},n)}_reduceChanges(t){const e={changes:t};return this.fire("reduceChanges",e),e.changes}_addConsumablesForInsert(t,e){for(const n of e){const i=n.item;if(t.test(i,"insert")===null){t.add(i,"insert");for(const r of i.getAttributeKeys())t.add(i,"attribute:"+r)}}return t}_addConsumablesForRange(t,e,n){for(const i of e.getItems())t.add(i,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const i of n)t.add(e,"addMarker:"+i.name);for(const i of e.getAttributeKeys())t.add(e,"attribute:"+i);return t}_testAndFire(t,e,n){const i=wx(t,e),r=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,s=this._firedEventsMap.get(n),a=s.get(r);if(!a)s.set(r,new Set([i]));else if(!a.has(i))a.add(i);else return;this.fire(i,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:T._createOn(t)};for(const i of n.item.getAttributeKeys())n.attributeKey=i,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(i),this._testAndFire(`attribute:${i}`,n,e)}_createConversionApi(t,e=new Set,n={}){const i={...this._conversionApi,consumable:new kx,writer:t,options:n,convertItem:r=>this._convertInsert(T._createOn(r),i),convertChildren:r=>this._convertInsert(T._createIn(r),i,{doNotAddConsumables:!0}),convertAttributes:r=>this._testAndFireAddAttributes(r,i),canReuseView:r=>!e.has(i.mapper.toModelElement(r))};return this._firedEventsMap.set(i,new Map),i}}function bx(o,t,e){const n=t.getRange(),i=Array.from(o.getAncestors());return i.shift(),i.reverse(),!i.some(s=>{if(n.containsItem(s))return!!e.toViewElement(s).getCustomProperty("addHighlight")})}function wx(o,t){const e=t.item.is("element")?t.item.name:"$text";return`${o}:${e}`}function xu(o){const t=o.item,e=T._createFromPositionAndShift(o.previousPosition,o.length);return{item:t,range:e}}class Jt extends ct(Ve){constructor(...t){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],t.length&&this.setTo(...t)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return this._ranges.length===1?this._ranges[0].isCollapsed:!1}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new T(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)(!t||e.start.isBefore(t.start))&&(t=e);return t?new T(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)(!t||e.end.isAfter(t.end))&&(t=e);return t?new T(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(...t){let[e,n,i]=t;if(typeof n=="object"&&(i=n,n=void 0),e===null)this._setRanges([]);else if(e instanceof Jt)this._setRanges(e.getRanges(),e.isBackward);else if(e&&typeof e.getRanges=="function")this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof T)this._setRanges([e],!!i&&!!i.backward);else if(e instanceof N)this._setRanges([new T(e)]);else if(e instanceof sn){const r=!!i&&!!i.backward;let s;if(n=="in")s=T._createIn(e);else if(n=="on")s=T._createOn(e);else if(n!==void 0)s=new T(N._createAt(e,n));else throw new b("model-selection-setto-required-second-parameter",[this,e]);this._setRanges([s],r)}else if($t(e))this._setRanges(e,i&&!!i.backward);else throw new b("model-selection-setto-not-selectable",[this,e])}_setRanges(t,e=!1){const n=Array.from(t),i=n.some(r=>{if(!(r instanceof T))throw new b("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every(s=>!s.isEqual(r))});n.length===this._ranges.length&&!i||(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}))}setFocus(t,e){if(this.anchor===null)throw new b("model-selection-setfocus-no-ranges",[this,t]);const n=N._createAt(t,e);if(n.compareWith(this.focus)=="same")return;const i=this.anchor;this._ranges.length&&this._popRange(),n.compareWith(i)=="before"?(this._pushRange(new T(n,i)),this._lastRangeBackward=!0):(this._pushRange(new T(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return this.rangeCount!==1?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=Du(e.start,t);Cx(n,e)&&(yield n);for(const r of e.getWalker()){const s=r.item;r.type=="elementEnd"&&Ax(s,t,e)&&(yield s)}const i=Du(e.end,t);_x(i,e)&&(yield i)}}containsEntireContent(t=this.anchor.root){const e=N._createAt(t,0),n=N._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new T(t.start,t.end))}_checkRange(t){for(let e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new b("model-selection-range-intersects",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}_replaceAllRanges(t){this._removeAllRanges();for(const e of t)this._pushRange(e)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}Jt.prototype.is=function(o){return o==="selection"||o==="model:selection"};function Eu(o,t){return t.has(o)?!1:(t.add(o),o.root.document.model.schema.isBlock(o)&&!!o.parent)}function Ax(o,t,e){return Eu(o,t)&&cs(o,e)}function Du(o,t){const n=o.parent.root.document.model.schema,i=o.parent.getAncestors({parentFirst:!0,includeSelf:!0});let r=!1;const s=i.find(a=>r?!1:(r=n.isLimit(a),!r&&Eu(a,t)));return i.forEach(a=>t.add(a)),s}function cs(o,t){const e=vx(o);return e?!t.containsRange(T._createOn(e),!0):!0}function Cx(o,t){return o?t.isCollapsed||o.isEmpty?!0:t.start.isTouching(N._createAt(o,o.maxOffset))?!1:cs(o,t):!1}function _x(o,t){return o?t.isCollapsed||o.isEmpty?!0:t.end.isTouching(N._createAt(o,0))?!1:cs(o,t):!1}function vx(o){const t=o.root.document.model.schema;let e=o.parent;for(;e;){if(t.isBlock(e))return e;e=e.parent}}class Xt extends ct(T){constructor(t,e){super(t,e),yx.call(this)}detach(){this.stopListening()}toRange(){return new T(this.start,this.end)}static fromRange(t){return new Xt(t.start,t.end)}}Xt.prototype.is=function(o){return o==="liveRange"||o==="model:liveRange"||o=="range"||o==="model:range"};function yx(){this.listenTo(this.root.document.model,"applyOperation",(o,t)=>{const e=t[0];e.isDocumentOperation&&xx.call(this,e)},{priority:"low"})}function xx(o){const t=this.getTransformedByOperation(o),e=T._createFromRanges(t),n=!e.isEqual(this),i=Ex(this,o);let r=null;if(n){e.root.rootName=="$graveyard"&&(o.type=="remove"?r=o.sourcePosition:r=o.deletionPosition);const s=this.toRange();this.start=e.start,this.end=e.end,this.fire("change:range",s,{deletionPosition:r})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:r})}function Ex(o,t){switch(t.type){case"insert":return o.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return o.containsPosition(t.sourcePosition)||o.start.isEqual(t.sourcePosition)||o.containsPosition(t.targetPosition);case"split":return o.containsPosition(t.splitPosition)||o.containsPosition(t.insertionPosition)}return!1}const ho="selection:";class me extends ct(Ve){constructor(t){super(),this._selection=new Dx(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(...t){this._selection.setTo(...t)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return ho+t}static _isStoreAttributeKey(t){return t.startsWith(ho)}}me.prototype.is=function(o){return o==="selection"||o=="model:selection"||o=="documentSelection"||o=="model:documentSelection"};class Dx extends Jt{constructor(t){super(),this.markers=new oe({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=t.model,this._document=t,this.listenTo(this._model,"applyOperation",(e,n)=>{const i=n[0];!i.isDocumentOperation||i.type=="marker"||i.type=="rename"||i.type=="noop"||(this._ranges.length==0&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(e,n,i,r)=>{this._updateMarker(n,r)}),this.listenTo(this._document,"change",(e,n)=>{Sx(this._model,n)})}get isCollapsed(){return this._ranges.length===0?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...t){super.setTo(...t),this._updateAttributes(!0),this.updateMarkers()}setFocus(t,e){super.setFocus(t,e),this._updateAttributes(!0),this.updateMarkers()}setAttribute(t,e){if(this._setAttribute(t,e)){const n=[t];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}removeAttribute(t){if(this._removeAttribute(t)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}overrideGravity(){const t=qt();return this._overriddenGravityRegister.add(t),this._overriddenGravityRegister.size===1&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new b("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(t){this._observedMarkers.add(t),this.updateMarkers()}_replaceAllRanges(t){this._validateSelectionRanges(t),super._replaceAllRanges(t)}_popRange(){this._ranges.pop().detach()}_pushRange(t){const e=this._prepareRange(t);e&&this._ranges.push(e)}_validateSelectionRanges(t){for(const e of t)if(!this._document._validateSelectionRange(e))throw new b("document-selection-wrong-position",this,{range:e})}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=Xt.fromRange(t);return e.on("change:range",(n,i,r)=>{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=r.deletionPosition;const s=this._ranges.indexOf(e);this._ranges.splice(s,1),e.detach()}}),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const i of this._model.markers){const r=i.name.split(":",1)[0];if(!this._observedMarkers.has(r))continue;const s=i.getRange();for(const a of this.getRanges())s.containsRange(a,!a.isCollapsed)&&t.push(i)}const n=Array.from(this.markers);for(const i of t)this.markers.has(i)||(this.markers.add(i),e=!0);for(const i of Array.from(this.markers))t.includes(i)||(this.markers.remove(i),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let i=!1;const r=Array.from(this.markers),s=this.markers.has(t);if(!e)s&&(this.markers.remove(t),i=!0);else{let a=!1;for(const c of this.getRanges())if(e.containsRange(c,!c.isCollapsed)){a=!0;break}a&&!s?(this.markers.add(t),i=!0):!a&&s&&(this.markers.remove(t),i=!0)}i&&this.fire("change:marker",{oldMarkers:r,directChange:!1})}_updateAttributes(t){const e=De(this._getSurroundingAttributes()),n=De(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[r,s]of this._attributePriority)s=="low"&&(this._attrs.delete(r),this._attributePriority.delete(r));this._setAttributesTo(e);const i=[];for(const[r,s]of this.getAttributes())(!n.has(r)||n.get(r)!==s)&&i.push(r);for(const[r]of n)this.hasAttribute(r)||i.push(r);i.length>0&&this.fire("change:attribute",{attributeKeys:i,directChange:!1})}_setAttribute(t,e,n=!0){const i=n?"normal":"low";return i=="low"&&this._attributePriority.get(t)=="normal"||super.getAttribute(t)===e?!1:(this._attrs.set(t,e),this._attributePriority.set(t,i),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return n=="low"&&this._attributePriority.get(t)=="normal"||(this._attributePriority.set(t,n),!super.hasAttribute(t))?!1:(this._attrs.delete(t),!0)}_setAttributesTo(t){const e=new Set;for(const[n,i]of this.getAttributes())t.get(n)!==i&&this._removeAttribute(n,!1);for(const[n,i]of t)this._setAttribute(n,i,!1)&&e.add(n);return e}*getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())e.startsWith(ho)&&(yield[e.substr(ho.length),t.getAttribute(e)])}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;if(t.root.rootName=="$graveyard")return null;let n=null;if(this.isCollapsed){const i=t.textNode?t.textNode:t.nodeBefore,r=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=go(i,e)),n||(n=go(r,e)),!this.isGravityOverridden&&!n){let s=i;for(;s&&!n;)s=s.previousSibling,n=go(s,e)}if(!n){let s=r;for(;s&&!n;)s=s.nextSibling,n=go(s,e)}n||(n=this.getStoredAttributes())}else{const i=this.getFirstRange();for(const r of i){if(r.item.is("element")&&e.isObject(r.item)){n=go(r.item,e);break}if(r.type=="text"){n=r.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function go(o,t){if(!o)return null;if(o instanceof ge||o instanceof ft)return o.getAttributes();if(!t.isInline(o))return null;if(!t.isObject(o))return[];const e=[];for(const[n,i]of o.getAttributes())t.checkAttribute("$text",n)&&t.getAttributeProperties(n).copyFromObject!==!1&&e.push([n,i]);return e}function Sx(o,t){const e=o.document.differ;for(const n of e.getChanges()){if(n.type!="insert")continue;const i=n.position.parent;n.length===i.maxOffset&&o.enqueueChange(t,s=>{const a=Array.from(i.getAttributeKeys()).filter(c=>c.startsWith(ho));for(const c of a)s.removeAttribute(c,i)})}}class Su{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class Tx extends Su{elementToElement(t){return this.add($x(t))}elementToStructure(t){return this.add(Kx(t))}attributeToElement(t){return this.add(Zx(t))}attributeToAttribute(t){return this.add(Yx(t))}markerToElement(t){return this.add(Qx(t))}markerToHighlight(t){return this.add(Xx(t))}markerToData(t){return this.add(Jx(t))}}function Tu(){return(o,t,e)=>{if(!e.consumable.consume(t.item,o.name))return;const n=e.writer,i=e.mapper.toViewPosition(t.range.start),r=n.createText(t.item.data);n.insert(i,r)}}function Iu(){return(o,t,e)=>{e.convertAttributes(t.item),!t.reconversion&&t.item.is("element")&&!t.item.isEmpty&&e.convertChildren(t.item)}}function Ix(){return(o,t,e)=>{const n=e.mapper.toViewPosition(t.position),i=t.position.getShiftedBy(t.length),r=e.mapper.toViewPosition(i,{isPhantom:!0}),s=e.writer.createRange(n,r),a=e.writer.remove(s.getTrimmed());for(const c of e.writer.createRangeIn(a).getItems())e.mapper.unbindViewElement(c,{defer:!0})}}function Mu(o,t){const e=o.createAttributeElement("span",t.attributes);return t.classes&&e._addClass(t.classes),typeof t.priority=="number"&&(e._priority=t.priority),e._id=t.id,e}function Mx(){return(o,t,e)=>{const n=t.selection;if(n.isCollapsed||!e.consumable.consume(n,"selection"))return;const i=[];for(const r of n.getRanges())i.push(e.mapper.toViewRange(r));e.writer.setSelection(i,{backward:n.isBackward})}}function Bx(){return(o,t,e)=>{const n=t.selection;if(!n.isCollapsed||!e.consumable.consume(n,"selection"))return;const i=e.writer,r=n.getFirstPosition(),s=e.mapper.toViewPosition(r),a=i.breakAttributes(s);i.setSelection(a)}}function Nx(){return(o,t,e)=>{const n=e.writer,i=n.document.selection;for(const r of i.getRanges())r.isCollapsed&&r.end.parent.isAttached()&&e.writer.mergeAttributes(r.start);n.setSelection(null)}}function zx(o){return(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const i=o(e.attributeOldValue,n,e),r=o(e.attributeNewValue,n,e);if(!i&&!r)return;n.consumable.consume(e.item,t.name);const s=n.writer,a=s.document.selection;if(e.item instanceof Jt||e.item instanceof me)s.wrap(a.getFirstRange(),r);else{let c=n.mapper.toViewRange(e.range);e.attributeOldValue!==null&&i&&(c=s.unwrap(c,i)),e.attributeNewValue!==null&&r&&s.wrap(c,r)}}}function Px(o,t=s2){return(e,n,i)=>{if(!t(n.item,i.consumable,{preflight:!0}))return;const r=o(n.item,i,n);if(!r)return;t(n.item,i.consumable);const s=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(n.item,r),i.writer.insert(s,r),i.convertAttributes(n.item),Ru(r,n.item.getChildren(),i,{reconversion:n.reconversion})}}function Lx(o,t){return(e,n,i)=>{if(!t(n.item,i.consumable,{preflight:!0}))return;const r=new Map;i.writer._registerSlotFactory(n2(n.item,r,i));const s=o(n.item,i,n);if(i.writer._clearSlotFactory(),!s)return;o2(n.item,r,i),t(n.item,i.consumable);const a=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(n.item,s),i.writer.insert(a,s),i.convertAttributes(n.item),i2(s,r,i,{reconversion:n.reconversion})}}function Ox(o){return(t,e,n)=>{e.isOpening=!0;const i=o(e,n);e.isOpening=!1;const r=o(e,n);if(!i||!r)return;const s=e.markerRange;if(s.isCollapsed&&!n.consumable.consume(s,t.name))return;for(const l of s)if(!n.consumable.consume(l.item,t.name))return;const a=n.mapper,c=n.writer;c.insert(a.toViewPosition(s.start),i),n.mapper.bindElementToMarker(i,e.markerName),s.isCollapsed||(c.insert(a.toViewPosition(s.end),r),n.mapper.bindElementToMarker(r,e.markerName)),t.stop()}}function Rx(){return(o,t,e)=>{const n=e.mapper.markerNameToElements(t.markerName);if(n){for(const i of n)e.mapper.unbindElementFromMarkerName(i,t.markerName),e.writer.clear(e.writer.createRangeOn(i),i);e.writer.clearClonedElementsGroup(t.markerName),o.stop()}}}function jx(o){return(t,e,n)=>{const i=o(e.markerName,n);if(!i)return;const r=e.markerRange;n.consumable.consume(r,t.name)&&(Bu(r,!1,n,e,i),Bu(r,!0,n,e,i),t.stop())}}function Bu(o,t,e,n,i){const r=t?o.start:o.end,s=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(s||a){let l,d;t&&s||!t&&!a?(l=s,d=!0):(l=a,d=!1);const u=e.mapper.toViewElement(l);if(u){Fx(u,t,d,e,n,i);return}}const c=e.mapper.toViewPosition(r);Vx(c,t,e,n,i)}function Fx(o,t,e,n,i,r){const s=`data-${r.group}-${t?"start":"end"}-${e?"before":"after"}`,a=o.hasAttribute(s)?o.getAttribute(s).split(","):[];a.unshift(r.name),n.writer.setAttribute(s,a.join(","),o),n.mapper.bindElementToMarker(o,i.markerName)}function Vx(o,t,e,n,i){const r=`${i.group}-${t?"start":"end"}`,s=i.name?{name:i.name}:null,a=e.writer.createUIElement(r,s);e.writer.insert(o,a),e.mapper.bindElementToMarker(a,n.markerName)}function Hx(o){return(t,e,n)=>{const i=o(e.markerName,n);if(!i)return;const r=n.mapper.markerNameToElements(e.markerName);if(!r)return;for(const a of r)n.mapper.unbindElementFromMarkerName(a,e.markerName),a.is("containerElement")?(s(`data-${i.group}-start-before`,a),s(`data-${i.group}-start-after`,a),s(`data-${i.group}-end-before`,a),s(`data-${i.group}-end-after`,a)):n.writer.clear(n.writer.createRangeOn(a),a);n.writer.clearClonedElementsGroup(e.markerName),t.stop();function s(a,c){if(c.hasAttribute(a)){const l=new Set(c.getAttribute(a).split(","));l.delete(i.name),l.size==0?n.writer.removeAttribute(a,c):n.writer.setAttribute(a,Array.from(l).join(","),c)}}}}function Ux(o){return(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const i=o(e.attributeOldValue,n,e),r=o(e.attributeNewValue,n,e);if(!i&&!r)return;n.consumable.consume(e.item,t.name);const s=n.mapper.toViewElement(e.item),a=n.writer;if(!s)throw new b("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(e.attributeOldValue!==null&&i)if(i.key=="class"){const c=Tt(i.value);for(const l of c)a.removeClass(l,s)}else if(i.key=="style"){const c=Object.keys(i.value);for(const l of c)a.removeStyle(l,s)}else a.removeAttribute(i.key,s);if(e.attributeNewValue!==null&&r)if(r.key=="class"){const c=Tt(r.value);for(const l of c)a.addClass(l,s)}else if(r.key=="style"){const c=Object.keys(r.value);for(const l of c)a.setStyle(l,r.value[l],s)}else a.setAttribute(r.key,r.value,s)}}function qx(o){return(t,e,n)=>{if(!e.item||!(e.item instanceof Jt||e.item instanceof me)&&!e.item.is("$textProxy"))return;const i=ls(o,e,n);if(!i||!n.consumable.consume(e.item,t.name))return;const r=n.writer,s=Mu(r,i),a=r.document.selection;if(e.item instanceof Jt||e.item instanceof me)r.wrap(a.getFirstRange(),s);else{const c=n.mapper.toViewRange(e.range),l=r.wrap(c,s);for(const d of l.getItems())if(d.is("attributeElement")&&d.isSimilar(s)){n.mapper.bindElementToMarker(d,e.markerName);break}}}}function Wx(o){return(t,e,n)=>{if(!e.item||!(e.item instanceof lt))return;const i=ls(o,e,n);if(!i||!n.consumable.test(e.item,t.name))return;const r=n.mapper.toViewElement(e.item);if(r&&r.getCustomProperty("addHighlight")){n.consumable.consume(e.item,t.name);for(const a of T._createIn(e.item))n.consumable.consume(a.item,t.name);r.getCustomProperty("addHighlight")(r,i,n.writer),n.mapper.bindElementToMarker(r,e.markerName)}}}function Gx(o){return(t,e,n)=>{if(e.markerRange.isCollapsed)return;const i=ls(o,e,n);if(!i)return;const r=Mu(n.writer,i),s=n.mapper.markerNameToElements(e.markerName);if(s){for(const a of s)n.mapper.unbindElementFromMarkerName(a,e.markerName),a.is("attributeElement")?n.writer.unwrap(n.writer.createRangeOn(a),r):a.getCustomProperty("removeHighlight")(a,i.id,n.writer);n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}}function $x(o){const t=Nu(o.model),e=fo(o.view,"container");return t.attributes.length&&(t.children=!0),n=>{n.on(`insert:${t.name}`,Px(e,Ou(t)),{priority:o.converterPriority||"normal"}),(t.children||t.attributes.length)&&n.on("reduceChanges",Lu(t),{priority:"low"})}}function Kx(o){const t=Nu(o.model),e=fo(o.view,"container");return t.children=!0,n=>{if(n._conversionApi.schema.checkChild(t.name,"$text"))throw new b("conversion-element-to-structure-disallowed-text",n,{elementName:t.name});n.on(`insert:${t.name}`,Lx(e,Ou(t)),{priority:o.converterPriority||"normal"}),n.on("reduceChanges",Lu(t),{priority:"low"})}}function Zx(o){o=Fe(o);let t=o.model;typeof t=="string"&&(t={key:t});let e=`attribute:${t.key}`;if(t.name&&(e+=":"+t.name),t.values)for(const i of t.values)o.view[i]=fo(o.view[i],"attribute");else o.view=fo(o.view,"attribute");const n=zu(o);return i=>{i.on(e,zx(n),{priority:o.converterPriority||"normal"})}}function Yx(o){o=Fe(o);let t=o.model;typeof t=="string"&&(t={key:t});let e=`attribute:${t.key}`;if(t.name&&(e+=":"+t.name),t.values)for(const i of t.values)o.view[i]=Pu(o.view[i]);else o.view=Pu(o.view);const n=zu(o);return i=>{i.on(e,Ux(n),{priority:o.converterPriority||"normal"})}}function Qx(o){const t=fo(o.view,"ui");return e=>{e.on(`addMarker:${o.model}`,Ox(t),{priority:o.converterPriority||"normal"}),e.on(`removeMarker:${o.model}`,Rx(),{priority:o.converterPriority||"normal"})}}function Jx(o){o=Fe(o);const t=o.model;let e=o.view;return e||(e=n=>({group:t,name:n.substr(o.model.length+1)})),n=>{n.on(`addMarker:${t}`,jx(e),{priority:o.converterPriority||"normal"}),n.on(`removeMarker:${t}`,Hx(e),{priority:o.converterPriority||"normal"})}}function Xx(o){return t=>{t.on(`addMarker:${o.model}`,qx(o.view),{priority:o.converterPriority||"normal"}),t.on(`addMarker:${o.model}`,Wx(o.view),{priority:o.converterPriority||"normal"}),t.on(`removeMarker:${o.model}`,Gx(o.view),{priority:o.converterPriority||"normal"})}}function Nu(o){return typeof o=="string"&&(o={name:o}),{name:o.name,attributes:o.attributes?Tt(o.attributes):[],children:!!o.children}}function fo(o,t){return typeof o=="function"?o:(e,n)=>t2(o,n,t)}function t2(o,t,e){typeof o=="string"&&(o={name:o});let n;const i=t.writer,r=Object.assign({},o.attributes);if(e=="container")n=i.createContainerElement(o.name,r);else if(e=="attribute"){const s={priority:o.priority||on.DEFAULT_PRIORITY};n=i.createAttributeElement(o.name,r,s)}else n=i.createUIElement(o.name,r);if(o.styles){const s=Object.keys(o.styles);for(const a of s)i.setStyle(a,o.styles[a],n)}if(o.classes){const s=o.classes;if(typeof s=="string")i.addClass(s,n);else for(const a of s)i.addClass(a,n)}return n}function zu(o){return o.model.values?(t,e,n)=>{const i=o.view[t];return i?i(t,e,n):null}:o.view}function Pu(o){return typeof o=="string"?t=>({key:o,value:t}):typeof o=="object"?o.value?()=>o:t=>({key:o.key,value:t}):o}function ls(o,t,e){const n=typeof o=="function"?o(t,e):o;return n?(n.priority||(n.priority=10),n.id||(n.id=t.markerName),n):null}function e2(o){return(t,e)=>{if(!t.is("element",o.name))return!1;if(e.type=="attribute"){if(o.attributes.includes(e.attributeKey))return!0}else if(o.children)return!0;return!1}}function Lu(o){const t=e2(o);return(e,n)=>{const i=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const r of n.changes){const s=r.type=="attribute"?r.range.start.nodeAfter:r.position.parent;if(!s||!t(s,r)){i.push(r);continue}if(!n.reconvertedElements.has(s)){n.reconvertedElements.add(s);const a=N._createBefore(s);let c=i.length;for(let l=i.length-1;l>=0;l--){const d=i[l],f=(d.type=="attribute"?d.range.start:d.position).compareWith(a);if(f=="before"||d.type=="remove"&&f=="same")break;c=l}i.splice(c,0,{type:"remove",name:s.name,position:a,length:1},{type:"reinsert",name:s.name,position:a,length:1})}}n.changes=i}}function Ou(o){return(t,e,n={})=>{const i=["insert"];for(const r of o.attributes)t.hasAttribute(r)&&i.push(`attribute:${r}`);return i.every(r=>e.test(t,r))?(n.preflight||i.forEach(r=>e.consume(t,r)),!0):!1}}function n2(o,t,e){return(n,i)=>{const r=n.createContainerElement("$slot");let s=null;if(i==="children")s=Array.from(o.getChildren());else if(typeof i=="function")s=Array.from(o.getChildren()).filter(a=>i(a));else throw new b("conversion-slot-mode-unknown",e.dispatcher,{modeOrFilter:i});return t.set(r,s),r}}function o2(o,t,e){const n=Array.from(t.values()).flat(),i=new Set(n);if(i.size!=n.length)throw new b("conversion-slot-filter-overlap",e.dispatcher,{element:o});if(i.size!=o.childCount)throw new b("conversion-slot-filter-incomplete",e.dispatcher,{element:o})}function i2(o,t,e,n){e.mapper.on("modelToViewPosition",s,{priority:"highest"});let i=null,r=null;for([i,r]of t)Ru(o,r,e,n),e.writer.move(e.writer.createRangeIn(i),e.writer.createPositionBefore(i)),e.writer.remove(i);e.mapper.off("modelToViewPosition",s);function s(a,c){const l=c.modelPosition.nodeAfter,d=r.indexOf(l);d<0||(c.viewPosition=c.mapper.findPositionIn(i,d))}}function Ru(o,t,e,n){for(const i of t)r2(o.root,i,e,n)||e.convertItem(i)}function r2(o,t,e,n){const{writer:i,mapper:r}=e;if(!n.reconversion)return!1;const s=r.toViewElement(t);return!s||s.root==o||!e.canReuseView(s)?!1:(i.move(i.createRangeOn(s),r.toViewPosition(N._createBefore(t))),!0)}function s2(o,t,{preflight:e}={}){return e?t.test(o,"insert"):t.consume(o,"insert")}function ju(o){const{schema:t,document:e}=o.model;for(const n of e.getRoots())if(n.isEmpty&&!t.checkChild(n,"$text")&&t.checkChild(n,"paragraph"))return o.insertElement("paragraph",n),!0;return!1}function Fu(o,t,e){const n=e.createContext(o);return!(!e.checkChild(n,"paragraph")||!e.checkChild(n.push("paragraph"),t))}function Vu(o,t){const e=t.createElement("paragraph");return t.insert(e,o),t.createPositionAt(e,0)}class a2 extends Su{elementToElement(t){return this.add(Uu(t))}elementToAttribute(t){return this.add(d2(t))}attributeToAttribute(t){return this.add(u2(t))}elementToMarker(t){return this.add(h2(t))}dataToMarker(t){return this.add(g2(t))}}function Hu(){return(o,t,e)=>{if(!t.modelRange&&e.consumable.consume(t.viewItem,{name:!0})){const{modelRange:n,modelCursor:i}=e.convertChildren(t.viewItem,t.modelCursor);t.modelRange=n,t.modelCursor=i}}}function c2(){return(o,t,{schema:e,consumable:n,writer:i})=>{let r=t.modelCursor;if(!n.test(t.viewItem))return;if(!e.checkChild(r,"$text")){if(!Fu(r,"$text",e)||t.viewItem.data.trim().length==0)return;const a=r.nodeBefore;r=Vu(r,i),a&&a.is("element","$marker")&&(i.move(i.createRangeOn(a),r),r=i.createPositionAfter(a))}n.consume(t.viewItem);const s=i.createText(t.viewItem.data);i.insert(s,r),t.modelRange=i.createRange(r,r.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}function l2(o,t){return(e,n)=>{const i=n.newSelection,r=[];for(const a of i.getRanges())r.push(t.toModelRange(a));const s=o.createSelection(r,{backward:i.isBackward});s.isEqual(o.document.selection)||o.change(a=>{a.setSelection(s)})}}function Uu(o){o=Fe(o);const t=us(o),e=ds(o.view),n=e?`element:${e}`:"element";return i=>{i.on(n,t,{priority:o.converterPriority||"normal"})}}function d2(o){o=Fe(o),qu(o);const t=Wu(o,!1),e=ds(o.view),n=e?`element:${e}`:"element";return i=>{i.on(n,t,{priority:o.converterPriority||"low"})}}function u2(o){o=Fe(o);let t=null;(typeof o.view=="string"||o.view.key)&&(t=p2(o)),qu(o,t);const e=Wu(o,!0);return n=>{n.on("element",e,{priority:o.converterPriority||"low"})}}function h2(o){const t=w2(o.model);return Uu({...o,model:t})}function g2(o){o=Fe(o),o.model||(o.model=i=>i?o.view+":"+i:o.view);const t={view:o.view,model:o.model},e=us(Gu(t,"start")),n=us(Gu(t,"end"));return i=>{i.on(`element:${o.view}-start`,e,{priority:o.converterPriority||"normal"}),i.on(`element:${o.view}-end`,n,{priority:o.converterPriority||"normal"});const r=Le.low,s=Le.highest,a=Le.get(o.converterPriority)/s;i.on("element",f2(t),{priority:r+a})}}function f2(o){return(t,e,n)=>{const i=`data-${o.view}`;if(!n.consumable.test(e.viewItem,{attributes:i+"-end-after"})&&!n.consumable.test(e.viewItem,{attributes:i+"-start-after"})&&!n.consumable.test(e.viewItem,{attributes:i+"-end-before"})&&!n.consumable.test(e.viewItem,{attributes:i+"-start-before"}))return;e.modelRange||Object.assign(e,n.convertChildren(e.viewItem,e.modelCursor)),n.consumable.consume(e.viewItem,{attributes:i+"-end-after"})&&r(e.modelRange.end,e.viewItem.getAttribute(i+"-end-after").split(",")),n.consumable.consume(e.viewItem,{attributes:i+"-start-after"})&&r(e.modelRange.end,e.viewItem.getAttribute(i+"-start-after").split(",")),n.consumable.consume(e.viewItem,{attributes:i+"-end-before"})&&r(e.modelRange.start,e.viewItem.getAttribute(i+"-end-before").split(",")),n.consumable.consume(e.viewItem,{attributes:i+"-start-before"})&&r(e.modelRange.start,e.viewItem.getAttribute(i+"-start-before").split(","));function r(s,a){for(const c of a){const l=o.model(c,n),d=n.writer.createElement("$marker",{"data-name":l});n.writer.insert(d,s),e.modelCursor.isEqual(s)?e.modelCursor=e.modelCursor.getShiftedBy(1):e.modelCursor=e.modelCursor._getTransformedByInsertion(s,1),e.modelRange=e.modelRange._getTransformedByInsertion(s,1)[0]}}}}function ds(o){return typeof o=="string"?o:typeof o=="object"&&typeof o.name=="string"?o.name:null}function us(o){const t=new de(o.view);return(e,n,i)=>{const r=t.match(n.viewItem);if(!r)return;const s=r.match;if(s.name=!0,!i.consumable.test(n.viewItem,s))return;const a=m2(o.model,n.viewItem,i);a&&i.safeInsert(a,n.modelCursor)&&(i.consumable.consume(n.viewItem,s),i.convertChildren(n.viewItem,a),i.updateConversionResult(a,n))}}function m2(o,t,e){return o instanceof Function?o(t,e):e.writer.createElement(o)}function p2(o){typeof o.view=="string"&&(o.view={key:o.view});const t=o.view.key;let e;if(t=="class"||t=="style")e={[t=="class"?"classes":"styles"]:o.view.value};else{const n=typeof o.view.value>"u"?/[\s\S]*/:o.view.value;e={attributes:{[t]:n}}}return o.view.name&&(e.name=o.view.name),o.view=e,t}function qu(o,t=null){const e=t===null?!0:r=>r.getAttribute(t),n=typeof o.model!="object"?o.model:o.model.key,i=typeof o.model!="object"||typeof o.model.value>"u"?e:o.model.value;o.model={key:n,value:i}}function Wu(o,t){const e=new de(o.view);return(n,i,r)=>{if(!i.modelRange&&t)return;const s=e.match(i.viewItem);if(!s||(k2(o.view,i.viewItem)?s.match.name=!0:delete s.match.name,!r.consumable.test(i.viewItem,s.match)))return;const a=o.model.key,c=typeof o.model.value=="function"?o.model.value(i.viewItem,r):o.model.value;if(c===null)return;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor)),b2(i.modelRange,{key:a,value:c},t,r)&&(r.consumable.test(i.viewItem,{name:!0})&&(s.match.name=!0),r.consumable.consume(i.viewItem,s.match))}}function k2(o,t){const e=typeof o=="function"?o(t):o;return typeof e=="object"&&!ds(e)?!1:!e.classes&&!e.attributes&&!e.styles}function b2(o,t,e,n){let i=!1;for(const r of Array.from(o.getItems({shallow:e})))n.schema.checkAttribute(r,t.key)&&(i=!0,!r.hasAttribute(t.key)&&n.writer.setAttribute(t.key,t.value,r));return i}function w2(o){return(t,e)=>{const n=typeof o=="string"?o:o(t,e);return e.writer.createElement("$marker",{"data-name":n})}}function Gu(o,t){const e=(n,i)=>{const r=n.getAttribute("name"),s=o.model(r,i);return i.writer.createElement("$marker",{"data-name":s})};return{view:`${o.view}-${t}`,model:e}}function A2(o){o.document.registerPostFixer(t=>C2(t,o))}function C2(o,t){const e=t.document.selection,n=t.schema,i=[];let r=!1;for(const s of e.getRanges()){const a=$u(s,n);a&&!a.isEqual(s)?(i.push(a),r=!0):i.push(s)}return r&&o.setSelection(x2(i),{backward:e.isBackward}),!1}function $u(o,t){return o.isCollapsed?_2(o,t):v2(o,t)}function _2(o,t){const e=o.start,n=t.getNearestSelectionRange(e);if(!n){const r=e.getAncestors().reverse().find(s=>t.isObject(s));return r?T._createOn(r):null}if(!n.isCollapsed)return n;const i=n.start;return e.isEqual(i)?null:new T(i)}function v2(o,t){const{start:e,end:n}=o,i=t.checkChild(e,"$text"),r=t.checkChild(n,"$text"),s=t.getLimitElement(e),a=t.getLimitElement(n);if(s===a){if(i&&r)return null;if(y2(e,n,t)){const u=e.nodeAfter&&t.isSelectable(e.nodeAfter)?null:t.getNearestSelectionRange(e,"forward"),p=n.nodeBefore&&t.isSelectable(n.nodeBefore)?null:t.getNearestSelectionRange(n,"backward"),w=u?u.start:e,S=p?p.end:n;return new T(w,S)}}const c=s&&!s.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const d=e.nodeAfter&&n.nodeBefore&&e.nodeAfter.parent===n.nodeBefore.parent,u=c&&(!d||!Zu(e.nodeAfter,t)),f=l&&(!d||!Zu(n.nodeBefore,t));let p=e,w=n;return u&&(p=N._createBefore(Ku(s,t))),f&&(w=N._createAfter(Ku(a,t))),new T(p,w)}return null}function Ku(o,t){let e=o,n=e;for(;t.isLimit(n)&&n.parent;)e=n,n=n.parent;return e}function y2(o,t,e){const n=o.nodeAfter&&!e.isLimit(o.nodeAfter)||e.checkChild(o,"$text"),i=t.nodeBefore&&!e.isLimit(t.nodeBefore)||e.checkChild(t,"$text");return n||i}function x2(o){const t=[...o],e=new Set;let n=1;for(;n<t.length;){const r=t[n],s=t.slice(0,n);for(const[a,c]of s.entries())if(!e.has(a)){if(r.isEqual(c))e.add(a);else if(r.isIntersecting(c)){e.add(a),e.add(n);const l=r.getJoined(c);t.push(l)}}n++}return t.filter((r,s)=>!e.has(s))}function Zu(o,t){return o&&t.isSelectable(o)}class E2 extends rt(){constructor(t,e){super(),this.model=t,this.view=new fx(e),this.mapper=new vu,this.downcastDispatcher=new yu({mapper:this.mapper,schema:t.schema});const n=this.model.document,i=n.selection,r=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(n,"change",()=>{this.view.change(s=>{this.downcastDispatcher.convertChanges(n.differ,r,s),this.downcastDispatcher.convertSelection(i,r,s)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",l2(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",D2(this.mapper,this.model.schema,this.view),{priority:"high"}),this.downcastDispatcher.on("insert:$text",Tu(),{priority:"lowest"}),this.downcastDispatcher.on("insert",Iu(),{priority:"lowest"}),this.downcastDispatcher.on("remove",Ix(),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",Nx()),this.downcastDispatcher.on("selection",Mx(),{priority:"low"}),this.downcastDispatcher.on("selection",Bx(),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(s=>{if(s.rootName=="$graveyard")return null;const a=new Hd(this.view.document,s.name);return a.rootName=s.rootName,this.mapper.bindElements(s,a),a})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(t){const e=typeof t=="string"?t:t.name,n=this.model.markers.get(e);if(!n)throw new b("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change(()=>{this.model.markers._refresh(n)})}reconvertItem(t){this.model.change(()=>{this.model.document.differ._refreshItem(t)})}}function D2(o,t,e){return(n,i)=>{if(!(e.document.isComposing&&!g.isAndroid))for(let r=0;r<i.targetRanges.length;r++){const s=i.targetRanges[r],a=o.toModelRange(s),c=$u(a,t);!c||c.isEqual(a)||(i.targetRanges[r]=o.toViewRange(c))}}}class mo{constructor(){this._consumables=new Map}add(t,e){let n;if(t.is("$text")||t.is("documentFragment")){this._consumables.set(t,!0);return}this._consumables.has(t)?n=this._consumables.get(t):(n=new S2(t),this._consumables.set(t,n)),n.add(e)}test(t,e){const n=this._consumables.get(t);return n===void 0?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return this.test(t,e)?(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0):!1}revert(t,e){const n=this._consumables.get(t);n!==void 0&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const s of n)s=="style"||s=="class"||e.attributes.push(s);const i=t.getClassNames();for(const s of i)e.classes.push(s);const r=t.getStyleNames();for(const s of r)e.styles.push(s);return e}static createFrom(t,e){if(e||(e=new mo),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,mo.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=mo.createFrom(n,e);return e}}const di=["attributes","classes","styles"];class S2{constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e of di)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of di)if(e in t){const n=this._test(e,t[e]);if(n!==!0)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e of di)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of di)e in t&&this._revert(e,t[e])}_add(t,e){const n=Vt(e)?e:[e],i=this._consumables[t];for(const r of n){if(t==="attributes"&&(r==="class"||r==="style"))throw new b("viewconsumable-invalid-attribute",this);if(i.set(r,!0),t==="styles")for(const s of this.element.document.stylesProcessor.getRelatedStyles(r))i.set(s,!0)}}_test(t,e){const n=Vt(e)?e:[e],i=this._consumables[t];for(const r of n)if(t==="attributes"&&(r==="class"||r==="style")){const s=r=="class"?"classes":"styles",a=this._test(s,[...this._consumables[s].keys()]);if(a!==!0)return a}else{const s=i.get(r);if(s===void 0)return null;if(!s)return!1}return!0}_consume(t,e){const n=Vt(e)?e:[e],i=this._consumables[t];for(const r of n)if(t==="attributes"&&(r==="class"||r==="style")){const s=r=="class"?"classes":"styles";this._consume(s,[...this._consumables[s].keys()])}else if(i.set(r,!1),t=="styles")for(const s of this.element.document.stylesProcessor.getRelatedStyles(r))i.set(s,!1)}_revert(t,e){const n=Vt(e)?e:[e],i=this._consumables[t];for(const r of n)if(t==="attributes"&&(r==="class"||r==="style")){const s=r=="class"?"classes":"styles";this._revert(s,[...this._consumables[s].keys()])}else i.get(r)===!1&&i.set(r,!0)}}class T2 extends rt(){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(t,e)=>{e[0]=new cn(e[0])},{priority:"highest"}),this.on("checkChild",(t,e)=>{e[0]=new cn(e[0]),e[1]=this.getDefinition(e[1])},{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new b("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new b("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return typeof t=="string"?e=t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?e="$text":e=t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!!(e&&e.isBlock)}isLimit(t){const e=this.getDefinition(t);return e?!!(e.isLimit||e.isObject):!1}isObject(t){const e=this.getDefinition(t);return e?!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent):!1}isInline(t){const e=this.getDefinition(t);return!!(e&&e.isInline)}isSelectable(t){const e=this.getDefinition(t);return e?!!(e.isSelectable||e.isObject):!1}isContent(t){const e=this.getDefinition(t);return e?!!(e.isContent||e.isObject):!1}checkChild(t,e){return e?this._checkContextMatch(e,t):!1}checkAttribute(t,e){const n=this.getDefinition(t.last);return n?n.allowAttributes.includes(e):!1}checkMerge(t,e){if(t instanceof N){const n=t.nodeBefore,i=t.nodeAfter;if(!(n instanceof lt))throw new b("schema-check-merge-no-element-before",this);if(!(i instanceof lt))throw new b("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",(e,[n,i])=>{if(!i)return;const r=t(n,i);typeof r=="boolean"&&(e.stop(),e.return=r)},{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",(e,[n,i])=>{const r=t(n,i);typeof r=="boolean"&&(e.stop(),e.return=r)},{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;for(t instanceof N?e=t.parent:e=(t instanceof T?[t]:Array.from(t.getRanges())).reduce((i,r)=>{const s=r.getCommonAncestor();return i?i.getCommonAncestor(s,{includeSelf:!0}):s},null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const i=[...t.getFirstPosition().getAncestors(),new ft("",t.getAttributes())];return this.checkAttribute(i,e)}else{const n=t.getRanges();for(const i of n)for(const r of i)if(this.checkAttribute(r.item,e))return!0}return!1}*getValidRanges(t,e){t=W2(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if(t.root.rootName=="$graveyard")return null;if(this.checkChild(t,"$text"))return new T(t);let n,i;const r=t.getAncestors().reverse().find(s=>this.isLimit(s))||t.root;(e=="both"||e=="backward")&&(n=new fe({boundaries:T._createIn(r),startPosition:t,direction:"backward"})),(e=="both"||e=="forward")&&(i=new fe({boundaries:T._createIn(r),startPosition:t}));for(const s of q2(n,i)){const a=s.walker==n?"elementEnd":"elementStart",c=s.value;if(c.type==a&&this.isObject(c.item))return T._createOn(c.item);if(this.checkChild(c.nextPosition,"$text"))return new T(c.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(t,e,n){const i=n.model;for(const[r,s]of Object.entries(e))i.schema.checkAttribute(t,r)&&n.setAttribute(r,s,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))Yu(this,n,e);else{const r=T._createIn(n).getPositions();for(const s of r){const a=s.nodeBefore||s.parent;Yu(this,a,e)}}}getAttributesWithProperty(t,e,n){const i={};for(const[r,s]of t.getAttributes()){const a=this.getAttributeProperties(r);a[e]!==void 0&&(n===void 0||n===a[e])&&(i[r]=s)}return i}createContext(t){return new cn(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const i of n)t[i]=I2(e[i],i);for(const i of n)M2(t,i);for(const i of n)B2(t,i);for(const i of n)N2(t,i);for(const i of n)z2(t,i),P2(t,i);for(const i of n)L2(t,i),O2(t,i),R2(t,i);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const i=e.getItem(n);if(t.allowIn.includes(i.name)){if(n==0)return!0;{const r=this.getDefinition(i);return this._checkContextMatch(r,e,n-1)}}else return!1}*_getValidRangesForRange(t,e){let n=t.start,i=t.start;for(const r of t.getItems({shallow:!0}))r.is("element")&&(yield*this._getValidRangesForRange(T._createIn(r),e)),this.checkAttribute(r,e)||(n.isEqual(i)||(yield new T(n,i)),n=N._createAfter(r)),i=N._createAfter(r);n.isEqual(i)||(yield new T(n,i))}}class cn{constructor(t){if(t instanceof cn)return t;let e;typeof t=="string"?e=[t]:Array.isArray(t)?e=t:e=t.getAncestors({includeSelf:!0}),this._items=e.map(U2)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new cn([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map(t=>t.name)}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function I2(o,t){const e={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return j2(o,e),ln(o,e,"allowIn"),ln(o,e,"allowContentOf"),ln(o,e,"allowWhere"),ln(o,e,"allowAttributes"),ln(o,e,"allowAttributesOf"),ln(o,e,"allowChildren"),ln(o,e,"inheritTypesFrom"),F2(o,e),e}function M2(o,t){const e=o[t];for(const n of e.allowChildren){const i=o[n];i&&i.allowIn.push(t)}e.allowChildren.length=0}function B2(o,t){for(const e of o[t].allowContentOf)o[e]&&V2(o,e).forEach(i=>{i.allowIn.push(t)});delete o[t].allowContentOf}function N2(o,t){for(const e of o[t].allowWhere){const n=o[e];if(n){const i=n.allowIn;o[t].allowIn.push(...i)}}delete o[t].allowWhere}function z2(o,t){for(const e of o[t].allowAttributesOf){const n=o[e];if(n){const i=n.allowAttributes;o[t].allowAttributes.push(...i)}}delete o[t].allowAttributesOf}function P2(o,t){const e=o[t];for(const n of e.inheritTypesFrom){const i=o[n];if(i){const r=Object.keys(i).filter(s=>s.startsWith("is"));for(const s of r)s in e||(e[s]=i[s])}}delete e.inheritTypesFrom}function L2(o,t){const e=o[t],n=e.allowIn.filter(i=>o[i]);e.allowIn=Array.from(new Set(n))}function O2(o,t){const e=o[t];for(const n of e.allowIn)o[n].allowChildren.push(t)}function R2(o,t){const e=o[t];e.allowAttributes=Array.from(new Set(e.allowAttributes))}function j2(o,t){for(const e of o){const n=Object.keys(e).filter(i=>i.startsWith("is"));for(const i of n)t[i]=!!e[i]}}function ln(o,t,e){for(const n of o){const i=n[e];typeof i=="string"?t[e].push(i):Array.isArray(i)&&t[e].push(...i)}}function F2(o,t){for(const e of o){const n=e.inheritAllFrom;n&&(t.allowContentOf.push(n),t.allowWhere.push(n),t.allowAttributesOf.push(n),t.inheritTypesFrom.push(n))}}function V2(o,t){const e=o[t];return H2(o).filter(n=>n.allowIn.includes(e.name))}function H2(o){return Object.keys(o).map(t=>o[t])}function U2(o){return typeof o=="string"||o.is("documentFragment")?{name:typeof o=="string"?o:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:o.is("element")?o.name:"$text",*getAttributeKeys(){yield*o.getAttributeKeys()},getAttribute(t){return o.getAttribute(t)}}}function*q2(o,t){let e=!1;for(;!e;){if(e=!0,o){const n=o.next();n.done||(e=!1,yield{walker:o,value:n.value})}if(t){const n=t.next();n.done||(e=!1,yield{walker:t,value:n.value})}}}function*W2(o){for(const t of o)yield*t.getMinimalFlatRanges()}function Yu(o,t,e){for(const n of t.getAttributeKeys())o.checkAttribute(t,n)||e.removeAttribute(n,t)}class G2 extends ct(){constructor(t){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...t,consumable:null,writer:null,store:null,convertItem:(e,n)=>this._convertItem(e,n),convertChildren:(e,n)=>this._convertChildren(e,n),safeInsert:(e,n)=>this._safeInsert(e,n),updateConversionResult:(e,n)=>this._updateConversionResult(e,n),splitToAllowedParent:(e,n)=>this._splitToAllowedParent(e,n),getSplitParts:e=>this._getSplitParts(e),keepEmptyElement:e=>this._keepEmptyElement(e)}}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=K2(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=mo.createFrom(t),this.conversionApi.store={};const{modelRange:i}=this._convertItem(t,this._modelCursor),r=e.createDocumentFragment();if(i){this._removeEmptyElements();for(const s of Array.from(this._modelCursor.parent.getChildren()))e.append(s,r);r.markers=$2(r,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,r}_convertItem(t,e){const n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire(`element:${t.name}`,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof T))throw new b("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:N._createAt(e,0);const i=new T(n);for(const r of Array.from(t.getChildren())){const s=this._convertItem(r,n);s.modelRange instanceof T&&(i.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:i,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return n?(this.conversionApi.writer.insert(t,n.position),!0):!1}_updateConversionResult(t,e){const n=this._getSplitParts(t),i=this.conversionApi.writer;e.modelRange||(e.modelRange=i.createRange(i.createPositionBefore(t),i.createPositionAfter(n[n.length-1])));const r=this._cursorParents.get(t);r?e.modelCursor=i.createPositionAt(r,0):e.modelCursor=e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:i}=this.conversionApi;let r=n.findAllowedParent(e,t);if(r){if(r===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(r)&&(r=null)}if(!r)return Fu(e,t,n)?{position:Vu(e,i)}:null;const s=this.conversionApi.writer.split(e,r),a=[];for(const l of s.range.getWalker())if(l.type=="elementEnd")a.push(l.item);else{const d=a.pop(),u=l.item;this._registerSplitPair(d,u)}const c=s.range.end.parent;return this._cursorParents.set(t,c),{position:s.position,cursorParent:c}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return this._splitParts.has(t)?e=this._splitParts.get(t):e=[t],e}_keepEmptyElement(t){this._emptyElementsToKeep.add(t)}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}function $2(o,t){const e=new Set,n=new Map,i=T._createIn(o).getItems();for(const r of i)r.is("element","$marker")&&e.add(r);for(const r of e){const s=r.getAttribute("data-name"),a=t.createPositionBefore(r);n.has(s)?n.get(s).end=a.clone():n.set(s,new T(a.clone())),t.remove(r)}return n}function K2(o,t){let e;for(const n of new cn(o)){const i={};for(const s of n.getAttributeKeys())i[s]=n.getAttribute(s);const r=t.createElement(n.name,i);e&&t.insert(r,e),e=N._createAt(r,0)}return e}class Z2{getHtml(t){const n=U.document.implementation.createHTMLDocument("").createElement("div");return n.appendChild(t),n.innerHTML}}class Y2{constructor(t){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new ri(t,{renderingMode:"data"}),this.htmlWriter=new Z2}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode=t=="marked"?"markedNbsp":"nbsp"}_toDom(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t=`<body>${t}</body>`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),i=e.body.childNodes;for(;i.length>0;)n.appendChild(i[0]);return n}}class Q2 extends ct(){constructor(t,e){super(),this.model=t,this.mapper=new vu,this.downcastDispatcher=new yu({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",Tu(),{priority:"lowest"}),this.downcastDispatcher.on("insert",Iu(),{priority:"lowest"}),this.upcastDispatcher=new G2({schema:t.schema}),this.viewDocument=new ni(e),this.stylesProcessor=e,this.htmlProcessor=new Y2(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Wd(this.viewDocument),this.upcastDispatcher.on("text",c2(),{priority:"lowest"}),this.upcastDispatcher.on("element",Hu(),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",Hu(),{priority:"lowest"}),rt().prototype.decorate.call(this,"init"),rt().prototype.decorate.call(this,"set"),rt().prototype.decorate.call(this,"get"),rt().prototype.decorate.call(this,"toView"),rt().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},ju)},{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new b("datacontroller-get-non-existent-root",this);const i=this.model.document.getRoot(e);return i.isAttached()||at("datacontroller-get-detached-root",this),n==="empty"&&!this.model.hasContent(i,{ignoreWhitespaces:!0})?"":this.stringify(i,t)}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();const r=T._createIn(t),s=new rn(n);this.mapper.bindElements(t,s);const a=t.is("documentFragment")?t.markers:J2(t);return this.downcastDispatcher.convert(r,a,i,e),s}init(t){if(this.model.document.version)throw new b("datacontroller-init-document-not-empty",this);let e={};if(typeof t=="string"?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new b("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},n=>{for(const i of Object.keys(e)){const r=this.model.document.getRoot(i);n.insert(this.parse(e[i],r),r,0)}}),Promise.resolve()}set(t,e={}){let n={};if(typeof t=="string"?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new b("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},i=>{i.setSelection(null),i.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const r of Object.keys(n)){const s=this.model.document.getRoot(r);i.remove(i.createRangeIn(s)),i.insert(this.parse(n[r],s),s,0)}})}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change(n=>this.upcastDispatcher.convert(t,n,e))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRoot(e))return!1;return!0}}function J2(o){const t=[],e=o.root.document;if(!e)return new Map;const n=T._createIn(o);for(const i of e.model.markers){const r=i.getRange(),s=r.isCollapsed,a=r.start.isEqual(n.start)||r.end.isEqual(n.end);if(s&&a)t.push([i.name,r]);else{const c=n.getIntersection(r);c&&t.push([i.name,c])}}return t.sort(([i,r],[s,a])=>{if(r.end.compareWith(a.start)!=="after")return 1;if(r.start.compareWith(a.end)!=="before")return-1;switch(r.start.compareWith(a.start)){case"before":return 1;case"after":return-1;default:switch(r.end.compareWith(a.end)){case"before":return 1;case"after":return-1;default:return s.localeCompare(i)}}}),new Map(t)}class X2{constructor(t,e){this._helpers=new Map,this._downcast=Tt(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Tt(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new b("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new b("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of hs(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of hs(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of hs(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new b("conversion-group-exists",this);const i=n?new Tx(e):new a2(e);this._helpers.set(t,i)}}function*hs(o){if(o.model.values)for(const t of o.model.values){const e={key:o.model.key,value:t},n=o.view[t],i=o.upcastAlso?o.upcastAlso[t]:void 0;yield*Qu(e,n,i)}else yield*Qu(o.model,o.view,o.upcastAlso)}function*Qu(o,t,e){if(yield{model:o,view:t},e)for(const n of Tt(e))yield{model:o,view:n}}class te{constructor(t){this.baseVersion=t,this.isDocumentOperation=this.baseVersion!==null,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t,e){return new this(t.baseVersion)}}function gs(o,t){const e=Xu(t),n=e.reduce((s,a)=>s+a.offsetSize,0),i=o.parent;bo(o);const r=o.index;return i._insertChild(r,e),ko(i,r+e.length),ko(i,r),new T(o,o.getShiftedBy(n))}function Ju(o){if(!o.isFlat)throw new b("operation-utils-remove-range-not-flat",this);const t=o.start.parent;bo(o.start),bo(o.end);const e=t._removeChildren(o.start.index,o.end.index-o.start.index);return ko(t,o.start.index),e}function po(o,t){if(!o.isFlat)throw new b("operation-utils-move-range-not-flat",this);const e=Ju(o);return t=t._getTransformedByDeletion(o.start,o.end.offset-o.start.offset),gs(t,e)}function tE(o,t,e){bo(o.start),bo(o.end);for(const n of o.getItems({shallow:!0})){const i=n.is("$textProxy")?n.textNode:n;e!==null?i._setAttribute(t,e):i._removeAttribute(t),ko(i.parent,i.index)}ko(o.end.parent,o.end.index)}function Xu(o){const t=[];function e(n){if(typeof n=="string")t.push(new ft(n));else if(n instanceof ge)t.push(new ft(n.data,n.getAttributes()));else if(n instanceof sn)t.push(n);else if($t(n))for(const i of n)e(i)}e(o);for(let n=1;n<t.length;n++){const i=t[n],r=t[n-1];i instanceof ft&&r instanceof ft&&th(i,r)&&(t.splice(n-1,2,new ft(r.data+i.data,r.getAttributes())),n--)}return t}function ko(o,t){const e=o.getChild(t-1),n=o.getChild(t);if(e&&n&&e.is("$text")&&n.is("$text")&&th(e,n)){const i=new ft(e.data+n.data,e.getAttributes());o._removeChildren(t-1,2),o._insertChild(t-1,i)}}function bo(o){const t=o.textNode,e=o.parent;if(t){const n=o.offset-t.startOffset,i=t.index;e._removeChildren(i,1);const r=new ft(t.data.substr(0,n),t.getAttributes()),s=new ft(t.data.substr(n),t.getAttributes());e._insertChild(i,[r,s])}}function th(o,t){const e=o.getAttributes(),n=t.getAttributes();for(const i of e){if(i[1]!==t.getAttribute(i[0]))return!1;n.next()}return n.next().done}class ot extends te{constructor(t,e,n,i){super(i),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toNext",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return this.targetPosition.root.rootName=="$graveyard"?"remove":this.sourcePosition.root.rootName=="$graveyard"?"reinsert":"move"}get affectedSelectable(){return[T._createFromPositionAndShift(this.sourcePosition,this.howMany),T._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new ot(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new ot(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new b("move-operation-nodes-do-not-exist",this);if(t===e&&n<i&&i<n+this.howMany)throw new b("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&jt(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())=="prefix"){const r=this.sourcePosition.path.length-1;if(this.targetPosition.path[r]>=n&&this.targetPosition.path[r]<n+this.howMany)throw new b("move-operation-node-into-itself",this)}}_execute(){po(T._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}static get className(){return"MoveOperation"}static fromJSON(t,e){const n=N.fromJSON(t.sourcePosition,e),i=N.fromJSON(t.targetPosition,e);return new this(n,t.howMany,i,t.baseVersion)}}class Nt extends te{constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new lo(Xu(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const t=new lo([...this.nodes].map(n=>n._clone(!0))),e=new Nt(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new N(t,[0]);return new ot(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new b("insert-operation-position-invalid",this)}_execute(){const t=this.nodes;this.nodes=new lo([...t].map(e=>e._clone(!0))),gs(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const r of t.nodes)r.name?n.push(lt.fromJSON(r)):n.push(ft.fromJSON(r));const i=new Nt(N.fromJSON(t.position,e),n,t.baseVersion);return i.shouldReceiveAttributes=t.shouldReceiveAttributes,i}}class mt extends te{constructor(t,e,n,i,r){super(r),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=i?i.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new N(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new T(this.splitPosition,t)}get affectedSelectable(){const t=[T._createFromPositionAndShift(this.splitPosition,0),T._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(T._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new mt(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new N(t,[0]);return new vt(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new b("split-operation-position-invalid",this);if(t.parent){if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new b("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new b("split-operation-graveyard-position-invalid",this)}else throw new b("split-operation-split-in-root",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)po(T._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const n=t._clone();gs(this.insertionPosition,n)}const e=new T(N._createAt(t,this.splitPosition.offset),N._createAt(t,t.maxOffset));po(e,this.moveTargetPosition)}toJSON(){const t=super.toJSON();return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t}static get className(){return"SplitOperation"}static getInsertionPosition(t){const e=t.path.slice(0,-1);return e[e.length-1]++,new N(t.root,e,"toPrevious")}static fromJSON(t,e){const n=N.fromJSON(t.splitPosition,e),i=N.fromJSON(t.insertionPosition,e),r=t.graveyardPosition?N.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,i,r,t.baseVersion)}}class vt extends te{constructor(t,e,n,i,r){super(r),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=i.clone()}get type(){return"merge"}get deletionPosition(){return new N(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new T(this.sourcePosition,t)}get affectedSelectable(){const t=this.sourcePosition.parent;return[T._createOn(t),T._createFromPositionAndShift(this.targetPosition,0),T._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new vt(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new N(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new mt(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(t.parent)if(e.parent){if(this.howMany!=t.maxOffset)throw new b("merge-operation-how-many-invalid",this)}else throw new b("merge-operation-target-position-invalid",this);else throw new b("merge-operation-source-position-invalid",this)}_execute(){const t=this.sourcePosition.parent,e=T._createIn(t);po(e,this.targetPosition),po(T._createOn(t),this.graveyardPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}static get className(){return"MergeOperation"}static fromJSON(t,e){const n=N.fromJSON(t.sourcePosition,e),i=N.fromJSON(t.targetPosition,e),r=N.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,i,r,t.baseVersion)}}class Wt extends te{constructor(t,e,n,i,r,s){super(s),this.name=t,this.oldRange=e?e.clone():null,this.newRange=n?n.clone():null,this.affectsData=r,this._markers=i}get type(){return"marker"}get affectedSelectable(){const t=[];return this.oldRange&&t.push(this.oldRange.clone()),this.newRange&&(this.oldRange?t.push(...this.newRange.getDifference(this.oldRange)):t.push(this.newRange.clone())),t}clone(){return new Wt(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Wt(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const t=super.toJSON();return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}static get className(){return"MarkerOperation"}static fromJSON(t,e){return new Wt(t.name,t.oldRange?T.fromJSON(t.oldRange,e):null,t.newRange?T.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}function eE(o,t){return pu(o,t)}const eh=eE;class Et extends te{constructor(t,e,n,i,r){super(r),this.range=t.clone(),this.key=e,this.oldValue=n===void 0?null:n,this.newValue=i===void 0?null:i}get type(){return this.oldValue===null?"addAttribute":this.newValue===null?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new Et(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Et(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const t=super.toJSON();return t.range=this.range.toJSON(),t}_validate(){if(!this.range.isFlat)throw new b("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(this.oldValue!==null&&!eh(t.getAttribute(this.key),this.oldValue))throw new b("attribute-operation-wrong-old-value",this,{item:t,key:this.key,value:this.oldValue});if(this.oldValue===null&&this.newValue!==null&&t.hasAttribute(this.key))throw new b("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){eh(this.oldValue,this.newValue)||tE(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new Et(T.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class St extends te{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new St(this.baseVersion)}getReversed(){return new St(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class Gt extends te{constructor(t,e,n,i){super(i),this.position=t,this.position.stickiness="toNext",this.oldName=e,this.newName=n}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new Gt(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Gt(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(t instanceof lt){if(t.name!==this.oldName)throw new b("rename-operation-wrong-name",this)}else throw new b("rename-operation-wrong-position",this)}_execute(){const t=this.position.nodeAfter;t.name=this.newName}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t}static get className(){return"RenameOperation"}static fromJSON(t,e){return new Gt(N.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class Ie extends te{constructor(t,e,n,i,r){super(r),this.root=t,this.key=e,this.oldValue=n===void 0?null:n,this.newValue=i===void 0?null:i}get type(){return this.oldValue===null?"addRootAttribute":this.newValue===null?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new Ie(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Ie(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new b("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(this.oldValue!==null&&this.root.getAttribute(this.key)!==this.oldValue)throw new b("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(this.oldValue===null&&this.newValue!==null&&this.root.hasAttribute(this.key))throw new b("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){this.newValue!==null?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const t=super.toJSON();return t.root=this.root.toJSON(),t}static get className(){return"RootAttributeOperation"}static fromJSON(t,e){if(!e.getRoot(t.root))throw new b("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new Ie(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Ce extends te{constructor(t,e,n,i,r){if(super(r),this.rootName=t,this.elementName=e,this.isAdd=n,this._document=i,!this._document.getRoot(this.rootName)){const s=this._document.createRoot(this.elementName,this.rootName);s._isAttached=!1}}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new Ce(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new Ce(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){const t=super.toJSON();return delete t._document,t}static get className(){return"RootOperation"}static fromJSON(t,e){return new Ce(t.rootName,t.elementName,t.isAdd,e,t.baseVersion)}}const se={};se[Et.className]=Et,se[Nt.className]=Nt,se[Wt.className]=Wt,se[ot.className]=ot,se[St.className]=St,se[te.className]=te,se[Gt.className]=Gt,se[Ie.className]=Ie,se[Ce.className]=Ce,se[mt.className]=mt,se[vt.className]=vt;class nE{static fromJSON(t,e){return se[t.__className].fromJSON(t,e)}}const fs=new Map;function et(o,t,e){let n=fs.get(o);n||(n=new Map,fs.set(o,n)),n.set(t,e)}function oE(o,t){const e=fs.get(o);return e&&e.has(t)?e.get(t):iE}function iE(o){return[o]}function nh(o,t,e={}){const n=oE(o.constructor,t.constructor);try{return o=o.clone(),n(o,t,e)}catch(i){throw i}}function rE(o,t,e){o=o.slice(),t=t.slice();const n=new sE(e.document,e.useRelations,e.forceWeakRemove);n.setOriginalOperations(o),n.setOriginalOperations(t);const i=n.originalOperations;if(o.length==0||t.length==0)return{operationsA:o,operationsB:t,originalOperations:i};const r=new WeakMap;for(const c of o)r.set(c,0);const s={nextBaseVersionA:o[o.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:o.length,originalOperationsBCount:t.length};let a=0;for(;a<o.length;){const c=o[a],l=r.get(c);if(l==t.length){a++;continue}const d=t[l],u=nh(c,d,n.getContext(c,d,!0)),f=nh(d,c,n.getContext(d,c,!1));n.updateRelation(c,d),n.setOriginalOperations(u,c),n.setOriginalOperations(f,d);for(const p of u)r.set(p,l+f.length);o.splice(a,1,...u),t.splice(l,1,...f)}if(e.padWithNoOps){const c=o.length-s.originalOperationsACount,l=t.length-s.originalOperationsBCount;ih(o,l-c),ih(t,c-l)}return oh(o,s.nextBaseVersionB),oh(t,s.nextBaseVersionA),{operationsA:o,operationsB:t,originalOperations:i}}class sE{constructor(t,e,n=!1){this.originalOperations=new Map,this._history=t.history,this._useRelations=e,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(t,e=null){const n=e?this.originalOperations.get(e):null;for(const i of t)this.originalOperations.set(i,n||i)}updateRelation(t,e){if(t instanceof ot)e instanceof vt?t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter"):e instanceof ot&&(t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter"));else if(t instanceof mt){if(e instanceof vt)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof ot)if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{const n=T._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.splitPosition)){const i=n.end.offset-t.splitPosition.offset,r=t.splitPosition.offset-n.start.offset;this._setRelation(t,e,{howMany:i,offset:r})}}}else if(t instanceof vt)e instanceof vt?(t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement")):e instanceof mt&&t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource");else if(t instanceof Wt){const n=t.newRange;if(!n)return;if(e instanceof ot){const i=T._createFromPositionAndShift(e.sourcePosition,e.howMany),r=i.containsPosition(n.start)||i.start.isEqual(n.start),s=i.containsPosition(n.end)||i.end.isEqual(n.end);(r||s)&&!i.containsRange(n)&&this._setRelation(t,e,{side:r?"left":"right",path:r?n.start.path.slice():n.end.path.slice()})}else if(e instanceof vt){const i=n.start.isEqual(e.targetPosition),r=n.start.isEqual(e.deletionPosition),s=n.end.isEqual(e.deletionPosition),a=n.end.isEqual(e.sourcePosition);(i||r||s||a)&&this._setRelation(t,e,{wasInLeftElement:i,wasStartBeforeMergedElement:r,wasEndBeforeMergedElement:s,wasInRightElement:a})}}}getContext(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(t){const e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}_getRelation(t,e){const n=this.originalOperations.get(e),i=this._history.getUndoneOperation(n);if(!i)return null;const r=this.originalOperations.get(t),s=this._relations.get(r);return s&&s.get(i)||null}_setRelation(t,e,n){const i=this.originalOperations.get(t),r=this.originalOperations.get(e);let s=this._relations.get(i);s||(s=new Map,this._relations.set(i,s)),s.set(r,n)}}function oh(o,t){for(const e of o)e.baseVersion=t++}function ih(o,t){for(let e=0;e<t;e++)o.push(new St(0))}et(Et,Et,(o,t,e)=>{if(o.key===t.key&&o.range.start.hasSameParentAs(t.range.start)){const n=o.range.getDifference(t.range).map(r=>new Et(r,o.key,o.oldValue,o.newValue,0)),i=o.range.getIntersection(t.range);return i&&e.aIsStrong&&n.push(new Et(i,t.key,t.newValue,o.newValue,0)),n.length==0?[new St(0)]:n}else return[o]}),et(Et,Nt,(o,t)=>{if(o.range.start.hasSameParentAs(t.position)&&o.range.containsPosition(t.position)){const n=o.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(i=>new Et(i,o.key,o.oldValue,o.newValue,o.baseVersion));if(t.shouldReceiveAttributes){const i=rh(t,o.key,o.oldValue);i&&n.unshift(i)}return n}return o.range=o.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[o]});function rh(o,t,e){const i=o.nodes.getNode(0).getAttribute(t);if(i==e)return null;const r=new T(o.position,o.position.getShiftedBy(o.howMany));return new Et(r,t,i,e,0)}et(Et,vt,(o,t)=>{const e=[];o.range.start.hasSameParentAs(t.deletionPosition)&&(o.range.containsPosition(t.deletionPosition)||o.range.start.isEqual(t.deletionPosition))&&e.push(T._createFromPositionAndShift(t.graveyardPosition,1));const n=o.range._getTransformedByMergeOperation(t);return n.isCollapsed||e.push(n),e.map(i=>new Et(i,o.key,o.oldValue,o.newValue,o.baseVersion))}),et(Et,ot,(o,t)=>aE(o.range,t).map(n=>new Et(n,o.key,o.oldValue,o.newValue,o.baseVersion)));function aE(o,t){const e=T._createFromPositionAndShift(t.sourcePosition,t.howMany);let n=null,i=[];e.containsRange(o,!0)?n=o:o.start.hasSameParentAs(e.start)?(i=o.getDifference(e),n=o.getIntersection(e)):i=[o];const r=[];for(let s of i){s=s._getTransformedByDeletion(t.sourcePosition,t.howMany);const a=t.getMovedRangeStart(),c=s.start.hasSameParentAs(a),l=s._getTransformedByInsertion(a,t.howMany,c);r.push(...l)}return n&&r.push(n._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),r}et(Et,mt,(o,t)=>{if(o.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||o.range.end.offset++,[o];if(o.range.start.hasSameParentAs(t.splitPosition)&&o.range.containsPosition(t.splitPosition)){const e=o.clone();return e.range=new T(t.moveTargetPosition.clone(),o.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),o.range.end=t.splitPosition.clone(),o.range.end.stickiness="toPrevious",[o,e]}return o.range=o.range._getTransformedBySplitOperation(t),[o]}),et(Nt,Et,(o,t)=>{const e=[o];if(o.shouldReceiveAttributes&&o.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(o.position)){const n=rh(o,t.key,t.newValue);n&&e.push(n)}return e}),et(Nt,Nt,(o,t,e)=>o.position.isEqual(t.position)&&e.aIsStrong?[o]:(o.position=o.position._getTransformedByInsertOperation(t),[o])),et(Nt,ot,(o,t)=>(o.position=o.position._getTransformedByMoveOperation(t),[o])),et(Nt,mt,(o,t)=>(o.position=o.position._getTransformedBySplitOperation(t),[o])),et(Nt,vt,(o,t)=>(o.position=o.position._getTransformedByMergeOperation(t),[o])),et(Wt,Nt,(o,t)=>(o.oldRange&&(o.oldRange=o.oldRange._getTransformedByInsertOperation(t)[0]),o.newRange&&(o.newRange=o.newRange._getTransformedByInsertOperation(t)[0]),[o])),et(Wt,Wt,(o,t,e)=>{if(o.name==t.name)if(e.aIsStrong)o.oldRange=t.newRange?t.newRange.clone():null;else return[new St(0)];return[o]}),et(Wt,vt,(o,t)=>(o.oldRange&&(o.oldRange=o.oldRange._getTransformedByMergeOperation(t)),o.newRange&&(o.newRange=o.newRange._getTransformedByMergeOperation(t)),[o])),et(Wt,ot,(o,t,e)=>{if(o.oldRange&&(o.oldRange=T._createFromRanges(o.oldRange._getTransformedByMoveOperation(t))),o.newRange){if(e.abRelation){const n=T._createFromRanges(o.newRange._getTransformedByMoveOperation(t));if(e.abRelation.side=="left"&&t.targetPosition.isEqual(o.newRange.start))return o.newRange.end=n.end,o.newRange.start.path=e.abRelation.path,[o];if(e.abRelation.side=="right"&&t.targetPosition.isEqual(o.newRange.end))return o.newRange.start=n.start,o.newRange.end.path=e.abRelation.path,[o]}o.newRange=T._createFromRanges(o.newRange._getTransformedByMoveOperation(t))}return[o]}),et(Wt,mt,(o,t,e)=>{if(o.oldRange&&(o.oldRange=o.oldRange._getTransformedBySplitOperation(t)),o.newRange){if(e.abRelation){const n=o.newRange._getTransformedBySplitOperation(t);return o.newRange.start.isEqual(t.splitPosition)&&e.abRelation.wasStartBeforeMergedElement?o.newRange.start=N._createAt(t.insertionPosition):o.newRange.start.isEqual(t.splitPosition)&&!e.abRelation.wasInLeftElement&&(o.newRange.start=N._createAt(t.moveTargetPosition)),o.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasInRightElement?o.newRange.end=N._createAt(t.moveTargetPosition):o.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasEndBeforeMergedElement?o.newRange.end=N._createAt(t.insertionPosition):o.newRange.end=n.end,[o]}o.newRange=o.newRange._getTransformedBySplitOperation(t)}return[o]}),et(vt,Nt,(o,t)=>(o.sourcePosition.hasSameParentAs(t.position)&&(o.howMany+=t.howMany),o.sourcePosition=o.sourcePosition._getTransformedByInsertOperation(t),o.targetPosition=o.targetPosition._getTransformedByInsertOperation(t),[o])),et(vt,vt,(o,t,e)=>{if(o.sourcePosition.isEqual(t.sourcePosition)&&o.targetPosition.isEqual(t.targetPosition))if(e.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),o.sourcePosition=new N(t.graveyardPosition.root,n),o.howMany=0,[o]}else return[new St(0)];if(o.sourcePosition.isEqual(t.sourcePosition)&&!o.targetPosition.isEqual(t.targetPosition)&&!e.bWasUndone&&e.abRelation!="splitAtSource"){const n=o.targetPosition.root.rootName=="$graveyard",i=t.targetPosition.root.rootName=="$graveyard";if(i&&!n||!(n&&!i)&&e.aIsStrong){const c=t.targetPosition._getTransformedByMergeOperation(t),l=o.targetPosition._getTransformedByMergeOperation(t);return[new ot(c,o.howMany,l,0)]}else return[new St(0)]}return o.sourcePosition.hasSameParentAs(t.targetPosition)&&(o.howMany+=t.howMany),o.sourcePosition=o.sourcePosition._getTransformedByMergeOperation(t),o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),(!o.graveyardPosition.isEqual(t.graveyardPosition)||!e.aIsStrong)&&(o.graveyardPosition=o.graveyardPosition._getTransformedByMergeOperation(t)),[o]}),et(vt,ot,(o,t,e)=>{const n=T._createFromPositionAndShift(t.sourcePosition,t.howMany);return t.type=="remove"&&!e.bWasUndone&&!e.forceWeakRemove&&o.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(o.sourcePosition)?[new St(0)]:(o.sourcePosition.hasSameParentAs(t.targetPosition)&&(o.howMany+=t.howMany),o.sourcePosition.hasSameParentAs(t.sourcePosition)&&(o.howMany-=t.howMany),o.sourcePosition=o.sourcePosition._getTransformedByMoveOperation(t),o.targetPosition=o.targetPosition._getTransformedByMoveOperation(t),o.graveyardPosition.isEqual(t.targetPosition)||(o.graveyardPosition=o.graveyardPosition._getTransformedByMoveOperation(t)),[o])}),et(vt,mt,(o,t,e)=>{if(t.graveyardPosition&&(o.graveyardPosition=o.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),o.deletionPosition.isEqual(t.graveyardPosition)&&(o.howMany=t.howMany)),o.targetPosition.isEqual(t.splitPosition)){const n=t.howMany!=0,i=t.graveyardPosition&&o.deletionPosition.isEqual(t.graveyardPosition);if(n||i||e.abRelation=="mergeTargetNotMoved")return o.sourcePosition=o.sourcePosition._getTransformedBySplitOperation(t),[o]}if(o.sourcePosition.isEqual(t.splitPosition)){if(e.abRelation=="mergeSourceNotMoved")return o.howMany=0,o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o];if(e.abRelation=="mergeSameElement"||o.sourcePosition.offset>0)return o.sourcePosition=t.moveTargetPosition.clone(),o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o]}return o.sourcePosition.hasSameParentAs(t.splitPosition)&&(o.howMany=t.splitPosition.offset),o.sourcePosition=o.sourcePosition._getTransformedBySplitOperation(t),o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o]}),et(ot,Nt,(o,t)=>{const n=T._createFromPositionAndShift(o.sourcePosition,o.howMany)._getTransformedByInsertOperation(t,!1)[0];return o.sourcePosition=n.start,o.howMany=n.end.offset-n.start.offset,o.targetPosition.isEqual(t.position)||(o.targetPosition=o.targetPosition._getTransformedByInsertOperation(t)),[o]}),et(ot,ot,(o,t,e)=>{const n=T._createFromPositionAndShift(o.sourcePosition,o.howMany),i=T._createFromPositionAndShift(t.sourcePosition,t.howMany);let r=e.aIsStrong,s=!e.aIsStrong;e.abRelation=="insertBefore"||e.baRelation=="insertAfter"?s=!0:(e.abRelation=="insertAfter"||e.baRelation=="insertBefore")&&(s=!1);let a;if(o.targetPosition.isEqual(t.targetPosition)&&s?a=o.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):a=o.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),sh(o,t)&&sh(t,o))return[t.getReversed()];if(n.containsPosition(t.targetPosition)&&n.containsRange(i,!0))return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Mn([n],a);if(i.containsPosition(o.targetPosition)&&i.containsRange(n,!0))return n.start=n.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),n.end=n.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Mn([n],a);const d=jt(o.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if(d=="prefix"||d=="extension")return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Mn([n],a);o.type=="remove"&&t.type!="remove"&&!e.aWasUndone&&!e.forceWeakRemove?r=!0:o.type!="remove"&&t.type=="remove"&&!e.bWasUndone&&!e.forceWeakRemove&&(r=!1);const u=[],f=n.getDifference(i);for(const w of f){w.start=w.start._getTransformedByDeletion(t.sourcePosition,t.howMany),w.end=w.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const S=jt(w.start.getParentPath(),t.getMovedRangeStart().getParentPath())=="same",B=w._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,S);u.push(...B)}const p=n.getIntersection(i);return p!==null&&r&&(p.start=p.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),p.end=p.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),u.length===0?u.push(p):u.length==1?i.start.isBefore(n.start)||i.start.isEqual(n.start)?u.unshift(p):u.push(p):u.splice(1,0,p)),u.length===0?[new St(o.baseVersion)]:Mn(u,a)}),et(ot,mt,(o,t,e)=>{let n=o.targetPosition.clone();(!o.targetPosition.isEqual(t.insertionPosition)||!t.graveyardPosition||e.abRelation=="moveTargetAfter")&&(n=o.targetPosition._getTransformedBySplitOperation(t));const i=T._createFromPositionAndShift(o.sourcePosition,o.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||o.howMany++,o.targetPosition=n,[o];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){let a=new T(t.splitPosition,i.end);a=a._getTransformedBySplitOperation(t);const c=[new T(i.start,t.splitPosition),a];return Mn(c,n)}o.targetPosition.isEqual(t.splitPosition)&&e.abRelation=="insertAtSource"&&(n=t.moveTargetPosition),o.targetPosition.isEqual(t.insertionPosition)&&e.abRelation=="insertBetween"&&(n=o.targetPosition);const s=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const a=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);o.howMany>1&&a&&!e.aWasUndone&&s.push(T._createFromPositionAndShift(t.insertionPosition,1))}return Mn(s,n)}),et(ot,vt,(o,t,e)=>{const n=T._createFromPositionAndShift(o.sourcePosition,o.howMany);if(t.deletionPosition.hasSameParentAs(o.sourcePosition)&&n.containsPosition(t.sourcePosition)){if(o.type=="remove"&&!e.forceWeakRemove){if(!e.aWasUndone){const s=[];let a=t.graveyardPosition.clone(),c=t.targetPosition._getTransformedByMergeOperation(t);o.howMany>1&&(s.push(new ot(o.sourcePosition,o.howMany-1,o.targetPosition,0)),a=a._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany-1),c=c._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany-1));const l=t.deletionPosition._getCombined(o.sourcePosition,o.targetPosition),d=new ot(a,1,l,0),u=d.getMovedRangeStart().path.slice();u.push(0);const f=new N(d.targetPosition.root,u);c=c._getTransformedByMove(a,l,1);const p=new ot(c,t.howMany,f,0);return s.push(d),s.push(p),s}}else if(o.howMany==1)return e.bWasUndone?(o.sourcePosition=t.graveyardPosition.clone(),o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),[o]):[new St(0)]}const r=T._createFromPositionAndShift(o.sourcePosition,o.howMany)._getTransformedByMergeOperation(t);return o.sourcePosition=r.start,o.howMany=r.end.offset-r.start.offset,o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),[o]}),et(Gt,Nt,(o,t)=>(o.position=o.position._getTransformedByInsertOperation(t),[o])),et(Gt,vt,(o,t)=>o.position.isEqual(t.deletionPosition)?(o.position=t.graveyardPosition.clone(),o.position.stickiness="toNext",[o]):(o.position=o.position._getTransformedByMergeOperation(t),[o])),et(Gt,ot,(o,t)=>(o.position=o.position._getTransformedByMoveOperation(t),[o])),et(Gt,Gt,(o,t,e)=>{if(o.position.isEqual(t.position))if(e.aIsStrong)o.oldName=t.newName;else return[new St(0)];return[o]}),et(Gt,mt,(o,t)=>{const e=o.position.path,n=t.splitPosition.getParentPath();if(jt(e,n)=="same"&&!t.graveyardPosition){const i=new Gt(o.position.getShiftedBy(1),o.oldName,o.newName,0);return[o,i]}return o.position=o.position._getTransformedBySplitOperation(t),[o]}),et(Ie,Ie,(o,t,e)=>{if(o.root===t.root&&o.key===t.key){if(!e.aIsStrong||o.newValue===t.newValue)return[new St(0)];o.oldValue=t.newValue}return[o]}),et(Ce,Ce,(o,t)=>o.rootName===t.rootName&&o.isAdd===t.isAdd?[new St(0)]:[o]),et(mt,Nt,(o,t)=>(o.splitPosition.hasSameParentAs(t.position)&&o.splitPosition.offset<t.position.offset&&(o.howMany+=t.howMany),o.splitPosition=o.splitPosition._getTransformedByInsertOperation(t),o.insertionPosition=o.insertionPosition._getTransformedByInsertOperation(t),[o])),et(mt,vt,(o,t,e)=>{if(!o.graveyardPosition&&!e.bWasUndone&&o.splitPosition.hasSameParentAs(t.sourcePosition)){const n=t.graveyardPosition.path.slice();n.push(0);const i=new N(t.graveyardPosition.root,n),r=mt.getInsertionPosition(new N(t.graveyardPosition.root,n)),s=new mt(i,0,r,null,0);return o.splitPosition=o.splitPosition._getTransformedByMergeOperation(t),o.insertionPosition=mt.getInsertionPosition(o.splitPosition),o.graveyardPosition=s.insertionPosition.clone(),o.graveyardPosition.stickiness="toNext",[s,o]}return o.splitPosition.hasSameParentAs(t.deletionPosition)&&!o.splitPosition.isAfter(t.deletionPosition)&&o.howMany--,o.splitPosition.hasSameParentAs(t.targetPosition)&&(o.howMany+=t.howMany),o.splitPosition=o.splitPosition._getTransformedByMergeOperation(t),o.insertionPosition=mt.getInsertionPosition(o.splitPosition),o.graveyardPosition&&(o.graveyardPosition=o.graveyardPosition._getTransformedByMergeOperation(t)),[o]}),et(mt,ot,(o,t,e)=>{const n=T._createFromPositionAndShift(t.sourcePosition,t.howMany);if(o.graveyardPosition){const r=n.start.isEqual(o.graveyardPosition)||n.containsPosition(o.graveyardPosition);if(!e.bWasUndone&&r){const s=o.splitPosition._getTransformedByMoveOperation(t),a=o.graveyardPosition._getTransformedByMoveOperation(t),c=a.path.slice();c.push(0);const l=new N(a.root,c);return[new ot(s,o.howMany,l,0)]}o.graveyardPosition=o.graveyardPosition._getTransformedByMoveOperation(t)}const i=o.splitPosition.isEqual(t.targetPosition);if(i&&(e.baRelation=="insertAtSource"||e.abRelation=="splitBefore"))return o.howMany+=t.howMany,o.splitPosition=o.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),o.insertionPosition=mt.getInsertionPosition(o.splitPosition),[o];if(i&&e.abRelation&&e.abRelation.howMany){const{howMany:r,offset:s}=e.abRelation;return o.howMany+=r,o.splitPosition=o.splitPosition.getShiftedBy(s),[o]}if(o.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(o.splitPosition)){const r=t.howMany-(o.splitPosition.offset-t.sourcePosition.offset);return o.howMany-=r,o.splitPosition.hasSameParentAs(t.targetPosition)&&o.splitPosition.offset<t.targetPosition.offset&&(o.howMany+=t.howMany),o.splitPosition=t.sourcePosition.clone(),o.insertionPosition=mt.getInsertionPosition(o.splitPosition),[o]}return t.sourcePosition.isEqual(t.targetPosition)||(o.splitPosition.hasSameParentAs(t.sourcePosition)&&o.splitPosition.offset<=t.sourcePosition.offset&&(o.howMany-=t.howMany),o.splitPosition.hasSameParentAs(t.targetPosition)&&o.splitPosition.offset<t.targetPosition.offset&&(o.howMany+=t.howMany)),o.splitPosition.stickiness="toNone",o.splitPosition=o.splitPosition._getTransformedByMoveOperation(t),o.splitPosition.stickiness="toNext",o.graveyardPosition?o.insertionPosition=o.insertionPosition._getTransformedByMoveOperation(t):o.insertionPosition=mt.getInsertionPosition(o.splitPosition),[o]}),et(mt,mt,(o,t,e)=>{if(o.splitPosition.isEqual(t.splitPosition)){if(!o.graveyardPosition&&!t.graveyardPosition)return[new St(0)];if(o.graveyardPosition&&t.graveyardPosition&&o.graveyardPosition.isEqual(t.graveyardPosition))return[new St(0)];if(e.abRelation=="splitBefore")return o.howMany=0,o.graveyardPosition=o.graveyardPosition._getTransformedBySplitOperation(t),[o]}if(o.graveyardPosition&&t.graveyardPosition&&o.graveyardPosition.isEqual(t.graveyardPosition)){const n=o.splitPosition.root.rootName=="$graveyard",i=t.splitPosition.root.rootName=="$graveyard";if(i&&!n||!(n&&!i)&&e.aIsStrong){const c=[];return t.howMany&&c.push(new ot(t.moveTargetPosition,t.howMany,t.splitPosition,0)),o.howMany&&c.push(new ot(o.splitPosition,o.howMany,o.moveTargetPosition,0)),c}else return[new St(0)]}if(o.graveyardPosition&&(o.graveyardPosition=o.graveyardPosition._getTransformedBySplitOperation(t)),o.splitPosition.isEqual(t.insertionPosition)&&e.abRelation=="splitBefore")return o.howMany++,[o];if(t.splitPosition.isEqual(o.insertionPosition)&&e.baRelation=="splitBefore"){const n=t.insertionPosition.path.slice();n.push(0);const i=new N(t.insertionPosition.root,n),r=new ot(o.insertionPosition,1,i,0);return[o,r]}return o.splitPosition.hasSameParentAs(t.splitPosition)&&o.splitPosition.offset<t.splitPosition.offset&&(o.howMany-=t.howMany),o.splitPosition=o.splitPosition._getTransformedBySplitOperation(t),o.insertionPosition=mt.getInsertionPosition(o.splitPosition),[o]});function sh(o,t){return o.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)===null}function Mn(o,t){const e=[];for(let n=0;n<o.length;n++){const i=o[n],r=new ot(i.start,i.end.offset-i.start.offset,t,0);e.push(r);for(let s=n+1;s<o.length;s++)o[s]=o[s]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];t=t._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return e}class Lt extends ct(N){constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new b("model-liveposition-root-not-rootelement",t);cE.call(this)}detach(){this.stopListening()}toPosition(){return new N(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}Lt.prototype.is=function(o){return o==="livePosition"||o==="model:livePosition"||o=="position"||o==="model:position"};function cE(){this.listenTo(this.root.document.model,"applyOperation",(o,t)=>{const e=t[0];e.isDocumentOperation&&lE.call(this,e)},{priority:"low"})}function lE(o){const t=this.getTransformedByOperation(o);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}class Bn{constructor(t={}){typeof t=="string"&&(t=t==="transparent"?{isUndoable:!1}:{},at("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:i=!1,isTyping:r=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=i,this.isTyping=r}get type(){return at("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(t.baseVersion!==null)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}class dE{constructor(t){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=t}get isEmpty(){return this._changesInElement.size==0&&this._changedMarkers.size==0&&this._changedRoots.size==0}bufferOperation(t){const e=t;switch(e.type){case"insert":{if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break}case"addAttribute":case"removeAttribute":case"changeAttribute":{for(const n of e.range.getItems({shallow:!0}))this._isInInsertedElement(n.parent)||this._markAttribute(n);break}case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const n=this._isInInsertedElement(e.sourcePosition.parent),i=this._isInInsertedElement(e.targetPosition.parent);n||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),i||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const n=T._createFromPositionAndShift(e.position,1);for(const i of this._markerCollection.getMarkersIntersectingRange(n)){const r=i.getData();this.bufferMarkerChange(i.name,r,r)}break}case"split":{const n=e.splitPosition.parent;this._isInInsertedElement(n)||this._markRemove(n,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const n=e.sourcePosition.parent;this._isInInsertedElement(n.parent)||this._markRemove(n.parent,n.startOffset,1);const i=e.graveyardPosition.parent;this._markInsert(i,e.graveyardPosition.offset,1);const r=e.targetPosition.parent;this._isInInsertedElement(r)||this._markInsert(r,e.targetPosition.offset,n.maxOffset);break}case"detachRoot":case"addRoot":{const n=e.affectedSelectable;if(!n._isLoaded||n.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!e.root._isLoaded)return;const n=e.root.rootName;this._bufferRootAttributeChange(n,e.key,e.oldValue,e.newValue);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n){e.range&&e.range.root.is("rootElement")&&!e.range.root._isLoaded&&(e.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let i=this._changedMarkers.get(t);i?i.newMarkerData=n:(i={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,i)),i.oldMarkerData.range==null&&n.range==null&&this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)n.oldMarkerData.range!=null&&t.push({name:e,range:n.oldMarkerData.range});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)n.newMarkerData.range!=null&&t.push({name:e,range:n.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map(([t,e])=>({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,i=!t.range&&e.range,r=t.range&&e.range&&!t.range.isEqual(e.range);if(n||i||r)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const n of this._changesInElement.keys()){const i=this._changesInElement.get(n).sort((d,u)=>d.offset===u.offset?d.type!=u.type?d.type=="remove"?-1:1:0:d.offset<u.offset?-1:1),r=this._elementSnapshots.get(n),s=ah(n.getChildren()),a=uE(r.length,i);let c=0,l=0;for(const d of a)if(d==="i")e.push(this._getInsertDiff(n,c,s[c])),c++;else if(d==="r")e.push(this._getRemoveDiff(n,c,r[l])),l++;else if(d==="a"){const u=s[c].attributes,f=r[l].attributes;let p;if(s[c].name=="$text")p=new T(N._createAt(n,c),N._createAt(n,c+1));else{const w=n.offsetToIndex(c);p=new T(N._createAt(n,c),N._createAt(n.getChild(w),0))}e.push(...this._getAttributesDiff(p,f,u)),c++,l++}else c++,l++}e.sort((n,i)=>n.position.root!=i.position.root?n.position.root.rootName<i.position.root.rootName?-1:1:n.position.isEqual(i.position)?n.changeCount-i.changeCount:n.position.isBefore(i.position)?-1:1);for(let n=1,i=0;n<e.length;n++){const r=e[i],s=e[n],a=r.type=="remove"&&s.type=="remove"&&r.name=="$text"&&s.name=="$text"&&r.position.isEqual(s.position),c=r.type=="insert"&&s.type=="insert"&&r.name=="$text"&&s.name=="$text"&&r.position.parent==s.position.parent&&r.position.offset+r.length==s.position.offset,l=r.type=="attribute"&&s.type=="attribute"&&r.position.parent==s.position.parent&&r.range.isFlat&&s.range.isFlat&&r.position.offset+r.length==s.position.offset&&r.attributeKey==s.attributeKey&&r.attributeOldValue==s.attributeOldValue&&r.attributeNewValue==s.attributeNewValue;a||c||l?(r.length++,l&&(r.range.end=r.range.end.getShiftedBy(1)),e[n]=null):i=n}e=e.filter(n=>n);for(const n of e)delete n.changeCount,n.type=="attribute"&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(hE),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(t=>{const e={...t};return e.state!==void 0&&delete e.attributes,e})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t)){this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});return}const n=this._changedRoots.get(t);n.state!==void 0?(delete n.state,n.attributes===void 0&&this._changedRoots.delete(t)):n.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,n,i){const r=this._changedRoots.get(t)||{name:t},s=r.attributes||{};if(s[e]){const a=s[e];i===a.oldValue?delete s[e]:a.newValue=i}else s[e]={oldValue:n,newValue:i};Object.entries(s).length===0?(delete r.attributes,r.state===void 0&&this._changedRoots.delete(t)):(r.attributes=s,this._changedRoots.set(t,r))}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);const e=T._createOn(t);for(const n of this._markerCollection.getMarkersIntersectingRange(e)){const i=n.getData();this.bufferMarkerChange(n.name,i,i)}this._cachedChanges=null}_bufferRootLoad(t){if(t.isAttached()){this._bufferRootStateChange(t.rootName,!0),this._markInsert(t,0,t.maxOffset);for(const e of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,e,null,t.getAttribute(e));for(const e of this._markerCollection)if(e.getRange().root==t){const n=e.getData();this.bufferMarkerChange(e.name,{...n,range:null},n)}}}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let i=0;i<n.length;i++)n[i].howMany<1&&(n.splice(i,1),i--)}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshot(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,ah(t.getChildren()))}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const n of e){const i=t.offset+t.howMany,r=n.offset+n.howMany;if(t.type=="insert"&&(n.type=="insert"&&(t.offset<=n.offset?n.offset+=t.howMany:t.offset<r&&(n.howMany+=t.nodesToHandle,t.nodesToHandle=0)),n.type=="remove"&&t.offset<n.offset&&(n.offset+=t.howMany),n.type=="attribute")){if(t.offset<=n.offset)n.offset+=t.howMany;else if(t.offset<r){const s=n.howMany;n.howMany=t.offset-n.offset,e.unshift({type:"attribute",offset:i,howMany:s-n.howMany,count:this._changeCount++})}}if(t.type=="remove"){if(n.type=="insert"){if(i<=n.offset)n.offset-=t.howMany;else if(i<=r)if(t.offset<n.offset){const s=i-n.offset;n.offset=t.offset,n.howMany-=s,t.nodesToHandle-=s}else n.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=n.offset)t.nodesToHandle-=n.howMany,n.howMany=0;else if(t.offset<r){const s=r-t.offset;n.howMany-=s,t.nodesToHandle-=s}}if(n.type=="remove"&&(i<=n.offset?n.offset-=t.howMany:t.offset<n.offset&&(t.nodesToHandle+=n.howMany,n.howMany=0)),n.type=="attribute"){if(i<=n.offset)n.offset-=t.howMany;else if(t.offset<n.offset){const s=i-n.offset;n.offset=t.offset,n.howMany-=s}else if(t.offset<r)if(i<=r){const s=n.howMany;n.howMany=t.offset-n.offset;const a=s-n.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:a,count:this._changeCount++})}else n.howMany-=r-t.offset}}if(t.type=="attribute"){if(n.type=="insert")if(t.offset<n.offset&&i>n.offset){if(i>r){const s={type:"attribute",offset:r,howMany:i-r,count:this._changeCount++};this._handleChange(s,e),e.push(s)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offset<r&&(i>r?(t.nodesToHandle=i-r,t.offset=r):t.nodesToHandle=0);if(n.type=="remove"&&t.offset<n.offset&&i>n.offset){const s={type:"attribute",offset:n.offset,howMany:i-n.offset,count:this._changeCount++};this._handleChange(s,e),e.push(s),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}n.type=="attribute"&&(t.offset>=n.offset&&i<=r?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&i>=r&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:N._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:N._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const i=[];n=new Map(n);for(const[r,s]of e){const a=n.has(r)?n.get(r):null;a!==s&&i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:r,attributeOldValue:s,attributeNewValue:a,changeCount:this._changeCount++}),n.delete(r)}for(const[r,s]of n)i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:r,attributeOldValue:null,attributeNewValue:s,changeCount:this._changeCount++});return i}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),i=t.startOffset;if(n){for(const r of n)if(r.type=="insert"&&i>=r.offset&&i<r.offset+r.howMany)return!0}return this._isInInsertedElement(e)}_removeAllNestedChanges(t,e,n){const i=new T(N._createAt(t,e),N._createAt(t,e+n));for(const r of i.getItems({shallow:!0}))r.is("element")&&(this._elementSnapshots.delete(r),this._changesInElement.delete(r),this._removeAllNestedChanges(r,0,r.maxOffset))}}function ah(o){const t=[];for(const e of o)if(e.is("$text"))for(let n=0;n<e.data.length;n++)t.push({name:"$text",attributes:new Map(e.getAttributes())});else t.push({name:e.name,attributes:new Map(e.getAttributes())});return t}function uE(o,t){const e=[];let n=0,i=0;for(const r of t){if(r.offset>n){for(let s=0;s<r.offset-n;s++)e.push("e");i+=r.offset-n}if(r.type=="insert"){for(let s=0;s<r.howMany;s++)e.push("i");n=r.offset+r.howMany}else if(r.type=="remove"){for(let s=0;s<r.howMany;s++)e.push("r");n=r.offset,i+=r.howMany}else e.push(..."a".repeat(r.howMany).split("")),n=r.offset+r.howMany,i+=r.howMany}if(i<o)for(let r=0;r<o-i-n;r++)e.push("e");return e}function hE(o){const t="position"in o&&o.position.root.rootName=="$graveyard",e="range"in o&&o.range.root.rootName=="$graveyard";return!t&&!e}class gE{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}get version(){return this._version}set version(t){this._operations.length&&t>this._version+1&&this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new b("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];t===void 0&&(t=n.baseVersion);let i=e-1;for(const[a,c]of this._gaps)t>a&&t<c&&(t=c),i>a&&i<c&&(i=a-1);if(i<n.baseVersion||t>this.lastOperation.baseVersion)return[];let r=this._baseVersionToOperationIndex.get(t);r===void 0&&(r=0);let s=this._baseVersionToOperationIndex.get(i);return s===void 0&&(s=this._operations.length-1),this._operations.slice(r,s+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(e!==void 0)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class ui extends lt{constructor(t,e,n="main"){super(e),this._isAttached=!0,this._isLoaded=!0,this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}ui.prototype.is=function(o,t){return t?t===this.name&&(o==="rootElement"||o==="model:rootElement"||o==="element"||o==="model:element"):o==="rootElement"||o==="model:rootElement"||o==="element"||o==="model:element"||o==="node"||o==="model:node"};const ch="$graveyard";class fE extends ct(){constructor(t){super(),this.model=t,this.history=new gE,this.selection=new me(this),this.roots=new oe({idProperty:"rootName"}),this.differ=new dE(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",ch),this.listenTo(t,"applyOperation",(e,n)=>{const i=n[0];i.isDocumentOperation&&this.differ.bufferOperation(i)},{priority:"high"}),this.listenTo(t,"applyOperation",(e,n)=>{const i=n[0];i.isDocumentOperation&&this.history.addOperation(i)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(t.markers,"update",(e,n,i,r,s)=>{const a={...n.getData(),range:r};this.differ.bufferMarkerChange(n.name,s,a),i===null&&n.on("change",(c,l)=>{const d=n.getData();this.differ.bufferMarkerChange(n.name,{...d,range:l},d)})}),this.registerPostFixer(e=>{let n=!1;for(const i of this.roots)!i.isAttached()&&!i.isEmpty&&(e.remove(e.createRangeIn(i)),n=!0);for(const i of this.model.markers)i.getRange().root.isAttached()||(e.removeMarker(i),n=!0);return n})}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(ch)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new b("model-document-createroot-name-exists",this,{name:e});const n=new ui(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map(e=>e.rootName)}getRoots(t=!1){return this.roots.filter(e=>e!=this.graveyard&&(t||e.isAttached())&&e._isLoaded)}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=Sd(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,i=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(i)||e.createRange(i)}_validateSelectionRange(t){return lh(t.start)&&lh(t.end)}_callPostFixers(t){let e=!1;do for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break;while(e)}}function lh(o){const t=o.textNode;if(t){const e=t.data,n=o.offset-t.startOffset;return!Ar(e,n)&&!Cr(e,n)}return!0}class mE extends ct(){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof Nn?t.name:t;return this._markers.has(e)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,i=!1){const r=t instanceof Nn?t.name:t;if(r.includes(","))throw new b("markercollection-incorrect-marker-name",this);const s=this._markers.get(r);if(s){const l=s.getData(),d=s.getRange();let u=!1;return d.isEqual(e)||(s._attachLiveRange(Xt.fromRange(e)),u=!0),n!=s.managedUsingOperations&&(s._managedUsingOperations=n,u=!0),typeof i=="boolean"&&i!=s.affectsData&&(s._affectsData=i,u=!0),u&&this.fire(`update:${r}`,s,d,e,l),s}const a=Xt.fromRange(e),c=new Nn(r,a,n,i);return this._markers.set(r,c),this.fire(`update:${r}`,c,null,e,{...c.getData(),range:null}),c}_remove(t){const e=t instanceof Nn?t.name:t,n=this._markers.get(e);return n?(this._markers.delete(e),this.fire(`update:${e}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0):!1}_refresh(t){const e=t instanceof Nn?t.name:t,n=this._markers.get(e);if(!n)throw new b("markercollection-refresh-marker-not-exists",this);const i=n.getRange();this.fire(`update:${e}`,n,i,i,n.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)e.getRange().getIntersection(t)!==null&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}class Nn extends ct(Ve){constructor(t,e,n,i){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=i}get managedUsingOperations(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new b("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Nn.prototype.is=function(o){return o==="marker"||o==="model:marker"};class pE extends te{constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new b("detach-operation-on-document-node",this)}_execute(){Ju(T._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Me extends Ve{constructor(t){super(),this.markers=new Map,this._children=new lo,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push(lt.fromJSON(n)):e.push(ft.fromJSON(n));return new Me(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=kE(e);for(const i of n)i.parent!==null&&i._remove(),i.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const i of n)i.parent=null;return n}}Me.prototype.is=function(o){return o==="documentFragment"||o==="model:documentFragment"};function kE(o){return typeof o=="string"?[new ft(o)]:($t(o)||(o=[o]),Array.from(o).map(t=>typeof t=="string"?new ft(t):t instanceof ge?new ft(t.data,t.getAttributes()):t))}class bE{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new ft(t,e)}createElement(t,e){return new lt(t,e)}createDocumentFragment(){return new Me}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof ft&&t.data=="")return;const i=N._createAt(e,n);if(t.parent)if(hh(t.root,i.root)){this.move(T._createOn(t),i);return}else{if(t.root.document)throw new b("model-writer-insert-forbidden-move",this);this.remove(t)}const r=i.root.document?i.root.document.version:null,s=new Nt(i,t,r);if(t instanceof ft&&(s.shouldReceiveAttributes=!0),this.batch.addOperation(s),this.model.applyOperation(s),t instanceof Me)for(const[a,c]of t.markers){const l=N._createAt(c.root,0),u={range:new T(c.start._getCombined(l,i),c.end._getCombined(l,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(a)?this.updateMarker(a,u):this.addMarker(a,u)}}insertText(t,e,n,i){e instanceof Me||e instanceof lt||e instanceof N?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,i)}insertElement(t,e,n,i){e instanceof Me||e instanceof lt||e instanceof N?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,i)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof Me||e instanceof lt?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Me||e instanceof lt?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof T){const i=n.getMinimalFlatRanges();for(const r of i)dh(this,t,e,r)}else uh(this,t,e,n)}setAttributes(t,e){for(const[n,i]of De(t))this.setAttribute(n,i,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof T){const n=e.getMinimalFlatRanges();for(const i of n)dh(this,t,null,i)}else uh(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=n=>{for(const i of n.getAttributeKeys())this.removeAttribute(i,n)};if(!(t instanceof T))e(t);else for(const n of t.getItems())e(n)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof T))throw new b("writer-move-invalid-range",this);if(!t.isFlat)throw new b("writer-move-range-not-flat",this);const i=N._createAt(e,n);if(i.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!hh(t.root,i.root))throw new b("writer-move-different-document",this);const r=t.root.document?t.root.document.version:null,s=new ot(t.start,t.end.offset-t.start.offset,i,r);this.batch.addOperation(s),this.model.applyOperation(s)}remove(t){this._assertWriterUsedCorrectly();const n=(t instanceof T?t:T._createOn(t)).getMinimalFlatRanges().reverse();for(const i of n)this._addOperationForAffectedMarkers("move",i),wE(i.start,i.end.offset-i.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof lt))throw new b("writer-merge-no-element-before",this);if(!(n instanceof lt))throw new b("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(...t){return this.model.createSelection(...t)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(T._createIn(n),N._createAt(e,"end")),this.remove(n)}_merge(t){const e=N._createAt(t.nodeBefore,"end"),n=N._createAt(t.nodeAfter,0),i=t.root.document.graveyard,r=new N(i,[0]),s=t.root.document.version,a=new vt(n,t.nodeAfter.maxOffset,e,r,s);this.batch.addOperation(a),this.model.applyOperation(a)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof lt))throw new b("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,i=new Gt(N._createBefore(t),t.name,e,n);this.batch.addOperation(i),this.model.applyOperation(i)}split(t,e){this._assertWriterUsedCorrectly();let n=t.parent;if(!n.parent)throw new b("writer-split-element-no-parent",this);if(e||(e=n.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new b("writer-split-invalid-limit-element",this);let i,r;do{const s=n.root.document?n.root.document.version:null,a=n.maxOffset-t.offset,c=mt.getInsertionPosition(t),l=new mt(t,a,c,null,s);this.batch.addOperation(l),this.model.applyOperation(l),!i&&!r&&(i=n,r=t.parent.nextSibling),t=this.createPositionAfter(t.parent),n=t.parent}while(n!==e);return{position:t,range:new T(N._createAt(i,"end"),N._createAt(r,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new b("writer-wrap-range-not-flat",this);const n=e instanceof lt?e:new lt(e);if(n.childCount>0)throw new b("writer-wrap-element-not-empty",this);if(n.parent!==null)throw new b("writer-wrap-element-attached",this);this.insert(n,t.start);const i=new T(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(i,N._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),t.parent===null)throw new b("writer-unwrap-element-no-parent",this);this.move(T._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||typeof e.usingOperation!="boolean")throw new b("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,i=e.range,r=e.affectsData===void 0?!1:e.affectsData;if(this.model.markers.has(t))throw new b("writer-addmarker-marker-exists",this);if(!i)throw new b("writer-addmarker-no-range",this);return n?(wo(this,t,null,i,r),this.model.markers.get(t)):this.model.markers._set(t,i,n,r)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n=typeof t=="string"?t:t.name,i=this.model.markers.get(n);if(!i)throw new b("writer-updatemarker-marker-not-exists",this);if(!e){at("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),this.model.markers._refresh(i);return}const r=typeof e.usingOperation=="boolean",s=typeof e.affectsData=="boolean",a=s?e.affectsData:i.affectsData;if(!r&&!e.range&&!s)throw new b("writer-updatemarker-wrong-options",this);const c=i.getRange(),l=e.range?e.range:c;if(r&&e.usingOperation!==i.managedUsingOperations){e.usingOperation?wo(this,n,null,l,a):(wo(this,n,c,null,a),this.model.markers._set(n,l,void 0,a));return}i.managedUsingOperations?wo(this,n,c,l,a):this.model.markers._set(n,l,void 0,a)}removeMarker(t){this._assertWriterUsedCorrectly();const e=typeof t=="string"?t:t.name;if(!this.model.markers.has(e))throw new b("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations){this.model.markers._remove(e);return}const i=n.getRange();wo(this,e,i,null,n.affectsData)}addRoot(t,e="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new b("writer-addroot-root-exists",this);const i=this.model.document,r=new Ce(t,e,!0,i,i.version);return this.batch.addOperation(r),this.model.applyOperation(r),this.model.document.getRoot(t)}detachRoot(t){this._assertWriterUsedCorrectly();const e=typeof t=="string"?this.model.document.getRoot(t):t;if(!e||!e.isAttached())throw new b("writer-detachroot-no-root",this);for(const r of this.model.markers)r.getRange().root===e&&this.removeMarker(r);for(const r of e.getAttributeKeys())this.removeAttribute(r,e);this.remove(this.createRangeIn(e));const n=this.model.document,i=new Ce(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(i),this.model.applyOperation(i)}setSelection(...t){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...t)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),typeof t=="string")this._setSelectionAttribute(t,e);else for(const[n,i]of De(t))this._setSelectionAttribute(n,i)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),typeof t=="string")this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const i=me._getStoreAttributeKey(t);this.setAttribute(i,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=me._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new b("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const i=n.getRange();let r=!1;if(t==="move"){const s=e;r=s.containsPosition(i.start)||s.start.isEqual(i.start)||s.containsPosition(i.end)||s.end.isEqual(i.end)}else{const s=e,a=s.nodeBefore,c=s.nodeAfter,l=i.start.parent==a&&i.start.isAtEnd,d=i.end.parent==c&&i.end.offset==0,u=i.end.nodeAfter==c,f=i.start.nodeAfter==c;r=l||d||u||f}r&&this.updateMarker(n.name,{range:i})}}}function dh(o,t,e,n){const i=o.model,r=i.document;let s=n.start,a,c,l;for(const u of n.getWalker({shallow:!0}))l=u.item.getAttribute(t),a&&c!=l&&(c!=e&&d(),s=a),a=u.nextPosition,c=l;a instanceof N&&a!=s&&c!=e&&d();function d(){const u=new T(s,a),f=u.root.document?r.version:null,p=new Et(u,t,c,e,f);o.batch.addOperation(p),i.applyOperation(p)}}function uh(o,t,e,n){const i=o.model,r=i.document,s=n.getAttribute(t);let a,c;if(s!=e){if(n.root===n){const d=n.document?r.version:null;c=new Ie(n,t,s,e,d)}else{a=new T(N._createBefore(n),o.createPositionAfter(n));const d=a.root.document?r.version:null;c=new Et(a,t,s,e,d)}o.batch.addOperation(c),i.applyOperation(c)}}function wo(o,t,e,n,i){const r=o.model,s=r.document,a=new Wt(t,e,n,r.markers,!!i,s.version);o.batch.addOperation(a),r.applyOperation(a)}function wE(o,t,e,n){let i;if(o.root.document){const r=n.document,s=new N(r.graveyard,[0]);i=new ot(o,t,s,r.version)}else i=new pE(o,t);e.addOperation(i),n.applyOperation(i)}function hh(o,t){return o===t||o instanceof ui&&t instanceof ui}function AE(o,t,e={}){if(t.isCollapsed)return;const n=t.getFirstRange();if(n.root.rootName=="$graveyard")return;const i=o.schema;o.change(r=>{if(!e.doNotResetEntireContent&&TE(i,t)){SE(r,t);return}const s={};if(!e.doNotAutoparagraph){const l=t.getSelectedElement();l&&Object.assign(s,i.getAttributesWithProperty(l,"copyOnReplace",!0))}const[a,c]=CE(n);a.isTouching(c)||r.remove(r.createRange(a,c)),e.leaveUnmerged||(vE(r,a,c),i.removeDisallowedAttributes(a.parent.getChildren(),r)),ph(r,t,a),!e.doNotAutoparagraph&&EE(i,a)&&mh(r,a,t,s),a.detach(),c.detach()})}function CE(o){const t=o.root.document.model,e=o.start;let n=o.end;if(t.hasContent(o,{ignoreMarkers:!0})){const i=_E(n);if(i&&n.isTouching(t.createPositionAt(i,0))){const r=t.createSelection(o);t.modifySelection(r,{direction:"backward"});const s=r.getLastPosition(),a=t.createRange(s,n);t.hasContent(a,{ignoreMarkers:!0})||(n=s)}}return[Lt.fromPosition(e,"toPrevious"),Lt.fromPosition(n,"toNext")]}function _E(o){const t=o.parent,e=t.root.document.model.schema,n=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const i of n){if(e.isLimit(i))return null;if(e.isBlock(i))return i}}function vE(o,t,e){const n=o.model;if(!ms(o.model.schema,t,e))return;const[i,r]=xE(t,e);!i||!r||(!n.hasContent(i,{ignoreMarkers:!0})&&n.hasContent(r,{ignoreMarkers:!0})?fh(o,t,e,i.parent):gh(o,t,e,i.parent))}function gh(o,t,e,n){const i=t.parent,r=e.parent;if(!(i==n||r==n)){for(t=o.createPositionAfter(i),e=o.createPositionBefore(r),e.isEqual(t)||o.insert(r,t),o.merge(t);e.parent.isEmpty;){const s=e.parent;e=o.createPositionBefore(s),o.remove(s)}ms(o.model.schema,t,e)&&gh(o,t,e,n)}}function fh(o,t,e,n){const i=t.parent,r=e.parent;if(!(i==n||r==n)){for(t=o.createPositionAfter(i),e=o.createPositionBefore(r),e.isEqual(t)||o.insert(i,e);t.parent.isEmpty;){const s=t.parent;t=o.createPositionBefore(s),o.remove(s)}e=o.createPositionBefore(r),yE(o,e),ms(o.model.schema,t,e)&&fh(o,t,e,n)}}function yE(o,t){const e=t.nodeBefore,n=t.nodeAfter;e.name!=n.name&&o.rename(e,n.name),o.clearAttributes(e),o.setAttributes(Object.fromEntries(n.getAttributes()),e),o.merge(t)}function ms(o,t,e){const n=t.parent,i=e.parent;return n==i||o.isLimit(n)||o.isLimit(i)?!1:DE(t,e,o)}function xE(o,t){const e=o.getAncestors(),n=t.getAncestors();let i=0;for(;e[i]&&e[i]==n[i];)i++;return[e[i],n[i]]}function EE(o,t){const e=o.checkChild(t,"$text"),n=o.checkChild(t,"paragraph");return!e&&n}function DE(o,t,e){const n=new T(o,t);for(const i of n.getWalker())if(e.isLimit(i.item))return!1;return!0}function mh(o,t,e,n={}){const i=o.createElement("paragraph");o.model.schema.setAllowedAttributes(i,n,o),o.insert(i,t),ph(o,e,o.createPositionAt(i,0))}function SE(o,t){const e=o.model.schema.getLimitElement(t);o.remove(o.createRangeIn(e)),mh(o,o.createPositionAt(e,0),t)}function TE(o,t){const e=o.getLimitElement(t);if(!t.containsEntireContent(e))return!1;const n=t.getFirstRange();return n.start.parent==n.end.parent?!1:o.checkChild(e,"paragraph")}function ph(o,t,e){t instanceof me?o.setSelection(e):t.setTo(e)}function IE(o,t){return o.change(e=>{const n=e.createDocumentFragment(),i=t.getFirstRange();if(!i||i.isCollapsed)return n;const r=i.start.root,s=i.start.getCommonPath(i.end),a=r.getNodeByPath(s);let c;i.start.parent==i.end.parent?c=i:c=e.createRange(e.createPositionAt(a,i.start.path[s.length]),e.createPositionAt(a,i.end.path[s.length]+1));const l=c.end.offset-c.start.offset;for(const d of c.getItems({shallow:!0}))d.is("$textProxy")?e.appendText(d.data,d.getAttributes(),n):e.append(e.cloneElement(d,!0),n);if(c!=i){const d=i._getTransformedByMove(c.start,e.createPositionAt(n,0),l)[0],u=e.createRange(e.createPositionAt(n,0),d.start),f=e.createRange(d.end,e.createPositionAt(n,"end"));kh(f,e),kh(u,e)}return n})}function kh(o,t){const e=[];Array.from(o.getItems({direction:"backward"})).map(n=>t.createRangeOn(n)).filter(n=>(n.start.isAfter(o.start)||n.start.isEqual(o.start))&&(n.end.isBefore(o.end)||n.end.isEqual(o.end))).forEach(n=>{e.push(n.start.parent),t.remove(n)}),e.forEach(n=>{let i=n;for(;i.parent&&i.isEmpty;){const r=t.createRangeOn(i);i=i.parent,t.remove(r)}})}function ME(o,t,e){return o.change(n=>{const i=e||o.document.selection;i.isCollapsed||o.deleteContent(i,{doNotAutoparagraph:!0});const r=new BE(o,n,i.anchor),s=[];let a;if(t.is("documentFragment")){if(t.markers.size){const d=[];for(const[u,f]of t.markers){const{start:p,end:w}=f,S=p.isEqual(w);d.push({position:p,name:u,isCollapsed:S},{position:w,name:u,isCollapsed:S})}d.sort(({position:u},{position:f})=>u.isBefore(f)?1:-1);for(const{position:u,name:f,isCollapsed:p}of d){let w=null,S=null;const B=u.parent===t&&u.isAtStart,z=u.parent===t&&u.isAtEnd;!B&&!z?(w=n.createElement("$marker"),n.insert(w,u)):p&&(S=B?"start":"end"),s.push({name:f,element:w,collapsed:S})}}a=t.getChildren()}else a=[t];r.handleNodes(a);let c=r.getSelectionRange();if(t.is("documentFragment")&&s.length){const d=c?Xt.fromRange(c):null,u={};for(let f=s.length-1;f>=0;f--){const{name:p,element:w,collapsed:S}=s[f],B=!u[p];if(B&&(u[p]=[]),w){const z=n.createPositionAt(w,"before");u[p].push(z),n.remove(w)}else{const z=r.getAffectedRange();if(!z){S&&u[p].push(r.position);continue}S?u[p].push(z[S]):u[p].push(B?z.start:z.end)}}for(const[f,[p,w]]of Object.entries(u))p&&w&&p.root===w.root&&n.addMarker(f,{usingOperation:!0,affectsData:!0,range:new T(p,w)});d&&(c=d.toRange(),d.detach())}c&&(i instanceof me?n.setSelection(c):i.setTo(c));const l=r.getAffectedRange()||o.createRange(i.anchor);return r.destroy(),l})}class BE{constructor(t,e,n){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0)}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new b("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?T._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new T(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){if(this.schema.isObject(t)){this._handleObject(t);return}let e=this._checkAndAutoParagraphToAllowedPosition(t);if(!e&&(e=this._checkAndSplitToAllowedPosition(t),!e)){this._handleDisallowedNode(t);return}this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=Lt.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new b("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=t:this._nodeToSelect=null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=Lt.fromPosition(t,"toPrevious")),(!this._affectedEnd||this._affectedEnd.isBefore(t))&&(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Lt.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof lt)||!this._canMergeLeft(t))return;const e=Lt._createBefore(t);e.stickiness="toNext";const n=Lt.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=Lt._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Lt._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof lt)||!this._canMergeRight(t))return;const e=Lt._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new b("insertcontent-invalid-insertion-position",this);this.position=N._createAt(e.nodeBefore,"end");const n=Lt.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=Lt._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Lt._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof lt&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof lt&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const n=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=n,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function bh(o,t,e="auto"){const n=o.getSelectedElement();if(n&&t.schema.isObject(n)&&!t.schema.isInline(n))return e=="before"||e=="after"?t.createRange(t.createPositionAt(n,e)):t.createRangeOn(n);const i=It(o.getSelectedBlocks());if(!i)return t.createRange(o.focus);if(i.isEmpty)return t.createRange(t.createPositionAt(i,0));const r=t.createPositionAfter(i);return o.focus.isTouching(r)?t.createRange(r):t.createRange(t.createPositionBefore(i))}function NE(o,t,e,n={}){if(!o.schema.isObject(t))throw new b("insertobject-element-not-an-object",o,{object:t});const i=e||o.document.selection;let r=i;n.findOptimalPosition&&o.schema.isBlock(t)&&(r=o.createSelection(bh(i,o,n.findOptimalPosition)));const s=It(i.getSelectedBlocks()),a={};return s&&Object.assign(a,o.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),o.change(c=>{r.isCollapsed||o.deleteContent(r,{doNotAutoparagraph:!0});let l=t;const d=r.anchor.parent;!o.schema.checkChild(d,t)&&o.schema.checkChild(d,"paragraph")&&o.schema.checkChild("paragraph",t)&&(l=c.createElement("paragraph"),c.insert(t,l)),o.schema.setAllowedAttributes(l,a,c);const u=o.insertContent(l,r);return u.isCollapsed||n.setSelection&&zE(c,t,n.setSelection,a),u})}function zE(o,t,e,n){const i=o.model;if(e=="on"){o.setSelection(t,"on");return}if(e!="after")throw new b("insertobject-invalid-place-parameter-value",i);let r=t.nextSibling;if(i.schema.isInline(t)){o.setSelection(t,"after");return}!(r&&i.schema.checkChild(r,"$text"))&&i.schema.checkChild(t.parent,"paragraph")&&(r=o.createElement("paragraph"),i.schema.setAllowedAttributes(r,n,o),i.insertContent(r,o.createPositionAfter(t))),r&&o.setSelection(r,0)}const PE=' ,.?!:;"-()';function LE(o,t,e={}){const n=o.schema,i=e.direction!="backward",r=e.unit?e.unit:"character",s=!!e.treatEmojiAsSingleUnit,a=t.focus,c=new fe({boundaries:FE(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),l={walker:c,schema:n,isForward:i,unit:r,treatEmojiAsSingleUnit:s};let d;for(;d=c.next();){if(d.done)return;const u=OE(l,d.value);if(u){t instanceof me?o.change(f=>{f.setSelectionFocus(u)}):t.setFocus(u);return}}}function OE(o,t){const{isForward:e,walker:n,unit:i,schema:r,treatEmojiAsSingleUnit:s}=o,{type:a,item:c,nextPosition:l}=t;if(a=="text")return o.unit==="word"?jE(n,e):RE(n,i,s);if(a==(e?"elementStart":"elementEnd")){if(r.isSelectable(c))return N._createAt(c,e?"after":"before");if(r.checkChild(l,"$text"))return l}else{if(r.isLimit(c)){n.skip(()=>!0);return}if(r.checkChild(l,"$text"))return l}}function RE(o,t,e){const n=o.position.textNode;if(n){const i=n.data;let r=o.position.offset-n.startOffset;for(;Ar(i,r)||t=="character"&&Cr(i,r)||e&&Kl(i,r);)o.next(),r=o.position.offset-n.startOffset}return o.position}function jE(o,t){let e=o.position.textNode;for(e||(e=t?o.position.nodeAfter:o.position.nodeBefore);e&&e.is("$text");){const n=o.position.offset-e.startOffset;if(HE(e,n,t))e=t?o.position.nodeAfter:o.position.nodeBefore;else{if(VE(e.data,n,t))break;o.next()}}return o.position}function FE(o,t){const e=o.root,n=N._createAt(e,t?"end":0);return t?new T(o,n):new T(n,o)}function VE(o,t,e){const n=t+(e?0:-1);return PE.includes(o.charAt(n))}function HE(o,t,e){return t===(e?o.offsetSize:0)}class UE extends rt(){constructor(){super(),this.markers=new mE,this.document=new fE(this),this.schema=new T2,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(t=>this.decorate(t)),this.on("applyOperation",(t,e)=>{e[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((t,e)=>{if(e.name==="$marker")return!0}),A2(this),this.document.registerPostFixer(ju),this.on("insertContent",(t,[e,n])=>{t.return=ME(this,e,n)}),this.on("insertObject",(t,[e,n,i])=>{t.return=NE(this,e,n,i)}),this.on("canEditAt",t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()})}change(t){try{return this._pendingChanges.length===0?(this._pendingChanges.push({batch:new Bn,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(e){b.rethrowUnexpectedError(e,this)}}enqueueChange(t,e){try{t?typeof t=="function"?(e=t,t=new Bn):t instanceof Bn||(t=new Bn(t)):t=new Bn,this._pendingChanges.push({batch:t,callback:e}),this._pendingChanges.length==1&&this._runPendingChanges()}catch(n){b.rethrowUnexpectedError(n,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...i){const r=ps(e,n);return this.fire("insertContent",[t,r,n,...i])}insertObject(t,e,n,i,...r){const s=ps(e,n);return this.fire("insertObject",[t,s,i,i,...r])}deleteContent(t,e){AE(this,t,e)}modifySelection(t,e){LE(this,t,e)}getSelectedContent(t){return IE(this,t)}hasContent(t,e={}){const n=t instanceof T?t:T._createIn(t);if(n.isCollapsed)return!1;const{ignoreWhitespaces:i=!1,ignoreMarkers:r=!1}=e;if(!r){for(const s of this.markers.getMarkersIntersectingRange(n))if(s.affectsData)return!0}for(const s of n.getItems())if(this.schema.isContent(s))if(s.is("$textProxy"))if(i){if(s.data.search(/\S/)!==-1)return!0}else return!0;else return!0;return!1}canEditAt(t){const e=ps(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new N(t,e,n)}createPositionAt(t,e){return N._createAt(t,e)}createPositionAfter(t){return N._createAfter(t)}createPositionBefore(t){return N._createBefore(t)}createRange(t,e){return new T(t,e)}createRangeIn(t){return T._createIn(t)}createRangeOn(t){return T._createOn(t)}createSelection(...t){return new Jt(...t)}createBatch(t){return new Bn(t)}createOperationFromJSON(t){return nE.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new bE(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return t}}function ps(o,t){if(o)return o instanceof Jt||o instanceof me?o:o instanceof sn?t||t===0?new Jt(o,t):o.is("rootElement")?new Jt(o,"in"):new Jt(o,"on"):new Jt(o)}class qE extends je{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class hi extends je{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(t){this.fire(t.type,t)}}class He{constructor(t){this.document=t}createDocumentFragment(t){return new rn(this.document,t)}createElement(t,e,n){return new Yt(this.document,t,e,n)}createText(t){return new gt(this.document,t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const i=n.getChildIndex(t);return this.removeChildren(i,1,n),this.insertChild(i,e,n),!0}return!1}unwrapElement(t){const e=t.parent;if(e){const n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}rename(t,e){const n=new Yt(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){Kt(t)&&n===void 0?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return O._createAt(t,e)}createPositionAfter(t){return O._createAfter(t)}createPositionBefore(t){return O._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new ue(...t)}}class WE{constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new b("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}class GE extends ie{constructor(t){super(),this.editor=t}set(t,e,n={}){if(typeof e=="string"){const i=e;e=(r,s)=>{this.editor.execute(i),s()}}super.set(t,e,n)}}class $E extends rt(){constructor(t={}){super();const e=this.constructor,n=t.language||e.defaultConfig&&e.defaultConfig.language;this._context=t.context||new vd({language:n}),this._context._addEditor(this,!t.context);const i=Array.from(e.builtinPlugins||[]);this.config=new El(t,e.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new _d(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new WE,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new UE,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const r=new Ay;this.data=new Q2(this.model,r),this.editing=new E2(this.model,r),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new X2([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new GE(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new b("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if(typeof t!="string"&&typeof t!="symbol")throw new b("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),this._readOnlyLocks.size===1&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(t){if(typeof t!="string"&&typeof t!="symbol")throw new b("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),this._readOnlyLocks.size===0&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],i=t.get("extraPlugins")||[],r=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(i),n,r)}destroy(){let t=Promise.resolve();return this.state=="initializing"&&(t=new Promise(e=>this.once("ready",e))),t.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(t,...e){try{return this.commands.execute(t,...e)}catch(n){b.rethrowUnexpectedError(n,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}}function KE(o){if(!$e(o.updateSourceElement))throw new b("attachtoform-missing-elementapi-interface",o);const t=o.sourceElement;if(ZE(t)&&t.form){let e;const n=t.form,i=()=>o.updateSourceElement();$e(n.submit)&&(e=n.submit,n.submit=()=>{i(),e.apply(n)}),n.addEventListener("submit",i),o.on("destroy",()=>{n.removeEventListener("submit",i),e&&(n.submit=e)})}}function ZE(o){return!!o&&o.tagName.toLowerCase()==="textarea"}function gi(o){class t extends o{setData(n){this.data.set(n)}getData(n){return this.data.get(n)}}return t}{const o=gi(Object);gi.setData=o.prototype.setData,gi.getData=o.prototype.getData}function ks(o){class t extends o{updateSourceElement(n){if(!this.sourceElement)throw new b("editor-missing-sourceelement",this);const i=this.config.get("updateSourceElementOnDestroy"),r=this.sourceElement instanceof HTMLTextAreaElement;if(!i&&!r){Pl(this.sourceElement,"");return}const s=typeof n=="string"?n:this.data.get();Pl(this.sourceElement,s)}}return t}ks.updateSourceElement=ks(Object).prototype.updateSourceElement;class fi extends Yo{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new oe({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if(typeof t!="string")throw new b("pendingactions-add-invalid-message",this);const e=new(rt());return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const dt={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',history:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v12.862c0 .64-.532 1.038-1.184 1.038H2.184C1.532 16 1 15.603 1 14.962V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.129 2.129 0 0 1 .157-2.364 2.133 2.133 0 1 1-.157 2.363Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.2 1C.536 1 0 1.47 0 2.1v12.863C0 15.603.547 16 1.199 16h6.3c.908-1.19 1.892-2.41 2.8-3.6L6.615 9.15a.694.694 0 0 0-.957-.033L1.5 13.5v-11h15v6c.6.6 1.012.857 1.5 1.5V2.1c0-.63-.55-1.1-1.201-1.1h-15.6Zm11.724 2.805a2.133 2.133 0 0 0-.998.283 2.129 2.129 0 0 0-.992 1.295c-.074.27-.095.55-.057.828a2.136 2.136 0 0 0 1.56 1.783 2.13 2.13 0 0 0 2.612-1.506 2.129 2.129 0 0 0-2.125-2.683Z"/><path d="M15.208 19.011c.436 0 .79-.327.79-.763v-5.4l2.059 2.455a.79.79 0 0 0 1.212-1.015l-3.352-3.995a.79.79 0 0 0-.996-.179.786.786 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017L14.5 12.9v5.3c0 .437.272.811.709.811Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.54 1 0 1.47 0 2.1v12.86c0 .64.448 1.029 1.1 1.039h6.4v-6l-.885-.85a.692.692 0 0 0-.955-.033L1.5 13.5v-11h15V10H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.129 2.129 0 0 0-1.621.832A2.125 2.125 0 0 0 11.146 7a2.13 2.13 0 0 0 3.905-.512 2.135 2.135 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.367-.44Z"/><path clip-rule="evenodd" d="M19.5 12.5v6.156c0 .224-.192.439-.35.597a.844.844 0 0 1-.597.247H9.834a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.532c.223 0 .476.049.634.207l1 .793h4.5c.224 0 .491.214.65.372.158.158.35.404.35.628ZM18 13h-4.5l-1-1h-2v6H18v-5Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_355_284)"><path d="M1.201 1C.54 1 0 1.47 0 2.1v12.863C0 15.603.548 16 1.2 16H8c.022-1.034.222-1.961.783-2.9L9.5 12 6.617 9.15a.694.694 0 0 0-.957-.033L1.5 13.5v-11h15v5.8c.58.188 1.012.43 1.5.8v-7c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.133 2.133 0 0 0-.996.283 2.131 2.131 0 0 0-.994 1.295 2.136 2.136 0 0 0 1.506 2.611 2.13 2.13 0 0 0 2.61-1.505 2.128 2.128 0 0 0-2.126-2.684Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.649.649 0 0 0-.096.493.665.665 0 0 0 .278.417.7.7 0 0 0 .944-.233 1.741 1.741 0 0 1 2.478-.464 1.869 1.869 0 0 1 .476 2.55.634.634 0 0 0-.071.5.648.648 0 0 0 .309.397.628.628 0 0 0 .869-.19l.027-.042a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.781-.044.065a3.228 3.228 0 0 0 .82 4.404 3.005 3.005 0 0 0 4.275-.799l.13-.196a.626.626 0 0 0 .092-.475.642.642 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.028a1.742 1.742 0 0 1-2.477.462 1.87 1.87 0 0 1-.476-2.551l.03-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.407l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.837-.19-1.067-.346-.229-.82-.123-1.059.237l-1.268 1.907c-.239.36-.153.837.192 1.066.345.23.818.124 1.057-.236l1.268-1.907Z"/></g><defs><clipPath id="clip0_355_284"><rect width="20" height="20"/></clipPath></defs></svg>',lowVision:`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>
|
|
|
`,textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M.91 10.488A.909.909 0 0 0 0 11.4v6.877c0 .505.405.91.91.91h18.178a.909.909 0 0 0 .912-.91V11.4a.91.91 0 0 0-.912-.912H.91Zm2.758 1.5h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516l2.152-5.7Zm4.947 0h1.801v4.3h2.7v1.4h-4.5v-5.7Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9v-1.4Zm-8.517 1.457-.614 2.059h1.262l-.648-2.06Z"/><path d="M3.035 0C2.446 0 2 .54 2 1.098V9.5h1.5v-8h13v8H18V1.098C18 .539 17.48 0 16.9 0H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.894 1.894 0 0 0-.376 1.396 1.89 1.89 0 0 0 1.387 1.58c.485.13 1.004.063 1.439-.187a1.887 1.887 0 0 0-1.008-3.526ZM7.463 7.163a.611.611 0 0 0-.432.154L5.071 9.5h5.119L7.88 7.348a.627.627 0 0 0-.417-.184Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 9.5h2.969l-.92-1.113a.617.617 0 0 0-.42-.164Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',objectSizeSmall:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',objectSizeMedium:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>'};var wh=L(4768),bs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};bs.insert="head",bs.singleton=!0,F()(wh.Z,bs),wh.Z.locals;const{threeVerticalDots:Ah}=dt,YE={alignLeft:dt.alignLeft,bold:dt.bold,importExport:dt.importExport,paragraph:dt.paragraph,plus:dt.plus,text:dt.text,threeVerticalDots:dt.threeVerticalDots,pilcrow:dt.pilcrow,dragIndicator:dt.dragIndicator};class ws extends Y{constructor(t,e){super(t);const n=this.bindTemplate,i=this.t;this.options=e||{},this.set("ariaLabel",i("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ht,this.keystrokes=new ie,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new QE(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const r=t.uiLanguageDirection==="rtl";this._focusCycler=new Te({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[r?"arrowright":"arrowleft","arrowup"],focusNext:[r?"arrowleft":"arrowright","arrowdown"]}});const s=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];this.options.shouldGroupWhenFull&&this.options.isFloating&&s.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:s,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:V0(this)}}),this._behavior=this.options.shouldGroupWhenFull?new XE(this):new JE(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",(t,e)=>{this.focusTracker.add(e.element)}),this.items.on("remove",(t,e)=>{this.focusTracker.remove(e.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n))}_buildItemsFromConfig(t,e,n){const i=bd(t),r=n||i.removeItems;return this._cleanItemsConfiguration(i.items,e,r).map(a=>_t(a)?this._createNestedToolbarDropdown(a,e,r):a==="|"?new kd:a==="-"?new F0:e.create(a)).filter(a=>!!a)}_cleanItemsConfiguration(t,e,n){const i=t.filter((r,s,a)=>r==="|"?!0:n.indexOf(r)!==-1?!1:r==="-"?this.options.shouldGroupWhenFull?(at("toolbarview-line-break-ignored-when-grouping-items",a),!1):!0:!_t(r)&&!e.has(r)?(at("toolbarview-item-unavailable",{item:r}),!1):!0);return this._cleanSeparatorsAndLineBreaks(i)}_cleanSeparatorsAndLineBreaks(t){const e=s=>s!=="-"&&s!=="|",n=t.length,i=t.findIndex(e);if(i===-1)return[];const r=n-t.slice().reverse().findIndex(e);return t.slice(i,r).filter((s,a,c)=>e(s)?!0:!(a>0&&c[a-1]===s))}_createNestedToolbarDropdown(t,e,n){let{label:i,icon:r,items:s,tooltip:a=!0,withText:c=!1}=t;if(s=this._cleanItemsConfiguration(s,e,n),!s.length)return null;const l=this.locale,d=_e(l);return i||at("toolbarview-nested-toolbar-dropdown-missing-label",t),d.class="ck-toolbar__nested-toolbar-dropdown",d.buttonView.set({label:i,tooltip:a,withText:!!c}),r!==!1?d.buttonView.icon=YE[r]||r||Ah:d.buttonView.withText=!0,xs(d,()=>d.toolbarView._buildItemsFromConfig(s,e,n)),d}}class QE extends Y{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class JE{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using(n=>n),t.focusables.bindTo(t.items).using(n=>n),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class XE{constructor(t){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),t.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),t.children.on("change",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(e,n)=>{const i=n.index,r=Array.from(n.added);for(const s of n.removed)i>=this.ungroupedItems.length?this.groupedItems.remove(s):this.ungroupedItems.remove(s);for(let s=i;s<i+r.length;s++){const a=r[s-i];s>this.ungroupedItems.length?this.groupedItems.add(a,s-this.ungroupedItems.length):this.ungroupedItems.add(a,s)}this._updateGrouping()}),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Je(this.viewElement)){this.shouldUpdateGroupingOnNextResize=!0;return}const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new Q(t.lastChild),i=new Q(t);if(!this.cachedPadding){const r=U.window.getComputedStyle(t),s=e==="ltr"?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(r[s])}return e==="ltr"?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}_enableGroupingOnResize(){let t;this.resizeObserver=new bt(this.viewElement,e=>{(!t||t!==e.contentRect.width||this.shouldUpdateGroupingOnNextResize)&&(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new kd),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=_e(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition=t.uiLanguageDirection==="ltr"?"sw":"se",xs(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:t.uiLanguageDirection==="rtl"?"se":"sw",icon:Ah}),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(t=>{this.viewFocusables.add(t)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class As extends Y{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",n=>!n)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Ch extends Y{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class mi extends Y{constructor(t,e=new Ir){super(t);const n=this.bindTemplate,i=new vh(t);this.set({label:"",isVisible:!0}),this.labelView=e,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,i]),i.set({role:"group",ariaLabelledBy:e.id}),i.focusTracker.destroy(),i.keystrokes.destroy(),this.items=i.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",n.if("isVisible","ck-hidden",r=>!r)]},children:this.children})}focus(){if(this.items){const t=this.items.find(e=>!(e instanceof Ch));t&&t.focus()}}}var _h=L(179),Cs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Cs.insert="head",Cs.singleton=!0,F()(_h.Z,Cs),_h.Z.locals;class vh extends Y{constructor(t){super(t),this._listItemGroupToChangeListeners=new WeakMap;const e=this.bindTemplate;this.focusables=new be,this.items=this.createCollection(),this.focusTracker=new Ht,this.keystrokes=new ie,this._focusCycler=new Te({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:e.to("role"),"aria-label":e.to("ariaLabel"),"aria-labelledby":e.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const t of this.items)t instanceof mi?this._registerFocusableItemsGroup(t):t instanceof As&&this._registerFocusableListItem(t);this.items.on("change",(t,e)=>{for(const n of e.removed)n instanceof mi?this._deregisterFocusableItemsGroup(n):this._deregisterFocusableListItem(n);for(const n of Array.from(e.added).reverse())n instanceof mi?this._registerFocusableItemsGroup(n,e.index):this._registerFocusableListItem(n,e.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(t,e){this.focusTracker.add(t.element),this.focusables.add(t,e)}_deregisterFocusableListItem(t){this.focusTracker.remove(t.element),this.focusables.remove(t)}_getOnGroupItemsChangeCallback(t){return(e,n)=>{for(const i of n.removed)this._deregisterFocusableListItem(i);for(const i of Array.from(n.added).reverse())this._registerFocusableListItem(i,this.items.getIndex(t)+n.index)}}_registerFocusableItemsGroup(t,e){Array.from(t.items).forEach((i,r)=>{const s=typeof e<"u"?e+r:void 0;this._registerFocusableListItem(i,s)});const n=this._getOnGroupItemsChangeCallback(t);this._listItemGroupToChangeListeners.set(t,n),t.items.on("change",n)}_deregisterFocusableItemsGroup(t){for(const e of t.items)this._deregisterFocusableListItem(e);t.items.off("change",this._listItemGroupToChangeListeners.get(t)),this._listItemGroupToChangeListeners.delete(t)}}var yh=L(4791),_s={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};_s.insert="head",_s.singleton=!0,F()(yh.Z,_s),yh.Z.locals;class pi extends Y{constructor(t,e){super(t);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(e),this.arrowView=this._createArrowView(),this.keystrokes=new ie,this.focusTracker=new Ht,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",i=>!i),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())}),this.keystrokes.set("arrowleft",(t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(t){const e=t||new ht;return t||e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const t=new ht,e=t.bindTemplate;return t.icon=Pr,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",n=>String(n))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}var xh=L(2704),vs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};vs.insert="head",vs.singleton=!0,F()(xh.Z,vs),xh.Z.locals;var Eh=L(1883),ys={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ys.insert="head",ys.singleton=!0,F()(Eh.Z,ys),Eh.Z.locals;function _e(o,t=pd){const e=typeof t=="function"?new t(o):t,n=new j0(o),i=new Dn(o,e,n);return e.bind("isEnabled").to(i),e instanceof pi?e.arrowView.bind("isOn").to(i,"isOpen"):e.bind("isOn").to(i,"isOpen"),tD(i),i}function xs(o,t,e={}){o.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),o.isOpen?Dh(o,t,e):o.once("change:isOpen",()=>Dh(o,t,e),{priority:"highest"}),e.enableActiveItemFocusOnDropdownOpen&&Th(o,()=>o.toolbarView.items.find(n=>n.isOn))}function Dh(o,t,e){const n=o.locale,i=n.t,r=o.toolbarView=new ws(n),s=typeof t=="function"?t():t;r.ariaLabel=e.ariaLabel||i("Dropdown toolbar"),e.maxWidth&&(r.maxWidth=e.maxWidth),e.class&&(r.class=e.class),e.isCompact&&(r.isCompact=e.isCompact),e.isVertical&&(r.isVertical=!0),s instanceof be?r.items.bindTo(s).using(a=>a):r.items.addMany(s),o.panelView.children.add(r),r.items.delegate("execute").to(o)}function Es(o,t,e={}){o.isOpen?Sh(o,t,e):o.once("change:isOpen",()=>Sh(o,t,e),{priority:"highest"}),Th(o,()=>o.listView.items.find(n=>n instanceof As?n.children.first.isOn:!1))}function Sh(o,t,e){const n=o.locale,i=o.listView=new vh(n),r=typeof t=="function"?t():t;i.ariaLabel=e.ariaLabel,i.role=e.role,Ih(o,i.items,r,n),o.panelView.children.add(i),i.items.delegate("execute").to(o)}function Th(o,t){o.on("change:isOpen",()=>{if(!o.isOpen)return;const e=t();e&&(typeof e.focus=="function"?e.focus():at("ui-dropdown-focus-child-on-open-child-missing-focus",{view:e}))},{priority:Le.low-10})}function tD(o){eD(o),nD(o),oD(o),iD(o),rD(o),sD(o)}function eD(o){o.on("render",()=>{_({emitter:o,activator:()=>o.isOpen,callback:()=>{o.isOpen=!1},contextElements:()=>[o.element,...o.focusTracker._elements]})})}function nD(o){o.on("execute",t=>{t.source instanceof Ko||(o.isOpen=!1)})}function oD(o){o.focusTracker.on("change:isFocused",(t,e,n)=>{o.isOpen&&!n&&(o.isOpen=!1)})}function iD(o){o.keystrokes.set("arrowdown",(t,e)=>{o.isOpen&&(o.panelView.focus(),e())}),o.keystrokes.set("arrowup",(t,e)=>{o.isOpen&&(o.panelView.focusLast(),e())})}function rD(o){o.on("change:isOpen",(t,e,n)=>{if(n)return;const i=o.panelView.element;i&&i.contains(U.document.activeElement)&&o.buttonView.focus()})}function sD(o){o.on("change:isOpen",(t,e,n)=>{n&&o.panelView.focus()},{priority:"low"})}function Ih(o,t,e,n){t.bindTo(e).using(i=>{if(i.type==="separator")return new Ch(n);if(i.type==="group"){const r=new mi(n);return r.set({label:i.label}),Ih(o,r.items,i.items,n),r.items.delegate("execute").to(o),r}else if(i.type==="button"||i.type==="switchbutton"){const r=new As(n);let s;return i.type==="button"?(s=new ht(n),s.extendTemplate({attributes:{"aria-checked":s.bindTemplate.to("isOn")}})):s=new Ko(n),s.bind(...Object.keys(i.model)).to(i.model),s.delegate("execute").to(r),r.children.add(s),r}return null})}const ki=(o,t,e)=>{const n=new R0(o.locale);return n.set({id:t,ariaDescribedById:e}),n.bind("isReadOnly").to(o,"isEnabled",i=>!i),n.bind("hasError").to(o,"errorText",i=>!!i),n.on("input",()=>{o.errorText=null}),o.bind("isEmpty","isFocused","placeholder").to(n),n},Ao=(o,t=0,e=1)=>o>e?e:o<t?t:o,Ot=(o,t=0,e=Math.pow(10,t))=>Math.round(e*o)/e,aD=o=>hD(Ds(o)),Ds=o=>(o[0]==="#"&&(o=o.substring(1)),o.length<6?{r:parseInt(o[0]+o[0],16),g:parseInt(o[1]+o[1],16),b:parseInt(o[2]+o[2],16),a:o.length===4?Ot(parseInt(o[3]+o[3],16)/255,2):1}:{r:parseInt(o.substring(0,2),16),g:parseInt(o.substring(2,4),16),b:parseInt(o.substring(4,6),16),a:o.length===8?Ot(parseInt(o.substring(6,8),16)/255,2):1}),cD=o=>uD(dD(o)),lD=({h:o,s:t,v:e,a:n})=>{const i=(200-t)*e/100;return{h:Ot(o),s:Ot(i>0&&i<200?t*e/100/(i<=100?i:200-i)*100:0),l:Ot(i/2),a:Ot(n,2)}},Ss=o=>{const{h:t,s:e,l:n}=lD(o);return`hsl(${t}, ${e}%, ${n}%)`},dD=({h:o,s:t,v:e,a:n})=>{o=o/360*6,t=t/100,e=e/100;const i=Math.floor(o),r=e*(1-t),s=e*(1-(o-i)*t),a=e*(1-(1-o+i)*t),c=i%6;return{r:Ot([e,s,r,r,a,e][c]*255),g:Ot([a,e,e,s,r,r][c]*255),b:Ot([r,r,a,e,e,s][c]*255),a:Ot(n,2)}},bi=o=>{const t=o.toString(16);return t.length<2?"0"+t:t},uD=({r:o,g:t,b:e,a:n})=>{const i=n<1?bi(Ot(n*255)):"";return"#"+bi(o)+bi(t)+bi(e)+i},hD=({r:o,g:t,b:e,a:n})=>{const i=Math.max(o,t,e),r=i-Math.min(o,t,e),s=r?i===o?(t-e)/r:i===t?2+(e-o)/r:4+(o-t)/r:0;return{h:Ot(60*(s<0?s+6:s)),s:Ot(i?r/i*100:0),v:Ot(i/255*100),a:n}},Mh=(o,t)=>{if(o===t)return!0;for(const e in o)if(o[e]!==t[e])return!1;return!0},gD=(o,t)=>o.toLowerCase()===t.toLowerCase()?!0:Mh(Ds(o),Ds(t)),Bh={},Nh=o=>{let t=Bh[o];return t||(t=document.createElement("template"),t.innerHTML=o,Bh[o]=t),t},Ts=(o,t,e)=>{o.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let zn=!1;const Is=o=>"touches"in o,fD=o=>zn&&!Is(o)?!1:(zn||(zn=Is(o)),!0),zh=(o,t)=>{const e=Is(t)?t.touches[0]:t,n=o.el.getBoundingClientRect();Ts(o.el,"move",o.getMove({x:Ao((e.pageX-(n.left+window.pageXOffset))/n.width),y:Ao((e.pageY-(n.top+window.pageYOffset))/n.height)}))},mD=(o,t)=>{const e=t.keyCode;e>40||o.xy&&e<37||e<33||(t.preventDefault(),Ts(o.el,"move",o.getMove({x:e===39?.01:e===37?-.01:e===34?.05:e===33?-.05:e===35?1:e===36?-1:0,y:e===40?.01:e===38?-.01:0},!0)))};class Ph{constructor(t,e,n,i){const r=Nh(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(r.content.cloneNode(!0));const s=t.querySelector(`[part=${e}]`);s.addEventListener("mousedown",this),s.addEventListener("touchstart",this),s.addEventListener("keydown",this),this.el=s,this.xy=i,this.nodes=[s.firstChild,s]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(zn?"touchmove":"mousemove",this),e(zn?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!fD(t)||!zn&&t.button!=0)return;this.el.focus(),zh(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),zh(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":mD(this,t);break}}style(t){t.forEach((e,n)=>{for(const i in e)this.nodes[n].style.setProperty(i,e[i])})}}class pD extends Ph{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:Ss({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Ot(t)}`)}getMove(t,e){return{h:e?Ao(this.h+t.x*360,0,360):360*t.x}}}class kD extends Ph{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:Ss(t)},{"background-color":Ss({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Ot(t.s)}%, Brightness ${Ot(t.v)}%`)}getMove(t,e){return{s:e?Ao(this.hsva.s+t.x*100,0,100):t.x*100,v:e?Ao(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const bD=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',wD="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",AD="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",wi=Symbol("same"),Ms=Symbol("color"),Lh=Symbol("hsva"),Bs=Symbol("update"),Oh=Symbol("parts"),Rh=Symbol("css"),jh=Symbol("sliders");class CD extends HTMLElement{static get observedAttributes(){return["color"]}get[Rh](){return[bD,wD,AD]}get[jh](){return[kD,pD]}get color(){return this[Ms]}set color(t){if(!this[wi](t)){const e=this.colorModel.toHsva(t);this[Bs](e),this[Ms]=t}}constructor(){super();const t=Nh(`<style>${this[Rh].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[Oh]=this[jh].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const i=this.colorModel.fromAttr(n);this[wi](i)||(this.color=i)}handleEvent(t){const e=this[Lh],n={...e,...t.detail};this[Bs](n);let i;!Mh(n,e)&&!this[wi](i=this.colorModel.fromHsva(n))&&(this[Ms]=i,Ts(this,"color-changed",{value:i}))}[wi](t){return this.color&&this.colorModel.equal(t,this.color)}[Bs](t){this[Lh]=t,this[Oh].forEach(e=>e.update(t))}}const _D={defaultColor:"#000",toHsva:aD,fromHsva:({h:o,s:t,v:e})=>cD({h:o,s:t,v:e,a:1}),equal:gD,fromAttr:o=>o};class vD extends CD{get colorModel(){return _D}}class yD extends vD{}customElements.define("hex-color-picker",yD);var Fh=L(4257),Ns={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ns.insert="head",Ns.singleton=!0,F()(Fh.Z,Ns),Fh.Z.locals;var Vh=L(6306),zs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};zs.insert="head",zs.singleton=!0,F()(Vh.Z,zs),Vh.Z.locals;class xD{constructor(t){this._components=new Map,this.editor=t}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(Ps(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new b("componentfactory-item-missing",this,{name:t});return this._components.get(Ps(t)).callback(this.editor.locale)}has(t){return this._components.has(Ps(t))}}function Ps(o){return String(o).toLowerCase()}var Hh=L(4460),Ls={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ls.insert="head",Ls.singleton=!0,F()(Hh.Z,Ls),Hh.Z.locals;const Uh=Xn("px"),qh=U.document.body,ED={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class Rt extends Y{constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",n=>`ck-balloon-panel_${n}`),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",Uh),left:e.to("left",Uh)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){this.show();const e=Rt.defaultPositions,n=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast,e.viewportStickyNorth],limiter:qh,fitInViewport:!0},t),i=Rt._getOptimalPosition(n)||ED,r=parseInt(i.left),s=parseInt(i.top),a=i.name,c=i.config||{},{withArrow:l=!0}=c;this.top=s,this.left=r,this.position=a,this.withArrow=l}pin(t){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){this.attachTo(t);const e=Os(t.target),n=t.limiter?Os(t.limiter):qh;this.listenTo(U.document,"scroll",(i,r)=>{const s=r.target,a=e&&s.contains(e),c=n&&s.contains(n);(a||c||!e||!n)&&this.attachTo(t)},{useCapture:!0}),this.listenTo(U.window,"resize",()=>{this.attachTo(t)})}_stopPinning(){this.stopListening(U.document,"scroll"),this.stopListening(U.window,"resize")}}Rt.arrowSideOffset=25,Rt.arrowHeightOffset=10,Rt.stickyVerticalOffset=20,Rt._getOptimalPosition=pr,Rt.defaultPositions=Wh();function Os(o){return Qe(o)?o:Uo(o)?o.commonAncestorContainer:typeof o=="function"?Os(o()):null}function Wh(o={}){const{sideOffset:t=Rt.arrowSideOffset,heightOffset:e=Rt.arrowHeightOffset,stickyVerticalOffset:n=Rt.stickyVerticalOffset,config:i}=o;return{northWestArrowSouthWest:(a,c)=>({top:r(a,c),left:a.left-t,name:"arrow_sw",...i&&{config:i}}),northWestArrowSouthMiddleWest:(a,c)=>({top:r(a,c),left:a.left-c.width*.25-t,name:"arrow_smw",...i&&{config:i}}),northWestArrowSouth:(a,c)=>({top:r(a,c),left:a.left-c.width/2,name:"arrow_s",...i&&{config:i}}),northWestArrowSouthMiddleEast:(a,c)=>({top:r(a,c),left:a.left-c.width*.75+t,name:"arrow_sme",...i&&{config:i}}),northWestArrowSouthEast:(a,c)=>({top:r(a,c),left:a.left-c.width+t,name:"arrow_se",...i&&{config:i}}),northArrowSouthWest:(a,c)=>({top:r(a,c),left:a.left+a.width/2-t,name:"arrow_sw",...i&&{config:i}}),northArrowSouthMiddleWest:(a,c)=>({top:r(a,c),left:a.left+a.width/2-c.width*.25-t,name:"arrow_smw",...i&&{config:i}}),northArrowSouth:(a,c)=>({top:r(a,c),left:a.left+a.width/2-c.width/2,name:"arrow_s",...i&&{config:i}}),northArrowSouthMiddleEast:(a,c)=>({top:r(a,c),left:a.left+a.width/2-c.width*.75+t,name:"arrow_sme",...i&&{config:i}}),northArrowSouthEast:(a,c)=>({top:r(a,c),left:a.left+a.width/2-c.width+t,name:"arrow_se",...i&&{config:i}}),northEastArrowSouthWest:(a,c)=>({top:r(a,c),left:a.right-t,name:"arrow_sw",...i&&{config:i}}),northEastArrowSouthMiddleWest:(a,c)=>({top:r(a,c),left:a.right-c.width*.25-t,name:"arrow_smw",...i&&{config:i}}),northEastArrowSouth:(a,c)=>({top:r(a,c),left:a.right-c.width/2,name:"arrow_s",...i&&{config:i}}),northEastArrowSouthMiddleEast:(a,c)=>({top:r(a,c),left:a.right-c.width*.75+t,name:"arrow_sme",...i&&{config:i}}),northEastArrowSouthEast:(a,c)=>({top:r(a,c),left:a.right-c.width+t,name:"arrow_se",...i&&{config:i}}),southWestArrowNorthWest:a=>({top:s(a),left:a.left-t,name:"arrow_nw",...i&&{config:i}}),southWestArrowNorthMiddleWest:(a,c)=>({top:s(a),left:a.left-c.width*.25-t,name:"arrow_nmw",...i&&{config:i}}),southWestArrowNorth:(a,c)=>({top:s(a),left:a.left-c.width/2,name:"arrow_n",...i&&{config:i}}),southWestArrowNorthMiddleEast:(a,c)=>({top:s(a),left:a.left-c.width*.75+t,name:"arrow_nme",...i&&{config:i}}),southWestArrowNorthEast:(a,c)=>({top:s(a),left:a.left-c.width+t,name:"arrow_ne",...i&&{config:i}}),southArrowNorthWest:a=>({top:s(a),left:a.left+a.width/2-t,name:"arrow_nw",...i&&{config:i}}),southArrowNorthMiddleWest:(a,c)=>({top:s(a),left:a.left+a.width/2-c.width*.25-t,name:"arrow_nmw",...i&&{config:i}}),southArrowNorth:(a,c)=>({top:s(a),left:a.left+a.width/2-c.width/2,name:"arrow_n",...i&&{config:i}}),southArrowNorthMiddleEast:(a,c)=>({top:s(a),left:a.left+a.width/2-c.width*.75+t,name:"arrow_nme",...i&&{config:i}}),southArrowNorthEast:(a,c)=>({top:s(a),left:a.left+a.width/2-c.width+t,name:"arrow_ne",...i&&{config:i}}),southEastArrowNorthWest:a=>({top:s(a),left:a.right-t,name:"arrow_nw",...i&&{config:i}}),southEastArrowNorthMiddleWest:(a,c)=>({top:s(a),left:a.right-c.width*.25-t,name:"arrow_nmw",...i&&{config:i}}),southEastArrowNorth:(a,c)=>({top:s(a),left:a.right-c.width/2,name:"arrow_n",...i&&{config:i}}),southEastArrowNorthMiddleEast:(a,c)=>({top:s(a),left:a.right-c.width*.75+t,name:"arrow_nme",...i&&{config:i}}),southEastArrowNorthEast:(a,c)=>({top:s(a),left:a.right-c.width+t,name:"arrow_ne",...i&&{config:i}}),westArrowEast:(a,c)=>({top:a.top+a.height/2-c.height/2,left:a.left-c.width-e,name:"arrow_e",...i&&{config:i}}),eastArrowWest:(a,c)=>({top:a.top+a.height/2-c.height/2,left:a.right+e,name:"arrow_w",...i&&{config:i}}),viewportStickyNorth:(a,c,l,d)=>{const u=d||l;return!a.getIntersection(u)||u.height-a.height>n?null:{top:u.top+n,left:a.left+a.width/2-c.width/2,name:"arrowless",config:{withArrow:!1,...i}}}};function r(a,c){return a.top-c.height-e}function s(a){return a.bottom+e}}var Gh=L(3888),Rs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Rs.insert="head",Rs.singleton=!0,F()(Gh.Z,Rs),Gh.Z.locals;const $h="ck-tooltip";class zt extends Zt(){constructor(t){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,zt._editors.add(t),zt._instance)return zt._instance;zt._instance=this,this.tooltipTextView=new Y(t.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new Rt(t.locale),this.balloonPanelView.class=$h,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=co(this._pinTooltip,600),this.listenTo(U.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(U.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(U.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(U.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(U.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(t){const e=t.ui.view&&t.ui.view.body;zt._editors.delete(t),this.stopListening(t.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),zt._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),zt._instance=null)}static getPositioningFunctions(t){const e=zt.defaultBalloonPositions;return{s:[e.southArrowNorth,e.southArrowNorthEast,e.southArrowNorthWest],n:[e.northArrowSouth],e:[e.eastArrowWest],w:[e.westArrowEast],sw:[e.southArrowNorthEast],se:[e.southArrowNorthWest]}[t]}_onEnterOrFocus(t,{target:e}){const n=js(e);n&&n!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(n,DD(n)))}_onLeaveOrBlur(t,{target:e,relatedTarget:n}){if(t.name==="mouseleave"){if(!Qe(e)||this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;const i=js(e),r=js(n);i&&i!==r&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(t,{target:e}){this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(t,{text:e,position:n,cssClass:i}){const r=It(zt._editors.values()).ui.view.body;r.has(this.balloonPanelView)||r.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.pin({target:t,positions:zt.getPositioningFunctions(n)}),this._resizeObserver=new bt(t,()=>{Je(t)||this._unpinTooltip()}),this.balloonPanelView.class=[$h,i].filter(s=>s).join(" ");for(const s of zt._editors)this.listenTo(s.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=t,this._currentTooltipPosition=n}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const t of zt._editors)this.stopListening(t.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){if(!Je(this._currentElementWithTooltip)){this._unpinTooltip();return}this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:zt.getPositioningFunctions(this._currentTooltipPosition)})}}zt.defaultBalloonPositions=Wh({heightOffset:5,sideOffset:13}),zt._editors=new Set,zt._instance=null;function js(o){return Qe(o)?o.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function DD(o){return{text:o.dataset.ckeTooltipText,position:o.dataset.ckeTooltipPosition||"s",cssClass:o.dataset.ckeTooltipClass||""}}var SD="Expected a function";function TD(o,t,e){var n=!0,i=!0;if(typeof o!="function")throw new TypeError(SD);return _t(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),co(o,t,{leading:n,maxWait:t,trailing:i})}const Co=TD,ID=`<svg xmlns="http://www.w3.org/2000/svg" width="53" height="10" viewBox="0 0 53 10"><path fill="#1C2331" d="M31.724 1.492a15.139 15.139 0 0 0 .045 1.16 2.434 2.434 0 0 0-.687-.34 3.68 3.68 0 0 0-1.103-.166 2.332 2.332 0 0 0-1.14.255 1.549 1.549 0 0 0-.686.87c-.15.41-.225.98-.225 1.712 0 .939.148 1.659.444 2.161.297.503.792.754 1.487.754.452.015.9-.094 1.294-.316.296-.174.557-.4.771-.669l.14.852h1.282V.007h-1.623v1.485ZM31 6.496a1.77 1.77 0 0 1-.494.061.964.964 0 0 1-.521-.127.758.758 0 0 1-.296-.466 3.984 3.984 0 0 1-.093-.992 4.208 4.208 0 0 1 .098-1.052.753.753 0 0 1 .307-.477 1.08 1.08 0 0 1 .55-.122c.233-.004.466.026.69.089l.483.144v2.553c-.11.076-.213.143-.307.2a1.73 1.73 0 0 1-.417.189ZM35.68 0l-.702.004c-.322.002-.482.168-.48.497l.004.581c.002.33.164.493.486.49l.702-.004c.322-.002.481-.167.48-.496L36.165.49c-.002-.33-.164-.493-.486-.491ZM36.145 2.313l-1.612.01.034 5.482 1.613-.01-.035-5.482ZM39.623.79 37.989.8 38 2.306l-.946.056.006 1.009.949-.006.024 2.983c.003.476.143.844.419 1.106.275.26.658.39 1.148.387.132 0 .293-.01.483-.03.19-.02.38-.046.57-.08.163-.028.324-.068.482-.119l-.183-1.095-.702.004a.664.664 0 0 1-.456-.123.553.553 0 0 1-.14-.422l-.016-2.621 1.513-.01-.006-1.064-1.514.01-.01-1.503ZM46.226 2.388c-.41-.184-.956-.274-1.636-.27-.673.004-1.215.101-1.627.29-.402.179-.72.505-.888.91-.18.419-.268.979-.264 1.68.004.688.1 1.24.285 1.655.172.404.495.724.9.894.414.18.957.268 1.63.264.68-.004 1.224-.099 1.632-.284.4-.176.714-.501.878-.905.176-.418.263-.971.258-1.658-.004-.702-.097-1.261-.28-1.677a1.696 1.696 0 0 0-.888-.9Zm-.613 3.607a.77.77 0 0 1-.337.501 1.649 1.649 0 0 1-1.317.009.776.776 0 0 1-.343-.497 4.066 4.066 0 0 1-.105-1.02 4.136 4.136 0 0 1 .092-1.03.786.786 0 0 1 .337-.507 1.59 1.59 0 0 1 1.316-.008.79.79 0 0 1 .344.502c.078.337.113.683.105 1.03.012.343-.019.685-.092 1.02ZM52.114 2.07a2.67 2.67 0 0 0-1.128.278c-.39.191-.752.437-1.072.73l-.157-.846-1.273.008.036 5.572 1.623-.01-.024-3.78c.35-.124.646-.22.887-.286.26-.075.53-.114.8-.118l.45-.003.144-1.546-.286.001ZM22.083 7.426l-1.576-2.532a2.137 2.137 0 0 0-.172-.253 1.95 1.95 0 0 0-.304-.29.138.138 0 0 1 .042-.04 1.7 1.7 0 0 0 .328-.374l1.75-2.71c.01-.015.025-.028.024-.048-.01-.01-.021-.007-.031-.007L20.49 1.17a.078.078 0 0 0-.075.045l-.868 1.384c-.23.366-.46.732-.688 1.099a.108.108 0 0 1-.112.06c-.098-.005-.196-.001-.294-.002-.018 0-.038.006-.055-.007.002-.02.002-.039.005-.058a4.6 4.6 0 0 0 .046-.701V1.203c0-.02-.009-.032-.03-.03h-.033L16.93 1.17c-.084 0-.073-.01-.073.076v6.491c-.001.018.006.028.025.027h1.494c.083 0 .072.007.072-.071v-2.19c0-.055-.003-.11-.004-.166a3.366 3.366 0 0 0-.05-.417h.06c.104 0 .209.002.313-.002a.082.082 0 0 1 .084.05c.535.913 1.07 1.824 1.607 2.736a.104.104 0 0 0 .103.062c.554-.003 1.107-.002 1.66-.002l.069-.003-.019-.032-.188-.304ZM27.112 6.555c-.005-.08-.004-.08-.082-.08h-2.414c-.053 0-.106-.003-.159-.011a.279.279 0 0 1-.246-.209.558.558 0 0 1-.022-.15c0-.382 0-.762-.002-1.143 0-.032.007-.049.042-.044h2.504c.029.003.037-.012.034-.038V3.814c0-.089.013-.078-.076-.078h-2.44c-.07 0-.062.003-.062-.06v-.837c0-.047.004-.093.013-.14a.283.283 0 0 1 .241-.246.717.717 0 0 1 .146-.011h2.484c.024.002.035-.009.036-.033l.003-.038.03-.496c.01-.183.024-.365.034-.548.005-.085.003-.087-.082-.094-.218-.018-.437-.038-.655-.05a17.845 17.845 0 0 0-.657-.026 72.994 72.994 0 0 0-1.756-.016 1.7 1.7 0 0 0-.471.064 1.286 1.286 0 0 0-.817.655c-.099.196-.149.413-.145.633v3.875c0 .072.003.144.011.216a1.27 1.27 0 0 0 .711 1.029c.228.113.48.167.734.158.757-.005 1.515.002 2.272-.042.274-.016.548-.034.82-.053.03-.002.043-.008.04-.041-.008-.104-.012-.208-.019-.312a69.964 69.964 0 0 1-.05-.768ZM16.14 7.415l-.127-1.075c-.004-.03-.014-.04-.044-.037a13.125 13.125 0 0 1-.998.073c-.336.01-.672.02-1.008.016-.116-.001-.233-.014-.347-.039a.746.746 0 0 1-.45-.262c-.075-.1-.132-.211-.167-.33a3.324 3.324 0 0 1-.126-.773 9.113 9.113 0 0 1-.015-.749c0-.285.022-.57.065-.852.023-.158.066-.312.127-.46a.728.728 0 0 1 .518-.443 1.64 1.64 0 0 1 .397-.048c.628-.001 1.255.003 1.882.05.022.001.033-.006.036-.026l.003-.031.06-.55c.019-.177.036-.355.057-.532.004-.034-.005-.046-.04-.056a5.595 5.595 0 0 0-1.213-.21 10.783 10.783 0 0 0-.708-.02c-.24-.003-.48.01-.719.041a3.477 3.477 0 0 0-.625.14 1.912 1.912 0 0 0-.807.497c-.185.2-.33.433-.424.688a4.311 4.311 0 0 0-.24 1.096c-.031.286-.045.572-.042.86-.006.43.024.86.091 1.286.04.25.104.497.193.734.098.279.26.53.473.734.214.205.473.358.756.446.344.11.702.17 1.063.177a8.505 8.505 0 0 0 1.578-.083 6.11 6.11 0 0 0 .766-.18c.03-.008.047-.023.037-.057a.157.157 0 0 1-.003-.025Z"/><path fill="#AFE229" d="M6.016 6.69a1.592 1.592 0 0 0-.614.21c-.23.132-.422.32-.56.546-.044.072-.287.539-.287.539l-.836 1.528.009.006c.038.025.08.046.123.063.127.046.26.07.395.073.505.023 1.011-.007 1.517-.003.29.009.58.002.869-.022a.886.886 0 0 0 .395-.116.962.962 0 0 0 .312-.286c.056-.083.114-.163.164-.249.24-.408.48-.816.718-1.226.075-.128.148-.257.222-.386l.112-.192a1.07 1.07 0 0 0 .153-.518l-1.304.023s-1.258-.005-1.388.01Z"/><path fill="#771BFF" d="m2.848 9.044.76-1.39.184-.352c-.124-.067-.245-.14-.367-.21-.346-.204-.706-.384-1.045-.6a.984.984 0 0 1-.244-.207c-.108-.134-.136-.294-.144-.46-.021-.409-.002-.818-.009-1.227-.003-.195 0-.39.003-.585.004-.322.153-.553.427-.713l.833-.488c.22-.13.44-.257.662-.385.05-.029.105-.052.158-.077.272-.128.519-.047.76.085l.044.028c.123.06.242.125.358.196.318.178.635.357.952.537.095.056.187.117.275.184.194.144.254.35.266.578.016.284.007.569.006.853-.001.28.004.558 0 .838.592-.003 1.259 0 1.259 0l.723-.013c-.003-.292-.007-.584-.007-.876 0-.524.015-1.048-.016-1.571-.024-.42-.135-.8-.492-1.067a5.02 5.02 0 0 0-.506-.339A400.52 400.52 0 0 0 5.94.787C5.722.664 5.513.524 5.282.423 5.255.406 5.228.388 5.2.373 4.758.126 4.305-.026 3.807.21c-.097.046-.197.087-.29.14A699.896 699.896 0 0 0 .783 1.948c-.501.294-.773.717-.778 1.31-.004.36-.009.718-.001 1.077.016.754-.017 1.508.024 2.261.016.304.07.6.269.848.127.15.279.28.448.382.622.4 1.283.734 1.92 1.11l.183.109Z"/></svg>
|
|
|
`,MD=53,BD=10,ND=50,zD=350,PD="Powered by";class LD extends Zt(){constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Co(this._showBalloon.bind(this),50,{leading:!0}),t.on("ready",this._handleEditorReady.bind(this))}destroy(){const t=this._balloonView;t&&(t.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const t=this.editor;!t.config.get("ui.poweredBy.forceVisible")&&m0(t.config.get("licenseKey"))==="VALID"||t.ui.view&&(t.ui.focusTracker.on("change:isFocused",(n,i,r)=>{this._updateLastFocusedEditableElement(),r?this._showBalloon():this._hideBalloon()}),t.ui.focusTracker.on("change:focusedElement",(n,i,r)=>{this._updateLastFocusedEditableElement(),r&&this._showBalloon()}),t.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const t=this.editor,e=this._balloonView=new Rt,n=Zh(t),i=new OD(t.locale,n.label);e.content.add(i),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),t.ui.focusTracker.add(e.element),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=RD(this.editor,this._lastFocusedEditableElement);t&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(t))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const t=this.editor,e=t.ui.focusTracker.isFocused,n=t.ui.focusTracker.focusedElement;if(!e||!n){this._lastFocusedEditableElement=null;return}const i=Array.from(t.ui.getEditableElementsNames()).map(r=>t.ui.getEditableElement(r));i.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=i[0]}}class OD extends Y{constructor(t,e){super(t);const n=new Se,i=this.bindTemplate;n.set({content:ID,isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:MD+"px",height:BD+"px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:i.to(r=>r.preventDefault())}}]})}}function RD(o,t){const e=Zh(o),n=e.side==="right"?jD(t,e):FD(t,e);return{target:t,positions:[n]}}function jD(o,t){return Kh(o,t,(e,n)=>e.left+e.width-n.width-t.horizontalOffset)}function FD(o,t){return Kh(o,t,e=>e.left+t.horizontalOffset)}function Kh(o,t,e){return(n,i)=>{const r=new Q(o);if(r.width<zD||r.height<ND)return null;let s;t.position==="inside"?s=r.bottom-i.height:s=r.bottom-i.height/2,s-=t.verticalOffset;const a=e(r,i),l=n.clone().moveTo(a,s).getIntersection(i.clone().moveTo(a,s)).getVisible();return!l||l.getArea()<i.getArea()?null:{top:s,left:a,name:`position_${t.position}-side_${t.side}`,config:{withArrow:!1}}}}function Zh(o){const t=o.config.get("ui.poweredBy"),e=t&&t.position||"border";return{position:e,label:PD,verticalOffset:e==="inside"?5:0,horizontalOffset:5,side:o.locale.contentLanguageDirection==="ltr"?"right":"left",...t}}var Yh=L(3290),Fs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Fs.insert="head",Fs.singleton=!0,F()(Yh.Z,Fs),Yh.Z.locals;var Ai;(function(o){o.POLITE="polite",o.ASSERTIVE="assertive"})(Ai||(Ai={}));class VD{constructor(t){this.editor=t}announce(t,e,n=Ai.POLITE){const i=this.editor;this.view||(this.view=new HD(i.locale),i.ui.view.body.add(this.view));let r=this.view.regionViews.find(s=>s.regionName===t);r||(r=new UD(this.view.locale),this.view.regionViews.add(r)),r.set({regionName:t,text:e,politeness:n})}}class HD extends Y{constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class UD extends Y{constructor(t){super(t);const e=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness",Ai.POLITE),this.setTemplate({tag:"div",attributes:{role:"region","data-region":e.to("regionName"),"aria-live":e.to("politeness")},children:[{text:e.to("text")}]})}}class qD extends rt(){constructor(t){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const e=t.editing.view;this.editor=t,this.componentFactory=new xD(t),this.focusTracker=new Ht,this.tooltipManager=new zt(t),this.poweredBy=new LD(t),this.ariaLiveAnnouncer=new VD(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null,this.editor.keystrokes.stopListening(t);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);const n=()=>{this.editor.editing.view.getDomRoot(t)||this.editor.keystrokes.listenTo(e)};this.isReady?n():this.once("ready",n)}removeEditableElement(t){const e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(t,e={}){t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",()=>{this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)}),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const t=this.editor,e=t.editing.view;let n,i;t.keystrokes.set("Alt+F10",(r,s)=>{const a=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(a)&&!Array.from(e.domRoots.values()).includes(a)&&(n=a);const c=this._getCurrentFocusedToolbarDefinition();(!c||!i)&&(i=this._getFocusableCandidateToolbarDefinitions());for(let l=0;l<i.length;l++){const d=i.shift();if(i.push(d),d!==c&&this._focusFocusableCandidateToolbar(d)){c&&c.options.afterBlur&&c.options.afterBlur();break}}s()}),t.keystrokes.set("Esc",(r,s)=>{const a=this._getCurrentFocusedToolbarDefinition();a&&(n?(n.focus(),n=null):t.editing.view.focus(),a.options.afterBlur&&a.options.afterBlur(),s())})}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:i}=e;(Je(n.element)||i.beforeFocus)&&t.push(e)}return t.sort((e,n)=>Qh(e)-Qh(n)),t}_getCurrentFocusedToolbarDefinition(){for(const t of this._focusableToolbarDefinitions)if(t.toolbarView.element&&t.toolbarView.element.contains(this.focusTracker.focusedElement))return t;return null}_focusFocusableCandidateToolbar(t){const{toolbarView:e,options:{beforeFocus:n}}=t;return n&&n(),Je(e.element)?(e.focus(),!0):!1}_handleScrollToTheSelection(t,e){const n={top:0,bottom:0,left:0,right:0,...this.viewportOffset};e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}}function Qh(o){const{toolbarView:t,options:e}=o;let n=10;return Je(t.element)&&n--,e.isContextual&&n--,n}var Jh=L(9847),Vs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Vs.insert="head",Vs.singleton=!0,F()(Jh.Z,Vs),Jh.Z.locals;class WD extends Y{constructor(t){super(t),this.body=new N0(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class GD extends WD{constructor(t){super(t),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const t=this.t,e=new Ir;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class $D extends Y{constructor(t,e,n){super(t),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;t.isRenderingInProgress?n(this):e(this);function e(i){t.change(r=>{const s=t.document.getRoot(i.name);r.addClass(i.isFocused?"ck-focused":"ck-blurred",s),r.removeClass(i.isFocused?"ck-blurred":"ck-focused",s)})}function n(i){t.once("change:isRenderingInProgress",(r,s,a)=>{a?n(i):e(i)})}}}class KD extends $D{constructor(t,e,n,i={}){super(t,e,n);const r=t.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=i.label||(()=>r("Editor editing area: %0",this.name))}render(){super.render();const t=this._editingView;t.change(e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this._generateLabel(this),n)})}}var Xh=L(1874),Hs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Hs.insert="head",Hs.singleton=!0,F()(Xh.Z,Hs),Xh.Z.locals;class tg extends Yo{static get pluginName(){return"Notification"}init(){this.on("show:warning",(t,e)=>{window.alert(e.message)},{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=t.namespace?`show:${t.type}:${t.namespace}`:`show:${t.type}`;this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class Us extends rt(){constructor(t,e){super(),e&&au(this,e),t&&this.set(t)}}const ZD='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>',YD='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>';var eg=L(7592),qs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};qs.insert="head",qs.singleton=!0,F()(eg.Z,qs),eg.Z.locals;var ng=L(6356),Ws={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ws.insert="head",Ws.singleton=!0,F()(ng.Z,Ws),ng.Z.locals;const Ci=Xn("px");class _i extends P{static get pluginName(){return"ContextualBalloon"}constructor(t){super(t),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const e=this.editor.editing.view,i=e.document.selection.editableElement;return i?e.domConverter.mapViewToDom(i.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new b("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e)){this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,(!this._visibleStack||t.singleViewMode)&&this.showStack(e);return}const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new b("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(e.size===1?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),e.size===1?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new b("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new Rt(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find(n=>n[1]===t)[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new QD(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(n,i)=>!i&&n>1),t.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(n,i)=>{if(i<2)return"";const r=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[r,i])}),t.buttonNextView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),t.buttonPrevView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),t}_createFakePanelsView(){const t=new JD(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,n)=>!n&&e>=2?Math.min(e-1,2):0),t.listenTo(this.view,"change:top",()=>t.updatePosition()),t.listenTo(this.view,"change:left",()=>t.updatePosition()),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:i=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}class QD extends Y{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Ht,this.buttonPrevView=this._createButtonView(e("Previous"),ZD),this.buttonNextView=this._createButtonView(e("Next"),YD),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",i=>i?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new ht(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class JD extends Y{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",i=>i?"":"ck-hidden")],style:{top:n.to("top",Ci),left:n.to("left",Ci),width:n.to("width",Ci),height:n.to("height",Ci)}},children:this.content}),this.on("change:numberOfPanels",(i,r,s,a)=>{s>a?this._addPanels(s-a):this._removePanels(a-s),this.updatePosition()})}_addPanels(t){for(;t--;){const e=new Y;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(t){for(;t--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:i}=new Q(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:i})}}}var og=L(3707),Gs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Gs.insert="head",Gs.singleton=!0,F()(og.Z,Gs),og.Z.locals;const Pn=Xn("px");class XD extends Y{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new re({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",n=>n?"block":"none"),height:e.to("isSticky",n=>n?Pn(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new re({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",n=>n?Pn(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:e.to("_stickyTopOffset",n=>n&&Pn(n)),bottom:e.to("_stickyBottomOffset",n=>n&&Pn(n)),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(U.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive){this._unstick();return}const t=new Q(this.limiterElement);let e=t.getVisible();if(e){const n=new Q(U.window);n.top+=this.viewportTopOffset,n.height-=this.viewportTopOffset,e=e.getIntersection(n)}if(e&&t.top<e.top){const n=e.top;if(n+this._contentPanelRect.height+this.limiterBottomOffset>e.bottom){const i=Math.max(t.bottom-e.bottom,0)+this.limiterBottomOffset;t.bottom-i>t.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(i):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<t.height?this._stickToTopOfAncestors(n):this._unstick()}else this._unstick()}_stickToTopOfAncestors(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=t,this._stickyBottomOffset=null,this._marginLeft=Pn(-U.window.scrollX)}_stickToBottomOfLimiter(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=t,this._marginLeft=Pn(-U.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new Q(this._contentPanel)}}class t5 extends Zo{constructor(t,e){const n=t.t,i=Object.assign({},{showResetButton:!0,showIcon:!0,creator:ki},e);super(t,i.creator),this.label=e.label,this._viewConfig=i,this._viewConfig.showIcon&&(this.iconView=new Se,this.iconView.content=dt.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new ht(t),this.resetButtonView.set({label:n("Clear"),icon:dt.cancel,class:"ck-search__reset",isVisible:!1,tooltip:!0}),this.resetButtonView.on("execute",()=>{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",r=>!r),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class e5 extends Y{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",t.if("isVisible","ck-hidden",e=>!e)],tabindex:-1},children:[{tag:"span",children:[{text:[t.to("primaryText")]}]},{tag:"span",children:[{text:[t.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class n5 extends Y{constructor(t){super(t),this.children=this.createCollection(),this.focusTracker=new Ht,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new Te({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const t of this.children)this.focusTracker.add(t.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var ig=/[\\^$.*+?()[\]{}|]/g,o5=RegExp(ig.source);function i5(o){return o=Vr(o),o&&o5.test(o)?o.replace(ig,"\\$&"):o}const rg=i5;var sg=L(9332),$s={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};$s.insert="head",$s.singleton=!0,F()(sg.Z,$s),sg.Z.locals;class r5 extends Y{constructor(t,e){super(t),this._config=e,this.filteredView=e.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new Ht,this.keystrokes=new ie,this.resultsView=new n5(t),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),e.infoView&&e.infoView.instance?this.infoView=e.infoView.instance:(this.infoView=new e5,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new Te({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(n,{resultsCount:i,totalItemsCount:r})=>{this.resultsCount=i,this.totalItemsCount=r}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",e.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const t=e=>e.stopPropagation();for(const e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(t){const e=t?new RegExp(rg(t),"ig"):null,n=this.filteredView.filter(e);this.fire("search",{query:t,...n})}_createSearchTextQueryView(){const t=new t5(this.locale,this._config.queryView);return this.listenTo(t.fieldView,"input",()=>{this.search(t.fieldView.element.value)}),t.on("reset",()=>this.reset()),t.bind("isEnabled").to(this),t}_enableDefaultInfoViewBehavior(){const t=this.locale.t,e=this.infoView;this.on("search",(i,r)=>{if(r.resultsCount)e.set({isVisible:!1});else{const s=this._config.infoView&&this._config.infoView.text;let a,c;r.totalItemsCount?s&&s.notFound?(a=s.notFound.primary,c=s.notFound.secondary):(a=t("No results found"),c=""):s&&s.noSearchableItems?(a=s.noSearchableItems.primary,c=s.noSearchableItems.secondary):(a=t("No searchable items"),c=""),e.set({primaryText:n(a,r),secondaryText:n(c,r),isVisible:!0})}});function n(i,{query:r,resultsCount:s,totalItemsCount:a}){return typeof i=="function"?i(r,s,a):i}}}var ag=L(4029),Ks={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ks.insert="head",Ks.singleton=!0,F()(ag.Z,Ks),ag.Z.locals;class _o extends r5{constructor(t,e){super(t,e),this._config=e;const n=Xn("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const i=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[i.if("isVisible","ck-hidden",r=>!r),i.to("_position",r=>`ck-search__results_${r}`)],style:{width:i.to("_width",n)}}}),this.focusTracker.on("change:isFocused",(r,s,a)=>{this._updateResultsVisibility(),a?this.resultsView.element.scrollTop=0:e.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(r,s)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,s())}),this.listenTo(U.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(r,{value:s})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=s,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new Q(this.queryView.fieldView.element).width;const t=_o._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:_o.defaultResultsPositions});this.resultsView._position=t?t.name:"s"}_updateResultsVisibility(){const t=typeof this._config.queryMinChars>"u"?0:this._config.queryMinChars,e=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&e>=t}}_o.defaultResultsPositions=[o=>({top:o.bottom,left:o.left,name:"s"}),(o,t)=>({top:o.top-t.height,left:o.left,name:"n"})],_o._getOptimalPosition=pr;var cg=L(4746),Zs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Zs.insert="head",Zs.singleton=!0,F()(cg.Z,Zs),cg.Z.locals;var lg=L(4095),Ys={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ys.insert="head",Ys.singleton=!0,F()(lg.Z,Ys),lg.Z.locals;class s5 extends Y{constructor(t,e){super(t);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),e&&this.children.addMany(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const t=new ht(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:Pr}),t.extendTemplate({attributes:{"aria-expanded":e.to("isOn",n=>String(n))}}),t.bind("label").to(this),t.bind("isOn").to(this,"isCollapsed",n=>!n),t.on("execute",()=>{this.isCollapsed=!this.isCollapsed}),t}}var dg=L(6446),Qs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Qs.insert="head",Qs.singleton=!0,F()(dg.Z,Qs),dg.Z.locals;var ug=L(4176),Js={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Js.insert="head",Js.singleton=!0,F()(ug.Z,Js),ug.Z.locals;class a5 extends qD{constructor(t,e){super(t),this.view=e,this._toolbarConfig=bd(t.config.get("toolbar")),this._elementReplacer=new Lc,this.listenTo(t.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const e=this.editor,n=this.view,i=e.editing.view,r=n.editable,s=i.document.getRoot();r.name=s.rootName,n.render();const a=r.element;this.setEditableElement(r.name,a),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(a),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:e})=>e||0),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.sourceElement;let r;const s=t.config.get("placeholder");s&&(r=typeof s=="string"?s:s[this.view.editable.name]),!r&&i&&i.tagName.toLowerCase()==="textarea"&&(r=i.getAttribute("placeholder")),r&&(n.placeholder=r),Ed({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,n){const i=this.view.stickyPanel;if(i.isSticky){const r=new Q(i.element).height;e.viewportOffset.top+=r}else{const r=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(i,"change:isSticky",r),setTimeout(()=>{this.stopListening(i,"change:isSticky",r)},20)}}}var hg=L(3624),Xs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Xs.insert="head",Xs.singleton=!0,F()(hg.Z,Xs),hg.Z.locals;class c5 extends GD{constructor(t,e,n={}){super(t),this.stickyPanel=new XD(t),this.toolbar=new ws(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new KD(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class gg{constructor(t){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit=typeof t.crashNumberLimit=="number"?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod=typeof t.minimumNonErrorTimePeriod=="number"?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const n="error"in e?e.error:e.reason;n instanceof Error&&this._handleError(n,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter(n=>n!==e)}_fire(t,...e){const n=this._listeners[t]||[];for(const i of n)i.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&t.context!==void 0&&t.context!==null&&this.state==="ready"&&this._isErrorComingFromThisItem(t)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;const t=this.crashes[this.crashes.length-1].date,e=this.crashes[this.crashes.length-1-this._crashNumberLimit].date;return(t-e)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function ta(o,t=new Set){const e=[o],n=new Set;let i=0;for(;e.length>i;){const r=e[i++];if(!(n.has(r)||!l5(r)||t.has(r)))if(n.add(r),Symbol.iterator in r)try{for(const s of r)e.push(s)}catch{}else for(const s in r)s!=="defaultValue"&&e.push(r[s])}return n}function l5(o){const t=Object.prototype.toString.call(o),e=typeof o;return!(e==="number"||e==="boolean"||e==="string"||e==="symbol"||e==="function"||t==="[object Date]"||t==="[object RegExp]"||t==="[object Module]"||o===void 0||o===null||o._watchdogExcluded||o instanceof EventTarget||o instanceof Event)}function fg(o,t,e=new Set){if(o===t&&d5(o))return!0;const n=ta(o,e),i=ta(t,e);for(const r of n)if(i.has(r))return!0;return!1}function d5(o){return typeof o=="object"&&o!==null}class mg extends gg{constructor(t,e={}){super(e),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Co(this._save.bind(this),typeof e.saveInterval=="number"?e.saveInterval:5e3),t&&(this._creator=(n,i)=>t.create(n,i)),this._destructor=n=>n.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(t=>{console.error("An error happened during the editor destroying.",t)}).then(()=>{const t={},e=[],n=this._config.rootsAttributes||{},i={};for(const[s,a]of Object.entries(this._data.roots))a.isLoaded?(t[s]="",i[s]=n[s]||{}):e.push(s);const r={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:i,_watchdogInitialData:this._data};return delete r.initialData,r.extraPlugins.push(u5),this._initUsingData?this.create(t,r,r.context):Qe(this._elementOrData)?this.create(this._elementOrData,r,r.context):this.create(this._editables,r,r.context)}).then(()=>{this._fire("restart")})}create(t=this._elementOrData,e=this._config,n){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=t,this._initUsingData=typeof t=="string"||Object.keys(t).length>0&&typeof Object.values(t)[0]=="string",this._config=this._cloneEditorConfiguration(e)||{},this._config.context=n,this._creator(t,this._config))).then(i=>{this._editor=i,i.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=i.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)})}_save(){const t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t=this._editor,e=t.model.document.roots.filter(a=>a.isAttached()&&a.rootName!="$graveyard"),{plugins:n}=t,i=n.has("CommentsRepository")&&n.get("CommentsRepository"),r=n.has("TrackChanges")&&n.get("TrackChanges"),s={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};e.forEach(a=>{s.roots[a.rootName]={content:JSON.stringify(Array.from(a.getChildren())),attributes:JSON.stringify(Array.from(a.getAttributes())),isLoaded:a._isLoaded}});for(const a of t.model.markers)a._affectsData&&(s.markers[a.name]={rangeJSON:a.getRange().toJSON(),usingOperation:a._managedUsingOperations,affectsData:a._affectsData});return i&&(s.commentThreads=JSON.stringify(i.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),r&&(s.suggestions=JSON.stringify(r.getSuggestions({toJSON:!0,skipNotAttached:!0}))),s}_getEditables(){const t={};for(const e of this.editor.model.document.getRootNames()){const n=this.editor.ui.getEditableElement(e);n&&(t[e]=n)}return t}_isErrorComingFromThisItem(t){return fg(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return gr(t,(e,n)=>{if(Qe(e)||n==="context")return e})}}class u5{constructor(t){this.editor=t,this._data=t.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",t=>{t.stop(),this.editor.model.enqueueChange({isUndoable:!1},e=>{this._restoreCollaborationData(),this._restoreEditorData(e)}),this.editor.data.fire("ready")},{priority:1e3-1})}_createNode(t,e){if("name"in e){const n=t.createElement(e.name,e.attributes);if(e.children)for(const i of e.children)n._appendChild(this._createNode(t,i));return n}else return t.createText(e.data,e.attributes)}_restoreEditorData(t){const e=this.editor;Object.entries(this._data.roots).forEach(([n,{content:i,attributes:r}])=>{const s=JSON.parse(i),a=JSON.parse(r),c=e.model.document.getRoot(n);for(const[l,d]of a)t.setAttribute(l,d,c);for(const l of s){const d=this._createNode(t,l);t.insert(d,c,"end")}}),Object.entries(this._data.markers).forEach(([n,i])=>{const{document:r}=e.model,{rangeJSON:{start:s,end:a},...c}=i,l=r.getRoot(s.root),d=t.createPositionFromPath(l,s.path,s.stickiness),u=t.createPositionFromPath(l,a.path,a.stickiness),f=t.createRange(d,u);t.addMarker(n,{range:f,...c})})}_restoreCollaborationData(){const t=JSON.parse(this._data.commentThreads),e=JSON.parse(this._data.suggestions);t.forEach(n=>{const i=this.editor.config.get("collaboration.channelId"),r=this.editor.plugins.get("CommentsRepository");r.hasCommentThread(n.threadId)&&r.getCommentThread(n.threadId).remove(),r.addCommentThread({channelId:i,...n})}),e.forEach(n=>{const i=this.editor.plugins.get("TrackChangesEditing");if(i.hasSuggestion(n.id)){const r=i.getSuggestion(n.id);r.attributes=n.attributes}else i.addSuggestionData(n)})}}const vo=Symbol("MainQueueId");class h5 extends gg{constructor(t,e={}){super(e),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new g5,this._watchdogConfig=e,this._creator=n=>t.create(n),this._destructor=n=>n.destroy(),this._actionQueues.onEmpty(()=>{this.state==="initializing"&&(this.state="ready",this._fire("stateChange"))})}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}get context(){return this._context}create(t={}){return this._actionQueues.enqueue(vo,()=>(this._contextConfig=t,this._create()))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=pg(t);return Promise.all(e.map(n=>this._actionQueues.enqueue(n.id,()=>{if(this.state==="destroyed")throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let i;if(this._watchdogs.has(n.id))throw new Error(`Item with the given id is already added: '${n.id}'.`);if(n.type==="editor")return i=new mg(null,this._watchdogConfig),i.setCreator(n.creator),i._setExcludedProperties(this._contextProps),n.destructor&&i.setDestructor(n.destructor),this._watchdogs.set(n.id,i),i.on("error",(r,{error:s,causesRestart:a})=>{this._fire("itemError",{itemId:n.id,error:s}),a&&this._actionQueues.enqueue(n.id,()=>new Promise(c=>{const l=()=>{i.off("restart",l),this._fire("itemRestart",{itemId:n.id}),c()};i.on("restart",l)}))}),i.create(n.sourceElementOrData,n.config,this._context);throw new Error(`Not supported item type: '${n.type}'.`)})))}remove(t){const e=pg(t);return Promise.all(e.map(n=>this._actionQueues.enqueue(n,()=>{const i=this._getWatchdog(n);return this._watchdogs.delete(n),i.destroy()})))}destroy(){return this._actionQueues.enqueue(vo,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(vo,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(t=>{console.error("An error happened during destroying the context or items.",t)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(t=>(this._context=t,this._contextProps=ta(this._context),Promise.all(Array.from(this._watchdogs.values()).map(e=>(e._setExcludedProperties(this._contextProps),e.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const t=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(e=>e.destroy())).then(()=>this._destructor(t))})}_getWatchdog(t){const e=this._watchdogs.get(t);if(!e)throw new Error(`Item with the given id was not registered: ${t}.`);return e}_isErrorComingFromThisItem(t){for(const e of this._watchdogs.values())if(e._isErrorComingFromThisItem(t))return!1;return fg(this._context,t.context)}}class g5{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===vo;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const r=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(vo),this._queues.get(t)])).then(e),s=r.catch(()=>{});return this._queues.set(t,s),r.finally(()=>{this._activeActions--,this._queues.get(t)===s&&this._activeActions===0&&this._onEmptyCallbacks.forEach(a=>a())})}}function pg(o){return Array.isArray(o)?o:[o]}class vi extends gi(ks($E)){constructor(t,e={}){if(!yi(t)&&e.initialData!==void 0)throw new b("editor-create-initial-data",null);super(e),this.config.get("initialData")===void 0&&this.config.set("initialData",f5(t)),yi(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=new c5(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new a5(this,i),KE(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise(n=>{const i=new this(t,e);n(i.initPlugins().then(()=>i.ui.init(yi(t)?t:null)).then(()=>i.data.init(i.config.get("initialData"))).then(()=>i.fire("ready")).then(()=>i))})}}vi.Context=vd,vi.EditorWatchdog=mg,vi.ContextWatchdog=h5;function f5(o){return yi(o)?H_(o):o}function yi(o){return Qe(o)}class kg{constructor(t,e=20){this._batch=null,this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(n,i)=>{i.isLocal&&i.isUndoable&&i!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){(!this.isLocked||t)&&(this._batch=null,this._size=0)}}class m5 extends X{constructor(t,e){super(t),this._buffer=new kg(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,i=t.text||"",r=i.length;let s=n.selection;if(t.selection?s=t.selection:t.range&&(s=e.createSelection(t.range)),!e.canEditAt(s))return;const a=t.resultRange;e.enqueueChange(this._buffer.batch,c=>{this._buffer.lock();const l=Array.from(n.selection.getAttributes());e.deleteContent(s),i&&e.insertContent(c.createText(i,l),s),a?c.setSelection(a):s.is("documentSelection")||c.setSelection(s),this._buffer.unlock(),this._buffer.input(r)})}}const bg=["insertText","insertReplacementText"];class p5 extends Ae{constructor(t){super(t),this.focusObserver=t.getObserver(ci),g.isAndroid&&bg.push("insertCompositionText");const e=t.document;e.on("beforeinput",(n,i)=>{if(!this.isEnabled)return;const{data:r,targetRanges:s,inputType:a,domEvent:c}=i;if(!bg.includes(a))return;this.focusObserver.flush();const l=new Pt(e,"insertText");e.fire(l,new In(t,c,{text:r,selection:t.createSelection(s)})),l.stop.called&&n.stop()}),e.on("compositionend",(n,{data:i,domEvent:r})=>{!this.isEnabled||g.isAndroid||i&&e.fire("insertText",new In(t,r,{text:i,selection:e.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class wg extends P{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,i=e.document.selection;n.addObserver(p5);const r=new m5(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",r),t.commands.add("input",r),this.listenTo(n.document,"insertText",(s,a)=>{n.document.isComposing||a.preventDefault();const{text:c,selection:l,resultRange:d}=a,u=Array.from(l.getRanges()).map(w=>t.editing.mapper.toModelRange(w));let f=c;if(g.isAndroid){const w=Array.from(u[0].getItems()).reduce((S,B)=>S+(B.is("$textProxy")?B.data:""),"");w&&(w.length<=f.length?f.startsWith(w)&&(f=f.substring(w.length),u[0].start=u[0].start.getShiftedBy(w.length)):w.startsWith(f)&&(u[0].start=u[0].start.getShiftedBy(f.length),f=""))}const p={text:f,selection:e.createSelection(u)};d&&(p.resultRange=t.editing.mapper.toModelRange(d)),t.execute("insertText",p),n.scrollToTheSelection()}),g.isAndroid?this.listenTo(n.document,"keydown",(s,a)=>{i.isCollapsed||a.keyCode!=229||!n.document.isComposing||Ag(e,r)}):this.listenTo(n.document,"compositionstart",()=>{i.isCollapsed||Ag(e,r)})}}function Ag(o,t){if(!t.isEnabled)return;const e=t.buffer;e.lock(),o.enqueueChange(e.batch,()=>{o.deleteContent(o.document.selection)}),e.unlock()}class Cg extends X{constructor(t,e){super(t),this.direction=e,this._buffer=new kg(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,i=>{this._buffer.lock();const r=i.createSelection(t.selection||n.selection);if(!e.canEditAt(r))return;const s=t.sequence||1,a=r.isCollapsed;if(r.isCollapsed&&e.modifySelection(r,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(s)){this._replaceEntireContentWithParagraph(i);return}if(this._shouldReplaceFirstBlockWithParagraph(r,s)){this.editor.execute("paragraph",{selection:r});return}if(r.isCollapsed)return;let c=0;r.getFirstRange().getMinimalFlatRanges().forEach(l=>{c+=$i(l.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),e.deleteContent(r,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(c),i.setSelection(r),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,i=e.document.selection,r=e.schema.getLimitElement(i);if(!(i.isCollapsed&&i.containsEntireContent(r))||!e.schema.checkChild(r,"paragraph"))return!1;const a=r.getChild(0);return!(a&&a.is("element","paragraph"))}_replaceEntireContentWithParagraph(t){const e=this.editor.model,i=e.document.selection,r=e.schema.getLimitElement(i),s=t.createElement("paragraph");t.remove(t.createRangeIn(r)),t.insert(s,r),t.setSelection(s,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||this.direction!="backward"||!t.isCollapsed)return!1;const i=t.getFirstPosition(),r=n.schema.getLimitElement(i),s=r.getChild(0);return!(i.parent!=s||!t.containsEntireContent(s)||!n.schema.checkChild(r,"paragraph")||s.name=="paragraph")}}const k5="character",_g="word",b5="codePoint",Ue="selection",Ln="backward",yo="forward",vg={deleteContent:{unit:Ue,direction:Ln},deleteContentBackward:{unit:b5,direction:Ln},deleteWordBackward:{unit:_g,direction:Ln},deleteHardLineBackward:{unit:Ue,direction:Ln},deleteSoftLineBackward:{unit:Ue,direction:Ln},deleteContentForward:{unit:k5,direction:yo},deleteWordForward:{unit:_g,direction:yo},deleteHardLineForward:{unit:Ue,direction:yo},deleteSoftLineForward:{unit:Ue,direction:yo}};class w5 extends Ae{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",()=>{n++}),e.on("keyup",()=>{n=0}),e.on("beforeinput",(i,r)=>{if(!this.isEnabled)return;const{targetRanges:s,domEvent:a,inputType:c}=r,l=vg[c];if(!l)return;const d={direction:l.direction,unit:l.unit,sequence:n};d.unit==Ue&&(d.selectionToRemove=t.createSelection(s[0])),c==="deleteContentBackward"&&(g.isAndroid&&(d.sequence=1),C5(s)&&(d.unit=Ue,d.selectionToRemove=t.createSelection(s)));const u=new Sn(e,"delete",s[0]);e.fire(u,new In(t,a,d)),u.stop.called&&i.stop()}),g.isBlink&&A5(this)}observe(){}stopObserving(){}}function A5(o){const t=o.view,e=t.document;let n=null,i=!1;e.on("keydown",(a,{keyCode:c})=>{n=c,i=!1}),e.on("keyup",(a,{keyCode:c,domEvent:l})=>{const d=e.selection,u=o.isEnabled&&c==n&&r(c)&&!d.isCollapsed&&!i;if(n=null,u){const f=d.getFirstRange(),p=new Sn(e,"delete",f),w={unit:Ue,direction:s(c),selectionToRemove:d};e.fire(p,new In(t,l,w))}}),e.on("beforeinput",(a,{inputType:c})=>{const l=vg[c];r(n)&&l&&l.direction==s(n)&&(i=!0)},{priority:"high"}),e.on("beforeinput",(a,{inputType:c,data:l})=>{n==tt.delete&&c=="insertText"&&l==""&&a.stop()},{priority:"high"});function r(a){return a==tt.backspace||a==tt.delete}function s(a){return a==tt.backspace?Ln:yo}}function C5(o){if(o.length!=1||o[0].isCollapsed)return!1;const t=o[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let e=0;for(const{nextPosition:n}of t){if(!n.parent.is("$text"))e++;else{const i=n.parent.data,r=n.offset;if(Ar(i,r)||Cr(i,r)||Kl(i,r))continue;e++}if(e>1)return!0}return!1}class Be extends P{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,i=t.model.document;e.addObserver(w5),this._undoOnBackspace=!1;const r=new Cg(t,"forward");t.commands.add("deleteForward",r),t.commands.add("forwardDelete",r),t.commands.add("delete",new Cg(t,"backward")),this.listenTo(n,"delete",(s,a)=>{n.isComposing||a.preventDefault();const{direction:c,sequence:l,selectionToRemove:d,unit:u}=a,f=c==="forward"?"deleteForward":"delete",p={sequence:l};if(u=="selection"){const w=Array.from(d.getRanges()).map(S=>t.editing.mapper.toModelRange(S));p.selection=t.model.createSelection(w)}else p.unit=u;t.execute(f,p),e.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(s,a)=>{this._undoOnBackspace&&a.direction=="backward"&&a.sequence==1&&a.unit=="codePoint"&&(this._undoOnBackspace=!1,t.execute("undo"),a.preventDefault(),s.stop())},{context:"$capture"}),this.listenTo(i,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class _5 extends P{static get requires(){return[wg,Be]}static get pluginName(){return"Typing"}}function yg(o,t){let e=o.start;return{text:Array.from(o.getWalker({ignoreElementEnd:!1})).reduce((i,{item:r})=>r.is("$text")||r.is("$textProxy")?i+r.data:(e=t.createPositionAfter(r),""),""),range:t.createRange(e,o.end)}}class xg extends rt(){constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",(n,{directChange:i})=>{if(i){if(!e.selection.isCollapsed){this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1);return}this._evaluateTextBeforeSelection("selection")}}),this.listenTo(e,"change:data",(n,i)=>{i.isUndo||!i.isLocal||this._evaluateTextBeforeSelection("data",{batch:i})})}_evaluateTextBeforeSelection(t,e={}){const n=this.model,r=n.document.selection,s=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),{text:a,range:c}=yg(s,n),l=this.testCallback(a);if(!l&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!l,l){const d=Object.assign(e,{text:a,range:c});typeof l=="object"&&Object.assign(d,l),this.fire(`matched:${t}`,d)}}}class Eg extends P{static get pluginName(){return"TwoStepCaretMovement"}constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}init(){const t=this.editor,e=t.model,n=t.editing.view,i=t.locale,r=e.document.selection;this.listenTo(n.document,"arrowKey",(s,a)=>{if(!r.isCollapsed||a.shiftKey||a.altKey||a.ctrlKey)return;const c=a.keyCode==tt.arrowright,l=a.keyCode==tt.arrowleft;if(!c&&!l)return;const d=i.contentLanguageDirection;let u=!1;d==="ltr"&&c||d==="rtl"&&l?u=this._handleForwardMovement(a):u=this._handleBackwardMovement(a),u===!0&&s.stop()},{context:"$text",priority:"highest"}),this.listenTo(r,"change:range",(s,a)=>{if(this._isNextGravityRestorationSkipped){this._isNextGravityRestorationSkipped=!1;return}this._isGravityOverridden&&(!a.directChange&&ae(r.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden||r.isAtStart&&Ne(i,e)?!1:ae(r,e)?(Eo(t),Ne(i,e)&&ae(r,e,!0)?xo(n,e):this._overrideGravity(),!0):!1}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden?(Eo(t),this._restoreGravity(),ae(r,e,!0)?xo(n,e):xi(n,e,r),!0):r.isAtStart?Ne(i,e)?(Eo(t),xi(n,e,r),!0):!1:!Ne(i,e)&&ae(r,e,!0)?(Eo(t),xi(n,e,r),!0):Dg(r,e)?r.isAtEnd&&!Ne(i,e)&&ae(r,e)?(Eo(t),xi(n,e,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):!1}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view.document;t.editing.view.addObserver(hi);let r=!1;this.listenTo(i,"mousedown",()=>{r=!0}),this.listenTo(i,"selectionChange",()=>{const s=this.attributes;if(!r||(r=!1,!n.isCollapsed)||!Ne(n,s))return;const a=n.getFirstPosition();ae(a,s)&&(a.isAtStart||ae(a,s,!0)?xo(e,s):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,n=e.document.selection,i=this.attributes;this.listenTo(e,"insertContent",()=>{const r=n.getFirstPosition();Ne(n,i)&&ae(r,i)&&xo(e,i)},{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view;let r=!1,s=!1;this.listenTo(i.document,"delete",(a,c)=>{r=c.direction==="backward"},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{if(!r)return;const a=n.getFirstPosition();s=Ne(n,this.attributes)&&!Dg(a,this.attributes)},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{r&&(r=!1,!s&&t.model.enqueueChange(()=>{const a=n.getFirstPosition();Ne(n,this.attributes)&&ae(a,this.attributes)&&(a.isAtStart||ae(a,this.attributes,!0)?xo(e,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(t=>t.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function Ne(o,t){for(const e of t)if(o.hasAttribute(e))return!0;return!1}function xi(o,t,e){const n=e.nodeBefore;o.change(i=>{if(n){const r=[],s=o.schema.isObject(n)&&o.schema.isInline(n);for(const[a,c]of n.getAttributes())o.schema.checkAttribute("$text",a)&&(!s||o.schema.getAttributeProperties(a).copyFromObject!==!1)&&r.push([a,c]);i.setSelectionAttribute(r)}else i.removeSelectionAttribute(t)})}function xo(o,t){o.change(e=>{e.removeSelectionAttribute(t)})}function Eo(o){o.preventDefault()}function Dg(o,t){const e=o.getShiftedBy(-1);return ae(e,t)}function ae(o,t,e=!1){const{nodeBefore:n,nodeAfter:i}=o;for(const r of t){const s=n?n.getAttribute(r):void 0,a=i?i.getAttribute(r):void 0;if(!(e&&(s===void 0||a===void 0))&&a!==s)return!0}return!1}const Sg={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:On('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:On("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:On("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:On('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:On('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:On("'"),to:[null,"‚",null,"’"]}},Tg={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},v5=["symbols","mathematical","typography","quotes"];class y5 extends P{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(t){super(t),t.config.define("typing",{transformations:{include:v5}})}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const t=this.editor,e=t.model,n=t.plugins.get("Delete"),i=S5(t.config.get("typing.transformations")),r=a=>{for(const c of i)if(c.from.test(a))return{normalizedTransformation:c}},s=new xg(t.model,r);s.on("matched:data",(a,c)=>{if(!c.batch.isTyping)return;const{from:l,to:d}=c.normalizedTransformation,u=l.exec(c.text),f=d(u.slice(1)),p=c.range;let w=u.index;e.enqueueChange(S=>{for(let B=1;B<u.length;B++){const z=u[B],V=f[B-1];if(V==null){w+=z.length;continue}const J=p.start.getShiftedBy(w),st=e.createRange(J,J.getShiftedBy(z.length)),pt=D5(J);e.insertContent(S.createText(V,pt),st),w+=V.length}e.enqueueChange(()=>{n.requestUndoOnBackspace()})})}),s.bind("isEnabled").to(this)}}function x5(o){return typeof o=="string"?new RegExp(`(${rg(o)})$`):o}function E5(o){return typeof o=="string"?()=>[o]:o instanceof Array?()=>o:o}function D5(o){return(o.textNode?o.textNode:o.nodeAfter).getAttributes()}function On(o){return new RegExp(`(^|\\s)(${o})([^${o}]*)(${o})$`)}function S5(o){const t=o.extra||[],e=o.remove||[],n=r=>!e.includes(r),i=o.include.concat(t).filter(n);return T5(i).filter(n).map(r=>typeof r=="string"&&Sg[r]?Sg[r]:r).filter(r=>typeof r=="object").map(r=>({from:x5(r.from),to:E5(r.to)}))}function T5(o){const t=new Set;for(const e of o)if(typeof e=="string"&&Tg[e])for(const n of Tg[e])t.add(n);else t.add(e);return Array.from(t)}function Ei(o,t,e,n){return n.createRange(Ig(o,t,e,!0,n),Ig(o,t,e,!1,n))}function Ig(o,t,e,n,i){let r=o.textNode||(n?o.nodeBefore:o.nodeAfter),s=null;for(;r&&r.getAttribute(t)==e;)s=r,r=n?r.previousSibling:r.nextSibling;return s?i.createPositionAt(s,n?"before":"after"):o}function I5(o,t,e,n){const i=o.editing.view,r=new Set;i.document.registerPostFixer(s=>{const a=o.model.document.selection;let c=!1;if(a.hasAttribute(t)){const l=Ei(a.getFirstPosition(),t,a.getAttribute(t),o.model),d=o.editing.mapper.toViewRange(l);for(const u of d.getItems())u.is("element",e)&&!u.hasClass(n)&&(s.addClass(n,u),r.add(u),c=!0)}return c}),o.conversion.for("editingDowncast").add(s=>{s.on("insert",a,{priority:"highest"}),s.on("remove",a,{priority:"highest"}),s.on("attribute",a,{priority:"highest"}),s.on("selection",a,{priority:"highest"});function a(){i.change(c=>{for(const l of r.values())c.removeClass(n,l),r.delete(l)})}})}function qe(o,t,e,n){let i,r=null;typeof n=="function"?i=n:(r=o.commands.get(n),i=()=>{o.execute(n)}),o.model.document.on("change:data",(s,a)=>{if(r&&!r.isEnabled||!t.isEnabled)return;const c=It(o.model.document.selection.getRanges());if(!c.isCollapsed||a.isUndo||!a.isLocal)return;const l=Array.from(o.model.document.differ.getChanges()),d=l[0];if(l.length!=1||d.type!=="insert"||d.name!="$text"||d.length!=1)return;const u=d.position.parent;if(u.is("element","codeBlock")||u.is("element","listItem")&&typeof n!="function"&&!["numberedList","bulletedList","todoList"].includes(n)||r&&r.value===!0)return;const f=u.getChild(0),p=o.model.createRangeOn(f);if(!p.containsRange(c)&&!c.end.isEqual(p.end))return;const w=e.exec(f.data.substr(0,c.end.offset));w&&o.model.enqueueChange(S=>{const B=S.createPositionAt(u,0),z=S.createPositionAt(u,w[0].length),V=new Xt(B,z);if(i({match:w})!==!1){S.remove(V);const st=o.model.document.selection.getFirstRange(),pt=S.createRangeIn(u);u.isEmpty&&!pt.isEqual(st)&&!pt.containsRange(st,!0)&&S.remove(u)}V.detach(),o.model.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})})})}function Rn(o,t,e,n){let i,r;e instanceof RegExp?i=e:r=e,r=r||(s=>{let a;const c=[],l=[];for(;(a=i.exec(s))!==null&&!(a&&a.length<4);){let{index:d,1:u,2:f,3:p}=a;const w=u+f+p;d+=a[0].length-w.length;const S=[d,d+u.length],B=[d+u.length+f.length,d+u.length+f.length+p.length];c.push(S),c.push(B),l.push([d+u.length,d+u.length+f.length])}return{remove:c,format:l}}),o.model.document.on("change:data",(s,a)=>{if(a.isUndo||!a.isLocal||!t.isEnabled)return;const c=o.model,l=c.document.selection;if(!l.isCollapsed)return;const d=Array.from(c.document.differ.getChanges()),u=d[0];if(d.length!=1||u.type!=="insert"||u.name!="$text"||u.length!=1)return;const f=l.focus,p=f.parent,{text:w,range:S}=M5(c.createRange(c.createPositionAt(p,0),f),c),B=r(w),z=Mg(S.start,B.format,c),V=Mg(S.start,B.remove,c);z.length&&V.length&&c.enqueueChange(J=>{if(n(J,z)!==!1){for(const pt of V.reverse())J.remove(pt);c.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})}})})}function Mg(o,t,e){return t.filter(n=>n[0]!==void 0&&n[1]!==void 0).map(n=>e.createRange(o.getShiftedBy(n[0]),o.getShiftedBy(n[1])))}function M5(o,t){let e=o.start;return{text:Array.from(o.getItems()).reduce((i,r)=>!(r.is("$text")||r.is("$textProxy"))||r.getAttribute("code")?(e=t.createPositionAfter(r),""):i+r.data,""),range:t.createRange(e,o.end)}}class B5 extends P{static get requires(){return[Be]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&qe(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&qe(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&qe(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&qe(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const t=this.editor.commands;if(t.get("bold")){const e=Di(this.editor,"bold");Rn(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),Rn(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(t.get("italic")){const e=Di(this.editor,"italic");Rn(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),Rn(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(t.get("code")){const e=Di(this.editor,"code");Rn(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(t.get("strikethrough")){const e=Di(this.editor,"strikethrough");Rn(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter(e=>e.match(/^heading[1-6]$/)).forEach(e=>{const n=e[7],i=new RegExp(`^(#{${n}})\\s$`);qe(this.editor,this,i,()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&qe(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&qe(t,this,/^```$/,()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&qe(this.editor,this,/^---$/,"horizontalLine")}}function Di(o,t){return(e,n)=>{if(!o.commands.get(t).isEnabled)return!1;const r=o.model.schema.getValidRanges(n,t);for(const s of r)e.setAttribute(t,!0,s);e.removeSelectionAttribute(t)}}class Bg extends X{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,i=e.document.selection,r=t.forceValue===void 0?!this.value:t.forceValue;e.change(s=>{if(i.isCollapsed)r?s.setSelectionAttribute(this.attributeKey,!0):s.removeSelectionAttribute(this.attributeKey);else{const a=e.schema.getValidRanges(i.getRanges(),this.attributeKey);for(const c of a)r?s.setAttribute(this.attributeKey,r,c):s.removeAttribute(this.attributeKey,c)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const i of n.getRanges())for(const r of i.getItems())if(e.checkAttribute(r,this.attributeKey))return r.hasAttribute(this.attributeKey);return!1}}const jn="bold";class N5 extends P{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:jn}),t.model.schema.setAttributeProperties(jn,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:jn,view:"strong",upcastAlso:["b",e=>{const n=e.getStyle("font-weight");return n&&(n=="bold"||Number(n)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(jn,new Bg(t,jn)),t.keystrokes.set("CTRL+B",jn)}}const ea="bold";class z5 extends P{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(ea,n=>{const i=t.commands.get(ea),r=new ht(n);return r.set({label:e("Bold"),icon:dt.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{t.execute(ea),t.editing.view.focus()}),r})}}class P5 extends P{static get requires(){return[N5,z5]}static get pluginName(){return"Bold"}}var Ng=L(5363),na={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};na.insert="head",na.singleton=!0,F()(Ng.Z,na),Ng.Z.locals;const Fn="italic";class L5 extends P{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Fn}),t.model.schema.setAttributeProperties(Fn,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Fn,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Fn,new Bg(t,Fn)),t.keystrokes.set("CTRL+I",Fn)}}const O5='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',oa="italic";class R5 extends P{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(oa,n=>{const i=t.commands.get(oa),r=new ht(n);return r.set({label:e("Italic"),icon:O5,keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{t.execute(oa),t.editing.view.focus()}),r})}}class j5 extends P{static get requires(){return[L5,R5]}static get pluginName(){return"Italic"}}function*zg(o,t){for(const e of t)e&&o.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class F5 extends X{execute(){this.editor.model.change(t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})})}enterBlock(t){const e=this.editor.model,n=e.document.selection,i=e.schema,r=n.isCollapsed,s=n.getFirstRange(),a=s.start.parent,c=s.end.parent;if(i.isLimit(a)||i.isLimit(c))return!r&&a==c&&e.deleteContent(n),!1;if(r){const l=zg(t.model.schema,n.getAttributes());return Pg(t,s.start),t.setSelectionAttribute(l),!0}else{const l=!(s.start.isAtStart&&s.end.isAtEnd),d=a==c;if(e.deleteContent(n,{leaveUnmerged:l}),l){if(d)return Pg(t,n.focus),!0;t.setSelection(c,0)}}return!1}}function Pg(o,t){o.split(t),o.setSelection(t.parent.nextSibling,0)}const V5={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Lg extends Ae{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",(i,r)=>{n=r.shiftKey}),e.on("beforeinput",(i,r)=>{if(!this.isEnabled)return;let s=r.inputType;g.isSafari&&n&&s=="insertParagraph"&&(s="insertLineBreak");const a=r.domEvent,c=V5[s];if(!c)return;const l=new Sn(e,"enter",r.targetRanges[0]);e.fire(l,new In(t,a,{isSoft:c.isSoft})),l.stop.called&&i.stop()})}observe(){}stopObserving(){}}class Si extends P{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Lg),t.commands.add("enter",new F5(t)),this.listenTo(n,"enter",(i,r)=>{n.isComposing||r.preventDefault(),!r.isSoft&&(t.execute("enter"),e.scrollToTheSelection())},{priority:"low"})}}class H5 extends X{execute(){const t=this.editor.model,e=t.document;t.change(n=>{q5(t,n,e.selection),this.fire("afterExecute",{writer:n})})}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=U5(t.schema,e.selection)}}function U5(o,t){if(t.rangeCount>1)return!1;const e=t.anchor;if(!e||!o.checkChild(e,"softBreak"))return!1;const n=t.getFirstRange(),i=n.start.parent,r=n.end.parent;return!((ia(i,o)||ia(r,o))&&i!==r)}function q5(o,t,e){const n=e.isCollapsed,i=e.getFirstRange(),r=i.start.parent,s=i.end.parent,a=r==s;if(n){const c=zg(o.schema,e.getAttributes());Og(o,t,i.end),t.removeSelectionAttribute(e.getAttributeKeys()),t.setSelectionAttribute(c)}else{const c=!(i.start.isAtStart&&i.end.isAtEnd);o.deleteContent(e,{leaveUnmerged:c}),a?Og(o,t,e.focus):c&&t.setSelection(s,0)}}function Og(o,t,e){const n=t.createElement("softBreak");o.insertContent(n,e),t.setSelection(n,"after")}function ia(o,t){return o.is("rootElement")?!1:t.isLimit(o)||ia(o.parent,t)}class W5 extends P{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,i=t.editing.view,r=i.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(s,{writer:a})=>a.createEmptyElement("br")}),i.addObserver(Lg),t.commands.add("shiftEnter",new H5(t)),this.listenTo(r,"enter",(s,a)=>{r.isComposing||a.preventDefault(),a.isSoft&&(t.execute("shiftEnter"),i.scrollToTheSelection())},{priority:"low"})}}class G5 extends X{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,i=e.document.selection,r=Array.from(i.getSelectedBlocks()),s=t.forceValue===void 0?!this.value:t.forceValue;e.change(a=>{if(!s)this._removeQuote(a,r.filter(Ti));else{const c=r.filter(l=>Ti(l)||jg(n,l));this._applyQuote(a,c)}})}_getValue(){const t=this.editor.model.document.selection,e=It(t.getSelectedBlocks());return!!(e&&Ti(e))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=It(t.getSelectedBlocks());return n?jg(e,n):!1}_removeQuote(t,e){Rg(t,e).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd){t.unwrap(n.start.parent);return}if(n.start.isAtStart){const r=t.createPositionBefore(n.start.parent);t.move(n,r);return}n.end.isAtEnd||t.split(n.end);const i=t.createPositionAfter(n.end.parent);t.move(n,i)})}_applyQuote(t,e){const n=[];Rg(t,e).reverse().forEach(i=>{let r=Ti(i.start);r||(r=t.createElement("blockQuote"),t.wrap(i,r)),n.push(r)}),n.reverse().reduce((i,r)=>i.nextSibling==r?(t.merge(t.createPositionAfter(i)),i):r)}}function Ti(o){return o.parent.name=="blockQuote"?o.parent:null}function Rg(o,t){let e,n=0;const i=[];for(;n<t.length;){const r=t[n],s=t[n+1];e||(e=o.createPositionBefore(r)),(!s||r.nextSibling!=s)&&(i.push(o.createRange(e,o.createPositionAfter(r))),e=null),n++}return i}function jg(o,t){const e=o.checkChild(t.parent,"blockQuote"),n=o.checkChild(["$root","blockQuote"],t);return e&&n}class $5 extends P{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[Si,Be]}init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new G5(t)),e.register("blockQuote",{inheritAllFrom:"$container"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer(s=>{const a=t.model.document.differ.getChanges();for(const c of a)if(c.type=="insert"){const l=c.position.nodeAfter;if(!l)continue;if(l.is("element","blockQuote")&&l.isEmpty)return s.remove(l),!0;if(l.is("element","blockQuote")&&!e.checkChild(c.position,l))return s.unwrap(l),!0;if(l.is("element")){const d=s.createRangeIn(l);for(const u of d.getItems())if(u.is("element","blockQuote")&&!e.checkChild(s.createPositionBefore(u),u))return s.unwrap(u),!0}}else if(c.type=="remove"){const l=c.position.parent;if(l.is("element","blockQuote")&&l.isEmpty)return s.remove(l),!0}return!1});const n=this.editor.editing.view.document,i=t.model.document.selection,r=t.commands.get("blockQuote");this.listenTo(n,"enter",(s,a)=>{if(!i.isCollapsed||!r.value)return;i.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),a.preventDefault(),s.stop())},{context:"blockquote"}),this.listenTo(n,"delete",(s,a)=>{if(a.direction!="backward"||!i.isCollapsed||!r.value)return;const c=i.getLastPosition().parent;c.isEmpty&&!c.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),a.preventDefault(),s.stop())},{context:"blockquote"})}}var Fg=L(3789),ra={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ra.insert="head",ra.singleton=!0,F()(Fg.Z,ra),Fg.Z.locals;class K5 extends P{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",n=>{const i=t.commands.get("blockQuote"),r=new ht(n);return r.set({label:e("Block quote"),icon:dt.quote,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),r})}}class Z5 extends P{static get requires(){return[$5,K5]}static get pluginName(){return"BlockQuote"}}const Y5={autoRefresh:!0},Vg=36e5;class sa extends rt(){constructor(t,e={}){if(super(),!t)throw new b("token-missing-token-url",this);e.initValue&&this._validateTokenValue(e.initValue),this.set("value",e.initValue),typeof t=="function"?this._refresh=t:this._refresh=()=>Q5(t),this._options={...Y5,...e}}init(){return new Promise((t,e)=>{if(!this.value){this.refreshToken().then(t).catch(e);return}this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)})}refreshToken(){return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(t){const e=typeof t=="string",n=!/^".*"$/.test(t),i=e&&t.split(".").length===3;if(!(n&&i))throw new b("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));return e?Math.floor((e*1e3-Date.now())/2):Vg}catch{return Vg}}static create(t,e={}){return new sa(t,e).init()}}function Q5(o){return new Promise((t,e)=>{const n=new XMLHttpRequest;n.open("GET",o),n.addEventListener("load",()=>{const i=n.status,r=n.response;return i<200||i>299?e(new b("token-cannot-download-new-token",null)):t(r)}),n.addEventListener("error",()=>e(new Error("Network Error"))),n.addEventListener("abort",()=>e(new Error("Abort"))),n.send()})}const aa=/^data:(\S*?);base64,/;class J5 extends ct(){constructor(t,e,n){if(super(),!t)throw new b("fileuploader-missing-file",null);if(!e)throw new b("fileuploader-missing-token",null);if(!n)throw new b("fileuploader-missing-api-address",null);this.file=tS(t)?X5(t):t,this._token=e,this._apiAddress=n}onProgress(t){return this.on("progress",(e,n)=>t(n)),this}onError(t){return this.once("error",(e,n)=>t(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}_attachXHRListeners(){const t=this.xhr,e=n=>()=>this.fire("error",n);t.addEventListener("error",e("Network Error")),t.addEventListener("abort",e("Abort")),t.upload&&t.upload.addEventListener("progress",n=>{n.lengthComputable&&this.fire("progress",{total:n.total,uploaded:n.loaded})}),t.addEventListener("load",()=>{const n=t.status,i=t.response;if(n<200||n>299)return this.fire("error",i.message||i.error)})}_sendRequest(){const t=new FormData,e=this.xhr;return t.append("file",this.file),new Promise((n,i)=>{e.addEventListener("load",()=>{const r=e.status,s=e.response;return r<200||r>299?s.message?i(new b("fileuploader-uploading-data-failed",this,{message:s.message})):i(s.error):n(s)}),e.addEventListener("error",()=>i(new Error("Network Error"))),e.addEventListener("abort",()=>i(new Error("Abort"))),e.send(t)})}}function X5(o,t=512){try{const e=o.match(aa)[1],n=atob(o.replace(aa,"")),i=[];for(let r=0;r<n.length;r+=t){const s=n.slice(r,r+t),a=new Array(s.length);for(let c=0;c<s.length;c++)a[c]=s.charCodeAt(c);i.push(new Uint8Array(a))}return new Blob(i,{type:e})}catch{throw new b("fileuploader-decoding-image-data-error",null)}}function tS(o){if(typeof o!="string")return!1;const t=o.match(aa);return!!(t&&t.length)}class eS{constructor(t,e){if(!t)throw new b("uploadgateway-missing-token",null);if(!e)throw new b("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new J5(t,this._token,this._apiAddress)}}class nS extends Yo{static get pluginName(){return"CloudServicesCore"}createToken(t,e){return new sa(t,e)}createUploadGateway(t,e){return new eS(t,e)}}class oS extends Yo{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[nS]}async init(){const e=this.context.config.get("cloudServices")||{};for(const[i,r]of Object.entries(e))this[i]=r;if(!this.tokenUrl){this.token=null;return}const n=this.context.plugins.get("CloudServicesCore");this.token=await n.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)}async registerTokenUrl(t){if(this._tokens.has(t))return this.getTokenFor(t);const n=await this.context.plugins.get("CloudServicesCore").createToken(t).init();return this._tokens.set(t,n),n}getTokenFor(t){const e=this._tokens.get(t);if(!e)throw new b("cloudservices-token-not-registered",this);return e}destroy(){super.destroy();for(const t of this._tokens.values())t.destroy()}}class Do extends je{constructor(t){super(t),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const e=this.document;this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"});function n(i){return(r,s)=>{s.preventDefault();const a=s.dropRange?[s.dropRange]:null,c=new Pt(e,i);e.fire(c,{dataTransfer:s.dataTransfer,method:r.name,targetRanges:a,target:s.target,domEvent:s.domEvent}),c.stop.called&&s.stopPropagation()}}}onDomEvent(t){const e="clipboardData"in t?t.clipboardData:t.dataTransfer,n=t.type=="drop"||t.type=="paste",i={dataTransfer:new bu(e,{cacheFiles:n})};(t.type=="drop"||t.type=="dragover")&&(i.dropRange=iS(this.view,t)),this.fire(t.type,t,i)}}function iS(o,t){const e=t.target.ownerDocument,n=t.clientX,i=t.clientY;let r;return e.caretRangeFromPoint&&e.caretRangeFromPoint(n,i)?r=e.caretRangeFromPoint(n,i):t.rangeParent&&(r=e.createRange(),r.setStart(t.rangeParent,t.rangeOffset),r.collapse(!0)),r?o.domConverter.domRangeToView(r):null}function rS(o){return o=o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g," ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," "),(o.includes("</p><p>")||o.includes("<br>"))&&(o=`<p>${o}</p>`),o}function sS(o){return o.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(t,e)=>e.length==1?" ":e).replace(/<!--[\s\S]*?-->/g,"")}const Hg=["figcaption","li"],Ug=["ol","ul"];function qg(o){if(o.is("$text")||o.is("$textProxy"))return o.data;if(o.is("element","img")&&o.hasAttribute("alt"))return o.getAttribute("alt");if(o.is("element","br"))return`
|
|
|
`;let t="",e=null;for(const n of o.getChildren())t+=aS(n,e)+qg(n),e=n;return t}function aS(o,t){return t?o.is("element","li")&&!o.isEmpty&&o.getChild(0).is("containerElement")||Ug.includes(o.name)&&Ug.includes(t.name)?`
|
|
|
|
|
|
`:!o.is("containerElement")&&!t.is("containerElement")?"":Hg.includes(o.name)||Hg.includes(t.name)?`
|
|
|
`:`
|
|
|
|
|
|
`:""}class ve extends P{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Do),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(t,e,n){const i=this.editor.model.getSelectedContent(e);this.fire("outputTransformation",{dataTransfer:t,content:i,method:n})}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document;this.listenTo(i,"clipboardInput",(r,s)=>{s.method=="paste"&&!t.model.canEditAt(t.model.document.selection)&&r.stop()},{priority:"highest"}),this.listenTo(i,"clipboardInput",(r,s)=>{const a=s.dataTransfer;let c;if(s.content)c=s.content;else{let d="";a.getData("text/html")?d=sS(a.getData("text/html")):a.getData("text/plain")&&(d=rS(a.getData("text/plain"))),c=this.editor.data.htmlProcessor.toView(d)}const l=new Pt(this,"inputTransformation");this.fire(l,{content:c,dataTransfer:a,targetRanges:s.targetRanges,method:s.method}),l.stop.called&&r.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(r,s)=>{if(s.content.isEmpty)return;const c=this.editor.data.toModel(s.content,"$clipboardHolder");c.childCount!=0&&(r.stop(),e.change(()=>{this.fire("contentInsertion",{content:c,method:s.method,dataTransfer:s.dataTransfer,targetRanges:s.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(r,s)=>{s.resultRange=e.insertContent(s.content)},{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,i=t.editing.view.document,r=(s,a)=>{const c=a.dataTransfer;a.preventDefault(),this._fireOutputTransformationEvent(c,e.selection,s.name)};this.listenTo(i,"copy",r,{priority:"low"}),this.listenTo(i,"cut",(s,a)=>{t.model.canEditAt(t.model.document.selection)?r(s,a):a.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(s,a)=>{const c=t.data.toView(a.content);i.fire("clipboardOutput",{dataTransfer:a.dataTransfer,content:c,method:a.method})},{priority:"low"}),this.listenTo(i,"clipboardOutput",(s,a)=>{a.content.isEmpty||(a.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(a.content)),a.dataTransfer.setData("text/plain",qg(a.content))),a.method=="cut"&&t.model.deleteContent(e.selection)},{priority:"low"})}}class cS extends ct(){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,i=n[0];this._insertDescriptor(t);const r=n[0];i!==r&&!ca(i,r)&&this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}remove(t,e){const n=this._stack,i=n[0];this._removeDescriptor(t);const r=n[0];i!==r&&!ca(i,r)&&this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex(r=>r.id===t.id);if(ca(t,e[n]))return;n>-1&&e.splice(n,1);let i=0;for(;e[i]&&lS(e[i],t);)i++;e.splice(i,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex(i=>i.id===t);n>-1&&e.splice(n,1)}}function ca(o,t){return o&&t&&o.priority==t.priority&&Ii(o.classes)==Ii(t.classes)}function lS(o,t){return o.priority>t.priority?!0:o.priority<t.priority?!1:Ii(o.classes)>Ii(t.classes)}function Ii(o){return Array.isArray(o)?o.sort().join(","):o}const dS='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',uS="ck-widget",Wg="ck-widget_selected";function Mt(o){return o.is("element")?!!o.getCustomProperty("widget"):!1}function la(o,t,e={}){if(!o.is("containerElement"))throw new b("widget-to-widget-wrong-element-type",null,{element:o});return t.setAttribute("contenteditable","false",o),t.addClass(uS,o),t.setCustomProperty("widget",!0,o),o.getFillerOffset=pS,t.setCustomProperty("widgetLabel",[],o),e.label&&fS(o,e.label),e.hasSelectionHandle&&kS(o,t),Gg(o,t),o}function hS(o,t,e){if(t.classes&&e.addClass(Tt(t.classes),o),t.attributes)for(const n in t.attributes)e.setAttribute(n,t.attributes[n],o)}function gS(o,t,e){if(t.classes&&e.removeClass(Tt(t.classes),o),t.attributes)for(const n in t.attributes)e.removeAttribute(n,o)}function Gg(o,t,e=hS,n=gS){const i=new cS;i.on("change:top",(a,c)=>{c.oldDescriptor&&n(o,c.oldDescriptor,c.writer),c.newDescriptor&&e(o,c.newDescriptor,c.writer)});const r=(a,c,l)=>i.add(c,l),s=(a,c,l)=>i.remove(c,l);t.setCustomProperty("addHighlight",r,o),t.setCustomProperty("removeHighlight",s,o)}function fS(o,t){o.getCustomProperty("widgetLabel").push(t)}function mS(o){return o.getCustomProperty("widgetLabel").reduce((e,n)=>typeof n=="function"?e?e+". "+n():n():e?e+". "+n:n,"")}function $g(o,t,e={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],o),t.setAttribute("role","textbox",o),e.label&&t.setAttribute("aria-label",e.label,o),t.setAttribute("contenteditable",o.isReadOnly?"false":"true",o),o.on("change:isReadOnly",(n,i,r)=>{t.setAttribute("contenteditable",r?"false":"true",o)}),o.on("change:isFocused",(n,i,r)=>{r?t.addClass("ck-editor__nested-editable_focused",o):t.removeClass("ck-editor__nested-editable_focused",o)}),Gg(o,t),o}function Kg(o,t){const e=o.getSelectedElement();if(e){const n=We(o);if(n)return t.createRange(t.createPositionAt(e,n))}return bh(o,t)}function pS(){return null}function kS(o,t){const e=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(n){const i=this.toDomElement(n),r=new Se;return r.set("content",dS),r.render(),i.appendChild(r.element),i});t.insert(t.createPositionAt(o,0),e),t.addClass(["ck-widget_with-selection-handle"],o)}const ze="widget-type-around";function dn(o,t,e){return!!o&&Mt(o)&&!e.isInline(t)}function bS(o){return o.closest(".ck-widget__type-around__button")}function wS(o){return o.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function AS(o,t){const e=o.closest(".ck-widget");return t.mapDomToView(e)}function We(o){return o.getAttribute(ze)}const CS='<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>';var Zg=L(2347),da={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};da.insert="head",da.singleton=!0,F()(Zg.Z,da),Zg.Z.locals;const Yg=["before","after"],_S=new DOMParser().parseFromString(CS,"image/svg+xml").firstChild,Qg="ck-widget__type-around_disabled";class vS extends P{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Si,Be]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",(n,i,r)=>{e.change(s=>{for(const a of e.document.roots)r?s.removeClass(Qg,a):s.addClass(Qg,a)}),r||t.model.change(s=>{s.removeSelectionAttribute(ze)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,i=n.editing.view,r=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:r}),i.focus(),i.scrollToTheSelection()}_listenToIfEnabled(t,e,n,i){this.listenTo(t,e,(...r)=>{this.isEnabled&&n(...r)},i)}_insertParagraphAccordingToFakeCaretPosition(){const n=this.editor.model.document.selection,i=We(n);if(!i)return!1;const r=n.getSelectedElement();return this._insertParagraph(r,i),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(r,s,a)=>{const c=a.mapper.toViewElement(s.item);c&&dn(c,s.item,e)&&(yS(a.writer,i,c),c.getCustomProperty("widgetLabel").push(()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,i=e.schema,r=t.editing.view;this._listenToIfEnabled(r.document,"arrowKey",(a,c)=>{this._handleArrowKeyPress(a,c)},{context:[Mt,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(a,c)=>{c.directChange&&t.model.change(l=>{l.removeSelectionAttribute(ze)})}),this._listenToIfEnabled(e.document,"change:data",()=>{const a=n.getSelectedElement();if(a){const c=t.editing.mapper.toViewElement(a);if(dn(c,a,i))return}t.model.change(c=>{c.removeSelectionAttribute(ze)})}),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(a,c,l)=>{const d=l.writer;if(this._currentFakeCaretModelElement){const w=l.mapper.toViewElement(this._currentFakeCaretModelElement);w&&(d.removeClass(Yg.map(s),w),this._currentFakeCaretModelElement=null)}const u=c.selection.getSelectedElement();if(!u)return;const f=l.mapper.toViewElement(u);if(!dn(f,u,i))return;const p=We(c.selection);p&&(d.addClass(s(p),f),this._currentFakeCaretModelElement=u)}),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(a,c,l)=>{l||t.model.change(d=>{d.removeSelectionAttribute(ze)})});function s(a){return`ck-widget_type-around_show-fake-caret_${a}`}}_handleArrowKeyPress(t,e){const n=this.editor,i=n.model,r=i.document.selection,s=i.schema,a=n.editing.view,c=e.keyCode,l=o0(c,n.locale.contentLanguageDirection),d=a.document.selection.getSelectedElement(),u=n.editing.mapper.toModelElement(d);let f;dn(d,u,s)?f=this._handleArrowKeyPressOnSelectedWidget(l):r.isCollapsed?f=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):e.shiftKey||(f=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),f&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const n=this.editor.model,i=n.document.selection,r=We(i);return n.change(s=>{if(r){if(!(r===(t?"after":"before")))return s.removeSelectionAttribute(ze),!0}else return s.setSelectionAttribute(ze,t?"after":"before"),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,i=n.schema,r=e.plugins.get("Widget"),s=r._getObjectElementNextToSelection(t),a=e.editing.mapper.toViewElement(s);return dn(a,s,i)?(n.change(c=>{r._setSelectionOverElement(s),c.setSelectionAttribute(ze,t?"before":"after")}),!0):!1}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,i=n.schema,r=e.editing.mapper,s=n.document.selection,a=t?s.getLastPosition().nodeBefore:s.getFirstPosition().nodeAfter,c=r.toViewElement(a);return dn(c,a,i)?(n.change(l=>{l.setSelection(a,"on"),l.setSelectionAttribute(ze,t?"after":"before")}),!0):!1}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",(n,i)=>{const r=bS(i.domTarget);if(!r)return;const s=wS(r),a=AS(r,e.domConverter),c=t.editing.mapper.toModelElement(a);this._insertParagraph(c,s),i.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",(i,r)=>{if(i.eventPhase!="atTarget")return;const s=e.getSelectedElement(),a=t.editing.mapper.toViewElement(s),c=t.model.schema;let l;this._insertParagraphAccordingToFakeCaretPosition()?l=!0:dn(a,s,c)&&(this._insertParagraph(s,r.isSoft?"before":"after"),l=!0),l&&(r.preventDefault(),i.stop())},{context:Mt})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",(n,i)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(i.selection=e.selection)},{priority:"high"}),g.isAndroid?this._listenToIfEnabled(e,"keydown",(n,i)=>{i.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(e,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,e=t.editing.view,n=t.model,i=n.schema;this._listenToIfEnabled(e.document,"delete",(r,s)=>{if(r.eventPhase!="atTarget")return;const a=We(n.document.selection);if(!a)return;const c=s.direction,l=n.document.selection.getSelectedElement(),d=a==="before",u=c=="forward";if(d===u)t.execute("delete",{selection:n.createSelection(l,"on")});else{const p=i.getNearestSelectionRange(n.createPositionAt(l,a),c);if(p)if(!p.isCollapsed)n.change(w=>{w.setSelection(p),t.execute(u?"deleteForward":"delete")});else{const w=n.createSelection(p.start);if(n.modifySelection(w,{direction:c}),!w.focus.isEqual(p.start))n.change(S=>{S.setSelection(p),t.execute(u?"deleteForward":"delete")});else{const S=DS(i,p.start.parent);n.deleteContent(n.createSelection(S,"on"),{doNotAutoparagraph:!0})}}}s.preventDefault(),r.stop()},{context:Mt})}_enableInsertContentIntegration(){const t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",(i,[r,s])=>{if(s&&!s.is("documentSelection"))return;const a=We(n);if(a)return i.stop(),e.change(c=>{const l=n.getSelectedElement(),d=e.createPositionAt(l,a),u=c.createSelection(d),f=e.insertContent(r,u);return c.setSelection(u),f})},{priority:"high"})}_enableInsertObjectIntegration(){const t=this.editor,n=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",(i,r)=>{const[,s,a={}]=r;if(s&&!s.is("documentSelection"))return;const c=We(n);c&&(a.findOptimalPosition=c,r[3]=a)},{priority:"high"})}_enableDeleteContentIntegration(){const t=this.editor,n=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",(i,[r])=>{if(r&&!r.is("documentSelection"))return;We(n)&&i.stop()},{priority:"high"})}}function yS(o,t,e){const n=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(i){const r=this.toDomElement(i);return xS(r,t),ES(r),r});o.insert(o.createPositionAt(e,"end"),n)}function xS(o,t){for(const e of Yg){const n=new re({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${e}`],title:t[e],"aria-hidden":"true"},children:[o.ownerDocument.importNode(_S,!0)]});o.appendChild(n.render())}}function ES(o){const t=new re({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});o.appendChild(t.render())}function DS(o,t){let e=t;for(const n of t.getAncestors({parentFirst:!0})){if(n.childCount>1||o.isLimit(n))break;e=n}return e}function SS(o){const t=o.model;return(e,n)=>{const i=n.keyCode==tt.arrowup,r=n.keyCode==tt.arrowdown,s=n.shiftKey,a=t.document.selection;if(!i&&!r)return;const c=r;if(s&&MS(a,c))return;const l=TS(o,a,c);if(l){if(l.isCollapsed){if(a.isCollapsed)return;if(s)return}(l.isCollapsed||IS(o,l,c))&&(t.change(d=>{const u=c?l.end:l.start;if(s){const f=t.createSelection(a.anchor);f.setFocus(u),d.setSelection(f)}else d.setSelection(u)}),e.stop(),n.preventDefault(),n.stopPropagation())}}}function TS(o,t,e){const n=o.model;if(e){const i=t.isCollapsed?t.focus:t.getLastPosition(),r=Jg(n,i,"forward");if(!r)return null;const s=n.createRange(i,r),a=Xg(n.schema,s,"backward");return a?n.createRange(i,a):null}else{const i=t.isCollapsed?t.focus:t.getFirstPosition(),r=Jg(n,i,"backward");if(!r)return null;const s=n.createRange(r,i),a=Xg(n.schema,s,"forward");return a?n.createRange(a,i):null}}function Jg(o,t,e){const n=o.schema,i=o.createRangeIn(t.root),r=e=="forward"?"elementStart":"elementEnd";for(const{previousPosition:s,item:a,type:c}of i.getWalker({startPosition:t,direction:e})){if(n.isLimit(a)&&!n.isInline(a))return s;if(c==r&&n.isBlock(a))return null}return null}function Xg(o,t,e){const n=e=="backward"?t.end:t.start;if(o.checkChild(n,"$text"))return n;for(const{nextPosition:i}of t.getWalker({direction:e}))if(o.checkChild(i,"$text"))return i;return null}function IS(o,t,e){const n=o.model,i=o.view.domConverter;if(e){const l=n.createSelection(t.start);n.modifySelection(l),!l.focus.isAtEnd&&!t.start.isEqual(l.focus)&&(t=n.createRange(l.focus,t.end))}const r=o.mapper.toViewRange(t),s=i.viewRangeToDom(r),a=Q.getDomRangeRects(s);let c;for(const l of a){if(c===void 0){c=Math.round(l.bottom);continue}if(Math.round(l.top)>=c)return!1;c=Math.max(c,Math.round(l.bottom))}return!0}function MS(o,t){return!o.isCollapsed&&o.isBackward==t}var tf=L(7153),ua={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ua.insert="head",ua.singleton=!0,F()(tf.Z,ua),tf.Z.locals;class So extends P{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[vS,Be]}init(){const t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",(i,r,s)=>{const a=s.writer,c=r.selection;if(c.isCollapsed)return;const l=c.getSelectedElement();if(!l)return;const d=t.editing.mapper.toViewElement(l);Mt(d)&&s.consumable.consume(c,"selection")&&a.setSelection(a.createRangeOn(d),{fake:!0,label:mS(d)})}),this.editor.editing.downcastDispatcher.on("selection",(i,r,s)=>{this._clearPreviouslySelectedWidgets(s.writer);const a=s.writer,c=a.document.selection;let l=null;for(const d of c.getRanges())for(const u of d){const f=u.item;Mt(f)&&!NS(f,l)&&(a.addClass(Wg,f),this._previouslySelected.add(f),l=f)}},{priority:"low"}),e.addObserver(hi),this.listenTo(n,"mousedown",(...i)=>this._onMousedown(...i)),this.listenTo(n,"arrowKey",(...i)=>{this._handleSelectionChangeOnArrowKeyPress(...i)},{context:[Mt,"$text"]}),this.listenTo(n,"arrowKey",(...i)=>{this._preventDefaultOnArrowKeyPress(...i)},{context:"$root"}),this.listenTo(n,"arrowKey",SS(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(i,r)=>{this._handleDelete(r.direction=="forward")&&(r.preventDefault(),i.stop())},{context:"$root"})}_onMousedown(t,e){const n=this.editor,i=n.editing.view,r=i.document;let s=e.target;if(e.domEvent.detail>=3){this._selectBlockContent(s)&&e.preventDefault();return}if(BS(s)||!Mt(s)&&(s=s.findAncestor(Mt),!s))return;g.isAndroid&&e.preventDefault(),r.isFocused||i.focus();const a=n.editing.mapper.toModelElement(s);this._setSelectionOverElement(a)}_selectBlockContent(t){const e=this.editor,n=e.model,i=e.editing.mapper,r=n.schema,s=i.findMappedViewAncestor(this.editor.editing.view.createPositionAt(t,0)),a=zS(i.toModelElement(s),n.schema);return a?(n.change(c=>{const l=r.isLimit(a)?null:PS(c.createPositionAfter(a),r),d=c.createPositionAt(a,0),u=l?c.createPositionAt(l,0):c.createPositionAt(a,"end");c.setSelection(c.createRange(d,u))}),!0):!1}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,i=this.editor.model,r=i.schema,s=i.document.selection,a=s.getSelectedElement(),c=br(n,this.editor.locale.contentLanguageDirection),l=c=="down"||c=="right",d=c=="up"||c=="down";if(a&&r.isObject(a)){const f=l?s.getLastPosition():s.getFirstPosition(),p=r.getNearestSelectionRange(f,l?"forward":"backward");p&&(i.change(w=>{w.setSelection(p)}),e.preventDefault(),t.stop());return}if(!s.isCollapsed&&!e.shiftKey){const f=s.getFirstPosition(),p=s.getLastPosition(),w=f.nodeAfter,S=p.nodeBefore;(w&&r.isObject(w)||S&&r.isObject(S))&&(i.change(B=>{B.setSelection(l?p:f)}),e.preventDefault(),t.stop());return}if(!s.isCollapsed)return;const u=this._getObjectElementNextToSelection(l);if(u&&r.isObject(u)){if(r.isInline(u)&&d)return;this._setSelectionOverElement(u),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,i=n.schema,r=n.document.selection.getSelectedElement();r&&i.isObject(r)&&(e.preventDefault(),t.stop())}_handleDelete(t){const n=this.editor.model.document.selection;if(!this.editor.model.canEditAt(n)||!n.isCollapsed)return;const i=this._getObjectElementNextToSelection(t);if(i)return this.editor.model.change(r=>{let s=n.anchor.parent;for(;s.isEmpty;){const a=s;s=a.parent,r.remove(a)}this._setSelectionOverElement(i)}),!0}_setSelectionOverElement(t){this.editor.model.change(e=>{e.setSelection(e.createRangeOn(t))})}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,i=e.document.selection,r=e.createSelection(i);if(e.modifySelection(r,{direction:t?"forward":"backward"}),r.isEqual(i))return null;const s=t?r.focus.nodeBefore:r.focus.nodeAfter;return s&&n.isObject(s)?s:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Wg,e);this._previouslySelected.clear()}}function BS(o){let t=o;for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(Mt(t))return!1;t=t.parent}return!1}function NS(o,t){return t?Array.from(o.getAncestors()).includes(t):!1}function zS(o,t){for(const e of o.getAncestors({includeSelf:!0,parentFirst:!0})){if(t.checkChild(e,"$text"))return e;if(t.isLimit(e)&&!t.isObject(e))break}return null}function PS(o,t){const e=new fe({startPosition:o});for(const{item:n}of e){if(t.isLimit(n)||!n.is("element"))return null;if(t.checkChild(n,"$text"))return n}return null}class Mi extends P{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[_i]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",n=>{LS(t.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:i,balloonClassName:r="ck-toolbar-container"}){if(!n.length){at("widget-toolbar-no-items",{toolbarId:t});return}const s=this.editor,a=s.t,c=new ws(s.locale);if(c.ariaLabel=e||a("Widget toolbar"),this._toolbarDefinitions.has(t))throw new b("widget-toolbar-duplicated",this,{toolbarId:t});const l={view:c,getRelatedElement:i,balloonClassName:r,itemsConfig:n,initialized:!1};s.ui.addToolbar(c,{isContextual:!0,beforeFocus:()=>{const d=i(s.editing.view.document.selection);d&&this._showToolbar(l,d)},afterBlur:()=>{this._hideToolbar(l)}}),this._toolbarDefinitions.set(t,l)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const i of this._toolbarDefinitions.values()){const r=i.getRelatedElement(this.editor.editing.view.document.selection);if(!this.isEnabled||!r)this._isToolbarInBalloon(i)&&this._hideToolbar(i);else if(!this.editor.ui.focusTracker.isFocused)this._isToolbarVisible(i)&&this._hideToolbar(i);else{const s=r.getAncestors().length;s>t&&(t=s,e=r,n=i)}}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?ef(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:nf(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const n of this._toolbarDefinitions.values())if(this._isToolbarVisible(n)){const i=n.getRelatedElement(this.editor.editing.view.document.selection);ef(this.editor,i)}}))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function ef(o,t){const e=o.plugins.get("ContextualBalloon"),n=nf(o,t);e.updatePosition(n)}function nf(o,t){const e=o.editing.view,n=Rt.defaultPositions;return{target:e.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}function LS(o){const t=o.getSelectedElement();return!!(t&&Mt(t))}class OS extends rt(){constructor(t){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(t,e,n){const i=new Q(e);this.activeHandlePosition=VS(t),this._referenceCoordinates=jS(e,HS(this.activeHandlePosition)),this._originalWidth=i.width,this._originalHeight=i.height,this._aspectRatio=i.width/i.height;const r=n.style.width;r&&r.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(r):this._originalWidthPercents=RS(n,i)}update(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}function RS(o,t){const e=o.parentElement;let n=parseFloat(e.ownerDocument.defaultView.getComputedStyle(e).width);const i=5;let r=0,s=e;for(;isNaN(n);){if(s=s.parentElement,++r>i)return 0;n=parseFloat(e.ownerDocument.defaultView.getComputedStyle(s).width)}return t.width/n*100}function jS(o,t){const e=new Q(o),n=t.split("-"),i={x:n[1]=="right"?e.right:e.left,y:n[0]=="bottom"?e.bottom:e.top};return i.x+=o.ownerDocument.defaultView.scrollX,i.y+=o.ownerDocument.defaultView.scrollY,i}function FS(o){return`ck-widget__resizer__handle-${o}`}function VS(o){const t=["top-left","top-right","bottom-right","bottom-left"];for(const e of t)if(o.classList.contains(FS(e)))return e}function HS(o){const t=o.split("-"),e={top:"bottom",bottom:"top",left:"right",right:"left"};return`${e[t[0]]}-${e[t[1]]}`}class US extends Y{constructor(){super();const t=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",t.to("_viewPosition",e=>e?`ck-orientation-${e}`:"")],style:{display:t.if("_isVisible","none",e=>!e)}},children:[{text:t.to("_label")}]})}_bindToState(t,e){this.bind("_isVisible").to(e,"proposedWidth",e,"proposedHeight",(n,i)=>n!==null&&i!==null),this.bind("_label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",(n,i,r)=>t.unit==="px"?`${n}×${i}`:`${r}%`),this.bind("_viewPosition").to(e,"activeHandlePosition",e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",(n,i,r)=>i<50||r<50?"above-center":n)}_dismiss(){this.unbind(),this._isVisible=!1}}class of extends rt(){constructor(t){super(),this._viewResizerWrapper=null,this._options=t,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(e,n)=>e&&n),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",e=>{!this.state.proposedWidth&&!this.state.proposedWidthPercents&&(this._cleanup(),e.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(e=>{e.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(e=>{e.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const t=this,e=this._options.viewElement;this._options.editor.editing.view.change(i=>{const r=i.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(s){const a=this.toDomElement(s);return t._appendHandles(a),t._appendSizeUI(a),a});i.insert(i.createPositionAt(e,"end"),r),i.addClass("ck-widget_with-resizer",e),this._viewResizerWrapper=r,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(t){this._state=new OS(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost())}updateSize(t){const e=this._proposeNewSize(t);this._options.editor.editing.view.change(l=>{const d=this._options.unit||"%",u=(d==="%"?e.widthPercents:e.width)+d;l.setStyle("width",u,this._options.viewElement)});const i=this._getHandleHost(),r=new Q(i),s=Math.round(r.width),a=Math.round(r.height),c=new Q(i);e.width=Math.round(c.width),e.height=Math.round(c.height),this.redraw(r),this.state.update({...e,handleHostWidth:s,handleHostHeight:a})}commit(){const t=this._options.unit||"%",e=(t==="%"?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(e)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(t){const e=this._domResizerWrapper;if(!GS(e))return;const n=e.parentElement,i=this._getHandleHost(),r=this._viewResizerWrapper,s=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let a;if(n.isSameNode(i)){const c=t||new Q(i);a=[c.width+"px",c.height+"px",void 0,void 0]}else a=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];jt(s,a)!=="same"&&this._options.editor.editing.view.change(c=>{c.setStyle({width:a[0],height:a[1],left:a[2],top:a[3]},r)})}containsHandle(t){return this._domResizerWrapper.contains(t)}static isResizeHandle(t){return t.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(e=>{e.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(t){const e=this.state,n=WS(t),i=this._options.isCentered?this._options.isCentered(this):!0,r={x:e._referenceCoordinates.x-(n.x+e.originalWidth),y:n.y-e.originalHeight-e._referenceCoordinates.y};i&&e.activeHandlePosition.endsWith("-right")&&(r.x=n.x-(e._referenceCoordinates.x+e.originalWidth)),i&&(r.x*=2);let s=Math.abs(e.originalWidth+r.x),a=Math.abs(e.originalHeight+r.y);return(s/e.aspectRatio>a?"width":"height")=="width"?a=s/e.aspectRatio:s=a*e.aspectRatio,{width:Math.round(s),height:Math.round(a),widthPercents:Math.min(Math.round(e.originalWidthPercents/e.originalWidth*s*100)/100,100)}}_getResizeHost(){const t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}_getHandleHost(){const t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const n of e)t.appendChild(new re({tag:"div",attributes:{class:`ck-widget__resizer__handle ${qS(n)}`}}).render())}_appendSizeUI(t){this._sizeView=new US,this._sizeView.render(),t.appendChild(this._sizeView.element)}}function qS(o){return`ck-widget__resizer__handle-${o}`}function WS(o){return{x:o.pageX,y:o.pageY}}function GS(o){return o&&o.ownerDocument&&o.ownerDocument.contains(o)}var rf=L(4875),ha={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ha.insert="head",ha.singleton=!0,F()(rf.Z,ha),rf.Z.locals;class ga extends P{constructor(){super(...arguments),this._resizers=new Map}static get pluginName(){return"WidgetResize"}init(){const t=this.editor.editing,e=U.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),t.view.addObserver(hi),this._observer=new(Zt()),this.listenTo(t.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(e,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(e,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=Co(()=>this.redrawSelectedResizer(),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[i,r]of this._resizers)i.isAttached()||(this._resizers.delete(i),r.destroy())},{priority:"lowest"}),this._observer.listenTo(U.window,"resize",this._redrawSelectedResizerThrottled);const n=this.editor.editing.view.document.selection;n.on("change",()=>{const i=n.getSelectedElement(),r=this.getResizerByViewElement(i)||null;r?this.select(r):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const t of this._resizers.values())t.destroy();this._redrawSelectedResizerThrottled.cancel()}select(t){this.deselect(),this.selectedResizer=t,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(t){const e=new of(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){const s=n.get("WidgetToolbarRepository");e.on("begin",()=>{s.forceDisabled("resize")},{priority:"lowest"}),e.on("cancel",()=>{s.clearForceDisabled("resize")},{priority:"highest"}),e.on("commit",()=>{s.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(t.viewElement,e);const r=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(r)==e&&this.select(e),e}getResizerByViewElement(t){return this._resizers.get(t)}_getResizerByHandle(t){for(const e of this._resizers.values())if(e.containsHandle(t))return e}_mouseDownListener(t,e){const n=e.domTarget;of.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n)||null,this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}_mouseMoveListener(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}const fa=Xn("px");class $S extends Y{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",e=>!e)],style:{left:t.to("left",e=>fa(e)),top:t.to("top",e=>fa(e)),width:t.to("width",e=>fa(e))}}})}}class Bi extends P{constructor(){super(...arguments),this.removeDropMarkerDelayed=wr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Co(t=>this._updateDropMarker(t),40),this._reconvertMarkerThrottled=Co(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new $S,this._domEmitter=new(Zt()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,i,r,s){this.removeDropMarkerDelayed.cancel();const a=sf(this.editor,t,e,n,i,r,s);if(a){if(s&&s.containsRange(a))return this.removeDropMarker();this._updateDropMarkerThrottled(a)}}getFinalDropRange(t,e,n,i,r,s){const a=sf(this.editor,t,e,n,i,r,s);return this.removeDropMarker(),a}removeDropMarker(){const t=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,t.markers.has("drop-target")&&t.change(e=>{e.removeMarker("drop-target")})}_setupDropMarker(){const t=this.editor;t.ui.view.body.add(this._dropTargetLineView),t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);e.markerRange.isCollapsed?this._updateDropTargetLine(e.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change(i=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||i.updateMarker("drop-target",{range:t}):i.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(t){return t.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){const n=this.toDomElement(e);return n.append("",e.createElement("span"),""),n})}_updateDropTargetLine(t){const e=this.editor.editing,n=t.start.nodeBefore,i=t.start.nodeAfter,r=t.start.parent,s=n?e.mapper.toViewElement(n):null,a=s?e.view.domConverter.mapViewToDom(s):null,c=i?e.mapper.toViewElement(i):null,l=c?e.view.domConverter.mapViewToDom(c):null,d=e.mapper.toViewElement(r),u=e.view.domConverter.mapViewToDom(d),f=this._getScrollableRect(d),{scrollX:p,scrollY:w}=U.window,S=a?new Q(a):null,B=l?new Q(l):null,z=new Q(u).excludeScrollbarsAndBorders(),V=S?S.bottom:z.top,J=B?B.top:z.bottom,st=U.window.getComputedStyle(u),pt=V<=J?(V+J)/2:J;if(f.top<pt&&pt<f.bottom){const H=z.left+parseFloat(st.paddingLeft),Z=z.right-parseFloat(st.paddingRight),q=Math.max(H+p,f.left),At=Math.min(Z+p,f.right);this._dropTargetLineView.set({isVisible:!0,left:q,top:pt+w,width:At-q})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(t){const e=t.root.rootName;let n;if(this._scrollables.has(e))n=this._scrollables.get(e).domElement;else{const i=this.editor.editing.view.domConverter.mapViewToDom(t);n=ZS(i),this._domEmitter.listenTo(n,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const r=new bt(n,this._reconvertMarkerThrottled);this._scrollables.set(e,{domElement:n,resizeObserver:r})}return new Q(n).excludeScrollbarsAndBorders()}}function sf(o,t,e,n,i,r,s){const a=o.model,c=o.editing.mapper;let d=cf(o,t);for(;d;){if(!r){if(a.schema.checkChild(d,"$text")){if(e){const u=e[0].start,f=c.toModelPosition(u);if(!s||Array.from(s.getItems()).every(w=>a.schema.checkChild(f,w))){if(a.schema.checkChild(f,"$text"))return a.createRange(f);if(u)return Ni(o,cf(o,u.parent),n,i)}}}else if(a.schema.isInline(d))return Ni(o,d,n,i)}if(a.schema.isBlock(d))return Ni(o,d,n,i);if(a.schema.checkChild(d,"$block")){const u=Array.from(d.getChildren()).filter(w=>w.is("element")&&!KS(o,w));let f=0,p=u.length;if(p==0)return a.createRange(a.createPositionAt(d,"end"));for(;f<p-1;){const w=Math.floor((f+p)/2);af(o,u[w],n,i)=="before"?p=w:f=w}return Ni(o,u[f],n,i)}d=d.parent}return null}function KS(o,t){const e=o.editing.mapper,n=o.editing.view.domConverter,i=e.toViewElement(t),r=n.mapViewToDom(i);return U.window.getComputedStyle(r).float!="none"}function Ni(o,t,e,n){const i=o.model;return i.createRange(i.createPositionAt(t,af(o,t,e,n)))}function af(o,t,e,n){const i=o.editing.mapper,r=o.editing.view.domConverter,s=i.toViewElement(t),a=r.mapViewToDom(s),c=new Q(a);return o.model.schema.isInline(t)?e<(c.left+c.right)/2?"before":"after":n<(c.top+c.bottom)/2?"before":"after"}function cf(o,t){const e=o.editing.mapper,n=o.editing.view,i=e.toModelElement(t);if(i)return i;const r=n.createPositionBefore(t),s=e.findMappedViewAncestor(r);return e.toModelElement(s)}function ZS(o){let t=o;do{t=t.parentElement;const e=U.window.getComputedStyle(t).overflowY;if(e=="auto"||e=="scroll")break}while(t.tagName!="BODY");return t}class YS extends P{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(Zt())}static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",(e,n,i)=>{i?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),g.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const n=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(n,"dragstart",(i,r)=>this._handleBlockDragStart(r)),this._domEmitter.listenTo(U.document,"dragover",(i,r)=>this._handleBlockDragging(r)),this._domEmitter.listenTo(U.document,"drop",(i,r)=>this._handleBlockDragging(r)),this._domEmitter.listenTo(U.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&n.setAttribute("draggable","true"),this.on("change:isEnabled",(i,r,s)=>{n.setAttribute("draggable",s?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,n=e.document.selection,i=this.editor.editing.view,r=Array.from(n.getSelectedBlocks()),s=e.createRange(e.createPositionBefore(r[0]),e.createPositionAfter(r[r.length-1]));e.change(a=>a.setSelection(s)),this._isBlockDragging=!0,i.focus(),i.getObserver(Do).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+(this.editor.locale.contentLanguageDirection=="ltr"?100:-100),n=t.clientY,i=document.elementFromPoint(e,n),r=this.editor.editing.view;!i||!i.closest(".ck-editor__editable")||r.getObserver(Do).onDomEvent({...t,type:t.type,dataTransfer:t.dataTransfer,target:i,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var lf=L(799),ma={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ma.insert="head",ma.singleton=!0,F()(lf.Z,ma),lf.Z.locals;class QS extends P{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=wr(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(Zt())}static get pluginName(){return"DragDrop"}static get requires(){return[ve,So,Bi,YS]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Do),e.addObserver(hi),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",(n,i,r)=>{r?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(n,i,r)=>{r||this._finalizeDragging(!1)}),g.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=t.plugins.get(Bi);this.listenTo(i,"dragstart",(s,a)=>{if(a.target&&a.target.is("editableElement")){a.preventDefault();return}if(this._prepareDraggedRange(a.target),!this._draggedRange){a.preventDefault();return}this._draggingUid=qt(),a.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",a.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const c=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(a.dataTransfer,c,"dragstart");const{dataTransfer:d,domTarget:u,domEvent:f}=a,{clientX:p}=f;this._updatePreview({dataTransfer:d,domTarget:u,clientX:p}),a.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(i,"dragend",(s,a)=>{this._finalizeDragging(!a.dataTransfer.isCanceled&&a.dataTransfer.dropEffect=="move")},{priority:"low"}),this._domEmitter.listenTo(U.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(i,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(i,"dragleave",()=>{r.removeDropMarkerDelayed()}),this.listenTo(i,"dragging",(s,a)=>{if(!this.isEnabled){a.dataTransfer.dropEffect="none";return}const{clientX:c,clientY:l}=a.domEvent;r.updateDropMarker(a.target,a.targetRanges,c,l,this._blockMode,this._draggedRange),this._draggedRange||(a.dataTransfer.dropEffect="copy"),g.isGecko||(a.dataTransfer.effectAllowed=="copy"?a.dataTransfer.dropEffect="copy":["all","copyMove"].includes(a.dataTransfer.effectAllowed)&&(a.dataTransfer.dropEffect="move")),s.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,n=t.editing.view.document,i=t.plugins.get(Bi);this.listenTo(n,"clipboardInput",(r,s)=>{if(s.method!="drop")return;const{clientX:a,clientY:c}=s.domEvent,l=i.getFinalDropRange(s.target,s.targetRanges,a,c,this._blockMode,this._draggedRange);if(!l){this._finalizeDragging(!1),r.stop();return}if(this._draggedRange&&this._draggingUid!=s.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),df(s.dataTransfer)=="move"&&this._draggedRange&&this._draggedRange.containsRange(l,!0)){this._finalizeDragging(!1),r.stop();return}s.targetRanges=[t.editing.mapper.toViewRange(l)]},{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(ve);t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||n.method!=="drop")return;const i=n.targetRanges.map(r=>this.editor.editing.mapper.toModelRange(r));this.editor.model.change(r=>r.setSelection(i))},{priority:"high"}),t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||n.method!=="drop")return;const i=df(n.dataTransfer)=="move",r=!n.resultRange||!n.resultRange.isCollapsed;this._finalizeDragging(r&&i)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",(i,r)=>{if(g.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let s=uf(r.target);if(g.isBlink&&!t.isReadOnly&&!s&&!n.selection.isCollapsed){const a=n.selection.getSelectedElement();(!a||!Mt(a))&&(s=n.selection.editableElement)}s&&(e.change(a=>{a.setAttribute("draggable","true",s)}),this._draggableElement=t.editing.mapper.toModelElement(s))}),this.listenTo(n,"mouseup",()=>{g.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change(e=>{this._draggableElement&&this._draggableElement.root.rootName!="$graveyard"&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(t){const e=this.editor,n=e.model;e.plugins.get(Bi).removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(t&&this.isEnabled&&n.change(r=>{const s=n.createSelection(this._draggedRange);n.deleteContent(s,{doNotAutoparagraph:!0});const a=s.getFirstPosition().parent;a.isEmpty&&!n.schema.checkChild(a,"$text")&&n.schema.checkChild(a,"paragraph")&&r.insertElement("paragraph",a,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,i=n.document.selection,r=t?uf(t):null;if(r){const l=e.editing.mapper.toModelElement(r);this._draggedRange=Xt.fromRange(n.createRangeOn(l)),this._blockMode=n.schema.isBlock(l),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop");return}if(i.isCollapsed&&!i.getFirstPosition().parent.isEmpty)return;const s=Array.from(i.getSelectedBlocks()),a=i.getFirstRange();if(s.length==0){this._draggedRange=Xt.fromRange(a);return}const c=hf(n,s);if(s.length>1)this._draggedRange=Xt.fromRange(c),this._blockMode=!0;else if(s.length==1){const l=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=Xt.fromRange(l?c:a),this._blockMode=l}n.change(l=>l.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const i=this.editor.editing.view,r=i.document.selection.editableElement,s=i.domConverter.mapViewToDom(r),a=U.window.getComputedStyle(s);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=Wn(U.document,"div",{style:"position: fixed; left: -999999px;"}),U.document.body.appendChild(this._previewContainer));const c=new Q(s);if(s.contains(e))return;const l=parseFloat(a.paddingLeft),d=Wn(U.document,"div");d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-n+l}px`,g.isiOS&&(d.style.backgroundColor="white"),d.innerHTML=t.getData("text/html"),t.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function df(o){return g.isGecko?o.dropEffect:["all","copyMove"].includes(o.effectAllowed)?"move":"copy"}function uf(o){if(o.is("editableElement"))return null;if(o.hasClass("ck-widget__selection-handle"))return o.findAncestor(Mt);if(Mt(o))return o;const t=o.findAncestor(e=>Mt(e)||e.is("editableElement"));return Mt(t)?t:null}function hf(o,t){const e=t[0],n=t[t.length-1],i=e.getCommonAncestor(n),r=o.createPositionBefore(e),s=o.createPositionAfter(n);if(i&&i.is("element")&&!o.schema.isLimit(i)){const a=o.createRangeOn(i),c=r.isTouching(a.start),l=s.isTouching(a.end);if(c&&l)return hf(o,[i])}return o.createRange(r,s)}class JS extends P{static get pluginName(){return"PastePlainText"}static get requires(){return[ve]}init(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=e.document.selection;let s=!1;n.addObserver(Do),this.listenTo(i,"keydown",(a,c)=>{s=c.shiftKey}),t.plugins.get(ve).on("contentInsertion",(a,c)=>{!s&&!XS(c.content,e.schema)||e.change(l=>{const d=Array.from(r.getAttributes()).filter(([f])=>e.schema.getAttributeProperties(f).isFormatting);r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0}),d.push(...r.getAttributes());const u=l.createRangeIn(c.content);for(const f of u.getItems())f.is("$textProxy")&&l.setAttributes(d,f)})})}}function XS(o,t){if(o.childCount>1)return!1;const e=o.getChild(0);return t.isObject(e)?!1:Array.from(e.getAttributeKeys()).length==0}class gf extends P{static get pluginName(){return"Clipboard"}static get requires(){return[ve,QS,JS]}}class tT extends X{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!ff(t.schema,n))do if(n=n.parent,!n)return;while(!ff(t.schema,n));t.change(i=>{i.setSelection(n,"in")})}}function ff(o,t){return o.isLimit(t)&&(o.checkChild(t,"$text")||o.checkChild(t,"paragraph"))}const eT=eo("Ctrl+A");class nT extends P{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,n=t.editing.view.document;t.commands.add("selectAll",new tT(t)),this.listenTo(n,"keydown",(i,r)=>{xn(r)===eT&&(t.execute("selectAll"),r.preventDefault())})}}const oT='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>';class iT extends P{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",e=>{const n=t.commands.get("selectAll"),i=new ht(e),r=e.t;return i.set({label:r("Select all"),icon:oT,keystroke:"Ctrl+A",tooltip:!0}),i.bind("isEnabled").to(n,"isEnabled"),this.listenTo(i,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),i})}}class rT extends P{static get requires(){return[nT,iT]}static get pluginName(){return"SelectAll"}}class mf extends X{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,n)=>{n[1]={...n[1]};const i=n[1];i.batchType||(i.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const i=this.editor.model,r=i.document,s=[],a=t.map(l=>l.getTransformedByOperations(n)),c=a.flat();for(const l of a){const d=l.filter(u=>u.root!=r.graveyard).filter(u=>!aT(u,c));d.length&&(sT(d),s.push(d[0]))}s.length&&i.change(l=>{l.setSelection(s,{backward:e})})}_undo(t,e){const n=this.editor.model,i=n.document;this._createdBatches.add(e);const r=t.operations.slice().filter(s=>s.isDocumentOperation);r.reverse();for(const s of r){const a=s.baseVersion+1,c=Array.from(i.history.getOperations(a)),d=rE([s.getReversed()],c,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let u of d){const f=u.affectedSelectable;f&&!n.canEditAt(f)&&(u=new St(u.baseVersion)),e.addOperation(u),n.applyOperation(u),i.history.setOperationAsUndone(s,u)}}}}function sT(o){o.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<o.length;t++){const n=o[t-1].getJoined(o[t],!0);n&&(t--,o.splice(t,2,n))}}function aT(o,t){return t.some(e=>e!==o&&e.containsRange(o,!0))}class cT extends mf{execute(t=null){const e=t?this._stack.findIndex(r=>r.batch==t):this._stack.length-1,n=this._stack.splice(e,1)[0],i=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(i,()=>{this._undo(n.batch,i);const r=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,r)}),this.fire("revert",n.batch,i),this.refresh()}}class lT extends mf{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const i=t.batch.operations[t.batch.operations.length-1].baseVersion+1,r=this.editor.model.document.history.getOperations(i);this._restoreSelection(t.selection.ranges,t.selection.isBackward,r),this._undo(t.batch,e)}),this.refresh()}}class dT extends P{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor;this._undoCommand=new cT(t),this._redoCommand=new lT(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(e,n)=>{const i=n[0];if(!i.isDocumentOperation)return;const r=i.batch,s=this._redoCommand.createdBatches.has(r),a=this._undoCommand.createdBatches.has(r);this._batchRegistry.has(r)||(this._batchRegistry.add(r),r.isUndoable&&(s?this._undoCommand.addBatch(r):a||(this._undoCommand.addBatch(r),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,n,i)=>{this._redoCommand.addBatch(i)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}const pf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',kf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class uT extends P{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,i=e.uiLanguageDirection=="ltr"?pf:kf,r=e.uiLanguageDirection=="ltr"?kf:pf;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",r)}_addButton(t,e,n,i){const r=this.editor;r.ui.componentFactory.add(t,s=>{const a=r.commands.get(t),c=new ht(s);return c.set({label:e,icon:i,keystroke:n,tooltip:!0}),c.bind("isEnabled").to(a,"isEnabled"),this.listenTo(c,"execute",()=>{r.execute(t),r.editing.view.focus()}),c})}}class pa extends P{static get requires(){return[dT,uT]}static get pluginName(){return"Undo"}}class hT extends P{static get requires(){return[gf,Si,rT,W5,_5,pa]}static get pluginName(){return"Essentials"}}class gT extends X{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=t.document,n=It(e.selection.getSelectedBlocks());this.value=!!n&&n.is("element","paragraph"),this.isEnabled=!!n&&bf(n,t.schema)}execute(t={}){const e=this.editor.model,n=e.document,i=t.selection||n.selection;e.canEditAt(i)&&e.change(r=>{const s=i.getSelectedBlocks();for(const a of s)!a.is("element","paragraph")&&bf(a,e.schema)&&r.rename(a,"paragraph")})}}function bf(o,t){return t.checkChild(o.parent,"paragraph")&&!t.isObject(o)}class fT extends X{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let i=t.position;e.canEditAt(i)&&e.change(r=>{if(i=this._findPositionToInsertParagraph(i,r),!i)return;const s=r.createElement("paragraph");n&&e.schema.setAllowedAttributes(s,n,r),e.insertContent(s,i),r.setSelection(s,"in")})}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const i=n.schema.findAllowedParent(t,"paragraph");if(!i)return null;const r=t.parent,s=n.schema.checkChild(r,"$text");return r.isEmpty||s&&t.isAtEnd?n.createPositionAfter(r):!r.isEmpty&&s&&t.isAtStart?n.createPositionBefore(r):e.split(t,i).position}}class To extends P{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new gT(t)),t.commands.add("insertParagraph",new fT(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(n,{writer:i})=>!To.paragraphLikeElements.has(n.name)||n.isEmpty?null:i.createElement("paragraph"),view:/.+/,converterPriority:"low"})}}To.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class mT extends X{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=It(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(e=>wf(t,e,this.editor.model.schema))}execute(t){const e=this.editor.model,n=e.document,i=t.value;e.change(r=>{const s=Array.from(n.selection.getSelectedBlocks()).filter(a=>wf(a,i,e.schema));for(const a of s)a.is("element",i)||r.rename(a,i)})}}function wf(o,t,e){return e.checkChild(o.parent,t)&&!e.isObject(o)}const Af="paragraph";class pT extends P{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[To]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const i of e)i.model!=="paragraph"&&(t.model.schema.register(i.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(i),n.push(i.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new mT(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(i,r)=>{const s=t.model.document.selection.getFirstPosition().parent;n.some(c=>s.is("element",c.model))&&!s.is("element",Af)&&s.childCount===0&&r.writer.rename(s,Af)})}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Le.low+1})}}function kT(o){const t=o.t,e={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return o.config.get("heading.options").map(n=>{const i=e[n.title];return i&&i!=n.title&&(n.title=i),n})}var Cf=L(4249),ka={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ka.insert="head",ka.singleton=!0,F()(Cf.Z,ka),Cf.Z.locals;class bT extends P{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=kT(t),i=e("Choose heading"),r=e("Heading");t.ui.componentFactory.add("heading",s=>{const a={},c=new oe,l=t.commands.get("heading"),d=t.commands.get("paragraph"),u=[l];for(const p of n){const w={type:"button",model:new Us({label:p.title,class:p.class,role:"menuitemradio",withText:!0})};p.model==="paragraph"?(w.model.bind("isOn").to(d,"value"),w.model.set("commandName","paragraph"),u.push(d)):(w.model.bind("isOn").to(l,"value",S=>S===p.model),w.model.set({commandName:"heading",commandValue:p.model})),c.add(w),a[p.model]=p.title}const f=_e(s);return Es(f,c,{ariaLabel:r,role:"menu"}),f.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),f.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),f.bind("isEnabled").toMany(u,"isEnabled",(...p)=>p.some(w=>w)),f.buttonView.bind("label").to(l,"value",d,"value",(p,w)=>{const S=p||w&&"paragraph";return typeof S=="boolean"||!a[S]?i:a[S]}),this.listenTo(f,"execute",p=>{const{commandName:w,commandValue:S}=p.source;t.execute(w,S?{value:S}:void 0),t.editing.view.focus()}),f})}}class wT extends P{static get requires(){return[pT,bT]}static get pluginName(){return"Heading"}}function AT(o){return o.createContainerElement("span",{class:"image-inline"},o.createEmptyElement("img"))}function _f(o){return o.createContainerElement("figure",{class:"image"},[o.createEmptyElement("img"),o.createSlot("children")])}function vf(o,t){const e=o.plugins.get("ImageUtils"),n=o.plugins.has("ImageInlineEditing")&&o.plugins.has("ImageBlockEditing");return r=>e.isInlineImageView(r)?n&&(r.getStyle("display")=="block"||r.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==t?null:i(r):null;function i(r){const s={name:!0};return r.hasAttribute("src")&&(s.attributes=["src"]),s}}function ba(o,t){const e=It(t.getSelectedBlocks());return!e||o.isObject(e)||e.isEmpty&&e.name!="listItem"?"imageBlock":"imageInline"}function zi(o){return o&&o.endsWith("px")?parseInt(o):null}function Pi(o){const t=zi(o.getStyle("width")),e=zi(o.getStyle("height"));return!!(t&&e)}const CT=/^(image|image-inline)$/;class Ut extends P{constructor(){super(...arguments),this._domEmitter=new(Zt())}static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,i={}){const r=this.editor,s=r.model,a=s.document.selection,c=yf(r,e||a,n);t={...Object.fromEntries(a.getAttributes()),...t};for(const l in t)s.schema.checkAttribute(c,l)||delete t[l];return s.change(l=>{const{setImageSizes:d=!0}=i,u=l.createElement(c,t);return s.insertObject(u,e,null,{setSelection:"on",findOptimalPosition:!e&&c!="imageInline"?"auto":void 0}),u.parent?(d&&this.setImageNaturalSizeAttributes(u),u):null})}setImageNaturalSizeAttributes(t){const e=t.getAttribute("src");e&&(t.getAttribute("width")||t.getAttribute("height")||this.editor.model.change(n=>{const i=new U.window.Image;this._domEmitter.listenTo(i,"load",()=>{!t.getAttribute("width")&&!t.getAttribute("height")&&this.editor.model.enqueueChange(n.batch,r=>{r.setAttribute("width",i.naturalWidth,t),r.setAttribute("height",i.naturalHeight,t)}),this._domEmitter.stopListening(i,"load")}),i.src=e}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let i=e.parent;for(;i;){if(i.is("element")&&this.isImageWidget(i))return i;i=i.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:CT})}isImageAllowed(){const e=this.editor.model.document.selection;return _T(this.editor,e)&&vT(e)}toImageWidget(t,e,n){return e.setCustomProperty("image",!0,t),la(t,e,{label:()=>{const s=this.findViewImgElement(t).getAttribute("alt");return s?`${s} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&Mt(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function _T(o,t){if(yf(o,t,null)=="imageBlock"){const n=yT(t,o.model);if(o.model.schema.checkChild(n,"imageBlock"))return!0}else if(o.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}function vT(o){return[...o.focus.getAncestors()].every(t=>!t.is("element","imageBlock"))}function yT(o,t){const n=Kg(o,t).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}function yf(o,t,e){const n=o.model.schema,i=o.config.get("image.insert.type");return o.plugins.has("ImageBlockEditing")?o.plugins.has("ImageInlineEditing")?e||(i==="inline"?"imageInline":i!=="auto"?"imageBlock":t.is("selection")?ba(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class xT extends X{refresh(){const n=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!n,this.isEnabled&&n.hasAttribute("alt")?this.value=n.getAttribute("alt"):this.value=!1}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),i=e.model,r=n.getClosestSelectedImageElement(i.document.selection);i.change(s=>{s.setAttribute("alt",t.newValue,r)})}}class ET extends P{static get requires(){return[Ut]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new xT(this.editor))}}var xf=L(5269),wa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};wa.insert="head",wa.singleton=!0,F()(xf.Z,wa),xf.Z.locals;var Ef=L(6603),Aa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Aa.insert="head",Aa.singleton=!0,F()(Ef.Z,Aa),Ef.Z.locals;class DT extends Y{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Ht,this.keystrokes=new ie,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),dt.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),dt.cancel,"ck-button-cancel","cancel"),this._focusables=new be,this._focusCycler=new Te({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),h({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,i){const r=new ht(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createLabeledInputView(){const t=this.locale.t,e=new Zo(this.locale,ki);return e.label=t("Text alternative"),e}}function ST(o){const t=o.plugins.get("ContextualBalloon");if(o.plugins.get("ImageUtils").getClosestSelectedImageWidget(o.editing.view.document.selection)){const n=Df(o);t.updatePosition(n)}}function Df(o){const t=o.editing.view,e=Rt.defaultPositions,n=o.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class TT extends P{static get requires(){return[_i]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",n=>{const i=t.commands.get("imageTextAlternative"),r=new ht(n);return r.set({label:e("Change image text alternative"),icon:dt.textAlternative,tooltip:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",s=>!!s),this.listenTo(r,"execute",()=>{this._showForm()}),r})}_createForm(){const t=this.editor,n=t.editing.view.document,i=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(x(DT))(t.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(r,s)=>{this._hideForm(!0),s()}),this.listenTo(t.ui,"update",()=>{i.getClosestSelectedImageWidget(n.selection)?this._isVisible&&ST(t):this._hideForm(!0)}),_({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Df(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Sf extends P{static get requires(){return[ET,TT]}static get pluginName(){return"ImageTextAlternative"}}function IT(o){const t=(e,n,i)=>{if(!i.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const r=o.findViewImgElement(n.viewItem);if(!r||!i.consumable.test(r,{name:!0}))return;i.consumable.consume(n.viewItem,{name:!0,classes:"image"});const s=i.convertItem(r,n.modelCursor),a=It(s.modelRange.getItems());if(!a){i.consumable.revert(n.viewItem,{name:!0,classes:"image"});return}i.convertChildren(n.viewItem,a),i.updateConversionResult(a,n)};return e=>{e.on("element:figure",t)}}function Tf(o,t){const e=(n,i,r)=>{if(!r.consumable.consume(i.item,n.name))return;const s=r.writer,a=r.mapper.toViewElement(i.item),c=o.findViewImgElement(a);i.attributeNewValue===null?(s.removeAttribute("srcset",c),s.removeAttribute("sizes",c)):i.attributeNewValue&&(s.setAttribute("srcset",i.attributeNewValue,c),s.setAttribute("sizes","100vw",c))};return n=>{n.on(`attribute:srcset:${t}`,e)}}function Li(o,t,e){const n=(i,r,s)=>{if(!s.consumable.consume(r.item,i.name))return;const a=s.writer,c=s.mapper.toViewElement(r.item),l=o.findViewImgElement(c);a.setAttribute(r.attributeKey,r.attributeNewValue||"",l)};return i=>{i.on(`attribute:${e}:${t}`,n)}}class Ca extends Ae{observe(t){this.listenTo(t,"load",(e,n)=>{const i=n.target;this.checkShouldIgnoreEventFromTarget(i)||i.tagName=="IMG"&&this._fireEvents(n)},{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}class MT extends X{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||e==="block"&&at("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||e==="inline"&&at("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=Tt(t.source),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(n.getAttributes());e.forEach((s,a)=>{const c=n.getSelectedElement();if(typeof s=="string"&&(s={src:s}),a&&c&&i.isImage(c)){const l=this.editor.model.createPositionAfter(c);i.insertImage({...s,...r},l)}else i.insertImage({...s,...r})})}}class BT extends X{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const e=this.editor.plugins.get("ImageUtils"),n=this.editor.model.document.selection.getSelectedElement();this.isEnabled=e.isImage(n),this.value=this.isEnabled?n.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change(i=>{i.setAttribute("src",t.source,e),this.cleanupImage(i,e),n.setImageNaturalSizeAttributes(e)})}cleanupImage(t,e){t.removeAttribute("srcset",e),t.removeAttribute("sizes",e),t.removeAttribute("sources",e),t.removeAttribute("width",e),t.removeAttribute("height",e),t.removeAttribute("alt",e)}}class If extends P{static get requires(){return[Ut]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(Ca),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new MT(t),i=new BT(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",i),t.commands.add("imageInsert",n)}}class Mf extends P{static get requires(){return[Ut]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),i=t==="imageBlock"?"figure":"img";e.conversion.for("upcast").attributeToAttribute({view:{name:i,styles:{width:/.+/}},model:{key:"width",value:s=>Pi(s)?zi(s.getStyle("width")):null}}).attributeToAttribute({view:{name:i,key:"width"},model:"width"}).attributeToAttribute({view:{name:i,styles:{height:/.+/}},model:{key:"height",value:s=>Pi(s)?zi(s.getStyle("height")):null}}).attributeToAttribute({view:{name:i,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add(s=>{r(s,"width","width",!0),r(s,"height","height",!0)}),e.conversion.for("dataDowncast").add(s=>{r(s,"width","width",!1),r(s,"height","height",!1)});function r(s,a,c,l){s.on(`attribute:${a}:${t}`,(d,u,f)=>{if(!f.consumable.consume(u.item,d.name))return;const p=f.writer,w=f.mapper.toViewElement(u.item),S=n.findViewImgElement(w);if(u.attributeNewValue!==null?p.setAttribute(c,u.attributeNewValue,S):p.removeAttribute(c,S),u.item.hasAttribute("sources"))return;const B=u.item.hasAttribute("resizedWidth");if(t==="imageInline"&&!B&&!l)return;const z=u.item.getAttribute("width"),V=u.item.getAttribute("height");z&&V&&p.setStyle("aspect-ratio",`${z}/${V}`,S)})}}}class Bf extends X{constructor(t,e){super(t),this._modelElementName=e}refresh(){const e=this.editor.plugins.get("ImageUtils"),n=e.getClosestSelectedImageElement(this.editor.model.document.selection);this._modelElementName==="imageBlock"?this.isEnabled=e.isInlineImage(n):this.isEnabled=e.isBlockImage(n)}execute(t={}){const e=this.editor,n=this.editor.model,i=e.plugins.get("ImageUtils"),r=i.getClosestSelectedImageElement(n.document.selection),s=Object.fromEntries(r.getAttributes());return!s.src&&!s.uploadId?null:n.change(a=>{const{setImageSizes:c=!0}=t,l=Array.from(n.markers).filter(f=>f.getRange().containsItem(r)),d=i.insertImage(s,n.createSelection(r,"on"),this._modelElementName,{setImageSizes:c});if(!d)return null;const u=a.createRangeOn(d);for(const f of l){const p=f.getRange(),w=p.root.rootName!="$graveyard"?p.getJoined(u,!0):u;a.updateMarker(f,{range:w})}return{oldElement:r,newElement:d}})}}var Nf=L(31),_a={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};_a.insert="head",_a.singleton=!0,F()(Nf.Z,_a),Nf.Z.locals;class zf extends P{static get requires(){return[Ut]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add(i=>{i.on("attribute:placeholder",(r,s,a)=>{if(!a.consumable.test(s.item,r.name)||!s.item.is("element","imageBlock")&&!s.item.is("element","imageInline"))return;a.consumable.consume(s.item,r.name);const c=a.writer,l=a.mapper.toViewElement(s.item),d=n.findViewImgElement(l);s.attributeNewValue?(c.addClass("image_placeholder",d),c.setStyle("background-image",`url(${s.attributeNewValue})`,d),c.setCustomProperty("editingPipeline:doNotReuseOnce",!0,d)):(c.removeClass("image_placeholder",d),c.removeStyle("background-image",d))})})}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,i=n.view,r=t.plugins.get("ImageUtils");i.addObserver(Ca),this.listenTo(i.document,"imageLoaded",(s,a)=>{const c=i.domConverter.mapDomToView(a.target);if(!c)return;const l=r.getImageWidgetFromImageView(c);if(!l)return;const d=n.mapper.toModelElement(l);!d||!d.hasAttribute("placeholder")||e.enqueueChange({isUndoable:!1},u=>{u.removeAttribute("placeholder",d)})})}}class Pf extends P{static get requires(){return[If,Mf,Ut,zf,ve]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new Bf(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>_f(s)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>i.toImageWidget(_f(s),s,e("image widget"))}),n.for("downcast").add(Li(i,"imageBlock","src")).add(Li(i,"imageBlock","alt")).add(Tf(i,"imageBlock")),n.for("upcast").elementToElement({view:vf(t,"imageBlock"),model:(r,{writer:s})=>s.createElement("imageBlock",r.hasAttribute("src")?{src:r.getAttribute("src")}:void 0)}).add(IT(i))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",(s,a)=>{const c=Array.from(a.content.getChildren());let l;if(!c.every(i.isInlineImageView))return;a.targetRanges?l=t.editing.mapper.toModelRange(a.targetRanges[0]):l=e.document.selection.getFirstRange();const d=e.createSelection(l);if(ba(e.schema,d)==="imageBlock"){const u=new He(n.document),f=c.map(p=>u.createElement("figure",{class:"image"},p));a.content=u.createDocumentFragment(f)}}),this.listenTo(r,"contentInsertion",(s,a)=>{a.method==="paste"&&e.change(c=>{const l=c.createRangeIn(a.content);for(const d of l.getItems())d.is("element","imageBlock")&&i.setImageNaturalSizeAttributes(d)})})}}var Lf=L(8879),va={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};va.insert="head",va.singleton=!0,F()(Lf.Z,va),Lf.Z.locals;class NT extends Y{constructor(t,e=[]){super(t),this.focusTracker=new Ht,this.keystrokes=new ie,this._focusables=new be,this.children=this.createCollection(),this._focusCycler=new Te({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const n of e)this.children.add(n),this._focusables.add(n),n instanceof s5&&this._focusables.addMany(n.children);if(this._focusables.length>1)for(const n of this._focusables)zT(n)&&(n.focusCycler.on("forwardCycle",i=>{this._focusCycler.focusNext(),i.stop()}),n.focusCycler.on("backwardCycle",i=>{this._focusCycler.focusPrevious(),i.stop()}));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),h({view:this});for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function zT(o){return"focusCycler"in o}class Of extends P{static get pluginName(){return"ImageInsertUI"}static get requires(){return[Ut]}constructor(t){super(t),this._integrations=new Map,t.config.define("image.insert.integrations",["upload","assetManager","url"])}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",()=>{this.isImageSelected=n.isImage(e.getSelectedElement())});const i=r=>this._createToolbarComponent(r);t.ui.componentFactory.add("insertImage",i),t.ui.componentFactory.add("imageInsert",i)}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:i,requiresForm:r}){this._integrations.has(t)&&at("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,formViewCreator:i,requiresForm:!!r})}_createToolbarComponent(t){const e=this.editor,n=t.t,i=this._prepareIntegrations();if(!i.length)return null;let r;const s=i[0];if(i.length==1){if(!s.requiresForm)return s.buttonViewCreator(!0);r=s.buttonViewCreator(!0)}else{const l=s.buttonViewCreator(!1);r=new pi(t,l),r.tooltip=!0,r.bind("label").to(this,"isImageSelected",d=>n(d?"Replace image":"Insert image"))}const a=this.dropdownView=_e(t,r),c=i.map(({observable:l})=>l);return a.bind("isEnabled").toMany(c,"isEnabled",(...l)=>l.some(d=>d)),a.once("change:isOpen",()=>{const l=i.map(({formViewCreator:u})=>u(i.length==1)),d=new NT(e.locale,l);a.panelView.children.add(d)}),a}_prepareIntegrations(){const e=this.editor.config.get("image.insert.integrations"),n=[];if(!e.length)return at("image-insert-integrations-not-specified"),n;for(const i of e){if(!this._integrations.has(i)){["upload","assetManager","url"].includes(i)||at("image-insert-unknown-integration",{item:i});continue}n.push(this._integrations.get(i))}return n.length||at("image-insert-integrations-not-registered"),n}}var Rf=L(2430),ya={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ya.insert="head",ya.singleton=!0,F()(Rf.Z,ya),Rf.Z.locals;class PT extends P{static get requires(){return[Pf,So,Sf,Of]}static get pluginName(){return"ImageBlock"}}class LT extends P{static get requires(){return[If,Mf,Ut,zf,ve]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck((n,i)=>{if(n.endsWith("caption")&&i.name==="imageInline")return!1}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new Bf(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(r,{writer:s})=>s.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(r,{writer:s})=>i.toImageWidget(AT(s),s,e("image widget"))}),n.for("downcast").add(Li(i,"imageInline","src")).add(Li(i,"imageInline","alt")).add(Tf(i,"imageInline")),n.for("upcast").elementToElement({view:vf(t,"imageInline"),model:(r,{writer:s})=>s.createElement("imageInline",r.hasAttribute("src")?{src:r.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",(s,a)=>{const c=Array.from(a.content.getChildren());let l;if(!c.every(i.isBlockImageView))return;a.targetRanges?l=t.editing.mapper.toModelRange(a.targetRanges[0]):l=e.document.selection.getFirstRange();const d=e.createSelection(l);if(ba(e.schema,d)==="imageInline"){const u=new He(n.document),f=c.map(p=>p.childCount===1?(Array.from(p.getAttributes()).forEach(w=>u.setAttribute(...w,i.findViewImgElement(p))),p.getChild(0)):p);a.content=u.createDocumentFragment(f)}}),this.listenTo(r,"contentInsertion",(s,a)=>{a.method==="paste"&&e.change(c=>{const l=c.createRangeIn(a.content);for(const d of l.getItems())d.is("element","imageInline")&&i.setImageNaturalSizeAttributes(d)})})}}class OT extends P{static get requires(){return[LT,So,Sf,Of]}static get pluginName(){return"ImageInline"}}class RT extends P{static get requires(){return[PT,OT]}static get pluginName(){return"Image"}}class jf extends P{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Ut]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return t.name=="figcaption"&&e.isBlockImageView(t.parent)?{name:!0}:null}}class jT extends X{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(Pf)){this.isEnabled=!1,this.value=!1;return}const i=t.model.document.selection,r=i.getSelectedElement();if(!r){const s=e.getCaptionFromModelSelection(i);this.isEnabled=!!s,this.value=!!s;return}this.isEnabled=n.isImage(r),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(r):this.value=!1}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change(n=>{this.value?this._hideImageCaption(n):this._showImageCaption(n,e)})}_showImageCaption(t,e){const i=this.editor.model.document.selection,r=this.editor.plugins.get("ImageCaptionEditing"),s=this.editor.plugins.get("ImageUtils");let a=i.getSelectedElement();const c=r._getSavedCaption(a);s.isInlineImage(a)&&(this.editor.execute("imageTypeBlock"),a=i.getSelectedElement());const l=c||t.createElement("caption");t.append(l,a),e&&t.setSelection(l,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,i=e.plugins.get("ImageCaptionEditing"),r=e.plugins.get("ImageCaptionUtils");let s=n.getSelectedElement(),a;s?a=r.getCaptionFromImageModelElement(s):(a=r.getCaptionFromModelSelection(n),s=a.parent),i._saveCaption(s,a),t.setSelection(s,"on"),t.remove(a)}}class FT extends P{static get requires(){return[Ut,jf]}static get pluginName(){return"ImageCaptionEditing"}constructor(t){super(t),this._savedCaptionsMap=new WeakMap}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new jT(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils"),r=t.t;t.conversion.for("upcast").elementToElement({view:s=>i.matchImageCaptionViewElement(s),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(s,{writer:a})=>n.isBlockImage(s.parent)?a.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(s,{writer:a})=>{if(!n.isBlockImage(s.parent))return null;const c=a.createEditableElement("figcaption");a.setCustomProperty("imageCaption",!0,c),c.placeholder=r("Enter image caption"),Ed({view:e,element:c,keepOnFocus:!0});const l=s.parent.getAttribute("alt"),d=l?r("Caption for image: %0",[l]):r("Caption for the image");return $g(c,a,{label:d})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),i=t.commands.get("imageTypeInline"),r=t.commands.get("imageTypeBlock"),s=a=>{if(!a.return)return;const{oldElement:c,newElement:l}=a.return;if(!c)return;if(e.isBlockImage(c)){const u=n.getCaptionFromImageModelElement(c);if(u){this._saveCaption(l,u);return}}const d=this._getSavedCaption(c);d&&this._saveCaption(l,d)};i&&this.listenTo(i,"execute",s,{priority:"low"}),r&&this.listenTo(r,"execute",s,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?lt.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",()=>{const r=e.document.differ.getChanges();for(const s of r){if(s.attributeKey!=="alt")continue;const a=s.range.start.nodeAfter;if(n.isBlockImage(a)){const c=i.getCaptionFromImageModelElement(a);if(!c)return;t.editing.reconvertItem(c)}}})}}class VT extends P{static get requires(){return[jf]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),i=t.t;t.ui.componentFactory.add("toggleImageCaption",r=>{const s=t.commands.get("toggleImageCaption"),a=new ht(r);return a.set({icon:dt.caption,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(s,"value","isEnabled"),a.bind("label").to(s,"value",c=>i(c?"Toggle caption off":"Toggle caption on")),this.listenTo(a,"execute",()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const c=n.getCaptionFromModelSelection(t.model.document.selection);if(c){const l=t.editing.mapper.toViewElement(c);e.scrollToTheSelection(),e.change(d=>{d.addClass("image__caption_highlighted",l)})}t.editing.view.focus()}),a})}}var Ff=L(2423),xa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};xa.insert="head",xa.singleton=!0,F()(Ff.Z,xa),Ff.Z.locals;class HT extends P{static get requires(){return[FT,VT]}static get pluginName(){return"ImageCaption"}}class UT extends rt(){constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise((n,i)=>{e.onload=()=>{const r=e.result;this._data=r,n(r)},e.onerror=()=>{i("error")},e.onabort=()=>{i("aborted")},this._reader.readAsDataURL(t)})}abort(){this._reader.abort()}}class un extends P{constructor(){super(...arguments),this.loaders=new oe,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[fi]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(t,e)=>e?t/e*100:0)}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return at("filerepository-no-upload-adapter"),null;const e=new Vf(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then(n=>{this._loadersMap.set(n,e)}).catch(()=>{}),e.on("change:uploaded",()=>{let n=0;for(const i of this.loaders)n+=i.uploaded;this.uploaded=n}),e.on("change:uploadTotal",()=>{let n=0;for(const i of this.loaders)i.uploadTotal&&(n+=i.uploadTotal);this.uploadTotal=n}),e}destroyLoader(t){const e=t instanceof Vf?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach((n,i)=>{n===e&&this._loadersMap.delete(i)})}_updatePendingAction(){const t=this.editor.plugins.get(fi);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=i=>`${e("Upload in progress")} ${parseInt(i)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class Vf extends rt(){constructor(t,e){super(),this.id=qt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new UT,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(n,i)=>i?n/i*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(t=>this._filePromiseWrapper?t:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new b("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(t=>this._reader.read(t)).then(t=>{if(this.status!=="reading")throw this.status;return this.status="idle",t}).catch(t=>{throw t==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:t)})}upload(){if(this.status!="idle")throw new b("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(t=>(this.uploadResponse=t,this.status="idle",t)).catch(t=>{throw this.status==="aborted"?"aborted":(this.status="error",t)})}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?t=="reading"?this._reader.abort():t=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise((n,i)=>{e.rejecter=i,e.isFulfilled=!1,t.then(r=>{e.isFulfilled=!0,n(r)}).catch(r=>{e.isFulfilled=!0,i(r)})}),e}}class qT extends ht{constructor(t){super(t),this.buttonView=this,this._fileInputView=new WT(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class WT extends Y{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}class GT extends P{static get requires(){return[un]}static get pluginName(){return"Base64UploadAdapter"}init(){this.editor.plugins.get(un).createUploadAdapter=t=>new $T(t)}}class $T{constructor(t){this.loader=t}upload(){return new Promise((t,e)=>{const n=this.reader=new window.FileReader;n.addEventListener("load",()=>{t({default:n.result})}),n.addEventListener("error",i=>{e(i)}),n.addEventListener("abort",()=>{e()}),this.loader.file.then(i=>{n.readAsDataURL(i)})})}abort(){this.reader.abort()}}function Hf(o){const t=o.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}function KT(o){return new Promise((t,e)=>{const n=o.getAttribute("src");fetch(n).then(i=>i.blob()).then(i=>{const r=Uf(i,n),a=`image.${r.replace("image/","")}`,c=new File([i],a,{type:r});t(c)}).catch(i=>i&&i.name==="TypeError"?YT(n).then(t).catch(e):e(i))})}function ZT(o,t){return!o.isInlineImageView(t)||!t.getAttribute("src")?!1:!!t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||!!t.getAttribute("src").match(/^blob:/g)}function Uf(o,t){return o.type?o.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}function YT(o){return QT(o).then(t=>{const e=Uf(t,o),i=`image.${e.replace("image/","")}`;return new File([t],i,{type:e})})}function QT(o){return new Promise((t,e)=>{const n=U.document.createElement("img");n.addEventListener("load",()=>{const i=U.document.createElement("canvas");i.width=n.width,i.height=n.height,i.getContext("2d").drawImage(n,0,0),i.toBlob(s=>s?t(s):e())}),n.addEventListener("error",()=>e()),n.src=o})}class JT extends P{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=i=>{const r=new qT(i),s=t.commands.get("uploadImage"),a=t.config.get("image.upload.types"),c=Hf(a);return r.set({acceptedType:a.map(l=>`image/${l}`).join(","),allowMultipleFiles:!0,label:e("Upload image from computer"),icon:dt.imageUpload,tooltip:!0}),r.bind("isEnabled").to(s),r.on("done",(l,d)=>{const u=Array.from(d).filter(f=>c.test(f.type));u.length&&(t.execute("uploadImage",{file:u}),t.editing.view.focus())}),r};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.plugins.has("ImageInsertUI")){const i=t.plugins.get("ImageInsertUI"),r=t.commands.get("uploadImage");i.registerIntegration({name:"upload",observable:r,buttonViewCreator:()=>{const s=t.ui.componentFactory.create("uploadImage");return s.bind("label").to(i,"isImageSelected",a=>e(a?"Replace image from computer":"Upload image from computer")),s},formViewCreator:()=>{const s=t.ui.componentFactory.create("uploadImage");return s.withText=!0,s.bind("label").to(i,"isImageSelected",a=>e(a?"Replace from computer":"Upload from computer")),s.on("execute",()=>{i.dropdownView.isOpen=!1}),s}})}}}var qf=L(2926),Ea={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ea.insert="head",Ea.singleton=!0,F()(qf.Z,Ea),qf.Z.locals;var Wf=L(1547),Da={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Da.insert="head",Da.singleton=!0,F()(Wf.Z,Da),Wf.Z.locals;var Gf=L(6618),Sa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Sa.insert="head",Sa.singleton=!0,F()(Gf.Z,Sa),Gf.Z.locals;class XT extends P{static get pluginName(){return"ImageUploadProgress"}constructor(t){super(t),this.uploadStatusChange=(e,n,i)=>{const r=this.editor,s=n.item,a=s.getAttribute("uploadId");if(!i.consumable.consume(n.item,e.name))return;const c=r.plugins.get("ImageUtils"),l=r.plugins.get(un),d=a?n.attributeNewValue:null,u=this.placeholder,f=r.editing.mapper.toViewElement(s),p=i.writer;if(d=="reading"){$f(f,p),Kf(c,u,f,p);return}if(d=="uploading"){const w=l.loaders.get(a);$f(f,p),w?(Zf(f,p),eI(f,p,w,r.editing.view),sI(c,f,p,w)):Kf(c,u,f,p);return}d=="complete"&&l.loaders.get(a)&&oI(f,p,r.editing.view),nI(f,p),Zf(f,p),tI(f,p)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function $f(o,t){o.hasClass("ck-appear")||t.addClass("ck-appear",o)}function tI(o,t){t.removeClass("ck-appear",o)}function Kf(o,t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);const i=o.findViewImgElement(e);i.getAttribute("src")!==t&&n.setAttribute("src",t,i),Yf(e,"placeholder")||n.insert(n.createPositionAfter(i),rI(n))}function Zf(o,t){o.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",o),Qf(o,t,"placeholder")}function eI(o,t,e,n){const i=iI(t);t.insert(t.createPositionAt(o,"end"),i),e.on("change:uploadedPercent",(r,s,a)=>{n.change(c=>{c.setStyle("width",a+"%",i)})})}function nI(o,t){Qf(o,t,"progressBar")}function oI(o,t,e){const n=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(o,"end"),n),setTimeout(()=>{e.change(i=>i.remove(i.createRangeOn(n)))},3e3)}function iI(o){const t=o.createUIElement("div",{class:"ck-progress-bar"});return o.setCustomProperty("progressBar",!0,t),t}function rI(o){const t=o.createUIElement("div",{class:"ck-upload-placeholder-loader"});return o.setCustomProperty("placeholder",!0,t),t}function Yf(o,t){for(const e of o.getChildren())if(e.getCustomProperty(t))return e}function Qf(o,t,e){const n=Yf(o,e);n&&t.remove(t.createRangeOn(n))}function sI(o,t,e,n){if(n.data){const i=o.findViewImgElement(t);e.setAttribute("src",n.data,i)}}class aI extends X{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=Tt(t.file),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(n.getAttributes());e.forEach((s,a)=>{const c=n.getSelectedElement();if(a&&c&&i.isImage(c)){const l=this.editor.model.createPositionAfter(c);this._uploadImage(s,r,l)}else this._uploadImage(s,r)})}_uploadImage(t,e,n){const i=this.editor,s=i.plugins.get(un).createLoader(t),a=i.plugins.get("ImageUtils");s&&a.insertImage({...e,uploadId:s.id},n)}}class cI extends P{static get requires(){return[un,tg,ve,Ut]}static get pluginName(){return"ImageUploadEditing"}constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const t=this.editor,e=t.model.document,n=t.conversion,i=t.plugins.get(un),r=t.plugins.get("ImageUtils"),s=t.plugins.get("ClipboardPipeline"),a=Hf(t.config.get("image.upload.types")),c=new aI(t);t.commands.add("uploadImage",c),t.commands.add("imageUpload",c),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(l,d)=>{if(lI(d.dataTransfer))return;const u=Array.from(d.dataTransfer.files).filter(f=>f?a.test(f.type):!1);u.length&&(l.stop(),t.model.change(f=>{d.targetRanges&&f.setSelection(d.targetRanges.map(p=>t.editing.mapper.toModelRange(p))),t.execute("uploadImage",{file:u})}))}),this.listenTo(s,"inputTransformation",(l,d)=>{const u=Array.from(t.editing.view.createRangeIn(d.content)).map(p=>p.item).filter(p=>ZT(r,p)&&!p.getAttribute("uploadProcessed")).map(p=>({promise:KT(p),imageElement:p}));if(!u.length)return;const f=new He(t.editing.view.document);for(const p of u){f.setAttribute("uploadProcessed",!0,p.imageElement);const w=i.createLoader(p.promise);w&&(f.setAttribute("src","",p.imageElement),f.setAttribute("uploadId",w.id,p.imageElement))}}),t.editing.view.document.on("dragover",(l,d)=>{d.preventDefault()}),e.on("change",()=>{const l=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),d=new Set;for(const u of l)if(u.type=="insert"&&u.name!="$text"){const f=u.position.nodeAfter,p=u.position.root.rootName=="$graveyard";for(const w of dI(t,f)){const S=w.getAttribute("uploadId");if(!S)continue;const B=i.loaders.get(S);B&&(p?d.has(S)||B.abort():(d.add(S),this._uploadImageElements.set(S,w),B.status=="idle"&&this._readAndUpload(B)))}}}),this.on("uploadComplete",(l,{imageElement:d,data:u})=>{const f=u.urls?u.urls:u;this.editor.model.change(p=>{p.setAttribute("src",f.default,d),this._parseAndSetSrcsetAttributeOnImage(f,d,p),r.setImageNaturalSizeAttributes(d)})},{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,i=e.locale.t,r=e.plugins.get(un),s=e.plugins.get(tg),a=e.plugins.get("ImageUtils"),c=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},d=>{d.setAttribute("uploadStatus","reading",c.get(t.id))}),t.read().then(()=>{const d=t.upload(),u=c.get(t.id);if(g.isSafari){const f=e.editing.mapper.toViewElement(u),p=a.findViewImgElement(f);e.editing.view.once("render",()=>{if(!p.parent)return;const w=e.editing.view.domConverter.mapViewToDom(p.parent);if(!w)return;const S=w.style.display;w.style.display="none",w._ckHack=w.offsetHeight,w.style.display=S})}return n.enqueueChange({isUndoable:!1},f=>{f.setAttribute("uploadStatus","uploading",u)}),d}).then(d=>{n.enqueueChange({isUndoable:!1},u=>{const f=c.get(t.id);u.setAttribute("uploadStatus","complete",f),this.fire("uploadComplete",{data:d,imageElement:f})}),l()}).catch(d=>{if(t.status!=="error"&&t.status!=="aborted")throw d;t.status=="error"&&d&&s.showWarning(d,{title:i("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},u=>{u.remove(c.get(t.id))}),l()});function l(){n.enqueueChange({isUndoable:!1},d=>{const u=c.get(t.id);d.removeAttribute("uploadId",u),d.removeAttribute("uploadStatus",u),c.delete(t.id)}),r.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let i=0;const r=Object.keys(t).filter(s=>{const a=parseInt(s,10);if(!isNaN(a))return i=Math.max(i,a),!0}).map(s=>`${t[s]} ${s}w`).join(", ");if(r!=""){const s={srcset:r};!e.hasAttribute("width")&&!e.hasAttribute("height")&&(s.width=i),n.setAttributes(s,e)}}}function lI(o){return Array.from(o.types).includes("text/html")&&o.getData("text/html")!==""}function dI(o,t){const e=o.plugins.get("ImageUtils");return Array.from(o.model.createRangeOn(t)).filter(n=>e.isImage(n.item)).map(n=>n.item)}class uI extends P{static get pluginName(){return"ImageUpload"}static get requires(){return[cI,JT,XT]}}class hI extends X{refresh(){const t=this.editor,n=t.plugins.get("ImageUtils").getClosestSelectedImageElement(t.model.document.selection);this.isEnabled=!!n,!n||!n.hasAttribute("resizedWidth")?this.value=null:this.value={width:n.getAttribute("resizedWidth"),height:null}}execute(t){const e=this.editor,n=e.model,i=e.plugins.get("ImageUtils"),r=i.getClosestSelectedImageElement(n.document.selection);this.value={width:t.width,height:null},r&&n.change(s=>{s.setAttribute("resizedWidth",t.width,r),s.removeAttribute("resizedHeight",r),i.setImageNaturalSizeAttributes(r)})}}class Jf extends P{static get requires(){return[Ut]}static get pluginName(){return"ImageResizeEditing"}constructor(t){super(t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new hI(t);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),t.commands.add("resizeImage",e),t.commands.add("imageResize",e)}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["resizedWidth","resizedHeight"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["resizedWidth","resizedHeight"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils");e.conversion.for("downcast").add(i=>i.on(`attribute:resizedWidth:${t}`,(r,s,a)=>{if(!a.consumable.consume(s.item,r.name))return;const c=a.writer,l=a.mapper.toViewElement(s.item);s.attributeNewValue!==null?(c.setStyle("width",s.attributeNewValue,l),c.addClass("image_resized",l)):(c.removeStyle("width",l),c.removeClass("image_resized",l))})),e.conversion.for("dataDowncast").attributeToAttribute({model:{name:t,key:"resizedHeight"},view:i=>({key:"style",value:{height:i}})}),e.conversion.for("editingDowncast").add(i=>i.on(`attribute:resizedHeight:${t}`,(r,s,a)=>{if(!a.consumable.consume(s.item,r.name))return;const c=a.writer,l=a.mapper.toViewElement(s.item),d=t==="imageInline"?n.findViewImgElement(l):l;s.attributeNewValue!==null?c.setStyle("height",s.attributeNewValue,d):c.removeStyle("height",d)})),e.conversion.for("upcast").attributeToAttribute({view:{name:t==="imageBlock"?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:i=>Pi(i)?null:i.getStyle("width")}}),e.conversion.for("upcast").attributeToAttribute({view:{name:t==="imageBlock"?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:i=>Pi(i)?null:i.getStyle("height")}})}}const Ta={small:dt.objectSizeSmall,medium:dt.objectSizeMedium,large:dt.objectSizeLarge,original:dt.objectSizeFull};class gI extends P{static get requires(){return[Jf]}static get pluginName(){return"ImageResizeButtons"}constructor(t){super(t),this._resizeUnit=t.config.get("image.resizeUnit")}init(){const t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const i of e)this._registerImageResizeButton(i);this._registerImageResizeDropdown(e)}_registerImageResizeButton(t){const e=this.editor,{name:n,value:i,icon:r}=t,s=i?i+this._resizeUnit:null;e.ui.componentFactory.add(n,a=>{const c=new ht(a),l=e.commands.get("resizeImage"),d=this._getOptionLabelValue(t,!0);if(!Ta[r])throw new b("imageresizebuttons-missing-icon",e,t);return c.set({label:d,icon:Ta[r],tooltip:d,isToggleable:!0}),c.bind("isEnabled").to(this),c.bind("isOn").to(l,"value",Xf(s)),this.listenTo(c,"execute",()=>{e.execute("resizeImage",{width:s})}),c})}_registerImageResizeDropdown(t){const e=this.editor,n=e.t,i=t.find(s=>!s.value),r=s=>{const a=e.commands.get("resizeImage"),c=_e(s,pd),l=c.buttonView,d=n("Resize image");return l.set({tooltip:d,commandValue:i.value,icon:Ta.medium,isToggleable:!0,label:this._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button",ariaLabel:d,ariaLabelledBy:void 0}),l.bind("label").to(a,"value",u=>u&&u.width?u.width:this._getOptionLabelValue(i)),c.bind("isEnabled").to(this),Es(c,()=>this._getResizeDropdownListItemDefinitions(t,a),{ariaLabel:n("Image resize list"),role:"menu"}),this.listenTo(c,"execute",u=>{e.execute(u.source.commandName,{width:u.source.commandValue}),e.editing.view.focus()}),c};e.ui.componentFactory.add("resizeImage",r),e.ui.componentFactory.add("imageResize",r)}_getOptionLabelValue(t,e=!1){const n=this.editor.t;return t.label?t.label:e?t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const n=new oe;return t.map(i=>{const r=i.value?i.value+this._resizeUnit:null,s={type:"button",model:new Us({commandName:"resizeImage",commandValue:r,label:this._getOptionLabelValue(i),role:"menuitemradio",withText:!0,icon:null})};s.model.bind("isOn").to(e,"value",Xf(r)),n.add(s)}),n}}function Xf(o){return t=>{const e=t;return o===null&&e===o?!0:e!==null&&e.width===o}}const fI="figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img",Ia="image_resized";class mI extends P{static get requires(){return[ga,Ut]}static get pluginName(){return"ImageResizeHandles"}init(){const t=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(t),this._setupResizerCreator()}_setupResizerCreator(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils");e.addObserver(Ca),this.listenTo(e.document,"imageLoaded",(i,r)=>{if(!r.target.matches(fI))return;const s=t.editing.view.domConverter,a=s.domToView(r.target),c=n.getImageWidgetFromImageView(a);let l=this.editor.plugins.get(ga).getResizerByViewElement(c);if(l){l.redraw();return}const d=t.editing.mapper,u=d.toModelElement(c);l=t.plugins.get(ga).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:u,viewElement:c,editor:t,getHandleHost(f){return f.querySelector("img")},getResizeHost(){return s.mapViewToDom(d.toViewElement(u.parent))},isCentered(){const f=u.getAttribute("imageStyle");return!f||f=="block"||f=="alignCenter"},onCommit(f){e.change(p=>{p.removeClass(Ia,c)}),t.execute("resizeImage",{width:f})}}),l.on("updateSize",()=>{c.hasClass(Ia)||e.change(p=>{p.addClass(Ia,c)});const f=u.name==="imageInline"?a:c;f.getStyle("height")&&e.change(p=>{p.removeStyle("height",f)})}),l.bind("isEnabled").to(this)})}}var tm=L(2400),Ma={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ma.insert="head",Ma.singleton=!0,F()(tm.Z,Ma),tm.Z.locals;class pI extends P{static get requires(){return[Jf,mI,gI]}static get pluginName(){return"ImageResize"}}class kI extends X{constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map(n=>{if(n.isDefault)for(const i of n.modelElements)this._defaultStyles[i]=n.name;return[n.name,n]}))}refresh(){const n=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!n,this.isEnabled?n.hasAttribute("imageStyle")?this.value=n.getAttribute("imageStyle"):this.value=this._defaultStyles[n.name]:this.value=!1}execute(t={}){const e=this.editor,n=e.model,i=e.plugins.get("ImageUtils");n.change(r=>{const s=t.value,{setImageSizes:a=!0}=t;let c=i.getClosestSelectedImageElement(n.document.selection);s&&this.shouldConvertImageType(s,c)&&(this.editor.execute(i.isBlockImage(c)?"imageTypeInline":"imageTypeBlock",{setImageSizes:a}),c=i.getClosestSelectedImageElement(n.document.selection)),!s||this._styles.get(s).isDefault?r.removeAttribute("imageStyle",c):r.setAttribute("imageStyle",s,c),a&&i.setImageNaturalSizeAttributes(c)})}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}const{objectFullWidth:bI,objectInline:em,objectLeft:nm,objectRight:Ba,objectCenter:Na,objectBlockLeft:om,objectBlockRight:im}=dt,Oi={get inline(){return{name:"inline",title:"In line",icon:em,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:nm,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:om,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Na,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Ba,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:im,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Na,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Ba,modelElements:["imageBlock"],className:"image-style-side"}}},rm={full:bI,left:om,right:im,center:Na,inlineLeft:nm,inlineRight:Ba,inline:em},sm=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function wI(o){return(o.configuredStyles.options||[]).map(n=>_I(n)).filter(n=>vI(n,o))}function AI(o,t){return o&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:o?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}}function CI(o){return o.has("ImageBlockEditing")&&o.has("ImageInlineEditing")?[...sm]:[]}function _I(o){return typeof o=="string"?Oi[o]?o={...Oi[o]}:o={name:o}:o=yI(Oi[o.name],o),typeof o.icon=="string"&&(o.icon=rm[o.icon]||o.icon),o}function vI(o,{isBlockPluginLoaded:t,isInlinePluginLoaded:e}){const{modelElements:n,name:i}=o;if(!n||!n.length||!i)return am({style:o}),!1;{const r=[t?"imageBlock":null,e?"imageInline":null];if(!n.some(s=>r.includes(s)))return at("image-style-missing-dependency",{style:o,missingPlugins:n.map(s=>s==="imageBlock"?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}function yI(o,t){const e={...t};for(const n in o)Object.prototype.hasOwnProperty.call(t,n)||(e[n]=o[n]);return e}function am(o){at("image-style-configuration-definition-invalid",o)}const za={normalizeStyles:wI,getDefaultStylesConfiguration:AI,getDefaultDropdownDefinitions:CI,warnInvalidStyle:am,DEFAULT_OPTIONS:Oi,DEFAULT_ICONS:rm,DEFAULT_DROPDOWN_DEFINITIONS:sm};function xI(o){return(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=cm(e.attributeNewValue,o),r=cm(e.attributeOldValue,o),s=n.mapper.toViewElement(e.item),a=n.writer;r&&a.removeClass(r.className,s),i&&a.addClass(i.className,s)}}function EI(o){const t={imageInline:o.filter(e=>!e.isDefault&&e.modelElements.includes("imageInline")),imageBlock:o.filter(e=>!e.isDefault&&e.modelElements.includes("imageBlock"))};return(e,n,i)=>{if(!n.modelRange)return;const r=n.viewItem,s=It(n.modelRange.getItems());if(s&&i.schema.checkAttribute(s,"imageStyle"))for(const a of t[s.name])i.consumable.consume(r,{classes:a.className})&&i.writer.setAttribute("imageStyle",a.name,s)}}function cm(o,t){for(const e of t)if(e.name===o)return e}class lm extends P{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Ut]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=za,n=this.editor,i=n.plugins.has("ImageBlockEditing"),r=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(i,r)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:i,isInlinePluginLoaded:r}),this._setupConversion(i,r),this._setupPostFixer(),n.commands.add("imageStyle",new kI(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,i=n.model.schema,r=xI(this.normalizedStyles),s=EI(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",r),n.data.downcastDispatcher.on("attribute:imageStyle",r),t&&(i.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",s,{priority:"low"})),e&&(i.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",s,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(Ut),i=new Map(this.normalizedStyles.map(r=>[r.name,r]));e.registerPostFixer(r=>{let s=!1;for(const a of e.differ.getChanges())if(a.type=="insert"||a.type=="attribute"&&a.attributeKey=="imageStyle"){let c=a.type=="insert"?a.position.nodeAfter:a.range.start.nodeAfter;if(c&&c.is("element","paragraph")&&c.childCount>0&&(c=c.getChild(0)),!n.isImage(c))continue;const l=c.getAttribute("imageStyle");if(!l)continue;const d=i.get(l);(!d||!d.modelElements.includes(c.name))&&(r.removeAttribute("imageStyle",c),s=!0)}return s})}}var dm=L(3534),Pa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Pa.insert="head",Pa.singleton=!0,F()(dm.Z,Pa),dm.Z.locals;class DI extends P{static get requires(){return[lm]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=t.get("ImageStyleEditing"),i=um(n.normalizedStyles,this.localizedDefaultStylesTitles);for(const s of i)this._createButton(s);const r=um([...e.filter(_t),...za.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const s of r)this._createDropdown(s,i)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,i=>{let r;const{defaultItem:s,items:a,title:c}=t,l=a.filter(p=>e.find(({name:w})=>hm(w)===p)).map(p=>{const w=n.create(p);return p===s&&(r=w),w});a.length!==l.length&&za.warnInvalidStyle({dropdown:t});const d=_e(i,pi),u=d.buttonView,f=u.arrowView;return xs(d,l,{enableActiveItemFocusOnDropdownOpen:!0}),u.set({label:gm(c,r.label),class:null,tooltip:!0}),f.unbind("label"),f.set({label:c}),u.bind("icon").toMany(l,"isOn",(...p)=>{const w=p.findIndex(en);return w<0?r.icon:l[w].icon}),u.bind("label").toMany(l,"isOn",(...p)=>{const w=p.findIndex(en);return gm(c,w<0?r.label:l[w].label)}),u.bind("isOn").toMany(l,"isOn",(...p)=>p.some(en)),u.bind("class").toMany(l,"isOn",(...p)=>p.some(en)?"ck-splitbutton_flatten":void 0),u.on("execute",()=>{l.some(({isOn:p})=>p)?d.isOpen=!d.isOpen:r.fire("execute")}),d.bind("isEnabled").toMany(l,"isEnabled",(...p)=>p.some(en)),this.listenTo(d,"execute",()=>{this.editor.editing.view.focus()}),d})}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(hm(e),n=>{const i=this.editor.commands.get("imageStyle"),r=new ht(n);return r.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",s=>s===e),r.on("execute",this._executeCommand.bind(this,e)),r})}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function um(o,t){for(const e of o)t[e.title]&&(e.title=t[e.title]);return o}function hm(o){return`imageStyle:${o}`}function gm(o,t){return(o?o+": ":"")+t}class SI extends P{static get requires(){return[lm,DI]}static get pluginName(){return"ImageStyle"}}class TI extends P{static get requires(){return[Mi,Ut]}static get pluginName(){return"ImageToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(Mi),i=t.plugins.get("ImageUtils");n.register("image",{ariaLabel:e("Image toolbar"),items:II(t.config.get("image.toolbar")||[]),getRelatedElement:r=>i.getClosestSelectedImageWidget(r)})}}function II(o){return o.map(t=>_t(t)?t.name:t)}class MI extends P{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new Cd(t)),t.commands.add("outdent",new Cd(t))}}const fm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',mm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class BI extends P{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,i=e.uiLanguageDirection=="ltr"?fm:mm,r=e.uiLanguageDirection=="ltr"?mm:fm;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),r)}_defineButton(t,e,n){const i=this.editor;i.ui.componentFactory.add(t,r=>{const s=i.commands.get(t),a=new ht(r);return a.set({label:e,icon:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",()=>{i.execute(t),i.editing.view.focus()}),a})}}class NI extends P{static get pluginName(){return"Indent"}static get requires(){return[MI,BI]}}class zI{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach(e=>this._definitions.add(e)):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",(e,n,i)=>{if(!i.consumable.test(n.item,"attribute:linkHref")||!(n.item.is("selection")||i.schema.isInline(n.item)))return;const r=i.writer,s=r.document.selection;for(const a of this._definitions){const c=r.createAttributeElement("a",a.attributes,{priority:5});a.classes&&r.addClass(a.classes,c);for(const l in a.styles)r.setStyle(l,a.styles[l],c);r.setCustomProperty("link",!0,c),a.callback(n.attributeNewValue)?n.item.is("selection")?r.wrap(s.getFirstRange(),c):r.wrap(i.mapper.toViewRange(n.range),c):r.unwrap(i.mapper.toViewRange(n.range),c)}},{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",(e,n,{writer:i,mapper:r})=>{const s=r.toViewElement(n.item),a=Array.from(s.getChildren()).find(c=>c.is("element","a"));for(const c of this._definitions){const l=De(c.attributes);if(c.callback(n.attributeNewValue)){for(const[d,u]of l)d==="class"?i.addClass(u,a):i.setAttribute(d,u,a);c.classes&&i.addClass(c.classes,a);for(const d in c.styles)i.setStyle(d,c.styles[d],a)}else{for(const[d,u]of l)d==="class"?i.removeClass(u,a):i.removeAttribute(d,a);c.classes&&i.removeClass(c.classes,a);for(const d in c.styles)i.removeStyle(d,a)}}})}}}function PI(o,t,e){var n=o.length;return e=e===void 0?n:e,!t&&e>=n?o:zd(o,t,e)}const LI=PI;var OI="\\ud800-\\udfff",RI="\\u0300-\\u036f",jI="\\ufe20-\\ufe2f",FI="\\u20d0-\\u20ff",VI=RI+jI+FI,HI="\\ufe0e\\ufe0f",UI="\\u200d",qI=RegExp("["+UI+OI+VI+HI+"]");function WI(o){return qI.test(o)}const pm=WI;function GI(o){return o.split("")}const $I=GI;var km="\\ud800-\\udfff",KI="\\u0300-\\u036f",ZI="\\ufe20-\\ufe2f",YI="\\u20d0-\\u20ff",QI=KI+ZI+YI,JI="\\ufe0e\\ufe0f",XI="["+km+"]",La="["+QI+"]",Oa="\\ud83c[\\udffb-\\udfff]",tM="(?:"+La+"|"+Oa+")",bm="[^"+km+"]",wm="(?:\\ud83c[\\udde6-\\uddff]){2}",Am="[\\ud800-\\udbff][\\udc00-\\udfff]",eM="\\u200d",Cm=tM+"?",_m="["+JI+"]?",nM="(?:"+eM+"(?:"+[bm,wm,Am].join("|")+")"+_m+Cm+")*",oM=_m+Cm+nM,iM="(?:"+[bm+La+"?",La,wm,Am,XI].join("|")+")",rM=RegExp(Oa+"(?="+Oa+")|"+iM+oM,"g");function sM(o){return o.match(rM)||[]}const aM=sM;function cM(o){return pm(o)?aM(o):$I(o)}const lM=cM;function dM(o){return function(t){t=Vr(t);var e=pm(t)?lM(t):void 0,n=e?e[0]:t.charAt(0),i=e?LI(e,1).join(""):t.slice(1);return n[o]()+i}}var uM=dM("toUpperCase");const hM=uM,gM=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,fM=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,mM=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,pM=/^((\w+:(\/{2,})?)|(\W))/i,Ra="Ctrl+K";function kM(o){return o.is("attributeElement")&&!!o.getCustomProperty("link")}function vm(o,{writer:t}){const e=t.createAttributeElement("a",{href:o},{priority:5});return t.setCustomProperty("link",!0,e),e}function ym(o){const t=String(o);return bM(t)?t:"#"}function bM(o){return!!o.replace(gM,"").match(fM)}function wM(o,t){const e={"Open in a new tab":o("Open in a new tab"),Downloadable:o("Downloadable")};return t.forEach(n=>("label"in n&&e[n.label]&&(n.label=e[n.label]),n)),t}function AM(o){const t=[];if(o)for(const[e,n]of Object.entries(o)){const i=Object.assign({},n,{id:`link${hM(e)}`});t.push(i)}return t}function ja(o,t){return o?t.checkAttribute(o.name,"linkHref"):!1}function CM(o){return mM.test(o)}function Fa(o,t){const e=CM(o)?"mailto:":t,n=!!e&&!xm(o);return o&&n?e+o:o}function xm(o){return pM.test(o)}function Em(o){window.open(o,"_blank","noopener")}class _M extends X{constructor(){super(...arguments),this.manualDecorators=new oe,this.automaticDecorators=new zI}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||It(e.getSelectedBlocks());ja(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const i of this.manualDecorators)i.value=this._getDecoratorStateFromModel(i.id)}execute(t,e={}){const n=this.editor.model,i=n.document.selection,r=[],s=[];for(const a in e)e[a]?r.push(a):s.push(a);n.change(a=>{if(i.isCollapsed){const c=i.getFirstPosition();if(i.hasAttribute("linkHref")){const l=Dm(i);let d=Ei(c,"linkHref",i.getAttribute("linkHref"),n);i.getAttribute("linkHref")===l&&(d=this._updateLinkContent(n,a,d,t)),a.setAttribute("linkHref",t,d),r.forEach(u=>{a.setAttribute(u,!0,d)}),s.forEach(u=>{a.removeAttribute(u,d)}),a.setSelection(a.createPositionAfter(d.end.nodeBefore))}else if(t!==""){const l=De(i.getAttributes());l.set("linkHref",t),r.forEach(u=>{l.set(u,!0)});const{end:d}=n.insertContent(a.createText(t,l),c);a.setSelection(d)}["linkHref",...r,...s].forEach(l=>{a.removeSelectionAttribute(l)})}else{const c=n.schema.getValidRanges(i.getRanges(),"linkHref"),l=[];for(const u of i.getSelectedBlocks())n.schema.checkAttribute(u,"linkHref")&&l.push(a.createRangeOn(u));const d=l.slice();for(const u of c)this._isRangeToUpdate(u,l)&&d.push(u);for(const u of d){let f=u;if(d.length===1){const p=Dm(i);i.getAttribute("linkHref")===p&&(f=this._updateLinkContent(n,a,u,t),a.setSelection(a.createSelection(f)))}a.setAttribute("linkHref",t,f),r.forEach(p=>{a.setAttribute(p,!0,f)}),s.forEach(p=>{a.removeAttribute(p,f)})}}})}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,i=n.getSelectedElement();return ja(i,e.schema)?i.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,i){const r=e.createText(i,{linkHref:i});return t.insertContent(r,n)}}function Dm(o){if(o.isCollapsed){const t=o.getFirstPosition();return t.textNode&&t.textNode.data}else{const t=Array.from(o.getFirstRange().getItems());if(t.length>1)return null;const e=t[0];return e.is("$text")||e.is("$textProxy")?e.data:null}}class vM extends X{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();ja(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,i=t.commands.get("link");e.change(r=>{const s=n.isCollapsed?[Ei(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const a of s)if(r.removeAttribute("linkHref",a),i)for(const c of i.manualDecorators)r.removeAttribute(c.id,a)})}}class yM extends rt(){constructor({id:t,label:e,attributes:n,classes:i,styles:r,defaultValue:s}){super(),this.id=t,this.set("value",void 0),this.defaultValue=s,this.label=e,this.attributes=n,this.classes=i,this.styles=r}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Sm=L(3925),Va={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Va.insert="head",Va.singleton=!0,F()(Sm.Z,Va),Sm.Z.locals;const xM="ck-link_selected",Tm="automatic",EM="manual",DM=/^(https?:)?\/\//;class Im extends P{static get pluginName(){return"LinkEditing"}static get requires(){return[Eg,wg,ve]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:vm}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(i,r)=>vm(ym(i),r)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:i=>i.getAttribute("href")}}),t.commands.add("link",new _M(t)),t.commands.add("unlink",new vM(t));const e=wM(t.t,AM(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter(i=>i.mode===Tm)),this._enableManualDecorators(e.filter(i=>i.mode===EM)),t.plugins.get(Eg).registerAttribute("linkHref"),I5(t,"linkHref","a",xM),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,i=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&i.add({id:"linkIsExternal",mode:Tm,callback:r=>!!r&&DM.test(r),attributes:{target:"_blank",rel:"noopener noreferrer"}}),i.add(t),i.length&&e.conversion.for("downcast").add(i.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,i=e.commands.get("link").manualDecorators;t.forEach(r=>{e.model.schema.extend("$text",{allowAttributes:r.id});const s=new yM(r);i.add(s),e.conversion.for("downcast").attributeToElement({model:s.id,view:(a,{writer:c,schema:l},{item:d})=>{if((d.is("selection")||l.isInline(d))&&a){const u=c.createAttributeElement("a",s.attributes,{priority:5});s.classes&&c.addClass(s.classes,u);for(const f in s.styles)c.setStyle(f,s.styles[f],u);return c.setCustomProperty("link",!0,u),u}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",...s._createPattern()},model:{key:s.id}})})}_enableLinkOpen(){const t=this.editor,n=t.editing.view.document;this.listenTo(n,"click",(i,r)=>{if(!(g.isMac?r.domEvent.metaKey:r.domEvent.ctrlKey))return;let a=r.domTarget;if(a.tagName.toLowerCase()!="a"&&(a=a.closest("a")),!a)return;const c=a.getAttribute("href");c&&(i.stop(),r.preventDefault(),Em(c))},{context:"$capture"}),this.listenTo(n,"keydown",(i,r)=>{const a=t.commands.get("link").value;a&&r.keyCode===tt.enter&&r.altKey&&(i.stop(),Em(a))})}_enableSelectionAttributesFixer(){const e=this.editor.model,n=e.document.selection;this.listenTo(n,"change:attribute",(i,{attributeKeys:r})=>{!r.includes("linkHref")||n.hasAttribute("linkHref")||e.change(s=>{SM(s,TM(e.schema))})})}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",(i,r)=>{e.change(s=>{const a=s.createRangeIn(r.content);for(const c of a.getItems())if(c.hasAttribute("linkHref")){const l=Fa(c.getAttribute("linkHref"),n);s.setAttribute("linkHref",l,c)}})})}}function SM(o,t){o.removeSelectionAttribute("linkHref");for(const e of t)o.removeSelectionAttribute(e)}function TM(o){return o.getDefinition("$text").allowAttributes.filter(e=>e.startsWith("link"))}var Mm=L(4874),Ha={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ha.insert="head",Ha.singleton=!0,F()(Mm.Z,Ha),Mm.Z.locals;class IM extends Y{constructor(t,e){super(t),this.focusTracker=new Ht,this.keystrokes=new ie,this._focusables=new be;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),dt.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),dt.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new Te({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const i=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&i.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:i,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((t,e)=>(t[e.name]=e.isOn,t),{})}render(){super.render(),h({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Zo(this.locale,ki);return e.label=t("Link URL"),e}_createButton(t,e,n,i){const r=new ht(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const i=new Ko(this.locale);i.set({name:n.id,label:n.label,withText:!0}),i.bind("isOn").toMany([n,t],"value",(r,s)=>s===void 0&&r===void 0?!!n.defaultValue:!!r),i.on("execute",()=>{n.set("value",!i.isOn)}),e.add(i)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const n=new Y;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(i=>({tag:"li",children:[i],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var Bm=L(7536),Ua={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ua.insert="head",Ua.singleton=!0,F()(Bm.Z,Ua),Bm.Z.locals;const MM='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>';class BM extends Y{constructor(t){super(t),this.focusTracker=new Ht,this.keystrokes=new ie,this._focusables=new be;const e=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),MM,"unlink"),this.editButtonView=this._createButton(e("Edit link"),dt.pencil,"edit"),this.set("href",void 0),this._focusCycler=new Te({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const i=new ht(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){const t=new ht(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",i=>i&&ym(i)),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",i=>i||n("This link has no URL")),t.bind("isEnabled").to(this,"href",i=>!!i),t.template.tag="a",t.template.eventListeners={},t}}const NM='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',ye="link-ui";class zM extends P{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[_i]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(qE),this._balloon=t.plugins.get(_i),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:ye,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:ye,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new BM(t.locale),n=t.commands.get("link"),i=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(e,"edit",()=>{this._addFormView()}),this.listenTo(e,"unlink",()=>{t.execute("unlink"),this._hideUI()}),e.keystrokes.set("Esc",(r,s)=>{this._hideUI(),s()}),e.keystrokes.set(Ra,(r,s)=>{this._addFormView(),s()}),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),i=new(x(IM))(t.locale,e);return i.urlInputView.fieldView.bind("value").to(e,"value"),i.urlInputView.bind("isEnabled").to(e,"isEnabled"),i.saveButtonView.bind("isEnabled").to(e),this.listenTo(i,"submit",()=>{const{value:r}=i.urlInputView.fieldView.element,s=Fa(r,n);t.execute("link",s,i.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(i,"cancel",()=>{this._closeFormView()}),i.keystrokes.set("Esc",(r,s)=>{this._closeFormView(),s()}),i}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",i=>{const r=new ht(i);return r.isEnabled=!0,r.label=n("Link"),r.icon=NM,r.keystroke=Ra,r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(e,"isEnabled"),r.bind("isOn").to(e,"value",s=>!!s),this.listenTo(r,"execute",()=>this._showUI(!0)),r})}_enableBalloonActivators(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),t.keystrokes.set(Ra,(n,i)=>{i(),t.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())},{priority:"high"}),this.editor.keystrokes.set("Esc",(t,e)=>{this._isUIVisible&&(this._hideUI(),e())}),_({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),!this._areActionsInPanel&&this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),t.value!==void 0?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),i=s();const r=()=>{const a=this._getSelectedLinkElement(),c=s();n&&!a||!n&&c!==i?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=a,i=c};function s(){return e.selection.focus.getAncestors().reverse().find(a=>a.is("element"))}this.listenTo(t.ui,"update",r),this.listenTo(this._balloon,"change:visibleView",r)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const t=this._balloon.visibleView;return!!this.formView&&t==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let i;if(e.markers.has(ye)){const r=Array.from(this.editor.editing.mapper.markerNameToElements(ye)),s=t.createRange(t.createPositionBefore(r[0]),t.createPositionAfter(r[r.length-1]));i=t.domConverter.viewRangeToDom(s)}else i=()=>{const r=this._getSelectedLinkElement();return r?t.domConverter.mapViewToDom(r):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:i}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&Mt(n))return qa(e.getFirstPosition());{const i=e.getFirstRange().getTrimmed(),r=qa(i.start),s=qa(i.end);return!r||r!=s?null:t.createRangeIn(r).getTrimmed().isEqual(i)?r:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change(e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(ye))e.updateMarker(ye,{range:n});else if(n.start.isAtEnd){const i=n.start.getLastMatchingPosition(({item:r})=>!t.schema.isContent(r),{boundaries:n});e.addMarker(ye,{usingOperation:!1,affectsData:!1,range:e.createRange(i,n.end)})}else e.addMarker(ye,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(ye)&&t.change(e=>{e.removeMarker(ye)})}}function qa(o){return o.getAncestors().find(t=>kM(t))||null}const PM=4,Nm=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i"),LM=2;class OM extends P{static get requires(){return[Be,Im]}static get pluginName(){return"AutoLink"}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?Ei(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const i=this.editor.model,r=i.document.selection,s=r.getFirstPosition(),a=r.getLastPosition();let c=e.getJoined(this._expandLinkRange(i,s)||e);c&&(c=c.getJoined(this._expandLinkRange(i,a)||e)),c&&(c.start.isBefore(s)||c.end.isAfter(a))&&t.setSelection(c)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,i=t.plugins.get("ClipboardPipeline"),r=t.commands.get("link");i.on("inputTransformation",(s,a)=>{if(!this.isEnabled||!r.isEnabled||n.isCollapsed||n.rangeCount>1)return;const c=n.getFirstRange(),l=a.dataTransfer.getData("text/plain");if(!l)return;const d=l.match(Nm);d&&d[2]===l&&(e.change(u=>{this._selectEntireLinks(u,c),r.execute(l)}),s.stop())},{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new xg(t.model,n=>{if(!RM(n))return;const i=zm(n.substr(0,n.length-1));if(i)return{url:i}});e.on("matched:data",(n,i)=>{const{batch:r,range:s,url:a}=i;if(!r.isTyping)return;const c=s.end.getShiftedBy(-1),l=c.getShiftedBy(-a.length),d=t.model.createRange(l,c);this._applyAutoLink(a,d)}),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",()=>{const i=e.document.selection.getFirstPosition();if(!i.parent.previousSibling)return;const r=e.createRangeIn(i.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(r)})}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",()=>{const i=e.document.selection.getFirstPosition(),r=e.createRange(e.createPositionAt(i.parent,0),i.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(r)})}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:i}=yg(t,e),r=zm(n);if(r){const s=e.createRange(i.end.getShiftedBy(-r.length),i.end);this._applyAutoLink(r,s)}}_applyAutoLink(t,e){const n=this.editor.model,i=this.editor.config.get("link.defaultProtocol"),r=Fa(t,i);!this.isEnabled||!jM(e,n)||!xm(r)||FM(e)||this._persistAutoLink(r,e)}_persistAutoLink(t,e){const n=this.editor.model,i=this.editor.plugins.get("Delete");n.enqueueChange(r=>{r.setAttribute("linkHref",t,e),n.enqueueChange(()=>{i.requestUndoOnBackspace()})})}}function RM(o){return o.length>PM&&o[o.length-1]===" "&&o[o.length-2]!==" "}function zm(o){const t=Nm.exec(o);return t?t[LM]:null}function jM(o,t){return t.schema.checkAttributeInSelection(t.createSelection(o),"linkHref")}function FM(o){const t=o.start.nodeAfter;return!!t&&t.hasAttribute("linkHref")}class VM extends P{static get requires(){return[Im,zM,OM]}static get pluginName(){return"Link"}}var Pm=L(4330),Wa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Wa.insert="head",Wa.singleton=!0,F()(Pm.Z,Wa),Pm.Z.locals;var Lm=L(3190),Ga={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ga.insert="head",Ga.singleton=!0,F()(Lm.Z,Ga),Lm.Z.locals;var Om=L(4784),$a={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};$a.insert="head",$a.singleton=!0,F()(Om.Z,$a),Om.Z.locals;function HM(o){const t=o.createContainerElement("li");return t.getFillerOffset=ZM,t}function UM(o,t){const e=t.mapper,n=t.writer,i=o.getAttribute("listType")=="numbered"?"ol":"ul",r=HM(n),s=n.createContainerElement(i,null);return n.insert(n.createPositionAt(s,0),r),e.bindElements(o,r),r}function Rm(o,t,e,n){const i=t.parent,r=e.mapper,s=e.writer;let a=r.toViewPosition(n.createPositionBefore(o));const c=Fm(o.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:o.getAttribute("listIndent")}),l=o.previousSibling;if(c&&c.getAttribute("listIndent")==o.getAttribute("listIndent")){const d=r.toViewElement(c);a=s.breakContainer(s.createPositionAfter(d))}else if(l&&l.name=="listItem"){a=r.toViewPosition(n.createPositionAt(l,"end"));const d=r.findMappedViewAncestor(a),u=qM(d);u?a=s.createPositionBefore(u):a=s.createPositionAt(d,"end")}else a=r.toViewPosition(n.createPositionBefore(o));if(a=jm(a),s.insert(a,i),l&&l.name=="listItem"){const d=r.toViewElement(l),f=s.createRange(s.createPositionAt(d,0),a).getWalker({ignoreElementEnd:!0});for(const p of f)if(p.item.is("element","li")){const w=s.breakContainer(s.createPositionBefore(p.item)),S=p.item.parent,B=s.createPositionAt(t,"end");ce(s,B.nodeBefore,B.nodeAfter),s.move(s.createRangeOn(S),B),f._position=w}}else{const d=i.nextSibling;if(d&&(d.is("element","ul")||d.is("element","ol"))){let u=null;for(const f of d.getChildren()){const p=r.toModelElement(f);if(p&&p.getAttribute("listIndent")>o.getAttribute("listIndent"))u=f;else break}u&&(s.breakContainer(s.createPositionAfter(u)),s.move(s.createRangeOn(u.parent),s.createPositionAt(t,"end")))}}ce(s,i,i.nextSibling),ce(s,i.previousSibling,i)}function ce(o,t,e){return!t||!e||t.name!="ul"&&t.name!="ol"||t.name!=e.name||t.getAttribute("class")!==e.getAttribute("class")?null:o.mergeContainers(o.createPositionAfter(t))}function jm(o){return o.getLastMatchingPosition(t=>t.item.is("uiElement"))}function Fm(o,t){const e=!!t.sameIndent,n=!!t.smallerIndent,i=t.listIndent;let r=o;for(;r&&r.name=="listItem";){const s=r.getAttribute("listIndent");if(e&&i==s||n&&i>s)return r;t.direction==="forward"?r=r.nextSibling:r=r.previousSibling}return null}function Vm(o,t,e,n){o.ui.componentFactory.add(t,i=>{const r=o.commands.get(t),s=new ht(i);return s.set({label:e,icon:n,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",()=>{o.execute(t),o.editing.view.focus()}),s})}function qM(o){for(const t of o.getChildren())if(t.name=="ul"||t.name=="ol")return t;return null}function Ka(o,t){const e=[],n=o.parent,i={ignoreElementEnd:!1,startPosition:o,shallow:!0,direction:t},r=n.getAttribute("listIndent"),s=[...new fe(i)].filter(a=>a.item.is("element")).map(a=>a.item);for(const a of s){if(!a.is("element","listItem")||a.getAttribute("listIndent")<r)break;if(!(a.getAttribute("listIndent")>r)){if(a.getAttribute("listType")!==n.getAttribute("listType")||a.getAttribute("listStyle")!==n.getAttribute("listStyle")||a.getAttribute("listReversed")!==n.getAttribute("listReversed")||a.getAttribute("listStart")!==n.getAttribute("listStart"))break;t==="backward"?e.unshift(a):e.push(a)}}return e}function WM(o){let e=[...o.document.selection.getSelectedBlocks()].filter(n=>n.is("element","listItem")).map(n=>{const i=o.change(r=>r.createPositionAt(n,0));return[...Ka(i,"backward"),...Ka(i,"forward")]}).flat();return e=[...new Set(e)],e}const GM=["disc","circle","square"],$M=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function KM(o){return GM.includes(o)?"bulleted":$M.includes(o)?"numbered":null}function ZM(){const o=!this.isEmpty&&(this.getChild(0).name=="ul"||this.getChild(0).name=="ol");return this.isEmpty||o?0:Fd.call(this)}const YM='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',QM='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>';class JM extends P{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;Vm(this.editor,"numberedList",t("Numbered List"),YM),Vm(this.editor,"bulletedList",t("Bulleted List"),QM)}}const XM=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:o,typeAttribute:t,listType:e}of XM);var Hm=L(9938),Za={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Za.insert="head",Za.singleton=!0,F()(Hm.Z,Za),Hm.Z.locals;var Um=L(2591),Ya={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ya.insert="head",Ya.singleton=!0,F()(Um.Z,Ya),Um.Z.locals;class qm extends X{constructor(t,e){super(t),this._indentBy=e=="forward"?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks());t.change(i=>{const r=n[n.length-1];let s=r.nextSibling;for(;s&&s.name=="listItem"&&s.getAttribute("listIndent")>r.getAttribute("listIndent");)n.push(s),s=s.nextSibling;this._indentBy<0&&(n=n.reverse());for(const a of n){const c=a.getAttribute("listIndent")+this._indentBy;c<0?i.rename(a,"paragraph"):i.setAttribute("listIndent",c,a)}this.fire("_executeCleanup",n)})}_checkEnabled(){const t=It(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let i=t.previousSibling;for(;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=e;){if(i.getAttribute("listIndent")==e)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}class Wm extends X{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,i=Array.from(n.selection.getSelectedBlocks()).filter(s=>$m(s,e.schema)),r=t.forceValue!==void 0?!t.forceValue:this.value;e.change(s=>{if(r){let a=i[i.length-1].nextSibling,c=Number.POSITIVE_INFINITY,l=[];for(;a&&a.name=="listItem"&&a.getAttribute("listIndent")!==0;){const d=a.getAttribute("listIndent");d<c&&(c=d);const u=d-c;l.push({element:a,listIndent:u}),a=a.nextSibling}l=l.reverse();for(const d of l)s.setAttribute("listIndent",d.listIndent,d.element)}if(!r){let a=Number.POSITIVE_INFINITY;for(const c of i)c.is("element","listItem")&&c.getAttribute("listIndent")<a&&(a=c.getAttribute("listIndent"));a=a===0?1:a,Gm(i,!0,a),Gm(i,!1,a)}for(const a of i.reverse())r&&a.name=="listItem"?s.rename(a,"paragraph"):!r&&a.name!="listItem"?(s.setAttributes({listType:this.type,listIndent:0},a),s.rename(a,"listItem")):!r&&a.name=="listItem"&&a.getAttribute("listType")!=this.type&&s.setAttribute("listType",this.type,a);this.fire("_executeCleanup",i)})}_getValue(){const t=It(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("element","listItem")&&t.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=It(t.getSelectedBlocks());return n?$m(n,e):!1}}function Gm(o,t,e){const n=t?o[0]:o[o.length-1];if(n.is("element","listItem")){let i=n[t?"previousSibling":"nextSibling"],r=n.getAttribute("listIndent");for(;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=e;)r>i.getAttribute("listIndent")&&(r=i.getAttribute("listIndent")),i.getAttribute("listIndent")==r&&o[t?"unshift":"push"](i),i=i[t?"previousSibling":"nextSibling"]}}function $m(o,t){return t.checkChild(o.parent,"listItem")&&!t.isObject(o)}class t4 extends P{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return KM(t)}getSelectedListItems(t){return WM(t)}getSiblingNodes(t,e){return Ka(t,e)}}function Km(o){return(t,e,n)=>{const i=n.consumable;if(!i.test(e.item,"insert")||!i.test(e.item,"attribute:listType")||!i.test(e.item,"attribute:listIndent"))return;i.consume(e.item,"insert"),i.consume(e.item,"attribute:listType"),i.consume(e.item,"attribute:listIndent");const r=e.item,s=UM(r,n);Rm(r,s,n,o)}}function e4(o){return(t,e,n)=>{const s=n.mapper.toViewPosition(e.position).getLastMatchingPosition(p=>!p.item.is("element","li")).nodeAfter,a=n.writer;a.breakContainer(a.createPositionBefore(s)),a.breakContainer(a.createPositionAfter(s));const c=s.parent,l=c.previousSibling,d=a.createRangeOn(c),u=a.remove(d);l&&l.nextSibling&&ce(a,l,l.nextSibling);const f=n.mapper.toModelElement(s);Jm(f.getAttribute("listIndent")+1,e.position,d.start,s,n,o);for(const p of a.createRangeIn(u).getItems())n.mapper.unbindViewElement(p);t.stop()}}const n4=(o,t,e)=>{if(!e.consumable.test(t.item,o.name))return;const n=e.mapper.toViewElement(t.item),i=e.writer;i.breakContainer(i.createPositionBefore(n)),i.breakContainer(i.createPositionAfter(n));const r=n.parent,s=t.attributeNewValue=="numbered"?"ol":"ul";i.rename(s,r)},o4=(o,t,e)=>{e.consumable.consume(t.item,o.name);const i=e.mapper.toViewElement(t.item).parent,r=e.writer;ce(r,i,i.nextSibling),ce(r,i.previousSibling,i)};function i4(o){return(t,e,n)=>{if(!n.consumable.consume(e.item,"attribute:listIndent"))return;const i=n.mapper.toViewElement(e.item),r=n.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));const s=i.parent,a=s.previousSibling,c=r.createRangeOn(s);r.remove(c),a&&a.nextSibling&&ce(r,a,a.nextSibling),Jm(e.attributeOldValue+1,e.range.start,c.start,i,n,o),Rm(e.item,i,n,o);for(const l of e.item.getChildren())n.consumable.consume(l,"insert")}}const Zm=(o,t,e)=>{if(e.consumable.test(t.item,o.name)&&t.item.name!="listItem"){let n=e.mapper.toViewPosition(t.range.start);const i=e.writer,r=[];for(;(n.parent.name=="ul"||n.parent.name=="ol")&&(n=i.breakContainer(n),n.parent.name=="li");){const s=n,a=i.createPositionAt(n.parent,"end");if(!s.isEqual(a)){const c=i.remove(i.createRange(s,a));r.push(c)}n=i.createPositionAfter(n.parent)}if(r.length>0){for(let s=0;s<r.length;s++){const a=n.nodeBefore;if(n=i.insert(n,r[s]).end,s>0){const l=ce(i,a,a.nextSibling);l&&l.parent==a&&n.offset--}}ce(i,n.nodeBefore,n.nodeAfter)}}},r4=(o,t,e)=>{const n=e.mapper.toViewPosition(t.position),i=n.nodeBefore,r=n.nodeAfter;ce(e.writer,i,r)},s4=(o,t,e)=>{if(e.consumable.consume(t.viewItem,{name:!0})){const n=e.writer,i=n.createElement("listItem"),r=g4(t.viewItem);n.setAttribute("listIndent",r,i);const s=t.viewItem.parent&&t.viewItem.parent.name=="ol"?"numbered":"bulleted";if(n.setAttribute("listType",s,i),!e.safeInsert(i,t.modelCursor))return;const a=u4(i,t.viewItem.getChildren(),e);t.modelRange=n.createRange(t.modelCursor,a),e.updateConversionResult(i,t)}},Ym=(o,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){const n=Array.from(t.viewItem.getChildren());for(const i of n)!(i.is("element","li")||Vn(i))&&i._remove()}},a4=(o,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){if(t.viewItem.childCount===0)return;const n=[...t.viewItem.getChildren()];let i=!1;for(const r of n)i&&!Vn(r)&&r._remove(),Vn(r)&&(i=!0)}};function Qm(o){return(t,e)=>{if(e.isPhantom)return;const n=e.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const i=e.mapper.toViewElement(n),r=i.getAncestors().find(Vn),s=o.createPositionAt(i,0).getWalker();for(const a of s)if(a.type=="elementStart"&&a.item.is("element","li")){e.viewPosition=a.previousPosition;break}else if(a.type=="elementEnd"&&a.item==r){e.viewPosition=a.nextPosition;break}}}}function c4(o){return(t,e)=>{const n=e.viewPosition,i=n.parent,r=e.mapper;if(i.name=="ul"||i.name=="ol"){if(n.isAtEnd){const s=r.toModelElement(n.nodeBefore),a=r.getModelLength(n.nodeBefore);e.modelPosition=o.createPositionBefore(s).getShiftedBy(a)}else{const s=r.toModelElement(n.nodeAfter);e.modelPosition=o.createPositionBefore(s)}t.stop()}else if(i.name=="li"&&n.nodeBefore&&(n.nodeBefore.name=="ul"||n.nodeBefore.name=="ol")){const s=r.toModelElement(i);let a=1,c=n.nodeBefore;for(;c&&Vn(c);)a+=r.getModelLength(c),c=c.previousSibling;e.modelPosition=o.createPositionBefore(s).getShiftedBy(a),t.stop()}}}function l4(o,t){const e=o.document.differ.getChanges(),n=new Map;let i=!1;for(const c of e)if(c.type=="insert"&&c.name=="listItem")r(c.position);else if(c.type=="insert"&&c.name!="listItem"){if(c.name!="$text"){const d=c.position.nodeAfter;d.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",d),i=!0),d.hasAttribute("listType")&&(t.removeAttribute("listType",d),i=!0),d.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",d),i=!0),d.hasAttribute("listReversed")&&(t.removeAttribute("listReversed",d),i=!0),d.hasAttribute("listStart")&&(t.removeAttribute("listStart",d),i=!0);for(const u of Array.from(o.createRangeIn(d)).filter(f=>f.item.is("element","listItem")))r(u.previousPosition)}const l=c.position.getShiftedBy(c.length);r(l)}else c.type=="remove"&&c.name=="listItem"?r(c.position):(c.type=="attribute"&&c.attributeKey=="listIndent"||c.type=="attribute"&&c.attributeKey=="listType")&&r(c.range.start);for(const c of n.values())s(c),a(c);return i;function r(c){const l=c.nodeBefore;if(!l||!l.is("element","listItem")){const d=c.nodeAfter;d&&d.is("element","listItem")&&n.set(d,d)}else{let d=l;if(n.has(d))return;for(let u=d.previousSibling;u&&u.is("element","listItem");u=d.previousSibling)if(d=u,n.has(d))return;n.set(l,d)}}function s(c){let l=0,d=null;for(;c&&c.is("element","listItem");){const u=c.getAttribute("listIndent");if(u>l){let f;d===null?(d=u-l,f=l):(d>u&&(d=u),f=u-d),t.setAttribute("listIndent",f,c),i=!0}else d=null,l=c.getAttribute("listIndent")+1;c=c.nextSibling}}function a(c){let l=[],d=null;for(;c&&c.is("element","listItem");){const u=c.getAttribute("listIndent");if(d&&d.getAttribute("listIndent")>u&&(l=l.slice(0,u+1)),u!=0)if(l[u]){const f=l[u];c.getAttribute("listType")!=f&&(t.setAttribute("listType",f,c),i=!0)}else l[u]=c.getAttribute("listType");d=c,c=c.nextSibling}}}const d4=function(o,[t,e]){const n=this;let i=t.is("documentFragment")?t.getChild(0):t,r;if(e?r=n.createSelection(e):r=n.document.selection,i&&i.is("element","listItem")){const s=r.getFirstPosition();let a=null;if(s.parent.is("element","listItem")?a=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(a=s.nodeBefore),a){const c=a.getAttribute("listIndent");if(c>0)for(;i&&i.is("element","listItem");)i._setAttribute("listIndent",i.getAttribute("listIndent")+c),i=i.nextSibling}}};function u4(o,t,e){const{writer:n,schema:i}=e;let r=n.createPositionAfter(o);for(const s of t)if(s.name=="ul"||s.name=="ol")r=e.convertItem(s,r).modelCursor;else{const a=e.convertItem(s,n.createPositionAt(o,"end")),c=a.modelRange.start.nodeAfter;c&&c.is("element")&&!i.checkChild(o,c.name)&&(a.modelCursor.parent.is("element","listItem")?o=a.modelCursor.parent:o=h4(a.modelCursor),r=n.createPositionAfter(o))}return r}function h4(o){const t=new fe({startPosition:o});let e;do e=t.next();while(!e.value.item.is("element","listItem"));return e.value.item}function Jm(o,t,e,n,i,r){const s=Fm(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:o}),a=i.mapper,c=i.writer,l=s?s.getAttribute("listIndent"):null;let d;if(!s)d=e;else if(l==o){const u=a.toViewElement(s).parent;d=c.createPositionAfter(u)}else{const u=r.createPositionAt(s,"end");d=a.toViewPosition(u)}d=jm(d);for(const u of[...n.getChildren()])Vn(u)&&(d=c.move(c.createRangeOn(u),d).end,ce(c,u,u.nextSibling),ce(c,u.previousSibling,u))}function Vn(o){return o.is("element","ol")||o.is("element","ul")}function g4(o){let t=0,e=o.parent;for(;e;){if(e.is("element","li"))t++;else{const n=e.previousSibling;n&&n.is("element","li")&&t++}e=e.parent}return t}class f4 extends P{static get pluginName(){return"ListEditing"}static get requires(){return[Si,Be,t4]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;t.model.document.registerPostFixer(r=>l4(t.model,r)),n.mapper.registerViewToModelLength("li",Qa),e.mapper.registerViewToModelLength("li",Qa),n.mapper.on("modelToViewPosition",Qm(n.view)),n.mapper.on("viewToModelPosition",c4(t.model)),e.mapper.on("modelToViewPosition",Qm(n.view)),t.conversion.for("editingDowncast").add(r=>{r.on("insert",Zm,{priority:"high"}),r.on("insert:listItem",Km(t.model)),r.on("attribute:listType:listItem",n4,{priority:"high"}),r.on("attribute:listType:listItem",o4,{priority:"low"}),r.on("attribute:listIndent:listItem",i4(t.model)),r.on("remove:listItem",e4(t.model)),r.on("remove",r4,{priority:"low"})}),t.conversion.for("dataDowncast").add(r=>{r.on("insert",Zm,{priority:"high"}),r.on("insert:listItem",Km(t.model))}),t.conversion.for("upcast").add(r=>{r.on("element:ul",Ym,{priority:"high"}),r.on("element:ol",Ym,{priority:"high"}),r.on("element:li",a4,{priority:"high"}),r.on("element:li",s4)}),t.model.on("insertContent",d4,{priority:"high"}),t.commands.add("numberedList",new Wm(t,"numbered")),t.commands.add("bulletedList",new Wm(t,"bulleted")),t.commands.add("indentList",new qm(t,"forward")),t.commands.add("outdentList",new qm(t,"backward"));const i=n.view.document;this.listenTo(i,"enter",(r,s)=>{const a=this.editor.model.document,c=a.selection.getLastPosition().parent;a.selection.isCollapsed&&c.name=="listItem"&&c.isEmpty&&(this.editor.execute("outdentList"),s.preventDefault(),r.stop())},{context:"li"}),this.listenTo(i,"delete",(r,s)=>{if(s.direction!=="backward")return;const a=this.editor.model.document.selection;if(!a.isCollapsed)return;const c=a.getFirstPosition();if(!c.isAtStart)return;const l=c.parent;l.name!=="listItem"||l.previousSibling&&l.previousSibling.name==="listItem"||(this.editor.execute("outdentList"),s.preventDefault(),r.stop())},{context:"li"}),this.listenTo(t.editing.view.document,"tab",(r,s)=>{const a=s.shiftKey?"outdentList":"indentList";this.editor.commands.get(a).isEnabled&&(t.execute(a),s.stopPropagation(),s.preventDefault(),r.stop())},{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function Qa(o){let t=1;for(const e of o.getChildren())if(e.name=="ul"||e.name=="ol")for(const n of e.getChildren())t+=Qa(n);return t}class m4 extends P{static get requires(){return[f4,JM]}static get pluginName(){return"List"}}eo("Ctrl+Enter");var Xm=L(9292),Ja={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ja.insert="head",Ja.singleton=!0,F()(Xm.Z,Ja),Xm.Z.locals,eo("Ctrl+Enter");function tp(o,t){const e=(n,i,r)=>{if(!r.consumable.consume(i.item,n.name))return;const s=i.attributeNewValue,a=r.writer,c=r.mapper.toViewElement(i.item),l=[...c.getChildren()].find(u=>u.getCustomProperty("media-content"));a.remove(l);const d=o.getMediaViewElement(a,s,t);a.insert(a.createPositionAt(c,0),d)};return n=>{n.on("attribute:url:media",e)}}function p4(o,t,e){return t.setCustomProperty("media",!0,o),la(o,t,{label:e})}function ep(o,t,e,n){return o.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(o,e,n),o.createSlot()])}function np(o){const t=o.getSelectedElement();return t&&t.is("element","media")?t:null}function op(o,t,e,n){o.change(i=>{const r=i.createElement("media",{url:t});o.insertObject(r,e,null,{setSelection:"on",findOptimalPosition:n?"auto":void 0})})}class k4 extends X{refresh(){const t=this.editor.model,e=t.document.selection,n=np(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=w4(e)||b4(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,i=np(n);i?e.change(r=>{r.setAttribute("url",t,i)}):op(e,t,n,!0)}}function b4(o,t){let n=Kg(o,t).start.parent;return n.isEmpty&&!t.schema.isLimit(n)&&(n=n.parent),t.schema.checkChild(n,"media")}function w4(o){const t=o.getSelectedElement();return!!t&&t.name==="media"}const A4='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',C4="0 0 64 42";class _4{constructor(t,e){const n=e.providers,i=e.extraProviders||[],r=new Set(e.removeProviders),s=n.concat(i).filter(a=>{const c=a.name;return c?!r.has(c):(at("media-embed-no-provider-name",{provider:a}),!1)});this.locale=t,this.providerDefinitions=s}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new ip(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,i=Tt(e.url);for(const r of i){const s=this._getUrlMatches(t,r);if(s)return new ip(this.locale,t,s,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let i=t.replace(/^https?:\/\//,"");return n=i.match(e),n||(i=i.replace(/^www\./,""),n=i.match(e),n)?n:null}}class ip{constructor(t,e,n,i){this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=i}getViewElement(t,e){const n={};let i;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const r=this._getPreviewHtml(e);i=t.createRawElement("div",n,(s,a)=>{a.setContentOf(s,r)})}else this.url&&(n.url=this.url),i=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,i),i}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new Se,e=this._locale.t;return t.content=A4,t.viewBox=C4,new re({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var rp=L(1922),Xa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Xa.insert="head",Xa.singleton=!0,F()(rp.Z,Xa),rp.Z.locals;class Ri extends P{static get pluginName(){return"MediaEmbedEditing"}constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{const n=e[1],i=e[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${n}${i?`?start=${i}`:""}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new _4(t.locale,t.config.get("mediaEmbed"))}init(){const t=this.editor,e=t.model.schema,n=t.t,i=t.conversion,r=t.config.get("mediaEmbed.previewsInData"),s=t.config.get("mediaEmbed.elementName"),a=this.registry;t.commands.add("mediaEmbed",new k4(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),i.for("dataDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url");return ep(l,a,d,{elementName:s,renderMediaPreview:!!d&&r})}}),i.for("dataDowncast").add(tp(a,{elementName:s,renderMediaPreview:r})),i.for("editingDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url"),u=ep(l,a,d,{elementName:s,renderForEditingView:!0});return p4(u,l,n("media widget"))}}),i.for("editingDowncast").add(tp(a,{elementName:s,renderForEditingView:!0})),i.for("upcast").elementToElement({view:c=>["oembed",s].includes(c.name)&&c.getAttribute("url")?{name:!0}:null,model:(c,{writer:l})=>{const d=c.getAttribute("url");return a.hasMedia(d)?l.createElement("media",{url:d}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(c,{writer:l})=>{const d=c.getAttribute("data-oembed-url");return a.hasMedia(d)?l.createElement("media",{url:d}):null}}).add(c=>{const l=(d,u,f)=>{if(!f.consumable.consume(u.viewItem,{name:!0,classes:"media"}))return;const{modelRange:p,modelCursor:w}=f.convertChildren(u.viewItem,u.modelCursor);u.modelRange=p,u.modelCursor=w,It(p.getItems())||f.consumable.revert(u.viewItem,{name:!0,classes:"media"})};c.on("element:figure",l)})}}const v4=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class y4 extends P{static get requires(){return[gf,Be,pa]}static get pluginName(){return"AutoMediaEmbed"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const r=e.selection.getFirstRange(),s=Lt.fromPosition(r.start);s.stickiness="toPrevious";const a=Lt.fromPosition(r.end);a.stickiness="toNext",e.once("change:data",()=>{this._embedMediaBetweenPositions(s,a),s.detach(),a.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(U.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,i=n.plugins.get(Ri).registry,r=new Xt(t,e),s=r.getWalker({ignoreElementEnd:!0});let a="";for(const l of s)l.item.is("$textProxy")&&(a+=l.item.data);if(a=a.trim(),!a.match(v4)){r.detach();return}if(!i.hasMedia(a)){r.detach();return}if(!n.commands.get("mediaEmbed").isEnabled){r.detach();return}this._positionToInsert=Lt.fromPosition(t),this._timeoutId=U.window.setTimeout(()=>{n.model.change(l=>{this._timeoutId=null,l.remove(r),r.detach();let d=null;this._positionToInsert.root.rootName!=="$graveyard"&&(d=this._positionToInsert),op(n.model,a,d,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(Be).requestUndoOnBackspace()},100)}}var sp=L(7138),tc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};tc.insert="head",tc.singleton=!0,F()(sp.Z,tc),sp.Z.locals;class x4 extends Y{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Ht,this.keystrokes=new ie,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),dt.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",i=>!!i),this.cancelButtonView=this._createButton(n("Cancel"),dt.cancel,"ck-button-cancel","cancel"),this._focusables=new be,this._focusCycler=new Te({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),h({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(n=>{this._focusables.add(n),this.focusTracker.add(n.element)}),this.keystrokes.listenTo(this.element);const e=n=>n.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Zo(this.locale,ki),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),e}_createButton(t,e,n,i){const r=new ht(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}}const E4='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>';class D4 extends P{static get requires(){return[Ri]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",n=>{const i=_e(n);return this._setUpDropdown(i,e),i})}_setUpDropdown(t,e){const n=this.editor,i=n.t,r=t.buttonView,s=n.plugins.get(Ri).registry;t.once("change:isOpen",()=>{const a=new(x(x4))(S4(n.t,s),n.locale);t.panelView.children.add(a),r.on("open",()=>{a.disableCssTransitions(),a.url=e.value||"",a.urlInputView.fieldView.select(),a.enableCssTransitions()},{priority:"low"}),t.on("submit",()=>{a.isValid()&&(n.execute("mediaEmbed",a.url),n.editing.view.focus())}),t.on("change:isOpen",()=>a.resetFormStatus()),t.on("cancel",()=>{n.editing.view.focus()}),a.delegate("submit","cancel").to(t),a.urlInputView.fieldView.bind("value").to(e,"value"),a.urlInputView.bind("isEnabled").to(e,"isEnabled")}),t.bind("isEnabled").to(e),r.set({label:i("Insert media"),icon:E4,tooltip:!0})}}function S4(o,t){return[e=>{if(!e.url.length)return o("The URL must not be empty.")},e=>{if(!t.hasMedia(e.url))return o("This media URL is not supported.")}]}var ap=L(8705),ec={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ec.insert="head",ec.singleton=!0,F()(ap.Z,ec),ap.Z.locals;class T4 extends P{static get requires(){return[Ri,D4,y4,So]}static get pluginName(){return"MediaEmbed"}}function I4(o,t){if(!o.childCount)return;const e=new He(o.document),n=B4(o,e);if(!n.length)return;let i=null,r=1;n.forEach((s,a)=>{const c=F4(n[a-1],s),l=c?null:n[a-1],d=H4(l,s);if(c&&(i=null,r=1),!i||d!==0){const f=N4(s,t);if(!i)i=cp(f,s.element,e);else if(s.indent>r){const p=i.getChild(i.childCount-1),w=p.getChild(p.childCount-1);i=cp(f,w,e),r+=1}else if(s.indent<r){const p=r-s.indent;i=U4(i,p),r=s.indent}s.indent<=r&&(i.is("element",f.type)||(i=e.rename(f.type,i)))}const u=O4(s.element,e);e.appendChild(u,i)})}function M4(o,t){for(const e of t.createRangeIn(o)){const n=e.item;if(n.is("element","li")){const i=n.getChild(0);i&&i.is("element","p")&&t.unwrapElement(i)}}}function B4(o,t){const e=t.createRangeIn(o),n=new de({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const r of e)if(r.type==="elementStart"&&n.match(r.item)){const s=R4(r.item);i.push({element:r.item,id:s.id,order:s.order,indent:s.indent})}return i}function N4(o,t){const e=new RegExp(`@list l${o.id}:level${o.indent}\\s*({[^}]*)`,"gi"),n=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=e.exec(t);let s="decimal",a="ol",c=null;if(r&&r[1]){const l=n.exec(r[1]);if(l&&l[1]&&(s=l[1].trim(),a=s!=="bullet"&&s!=="image"?"ol":"ul"),s==="bullet"){const d=z4(o.element);d&&(s=d)}else{const d=i.exec(r[1]);d&&d[1]&&(c=parseInt(d[1]))}}return{type:a,startIndex:c,style:L4(s)}}function z4(o){const t=P4(o);if(!t)return null;const e=t._data;return e==="o"?"circle":e==="·"?"disc":e==="§"?"square":null}function P4(o){if(o.getChild(0).is("$text"))return null;for(const t of o.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);if(e)return e.is("$text")?e:e.getChild(0)}return null}function L4(o){if(o.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(o){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return o;default:return null}}function cp(o,t,e){const n=t.parent,i=e.createElement(o.type),r=n.getChildIndex(t)+1;return e.insertChild(r,i,n),o.style&&e.setStyle("list-style-type",o.style,i),o.startIndex&&o.startIndex>1&&e.setAttribute("start",o.startIndex,i),i}function O4(o,t){return j4(o,t),t.removeStyle("text-indent",o),t.rename("li",o)}function R4(o){const t={},e=o.getStyle("mso-list");if(e){const n=e.match(/(^|\s{1,100})l(\d+)/i),i=e.match(/\s{0,100}lfo(\d+)/i),r=e.match(/\s{0,100}level(\d+)/i);n&&i&&r&&(t.id=n[2],t.order=i[1],t.indent=parseInt(r[1]))}return t}function j4(o,t){const e=new de({name:"span",styles:{"mso-list":"Ignore"}}),n=t.createRangeIn(o);for(const i of n)i.type==="elementStart"&&e.match(i.item)&&t.remove(i.item)}function F4(o,t){if(!o)return!0;if(o.id!==t.id)return t.indent-o.indent!==1;const e=t.element.previousSibling;return e?!V4(e):!0}function V4(o){return o.is("element","ol")||o.is("element","ul")}function H4(o,t){return o?t.indent-o.indent:t.indent-1}function U4(o,t){const e=o.getAncestors({parentFirst:!0});let n=null,i=0;for(const r of e)if((r.is("element","ul")||r.is("element","ol"))&&i++,i===t){n=r;break}return n}function q4(o,t){if(!o.childCount)return;const e=new He(o.document),n=G4(o,e);$4(n,o,e),Z4(n,o,e),K4(o,e);const i=Y4(o,e);i.length&&J4(i,Q4(t),e)}function W4(o){return btoa(o.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}function G4(o,t){const e=t.createRangeIn(o),n=new de({name:/v:(.+)/}),i=[];for(const r of e){if(r.type!="elementStart")continue;const s=r.item,a=s.previousSibling,c=a&&a.is("element")?a.name:null;n.match(s)&&s.getAttribute("o:gfxdata")&&c!=="v:shapetype"&&i.push(r.item.getAttribute("id"))}return i}function $4(o,t,e){const n=e.createRangeIn(t),i=new de({name:"img"}),r=[];for(const s of n)if(s.item.is("element")&&i.match(s.item)){const a=s.item,c=a.getAttribute("v:shapes")?a.getAttribute("v:shapes").split(" "):[];c.length&&c.every(l=>o.indexOf(l)>-1)?r.push(a):a.getAttribute("src")||r.push(a)}for(const s of r)e.remove(s)}function K4(o,t){const e=t.createRangeIn(o),n=new de({name:/v:(.+)/}),i=[];for(const r of e)r.type=="elementStart"&&n.match(r.item)&&i.push(r.item);for(const r of i)t.remove(r)}function Z4(o,t,e){const n=e.createRangeIn(t),i=[];for(const a of n)if(a.type=="elementStart"&&a.item.is("element","v:shape")){const c=a.item.getAttribute("id");if(o.includes(c))continue;r(a.item.parent.getChildren(),c)||i.push(a.item)}for(const a of i){const c={src:s(a)};a.hasAttribute("alt")&&(c.alt=a.getAttribute("alt"));const l=e.createElement("img",c);e.insertChild(a.index+1,l,a.parent)}function r(a,c){for(const l of a)if(l.is("element")&&(l.name=="img"&&l.getAttribute("v:shapes")==c||r(l.getChildren(),c)))return!0;return!1}function s(a){for(const c of a.getChildren())if(c.is("element")&&c.getAttribute("src"))return c.getAttribute("src")}}function Y4(o,t){const e=t.createRangeIn(o),n=new de({name:"img"}),i=[];for(const r of e)r.item.is("element")&&n.match(r.item)&&r.item.getAttribute("src").startsWith("file://")&&i.push(r.item);return i}function Q4(o){if(!o)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,e=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),n=o.match(e),i=[];if(n)for(const r of n){let s=!1;r.includes("\\pngblip")?s="image/png":r.includes("\\jpegblip")&&(s="image/jpeg"),s&&i.push({hex:r.replace(t,"").replace(/[^\da-fA-F]/g,""),type:s})}return i}function J4(o,t,e){if(o.length===t.length)for(let n=0;n<o.length;n++){const i=`data:${t[n].type};base64,${W4(t[n].hex)}`;e.setAttribute("src",i,o[n])}}function X4(o){const t=[],e=new He(o.document);for(const{item:n}of e.createRangeIn(o))if(n.is("element")){for(const i of n.getClassNames())/\bmso/gi.exec(i)&&e.removeClass(i,n);for(const i of n.getStyleNames())/\bmso/gi.exec(i)&&e.removeStyle(i,n);n.is("element","w:sdt")&&t.push(n)}for(const n of t){const i=n.parent,r=i.getChildIndex(n);e.insertChild(r,n.getChildren(),i),e.remove(n)}}const tB=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,eB=/xmlns:o="urn:schemas-microsoft-com/i;class nB{constructor(t){this.document=t}isActive(t){return tB.test(t)||eB.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;I4(e,n),q4(e,t.dataTransfer.getData("text/rtf")),X4(e),t.content=e}}function oB(o,t){for(const e of o.getChildren())if(e.is("element","b")&&e.getStyle("font-weight")==="normal"){const n=o.getChildIndex(e);t.remove(e),t.insertChild(n,e.getChildren(),o)}}function iB(o,t){const e=new ni(t.document.stylesProcessor),n=new ri(e,{renderingMode:"data"}),i=n.blockElements,r=n.inlineObjectElements,s=[];for(const a of t.createRangeIn(o)){const c=a.item;if(c.is("element","br")){const l=lp(c,"forward",t,{blockElements:i,inlineObjectElements:r}),d=lp(c,"backward",t,{blockElements:i,inlineObjectElements:r}),u=dp(l,i);(dp(d,i)||u)&&s.push(c)}}for(const a of s)a.hasClass("Apple-interchange-newline")?t.remove(a):t.replace(a,t.createElement("p"))}function lp(o,t,e,{blockElements:n,inlineObjectElements:i}){let r=e.createPositionAt(o,t=="forward"?"after":"before");return r=r.getLastMatchingPosition(({item:s})=>s.is("element")&&!n.includes(s.name)&&!i.includes(s.name),{direction:t}),t=="forward"?r.nodeAfter:r.nodeBefore}function dp(o,t){return!!o&&o.is("element")&&t.includes(o.name)}const rB=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class sB{constructor(t){this.document=t}isActive(t){return rB.test(t)}execute(t){const e=new He(this.document),{body:n}=t._parsedData;oB(n,e),M4(n,e),iB(n,e),t.content=n}}function aB(o,t){for(const e of o.getChildren())e.is("element","table")&&e.hasAttribute("xmlns")&&t.removeAttribute("xmlns",e)}function cB(o,t){for(const e of o.getChildren())if(e.is("element","google-sheets-html-origin")){const n=o.getChildIndex(e);t.remove(e),t.insertChild(n,e.getChildren(),o)}}function lB(o,t){for(const e of o.getChildren())e.is("element","table")&&e.getStyle("width")==="0px"&&t.removeStyle("width",e)}function dB(o,t){for(const e of Array.from(o.getChildren()))e.is("element","style")&&t.remove(e)}const uB=/<google-sheets-html-origin/i;class hB{constructor(t){this.document=t}isActive(t){return uB.test(t)}execute(t){const e=new He(this.document),{body:n}=t._parsedData;cB(n,e),aB(n,e),lB(n,e),dB(n,e),t.content=n}}function gB(o){return up(up(o)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/(<span\s+style=['"]letter-spacing:[^'"]+?['"]>)[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}function fB(o){o.querySelectorAll("span[style*=spacerun]").forEach(t=>{const e=t,n=e.innerText.length||0;e.innerText=Array(n+1).join(" ").substr(0,n)})}function up(o){return o.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(t,e)=>e.length===1?" ":Array(e.length+1).join(" ").substr(0,e.length))}function mB(o,t){const e=new DOMParser;o=o.replace(/<!--\[if gte vml 1]>/g,""),o=o.replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,"");const n=gB(bB(o)),i=e.parseFromString(n,"text/html");fB(i);const r=i.body.innerHTML,s=pB(i,t),a=kB(i);return{body:s,bodyString:r,styles:a.styles,stylesString:a.stylesString}}function pB(o,t){const e=new ni(t),n=new ri(e,{renderingMode:"data"}),i=o.createDocumentFragment(),r=o.body.childNodes;for(;r.length>0;)i.appendChild(r[0]);return n.domToView(i,{skipComments:!0})}function kB(o){const t=[],e=[],n=Array.from(o.getElementsByTagName("style"));for(const i of n)i.sheet&&i.sheet.cssRules&&i.sheet.cssRules.length&&(t.push(i.sheet),e.push(i.innerHTML));return{styles:t,stylesString:e.join(" ")}}function bB(o){const t="</body>",e="</html>",n=o.indexOf(t);if(n<0)return o;const i=o.indexOf(e,n+t.length);return o.substring(0,n+t.length)+(i>=0?o.substring(i):"")}class wB extends P{static get pluginName(){return"PasteFromOffice"}static get requires(){return[ve]}init(){const t=this.editor,e=t.plugins.get("ClipboardPipeline"),n=t.editing.view.document,i=[];i.push(new nB(n)),i.push(new sB(n)),i.push(new hB(n)),e.on("inputTransformation",(r,s)=>{if(s._isTransformedWithPasteFromOffice||t.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const c=s.dataTransfer.getData("text/html"),l=i.find(d=>d.isActive(c));l&&(s._parsedData||(s._parsedData=mB(c,n.stylesProcessor)),l.execute(s),s._isTransformedWithPasteFromOffice=!0)},{priority:"high"})}}function AB(o){const t=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],e=t.map(r=>r.name).join("|"),n=o.replace(new RegExp(`</?(${e})( .*?)?>`,"g"),`
|
|
|
$&
|
|
|
`).replace(/<br[^>]*>/g,`$&
|
|
|
`).split(`
|
|
|
`);let i=0;return n.filter(r=>r.length).map(r=>CB(r,t)?nc(r,i++):_B(r,t)?nc(r,--i):nc(r,i)).join(`
|
|
|
`)}function CB(o,t){return t.some(e=>!(e.isVoid||!new RegExp(`<${e.name}( .*?)?>`).test(o)))}function _B(o,t){return t.some(e=>new RegExp(`</${e.name}>`).test(o))}function nc(o,t,e=" "){return`${e.repeat(Math.max(0,t))}${o}`}var hp=L(4420),oc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};oc.insert="head",oc.singleton=!0,F()(hp.Z,oc),hp.Z.locals;const vB='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',gp="SourceEditingMode";class yB extends P{static get pluginName(){return"SourceEditing"}static get requires(){return[fi]}constructor(t){super(t),this.set("isSourceEditingMode",!1),this._elementReplacer=new Lc,this._replacedRoots=new Map,this._dataFromRoots=new Map}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("sourceEditing",n=>{const i=new ht(n);return i.set({label:e("Source"),icon:vB,tooltip:!0,withText:!0,class:"ck-source-editing-button"}),i.bind("isOn").to(this,"isSourceEditingMode"),i.bind("isEnabled").to(this,"isEnabled",t,"isReadOnly",t.plugins.get(fi),"hasAny",(r,s,a)=>!(!r||s||a)),this.listenTo(i,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),i}),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(n,i,r)=>{r?(this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(n,i,r)=>this._handleReadOnlyMode(!r)),this.listenTo(t,"change:isReadOnly",(n,i,r)=>this._handleReadOnlyMode(r))),t.data.on("get",()=>{this.isSourceEditingMode&&this.updateEditorData()},{priority:"high"})}afterInit(){const t=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some(n=>t.plugins.has(n))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),t.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}updateEditorData(){const t=this.editor,e={};for(const[n,i]of this._replacedRoots){const r=this._dataFromRoots.get(n),s=i.dataset.value;r!==s&&(e[n]=s,this._dataFromRoots.set(n,s))}Object.keys(e).length&&t.data.set(e,{batchType:{isUndoable:!0}})}_showSourceEditing(){const t=this.editor,e=t.editing.view,n=t.model;n.change(i=>{i.setSelection(null),i.removeSelectionAttribute(n.document.selection.getAttributeKeys())});for(const[i,r]of e.domRoots){const s=xB(t.data.get({rootName:i})),a=Wn(r.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),c=Wn(r.ownerDocument,"div",{class:"ck-source-editing-area","data-value":s},[a]);a.value=s,a.setSelectionRange(0,0),a.addEventListener("input",()=>{c.dataset.value=a.value,t.ui.update()}),e.change(l=>{const d=e.document.getRoot(i);l.addClass("ck-hidden",d)}),t.ui.setEditableElement("sourceEditing:"+i,a),this._replacedRoots.set(i,c),this._elementReplacer.replace(r,c),this._dataFromRoots.set(i,s)}this._focusSourceEditing()}_hideSourceEditing(){const e=this.editor.editing.view;this.updateEditorData(),e.change(n=>{for(const[i]of this._replacedRoots)n.removeClass("ck-hidden",e.document.getRoot(i))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),e.focus()}_focusSourceEditing(){const t=this.editor,[e]=this._replacedRoots.values(),n=e.querySelector("textarea");t.editing.view.document.isFocused=!1,n.focus()}_disableCommands(){const t=this.editor;for(const e of t.commands.commands())e.forceDisabled(gp)}_enableCommands(){const t=this.editor;for(const e of t.commands.commands())e.clearForceDisabled(gp)}_handleReadOnlyMode(t){if(this.isSourceEditingMode)for(const[,e]of this._replacedRoots)e.querySelector("textarea").readOnly=t}_isAllowedToHandleSourceEditingMode(){const e=this.editor.ui.view.editable;return e&&!e.hasExternalElement}}function xB(o){return EB(o)?AB(o):o}function EB(o){return o.startsWith("<")}function yt(o,t,e,n,i=1){t!=null&&i!==void 0&&i!==null&&t>i?n.setAttribute(o,t,e):n.removeAttribute(o,e)}function hn(o,t,e={}){const n=o.createElement("tableCell",e);return o.insertElement("paragraph",n),o.insert(n,t),n}function ic(o,t){const e=t.parent.parent,n=parseInt(e.getAttribute("headingColumns")||"0"),{column:i}=o.getCellLocation(t);return!!n&&i<n}function DB(){return o=>{o.on("element:figure",(t,e,n)=>{if(!n.consumable.test(e.viewItem,{name:!0,classes:"table"}))return;const i=IB(e.viewItem);if(!i||!n.consumable.test(i,{name:!0}))return;n.consumable.consume(e.viewItem,{name:!0,classes:"table"});const r=n.convertItem(i,e.modelCursor),s=It(r.modelRange.getItems());if(!s){n.consumable.revert(e.viewItem,{name:!0,classes:"table"});return}n.convertChildren(e.viewItem,n.writer.createPositionAt(s,"end")),n.updateConversionResult(s,e)})}}function SB(){return o=>{o.on("element:table",(t,e,n)=>{const i=e.viewItem;if(!n.consumable.test(i,{name:!0}))return;const{rows:r,headingRows:s,headingColumns:a}=MB(i),c={};a&&(c.headingColumns=a),s&&(c.headingRows=s);const l=n.writer.createElement("table",c);if(n.safeInsert(l,e.modelCursor)){if(n.consumable.consume(i,{name:!0}),r.forEach(d=>n.convertItem(d,n.writer.createPositionAt(l,"end"))),n.convertChildren(i,n.writer.createPositionAt(l,"end")),l.isEmpty){const d=n.writer.createElement("tableRow");n.writer.insert(d,n.writer.createPositionAt(l,"end")),hn(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(l,e)}})}}function TB(){return o=>{o.on("element:tr",(t,e)=>{e.viewItem.isEmpty&&e.modelCursor.index==0&&t.stop()},{priority:"high"})}}function fp(o){return t=>{t.on(`element:${o}`,(e,n,{writer:i})=>{if(!n.modelRange)return;const r=n.modelRange.start.nodeAfter,s=i.createPositionAt(r,0);if(n.viewItem.isEmpty){i.insertElement("paragraph",s);return}const a=Array.from(r.getChildren());if(a.every(c=>c.is("element","$marker"))){const c=i.createElement("paragraph");i.insert(c,i.createPositionAt(r,0));for(const l of a)i.move(i.createRangeOn(l),i.createPositionAt(c,"end"))}},{priority:"low"})}}function IB(o){for(const t of o.getChildren())if(t.is("element","table"))return t}function MB(o){let t=0,e;const n=[],i=[];let r;for(const s of Array.from(o.getChildren())){if(s.name!=="tbody"&&s.name!=="thead"&&s.name!=="tfoot")continue;s.name==="thead"&&!r&&(r=s);const a=Array.from(s.getChildren()).filter(c=>c.is("element","tr"));for(const c of a)if(r&&s===r||s.name==="tbody"&&Array.from(c.getChildren()).length&&Array.from(c.getChildren()).every(l=>l.is("element","th")))t++,n.push(c);else{i.push(c);const l=BB(c);(!e||l<e)&&(e=l)}}return{headingRows:t,headingColumns:e||0,rows:[...n,...i]}}function BB(o){let t=0,e=0;const n=Array.from(o.getChildren()).filter(i=>i.name==="th"||i.name==="td");for(;e<n.length&&n[e].name==="th";){const i=n[e],r=parseInt(i.getAttribute("colspan")||"1");t=t+r,e++}return t}class ut{constructor(t,e={}){this._jumpedToStartRow=!1,this._table=t,this._startRow=e.row!==void 0?e.row:e.startRow||0,this._endRow=e.row!==void 0?e.row:e.endRow,this._startColumn=e.column!==void 0?e.column:e.startColumn||0,this._endColumn=e.column!==void 0?e.column:e.endColumn,this._includeAllSlots=!!e.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){this._canJumpToStartRow()&&this._jumpToNonSpannedRowClosestToStartRow();const t=this._table.getChild(this._rowIndex);if(!t||this._isOverEndRow())return{done:!0,value:void 0};if(!t.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let e=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{const i=t.getChild(this._cellIndex);if(!i)return this._advanceToNextRow();const r=parseInt(i.getAttribute("colspan")||"1"),s=parseInt(i.getAttribute("rowspan")||"1");(r>1||s>1)&&this._recordSpans(i,s,r),this._shouldSkipSlot()||(e=this._formatOutValue(i)),this._nextCellAtColumn=this._column+r}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return this._endRow!==void 0&&this._row>this._endRow}_isOverEndColumn(){return this._endColumn!==void 0&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new NB(this,t,e,n)}}_shouldSkipSlot(){const t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,i=this._endColumn!==void 0&&this._column>this._endColumn;return t||e||n||i}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const i={cell:t,row:this._row,column:this._column};for(let r=this._row;r<this._row+e;r++)for(let s=this._column;s<this._column+n;s++)(r!=this._row||s!=this._column)&&this._markSpannedCell(r,s,i)}_markSpannedCell(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map),this._spannedCells.get(t).set(e,n)}_canJumpToStartRow(){return!!this._startRow&&this._startRow>0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const t=this._getRowLength(0);for(let e=this._startRow;!this._jumpedToStartRow;e--)t===this._getRowLength(e)&&(this._row=e,this._rowIndex=e,this._jumpedToStartRow=!0)}_getRowLength(t){return[...this._table.getChild(t).getChildren()].reduce((n,i)=>n+parseInt(i.getAttribute("colspan")||"1"),0)}}class NB{constructor(t,e,n,i){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=i,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function mp(o,t){return(e,{writer:n})=>{const i=e.getAttribute("headingRows")||0,r=n.createContainerElement("table",null,[]),s=n.createContainerElement("figure",{class:"table"},r);i>0&&n.insert(n.createPositionAt(r,"end"),n.createContainerElement("thead",null,n.createSlot(a=>a.is("element","tableRow")&&a.index<i))),i<o.getRows(e)&&n.insert(n.createPositionAt(r,"end"),n.createContainerElement("tbody",null,n.createSlot(a=>a.is("element","tableRow")&&a.index>=i)));for(const{positionOffset:a,filter:c}of t.additionalSlots)n.insert(n.createPositionAt(r,a),n.createSlot(c));return n.insert(n.createPositionAt(r,"after"),n.createSlot(a=>a.is("element","tableRow")?!1:!t.additionalSlots.some(({filter:c})=>c(a)))),t.asWidget?PB(s,n):s}}function zB(){return(o,{writer:t})=>o.isEmpty?t.createEmptyElement("tr"):t.createContainerElement("tr")}function pp(o={}){return(t,{writer:e})=>{const n=t.parent,i=n.parent,r=i.getChildIndex(n),s=new ut(i,{row:r}),a=i.getAttribute("headingRows")||0,c=i.getAttribute("headingColumns")||0;let l=null;for(const d of s)if(d.cell==t){const f=d.row<a||d.column<c?"th":"td";l=o.asWidget?$g(e.createEditableElement(f),e):e.createContainerElement(f);break}return l}}function kp(o={}){return(t,{writer:e})=>{if(!t.parent.is("element","tableCell")||!bp(t))return null;if(o.asWidget)return e.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const n=e.createContainerElement("p");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}}function bp(o){return o.parent.childCount==1&&!LB(o)}function PB(o,t){return t.setCustomProperty("table",!0,o),la(o,t,{hasSelectionHandle:!0})}function LB(o){return!o.getAttributeKeys().next().done}class OB extends X{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=RB(e,n)}execute(t={}){const e=this.editor,n=e.model,i=e.plugins.get("TableUtils"),r=e.config.get("table.defaultHeadings.rows"),s=e.config.get("table.defaultHeadings.columns");t.headingRows===void 0&&r&&(t.headingRows=r),t.headingColumns===void 0&&s&&(t.headingColumns=s),n.change(a=>{const c=i.createTable(a,t);n.insertObject(c,null,null,{findOptimalPosition:"auto"}),a.setSelection(a.createPositionAt(c.getNodeByPath([0,0,0]),0))})}}function RB(o,t){const e=o.getFirstPosition().parent,n=e===e.root?e:e.parent;return t.checkChild(n,"table")}class wp extends X{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,n=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=n}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i=this.order==="above",r=n.getSelectionAffectedTableCells(e),s=n.getRowIndexes(r),a=i?s.first:s.last,c=r[0].findAncestor("table");n.insertRows(c,{at:i?a:a+1,copyStructureFromAbove:!i})}}class Ap extends X{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,n=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=n}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i=this.order==="left",r=n.getSelectionAffectedTableCells(e),s=n.getColumnIndexes(r),a=i?s.first:s.last,c=r[0].findAncestor("table");n.insertColumns(c,{columns:1,at:i?a:a+1})}}class Cp extends X{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length===1}execute(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];this.direction==="horizontally"?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}function _p(o,t,e){const{startRow:n,startColumn:i,endRow:r,endColumn:s}=t,a=e.createElement("table"),c=r-n+1;for(let d=0;d<c;d++)e.insertElement("tableRow",a,"end");const l=[...new ut(o,{startRow:n,endRow:r,startColumn:i,endColumn:s,includeAllSlots:!0})];for(const{row:d,column:u,cell:f,isAnchor:p,cellAnchorRow:w,cellAnchorColumn:S}of l){const B=d-n,z=a.getChild(B);if(!p)(w<n||S<i)&&hn(e,e.createPositionAt(z,"end"));else{const V=e.cloneElement(f);e.append(V,z),Dp(V,d,u,r,s,e)}}return jB(a,o,n,i,e),a}function vp(o,t,e=0){const n=[],i=new ut(o,{startRow:e,endRow:t-1});for(const r of i){const{row:s,cellHeight:a}=r,c=s+a-1;s<t&&t<=c&&n.push(r)}return n}function yp(o,t,e){const n=o.parent,i=n.parent,r=n.index,s=parseInt(o.getAttribute("rowspan")),a=t-r,c={},l=s-a;l>1&&(c.rowspan=l);const d=parseInt(o.getAttribute("colspan")||"1");d>1&&(c.colspan=d);const u=r,f=u+a,p=[...new ut(i,{startRow:u,endRow:f,includeAllSlots:!0})];let w=null,S;for(const B of p){const{row:z,column:V,cell:J}=B;J===o&&S===void 0&&(S=V),S!==void 0&&S===V&&z===f&&(w=hn(e,B.getPositionBefore(),c))}return yt("rowspan",a,o,e),w}function xp(o,t){const e=[],n=new ut(o);for(const i of n){const{column:r,cellWidth:s}=i,a=r+s-1;r<t&&t<=a&&e.push(i)}return e}function Ep(o,t,e,n){const i=parseInt(o.getAttribute("colspan")),r=e-t,s={},a=i-r;a>1&&(s.colspan=a);const c=parseInt(o.getAttribute("rowspan")||"1");c>1&&(s.rowspan=c);const l=hn(n,n.createPositionAfter(o),s);return yt("colspan",r,o,n),l}function Dp(o,t,e,n,i,r){const s=parseInt(o.getAttribute("colspan")||"1"),a=parseInt(o.getAttribute("rowspan")||"1");if(e+s-1>i){const d=i-e+1;yt("colspan",d,o,r,1)}if(t+a-1>n){const d=n-t+1;yt("rowspan",d,o,r,1)}}function jB(o,t,e,n,i){const r=parseInt(t.getAttribute("headingRows")||"0");if(r>0){const a=r-e;yt("headingRows",a,o,i,0)}const s=parseInt(t.getAttribute("headingColumns")||"0");if(s>0){const a=s-n;yt("headingColumns",a,o,i,0)}}function rc(o,t){const e=t.getColumns(o),n=new Array(e).fill(0);for(const{column:r}of new ut(o))n[r]++;const i=n.reduce((r,s,a)=>s?r:[...r,a],[]);if(i.length>0){const r=i[i.length-1];return t.removeColumns(o,{at:r}),!0}return!1}function sc(o,t){const e=[],n=t.getRows(o);for(let i=0;i<n;i++)o.getChild(i).isEmpty&&e.push(i);if(e.length>0){const i=e[e.length-1];return t.removeRows(o,{at:i}),!0}return!1}function ac(o,t){rc(o,t)||sc(o,t)}function Sp(o,t){const e=Array.from(new ut(o,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(e.every(({cellHeight:r})=>r===1))return t.lastRow;const i=e[0].cellHeight-1;return t.lastRow+i}function Tp(o,t){const e=Array.from(new ut(o,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(e.every(({cellWidth:r})=>r===1))return t.lastColumn;const i=e[0].cellWidth-1;return t.lastColumn+i}class ji extends X{constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal=this.direction=="right"||this.direction=="left"}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=t.document,i=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],r=this.value,s=this.direction;t.change(a=>{const c=s=="right"||s=="down",l=c?i:r,d=c?r:i,u=d.parent;HB(d,l,a);const f=this.isHorizontal?"colspan":"rowspan",p=parseInt(i.getAttribute(f)||"1"),w=parseInt(r.getAttribute(f)||"1");a.setAttribute(f,p+w,l),a.setSelection(a.createRangeIn(l));const S=this.editor.plugins.get("TableUtils"),B=u.findAncestor("table");ac(B,S)})}_getMergeableCell(){const e=this.editor.model.document,n=this.editor.plugins.get("TableUtils"),i=n.getTableCellsContainingSelection(e.selection)[0];if(!i)return;const r=this.isHorizontal?FB(i,this.direction,n):VB(i,this.direction,n);if(!r)return;const s=this.isHorizontal?"rowspan":"colspan",a=parseInt(i.getAttribute(s)||"1");if(parseInt(r.getAttribute(s)||"1")===a)return r}}function FB(o,t,e){const i=o.parent.parent,r=t=="right"?o.nextSibling:o.previousSibling,s=(i.getAttribute("headingColumns")||0)>0;if(!r)return;const a=t=="right"?o:r,c=t=="right"?r:o,{column:l}=e.getCellLocation(a),{column:d}=e.getCellLocation(c),u=parseInt(a.getAttribute("colspan")||"1"),f=ic(e,a),p=ic(e,c);return s&&f!=p?void 0:l+u===d?r:void 0}function VB(o,t,e){const n=o.parent,i=n.parent,r=i.getChildIndex(n);if(t=="down"&&r===e.getRows(i)-1||t=="up"&&r===0)return null;const s=parseInt(o.getAttribute("rowspan")||"1"),a=i.getAttribute("headingRows")||0,c=t=="down"&&r+s===a,l=t=="up"&&r===a;if(a&&(c||l))return null;const d=parseInt(o.getAttribute("rowspan")||"1"),u=t=="down"?r+d:r,f=[...new ut(i,{endRow:u})],w=f.find(B=>B.cell===o).column,S=f.find(({row:B,cellHeight:z,column:V})=>V!==w?!1:t=="down"?B===u:u===B+z);return S&&S.cell?S.cell:null}function HB(o,t,e){Ip(o)||(Ip(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(o),e.createPositionAt(t,"end"))),e.remove(o)}function Ip(o){const t=o.getChild(0);return o.childCount==1&&t.is("element","paragraph")&&t.isEmpty}class UB extends X{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const i=n.findAncestor("table"),s=t.getRows(i)-1,a=t.getRowIndexes(e),c=a.first===0&&a.last===s;this.isEnabled=!c}else this.isEnabled=!1}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),r=n[0],s=r.findAncestor("table"),a=e.getCellLocation(r).column;t.change(c=>{const l=i.last-i.first+1;e.removeRows(s,{at:i.first,rows:l});const d=qB(s,i.first,a,e.getRows(s));c.setSelection(c.createPositionAt(d,0))})}}function qB(o,t,e,n){const i=o.getChild(Math.min(t,n-1));let r=i.getChild(0),s=0;for(const a of i.getChildren()){if(s>e)return r;r=a,s+=parseInt(a.getAttribute("colspan")||"1")}return r}class WB extends X{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const i=n.findAncestor("table"),r=t.getColumns(i),{first:s,last:a}=t.getColumnIndexes(e);this.isEnabled=a-s<r-1}else this.isEnabled=!1}execute(){const t=this.editor.plugins.get("TableUtils"),[e,n]=$B(this.editor.model.document.selection,t),i=e.parent.parent,r=[...new ut(i)],s={first:r.find(c=>c.cell===e).column,last:r.find(c=>c.cell===n).column},a=GB(r,e,n,s);this.editor.model.change(c=>{const l=s.last-s.first+1;t.removeColumns(i,{at:s.first,columns:l}),c.setSelection(c.createPositionAt(a,0))})}}function GB(o,t,e,n){return parseInt(e.getAttribute("colspan")||"1")>1?e:t.previousSibling||e.nextSibling?e.nextSibling||t.previousSibling:n.first?o.reverse().find(({column:r})=>r<n.first).cell:o.reverse().find(({column:r})=>r>n.last).cell}function $B(o,t){const e=t.getSelectionAffectedTableCells(o),n=e[0],i=e.pop(),r=[n,i];return n.isBefore(i)?r:r.reverse()}class KB extends X{refresh(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every(r=>this._isInHeading(r,r.parent.parent))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),r=i[0].findAncestor("table"),{first:s,last:a}=e.getRowIndexes(i),c=this.value?s:a+1,l=r.getAttribute("headingRows")||0;n.change(d=>{if(c){const u=c>l?l:0,f=vp(r,c,u);for(const{cell:p}of f)yp(p,c,d)}yt("headingRows",c,r,d,0)})}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index<n}}class ZB extends X{refresh(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every(r=>ic(e,r))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),r=i[0].findAncestor("table"),{first:s,last:a}=e.getColumnIndexes(i),c=this.value?s:a+1;n.change(l=>{if(c){const d=xp(r,c);for(const{cell:u,column:f}of d)Ep(u,f,c,l)}yt("headingColumns",c,r,l,0)})}}function YB(o){if(o.is("element","tableColumnGroup"))return o;const t=o.getChildren();return Array.from(t).find(e=>e.is("element","tableColumnGroup"))}function QB(o){const t=YB(o);return t?Array.from(t.getChildren()):[]}class Ft extends P{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,i=n.getChildIndex(e),r=new ut(n,{row:i});for(const{cell:s,row:a,column:c}of r)if(s===t)return{row:a,column:c}}createTable(t,e){const n=t.createElement("table"),i=e.rows||2,r=e.columns||2;return cc(t,n,0,i,r),e.headingRows&&yt("headingRows",Math.min(e.headingRows,i),n,t,0),e.headingColumns&&yt("headingColumns",Math.min(e.headingColumns,r),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,i=e.at||0,r=e.rows||1,s=e.copyStructureFromAbove!==void 0,a=e.copyStructureFromAbove?i-1:i,c=this.getRows(t),l=this.getColumns(t);if(i>c)throw new b("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change(d=>{const u=t.getAttribute("headingRows")||0;if(u>i&&yt("headingRows",u+r,t,d,0),!s&&(i===0||i===c)){cc(d,t,i,r,l);return}const f=s?Math.max(i,a):i,p=new ut(t,{endRow:f}),w=new Array(l).fill(1);for(const{row:S,column:B,cellHeight:z,cellWidth:V,cell:J}of p){const st=S+z-1,pt=S<i&&i<=st,H=S<=a&&a<=st;pt?(d.setAttribute("rowspan",z+r,J),w[B]=-V):s&&H&&(w[B]=V)}for(let S=0;S<r;S++){const B=d.createElement("tableRow");d.insert(B,t,i);for(let z=0;z<w.length;z++){const V=w[z],J=d.createPositionAt(B,"end");V>0&&hn(d,J,V>1?{colspan:V}:void 0),z+=Math.abs(V)-1}}})}insertColumns(t,e={}){const n=this.editor.model,i=e.at||0,r=e.columns||1;n.change(s=>{const a=t.getAttribute("headingColumns");i<a&&s.setAttribute("headingColumns",a+r,t);const c=this.getColumns(t);if(i===0||c===i){for(const d of t.getChildren())d.is("element","tableRow")&&Hn(r,s,s.createPositionAt(d,i?"end":0));return}const l=new ut(t,{column:i,includeAllSlots:!0});for(const d of l){const{row:u,cell:f,cellAnchorColumn:p,cellAnchorRow:w,cellWidth:S,cellHeight:B}=d;if(p<i){s.setAttribute("colspan",S+r,f);const z=w+B-1;for(let V=u;V<=z;V++)l.skipRow(V)}else Hn(r,s,d.getPositionBefore())}})}removeRows(t,e){const n=this.editor.model,i=e.rows||1,r=this.getRows(t),s=e.at,a=s+i-1;if(a>r-1)throw new b("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change(c=>{const l={first:s,last:a},{cellsToMove:d,cellsToTrim:u}=t3(t,l);if(d.size){const f=a+1;e3(t,f,d,c)}for(let f=a;f>=s;f--)c.remove(t.getChild(f));for(const{rowspan:f,cell:p}of u)yt("rowspan",f,p,c);XB(t,l,c),rc(t,this)||sc(t,this)})}removeColumns(t,e){const n=this.editor.model,i=e.at,r=e.columns||1,s=e.at+r-1;n.change(a=>{JB(t,{first:i,last:s},a);const c=QB(t);for(let l=s;l>=i;l--){for(const{cell:d,column:u,cellWidth:f}of[...new ut(t)])u<=l&&f>1&&u+f>l?yt("colspan",f-1,d,a):u===l&&a.remove(d);if(c[l]){const d=l===0?c[1]:c[l-1],u=parseFloat(c[l].getAttribute("columnWidth")),f=parseFloat(d.getAttribute("columnWidth"));a.remove(c[l]),a.setAttribute("columnWidth",u+f+"%",d)}}sc(t,this)||rc(t,this)})}splitCellVertically(t,e=2){const n=this.editor.model,r=t.parent.parent,s=parseInt(t.getAttribute("rowspan")||"1"),a=parseInt(t.getAttribute("colspan")||"1");n.change(c=>{if(a>1){const{newCellsSpan:l,updatedSpan:d}=Mp(a,e);yt("colspan",d,t,c);const u={};l>1&&(u.colspan=l),s>1&&(u.rowspan=s);const f=a>e?e-1:a-1;Hn(f,c,c.createPositionAfter(t),u)}if(a<e){const l=e-a,d=[...new ut(r)],{column:u}=d.find(({cell:S})=>S===t),f=d.filter(({cell:S,cellWidth:B,column:z})=>{const V=S!==t&&z===u,J=z<u&&z+B>u;return V||J});for(const{cell:S,cellWidth:B}of f)c.setAttribute("colspan",B+l,S);const p={};s>1&&(p.rowspan=s),Hn(l,c,c.createPositionAfter(t),p);const w=r.getAttribute("headingColumns")||0;w>u&&yt("headingColumns",w+l,r,c)}})}splitCellHorizontally(t,e=2){const n=this.editor.model,i=t.parent,r=i.parent,s=r.getChildIndex(i),a=parseInt(t.getAttribute("rowspan")||"1"),c=parseInt(t.getAttribute("colspan")||"1");n.change(l=>{if(a>1){const d=[...new ut(r,{startRow:s,endRow:s+a-1,includeAllSlots:!0})],{newCellsSpan:u,updatedSpan:f}=Mp(a,e);yt("rowspan",f,t,l);const{column:p}=d.find(({cell:S})=>S===t),w={};u>1&&(w.rowspan=u),c>1&&(w.colspan=c);for(const S of d){const{column:B,row:z}=S,V=z>=s+f,J=B===p,st=(z+s+f)%u===0;V&&J&&st&&Hn(1,l,S.getPositionBefore(),w)}}if(a<e){const d=e-a,u=[...new ut(r,{startRow:0,endRow:s})];for(const{cell:w,cellHeight:S,row:B}of u)if(w!==t&&B+S>s){const z=S+d;l.setAttribute("rowspan",z,w)}const f={};c>1&&(f.colspan=c),cc(l,r,s+1,d,1,f);const p=r.getAttribute("headingRows")||0;p>s&&yt("headingRows",p+d,r,l)}})}getColumns(t){return[...t.getChild(0).getChildren()].reduce((n,i)=>{const r=parseInt(i.getAttribute("colspan")||"1");return n+r},0)}getRows(t){return Array.from(t.getChildren()).reduce((e,n)=>n.is("element","tableRow")?e+1:e,0)}createTableWalker(t,e={}){return new ut(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const i=n.getContainedElement();i&&i.is("element","tableCell")&&e.push(i)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const i=n.start.findAncestor("tableCell");i&&e.push(i)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map(n=>n.parent.index);return this._getFirstLastIndexesObject(e)}getColumnIndexes(t){const e=t[0].findAncestor("table"),i=[...new ut(e)].filter(r=>t.includes(r.cell)).map(r=>r.column);return this._getFirstLastIndexesObject(i)}isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;const e=new Set,n=new Set;let i=0;for(const s of t){const{row:a,column:c}=this.getCellLocation(s),l=parseInt(s.getAttribute("rowspan"))||1,d=parseInt(s.getAttribute("colspan"))||1;e.add(a),n.add(c),l>1&&e.add(a+l-1),d>1&&n.add(c+d-1),i+=l*d}return o3(e,n)==i}sortRanges(t){return Array.from(t).sort(n3)}_getFirstLastIndexesObject(t){const e=t.sort((r,s)=>r-s),n=e[0],i=e[e.length-1];return{first:n,last:i}}_areCellInTheSameTableSection(t){const e=t[0].findAncestor("table"),n=this.getRowIndexes(t),i=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,i))return!1;const r=this.getColumnIndexes(t),s=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(r,s)}_areIndexesInSameSection({first:t,last:e},n){const i=t<n,r=e<n;return i===r}}function cc(o,t,e,n,i,r={}){for(let s=0;s<n;s++){const a=o.createElement("tableRow");o.insert(a,t,e),Hn(i,o,o.createPositionAt(a,"end"),r)}}function Hn(o,t,e,n={}){for(let i=0;i<o;i++)hn(t,e,n)}function Mp(o,t){if(o<t)return{newCellsSpan:1,updatedSpan:1};const e=Math.floor(o/t),n=o-e*t+e;return{newCellsSpan:e,updatedSpan:n}}function JB(o,t,e){const n=o.getAttribute("headingColumns")||0;if(n&&t.first<n){const i=Math.min(n-1,t.last)-t.first+1;e.setAttribute("headingColumns",n-i,o)}}function XB(o,{first:t,last:e},n){const i=o.getAttribute("headingRows")||0;if(t<i){const r=e<i?i-(e-t+1):t;yt("headingRows",r,o,n,0)}}function t3(o,{first:t,last:e}){const n=new Map,i=[];for(const{row:r,column:s,cellHeight:a,cell:c}of new ut(o,{endRow:e})){const l=r+a-1;if(r>=t&&r<=e&&l>e){const f=e-r+1,p=a-f;n.set(s,{cell:c,rowspan:p})}if(r<t&&l>=t){let f;l>=e?f=e-t+1:f=l-t+1,i.push({cell:c,rowspan:a-f})}}return{cellsToMove:n,cellsToTrim:i}}function e3(o,t,e,n){const r=[...new ut(o,{includeAllSlots:!0,row:t})],s=o.getChild(t);let a;for(const{column:c,cell:l,isAnchor:d}of r)if(e.has(c)){const{cell:u,rowspan:f}=e.get(c),p=a?n.createPositionAfter(a):n.createPositionAt(s,0);n.move(n.createRangeOn(u),p),yt("rowspan",f,u,n),a=u}else d&&(a=l)}function n3(o,t){const e=o.start,n=t.start;return e.isBefore(n)?-1:1}function o3(o,t){const e=Array.from(o.values()),n=Array.from(t.values()),i=Math.max(...e),r=Math.min(...e),s=Math.max(...n),a=Math.min(...n);return(i-r+1)*(s-a+1)}class i3 extends X{refresh(){const t=this.editor.plugins.get(Ft),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e)}execute(){const t=this.editor.model,e=this.editor.plugins.get(Ft);t.change(n=>{const i=e.getSelectedTableCells(t.document.selection),r=i.shift(),{mergeWidth:s,mergeHeight:a}=s3(r,i,e);yt("colspan",s,r,n),yt("rowspan",a,r,n);for(const l of i)r3(l,r,n);const c=r.findAncestor("table");ac(c,e),n.setSelection(r,"in")})}}function r3(o,t,e){Bp(o)||(Bp(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(o),e.createPositionAt(t,"end"))),e.remove(o)}function Bp(o){const t=o.getChild(0);return o.childCount==1&&t.is("element","paragraph")&&t.isEmpty}function s3(o,t,e){let n=0,i=0;for(const l of t){const{row:d,column:u}=e.getCellLocation(l);n=Np(l,u,n,"colspan"),i=Np(l,d,i,"rowspan")}const{row:r,column:s}=e.getCellLocation(o),a=n-s,c=i-r;return{mergeWidth:a,mergeHeight:c}}function Np(o,t,e,n){const i=parseInt(o.getAttribute(n)||"1");return Math.max(e,t+i)}class a3 extends X{constructor(t){super(t),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),r=n[0].findAncestor("table"),s=[];for(let a=i.first;a<=i.last;a++)for(const c of r.getChild(a).getChildren())s.push(t.createRangeOn(c));t.change(a=>{a.setSelection(s)})}}class c3 extends X{constructor(t){super(t),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n[0],r=n.pop(),s=i.findAncestor("table"),a=t.getCellLocation(i),c=t.getCellLocation(r),l=Math.min(a.column,c.column),d=Math.max(a.column,c.column),u=[];for(const f of new ut(s,{startColumn:l,endColumn:d}))u.push(e.createRangeOn(f.cell));e.change(f=>{f.setSelection(u)})}}function l3(o){o.document.registerPostFixer(t=>d3(t,o))}function d3(o,t){const e=t.document.differ.getChanges();let n=!1;const i=new Set;for(const r of e){let s=null;r.type=="insert"&&r.name=="table"&&(s=r.position.nodeAfter),(r.type=="insert"||r.type=="remove")&&(r.name=="tableRow"||r.name=="tableCell")&&(s=r.position.findAncestor("table")),m3(r)&&(s=r.range.start.findAncestor("table")),s&&!i.has(s)&&(n=u3(s,o)||n,n=h3(s,o)||n,i.add(s))}return n}function u3(o,t){let e=!1;const n=g3(o);if(n.length){e=!0;for(const i of n)yt("rowspan",i.rowspan,i.cell,t,1)}return e}function h3(o,t){let e=!1;const n=f3(o),i=[];for(const[c,l]of n.entries())!l&&o.getChild(c).is("element","tableRow")&&i.push(c);if(i.length){e=!0;for(const c of i.reverse())t.remove(o.getChild(c)),n.splice(c,1)}const r=n.filter((c,l)=>o.getChild(l).is("element","tableRow")),s=r[0];if(!r.every(c=>c===s)){const c=r.reduce((l,d)=>d>l?d:l,0);for(const[l,d]of r.entries()){const u=c-d;if(u){for(let f=0;f<u;f++)hn(t,t.createPositionAt(o.getChild(l),"end"));e=!0}}}return e}function g3(o){const t=parseInt(o.getAttribute("headingRows")||"0"),e=Array.from(o.getChildren()).reduce((i,r)=>r.is("element","tableRow")?i+1:i,0),n=[];for(const{row:i,cell:r,cellHeight:s}of new ut(o)){if(s<2)continue;const c=i<t?t:e;if(i+s>c){const l=c-i;n.push({cell:r,rowspan:l})}}return n}function f3(o){const t=new Array(o.childCount).fill(0);for(const{rowIndex:e}of new ut(o,{includeAllSlots:!0}))t[e]++;return t}function m3(o){if(o.type!=="attribute")return!1;const t=o.attributeKey;return t==="headingRows"||t==="colspan"||t==="rowspan"}function p3(o){o.document.registerPostFixer(t=>k3(t,o))}function k3(o,t){const e=t.document.differ.getChanges();let n=!1;for(const i of e)i.type=="insert"&&i.name=="table"&&(n=b3(i.position.nodeAfter,o)||n),i.type=="insert"&&i.name=="tableRow"&&(n=zp(i.position.nodeAfter,o)||n),i.type=="insert"&&i.name=="tableCell"&&(n=lc(i.position.nodeAfter,o)||n),(i.type=="remove"||i.type=="insert")&&w3(i)&&(n=lc(i.position.parent,o)||n);return n}function b3(o,t){let e=!1;for(const n of o.getChildren())n.is("element","tableRow")&&(e=zp(n,t)||e);return e}function zp(o,t){let e=!1;for(const n of o.getChildren())e=lc(n,t)||e;return e}function lc(o,t){if(o.childCount==0)return t.insertElement("paragraph",o),!0;const e=Array.from(o.getChildren()).filter(n=>n.is("$text"));for(const n of e)t.wrap(t.createRangeOn(n),"paragraph");return!!e.length}function w3(o){return o.position.parent.is("element","tableCell")?o.type=="insert"&&o.name=="$text"||o.type=="remove":!1}function A3(o,t){const e=o.document.differ;for(const n of e.getChanges()){let i,r=!1;if(n.type=="attribute"){const l=n.range.start.nodeAfter;if(!l||!l.is("element","table")||n.attributeKey!="headingRows"&&n.attributeKey!="headingColumns")continue;i=l,r=n.attributeKey=="headingRows"}else(n.name=="tableRow"||n.name=="tableCell")&&(i=n.position.findAncestor("table"),r=n.name=="tableRow");if(!i)continue;const s=i.getAttribute("headingRows")||0,a=i.getAttribute("headingColumns")||0,c=new ut(i);for(const l of c){const u=l.row<s||l.column<a?"th":"td",f=t.mapper.toViewElement(l.cell);f&&f.is("element")&&f.name!=u&&t.reconvertItem(r?l.cell.parent:l.cell)}}}function C3(o,t){const e=o.document.differ,n=new Set;for(const i of e.getChanges()){const r=i.type=="attribute"?i.range.start.parent:i.position.parent;r.is("element","tableCell")&&n.add(r)}for(const i of n.values()){const r=Array.from(i.getChildren()).filter(s=>_3(s,t.mapper));for(const s of r)t.reconvertItem(s)}}function _3(o,t){if(!o.is("element","paragraph"))return!1;const e=t.toViewElement(o);return e?bp(o)!==e.is("element","span"):!1}var Pp=L(8361),dc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};dc.insert="head",dc.singleton=!0,F()(Pp.Z,dc),Pp.Z.locals;class v3 extends P{static get pluginName(){return"TableEditing"}static get requires(){return[Ft]}constructor(t){super(t),this._additionalSlots=[]}init(){const t=this.editor,e=t.model,n=e.schema,i=t.conversion,r=t.plugins.get(Ft);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),i.for("upcast").add(DB()),i.for("upcast").add(SB()),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:mp(r,{asWidget:!0,additionalSlots:this._additionalSlots})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:mp(r,{additionalSlots:this._additionalSlots})}),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add(TB()),i.for("downcast").elementToElement({model:"tableRow",view:zB()}),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(fp("td")),i.for("upcast").add(fp("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:pp({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:pp()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:kp({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:kp(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:Lp("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Lp("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new OB(t)),t.commands.add("insertTableRowAbove",new wp(t,{order:"above"})),t.commands.add("insertTableRowBelow",new wp(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new Ap(t,{order:"left"})),t.commands.add("insertTableColumnRight",new Ap(t,{order:"right"})),t.commands.add("removeTableRow",new UB(t)),t.commands.add("removeTableColumn",new WB(t)),t.commands.add("splitTableCellVertically",new Cp(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new Cp(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new i3(t)),t.commands.add("mergeTableCellRight",new ji(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new ji(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new ji(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new ji(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new ZB(t)),t.commands.add("setTableRowHeader",new KB(t)),t.commands.add("selectTableRow",new a3(t)),t.commands.add("selectTableColumn",new c3(t)),l3(e),p3(e),this.listenTo(e.document,"change:data",()=>{A3(e,t.editing),C3(e,t.editing)})}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function Lp(o){return t=>{const e=parseInt(t.getAttribute(o));return Number.isNaN(e)||e<=0?null:e}}var Op=L(468),uc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};uc.insert="head",uc.singleton=!0,F()(Op.Z,uc),Op.Z.locals;class y3 extends Y{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new ie,this.focusTracker=new Ht,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(n,i)=>`${i} × ${n}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to(n=>{n.preventDefault()}),click:e.to(()=>{this.fire("execute")})}}),this.on("boxover",(n,i)=>{const{row:r,column:s}=i.target.dataset;this.items.get((parseInt(r,10)-1)*10+(parseInt(s,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(n,i,r)=>{if(!r)return;const{row:s,column:a}=r.dataset;this.set({rows:parseInt(s),columns:parseInt(a)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),y({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map((n,i)=>{const r=Math.floor(i/10),s=i%10,a=r<t&&s<e;n.set("isOn",a)})}_createGridButton(t,e,n,i){const r=new ht(t);return r.set({label:i,class:"ck-insert-table-dropdown-grid-box"}),r.extendTemplate({attributes:{"data-row":e,"data-column":n}}),r}_createGridCollection(){const t=[];for(let e=0;e<100;e++){const n=Math.floor(e/10),i=e%10,r=`${n+1} × ${i+1}`;t.push(this._createGridButton(this.locale,n+1,i+1,r))}return this.createCollection(t)}}const x3='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',E3='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',D3='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',S3='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>';class T3 extends P{static get pluginName(){return"TableUI"}init(){const t=this.editor,e=this.editor.t,i=t.locale.contentLanguageDirection==="ltr";t.ui.componentFactory.add("insertTable",r=>{const s=t.commands.get("insertTable"),a=_e(r);a.bind("isEnabled").to(s),a.buttonView.set({icon:x3,label:e("Insert table"),tooltip:!0});let c;return a.on("change:isOpen",()=>{c||(c=new y3(r),a.panelView.children.add(c),c.delegate("execute").to(a),a.on("execute",()=>{t.execute("insertTable",{rows:c.rows,columns:c.columns}),t.editing.view.focus()}))}),a}),t.ui.componentFactory.add("tableColumn",r=>{const s=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:i?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:i?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),E3,s,r)}),t.ui.componentFactory.add("tableRow",r=>{const s=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),D3,s,r)}),t.ui.componentFactory.add("mergeTableCells",r=>{const s=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:i?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:i?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),S3,s,r)})}_prepareDropdown(t,e,n,i){const r=this.editor,s=_e(i),a=this._fillDropdownWithListOptions(s,n);return s.buttonView.set({label:t,icon:e,tooltip:!0}),s.bind("isEnabled").toMany(a,"isEnabled",(...c)=>c.some(l=>l)),this.listenTo(s,"execute",c=>{r.execute(c.source.commandName),c.source instanceof Ko||r.editing.view.focus()}),s}_prepareMergeSplitButtonDropdown(t,e,n,i){const r=this.editor,s=_e(i,pi),a="mergeTableCells",c=r.commands.get(a),l=this._fillDropdownWithListOptions(s,n);return s.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),s.bind("isEnabled").toMany([c,...l],"isEnabled",(...d)=>d.some(u=>u)),this.listenTo(s.buttonView,"execute",()=>{r.execute(a),r.editing.view.focus()}),this.listenTo(s,"execute",d=>{r.execute(d.source.commandName),r.editing.view.focus()}),s}_fillDropdownWithListOptions(t,e){const n=this.editor,i=[],r=new oe;for(const s of e)I3(s,n,i,r);return Es(t,r),i}}function I3(o,t,e,n){if(o.type==="button"||o.type==="switchbutton"){const i=o.model=new Us(o.model),{commandName:r,bindIsOn:s}=o.model,a=t.commands.get(r);e.push(a),i.set({commandName:r}),i.bind("isEnabled").to(a),s&&i.bind("isOn").to(a,"value"),i.set({withText:!0})}n.add(o)}var Rp=L(1546),hc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};hc.insert="head",hc.singleton=!0,F()(Rp.Z,hc),Rp.Z.locals;class gn extends P{static get pluginName(){return"TableSelection"}static get requires(){return[Ft,Ft]}init(){const t=this.editor,e=t.model,n=t.editing.view;this.listenTo(e,"deleteContent",(i,r)=>this._handleDeleteContent(i,r),{priority:"high"}),this.listenTo(n.document,"insertText",(i,r)=>this._handleInsertTextEvent(i,r),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const t=this.editor.plugins.get(Ft),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return n.length==0?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(Ft),e=this.getSelectedTableCells();return e?this.editor.model.change(n=>{const i=n.createDocumentFragment(),{first:r,last:s}=t.getColumnIndexes(e),{first:a,last:c}=t.getRowIndexes(e),l=e[0].findAncestor("table");let d=c,u=s;if(t.isSelectionRectangular(e)){const w={firstColumn:r,lastColumn:s,firstRow:a,lastRow:c};d=Sp(l,w),u=Tp(l,w)}const p=_p(l,{startRow:a,startColumn:r,endRow:d,endColumn:u},n);return n.insert(p,i,0),i}):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change(i=>{i.setSelection(n.cells.map(r=>i.createRangeOn(r)),{backward:n.backward})})}getFocusCell(){const n=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return n&&n.is("element","tableCell")?n:null}getAnchorCell(){const t=this.editor.model.document.selection,n=It(t.getRanges()).getContainedElement();return n&&n.is("element","tableCell")?n:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add(i=>i.on("selection",(r,s,a)=>{const c=a.writer;n(c);const l=this.getSelectedTableCells();if(!l)return;for(const u of l){const f=a.mapper.toViewElement(u);c.addClass("ck-editor__editable_selected",f),e.add(f)}const d=a.mapper.toViewElement(l[l.length-1]);c.setSelection(d,0)},{priority:"lowest"}));function n(i){for(const r of e)i.removeClass("ck-editor__editable_selected",r);e.clear()}}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change(n=>{const i=n.createPositionAt(e[0],0),r=t.model.schema.getNearestSelectionRange(i);n.setSelection(r)})}})}_handleDeleteContent(t,e){const n=this.editor.plugins.get(Ft),i=e[0],r=e[1],s=this.editor.model,a=!r||r.direction=="backward",c=n.getSelectedTableCells(i);c.length&&(t.stop(),s.change(l=>{const d=c[a?c.length-1:0];s.change(f=>{for(const p of c)s.deleteContent(f.createSelection(p,"in"))});const u=s.schema.getNearestSelectionRange(l.createPositionAt(d,0));i.is("documentSelection")?l.setSelection(u):i.setTo(u)}))}_handleInsertTextEvent(t,e){const n=this.editor,i=this.getSelectedTableCells();if(!i)return;const r=n.editing.view,s=n.editing.mapper,a=i.map(c=>r.createRangeOn(s.toViewElement(c)));e.selection=r.createSelection(a)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),i=n.getCellLocation(t),r=n.getCellLocation(e),s=Math.min(i.row,r.row),a=Math.max(i.row,r.row),c=Math.min(i.column,r.column),l=Math.max(i.column,r.column),d=new Array(a-s+1).fill(null).map(()=>[]),u={startRow:s,endRow:a,startColumn:c,endColumn:l};for(const{row:w,cell:S}of new ut(t.findAncestor("table"),u))d[w-s].push(S);const f=r.row<i.row,p=r.column<i.column;return f&&d.reverse(),p&&d.forEach(w=>w.reverse()),{cells:d.flat(),backward:f||p}}}class M3 extends P{static get pluginName(){return"TableClipboard"}static get requires(){return[gn,Ft]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",(n,i)=>this._onCopyCut(n,i)),this.listenTo(e,"cut",(n,i)=>this._onCopyCut(n,i)),this.listenTo(t.model,"insertContent",(n,[i,r])=>this._onInsertContent(n,i,r),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.plugins.get(gn);if(!n.getSelectedTableCells()||t.name=="cut"&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;e.preventDefault(),t.stop();const i=this.editor.data,r=this.editor.editing.view.document,s=i.toView(n.getSelectionAsFragment());r.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:s,method:t.name})}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const i=this.editor.model,r=this.editor.plugins.get(Ft);let s=this.getTableIfOnlyTableInContent(e,i);if(!s)return;const a=r.getSelectionAffectedTableCells(i.document.selection);if(!a.length){ac(s,r);return}t.stop(),i.change(c=>{const l={width:r.getColumns(s),height:r.getRows(s)},d=B3(a,l,c,r),u=d.lastRow-d.firstRow+1,f=d.lastColumn-d.firstColumn+1,p={startRow:0,startColumn:0,endRow:Math.min(u,l.height)-1,endColumn:Math.min(f,l.width)-1};s=_p(s,p,c);const w=a[0].findAncestor("table"),S=this._replaceSelectedCellsWithPasted(s,l,w,d,c);if(this.editor.plugins.get("TableSelection").isEnabled){const B=r.sortRanges(S.map(z=>c.createRangeOn(z)));c.setSelection(B)}else c.setSelection(S[0],0)})}_replaceSelectedCellsWithPasted(t,e,n,i,r){const{width:s,height:a}=e,c=z3(t,s,a),l=[...new ut(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})],d=[];let u;for(const B of l){const{row:z,column:V}=B;V===i.firstColumn&&(u=B.getPositionBefore());const J=z-i.firstRow,st=V-i.firstColumn,pt=c[J%a][st%s],H=pt?r.cloneElement(pt):null,Z=this._replaceTableSlotCell(B,H,u,r);Z&&(Dp(Z,z,V,i.lastRow,i.lastColumn,r),d.push(Z),u=r.createPositionAfter(Z))}const f=parseInt(n.getAttribute("headingRows")||"0"),p=parseInt(n.getAttribute("headingColumns")||"0"),w=i.firstRow<f&&f<=i.lastRow,S=i.firstColumn<p&&p<=i.lastColumn;if(w){const B={first:i.firstColumn,last:i.lastColumn},z=gc(n,f,B,r,i.firstRow);d.push(...z)}if(S){const B={first:i.firstRow,last:i.lastRow},z=fc(n,p,B,r);d.push(...z)}return d}_replaceTableSlotCell(t,e,n,i){const{cell:r,isAnchor:s}=t;return s&&i.remove(r),e?(i.insert(e,n),e):null}getTableIfOnlyTableInContent(t,e){if(!t.is("documentFragment")&&!t.is("element"))return null;if(t.is("element","table"))return t;if(t.childCount==1&&t.getChild(0).is("element","table"))return t.getChild(0);const n=e.createRangeIn(t);for(const i of n.getItems())if(i.is("element","table")){const r=e.createRange(n.start,e.createPositionBefore(i));if(e.hasContent(r,{ignoreWhitespaces:!0}))return null;const s=e.createRange(e.createPositionAfter(i),n.end);return e.hasContent(s,{ignoreWhitespaces:!0})?null:i}return null}}function B3(o,t,e,n){const i=o[0].findAncestor("table"),r=n.getColumnIndexes(o),s=n.getRowIndexes(o),a={firstColumn:r.first,lastColumn:r.last,firstRow:s.first,lastRow:s.last},c=o.length===1;return c&&(a.lastRow+=t.height-1,a.lastColumn+=t.width-1,N3(i,a.lastRow+1,a.lastColumn+1,n)),c||!n.isSelectionRectangular(o)?P3(i,a,e):(a.lastRow=Sp(i,a),a.lastColumn=Tp(i,a)),a}function N3(o,t,e,n){const i=n.getColumns(o),r=n.getRows(o);e>i&&n.insertColumns(o,{at:i,columns:e-i}),t>r&&n.insertRows(o,{at:r,rows:t-r})}function z3(o,t,e){const n=new Array(e).fill(null).map(()=>new Array(t).fill(null));for(const{column:i,row:r,cell:s}of new ut(o))n[r][i]=s;return n}function P3(o,t,e){const{firstRow:n,lastRow:i,firstColumn:r,lastColumn:s}=t,a={first:n,last:i},c={first:r,last:s};fc(o,r,a,e),fc(o,s+1,a,e),gc(o,n,c,e),gc(o,i+1,c,e,n)}function gc(o,t,e,n,i=0){return t<1?void 0:vp(o,t,i).filter(({column:a,cellWidth:c})=>jp(a,c,e)).map(({cell:a})=>yp(a,t,n))}function fc(o,t,e,n){return t<1?void 0:xp(o,t).filter(({row:s,cellHeight:a})=>jp(s,a,e)).map(({cell:s,column:a})=>Ep(s,a,t,n))}function jp(o,t,e){const n=o+t-1,{first:i,last:r}=e,s=o>=i&&o<=r,a=o<i&&n>=i;return s||a}class L3 extends P{static get pluginName(){return"TableKeyboard"}static get requires(){return[gn,Ft]}init(){const e=this.editor.editing.view.document;this.listenTo(e,"arrowKey",(...n)=>this._onArrowKey(...n),{context:"table"}),this.listenTo(e,"tab",(...n)=>this._handleTabOnSelectedTable(...n),{context:"figure"}),this.listenTo(e,"tab",(...n)=>this._handleTab(...n),{context:["th","td"]})}_handleTabOnSelectedTable(t,e){const n=this.editor,r=n.model.document.selection.getSelectedElement();!r||!r.is("element","table")||(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change(s=>{s.setSelection(s.createRangeIn(r.getChild(0).getChild(0)))}))}_handleTab(t,e){const n=this.editor,i=this.editor.plugins.get(Ft),r=this.editor.plugins.get("TableSelection"),s=n.model.document.selection,a=!e.shiftKey;let c=i.getTableCellsContainingSelection(s)[0];if(c||(c=r.getFocusCell()),!c)return;e.preventDefault(),e.stopPropagation(),t.stop();const l=c.parent,d=l.parent,u=d.getChildIndex(l),f=l.getChildIndex(c),p=f===0;if(!a&&p&&u===0){n.model.change(z=>{z.setSelection(z.createRangeOn(d))});return}const w=f===l.childCount-1,S=u===i.getRows(d)-1;if(a&&S&&w&&(n.execute("insertTableRowBelow"),u===i.getRows(d)-1)){n.model.change(z=>{z.setSelection(z.createRangeOn(d))});return}let B;if(a&&w)B=d.getChild(u+1).getChild(0);else if(!a&&p){const z=d.getChild(u-1);B=z.getChild(z.childCount-1)}else B=l.getChild(f+(a?1:-1));n.model.change(z=>{z.setSelection(z.createRangeIn(B))})}_onArrowKey(t,e){const n=this.editor,i=e.keyCode,r=br(i,n.locale.contentLanguageDirection);this._handleArrowKeys(r,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(Ft),i=this.editor.plugins.get("TableSelection"),r=this.editor.model,s=r.document.selection,a=["right","down"].includes(t),c=n.getSelectedTableCells(s);if(c.length){let d;return e?d=i.getFocusCell():d=a?c[c.length-1]:c[0],this._navigateFromCellInDirection(d,t,e),!0}const l=s.focus.findAncestor("tableCell");if(!l)return!1;if(!s.isCollapsed)if(e){if(s.isBackward==a&&!s.containsEntireContent(l))return!1}else{const d=s.getSelectedElement();if(!d||!r.schema.isObject(d))return!1}return this._isSelectionAtCellEdge(s,l,a)?(this._navigateFromCellInDirection(l,t,e),!0):!1}_isSelectionAtCellEdge(t,e,n){const i=this.editor.model,r=this.editor.model.schema,s=n?t.getLastPosition():t.getFirstPosition();if(!r.getLimitElement(s).is("element","tableCell"))return i.createPositionAt(e,n?"end":0).isTouching(s);const a=i.createSelection(s);return i.modifySelection(a,{direction:n?"forward":"backward"}),s.isEqual(a.focus)}_navigateFromCellInDirection(t,e,n=!1){const i=this.editor.model,r=t.findAncestor("table"),s=[...new ut(r,{includeAllSlots:!0})],{row:a,column:c}=s[s.length-1],l=s.find(({cell:V})=>V==t);let{row:d,column:u}=l;switch(e){case"left":u--;break;case"up":d--;break;case"right":u+=l.cellWidth;break;case"down":d+=l.cellHeight;break}const f=d<0||d>a,p=u<0&&d<=0,w=u>c&&d>=a;if(f||p||w){i.change(V=>{V.setSelection(V.createRangeOn(r))});return}u<0?(u=n?0:c,d--):u>c&&(u=n?c:0,d++);const S=s.find(V=>V.row==d&&V.column==u).cell,B=["right","down"].includes(e),z=this.editor.plugins.get("TableSelection");if(n&&z.isEnabled){const V=z.getAnchorCell()||t;z.setCellSelection(V,S)}else{const V=i.createPositionAt(S,B?0:"end");i.change(J=>{J.setSelection(V)})}}}class O3 extends je{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class R3 extends P{static get pluginName(){return"TableMouse"}static get requires(){return[gn,Ft]}init(){this.editor.editing.view.addObserver(O3),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(Ft);let n=!1;const i=t.plugins.get(gn);this.listenTo(t.editing.view.document,"mousedown",(r,s)=>{const a=t.model.document.selection;if(!this.isEnabled||!i.isEnabled||!s.domEvent.shiftKey)return;const c=i.getAnchorCell()||e.getTableCellsContainingSelection(a)[0];if(!c)return;const l=this._getModelTableCellFromDomEvent(s);l&&Fp(c,l)&&(n=!0,i.setCellSelection(c,l),s.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{n=!1}),this.listenTo(t.editing.view.document,"selectionChange",r=>{n&&r.stop()},{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,i=!1,r=!1;const s=t.plugins.get(gn);this.listenTo(t.editing.view.document,"mousedown",(a,c)=>{!this.isEnabled||!s.isEnabled||c.domEvent.shiftKey||c.domEvent.ctrlKey||c.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(c))}),this.listenTo(t.editing.view.document,"mousemove",(a,c)=>{if(!c.domEvent.buttons||!e)return;const l=this._getModelTableCellFromDomEvent(c);l&&Fp(e,l)&&(n=l,!i&&n!=e&&(i=!0)),i&&(r=!0,s.setCellSelection(e,n),c.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{i=!1,r=!1,e=null,n=null}),this.listenTo(t.editing.view.document,"selectionChange",a=>{r&&a.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(t){const e=t.target,n=this.editor.editing.view.createPositionAt(e,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function Fp(o,t){return o.parent.parent==t.parent.parent}var Vp=L(2510),mc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};mc.insert="head",mc.singleton=!0,F()(Vp.Z,mc),Vp.Z.locals;class j3 extends P{static get requires(){return[v3,T3,gn,R3,L3,M3,So]}static get pluginName(){return"Table"}}function F3(o){const t=o.getSelectedElement();return t&&Hp(t)?t:null}function V3(o){const t=o.getFirstPosition();if(!t)return null;let e=t.parent;for(;e;){if(e.is("element")&&Hp(e))return e;e=e.parent}return null}function Hp(o){return!!o.getCustomProperty("table")&&Mt(o)}class H3 extends P{static get requires(){return[Mi]}static get pluginName(){return"TableToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(Mi),i=t.config.get("table.contentToolbar"),r=t.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:V3}),r&&n.register("table",{ariaLabel:e("Table toolbar"),items:r,getRelatedElement:F3})}}var Up=L(9953),pc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};pc.insert="head",pc.singleton=!0,F()(Up.Z,pc),Up.Z.locals;var qp=L(6908),kc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};kc.insert="head",kc.singleton=!0,F()(qp.Z,kc),qp.Z.locals;var Wp=L(7502),bc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};bc.insert="head",bc.singleton=!0,F()(Wp.Z,bc),Wp.Z.locals;var Gp=L(9429),wc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};wc.insert="head",wc.singleton=!0,F()(Gp.Z,wc),Gp.Z.locals;var $p=L(3964),Ac={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ac.insert="head",Ac.singleton=!0,F()($p.Z,Ac),$p.Z.locals;const fn=Rt.defaultPositions;fn.northArrowSouth,fn.northArrowSouthWest,fn.northArrowSouthEast,fn.southArrowNorth,fn.southArrowNorthWest,fn.southArrowNorthEast,fn.viewportStickyNorth;var Kp=L(6596),Cc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Cc.insert="head",Cc.singleton=!0,F()(Kp.Z,Cc),Kp.Z.locals;var Zp=L(1111),_c={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};_c.insert="head",_c.singleton=!0,F()(Zp.Z,_c),Zp.Z.locals;var Yp=L(7176),vc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};vc.insert="head",vc.singleton=!0,F()(Yp.Z,vc),Yp.Z.locals;class yc extends vi{}yc.builtinPlugins=[B5,GT,Z5,P5,oS,hT,wT,RT,HT,pI,SI,TI,uI,NI,j5,VM,m4,T4,To,wB,yB,j3,H3,y5,pa],yc.defaultConfig={toolbar:{items:["sourceEditing","|","heading","|","bold","italic","link","|","outdent","indent","|","imageUpload","blockQuote","insertTable","mediaEmbed","undo","redo"]},language:"zh",image:{toolbar:["imageTextAlternative","toggleImageCaption","imageStyle:inline","imageStyle:block","imageStyle:side"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};const U3=yc})(),Io=Io.default,Io})())})(Vi,Vi.exports);var W3=Vi.exports;const RN=q3(W3);export{RN as C};
|