From ffc56d52d51d8a3b12c13bc67a3d67601296dd7c Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Wed, 13 Dec 2023 09:52:17 +0000 Subject: [PATCH] Issue #3406732 by longwave, lauriii, Wim Leers: Update CKEditor 5 to 40.2.0 --- .../ckeditor5/ckeditor5-dll/ckeditor5-dll.js | 4 +- .../ckeditor5-dll/translations/af.js | 2 +- .../ckeditor5-dll/translations/ar.js | 2 +- .../ckeditor5-dll/translations/ast.js | 2 +- .../ckeditor5-dll/translations/az.js | 2 +- .../ckeditor5-dll/translations/bg.js | 2 +- .../ckeditor5-dll/translations/bn.js | 2 +- .../ckeditor5-dll/translations/bs.js | 2 +- .../ckeditor5-dll/translations/ca.js | 2 +- .../ckeditor5-dll/translations/cs.js | 2 +- .../ckeditor5-dll/translations/da.js | 2 +- .../ckeditor5-dll/translations/de-ch.js | 2 +- .../ckeditor5-dll/translations/de.js | 2 +- .../ckeditor5-dll/translations/el.js | 2 +- .../ckeditor5-dll/translations/en-au.js | 2 +- .../ckeditor5-dll/translations/en-gb.js | 2 +- .../ckeditor5-dll/translations/eo.js | 2 +- .../ckeditor5-dll/translations/es-co.js | 2 +- .../ckeditor5-dll/translations/es.js | 2 +- .../ckeditor5-dll/translations/et.js | 2 +- .../ckeditor5-dll/translations/eu.js | 2 +- .../ckeditor5-dll/translations/fa.js | 2 +- .../ckeditor5-dll/translations/fi.js | 2 +- .../ckeditor5-dll/translations/fr.js | 2 +- .../ckeditor5-dll/translations/gl.js | 2 +- .../ckeditor5-dll/translations/gu.js | 2 +- .../ckeditor5-dll/translations/he.js | 2 +- .../ckeditor5-dll/translations/hi.js | 2 +- .../ckeditor5-dll/translations/hr.js | 2 +- .../ckeditor5-dll/translations/hu.js | 2 +- .../ckeditor5-dll/translations/hy.js | 2 +- .../ckeditor5-dll/translations/id.js | 2 +- .../ckeditor5-dll/translations/it.js | 2 +- .../ckeditor5-dll/translations/ja.js | 2 +- .../ckeditor5-dll/translations/jv.js | 2 +- .../ckeditor5-dll/translations/km.js | 2 +- .../ckeditor5-dll/translations/kn.js | 2 +- .../ckeditor5-dll/translations/ko.js | 2 +- .../ckeditor5-dll/translations/ku.js | 2 +- .../ckeditor5-dll/translations/lt.js | 2 +- .../ckeditor5-dll/translations/lv.js | 2 +- .../ckeditor5-dll/translations/ms.js | 2 +- .../ckeditor5-dll/translations/nb.js | 2 +- .../ckeditor5-dll/translations/ne.js | 2 +- .../ckeditor5-dll/translations/nl.js | 2 +- .../ckeditor5-dll/translations/no.js | 2 +- .../ckeditor5-dll/translations/oc.js | 2 +- .../ckeditor5-dll/translations/pl.js | 2 +- .../ckeditor5-dll/translations/pt-br.js | 2 +- .../ckeditor5-dll/translations/pt.js | 2 +- .../ckeditor5-dll/translations/ro.js | 2 +- .../ckeditor5-dll/translations/ru.js | 2 +- .../ckeditor5-dll/translations/si.js | 2 +- .../ckeditor5-dll/translations/sk.js | 2 +- .../ckeditor5-dll/translations/sl.js | 2 +- .../ckeditor5-dll/translations/sq.js | 2 +- .../ckeditor5-dll/translations/sr-latn.js | 2 +- .../ckeditor5-dll/translations/sr.js | 2 +- .../ckeditor5-dll/translations/sv.js | 2 +- .../ckeditor5-dll/translations/th.js | 2 +- .../ckeditor5-dll/translations/tk.js | 2 +- .../ckeditor5-dll/translations/tr.js | 2 +- .../ckeditor5-dll/translations/tt.js | 2 +- .../ckeditor5-dll/translations/ug.js | 2 +- .../ckeditor5-dll/translations/uk.js | 2 +- .../ckeditor5-dll/translations/ur.js | 2 +- .../ckeditor5-dll/translations/uz.js | 2 +- .../ckeditor5-dll/translations/vi.js | 2 +- .../ckeditor5-dll/translations/zh-cn.js | 2 +- .../ckeditor5-dll/translations/zh.js | 2 +- .../ckeditor5/html-support/html-support.js | 2 +- core/assets/vendor/ckeditor5/image/image.js | 4 +- .../vendor/ckeditor5/image/translations/ar.js | 2 +- .../ckeditor5/image/translations/ast.js | 2 +- .../vendor/ckeditor5/image/translations/az.js | 2 +- .../vendor/ckeditor5/image/translations/bg.js | 2 +- .../vendor/ckeditor5/image/translations/bn.js | 2 +- .../vendor/ckeditor5/image/translations/bs.js | 2 +- .../vendor/ckeditor5/image/translations/ca.js | 2 +- .../vendor/ckeditor5/image/translations/cs.js | 2 +- .../vendor/ckeditor5/image/translations/da.js | 2 +- .../ckeditor5/image/translations/de-ch.js | 2 +- .../vendor/ckeditor5/image/translations/de.js | 2 +- .../vendor/ckeditor5/image/translations/el.js | 2 +- .../ckeditor5/image/translations/en-au.js | 2 +- .../ckeditor5/image/translations/en-gb.js | 2 +- .../vendor/ckeditor5/image/translations/eo.js | 2 +- .../vendor/ckeditor5/image/translations/es.js | 2 +- .../vendor/ckeditor5/image/translations/et.js | 2 +- .../vendor/ckeditor5/image/translations/eu.js | 2 +- .../vendor/ckeditor5/image/translations/fa.js | 2 +- .../vendor/ckeditor5/image/translations/fi.js | 2 +- .../vendor/ckeditor5/image/translations/fr.js | 2 +- .../vendor/ckeditor5/image/translations/gl.js | 2 +- .../vendor/ckeditor5/image/translations/he.js | 2 +- .../vendor/ckeditor5/image/translations/hi.js | 2 +- .../vendor/ckeditor5/image/translations/hr.js | 2 +- .../vendor/ckeditor5/image/translations/hu.js | 2 +- .../vendor/ckeditor5/image/translations/id.js | 2 +- .../vendor/ckeditor5/image/translations/it.js | 2 +- .../vendor/ckeditor5/image/translations/ja.js | 2 +- .../vendor/ckeditor5/image/translations/jv.js | 2 +- .../vendor/ckeditor5/image/translations/km.js | 2 +- .../vendor/ckeditor5/image/translations/kn.js | 2 +- .../vendor/ckeditor5/image/translations/ko.js | 2 +- .../vendor/ckeditor5/image/translations/ku.js | 2 +- .../vendor/ckeditor5/image/translations/lt.js | 2 +- .../vendor/ckeditor5/image/translations/lv.js | 2 +- .../vendor/ckeditor5/image/translations/ms.js | 2 +- .../vendor/ckeditor5/image/translations/nb.js | 2 +- .../vendor/ckeditor5/image/translations/ne.js | 2 +- .../vendor/ckeditor5/image/translations/nl.js | 2 +- .../vendor/ckeditor5/image/translations/no.js | 2 +- .../vendor/ckeditor5/image/translations/pl.js | 2 +- .../ckeditor5/image/translations/pt-br.js | 2 +- .../vendor/ckeditor5/image/translations/pt.js | 2 +- .../vendor/ckeditor5/image/translations/ro.js | 2 +- .../vendor/ckeditor5/image/translations/ru.js | 2 +- .../vendor/ckeditor5/image/translations/si.js | 2 +- .../vendor/ckeditor5/image/translations/sk.js | 2 +- .../vendor/ckeditor5/image/translations/sq.js | 2 +- .../ckeditor5/image/translations/sr-latn.js | 2 +- .../vendor/ckeditor5/image/translations/sr.js | 2 +- .../vendor/ckeditor5/image/translations/sv.js | 2 +- .../vendor/ckeditor5/image/translations/th.js | 2 +- .../vendor/ckeditor5/image/translations/tk.js | 2 +- .../vendor/ckeditor5/image/translations/tr.js | 2 +- .../vendor/ckeditor5/image/translations/tt.js | 2 +- .../vendor/ckeditor5/image/translations/ug.js | 2 +- .../vendor/ckeditor5/image/translations/uk.js | 2 +- .../vendor/ckeditor5/image/translations/ur.js | 2 +- .../vendor/ckeditor5/image/translations/uz.js | 2 +- .../vendor/ckeditor5/image/translations/vi.js | 2 +- .../ckeditor5/image/translations/zh-cn.js | 2 +- .../vendor/ckeditor5/image/translations/zh.js | 2 +- .../ckeditor5/indent/translations/gl.js | 2 +- core/assets/vendor/ckeditor5/link/link.js | 2 +- .../vendor/ckeditor5/link/translations/ug.js | 2 +- core/assets/vendor/ckeditor5/list/list.js | 2 +- .../vendor/ckeditor5/list/translations/ug.js | 2 +- .../paste-from-office/paste-from-office.js | 2 +- .../show-blocks/translations/sr-latn.js | 1 + core/core.libraries.yml | 90 ++-- .../modules/ckeditor5/ckeditor5.ckeditor5.yml | 3 +- core/modules/ckeditor5/css/image.admin.css | 2 +- .../ckeditor5/js/build/ckeditor5.types.jsdoc | 34 +- .../modules/ckeditor5/js/build/drupalImage.js | 2 +- .../src/insertimage/drupalinsertimage.js | 19 +- .../src/Plugin/CKEditor5Plugin/Image.php | 5 + .../FunctionalJavascript/ImageTestBase.php | 4 +- .../src/FunctionalJavascript/ImageUrlTest.php | 8 +- core/package.json | 48 +- core/yarn.lock | 459 +++++++++--------- 153 files changed, 492 insertions(+), 469 deletions(-) create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/sr-latn.js diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js index bef4e151e213..cec879310e57 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js @@ -1,5 +1,5 @@ -!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"Clear","Click to edit block":"Click to edit block","Dim grey":"Dim grey","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar",Green:"Green",Grey:"Grey",HEX:"HEX","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Restore default":"Restore default","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Save:"Save","Select all":"Select all","Show more items":"Show more items",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), +!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"Clear","Click to edit block":"Click to edit block","Dim grey":"Dim grey","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar",Green:"Green",Grey:"Grey",HEX:"HEX","Insert image with file manager":"Insert image with file manager","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert with file manager":"Insert with file manager","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Restore default":"Restore default","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Save:"Save","Select all":"Select all","Show more items":"Show more items",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), /*! * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. - */(()=>{var e={"./node_modules/color-convert/conversions.js":(e,t,o)=>{const s=o("./node_modules/color-name/index.js"),i={};for(const e of Object.keys(s))i[s[e]]=e;const r={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"]}};e.exports=r;for(const e of Object.keys(r)){if(!("channels"in r[e]))throw new Error("missing channels property: "+e);if(!("labels"in r[e]))throw new Error("missing channel labels property: "+e);if(r[e].labels.length!==r[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:o}=r[e];delete r[e].channels,delete r[e].labels,Object.defineProperty(r[e],"channels",{value:t}),Object.defineProperty(r[e],"labels",{value:o})}r.rgb.hsl=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(t,o,s),r=Math.max(t,o,s),n=r-i;let a,c;r===i?a=0:t===r?a=(o-s)/n:o===r?a=2+(s-t)/n:s===r&&(a=4+(t-o)/n),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+r)/2;return c=r===i?0:l<=.5?n/(r+i):n/(2-r-i),[a,100*c,100*l]},r.rgb.hsv=function(e){let t,o,s,i,r;const n=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(n,a,c),d=l-Math.min(n,a,c),h=function(e){return(l-e)/6/d+.5};return 0===d?(i=0,r=0):(r=d/l,t=h(n),o=h(a),s=h(c),n===l?i=s-o:a===l?i=1/3+t-s:c===l&&(i=2/3+o-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*l]},r.rgb.hwb=function(e){const t=e[0],o=e[1];let s=e[2];const i=r.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(o,s));return s=1-1/255*Math.max(t,Math.max(o,s)),[i,100*n,100*s]},r.rgb.cmyk=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(1-t,1-o,1-s);return[100*((1-t-i)/(1-i)||0),100*((1-o-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*i]},r.rgb.keyword=function(e){const t=i[e];if(t)return t;let o,r=1/0;for(const t of Object.keys(s)){const i=s[t],c=(a=i,((n=e)[0]-a[0])**2+(n[1]-a[1])**2+(n[2]-a[2])**2);c<r&&(r=c,o=t)}var n,a;return o},r.keyword.rgb=function(e){return s[e]},r.rgb.xyz=function(e){let t=e[0]/255,o=e[1]/255,s=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;return[100*(.4124*t+.3576*o+.1805*s),100*(.2126*t+.7152*o+.0722*s),100*(.0193*t+.1192*o+.9505*s)]},r.rgb.lab=function(e){const t=r.rgb.xyz(e);let o=t[0],s=t[1],i=t[2];o/=95.047,s/=100,i/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*s-16,500*(o-s),200*(s-i)]},r.hsl.rgb=function(e){const t=e[0]/360,o=e[1]/100,s=e[2]/100;let i,r,n;if(0===o)return n=255*s,[n,n,n];i=s<.5?s*(1+o):s+o-s*o;const a=2*s-i,c=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,n=6*r<1?a+6*(i-a)*r:2*r<1?i:3*r<2?a+(i-a)*(2/3-r)*6:a,c[e]=255*n;return c},r.hsl.hsv=function(e){const t=e[0];let o=e[1]/100,s=e[2]/100,i=o;const r=Math.max(s,.01);s*=2,o*=s<=1?s:2-s,i*=r<=1?r:2-r;return[t,100*(0===s?2*i/(r+i):2*o/(s+o)),100*((s+o)/2)]},r.hsv.rgb=function(e){const t=e[0]/60,o=e[1]/100;let s=e[2]/100;const i=Math.floor(t)%6,r=t-Math.floor(t),n=255*s*(1-o),a=255*s*(1-o*r),c=255*s*(1-o*(1-r));switch(s*=255,i){case 0:return[s,c,n];case 1:return[a,s,n];case 2:return[n,s,c];case 3:return[n,a,s];case 4:return[c,n,s];case 5:return[s,n,a]}},r.hsv.hsl=function(e){const t=e[0],o=e[1]/100,s=e[2]/100,i=Math.max(s,.01);let r,n;n=(2-o)*s;const a=(2-o)*i;return r=o*i,r/=a<=1?a:2-a,r=r||0,n/=2,[t,100*r,100*n]},r.hwb.rgb=function(e){const t=e[0]/360;let o=e[1]/100,s=e[2]/100;const i=o+s;let r;i>1&&(o/=i,s/=i);const n=Math.floor(6*t),a=1-s;r=6*t-n,0!=(1&n)&&(r=1-r);const c=o+r*(a-o);let l,d,h;switch(n){default:case 6:case 0:l=a,d=c,h=o;break;case 1:l=c,d=a,h=o;break;case 2:l=o,d=a,h=c;break;case 3:l=o,d=c,h=a;break;case 4:l=c,d=o,h=a;break;case 5:l=a,d=o,h=c}return[255*l,255*d,255*h]},r.cmyk.rgb=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,o*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i))]},r.xyz.rgb=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100;let i,r,n;return i=3.2406*t+-1.5372*o+-.4986*s,r=-.9689*t+1.8758*o+.0415*s,n=.0557*t+-.204*o+1.057*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*i,255*r,255*n]},r.xyz.lab=function(e){let t=e[0],o=e[1],s=e[2];t/=95.047,o/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*o-16,500*(t-o),200*(o-s)]},r.lab.xyz=function(e){let t,o,s;o=(e[0]+16)/116,t=e[1]/500+o,s=o-e[2]/200;const i=o**3,r=t**3,n=s**3;return o=i>.008856?i:(o-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,s=n>.008856?n:(s-16/116)/7.787,t*=95.047,o*=100,s*=108.883,[t,o,s]},r.lab.lch=function(e){const t=e[0],o=e[1],s=e[2];let i;i=360*Math.atan2(s,o)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(o*o+s*s),i]},r.lch.lab=function(e){const t=e[0],o=e[1],s=e[2]/360*2*Math.PI;return[t,o*Math.cos(s),o*Math.sin(s)]},r.rgb.ansi16=function(e,t=null){const[o,s,i]=e;let n=null===t?r.rgb.hsv(e)[2]:t;if(n=Math.round(n/50),0===n)return 30;let a=30+(Math.round(i/255)<<2|Math.round(s/255)<<1|Math.round(o/255));return 2===n&&(a+=60),a},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){const t=e[0],o=e[1],s=e[2];if(t===o&&o===s)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(s/255*5)},r.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const o=.5*(1+~~(e>50));return[(1&t)*o*255,(t>>1&1)*o*255,(t>>2&1)*o*255]},r.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let o=t[0];3===t[0].length&&(o=o.split("").map((e=>e+e)).join(""));const s=parseInt(o,16);return[s>>16&255,s>>8&255,255&s]},r.rgb.hcg=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.max(Math.max(t,o),s),r=Math.min(Math.min(t,o),s),n=i-r;let a,c;return a=n<1?r/(1-n):0,c=n<=0?0:i===t?(o-s)/n%6:i===o?2+(s-t)/n:4+(t-o)/n,c/=6,c%=1,[360*c,100*n,100*a]},r.hsl.hcg=function(e){const t=e[1]/100,o=e[2]/100,s=o<.5?2*t*o:2*t*(1-o);let i=0;return s<1&&(i=(o-.5*s)/(1-s)),[e[0],100*s,100*i]},r.hsv.hcg=function(e){const t=e[1]/100,o=e[2]/100,s=t*o;let i=0;return s<1&&(i=(o-s)/(1-s)),[e[0],100*s,100*i]},r.hcg.rgb=function(e){const t=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[255*s,255*s,255*s];const i=[0,0,0],r=t%1*6,n=r%1,a=1-n;let c=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-o)*s,[255*(o*i[0]+c),255*(o*i[1]+c),255*(o*i[2]+c)]},r.hcg.hsv=function(e){const t=e[1]/100,o=t+e[2]/100*(1-t);let s=0;return o>0&&(s=t/o),[e[0],100*s,100*o]},r.hcg.hsl=function(e){const t=e[1]/100,o=e[2]/100*(1-t)+.5*t;let s=0;return o>0&&o<.5?s=t/(2*o):o>=.5&&o<1&&(s=t/(2*(1-o))),[e[0],100*s,100*o]},r.hcg.hwb=function(e){const t=e[1]/100,o=t+e[2]/100*(1-t);return[e[0],100*(o-t),100*(1-o)]},r.hwb.hcg=function(e){const t=e[1]/100,o=1-e[2]/100,s=o-t;let i=0;return s<1&&(i=(o-s)/(1-s)),[e[0],100*s,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=function(e){return[0,0,e[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),o=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(o.length)+o},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},"./node_modules/color-convert/index.js":(e,t,o)=>{const s=o("./node_modules/color-convert/conversions.js"),i=o("./node_modules/color-convert/route.js"),r={};Object.keys(s).forEach((e=>{r[e]={},Object.defineProperty(r[e],"channels",{value:s[e].channels}),Object.defineProperty(r[e],"labels",{value:s[e].labels});const t=i(e);Object.keys(t).forEach((o=>{const s=t[o];r[e][o]=function(e){const t=function(...t){const o=t[0];if(null==o)return o;o.length>1&&(t=o);const s=e(t);if("object"==typeof s)for(let e=s.length,t=0;t<e;t++)s[t]=Math.round(s[t]);return s};return"conversion"in e&&(t.conversion=e.conversion),t}(s),r[e][o].raw=function(e){const t=function(...t){const o=t[0];return null==o?o:(o.length>1&&(t=o),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(s)}))})),e.exports=r},"./node_modules/color-convert/route.js":(e,t,o)=>{const s=o("./node_modules/color-convert/conversions.js");function i(e){const t=function(){const e={},t=Object.keys(s);for(let o=t.length,s=0;s<o;s++)e[t[s]]={distance:-1,parent:null};return e}(),o=[e];for(t[e].distance=0;o.length;){const e=o.pop(),i=Object.keys(s[e]);for(let s=i.length,r=0;r<s;r++){const s=i[r],n=t[s];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,o.unshift(s))}}return t}function r(e,t){return function(o){return t(e(o))}}function n(e,t){const o=[t[e].parent,e];let i=s[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)o.unshift(t[n].parent),i=r(s[t[n].parent][n],i),n=t[n].parent;return i.conversion=o,i}e.exports=function(e){const t=i(e),o={},s=Object.keys(t);for(let e=s.length,i=0;i<e;i++){const e=s[i];null!==t[e].parent&&(o[e]=n(e,t))}return o}},"./node_modules/color-name/index.js":e=>{"use strict";e.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]}},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-clipboard/theme/clipboard.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}',""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/placeholder.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/renderer.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/autocomplete/autocomplete.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/button.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/switchbutton.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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))}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorgrid/colorgrid.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorpicker/colorpicker.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorselector/colorselector.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/dropdown.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/listdropdown.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/splitbutton.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}',""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/editorui/editorui.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/formheader/formheader.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/icon/icon.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/input/input.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/label/label.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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>.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>.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>.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))}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/list/list.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}.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:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base))}.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%}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonpanel.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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%}',""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonrotator.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/fakepanel.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/stickypanel.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/search/search.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/spinner/spinner.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/textarea/textarea.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck-textarea{overflow-x:hidden}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/toolbar.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/tooltip/tooltip.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/globals/globals.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widget.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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))}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgetresize.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgettypearound.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}}',""]);const r=i},"./node_modules/css-loader/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=e(t);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,s){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(s)for(var r=0;r<this.length;r++){var n=this[r][0];null!=n&&(i[n]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);s&&i[c[0]]||(o&&(c[2]?c[2]="".concat(o," and ").concat(c[2]):c[2]=o),t.push(c))}},t}},"./packages/ckeditor5-core/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{mY:()=>n,_y:()=>d,eO:()=>h,W9:()=>_,ML:()=>g,xK:()=>k,AJ:()=>c,lR:()=>v,Sy:()=>i,P$:()=>b,icons:()=>C,Nu:()=>w});var s=o("./packages/ckeditor5-utils/src/index.ts");class i extends((0,s.Re)()){constructor(e){super(),this._disableStack=new Set,this.editor=e,this.set("isEnabled",!0)}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",r,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",r),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function r(e){e.return=!1,e.stop()}class n extends((0,s.Re)()){constructor(e){super(),this.editor=e,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(e,"change:isReadOnly",(()=>{this.refresh()})),this.on("set:isEnabled",(t=>{if(!this.affectsData)return;const o=e.model.document.selection,s=!("$graveyard"==o.getFirstPosition().root.rootName)&&e.model.canEditAt(o);(e.isReadOnly||this._isEnabledBasedOnSelection&&!s)&&(t.return=!1,t.stop())}),{priority:"highest"}),this.on("execute",(e=>{this.isEnabled||e.stop()}),{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(e){this._affectsData=e}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",a,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",a),this.refresh())}execute(...e){}destroy(){this.stopListening()}}function a(e){e.return=!1,e.stop()}class c extends n{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...e){const t=this._getFirstEnabledCommand();return!!t&&t.execute(e)}registerChildCommand(e,t={}){(0,s.VG)(this._childCommandsDefinitions,{command:e,priority:t.priority||"normal"}),e.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const e=this._childCommandsDefinitions.find((({command:e})=>e.isEnabled));return e&&e.command}}class l extends((0,s.ln)()){constructor(e,t=[],o=[]){super(),this._plugins=new Map,this._context=e,this._availablePlugins=new Map;for(const e of t)e.pluginName&&this._availablePlugins.set(e.pluginName,e);this._contextPlugins=new Map;for(const[e,t]of o)this._contextPlugins.set(e,t),this._contextPlugins.set(t,e),e.pluginName&&this._availablePlugins.set(e.pluginName,e)}*[Symbol.iterator](){for(const e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new s.Bb("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e,t=[],o=[]){const i=this,r=this._context;!function e(t,o=new Set){t.forEach((t=>{c(t)&&(o.has(t)||(o.add(t),t.pluginName&&!i._availablePlugins.has(t.pluginName)&&i._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,o)))}))}(e),u(e);const n=[...function e(t,o=new Set){return t.map((e=>c(e)?e:i._availablePlugins.get(e))).reduce(((t,s)=>o.has(s)?t:(o.add(s),s.requires&&(u(s.requires,s),e(s.requires,o).forEach((e=>t.add(e)))),t.add(s))),new Set)}(e.filter((e=>!d(e,t))))];!function(e,t){for(const o of t){if("function"!=typeof o)throw new s.Bb("plugincollection-replace-plugin-invalid-type",null,{pluginItem:o});const t=o.pluginName;if(!t)throw new s.Bb("plugincollection-replace-plugin-missing-name",null,{pluginItem:o});if(o.requires&&o.requires.length)throw new s.Bb("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});const r=i._availablePlugins.get(t);if(!r)throw new s.Bb("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});const n=e.indexOf(r);if(-1===n){if(i._contextPlugins.has(r))return;throw new s.Bb("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(r.requires&&r.requires.length)throw new s.Bb("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(n,1,o),i._availablePlugins.set(t,o)}}(n,o);const a=n.map((e=>{let t=i._contextPlugins.get(e);return t=t||new e(r),i._add(e,t),t}));return p(a,"init").then((()=>p(a,"afterInit"))).then((()=>a));function c(e){return"function"==typeof e}function l(e){return c(e)&&!!e.isContextPlugin}function d(e,t){return t.some((t=>t===e||(h(e)===t||h(t)===e)))}function h(e){return c(e)?e.pluginName||e.name:e}function u(e,o=null){e.map((e=>c(e)?e:i._availablePlugins.get(e)||e)).forEach((e=>{!function(e,t){if(c(e))return;if(t)throw new s.Bb("plugincollection-soft-required",r,{missingPlugin:e,requiredBy:h(t)});throw new s.Bb("plugincollection-plugin-not-found",r,{plugin:e})}(e,o),function(e,t){if(!l(t))return;if(l(e))return;throw new s.Bb("plugincollection-context-required",r,{plugin:h(e),requiredBy:h(t)})}(e,o),function(e,o){if(!o)return;if(!d(e,t))return;throw new s.Bb("plugincollection-required",r,{plugin:h(e),requiredBy:h(o)})}(e,o)}))}function p(e,t){return e.reduce(((e,o)=>o[t]?i._contextPlugins.has(o)?e:e.then(o[t].bind(o)):e),Promise.resolve())}}destroy(){const e=[];for(const[,t]of this)"function"!=typeof t.destroy||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const o=e.pluginName;if(o){if(this._plugins.has(o))throw new s.Bb("plugincollection-plugin-name-conflict",null,{pluginName:o,plugin1:this._plugins.get(o).constructor,plugin2:e});this._plugins.set(o,t)}}}class d{constructor(e){this._contextOwner=null,this.config=new s.De(e,this.constructor.defaultConfig);const t=this.constructor.builtinPlugins;this.config.define("plugins",t),this.plugins=new l(this,t);const o=this.config.get("language")||{};this.locale=new s.go({uiLanguage:"string"==typeof o?o:o.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new s.FE}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const o of e.concat(t)){if("function"!=typeof o)throw new s.Bb("context-initplugins-constructor-only",null,{Plugin:o});if(!0!==o.isContextPlugin)throw new s.Bb("context-initplugins-invalid-plugin",null,{Plugin:o})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,(e=>e.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(e,t){if(this._contextOwner)throw new s.Bb("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise((t=>{const o=new this(e);t(o.initPlugins().then((()=>o)))}))}}class h extends((0,s.Re)()){constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class u extends s.VD{constructor(e){super(),this.editor=e}set(e,t,o={}){if("string"==typeof t){const e=t;t=(t,o)=>{this.editor.execute(e),o()}}super.set(e,t,o)}}var p=o("./packages/ckeditor5-engine/src/index.ts");class f{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const o=this.get(e);if(!o)throw new s.Bb("commandcollection-command-not-found",this,{commandName:e});return o.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}class g extends((0,s.Re)()){constructor(e={}){super();const t=this.constructor,o=e.language||t.defaultConfig&&t.defaultConfig.language;this._context=e.context||new d({language:o}),this._context._addEditor(this,!e.context);const i=Array.from(t.builtinPlugins||[]);this.config=new s.De(e,t.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new l(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new f,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new p.Hn,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const r=new p.A_;this.data=new p.Yc(this.model,r),this.editing=new p.jH(this.model,r),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new p.uz([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 u(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new s.Bb("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new s.Bb("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new s.Bb("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const e=this.config,t=e.get("plugins"),o=e.get("removePlugins")||[],s=e.get("extraPlugins")||[],i=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(s),o,i)}destroy(){let e=Promise.resolve();return"initializing"==this.state&&(e=new Promise((e=>this.once("ready",e)))),e.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(e,...t){try{return this.commands.execute(e,...t)}catch(e){s.Bb.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}static create(...e){throw new Error("This is an abstract method.")}}var m=o("./node_modules/lodash-es/isFunction.js");function b(e){if(!(0,m.Z)(e.updateSourceElement))throw new s.Bb("attachtoform-missing-elementapi-interface",e);const t=e.sourceElement;if(function(e){return!!e&&"textarea"===e.tagName.toLowerCase()}(t)&&t.form){let o;const s=t.form,i=()=>e.updateSourceElement();(0,m.Z)(s.submit)&&(o=s.submit,s.submit=()=>{i(),o.apply(s)}),s.addEventListener("submit",i),e.on("destroy",(()=>{s.removeEventListener("submit",i),o&&(s.submit=o)}))}}function _(e){return class extends e{setData(e){this.data.set(e)}getData(e){return this.data.get(e)}}}{const e=_(Object);_.setData=e.prototype.setData,_.getData=e.prototype.getData}function k(e){return class extends e{updateSourceElement(e){if(!this.sourceElement)throw new s.Bb("editor-missing-sourceelement",this);const t=this.config.get("updateSourceElementOnDestroy"),o=this.sourceElement instanceof HTMLTextAreaElement;if(!t&&!o)return void(0,s.jS)(this.sourceElement,"");const i="string"==typeof e?e:this.data.get();(0,s.jS)(this.sourceElement,i)}}}function w(e,t){if(t.ckeditorInstance)throw new s.Bb("editor-source-element-already-used",e);t.ckeditorInstance=e,e.once("destroy",(()=>{delete t.ckeditorInstance}))}k.updateSourceElement=k(Object).prototype.updateSourceElement;class v extends h{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new s.FE({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new s.Bb("pendingactions-add-invalid-message",this);const t=new((0,s.Re)());return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}var y=o("./packages/ckeditor5-core/theme/icons/cancel.svg");var x=o("./packages/ckeditor5-core/theme/icons/check.svg");var P=o("./packages/ckeditor5-core/theme/icons/eraser.svg");const C={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:y.Z,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:x.Z,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:P.Z,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.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></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 fill-rule="evenodd" clip-rule="evenodd" d="M1 10.5a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1H1Zm5.006 7.25-.221-.74h-1.84l-.22.74H2l1.915-5.25h1.961l1.916 5.25H6.006Zm-1.71-1.915h1.138l-.55-1.87h-.03l-.557 1.87ZM8.772 12.5h1.686v3.907h2.694v1.343h-4.38V12.5Zm8.067 5.25v-3.907h1.717V12.5h-5.128v1.343h1.725v3.907h1.686Z"/><path d="M8.013 7.326a.577.577 0 0 0-.797-.028L5.214 9.5h5.126L8.013 7.326ZM11.778 9.5h3.098l-1.015-1.197a.58.58 0 0 0-.788 0L11.778 9.5Zm4.364 0V1.83H3.858V9.5H2.5V1.45c0-.525.444-.95.996-.95h13.017c.543 0 .987.425.987.95V9.5h-1.358Zm-4.576-4.623a1.776 1.776 0 1 0 3.522-.462 1.776 1.776 0 0 0-3.522.462Z"/></svg>\n',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>'}},"./packages/ckeditor5-engine/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{kW:()=>Ge,Yy:()=>Xi,r7:()=>Fe,KU:()=>En,uz:()=>Bi,Yc:()=>Vi,tn:()=>Eo,f4:()=>on,uj:()=>vs,pG:()=>Nt,dK:()=>qt,qZ:()=>Ht,qD:()=>rt,jH:()=>ri,W_:()=>zo,DX:()=>Po,Ay:()=>jr,X5:()=>Mi,IZ:()=>Ui,jP:()=>mr,iE:()=>bs,zj:()=>Ji,xO:()=>C,lB:()=>Ki,Hn:()=>Cn,dM:()=>An,$z:()=>Hi,Pk:()=>Qi,Qj:()=>Wt,Bz:()=>ir,Ly:()=>Zo,e6:()=>Go,sN:()=>er,Th:()=>Et,_o:()=>tr,tF:()=>or,qh:()=>Gi,A_:()=>Pe,aY:()=>Ro,xv:()=>Do,R:()=>No,Po:()=>Fo,yj:()=>Sn,G7:()=>Mo,m1:()=>Ge,By:()=>Se,Ux:()=>Ue,y_:()=>it,W2:()=>Re,y9:()=>Ee,pc:()=>Ye,wx:()=>ot,FY:()=>Me,Xj:()=>y,rh:()=>Ve,dq:()=>Qe,QR:()=>sa,sI:()=>ia,vt:()=>fa,J8:()=>ga,DA:()=>h,ID:()=>d,KT:()=>_n,I8:()=>ea,mq:()=>Qn,oz:()=>Xn,YG:()=>Oe,m0:()=>ta,uT:()=>oa,$_:()=>p,SB:()=>Kn,D5:()=>Dn,G9:()=>Ln,IT:()=>zn,zz:()=>Wn,WK:()=>Un,Zb:()=>qn,PX:()=>Yn,Q7:()=>f,NJ:()=>u,Rf:()=>lr});var s=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),i=o.n(s),r=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/placeholder.css"),n={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i()(r.Z,n);r.Z.locals;var a=o("./packages/ckeditor5-utils/src/index.ts");const c=new WeakMap;let l=!1;function d({view:e,element:t,text:o,isDirectHost:s=!0,keepOnFocus:i=!1}){const r=e.document;function n(o){c.get(r).set(t,{text:o,isDirectHost:s,keepOnFocus:i,hostElement:s?t:null}),e.change((e=>g(r,e)))}c.has(r)||(c.set(r,new Map),r.registerPostFixer((e=>g(r,e))),r.on("change:isComposing",(()=>{e.change((e=>g(r,e)))}),{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",((e,t,o)=>{n(o)})),t.placeholder?n(t.placeholder):o&&n(o),o&&function(){l||(0,a.KE)("enableplaceholder-deprecated-text-option");l=!0}()}function h(e,t){const o=t.document;c.has(o)&&e.change((e=>{const s=c.get(o),i=s.get(t);e.removeAttribute("data-placeholder",i.hostElement),p(e,i.hostElement),s.delete(t)}))}function u(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}function p(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function f(e,t){if(!e.isAttached())return!1;if(Array.from(e.getChildren()).some((e=>!e.is("uiElement"))))return!1;const o=e.document,s=o.selection.anchor;return(!o.isComposing||!s||s.parent!==e)&&(!!t||(!o.isFocused||!!s&&s.parent!==e))}function g(e,t){const o=c.get(e),s=[];let i=!1;for(const[e,r]of o)r.isDirectHost&&(s.push(e),m(t,e,r)&&(i=!0));for(const[e,r]of o){if(r.isDirectHost)continue;const o=b(e);o&&(s.includes(o)||(r.hostElement=o,m(t,e,r)&&(i=!0)))}return i}function m(e,t,o){const{text:s,isDirectHost:i,hostElement:r}=o;let n=!1;r.getAttribute("data-placeholder")!==s&&(e.setAttribute("data-placeholder",s,r),n=!0);return(i||1==t.childCount)&&f(r,o.keepOnFocus)?u(e,r)&&(n=!0):p(e,r)&&(n=!0),n}function b(e){if(e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class _{is(){throw new Error("is() method is abstract")}}var k=o("./node_modules/lodash-es/_baseClone.js");const w=function(e){return(0,k.Z)(e,4)};o("./packages/ckeditor5-utils/src/version.ts");class v extends((0,a.ln)(_)){constructor(e){super(),this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new a.Bb("view-node-not-found-in-parent",this);return e}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}getCommonAncestor(e,t={}){const o=this.getAncestors(t),s=e.getAncestors(t);let i=0;for(;o[i]==s[i]&&o[i];)i++;return 0===i?null:o[i-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),o=e.getPath(),s=(0,a.Rt)(t,o);switch(s){case"prefix":return!0;case"extension":return!1;default:return t[s]<o[s]}}isAfter(e){return this!=e&&(this.root===e.root&&!this.isBefore(e))}_remove(){this.parent._removeChildren(this.index)}_fireChange(e,t){this.fire(`change:${e}`,t),this.parent&&this.parent._fireChange(e,t)}toJSON(){const e=w(this);return delete e.parent,e}}v.prototype.is=function(e){return"node"===e||"view:node"===e};class y extends v{constructor(e,t){super(e),this._textData=t}get data(){return this._textData}get _data(){return this.data}set _data(e){this._fireChange("text",this),this._textData=e}isSimilar(e){return e instanceof y&&(this===e||this.data===e.data)}_clone(){return new y(this.document,this.data)}}y.prototype.is=function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e};class x extends _{constructor(e,t,o){if(super(),this.textNode=e,t<0||t>e.data.length)throw new a.Bb("view-textproxy-wrong-offsetintext",this);if(o<0||t+o>e.data.length)throw new a.Bb("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+o),this.offsetInText=t}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(e={}){const t=[];let o=e.includeSelf?this.textNode:this.parent;for(;null!==o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}}x.prototype.is=function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e};var P=o("./node_modules/lodash-es/isPlainObject.js");class C{constructor(...e){this._patterns=[],this.add(...e)}add(...e){for(let t of e)("string"==typeof t||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(const t of e)for(const e of this._patterns){const o=T(t,e);if(o)return{element:t,pattern:e,match:o}}return null}matchAll(...e){const t=[];for(const o of e)for(const e of this._patterns){const s=T(o,e);s&&t.push({element:o,pattern:e,match:s})}return t.length>0?t:null}getElementName(){if(1!==this._patterns.length)return null;const e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}function T(e,t){if("function"==typeof t)return t(e);const o={};return t.name&&(o.name=function(e,t){if(e instanceof RegExp)return!!t.match(e);return e===t}(t.name,e.name),!o.name)||t.attributes&&(o.attributes=function(e,t){const o=new Set(t.getAttributeKeys());(0,P.Z)(e)?(void 0!==e.style&&(0,a.KE)("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&(0,a.KE)("matcher-pattern-deprecated-attributes-class-key",e)):(o.delete("style"),o.delete("class"));return E(e,o,(e=>t.getAttribute(e)))}(t.attributes,e),!o.attributes)||t.classes&&(o.classes=function(e,t){return E(e,t.getClassNames(),(()=>{}))}(t.classes,e),!o.classes)||t.styles&&(o.styles=function(e,t){return E(e,t.getStyleNames(!0),(e=>t.getStyle(e)))}(t.styles,e),!o.styles)?null:o}function E(e,t,o){const s=function(e){if(Array.isArray(e))return e.map((e=>(0,P.Z)(e)?(void 0!==e.key&&void 0!==e.value||(0,a.KE)("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0]));if((0,P.Z)(e))return Object.entries(e);return[[e,!0]]}(e),i=Array.from(t),r=[];if(s.forEach((([e,t])=>{i.forEach((s=>{(function(e,t){return!0===e||e===t||e instanceof RegExp&&t.match(e)})(e,s)&&function(e,t,o){if(!0===e)return!0;const s=o(t);return e===s||e instanceof RegExp&&!!String(s).match(e)}(t,s,o)&&r.push(s)}))})),s.length&&!(r.length<s.length))return r}var A=o("./node_modules/lodash-es/isObject.js"),S=o("./node_modules/lodash-es/isArray.js"),O=o("./node_modules/lodash-es/isSymbol.js"),R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/;const M=function(e,t){if((0,S.Z)(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!(0,O.Z)(e))||(j.test(e)||!R.test(e)||null!=t&&e in Object(t))};var V=o("./node_modules/lodash-es/_MapCache.js");function B(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function(){var s=arguments,i=t?t.apply(this,s):s[0],r=o.cache;if(r.has(i))return r.get(i);var n=e.apply(this,s);return o.cache=r.set(i,n)||r,n};return o.cache=new(B.Cache||V.Z),o}B.Cache=V.Z;const I=B;var D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N=/\\(\\)?/g;const z=function(e){var t=I(e,(function(e){return 500===o.size&&o.clear(),e})),o=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(D,(function(e,o,s,i){t.push(s?i.replace(N,"$1"):o||e)})),t}));var F=o("./node_modules/lodash-es/toString.js");const L=function(e,t){return(0,S.Z)(e)?e:M(e,t)?[e]:z((0,F.Z)(e))};const Z=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const W=function(e){if("string"==typeof e||(0,O.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const $=function(e,t){for(var o=0,s=(t=L(t,e)).length;null!=e&&o<s;)e=e[W(t[o++])];return o&&o==s?e:void 0};const q=function(e,t,o){var s=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(o=o>i?i:o)<0&&(o+=i),i=t>o?0:o-t>>>0,t>>>=0;for(var r=Array(i);++s<i;)r[s]=e[s+t];return r};const H=function(e,t){return t.length<2?e:$(e,q(t,0,-1))};const U=function(e,t){return t=L(t,e),null==(e=H(e,t))||delete e[W(Z(t))]};const G=function(e,t){return null==e||U(e,t)};const K=function(e,t,o){var s=null==e?void 0:$(e,t);return void 0===s?o:s};var J=o("./node_modules/lodash-es/_Stack.js"),Y=o("./node_modules/lodash-es/_baseAssignValue.js"),X=o("./node_modules/lodash-es/eq.js");const Q=function(e,t,o){(void 0!==o&&!(0,X.Z)(e[t],o)||void 0===o&&!(t in e))&&(0,Y.Z)(e,t,o)};const ee=function(e){return function(t,o,s){for(var i=-1,r=Object(t),n=s(t),a=n.length;a--;){var c=n[e?a:++i];if(!1===o(r[c],c,r))break}return t}}();var te=o("./node_modules/lodash-es/_cloneBuffer.js"),oe=o("./node_modules/lodash-es/_cloneTypedArray.js"),se=o("./node_modules/lodash-es/_copyArray.js"),ie=o("./node_modules/lodash-es/_initCloneObject.js"),re=o("./node_modules/lodash-es/isArguments.js"),ne=o("./node_modules/lodash-es/isArrayLike.js"),ae=o("./node_modules/lodash-es/isObjectLike.js");const ce=function(e){return(0,ae.Z)(e)&&(0,ne.Z)(e)};var le=o("./node_modules/lodash-es/isBuffer.js"),de=o("./node_modules/lodash-es/isFunction.js"),he=o("./node_modules/lodash-es/isTypedArray.js");const ue=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var pe=o("./node_modules/lodash-es/_copyObject.js"),fe=o("./node_modules/lodash-es/keysIn.js");const ge=function(e){return(0,pe.Z)(e,(0,fe.Z)(e))};const me=function(e,t,o,s,i,r,n){var a=ue(e,o),c=ue(t,o),l=n.get(c);if(l)Q(e,o,l);else{var d=r?r(a,c,o+"",e,t,n):void 0,h=void 0===d;if(h){var u=(0,S.Z)(c),p=!u&&(0,le.Z)(c),f=!u&&!p&&(0,he.Z)(c);d=c,u||p||f?(0,S.Z)(a)?d=a:ce(a)?d=(0,se.Z)(a):p?(h=!1,d=(0,te.Z)(c,!0)):f?(h=!1,d=(0,oe.Z)(c,!0)):d=[]:(0,P.Z)(c)||(0,re.Z)(c)?(d=a,(0,re.Z)(a)?d=ge(a):(0,A.Z)(a)&&!(0,de.Z)(a)||(d=(0,ie.Z)(c))):h=!1}h&&(n.set(c,d),i(d,c,s,r,n),n.delete(c)),Q(e,o,d)}};const be=function e(t,o,s,i,r){t!==o&&ee(o,(function(n,a){if(r||(r=new J.Z),(0,A.Z)(n))me(t,o,a,s,e,i,r);else{var c=i?i(ue(t,a),n,a+"",t,o,r):void 0;void 0===c&&(c=n),Q(t,a,c)}}),fe.Z)};const _e=(0,o("./node_modules/lodash-es/_createAssigner.js").Z)((function(e,t,o){be(e,t,o)}));var ke=o("./node_modules/lodash-es/_assignValue.js"),we=o("./node_modules/lodash-es/_isIndex.js");const ve=function(e,t,o,s){if(!(0,A.Z)(e))return e;for(var i=-1,r=(t=L(t,e)).length,n=r-1,a=e;null!=a&&++i<r;){var c=W(t[i]),l=o;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=n){var d=a[c];void 0===(l=s?s(d,c,a):void 0)&&(l=(0,A.Z)(d)?d:(0,we.Z)(t[i+1])?[]:{})}(0,ke.Z)(a,c,l),a=a[c]}return e};const ye=function(e,t,o){return null==e?e:ve(e,t,o)};class xe{constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();const t=function(e){let t=null,o=0,s=0,i=null;const r=new Map;if(""===e)return r;";"!=e.charAt(e.length-1)&&(e+=";");for(let n=0;n<e.length;n++){const a=e.charAt(n);if(null===t)switch(a){case":":i||(i=e.substr(o,n-o),s=n+1);break;case'"':case"'":t=a;break;case";":{const t=e.substr(s,n-s);i&&r.set(i.trim(),t.trim()),i=null,o=n+1;break}}else a===t&&(t=null)}return r}(e);for(const[e,o]of t)this._styleProcessor.toNormalizedForm(e,o,this._styles)}has(e){if(this.isEmpty)return!1;const t=this._styleProcessor.getReducedForm(e,this._styles).find((([t])=>t===e));return Array.isArray(t)}set(e,t){if((0,A.Z)(e))for(const[t,o]of Object.entries(e))this._styleProcessor.toNormalizedForm(t,o,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t=Ce(e);G(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((e=>e.join(":"))).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!(0,A.Z)(this._styles[e]))return this._styles[e];const t=this._styleProcessor.getReducedForm(e,this._styles).find((([t])=>t===e));return Array.isArray(t)?t[1]:void 0}getStyleNames(e=!1){if(this.isEmpty)return[];if(e)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map((([e])=>e))}clear(){this._styles={}}_getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const o of t)e.push(...this._styleProcessor.getReducedForm(o,this._styles));return e}_cleanEmptyObjectsOnPath(e){const t=e.split(".");if(!(t.length>1))return;const o=t.splice(0,t.length-1).join("."),s=K(this._styles,o);if(!s)return;!Object.keys(s).length&&this.remove(o)}}class Pe{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,o){if((0,A.Z)(t))Te(o,Ce(e),t);else if(this._normalizers.has(e)){const s=this._normalizers.get(e),{path:i,value:r}=s(t);Te(o,i,r)}else Te(o,e,t)}getNormalized(e,t){if(!e)return _e({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){const o=this._extractors.get(e);if("string"==typeof o)return K(t,o);const s=o(e,t);if(s)return s}return K(t,Ce(e))}getReducedForm(e,t){const o=this.getNormalized(e,t);if(void 0===o)return[];if(this._reducers.has(e)){return this._reducers.get(e)(o)}return[[e,o]]}getStyleNames(e){const t=Array.from(this._consumables.keys()).filter((t=>{const o=this.getNormalized(t,e);return o&&"object"==typeof o?Object.keys(o).length:o})),o=new Set([...t,...Object.keys(e)]);return Array.from(o)}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const o of t)this._mapStyleNames(o,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function Ce(e){return e.replace("-",".")}function Te(e,t,o){let s=o;(0,A.Z)(o)&&(s=_e({},K(e,t),o)),ye(e,t,s)}class Ee extends v{constructor(e,t,o,s){if(super(e),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=t,this._attrs=function(e){const t=(0,a.qL)(e);for(const[e,o]of t)null===o?t.delete(e):"string"!=typeof o&&t.set(e,String(o));return t}(o),this._children=[],s&&this._insertChild(0,s),this._classes=new Set,this._attrs.has("class")){const e=this._attrs.get("class");Ae(this._classes,e),this._attrs.delete("class")}this._styles=new xe(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 0===this._children.length}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}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(e){if("class"==e)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==e){const e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(e)}hasAttribute(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof Ee))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(const[t,o]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==o)return!1;for(const t of this._classes)if(!e._classes.has(t))return!1;for(const t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(...e){for(const t of e)if(!this._classes.has(t))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(e){return this._styles.getStyleNames(e)}hasStyle(...e){for(const t of e)if(!this._styles.has(t))return!1;return!0}findAncestor(...e){const t=new C(...e);let o=this.parent;for(;o&&!o.is("documentFragment");){if(t.match(o))return o;o=o.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),o=Array.from(this._attrs).map((e=>`${e[0]}="${e[1]}"`)).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==o?"":` ${o}`)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}_clone(e=!1){const t=[];if(e)for(const o of this.getChildren())t.push(o._clone(e));const o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o._unsafeAttributesToRender=this._unsafeAttributesToRender,o}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this);let o=0;const s=function(e,t){if("string"==typeof t)return[new y(e,t)];(0,a.TW)(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new y(e,t):t instanceof x?new y(e,t.data):t))}(this.document,t);for(const t of s)null!==t.parent&&t._remove(),t.parent=this,t.document=this.document,this._children.splice(e,0,t),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let o=e;o<e+t;o++)this._children[o].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){const o=String(t);this._fireChange("attributes",this),"class"==e?Ae(this._classes,o):"style"==e?this._styles.setTo(o):this._attrs.set(e,o)}_removeAttribute(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){this._fireChange("attributes",this);for(const t of(0,a.qo)(e))this._classes.add(t)}_removeClass(e){this._fireChange("attributes",this);for(const t of(0,a.qo)(e))this._classes.delete(t)}_setStyle(e,t){this._fireChange("attributes",this),"string"!=typeof e?this._styles.set(e):this._styles.set(e,t)}_removeStyle(e){this._fireChange("attributes",this);for(const t of(0,a.qo)(e))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function Ae(e,t){const o=t.split(/\s+/);e.clear(),o.forEach((t=>e.add(t)))}Ee.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Se extends Ee{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=Oe}}function Oe(){const e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const t of e)if(!t.is("uiElement"))return null;return this.childCount}Se.prototype.is=function(e,t){return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Re extends((0,a.Re)(Se)){constructor(e,t,o,s){super(e,t,o,s),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",(t=>t&&e.selection.editableElement==this)),this.listenTo(e.selection,"change",(()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this}))}destroy(){this.stopListening()}}Re.prototype.is=function(e,t){return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};const je=Symbol("rootName");class Me extends Re{constructor(e,t){super(e,t),this.rootName="main"}get rootName(){return this.getCustomProperty(je)}set rootName(e){this._setCustomProperty(je,e)}set _name(e){this.name=e}}Me.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Ve{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new a.Bb("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new a.Bb("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this._position=Be._createAt(e.startPosition):this._position=Be._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.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(e){let t,o;do{o=this.position,t=this.next()}while(!t.done&&e(t.value));t.done||(this._position=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,o=e.parent;if(null===o.parent&&e.offset===o.childCount)return{done:!0,value:void 0};if(o===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let s;if(o instanceof y){if(e.isAtEnd)return this._position=Be._createAfter(o),this._next();s=o.data[e.offset]}else s=o.getChild(e.offset);if(s instanceof Ee){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e=new Be(s,0);return this._position=e,this._formatReturnValue("elementStart",s,t,e,1)}if(s instanceof y){if(this.singleCharacters)return e=new Be(s,0),this._position=e,this._next();let o,i=s.data.length;return s==this._boundaryEndParent?(i=this.boundaries.end.offset,o=new x(s,0,i),e=Be._createAfter(o)):(o=new x(s,0,s.data.length),e.offset++),this._position=e,this._formatReturnValue("text",o,t,e,i)}if("string"==typeof s){let s;if(this.singleCharacters)s=1;else{s=(o===this._boundaryEndParent?this.boundaries.end.offset:o.data.length)-e.offset}const i=new x(o,e.offset,s);return e.offset+=s,this._position=e,this._formatReturnValue("text",i,t,e,s)}return e=Be._createAfter(o),this._position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",o,t,e)}_previous(){let e=this.position.clone();const t=this.position,o=e.parent;if(null===o.parent&&0===e.offset)return{done:!0,value:void 0};if(o==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let s;if(o instanceof y){if(e.isAtStart)return this._position=Be._createBefore(o),this._previous();s=o.data[e.offset-1]}else s=o.getChild(e.offset-1);if(s instanceof Ee)return this.shallow?(e.offset--,this._position=e,this._formatReturnValue("elementStart",s,t,e,1)):(e=new Be(s,s.childCount),this._position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",s,t,e));if(s instanceof y){if(this.singleCharacters)return e=new Be(s,s.data.length),this._position=e,this._previous();let o,i=s.data.length;if(s==this._boundaryStartParent){const t=this.boundaries.start.offset;o=new x(s,t,s.data.length-t),i=o.data.length,e=Be._createBefore(o)}else o=new x(s,0,s.data.length),e.offset--;return this._position=e,this._formatReturnValue("text",o,t,e,i)}if("string"==typeof s){let s;if(this.singleCharacters)s=1;else{const t=o===this._boundaryStartParent?this.boundaries.start.offset:0;s=e.offset-t}e.offset-=s;const i=new x(o,e.offset,s);return this._position=e,this._formatReturnValue("text",i,t,e,s)}return e=Be._createBefore(o),this._position=e,this._formatReturnValue("elementStart",o,t,e,1)}_formatReturnValue(e,t,o,s,i){return t instanceof x&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?o=Be._createAfter(t.textNode):(s=Be._createAfter(t.textNode),this._position=s)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?o=Be._createBefore(t.textNode):(s=Be._createBefore(t.textNode),this._position=s))),{done:!1,value:{type:e,item:t,previousPosition:o,nextPosition:s,length:i}}}}class Be extends _{constructor(e,t){super(),this.parent=e,this.offset=t}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 0===this.offset}get isAtEnd(){const e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof Re);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=Be._createAt(this),o=t.offset+e;return t.offset=o<0?0:o,t}getLastMatchingPosition(e,t={}){t.startPosition=this;const o=new Ve(t);return o.skip(e),o.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),o=e.getAncestors();let s=0;for(;t[s]==o[s]&&t[s];)s++;return 0===s?null:t[s-1]}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";const t=this.parent.is("node")?this.parent.getPath():[],o=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),o.push(e.offset);const s=(0,a.Rt)(t,o);switch(s){case"prefix":return"before";case"extension":return"after";default:return t[s]<o[s]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new Ve(e)}clone(){return new Be(this.parent,this.offset)}static _createAt(e,t){if(e instanceof Be)return new this(e.parent,e.offset);{const o=e;if("end"==t)t=o.is("$text")?o.data.length:o.childCount;else{if("before"==t)return this._createBefore(o);if("after"==t)return this._createAfter(o);if(0!==t&&!t)throw new a.Bb("view-createpositionat-offset-required",o)}return new Be(o,t)}}static _createAfter(e){if(e.is("$textProxy"))return new Be(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new a.Bb("view-position-after-root",e,{root:e});return new Be(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new Be(e.textNode,e.offsetInText);if(!e.parent)throw new a.Bb("view-position-before-root",e,{root:e});return new Be(e.parent,e.index)}}Be.prototype.is=function(e){return"position"===e||"view:position"===e};class Ie extends _{constructor(e,t=null){super(),this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new Ve({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 e=this.start.getLastMatchingPosition(De,{direction:"backward"}),t=this.end.getLastMatchingPosition(De);return e.parent.is("$text")&&e.isAtStart&&(e=Be._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=Be._createAfter(t.parent)),new Ie(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(De);if(e.isAfter(this.end)||e.isEqual(this.end))return new Ie(e,e);let t=this.end.getLastMatchingPosition(De,{direction:"backward"});const o=e.nodeAfter,s=t.nodeBefore;return o&&o.is("$text")&&(e=new Be(o,0)),s&&s.is("$text")&&(t=new Be(s,s.data.length)),new Ie(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const o=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),s=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return o&&s}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new Ie(this.start,e.start)),this.containsPosition(e.end)&&t.push(new Ie(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,o=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(o=e.end),new Ie(t,o)}return null}getWalker(e={}){return e.boundaries=this,new Ve(e)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}clone(){return new Ie(this.start,this.end)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new Ve(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new Ve(e);yield t.position;for(const e of t)yield e.nextPosition}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}static _createFromParentsAndOffsets(e,t,o,s){return new this(new Be(e,t),new Be(o,s))}static _createFromPositionAndShift(e,t){const o=e,s=e.getShiftedBy(t);return t>0?new this(o,s):new this(s,o)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(Be._createBefore(e),t)}}function De(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}Ie.prototype.is=function(e){return"range"===e||"view:range"===e};class Ne extends((0,a.ln)(_)){constructor(...e){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",e.length&&this.setTo(...e)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return 1===this.rangeCount&&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 e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let o=!1;for(const s of e._ranges)if(t.isEqual(s)){o=!0;break}if(!o)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=(0,a.QX)(this.getRanges());if(t!=(0,a.QX)(e.getRanges()))return!1;if(0==t)return!0;for(let t of this.getRanges()){t=t.getTrimmed();let o=!1;for(let s of e.getRanges())if(s=s.getTrimmed(),t.start.isEqual(s.start)&&t.end.isEqual(s.end)){o=!0;break}if(!o)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...e){let[t,o,s]=e;if("object"==typeof o&&(s=o,o=void 0),null===t)this._setRanges([]),this._setFakeOptions(s);else if(t instanceof Ne||t instanceof ze)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Ie)this._setRanges([t],s&&s.backward),this._setFakeOptions(s);else if(t instanceof Be)this._setRanges([new Ie(t)]),this._setFakeOptions(s);else if(t instanceof v){const e=!!s&&!!s.backward;let i;if(void 0===o)throw new a.Bb("view-selection-setto-required-second-parameter",this);i="in"==o?Ie._createIn(t):"on"==o?Ie._createOn(t):new Ie(Be._createAt(t,o)),this._setRanges([i],e),this._setFakeOptions(s)}else{if(!(0,a.TW)(t))throw new a.Bb("view-selection-setto-not-selectable",this);this._setRanges(t,s&&s.backward),this._setFakeOptions(s)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new a.Bb("view-selection-setfocus-no-ranges",this);const o=Be._createAt(e,t);if("same"==o.compareWith(this.focus))return;const s=this.anchor;this._ranges.pop(),"before"==o.compareWith(s)?this._addRange(new Ie(o,s),!0):this._addRange(new Ie(s,o)),this.fire("change")}_setRanges(e,t=!1){e=Array.from(e),this._ranges=[];for(const t of e)this._addRange(t);this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}_addRange(e,t=!1){if(!(e instanceof Ie))throw new a.Bb("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(const t of this._ranges)if(e.isIntersecting(t))throw new a.Bb("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new Ie(e.start,e.end))}}Ne.prototype.is=function(e){return"selection"===e||"view:selection"===e};class ze extends((0,a.ln)(_)){constructor(...e){super(),this._selection=new Ne,this._selection.delegate("change").to(this),e.length&&this._selection.setTo(...e)}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(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}_setTo(...e){this._selection.setTo(...e)}_setFocus(e,t){this._selection.setFocus(e,t)}}ze.prototype.is=function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e};class Fe extends a.M3{constructor(e,t,o){super(e,t),this.startRange=o,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Le=Symbol("bubbling contexts");function Ze(e){return class extends e{fire(e,...t){try{const o=e instanceof a.M3?e:new a.M3(this,e),s=He(this);if(!s.size)return;if(We(o,"capturing",this),$e(s,"$capture",o,...t))return o.return;const i=o.startRange||this.selection.getFirstRange(),r=i?i.getContainedElement():null,n=!!r&&Boolean(qe(s,r));let c=r||function(e){if(!e)return null;const t=e.start.parent,o=e.end.parent,s=t.getPath(),i=o.getPath();return s.length>i.length?t:o}(i);if(We(o,"atTarget",c),!n){if($e(s,"$text",o,...t))return o.return;We(o,"bubbling",c)}for(;c;){if(c.is("rootElement")){if($e(s,"$root",o,...t))return o.return}else if(c.is("element")&&$e(s,c.name,o,...t))return o.return;if($e(s,c,o,...t))return o.return;c=c.parent,We(o,"bubbling",c)}return We(o,"bubbling",this),$e(s,"$document",o,...t),o.return}catch(e){a.Bb.rethrowUnexpectedError(e,this)}}_addEventListener(e,t,o){const s=(0,a.qo)(o.context||"$document"),i=He(this);for(const r of s){let s=i.get(r);s||(s=new((0,a.ln)()),i.set(r,s)),this.listenTo(s,e,t,o)}}_removeEventListener(e,t){const o=He(this);for(const s of o.values())this.stopListening(s,e,t)}}}{const e=Ze(Object);["fire","_addEventListener","_removeEventListener"].forEach((t=>{Ze[t]=e.prototype[t]}))}function We(e,t,o){e instanceof Fe&&(e._eventPhase=t,e._currentTarget=o)}function $e(e,t,o,...s){const i="string"==typeof t?e.get(t):qe(e,t);return!!i&&(i.fire(o,...s),o.stop.called)}function qe(e,t){for(const[o,s]of e)if("function"==typeof o&&o(t))return s;return null}function He(e){return e[Le]||(e[Le]=new Map),e[Le]}class Ue extends(Ze((0,a.Re)())){constructor(e){super(),this._postFixers=new Set,this.selection=new ze,this.roots=new a.FE({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.forEach((e=>e.destroy())),this.stopListening()}_callPostFixers(e){let t=!1;do{for(const o of this._postFixers)if(t=o(e),t)break}while(t)}}class Ge extends Ee{constructor(e,t,o,s){super(e,t,o,s),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=Ke}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new a.Bb("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(e){return null!==this.id||null!==e.id?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e=!1){const t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function Ke(){if(Je(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(Je(e)>1)return null;e=e.parent}return!e||Je(e)>1?null:this.childCount}function Je(e){return Array.from(e.getChildren()).filter((e=>!e.is("uiElement"))).length}Ge.DEFAULT_PRIORITY=10,Ge.prototype.is=function(e,t){return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Ye extends Ee{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=Xe}_insertChild(e,t){if(t&&(t instanceof v||Array.from(t).length>0))throw new a.Bb("view-emptyelement-cannot-add",[this,t]);return 0}}function Xe(){return null}Ye.prototype.is=function(e,t){return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Qe extends Ee{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=tt}_insertChild(e,t){if(t&&(t instanceof v||Array.from(t).length>0))throw new a.Bb("view-uielement-cannot-add",[this,t]);return 0}render(e,t){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const e of this.getAttributeKeys())t.setAttribute(e,this.getAttribute(e));return t}}function et(e){e.document.on("arrowKey",((t,o)=>function(e,t,o){if(t.keyCode==a.Do.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),s=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(s||t.shiftKey){const t=e.focusNode,i=e.focusOffset,r=o.domPositionToView(t,i);if(null===r)return;let n=!1;const a=r.getLastMatchingPosition((e=>(e.item.is("uiElement")&&(n=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement")))));if(n){const t=o.viewPositionToDom(a);s?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}(0,o,e.domConverter)),{priority:"low"})}function tt(){return null}Qe.prototype.is=function(e,t){return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class ot extends Ee{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=st}_insertChild(e,t){if(t&&(t instanceof v||Array.from(t).length>0))throw new a.Bb("view-rawelement-cannot-add",[this,t]);return 0}render(e,t){}}function st(){return null}ot.prototype.is=function(e,t){return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class it extends((0,a.ln)(_)){constructor(e,t){super(),this._children=[],this._customProperties=new Map,this.document=e,t&&this._insertChild(0,t)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange("children",this);let o=0;const s=function(e,t){if("string"==typeof t)return[new y(e,t)];(0,a.TW)(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new y(e,t):t instanceof x?new y(e,t.data):t))}(this.document,t);for(const t of s)null!==t.parent&&t._remove(),t.parent=this,this._children.splice(e,0,t),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let o=e;o<e+t;o++)this._children[o].parent=null;return this._children.splice(e,t)}_fireChange(e,t){this.fire("change:"+e,t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}it.prototype.is=function(e){return"documentFragment"===e||"view:documentFragment"===e};class rt{constructor(e){this._cloneGroups=new Map,this._slotFactory=null,this.document=e}setSelection(...e){this.document.selection._setTo(...e)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createDocumentFragment(e){return new it(this.document,e)}createText(e){return new y(this.document,e)}createAttributeElement(e,t,o={}){const s=new Ge(this.document,e,t);return"number"==typeof o.priority&&(s._priority=o.priority),o.id&&(s._id=o.id),o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createContainerElement(e,t,o={},s={}){let i=null;(0,P.Z)(o)?s=o:i=o;const r=new Se(this.document,e,t,i);return s.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...s.renderUnsafeAttributes),r}createEditableElement(e,t,o={}){const s=new Re(this.document,e,t);return o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createEmptyElement(e,t,o={}){const s=new Ye(this.document,e,t);return o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createUIElement(e,t,o){const s=new Qe(this.document,e,t);return o&&(s.render=o),s}createRawElement(e,t,o,s={}){const i=new ot(this.document,e,t);return o&&(i.render=o),s.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...s.renderUnsafeAttributes),i}setAttribute(e,t,o){o._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,o){(0,P.Z)(e)&&void 0===o?t._setStyle(e):o._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,o){o._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof Be?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new a.Bb("view-writer-break-non-container-element",this.document);if(!t.parent)throw new a.Bb("view-writer-break-root",this.document);if(e.isAtStart)return Be._createBefore(t);if(!e.isAtEnd){const o=t._clone(!1);this.insert(Be._createAfter(t),o);const s=new Ie(e,Be._createAt(t,"end")),i=new Be(o,0);this.move(s,i)}return Be._createAfter(t)}mergeAttributes(e){const t=e.offset,o=e.parent;if(o.is("$text"))return e;if(o.is("attributeElement")&&0===o.childCount){const e=o.parent,t=o.index;return o._remove(),this._removeFromClonedElementsGroup(o),this.mergeAttributes(new Be(e,t))}const s=o.getChild(t-1),i=o.getChild(t);if(!s||!i)return e;if(s.is("$text")&&i.is("$text"))return dt(s,i);if(s.is("attributeElement")&&i.is("attributeElement")&&s.isSimilar(i)){const e=s.childCount;return s._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new Be(s,e))}return e}mergeContainers(e){const t=e.nodeBefore,o=e.nodeAfter;if(!(t&&o&&t.is("containerElement")&&o.is("containerElement")))throw new a.Bb("view-writer-merge-containers-invalid-position",this.document);const s=t.getChild(t.childCount-1),i=s instanceof y?Be._createAt(s,"end"):Be._createAt(t,"end");return this.move(Ie._createIn(o),Be._createAt(t,"end")),this.remove(Ie._createOn(o)),i}insert(e,t){ut(t=(0,a.TW)(t)?[...t]:[t],this.document);const o=t.reduce(((e,t)=>{const o=e[e.length-1],s=!t.is("uiElement");return o&&o.breakAttributes==s?o.nodes.push(t):e.push({breakAttributes:s,nodes:[t]}),e}),[]);let s=null,i=e;for(const{nodes:e,breakAttributes:t}of o){const o=this._insertNodes(i,e,t);s||(s=o.start),i=o.end}return s?new Ie(s,i):new Ie(e)}remove(e){const t=e instanceof Ie?e:Ie._createOn(e);if(ft(t,this.document),t.isCollapsed)return new it(this.document);const{start:o,end:s}=this._breakAttributesRange(t,!0),i=o.parent,r=s.offset-o.offset,n=i._removeChildren(o.offset,r);for(const e of n)this._removeFromClonedElementsGroup(e);const a=this.mergeAttributes(o);return t.start=a,t.end=a.clone(),new it(this.document,n)}clear(e,t){ft(e,this.document);const o=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const s of o){const o=s.item;let i;if(o.is("element")&&t.isSimilar(o))i=Ie._createOn(o);else if(!s.nextPosition.isAfter(e.start)&&o.is("$textProxy")){const e=o.getAncestors().find((e=>e.is("element")&&t.isSimilar(e)));e&&(i=Ie._createIn(e))}i&&(i.end.isAfter(e.end)&&(i.end=e.end),i.start.isBefore(e.start)&&(i.start=e.start),this.remove(i))}}move(e,t){let o;if(t.isAfter(e.end)){const s=(t=this._breakAttributes(t,!0)).parent,i=s.childCount;e=this._breakAttributesRange(e,!0),o=this.remove(e),t.offset+=s.childCount-i}else o=this.remove(e);return this.insert(t,o)}wrap(e,t){if(!(t instanceof Ge))throw new a.Bb("view-writer-wrap-invalid-attribute",this.document);if(ft(e,this.document),e.isCollapsed){let s=e.start;s.parent.is("element")&&(o=s.parent,!Array.from(o.getChildren()).some((e=>!e.is("uiElement"))))&&(s=s.getLastMatchingPosition((e=>e.item.is("uiElement")))),s=this._wrapPosition(s,t);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(e.start)&&this.setSelection(s),new Ie(s)}return this._wrapRange(e,t);var o}unwrap(e,t){if(!(t instanceof Ge))throw new a.Bb("view-writer-unwrap-invalid-attribute",this.document);if(ft(e,this.document),e.isCollapsed)return e;const{start:o,end:s}=this._breakAttributesRange(e,!0),i=o.parent,r=this._unwrapChildren(i,o.offset,s.offset,t),n=this.mergeAttributes(r.start);n.isEqual(r.start)||r.end.offset--;const c=this.mergeAttributes(r.end);return new Ie(n,c)}rename(e,t){const o=new Se(this.document,e,t.getAttributes());return this.insert(Be._createAfter(t),o),this.move(Ie._createIn(t),Be._createAt(o,0)),this.remove(Ie._createOn(t)),o}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return Be._createAt(e,t)}createPositionAfter(e){return Be._createAfter(e)}createPositionBefore(e){return Be._createBefore(e)}createRange(e,t){return new Ie(e,t)}createRangeOn(e){return Ie._createOn(e)}createRangeIn(e){return Ie._createIn(e)}createSelection(...e){return new Ne(...e)}createSlot(e="children"){if(!this._slotFactory)throw new a.Bb("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,e)}_registerSlotFactory(e){this._slotFactory=e}_clearSlotFactory(){this._slotFactory=null}_insertNodes(e,t,o){let s,i;if(s=o?nt(e):e.parent.is("$text")?e.parent.parent:e.parent,!s)throw new a.Bb("view-writer-invalid-position-container",this.document);i=o?this._breakAttributes(e,!0):e.parent.is("$text")?lt(e):e;const r=s._insertChild(i.offset,t);for(const e of t)this._addToClonedElementsGroup(e);const n=i.getShiftedBy(r),c=this.mergeAttributes(i);c.isEqual(i)||n.offset--;const l=this.mergeAttributes(n);return new Ie(c,l)}_wrapChildren(e,t,o,s){let i=t;const r=[];for(;i<o;){const t=e.getChild(i),o=t.is("$text"),n=t.is("attributeElement");if(n&&this._wrapAttributeElement(s,t))r.push(new Be(e,i));else if(o||!n||at(s,t)){const o=s._clone();t._remove(),o._appendChild(t),e._insertChild(i,o),this._addToClonedElementsGroup(o),r.push(new Be(e,i))}else this._wrapChildren(t,0,t.childCount,s);i++}let n=0;for(const e of r){if(e.offset-=n,e.offset==t)continue;this.mergeAttributes(e).isEqual(e)||(n++,o--)}return Ie._createFromParentsAndOffsets(e,t,e,o)}_unwrapChildren(e,t,o,s){let i=t;const r=[];for(;i<o;){const t=e.getChild(i);if(t.is("attributeElement"))if(t.isSimilar(s)){const s=t.getChildren(),n=t.childCount;t._remove(),e._insertChild(i,s),this._removeFromClonedElementsGroup(t),r.push(new Be(e,i),new Be(e,i+n)),i+=n,o+=n-1}else this._unwrapAttributeElement(s,t)?(r.push(new Be(e,i),new Be(e,i+1)),i++):(this._unwrapChildren(t,0,t.childCount,s),i++);else i++}let n=0;for(const e of r){if(e.offset-=n,e.offset==t||e.offset==o)continue;this.mergeAttributes(e).isEqual(e)||(n++,o--)}return Ie._createFromParentsAndOffsets(e,t,e,o)}_wrapRange(e,t){const{start:o,end:s}=this._breakAttributesRange(e,!0),i=o.parent,r=this._wrapChildren(i,o.offset,s.offset,t),n=this.mergeAttributes(r.start);n.isEqual(r.start)||r.end.offset--;const a=this.mergeAttributes(r.end);return new Ie(n,a)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return ct(e.clone());e.parent.is("$text")&&(e=lt(e));const o=this.createAttributeElement("_wrapPosition-fake-element");o._priority=Number.POSITIVE_INFINITY,o.isSimilar=()=>!1,e.parent._insertChild(e.offset,o);const s=new Ie(e,e.getShiftedBy(1));this.wrap(s,t);const i=new Be(o.parent,o.index);o._remove();const r=i.nodeBefore,n=i.nodeAfter;return r instanceof y&&n instanceof y?dt(r,n):ct(i)}_wrapAttributeElement(e,t){if(!gt(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const o of e.getAttributeKeys())if("class"!==o&&"style"!==o&&t.hasAttribute(o)&&t.getAttribute(o)!==e.getAttribute(o))return!1;for(const o of e.getStyleNames())if(t.hasStyle(o)&&t.getStyle(o)!==e.getStyle(o))return!1;for(const o of e.getAttributeKeys())"class"!==o&&"style"!==o&&(t.hasAttribute(o)||this.setAttribute(o,e.getAttribute(o),t));for(const o of e.getStyleNames())t.hasStyle(o)||this.setStyle(o,e.getStyle(o),t);for(const o of e.getClassNames())t.hasClass(o)||this.addClass(o,t);return!0}_unwrapAttributeElement(e,t){if(!gt(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const o of e.getAttributeKeys())if("class"!==o&&"style"!==o&&(!t.hasAttribute(o)||t.getAttribute(o)!==e.getAttribute(o)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(const o of e.getStyleNames())if(!t.hasStyle(o)||t.getStyle(o)!==e.getStyle(o))return!1;for(const o of e.getAttributeKeys())"class"!==o&&"style"!==o&&this.removeAttribute(o,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){const o=e.start,s=e.end;if(ft(e,this.document),e.isCollapsed){const o=this._breakAttributes(e.start,t);return new Ie(o,o)}const i=this._breakAttributes(s,t),r=i.parent.childCount,n=this._breakAttributes(o,t);return i.offset+=i.parent.childCount-r,new Ie(n,i)}_breakAttributes(e,t=!1){const o=e.offset,s=e.parent;if(e.parent.is("emptyElement"))throw new a.Bb("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new a.Bb("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new a.Bb("view-writer-cannot-break-raw-element",this.document);if(!t&&s.is("$text")&&pt(s.parent))return e.clone();if(pt(s))return e.clone();if(s.is("$text"))return this._breakAttributes(lt(e),t);if(o==s.childCount){const e=new Be(s.parent,s.index+1);return this._breakAttributes(e,t)}if(0===o){const e=new Be(s.parent,s.index);return this._breakAttributes(e,t)}{const e=s.index+1,i=s._clone();s.parent._insertChild(e,i),this._addToClonedElementsGroup(i);const r=s.childCount-o,n=s._removeChildren(o,r);i._appendChild(n);const a=new Be(s.parent,e);return this._breakAttributes(a,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(const t of e.getChildren())this._addToClonedElementsGroup(t);const t=e.id;if(!t)return;let o=this._cloneGroups.get(t);o||(o=new Set,this._cloneGroups.set(t,o)),o.add(e),e._clonesGroup=o}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const t of e.getChildren())this._removeFromClonedElementsGroup(t);const t=e.id;if(!t)return;const o=this._cloneGroups.get(t);o&&o.delete(e)}}function nt(e){let t=e.parent;for(;!pt(t);){if(!t)return;t=t.parent}return t}function at(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function ct(e){const t=e.nodeBefore;if(t&&t.is("$text"))return new Be(t,t.data.length);const o=e.nodeAfter;return o&&o.is("$text")?new Be(o,0):e}function lt(e){if(e.offset==e.parent.data.length)return new Be(e.parent.parent,e.parent.index+1);if(0===e.offset)return new Be(e.parent.parent,e.parent.index);const t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new y(e.root.document,t)),new Be(e.parent.parent,e.parent.index+1)}function dt(e,t){const o=e.data.length;return e._data+=t.data,t._remove(),new Be(e,o)}const ht=[y,Ge,Se,Ye,ot,Qe];function ut(e,t){for(const o of e){if(!ht.some((e=>o instanceof e)))throw new a.Bb("view-writer-insert-invalid-node-type",t);o.is("$text")||ut(o.getChildren(),t)}}function pt(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function ft(e,t){const o=nt(e.start),s=nt(e.end);if(!o||!s||o!==s)throw new a.Bb("view-writer-invalid-range-container",t)}function gt(e,t){return null===e.id&&null===t.id}const mt=e=>e.createTextNode(" "),bt=e=>{const t=e.createElement("span");return t.dataset.ckeFiller="true",t.innerText=" ",t},_t=e=>{const t=e.createElement("br");return t.dataset.ckeFiller="true",t},kt=7,wt="â ".repeat(kt);function vt(e){return"string"==typeof e?e.substr(0,kt)===wt:(0,a.Gs)(e)&&e.data.substr(0,kt)===wt}function yt(e){return e.data.length==kt&&vt(e)}function xt(e){const t="string"==typeof e?e:e.data;return vt(e)?t.slice(kt):t}function Pt(e,t){if(t.keyCode==a.Do.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,o=e.getRangeAt(0).startOffset;vt(t)&&o<=kt&&e.collapse(t,0)}}}var Ct=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/renderer.css"),Tt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i()(Ct.Z,Tt);Ct.Z.locals;class Et extends((0,a.Re)()){constructor(e,t){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=e,this.selection=t,this.set("isFocused",!1),this.set("isSelecting",!1),a.OB.isBlink&&!a.OB.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this.set("isComposing",!1),this.on("change:isComposing",(()=>{this.isComposing||this.render()}))}markToSync(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e){throw new a.Bb("view-renderer-unknown-type",this)}this.markedChildren.add(t)}}}render(){if(this.isComposing&&!a.OB.isAndroid)return;let e=null;const t=!(a.OB.isBlink&&!a.OB.isAndroid)||!this.isSelecting;for(const e of this.markedChildren)this._updateChildrenMappings(e);t?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(e=this.domConverter.domPositionToView(this._inlineFiller),e&&e.parent.is("$text")&&(e=Be._createBefore(e.parent)));for(const e of this.markedAttributes)this._updateAttrs(e);for(const t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(const t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(t)if(e){const t=this.domConverter.viewPositionToDom(e),o=t.parent.ownerDocument;vt(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=At(o,t.parent,t.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const o=Array.from(t.childNodes),s=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),i=this._diffNodeLists(o,s),r=this._findUpdateActions(i,o,s,St);if(-1!==r.indexOf("update")){const t={equal:0,insert:0,delete:0};for(const i of r)if("update"===i){const i=t.equal+t.insert,r=t.equal+t.delete,n=e.getChild(i);!n||n.is("uiElement")||n.is("rawElement")||this._updateElementMappings(n,o[r]),(0,a.Od)(s[i]),t.equal++}else t[i]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();return e.parent.is("$text")?Be._createBefore(e.parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&(0,a.Gs)(t.parent)&&vt(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!vt(e))throw new a.Bb("view-renderer-filler-was-lost",this);yt(e)?e.remove():e.data=e.data.substr(kt),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,o=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;const t=e.findAncestor((e=>e.hasAttribute("contenteditable")));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(o===t.getFillerOffset())return!1;const s=e.nodeBefore,i=e.nodeAfter;return!(s instanceof y||i instanceof y)&&(!a.OB.isAndroid||!s&&!i)}_updateText(e,t){const o=this.domConverter.findCorrespondingDomText(e);let s=this.domConverter.viewToDom(e).data;const i=t.inlineFillerPosition;i&&i.parent==e.parent&&i.offset==e.index&&(s=wt+s),jt(o,s)}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const o=Array.from(t.attributes).map((e=>e.name)),s=e.getAttributeKeys();for(const o of s)this.domConverter.setDomElementAttribute(t,o,e.getAttribute(o),e);for(const s of o)e.hasAttribute(s)||this.domConverter.removeDomElementAttribute(t,s)}_updateChildren(e,t){const o=this.domConverter.mapViewToDom(e);if(!o)return;if(a.OB.isAndroid){let e=null;for(const t of Array.from(o.childNodes)){if(e&&(0,a.Gs)(e)&&(0,a.Gs)(t)){o.normalize();break}e=t}}const s=t.inlineFillerPosition,i=o.childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));s&&s.parent===e&&At(o.ownerDocument,r,s.offset);const n=this._diffNodeLists(i,r),c=this._findUpdateActions(n,i,r,Ot);let l=0;const d=new Set;for(const e of c)"delete"===e?(d.add(i[l]),(0,a.Od)(i[l])):"equal"!==e&&"update"!==e||l++;l=0;for(const e of c)"insert"===e?((0,a.ZQ)(o,l,r[l]),l++):"update"===e?(jt(i[l],r[l].data),l++):"equal"===e&&(this._markDescendantTextToSync(this.domConverter.domToView(r[l])),l++);for(const e of d)e.parentNode||this.domConverter.unbindDomElement(e)}_diffNodeLists(e,t){return e=function(e,t){const o=Array.from(e);if(0==o.length||!t)return o;const s=o[o.length-1];s==t&&o.pop();return o}(e,this._fakeSelectionContainer),(0,a.Hg)(e,t,Rt.bind(null,this.domConverter))}_findUpdateActions(e,t,o,s){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let i=[],r=[],n=[];const c={equal:0,insert:0,delete:0};for(const l of e)"insert"===l?n.push(o[c.equal+c.insert]):"delete"===l?r.push(t[c.equal+c.delete]):(i=i.concat((0,a.Hg)(r,n,s).map((e=>"equal"===e?"update":e))),i.push("equal"),r=[],n=[]),c[l]++;return i.concat((0,a.Hg)(r,n,s).map((e=>"equal"===e?"update":e)))}_markDescendantTextToSync(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(const t of e.getChildren())this._markDescendantTextToSync(t)}_updateSelection(){if(a.OB.isBlink&&!a.OB.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(e)):this.isComposing&&a.OB.isAndroid||this._updateDomSelection(e))}_updateFakeSelection(e){const t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){const t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));const o=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(o,this.selection),!this._fakeSelectionNeedsUpdate(e))return;o.parentElement&&o.parentElement==e||e.appendChild(o),o.textContent=this.selection.fakeSelectionLabel||" ";const s=t.getSelection(),i=t.createRange();s.removeAllRanges(),i.selectNodeContents(o),s.addRange(i)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const o=this.domConverter.viewPositionToDom(this.selection.anchor),s=this.domConverter.viewPositionToDom(this.selection.focus);t.setBaseAndExtent(o.parent,o.offset,s.parent,s.offset),a.OB.isGecko&&function(e,t){const o=e.parent;if(o.nodeType!=Node.ELEMENT_NODE||e.offset!=o.childNodes.length-1)return;const s=o.childNodes[e.offset];s&&"BR"==s.tagName&&t.addRange(t.getRangeAt(0))}(s,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;const t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer,o=e.ownerDocument.getSelection();return!t||t.parentElement!==e||(o.anchorNode!==t&&!t.contains(o.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const e of this.domDocuments){const t=e.getSelection();if(t.rangeCount){const o=e.activeElement,s=this.domConverter.mapDomToView(o);o&&s&&t.removeAllRanges()}}}_removeFakeSelection(){const e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function At(e,t,o){const s=t instanceof Array?t:t.childNodes,i=s[o];if((0,a.Gs)(i))return i.data=wt+i.data,i;{const i=e.createTextNode(wt);return Array.isArray(t)?s.splice(o,0,i):(0,a.ZQ)(t,o,i),i}}function St(e,t){return(0,a.UG)(e)&&(0,a.UG)(t)&&!(0,a.Gs)(e)&&!(0,a.Gs)(t)&&!(0,a.C3)(e)&&!(0,a.C3)(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Ot(e,t){return(0,a.UG)(e)&&(0,a.UG)(t)&&(0,a.Gs)(e)&&(0,a.Gs)(t)}function Rt(e,t,o){return t===o||((0,a.Gs)(t)&&(0,a.Gs)(o)?t.data===o.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(o)))}function jt(e,t){const o=e.data;if(o==t)return;const s=(0,a.HZ)(o,t);for(const t of s)"insert"===t.type?e.insertData(t.index,t.values.join("")):e.deleteData(t.index,t.howMany)}const Mt=_t(a.global.document),Vt=mt(a.global.document),Bt=bt(a.global.document),It="data-ck-unsafe-attribute-",Dt="data-ck-unsafe-element";class Nt{constructor(e,{blockFillerMode:t,renderingMode:o="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new C,this._inlineObjectElementMatcher=new C,this._elementsWithTemporaryCustomProperties=new Set,this.document=e,this.renderingMode=o,this.blockFillerMode=t||("editing"===o?"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="editing"===this.renderingMode?a.global.document:a.global.document.implementation.createHTMLDocument("")}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new Ne(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(const t of Array.from(e.children))this.unbindDomElement(t)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,o){return"data"===this.renderingMode||!(e=e.toLowerCase()).startsWith("on")&&(("srcdoc"!==e||!t.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===o&&("src"===e||"srcset"===e)||("source"===o&&"srcset"===e||!t.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(e,t){if("data"===this.renderingMode)return void(e.innerHTML=t);const o=(new DOMParser).parseFromString(t,"text/html"),s=o.createDocumentFragment(),i=o.body.childNodes;for(;i.length>0;)s.appendChild(i[0]);const r=o.createTreeWalker(s,NodeFilter.SHOW_ELEMENT),n=[];let a;for(;a=r.nextNode();)n.push(a);for(const e of n){for(const t of e.getAttributeNames())this.setDomElementAttribute(e,t,e.getAttribute(t));const t=e.tagName.toLowerCase();this._shouldRenameElement(t)&&(Zt(t),e.replaceWith(this._createReplacementDomElement(t,e)))}for(;e.firstChild;)e.firstChild.remove();e.append(s)}viewToDom(e,t={}){if(e.is("$text")){const t=this._processDataFromViewText(e);return this._domDocument.createTextNode(t)}{const o=e;if(this.mapViewToDom(o)){if(!o.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(o);this._elementsWithTemporaryCustomProperties.add(o)}let s;if(o.is("documentFragment"))s=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(s,o);else{if(o.is("uiElement"))return s="$comment"===o.name?this._domDocument.createComment(o.getCustomProperty("$rawContent")):o.render(this._domDocument,this),t.bind&&this.bindElements(s,o),s;this._shouldRenameElement(o.name)?(Zt(o.name),s=this._createReplacementDomElement(o.name)):s=o.hasAttribute("xmlns")?this._domDocument.createElementNS(o.getAttribute("xmlns"),o.name):this._domDocument.createElement(o.name),o.is("rawElement")&&o.render(s,this),t.bind&&this.bindElements(s,o);for(const e of o.getAttributeKeys())this.setDomElementAttribute(s,e,o.getAttribute(e),o)}if(!1!==t.withChildren)for(const e of this.viewChildrenToDom(o,t))s.appendChild(e);return s}}setDomElementAttribute(e,t,o,s){const i=this.shouldRenderAttribute(t,o,e.tagName.toLowerCase())||s&&s.shouldRenderUnsafeAttribute(t);i||(0,a.KE)("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:o}),(0,a.$b)(t)?(e.hasAttribute(t)&&!i?e.removeAttribute(t):e.hasAttribute(It+t)&&i&&e.removeAttribute(It+t),e.setAttribute(i?t:It+t,o)):(0,a.KE)("domconverter-invalid-attribute-detected",{domElement:e,key:t,value:o})}removeDomElementAttribute(e,t){t!=Dt&&(e.removeAttribute(t),e.removeAttribute(It+t))}*viewChildrenToDom(e,t={}){const o=e.getFillerOffset&&e.getFillerOffset();let s=0;for(const i of e.getChildren()){o===s&&(yield this._getBlockFiller());const e=i.is("element")&&!!i.getCustomProperty("dataPipeline:transparentRendering")&&!(0,a.Ps)(i.getAttributes());e&&"data"==this.renderingMode?yield*this.viewChildrenToDom(i,t):(e&&(0,a.KE)("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:i}),yield this.viewToDom(i,t)),s++}o===s&&(yield this._getBlockFiller())}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),o=this.viewPositionToDom(e.end),s=this._domDocument.createRange();return s.setStart(t.parent,t.offset),s.setEnd(o.parent,o.offset),s}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const o=this.findCorrespondingDomText(t);if(!o)return null;let s=e.offset;return vt(o)&&(s+=kt),{parent:o,offset:s}}{let o,s,i;if(0===e.offset){if(o=this.mapViewToDom(t),!o)return null;i=o.childNodes[0]}else{const t=e.nodeBefore;if(s=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(t),!s)return null;o=s.parentNode,i=s.nextSibling}if((0,a.Gs)(i)&&vt(i))return{parent:i,offset:kt};return{parent:o,offset:s?(0,a.cq)(s)+1:0}}}domToView(e,t={}){const o=[],s=this._domToView(e,t,o),i=s.next().value;return i?(s.next(),this._processDomInlineNodes(null,o,t),i.is("$text")&&0==i.data.length?null:i):null}*domChildrenToView(e,t={},o=[]){for(let s=0;s<e.childNodes.length;s++){const i=e.childNodes[s],r=this._domToView(i,t,o),n=r.next().value;null!==n&&(this._isBlockViewElement(n)&&this._processDomInlineNodes(e,o,t),yield n,r.next())}this._processDomInlineNodes(e,o,t)}domSelectionToView(e){if(function(e){if(!a.OB.isGecko)return!1;if(!e.rangeCount)return!1;const t=e.getRangeAt(0).startContainer;try{Object.prototype.toString.call(t)}catch(e){return!0}return!1}(e))return new Ne([]);if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;(0,a.Gs)(t)&&(t=t.parentNode);const o=this.fakeSelectionToView(t);if(o)return o}const t=this.isDomSelectionBackward(e),o=[];for(let t=0;t<e.rangeCount;t++){const s=e.getRangeAt(t),i=this.domRangeToView(s);i&&o.push(i)}return new Ne(o,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),o=this.domPositionToView(e.endContainer,e.endOffset);return t&&o?new Ie(t,o):null}domPositionToView(e,t=0){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,(0,a.cq)(e));const o=this.mapDomToView(e);if(o&&(o.is("uiElement")||o.is("rawElement")))return Be._createBefore(o);if((0,a.Gs)(e)){if(yt(e))return this.domPositionToView(e.parentNode,(0,a.cq)(e));const o=this.findCorrespondingViewText(e);let s=t;return o?(vt(e)&&(s-=kt,s=s<0?0:s),new Be(o,s)):null}if(0===t){const t=this.mapDomToView(e);if(t)return new Be(t,0)}else{const o=e.childNodes[t-1];if((0,a.Gs)(o)&&yt(o)||o&&this.isBlockFiller(o))return this.domPositionToView(o.parentNode,(0,a.cq)(o));const s=(0,a.Gs)(o)?this.findCorrespondingViewText(o):this.mapDomToView(o);if(s&&s.parent)return new Be(s.parent,s.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(yt(e))return null;const t=this.getHostViewElement(e);if(t)return t;const o=e.previousSibling;if(o){if(!this.isElement(o))return null;const e=this.mapDomToView(o);if(e){const t=e.nextSibling;return t instanceof y?t:null}}else{const t=this.mapDomToView(e.parentNode);if(t){const e=t.getChild(0);return e instanceof y?e:null}}return null}mapViewToDom(e){return this._viewToDomMapping.get(e)}findCorrespondingDomText(e){const t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}focus(e){const t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){const{scrollX:e,scrollY:o}=a.global.window,s=[];Ft(t,(e=>{const{scrollLeft:t,scrollTop:o}=e;s.push([t,o])})),t.focus(),Ft(t,(e=>{const[t,o]=s.shift();e.scrollLeft=t,e.scrollTop=o})),a.global.window.scrollTo(e,o)}}_clearDomSelection(){const e=this.mapViewToDom(this.document.selection.editableElement);if(!e)return;const t=e.ownerDocument.defaultView.getSelection(),o=this.domSelectionToView(t);o&&o.rangeCount>0&&t.removeAllRanges()}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(e){return"br"==this.blockFillerMode?e.isEqualNode(Mt):!("BR"!==e.tagName||!Lt(e,this.blockElements)||1!==e.parentNode.childNodes.length)||(e.isEqualNode(Bt)||function(e,t){const o=e.isEqualNode(Vt);return o&&Lt(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements))}isDomSelectionBackward(e){if(e.isCollapsed)return!1;const t=this._domDocument.createRange();try{t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset)}catch(e){return!1}const o=t.collapsed;return t.detach(),o}getHostViewElement(e){const t=(0,a.dk)(e);for(t.pop();t.length;){const e=t.pop(),o=this._domToViewMapping.get(e);if(o&&(o.is("uiElement")||o.is("rawElement")))return o}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}registerInlineObjectMatcher(e){this._inlineObjectElementMatcher.add(e)}_clearTemporaryCustomProperties(){for(const e of this._elementsWithTemporaryCustomProperties)e._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return mt(this._domDocument);case"markedNbsp":return bt(this._domDocument);case"br":return _t(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if((0,a.Gs)(e)&&vt(e)&&t<kt)return!1;if(this.isElement(e)&&vt(e.childNodes[t]))return!1;const o=this.mapDomToView(e);return!o||!o.is("uiElement")&&!o.is("rawElement")}*_domToView(e,t,o){if(this.isBlockFiller(e))return null;const s=this.getHostViewElement(e);if(s)return s;if((0,a.C3)(e)&&t.skipComments)return null;if((0,a.Gs)(e)){if(yt(e))return null;{const t=e.data;if(""===t)return null;const s=new y(this.document,t);return o.push(s),s}}{let s=this.mapDomToView(e);if(s)return this._isInlineObjectElement(s)&&o.push(s),s;if(this.isDocumentFragment(e))s=new it(this.document),t.bind&&this.bindDocumentFragments(e,s);else{s=this._createViewElement(e,t),t.bind&&this.bindElements(e,s);const i=e.attributes;if(i)for(let e=i.length,t=0;t<e;t++)s._setAttribute(i[t].name,i[t].value);if(this._isViewElementWithRawContent(s,t))return s._setCustomProperty("$rawContent",e.innerHTML),this._isBlockViewElement(s)||o.push(s),s;if((0,a.C3)(e))return s._setCustomProperty("$rawContent",e.data),s}yield s;const i=[];if(!1!==t.withChildren)for(const o of this.domChildrenToView(e,t,i))s._appendChild(o);if(this._isInlineObjectElement(s))o.push(s);else for(const e of i)o.push(e)}}_processDomInlineNodes(e,t,o){if(!t.length)return;if(e&&!this.isDocumentFragment(e)&&!this._isBlockDomElement(e))return;let s=!1;for(let e=0;e<t.length;e++){const i=t[e];if(!i.is("$text")){s=!1;continue}let r,n=!1;if(zt(i,this.preElements))r=xt(i.data);else{r=i.data.replace(/[ \n\t\r]{1,}/g," "),n=/[^\S\u00A0]/.test(r.charAt(r.length-1));const a=e>0?t[e-1]:null,c=e+1<t.length?t[e+1]:null,l=!a||a.is("element")&&"br"==a.name||s,d=!c&&!vt(i.data);!1!==o.withChildren&&(l&&(r=r.replace(/^ /,"")),d&&(r=r.replace(/ $/,""))),r=xt(r),r=r.replace(/ \u00A0/g," ");const h=c&&c.is("element")&&"br"!=c.name,u=c&&c.is("$text")&&" "==c.data.charAt(0);(/[ \u00A0]\u00A0$/.test(r)||!c||h||u)&&(r=r.replace(/\u00A0$/," ")),(l||a&&a.is("element")&&"br"!=a.name)&&(r=r.replace(/^\u00A0/," "))}0==r.length&&i.parent?(i._remove(),t.splice(e,1),e--):(i._data=r,s=n)}t.length=0}_processDataFromViewText(e){let t=e.data;if(e.getAncestors().some((e=>this.preElements.includes(e.name))))return t;if(" "==t.charAt(0)){const o=this._getTouchingInlineViewNode(e,!1);!(o&&o.is("$textProxy")&&this._nodeEndsWithSpace(o))&&o||(t=" "+t.substr(1))}if(" "==t.charAt(t.length-1)){const o=this._getTouchingInlineViewNode(e,!0),s=o&&o.is("$textProxy")&&" "==o.data.charAt(0);" "!=t.charAt(t.length-2)&&o&&!s||(t=t.substr(0,t.length-1)+" ")}return t.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(e){if(e.getAncestors().some((e=>this.preElements.includes(e.name))))return!1;const t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_getTouchingInlineViewNode(e,t){const o=new Ve({startPosition:t?Be._createAfter(e):Be._createBefore(e),direction:t?"forward":"backward"});for(const e of o){if(e.item.is("element","br"))return null;if(this._isInlineObjectElement(e.item))return e.item;if(e.item.is("containerElement"))return null;if(e.item.is("$textProxy"))return e.item}return null}_isBlockDomElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isBlockViewElement(e){return e.is("element")&&this.blockElements.includes(e.name)}_isInlineObjectElement(e){return!!e.is("element")&&("br"==e.name||this.inlineObjectElements.includes(e.name)||!!this._inlineObjectElementMatcher.match(e))}_createViewElement(e,t){if((0,a.C3)(e))return new Qe(this.document,"$comment");const o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new Ee(this.document,o)}_isViewElementWithRawContent(e,t){return!1!==t.withChildren&&e.is("element")&&!!this._rawContentElementMatcher.match(e)}_shouldRenameElement(e){const t=e.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(t)}_createReplacementDomElement(e,t){const o=this._domDocument.createElement("span");if(o.setAttribute(Dt,e),t){for(;t.firstChild;)o.appendChild(t.firstChild);for(const e of t.getAttributeNames())o.setAttribute(e,t.getAttribute(e))}return o}}function zt(e,t){return e.getAncestors().some((e=>e.is("element")&&t.includes(e.name)))}function Ft(e,t){let o=e;for(;o;)t(o),o=o.parentElement}function Lt(e,t){const o=e.parentNode;return!!o&&!!o.tagName&&t.includes(o.tagName.toLowerCase())}function Zt(e){"script"===e&&(0,a.KE)("domconverter-unsafe-script-element-detected"),"style"===e&&(0,a.KE)("domconverter-unsafe-style-element-detected")}class Wt extends((0,a.Xu)()){constructor(e){super(),this._isEnabled=!1,this.view=e,this.document=e.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}var $t=o("./node_modules/lodash-es/assignIn.js");class qt{constructor(e,t,o){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,(0,$t.Z)(this,o)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Ht extends Wt{constructor(){super(...arguments),this.useCapture=!1}observe(e){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((t=>{this.listenTo(e,t,((e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)}),{useCapture:this.useCapture})}))}stopObserving(e){this.stopListening(e)}fire(e,t,o){this.isEnabled&&this.document.fire(e,new qt(this.view,t,o))}}class Ut extends Ht{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(e){const t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return(0,a.Cq)(this)}};this.fire(e.type,e,t)}}var Gt=o("./node_modules/lodash-es/debounce.js");class Kt extends Wt{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=(0,Gt.Z)((e=>{this.document.fire("selectionChangeDone",e)}),200)}observe(){const e=this.document;e.on("arrowKey",((t,o)=>{e.selection.isFake&&this.isEnabled&&o.preventDefault()}),{context:"$capture"}),e.on("arrowKey",((t,o)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(o.keyCode)}),{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,o=new Ne(t.getRanges(),{backward:t.isBackward,fake:!1});e!=a.Do.arrowleft&&e!=a.Do.arrowup||o.setTo(o.getFirstPosition()),e!=a.Do.arrowright&&e!=a.Do.arrowdown||o.setTo(o.getLastPosition());const s={oldSelection:t,newSelection:o,domSelection:null};this.document.fire("selectionChange",s),this._fireSelectionChangeDoneDebounced(s)}}const Jt=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Yt=function(e){return this.__data__.has(e)};function Xt(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new V.Z;++t<o;)this.add(e[t])}Xt.prototype.add=Xt.prototype.push=Jt,Xt.prototype.has=Yt;const Qt=Xt;const eo=function(e,t){for(var o=-1,s=null==e?0:e.length;++o<s;)if(t(e[o],o,e))return!0;return!1};const to=function(e,t){return e.has(t)};const oo=function(e,t,o,s,i,r){var n=1&o,a=e.length,c=t.length;if(a!=c&&!(n&&c>a))return!1;var l=r.get(e),d=r.get(t);if(l&&d)return l==t&&d==e;var h=-1,u=!0,p=2&o?new Qt:void 0;for(r.set(e,t),r.set(t,e);++h<a;){var f=e[h],g=t[h];if(s)var m=n?s(g,f,h,t,e,r):s(f,g,h,e,t,r);if(void 0!==m){if(m)continue;u=!1;break}if(p){if(!eo(t,(function(e,t){if(!to(p,t)&&(f===e||i(f,e,o,s,r)))return p.push(t)}))){u=!1;break}}else if(f!==g&&!i(f,g,o,s,r)){u=!1;break}}return r.delete(e),r.delete(t),u};var so=o("./node_modules/lodash-es/_Symbol.js"),io=o("./node_modules/lodash-es/_Uint8Array.js");const ro=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e,s){o[++t]=[s,e]})),o};const no=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e){o[++t]=e})),o};var ao=so.Z?so.Z.prototype:void 0,co=ao?ao.valueOf:void 0;const lo=function(e,t,o,s,i,r,n){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new io.Z(e),new io.Z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,X.Z)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=ro;case"[object Set]":var c=1&s;if(a||(a=no),e.size!=t.size&&!c)return!1;var l=n.get(e);if(l)return l==t;s|=2,n.set(e,t);var d=oo(a(e),a(t),s,i,r,n);return n.delete(e),d;case"[object Symbol]":if(co)return co.call(e)==co.call(t)}return!1};var ho=o("./node_modules/lodash-es/_getAllKeys.js"),uo=Object.prototype.hasOwnProperty;const po=function(e,t,o,s,i,r){var n=1&o,a=(0,ho.Z)(e),c=a.length;if(c!=(0,ho.Z)(t).length&&!n)return!1;for(var l=c;l--;){var d=a[l];if(!(n?d in t:uo.call(t,d)))return!1}var h=r.get(e),u=r.get(t);if(h&&u)return h==t&&u==e;var p=!0;r.set(e,t),r.set(t,e);for(var f=n;++l<c;){var g=e[d=a[l]],m=t[d];if(s)var b=n?s(m,g,d,t,e,r):s(g,m,d,e,t,r);if(!(void 0===b?g===m||i(g,m,o,s,r):b)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var _=e.constructor,k=t.constructor;_==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof k&&k instanceof k||(p=!1)}return r.delete(e),r.delete(t),p};var fo=o("./node_modules/lodash-es/_getTag.js"),go="[object Arguments]",mo="[object Array]",bo="[object Object]",_o=Object.prototype.hasOwnProperty;const ko=function(e,t,o,s,i,r){var n=(0,S.Z)(e),a=(0,S.Z)(t),c=n?mo:(0,fo.Z)(e),l=a?mo:(0,fo.Z)(t),d=(c=c==go?bo:c)==bo,h=(l=l==go?bo:l)==bo,u=c==l;if(u&&(0,le.Z)(e)){if(!(0,le.Z)(t))return!1;n=!0,d=!1}if(u&&!d)return r||(r=new J.Z),n||(0,he.Z)(e)?oo(e,t,o,s,i,r):lo(e,t,c,o,s,i,r);if(!(1&o)){var p=d&&_o.call(e,"__wrapped__"),f=h&&_o.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return r||(r=new J.Z),i(g,m,o,s,r)}}return!!u&&(r||(r=new J.Z),po(e,t,o,s,i,r))};const wo=function e(t,o,s,i,r){return t===o||(null==t||null==o||!(0,ae.Z)(t)&&!(0,ae.Z)(o)?t!=t&&o!=o:ko(t,o,s,i,e,r))};const vo=function(e,t,o){var s=(o="function"==typeof o?o:void 0)?o(e,t):void 0;return void 0===s?wo(e,t,void 0,o):!!s};class yo extends Wt{constructor(e){super(e),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=e.domConverter,this.renderer=e._renderer,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.add(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}stopObserving(e){if(this._domElements.delete(e),this.isEnabled){this._mutationObserver.disconnect();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}}enable(){super.enable();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(0===e.length)return;const t=this.domConverter,o=new Set,s=new Set;for(const o of e){const e=t.mapDomToView(o.target);e&&(e.is("uiElement")||e.is("rawElement")||"childList"!==o.type||this._isBogusBrMutation(o)||s.add(e))}for(const i of e){const e=t.mapDomToView(i.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===i.type){const e=t.findCorrespondingViewText(i.target);e&&!s.has(e.parent)?o.add(e):!e&&vt(i.target)&&s.add(t.mapDomToView(i.target.parentNode))}}let i=!1;for(const e of o)i=!0,this.renderer.markToSync("text",e);for(const e of s){const o=t.mapViewToDom(e),s=Array.from(e.getChildren()),r=Array.from(t.domChildrenToView(o,{withChildren:!1}));vo(s,r,xo)||(i=!0,this.renderer.markToSync("children",e))}i&&this.view.forceRender()}_isBogusBrMutation(e){let t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}function xo(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}class Po extends Ht{constructor(e){super(e),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const t=this.document;t.on("focus",(()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout((()=>{this.flush(),e.change((()=>{}))}),50)})),t.on("blur",((o,s)=>{const i=t.selection.editableElement;null!==i&&i!==s.target||(t.isFocused=!1,this._isFocusChanging=!1,e.change((()=>{})))}))}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(e){this.fire(e.type,e)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Co extends Wt{constructor(e){super(e),this.mutationObserver=e.getObserver(yo),this.focusObserver=e.getObserver(Po),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=(0,Gt.Z)((e=>{this.document.fire("selectionChangeDone",e)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=(0,Gt.Z)((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(e){const t=e.ownerDocument,o=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,t),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(e,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(e,"keydown",o,{priority:"highest",useCapture:!0}),this.listenTo(e,"keyup",o,{priority:"highest",useCapture:!0}),this._documents.has(t)||(this.listenTo(t,"mouseup",o,{priority:"highest",useCapture:!0}),this.listenTo(t,"selectionchange",((e,o)=>{this.document.isComposing&&!a.OB.isAndroid||(this._handleSelectionChange(o,t),this._documentIsSelectingInactivityTimeoutDebounced())})),this._documents.add(t))}stopObserving(e){this.stopListening(e)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(e,t){if(!this.isEnabled)return;const o=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(o.anchorNode))return;this.mutationObserver.flush();const s=this.domConverter.domSelectionToView(o);if(0!=s.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(s)||!this.domConverter.isDomSelectionCorrect(o))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(s))this.view.forceRender();else{const e={oldSelection:this.selection,newSelection:s,domSelection:o};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class To extends Ht{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];const t=this.document;t.on("compositionstart",(()=>{t.isComposing=!0}),{priority:"low"}),t.on("compositionend",(()=>{t.isComposing=!1}),{priority:"low"})}onDomEvent(e){this.fire(e.type,e,{data:e.data})}}class Eo{constructor(e,t={}){this._files=t.cacheFiles?Ao(e):null,this._native=e}get files(){return this._files||(this._files=Ao(this._native)),this._files}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}setDragImage(e,t,o){this._native.setDragImage(e,t,o)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Ao(e){const t=Array.from(e.files||[]),o=Array.from(e.items||[]);return t.length?t:o.filter((e=>"file"===e.kind)).map((e=>e.getAsFile()))}class So extends Ht{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(e){const t=e.getTargetRanges(),o=this.view,s=o.document;let i=null,r=null,n=[];if(e.dataTransfer&&(i=new Eo(e.dataTransfer)),null!==e.data?r=e.data:i&&(r=i.getData("text/plain")),s.selection.isFake)n=Array.from(s.selection.getRanges());else if(t.length)n=t.map((e=>{const t=o.domConverter.domPositionToView(e.startContainer,e.startOffset),s=o.domConverter.domPositionToView(e.endContainer,e.endOffset);return t?o.createRange(t,s):s?o.createRange(s):void 0})).filter((e=>!!e));else if(a.OB.isAndroid){const t=e.target.ownerDocument.defaultView.getSelection();n=Array.from(o.domConverter.domSelectionToView(t).getRanges())}if(a.OB.isAndroid&&"insertCompositionText"==e.inputType&&r&&r.endsWith("\n"))this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:[o.createRange(n[0].end)]});else if("insertText"==e.inputType&&r&&r.includes("\n")){const t=r.split(/\n{1,2}/g);let o=n;for(let r=0;r<t.length;r++){const n=t[r];""!=n&&(this.fire(e.type,e,{data:n,dataTransfer:i,targetRanges:o,inputType:e.inputType,isComposing:e.isComposing}),o=[s.selection.getFirstRange()]),r+1<t.length&&(this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:o}),o=[s.selection.getFirstRange()])}}else this.fire(e.type,e,{data:r,dataTransfer:i,targetRanges:n,inputType:e.inputType,isComposing:e.isComposing})}}class Oo extends Wt{constructor(e){super(e),this.document.on("keydown",((e,t)=>{if(this.isEnabled&&(0,a.dj)(t.keyCode)){const o=new Fe(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(o,t),o.stop.called&&e.stop()}}))}observe(){}stopObserving(){}}class Ro extends Wt{constructor(e){super(e);const t=this.document;t.on("keydown",((e,o)=>{if(!this.isEnabled||o.keyCode!=a.Do.tab||o.ctrlKey)return;const s=new Fe(t,"tab",t.selection.getFirstRange());t.fire(s,o),s.stop.called&&e.stop()}))}observe(){}stopObserving(){}}const jo=function(e){return(0,k.Z)(e,5)};class Mo extends((0,a.Re)()){constructor(e){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 Ue(e),this.domConverter=new Nt(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Et(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new rt(this.document),this.addObserver(yo),this.addObserver(Po),this.addObserver(Co),this.addObserver(Ut),this.addObserver(Kt),this.addObserver(To),this.addObserver(Oo),this.addObserver(So),this.addObserver(Ro),this.document.on("arrowKey",Pt,{priority:"low"}),et(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})),a.OB.isiOS&&this.listenTo(this.document,"blur",((e,t)=>{this.domConverter.mapDomToView(t.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}))}attachDomRoot(e,t="main"){const o=this.document.getRoot(t);o._name=e.tagName.toLowerCase();const s={};for(const{name:t,value:i}of Array.from(e.attributes))s[t]=i,"class"===t?this._writer.addClass(i.split(" "),o):this._writer.setAttribute(t,i,o);this._initialDomRootAttributes.set(e,s);const i=()=>{this._writer.setAttribute("contenteditable",(!o.isReadOnly).toString(),o),o.isReadOnly?this._writer.addClass("ck-read-only",o):this._writer.removeClass("ck-read-only",o)};i(),this.domRoots.set(t,e),this.domConverter.bindElements(e,o),this._renderer.markToSync("children",o),this._renderer.markToSync("attributes",o),this._renderer.domDocuments.add(e.ownerDocument),o.on("change:children",((e,t)=>this._renderer.markToSync("children",t))),o.on("change:attributes",((e,t)=>this._renderer.markToSync("attributes",t))),o.on("change:text",((e,t)=>this._renderer.markToSync("text",t))),o.on("change:isReadOnly",(()=>this.change(i))),o.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const o of this._observers.values())o.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach((({name:e})=>t.removeAttribute(e)));const o=this._initialDomRootAttributes.get(t);for(const e in o)t.setAttribute(e,o[e]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t);for(const e of this._observers.values())e.stopObserving(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(const[e,o]of this.domRoots)t.observe(o,e);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values())e.disable()}enableObservers(){for(const e of this._observers.values())e.enable()}scrollToTheSelection({alignToTop:e,forceScroll:t,viewportOffset:o=20,ancestorOffset:s=20}={}){const i=this.document.selection.getFirstRange();if(!i)return;const r=jo({alignToTop:e,forceScroll:t,viewportOffset:o,ancestorOffset:s});"number"==typeof o&&(o={top:o,bottom:o,left:o,right:o});const n={target:this.domConverter.viewRangeToDom(i),viewportOffset:o,ancestorOffset:s,alignToTop:e,forceScroll:t};this.fire("scrollToTheSelection",n,r),(0,a.mR)(n)}focus(){if(!this.document.isFocused){const e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new a.Bb("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;const t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){a.Bb.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Po).flush(),this.change((()=>{}))}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return Be._createAt(e,t)}createPositionAfter(e){return Be._createAfter(e)}createPositionBefore(e){return Be._createBefore(e)}createRange(e,t){return new Ie(e,t)}createRangeOn(e){return Ie._createOn(e)}createRangeIn(e){return Ie._createIn(e)}createSelection(...e){return new Ne(...e)}_disableRendering(e){this._renderingDisabled=e,0==e&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Vo{is(){throw new Error("is() method is abstract")}}class Bo extends Vo{constructor(e){super(),this.parent=null,this._attrs=(0,a.qL)(e)}get document(){return null}get index(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new a.Bb("model-node-not-found-in-parent",this);return e}get startOffset(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new a.Bb("model-node-not-found-in-parent",this);return e}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}getCommonAncestor(e,t={}){const o=this.getAncestors(t),s=e.getAncestors(t);let i=0;for(;o[i]==s[i]&&o[i];)i++;return 0===i?null:o[i-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),o=e.getPath(),s=(0,a.Rt)(t,o);switch(s){case"prefix":return!0;case"extension":return!1;default:return t[s]<o[s]}}isAfter(e){return this!=e&&(this.root===e.root&&!this.isBefore(e))}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce(((e,t)=>(e[t[0]]=t[1],e)),{})),e}_clone(e){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=(0,a.qL)(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}Bo.prototype.is=function(e){return"node"===e||"model:node"===e};class Io{constructor(e){this._nodes=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((e,t)=>e+t.offsetSize),0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){const t=this._nodes.indexOf(e);return-1==t?null:t}getNodeStartOffset(e){const t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce(((e,t)=>e+t.offsetSize),0)}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;const t=this._nodes[e];if(!t)throw new a.Bb("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const o of this._nodes){if(e>=t&&e<t+o.offsetSize)return this.getNodeIndex(o);t+=o.offsetSize}if(t!=e)throw new a.Bb("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}_insertNodes(e,t){for(const e of t)if(!(e instanceof Bo))throw new a.Bb("model-nodelist-insertnodes-not-node",this);this._nodes=(0,a.x)(this._nodes,Array.from(t),e,0)}_removeNodes(e,t=1){return this._nodes.splice(e,t)}toJSON(){return this._nodes.map((e=>e.toJSON()))}}class Do extends Bo{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const e=super.toJSON();return e.data=this.data,e}_clone(){return new Do(this.data,this.getAttributes())}static fromJSON(e){return new Do(e.data,e.attributes)}}Do.prototype.is=function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e};class No extends Vo{constructor(e,t,o){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new a.Bb("model-textproxy-wrong-offsetintext",this);if(o<0||t+o>e.offsetSize)throw new a.Bb("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+o),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?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 e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}No.prototype.is=function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e};class zo extends Bo{constructor(e,t,o){super(t),this._children=new Io,this.name=e,o&&this._insertChild(0,o)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const o of e)t=t.getChild(t.offsetToIndex(o));return t}findAncestor(e,t={}){let o=t.includeSelf?this:this.parent;for(;o;){if(o.name===e)return o;o=o.parent}return null}toJSON(){const e=super.toJSON();if(e.name=this.name,this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){const t=e?Array.from(this._children).map((e=>e._clone(!0))):void 0;return new zo(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const o=function(e){if("string"==typeof e)return[new Do(e)];(0,a.TW)(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new Do(e):e instanceof No?new Do(e.data,e.getAttributes()):e))}(t);for(const e of o)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,o)}_removeChildren(e,t=1){const o=this._children._removeNodes(e,t);for(const e of o)e.parent=null;return o}static fromJSON(e){let t;if(e.children){t=[];for(const o of e.children)o.name?t.push(zo.fromJSON(o)):t.push(Do.fromJSON(o))}return new zo(e.name,e.attributes,t)}}zo.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e};class Fo{constructor(e){if(!e||!e.boundaries&&!e.startPosition)throw new a.Bb("model-tree-walker-no-start-position",null);const t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new a.Bb("model-tree-walker-unknown-direction",e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,e.startPosition?this._position=e.startPosition.clone():this._position=Zo._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.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(e){let t,o,s,i;do{s=this.position,i=this._visitedParent,({done:t,value:o}=this.next())}while(!t&&e(o));t||(this._position=s,this._visitedParent=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),o=this._visitedParent;if(null===o.parent&&t.offset===o.maxOffset)return{done:!0,value:void 0};if(o===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const s=Wo(t,o),i=s||$o(t,o,s);if(i instanceof zo){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t.path.push(0),this._visitedParent=i;return this._position=t,Lo("elementStart",i,e,t,1)}if(i instanceof Do){let s;if(this.singleCharacters)s=1;else{let e=i.endOffset;this._boundaryEndParent==o&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),s=e-t.offset}const r=t.offset-i.startOffset,n=new No(i,r,s);return t.offset+=s,this._position=t,Lo("text",n,e,t,s)}return t.path.pop(),t.offset++,this._position=t,this._visitedParent=o.parent,this.ignoreElementEnd?this._next():Lo("elementEnd",o,e,t)}_previous(){const e=this.position,t=this.position.clone(),o=this._visitedParent;if(null===o.parent&&0===t.offset)return{done:!0,value:void 0};if(o==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const s=t.parent,i=Wo(t,s),r=i||qo(t,s,i);if(r instanceof zo)return t.offset--,this.shallow?(this._position=t,Lo("elementStart",r,e,t,1)):(t.path.push(r.maxOffset),this._position=t,this._visitedParent=r,this.ignoreElementEnd?this._previous():Lo("elementEnd",r,e,t));if(r instanceof Do){let s;if(this.singleCharacters)s=1;else{let e=r.startOffset;this._boundaryStartParent==o&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),s=t.offset-e}const i=t.offset-r.startOffset,n=new No(r,i-s,s);return t.offset-=s,this._position=t,Lo("text",n,e,t,s)}return t.path.pop(),this._position=t,this._visitedParent=o.parent,Lo("elementStart",o,e,t,1)}}function Lo(e,t,o,s,i){return{done:!1,value:{type:e,item:t,previousPosition:o,nextPosition:s,length:i}}}class Zo extends Vo{constructor(e,t,o="toNone"){if(super(),!e.is("element")&&!e.is("documentFragment"))throw new a.Bb("model-position-root-invalid",e);if(!(t instanceof Array)||0===t.length)throw new a.Bb("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=o}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChild(e.offsetToIndex(this.path[t])),!e)throw new a.Bb("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new a.Bb("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Wo(this,this.parent)}get nodeAfter(){const e=this.parent;return $o(this,e,Wo(this,e))}get nodeBefore(){const e=this.parent;return qo(this,e,Wo(this,e))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(e){if(this.root!=e.root)return"different";const t=(0,a.Rt)(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}getLastMatchingPosition(e,t={}){t.startPosition=this;const o=new Fo(t);return o.skip(e),o.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){const t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];const t=(0,a.Rt)(this.path,e.path),o="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,o)}getCommonAncestor(e){const t=this.getAncestors(),o=e.getAncestors();let s=0;for(;t[s]==o[s]&&t[s];)s++;return 0===s?null:t[s-1]}getShiftedBy(e){const t=this.clone(),o=t.offset+e;return t.offset=o<0?0:o,t}isAfter(e){return"after"==this.compareWith(e)}isBefore(e){return"before"==this.compareWith(e)}isEqual(e){return"same"==this.compareWith(e)}isTouching(e){if(this.root!==e.root)return!1;const t=Math.min(this.path.length,e.path.length);for(let o=0;o<t;o++){const t=this.path[o]-e.path[o];if(t<-1||t>1)return!1;if(1===t)return Ho(e,this,o);if(-1===t)return Ho(this,e,o)}return this.path.length===e.path.length||(this.path.length>e.path.length?Uo(this.path,t):Uo(e.path,t))}hasSameParentAs(e){if(this.root!==e.root)return!1;const t=this.getParentPath(),o=e.getParentPath();return"same"==(0,a.Rt)(t,o)}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=Zo._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){const t=e.movedRange;let o;return t.containsPosition(this)||t.start.isEqual(this)?(o=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(o=o._getTransformedByDeletion(e.deletionPosition,1))):o=this.isEqual(e.deletionPosition)?Zo._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),o}_getTransformedByDeletion(e,t){const o=Zo._createAt(this);if(this.root!=e.root)return o;if("same"==(0,a.Rt)(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;o.offset-=t}}else if("prefix"==(0,a.Rt)(e.getParentPath(),this.getParentPath())){const s=e.path.length-1;if(e.offset<=this.path[s]){if(e.offset+t>this.path[s])return null;o.path[s]-=t}}return o}_getTransformedByInsertion(e,t){const o=Zo._createAt(this);if(this.root!=e.root)return o;if("same"==(0,a.Rt)(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(o.offset+=t);else if("prefix"==(0,a.Rt)(e.getParentPath(),this.getParentPath())){const s=e.path.length-1;e.offset<=this.path[s]&&(o.path[s]+=t)}return o}_getTransformedByMove(e,t,o){if(t=t._getTransformedByDeletion(e,o),e.isEqual(t))return Zo._createAt(this);const s=this._getTransformedByDeletion(e,o);return null===s||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(o).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):s._getTransformedByInsertion(t,o)}_getCombined(e,t){const o=e.path.length-1,s=Zo._createAt(t);return s.stickiness=this.stickiness,s.offset=s.offset+this.path[o]-e.offset,s.path=[...s.path,...this.path.slice(o+1)],s}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(e,t,o="toNone"){if(e instanceof Zo)return new Zo(e.root,e.path,e.stickiness);{const s=e;if("end"==t)t=s.maxOffset;else{if("before"==t)return this._createBefore(s,o);if("after"==t)return this._createAfter(s,o);if(0!==t&&!t)throw new a.Bb("model-createpositionat-offset-required",[this,e])}if(!s.is("element")&&!s.is("documentFragment"))throw new a.Bb("model-position-parent-incorrect",[this,e]);const i=s.getPath();return i.push(t),new this(s.root,i,o)}}static _createAfter(e,t){if(!e.parent)throw new a.Bb("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}static _createBefore(e,t){if(!e.parent)throw new a.Bb("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){const o=new Zo(t.graveyard,e.path);return o.stickiness=e.stickiness,o}if(!t.getRoot(e.root))throw new a.Bb("model-position-fromjson-no-root",t,{rootName:e.root});return new Zo(t.getRoot(e.root),e.path,e.stickiness)}}function Wo(e,t){const o=t.getChild(t.offsetToIndex(e.offset));return o&&o.is("$text")&&o.startOffset<e.offset?o:null}function $o(e,t,o){return null!==o?null:t.getChild(t.offsetToIndex(e.offset))}function qo(e,t,o){return null!==o?null:t.getChild(t.offsetToIndex(e.offset)-1)}function Ho(e,t,o){return o+1!==e.path.length&&(!!Uo(t.path,o+1)&&!!function(e,t){let o=e.parent,s=e.path.length-1,i=0;for(;s>=t;){if(e.path[s]+i!==o.maxOffset)return!1;i=1,s--,o=o.parent}return!0}(e,o+1))}function Uo(e,t){for(;t<e.length;){if(0!==e[t])return!1;t++}return!0}Zo.prototype.is=function(e){return"position"===e||"model:position"===e};class Go extends Vo{constructor(e,t){super(),this.start=Zo._createAt(e),this.end=t?Zo._createAt(t):Zo._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Fo({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const e=this.start.getParentPath(),t=this.end.getParentPath();return"same"==(0,a.Rt)(e,t)}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const o=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),s=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return o&&s}containsItem(e){const t=Zo._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new Go(this.start,e.start)),this.containsPosition(e.end)&&t.push(new Go(e.end,this.end))):t.push(new Go(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,o=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(o=e.end),new Go(t,o)}return null}getJoined(e,t=!1){let o=this.isIntersecting(e);if(o||(o=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!o)return null;let s=this.start,i=this.end;return e.start.isBefore(s)&&(s=e.start),e.end.isAfter(i)&&(i=e.end),new Go(s,i)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,o=Zo._createAt(this.start);let s=o.parent;for(;o.path.length>t+1;){const t=s.maxOffset-o.offset;0!==t&&e.push(new Go(o,o.getShiftedBy(t))),o.path=o.path.slice(0,-1),o.offset++,s=s.parent}for(;o.path.length<=this.end.path.length;){const t=this.end.path[o.path.length-1],s=t-o.offset;0!==s&&e.push(new Go(o,o.getShiftedBy(s))),o.offset=t,o.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new Fo(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new Fo(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new Fo(e);yield t.position;for(const e of t)yield e.nextPosition}getTransformedByOperation(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new Go(this.start,this.end)]}getTransformedByOperations(e){const t=[new Go(this.start,this.end)];for(const o of e)for(let e=0;e<t.length;e++){const s=t[e].getTransformedByOperation(o);t.splice(e,1,...s),e+=s.length-1}for(let e=0;e<t.length;e++){const o=t[e];for(let s=e+1;s<t.length;s++){const e=t[s];(o.containsRange(e)||e.containsRange(o)||o.isEqual(e))&&t.splice(s,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e,t=!1){return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e,t=!1){const o=e.sourcePosition,s=e.howMany,i=e.targetPosition;return this._getTransformedByMove(o,i,s,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let o=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(o=this.end.getShiftedBy(1)),t.root!=o.root&&(o=this.end.getShiftedBy(-1)),new Go(t,o)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new Go(this.start);let t=this.start._getTransformedByMergeOperation(e),o=this.end._getTransformedByMergeOperation(e);return t.root!=o.root&&(o=this.end.getShiftedBy(-1)),t.isAfter(o)?(e.sourcePosition.isBefore(e.targetPosition)?(t=Zo._createAt(o),t.offset=0):(e.deletionPosition.isEqual(t)||(o=e.deletionPosition),t=e.targetPosition),new Go(t,o)):new Go(t,o)}_getTransformedByInsertion(e,t,o=!1){if(o&&this.containsPosition(e))return[new Go(this.start,e),new Go(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const o=new Go(this.start,this.end);return o.start=o.start._getTransformedByInsertion(e,t),o.end=o.end._getTransformedByInsertion(e,t),[o]}}_getTransformedByMove(e,t,o,s=!1){if(this.isCollapsed){const s=this.start._getTransformedByMove(e,t,o);return[new Go(s)]}const i=Go._createFromPositionAndShift(e,o),r=t._getTransformedByDeletion(e,o);if(this.containsPosition(t)&&!s&&(i.containsPosition(this.start)||i.containsPosition(this.end))){const s=this.start._getTransformedByMove(e,t,o),i=this.end._getTransformedByMove(e,t,o);return[new Go(s,i)]}let n;const a=this.getDifference(i);let c=null;const l=this.getIntersection(i);if(1==a.length?c=new Go(a[0].start._getTransformedByDeletion(e,o),a[0].end._getTransformedByDeletion(e,o)):2==a.length&&(c=new Go(this.start,this.end._getTransformedByDeletion(e,o))),n=c?c._getTransformedByInsertion(r,o,null!==l||s):[],l){const e=new Go(l.start._getCombined(i.start,r),l.end._getCombined(i.start,r));2==n.length?n.splice(1,0,e):n.push(e)}return n}_getTransformedByDeletion(e,t){let o=this.start._getTransformedByDeletion(e,t),s=this.end._getTransformedByDeletion(e,t);return null==o&&null==s?null:(null==o&&(o=e),null==s&&(s=e),new Go(o,s))}static _createFromPositionAndShift(e,t){const o=e,s=e.getShiftedBy(t);return t>0?new this(o,s):new this(s,o)}static _createIn(e){return new this(Zo._createAt(e,0),Zo._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(Zo._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new a.Bb("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();const t=e[0];e.sort(((e,t)=>e.start.isAfter(t.start)?1:-1));const o=e.indexOf(t),s=new this(t.start,t.end);if(o>0)for(let t=o-1;e[t].end.isEqual(s.start);t++)s.start=Zo._createAt(e[t].start);for(let t=o+1;t<e.length&&e[t].start.isEqual(s.end);t++)s.end=Zo._createAt(e[t].end);return s}static fromJSON(e,t){return new this(Zo.fromJSON(e.start,t),Zo.fromJSON(e.end,t))}}Go.prototype.is=function(e){return"range"===e||"model:range"===e};class Ko extends((0,a.ln)()){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",((e,t)=>{if(t.viewPosition)return;const o=this._modelToViewMapping.get(t.modelPosition.parent);if(!o)throw new a.Bb("mapping-model-position-view-parent-not-found",this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(o,t.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((e,t)=>{if(t.modelPosition)return;const o=this.findMappedViewAncestor(t.viewPosition),s=this._viewToModelMapping.get(o),i=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,o);t.modelPosition=Zo._createAt(s,i)}),{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){const o=this.toModelElement(e);if(this._elementToMarkerNames.has(e))for(const t of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(t);t.defer?this._deferredBindingRemovals.set(e,e.root):(this._viewToModelMapping.delete(e),this._modelToViewMapping.get(o)==e&&this._modelToViewMapping.delete(o))}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const o=this._markerNameToElements.get(t)||new Set;o.add(e);const s=this._elementToMarkerNames.get(e)||new Set;s.add(t),this._markerNameToElements.set(t,o),this._elementToMarkerNames.set(e,s)}unbindElementFromMarkerName(e,t){const o=this._markerNameToElements.get(t);o&&(o.delete(e),0==o.size&&this._markerNameToElements.delete(t));const s=this._elementToMarkerNames.get(e);s&&(s.delete(t),0==s.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}flushDeferredBindings(){for(const[e,t]of this._deferredBindingRemovals)e.root==t&&this.unbindViewElement(e);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(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new Go(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new Ie(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={}){const o={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",o),o.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const o=new Set;for(const e of t)if(e.is("attributeElement"))for(const t of e.getElementsWithSameId())o.add(t);else o.add(e);return o}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,o){if(o!=e){return this._toModelOffset(e.parent,e.index,o)+this._toModelOffset(e,t,e)}if(e.is("$text"))return t;let s=0;for(let o=0;o<t;o++)s+=this.getModelLength(e.getChild(o));return s}getModelLength(e){if(this._viewToModelLengthCallbacks.get(e.name)){return this._viewToModelLengthCallbacks.get(e.name)(e)}if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;{let t=0;for(const o of e.getChildren())t+=this.getModelLength(o);return t}}findPositionIn(e,t){let o,s=0,i=0,r=0;if(e.is("$text"))return new Be(e,t);for(;i<t;)o=e.getChild(r),s=this.getModelLength(o),i+=s,r++;return i==t?this._moveViewPositionToTextNode(new Be(e,r)):this.findPositionIn(o,t-(i-s))}_moveViewPositionToTextNode(e){const t=e.nodeBefore,o=e.nodeAfter;return t instanceof y?new Be(t,t.data.length):o instanceof y?new Be(o,0):e}}class Jo{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=Yo(t),e instanceof No&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=Yo(t),e instanceof No&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=Yo(t),e instanceof No&&(e=this._getSymbolForTextProxy(e));const o=this._consumable.get(e);if(void 0===o)return null;const s=o.get(t);return void 0===s?null:s}revert(e,t){t=Yo(t),e instanceof No&&(e=this._getSymbolForTextProxy(e));const o=this.test(e,t);return!1===o?(this._consumable.get(e).set(t,!0),!0):!0!==o&&null}verifyAllConsumed(e){const t=[];for(const[o,s]of this._consumable)for(const[i,r]of s){const s=i.split(":")[0];r&&e==s&&t.push({event:i,item:o.name||o.description})}if(t.length)throw new a.Bb("conversion-model-consumable-not-consumed",null,{items:t})}_getSymbolForTextProxy(e){let t=null;const o=this._textProxyRegistry.get(e.startOffset);if(o){const s=o.get(e.endOffset);s&&(t=s.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e)),t}_addSymbolForTextProxy(e){const t=e.startOffset,o=e.endOffset,s=e.parent,i=Symbol("$textProxy:"+e.data);let r,n;return r=this._textProxyRegistry.get(t),r||(r=new Map,this._textProxyRegistry.set(t,r)),n=r.get(o),n||(n=new Map,r.set(o,n)),n.set(s,i),i}}function Yo(e){const t=e.split(":");return"insert"==t[0]?t[0]:"addMarker"==t[0]||"removeMarker"==t[0]?e:t.length>1?t[0]+":"+t[1]:t[0]}var Xo=Object.defineProperty,Qo=Object.defineProperties,es=Object.getOwnPropertyDescriptors,ts=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,is=(e,t,o)=>t in e?Xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,rs=(e,t)=>{for(var o in t||(t={}))os.call(t,o)&&is(e,o,t[o]);if(ts)for(var o of ts(t))ss.call(t,o)&&is(e,o,t[o]);return e},ns=(e,t)=>Qo(e,es(t));class as extends((0,a.ln)()){constructor(e){super(),this._conversionApi=rs({dispatcher:this},e),this._firedEventsMap=new WeakMap}convertChanges(e,t,o){const s=this._createConversionApi(o,e.getRefreshedItems());for(const t of e.getMarkersToRemove())this._convertMarkerRemove(t.name,t.range,s);const i=this._reduceChanges(e.getChanges());for(const e of i)"insert"===e.type?this._convertInsert(Go._createFromPositionAndShift(e.position,e.length),s):"reinsert"===e.type?this._convertReinsert(Go._createFromPositionAndShift(e.position,e.length),s):"remove"===e.type?this._convertRemove(e.position,e.length,e.name,s):this._convertAttribute(e.range,e.attributeKey,e.attributeOldValue,e.attributeNewValue,s);for(const e of s.mapper.flushUnboundMarkerNames()){const o=t.get(e).getRange();this._convertMarkerRemove(e,o,s),this._convertMarkerAdd(e,o,s)}for(const t of e.getMarkersToAdd())this._convertMarkerAdd(t.name,t.range,s);s.mapper.flushDeferredBindings(),s.consumable.verifyAllConsumed("insert")}convert(e,t,o,s={}){const i=this._createConversionApi(o,void 0,s);this._convertInsert(e,i);for(const[e,o]of t)this._convertMarkerAdd(e,o,i);i.consumable.verifyAllConsumed("insert")}convertSelection(e,t,o){const s=this._createConversionApi(o);this.fire("cleanSelection",{selection:e},s);const i=e.getFirstPosition().root;if(!s.mapper.toViewElement(i))return;const r=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this._addConsumablesForSelection(s.consumable,e,r),this.fire("selection",{selection:e},s),e.isCollapsed){for(const t of r)if(s.consumable.test(e,"addMarker:"+t.name)){const o=t.getRange();if(!cs(e.getFirstPosition(),t,s.mapper))continue;const i={item:e,markerName:t.name,markerRange:o};this.fire(`addMarker:${t.name}`,i,s)}for(const t of e.getAttributeKeys())if(s.consumable.test(e,"attribute:"+t)){const o={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.fire(`attribute:${t}:$text`,o,s)}}}_convertInsert(e,t,o={}){o.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,e);for(const o of Array.from(e.getWalker({shallow:!0})).map(ls))this._testAndFire("insert",o,t)}_convertRemove(e,t,o,s){this.fire(`remove:${o}`,{position:e,length:t},s)}_convertAttribute(e,t,o,s,i){this._addConsumablesForRange(i.consumable,e,`attribute:${t}`);for(const r of e){const e={item:r.item,range:Go._createFromPositionAndShift(r.previousPosition,r.length),attributeKey:t,attributeOldValue:o,attributeNewValue:s};this._testAndFire(`attribute:${t}`,e,i)}}_convertReinsert(e,t){const o=Array.from(e.getWalker({shallow:!0}));this._addConsumablesForInsert(t.consumable,o);for(const e of o.map(ls))this._testAndFire("insert",ns(rs({},e),{reconversion:!0}),t)}_convertMarkerAdd(e,t,o){if("$graveyard"==t.root.rootName)return;const s=`addMarker:${e}`;if(o.consumable.add(t,s),this.fire(s,{markerName:e,markerRange:t},o),o.consumable.consume(t,s)){this._addConsumablesForRange(o.consumable,t,s);for(const i of t.getItems()){if(!o.consumable.test(i,s))continue;const r={item:i,range:Go._createOn(i),markerName:e,markerRange:t};this.fire(s,r,o)}}}_convertMarkerRemove(e,t,o){"$graveyard"!=t.root.rootName&&this.fire(`removeMarker:${e}`,{markerName:e,markerRange:t},o)}_reduceChanges(e){const t={changes:e};return this.fire("reduceChanges",t),t.changes}_addConsumablesForInsert(e,t){for(const o of t){const t=o.item;if(null===e.test(t,"insert")){e.add(t,"insert");for(const o of t.getAttributeKeys())e.add(t,"attribute:"+o)}}return e}_addConsumablesForRange(e,t,o){for(const s of t.getItems())e.add(s,o);return e}_addConsumablesForSelection(e,t,o){e.add(t,"selection");for(const s of o)e.add(t,"addMarker:"+s.name);for(const o of t.getAttributeKeys())e.add(t,"attribute:"+o);return e}_testAndFire(e,t,o){const s=function(e,t){const o=t.item.is("element")?t.item.name:"$text";return`${e}:${o}`}(e,t),i=t.item.is("$textProxy")?o.consumable._getSymbolForTextProxy(t.item):t.item,r=this._firedEventsMap.get(o),n=r.get(i);if(n){if(n.has(s))return;n.add(s)}else r.set(i,new Set([s]));this.fire(s,t,o)}_testAndFireAddAttributes(e,t){const o={item:e,range:Go._createOn(e)};for(const e of o.item.getAttributeKeys())o.attributeKey=e,o.attributeOldValue=null,o.attributeNewValue=o.item.getAttribute(e),this._testAndFire(`attribute:${e}`,o,t)}_createConversionApi(e,t=new Set,o={}){const s=ns(rs({},this._conversionApi),{consumable:new Jo,writer:e,options:o,convertItem:e=>this._convertInsert(Go._createOn(e),s),convertChildren:e=>this._convertInsert(Go._createIn(e),s,{doNotAddConsumables:!0}),convertAttributes:e=>this._testAndFireAddAttributes(e,s),canReuseView:e=>!t.has(s.mapper.toModelElement(e))});return this._firedEventsMap.set(s,new Map),s}}function cs(e,t,o){const s=t.getRange(),i=Array.from(e.getAncestors());i.shift(),i.reverse();return!i.some((e=>{if(s.containsItem(e)){return!!o.toViewElement(e).getCustomProperty("addHighlight")}}))}function ls(e){return{item:e.item,range:Go._createFromPositionAndShift(e.previousPosition,e.length)}}class ds extends((0,a.ln)(Vo)){constructor(...e){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],e.length&&this.setTo(...e)}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let o=!1;for(const s of e._ranges)if(t.isEqual(s)){o=!0;break}if(!o)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new Go(e.start,e.end)}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new Go(e.start,e.end):null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new Go(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(...e){let[t,o,s]=e;if("object"==typeof o&&(s=o,o=void 0),null===t)this._setRanges([]);else if(t instanceof ds)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof Go)this._setRanges([t],!!s&&!!s.backward);else if(t instanceof Zo)this._setRanges([new Go(t)]);else if(t instanceof Bo){const e=!!s&&!!s.backward;let i;if("in"==o)i=Go._createIn(t);else if("on"==o)i=Go._createOn(t);else{if(void 0===o)throw new a.Bb("model-selection-setto-required-second-parameter",[this,t]);i=new Go(Zo._createAt(t,o))}this._setRanges([i],e)}else{if(!(0,a.TW)(t))throw new a.Bb("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,s&&!!s.backward)}}_setRanges(e,t=!1){const o=Array.from(e),s=o.some((t=>{if(!(t instanceof Go))throw new a.Bb("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every((e=>!e.isEqual(t)))}));(o.length!==this._ranges.length||s)&&(this._replaceAllRanges(o),this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0}))}setFocus(e,t){if(null===this.anchor)throw new a.Bb("model-selection-setfocus-no-ranges",[this,e]);const o=Zo._createAt(e,t);if("same"==o.compareWith(this.focus))return;const s=this.anchor;this._ranges.length&&this._popRange(),"before"==o.compareWith(s)?(this._pushRange(new Go(o,s)),this._lastRangeBackward=!0):(this._pushRange(new Go(s,o)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const o=ps(t.start,e);gs(o,t)&&(yield o);for(const o of t.getWalker()){const s=o.item;"elementEnd"==o.type&&us(s,e,t)&&(yield s)}const s=ps(t.end,e);ms(s,t)&&(yield s)}}containsEntireContent(e=this.anchor.root){const t=Zo._createAt(e,0),o=Zo._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&o.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new Go(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new a.Bb("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}_replaceAllRanges(e){this._removeAllRanges();for(const t of e)this._pushRange(t)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function hs(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&!!e.parent)}function us(e,t,o){return hs(e,t)&&fs(e,o)}function ps(e,t){const o=e.parent.root.document.model.schema,s=e.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const r=s.find((e=>!i&&(i=o.isLimit(e),!i&&hs(e,t))));return s.forEach((e=>t.add(e))),r}function fs(e,t){const o=function(e){const t=e.root.document.model.schema;let o=e.parent;for(;o;){if(t.isBlock(o))return o;o=o.parent}}(e);if(!o)return!0;return!t.containsRange(Go._createOn(o),!0)}function gs(e,t){return!!e&&(!(!t.isCollapsed&&!e.isEmpty)||!t.start.isTouching(Zo._createAt(e,e.maxOffset))&&fs(e,t))}function ms(e,t){return!!e&&(!(!t.isCollapsed&&!e.isEmpty)||!t.end.isTouching(Zo._createAt(e,0))&&fs(e,t))}ds.prototype.is=function(e){return"selection"===e||"model:selection"===e};class bs extends((0,a.ln)(Go)){constructor(e,t){super(e,t),_s.call(this)}detach(){this.stopListening()}toRange(){return new Go(this.start,this.end)}static fromRange(e){return new bs(e.start,e.end)}}function _s(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&ks.call(this,o)}),{priority:"low"})}function ks(e){const t=this.getTransformedByOperation(e),o=Go._createFromRanges(t),s=!o.isEqual(this),i=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e);let r=null;if(s){"$graveyard"==o.root.rootName&&(r="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=o.start,this.end=o.end,this.fire("change:range",t,{deletionPosition:r})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:r})}bs.prototype.is=function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e};const ws="selection:";class vs extends((0,a.ln)(Vo)){constructor(e){super(),this._selection=new ys(e),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(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(...e){this._selection.setTo(...e)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return ws+e}static _isStoreAttributeKey(e){return e.startsWith(ws)}}vs.prototype.is=function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e};class ys extends ds{constructor(e){super(),this.markers=new a.FE({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=e.model,this._document=e,this.listenTo(this._model,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&"marker"!=o.type&&"rename"!=o.type&&"noop"!=o.type&&(0==this._ranges.length&&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,t,o,s)=>{this._updateMarker(t,s)})),this.listenTo(this._document,"change",((e,t)=>{!function(e,t){const o=e.document.differ;for(const s of o.getChanges()){if("insert"!=s.type)continue;const o=s.position.parent;s.length===o.maxOffset&&e.enqueueChange(t,(e=>{const t=Array.from(o.getAttributeKeys()).filter((e=>e.startsWith(ws)));for(const s of t)e.removeAttribute(s,o)}))}}(this._model,t)}))}get isCollapsed(){return 0===this._ranges.length?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 e=0;e<this._ranges.length;e++)this._ranges[e].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(...e){super.setTo(...e),this._updateAttributes(!0),this.updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this.updateMarkers()}setAttribute(e,t){if(this._setAttribute(e,t)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}removeAttribute(e){if(this._removeAttribute(e)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}overrideGravity(){const e=(0,a.hQ)();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new a.Bb("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(e){this._observedMarkers.add(e),this.updateMarkers()}_replaceAllRanges(e){this._validateSelectionRanges(e),super._replaceAllRanges(e)}_popRange(){this._ranges.pop().detach()}_pushRange(e){const t=this._prepareRange(e);t&&this._ranges.push(t)}_validateSelectionRanges(e){for(const t of e)if(!this._document._validateSelectionRange(t))throw new a.Bb("document-selection-wrong-position",this,{range:t})}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=bs.fromRange(e);return t.on("change:range",((e,o,s)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=s.deletionPosition;const e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}})),t}updateMarkers(){if(!this._observedMarkers.size)return;const e=[];let t=!1;for(const t of this._model.markers){const o=t.name.split(":",1)[0];if(!this._observedMarkers.has(o))continue;const s=t.getRange();for(const o of this.getRanges())s.containsRange(o,!o.isCollapsed)&&e.push(t)}const o=Array.from(this.markers);for(const o of e)this.markers.has(o)||(this.markers.add(o),t=!0);for(const o of Array.from(this.markers))e.includes(o)||(this.markers.remove(o),t=!0);t&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateMarker(e,t){const o=e.name.split(":",1)[0];if(!this._observedMarkers.has(o))return;let s=!1;const i=Array.from(this.markers),r=this.markers.has(e);if(t){let o=!1;for(const e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){o=!0;break}o&&!r?(this.markers.add(e),s=!0):!o&&r&&(this.markers.remove(e),s=!0)}else r&&(this.markers.remove(e),s=!0);s&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateAttributes(e){const t=(0,a.qL)(this._getSurroundingAttributes()),o=(0,a.qL)(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(const[e,t]of this._attributePriority)"low"==t&&(this._attrs.delete(e),this._attributePriority.delete(e));this._setAttributesTo(t);const s=[];for(const[e,t]of this.getAttributes())o.has(e)&&o.get(e)===t||s.push(e);for(const[e]of o)this.hasAttribute(e)||s.push(e);s.length>0&&this.fire("change:attribute",{attributeKeys:s,directChange:!1})}_setAttribute(e,t,o=!0){const s=o?"normal":"low";if("low"==s&&"normal"==this._attributePriority.get(e))return!1;return super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,s),!0)}_removeAttribute(e,t=!0){const o=t?"normal":"low";return("low"!=o||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,o),!!super.hasAttribute(e)&&(this._attrs.delete(e),!0))}_setAttributesTo(e){const t=new Set;for(const[t,o]of this.getAttributes())e.get(t)!==o&&this._removeAttribute(t,!1);for(const[o,s]of e){this._setAttribute(o,s,!1)&&t.add(o)}return t}*getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())if(t.startsWith(ws)){const o=t.substr(10);yield[o,e.getAttribute(t)]}}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;if("$graveyard"==e.root.rootName)return null;let o=null;if(this.isCollapsed){const s=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(o=xs(s,t)),o||(o=xs(i,t)),!this.isGravityOverridden&&!o){let e=s;for(;e&&!o;)e=e.previousSibling,o=xs(e,t)}if(!o){let e=i;for(;e&&!o;)e=e.nextSibling,o=xs(e,t)}o||(o=this.getStoredAttributes())}else{const e=this.getFirstRange();for(const s of e){if(s.item.is("element")&&t.isObject(s.item)){o=xs(s.item,t);break}if("text"==s.type){o=s.item.getAttributes();break}}}return o}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function xs(e,t){if(!e)return null;if(e instanceof No||e instanceof Do)return e.getAttributes();if(!t.isInline(e))return null;if(!t.isObject(e))return[];const o=[];for(const[s,i]of e.getAttributes())t.checkAttribute("$text",s)&&!1!==t.getAttributeProperties(s).copyFromObject&&o.push([s,i]);return o}class Ps{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}class Cs extends Ps{elementToElement(e){return this.add(function(e){const t=As(e.model),o=Ss(e.view,"container");t.attributes.length&&(t.children=!0);return s=>{s.on(`insert:${t.name}`,function(e,t=Ds){return(o,s,i)=>{if(!t(s.item,i.consumable,{preflight:!0}))return;const r=e(s.item,i,s);if(!r)return;t(s.item,i.consumable);const n=i.mapper.toViewPosition(s.range.start);i.mapper.bindElements(s.item,r),i.writer.insert(n,r),i.convertAttributes(s.item),Bs(r,s.item.getChildren(),i,{reconversion:s.reconversion})}}(o,Vs(t)),{priority:e.converterPriority||"normal"}),(t.children||t.attributes.length)&&s.on("reduceChanges",Ms(t),{priority:"low"})}}(e))}elementToStructure(e){return this.add(function(e){const t=As(e.model),o=Ss(e.view,"container");return t.children=!0,s=>{if(s._conversionApi.schema.checkChild(t.name,"$text"))throw new a.Bb("conversion-element-to-structure-disallowed-text",s,{elementName:t.name});var i,r;s.on(`insert:${t.name}`,(i=o,r=Vs(t),(e,t,o)=>{if(!r(t.item,o.consumable,{preflight:!0}))return;const s=new Map;o.writer._registerSlotFactory(function(e,t,o){return(s,i)=>{const r=s.createContainerElement("$slot");let n=null;if("children"===i)n=Array.from(e.getChildren());else{if("function"!=typeof i)throw new a.Bb("conversion-slot-mode-unknown",o.dispatcher,{modeOrFilter:i});n=Array.from(e.getChildren()).filter((e=>i(e)))}return t.set(r,n),r}}(t.item,s,o));const n=i(t.item,o,t);if(o.writer._clearSlotFactory(),!n)return;!function(e,t,o){const s=Array.from(t.values()).flat(),i=new Set(s);if(i.size!=s.length)throw new a.Bb("conversion-slot-filter-overlap",o.dispatcher,{element:e});if(i.size!=e.childCount)throw new a.Bb("conversion-slot-filter-incomplete",o.dispatcher,{element:e})}(t.item,s,o),r(t.item,o.consumable);const c=o.mapper.toViewPosition(t.range.start);o.mapper.bindElements(t.item,n),o.writer.insert(c,n),o.convertAttributes(t.item),function(e,t,o,s){o.mapper.on("modelToViewPosition",n,{priority:"highest"});let i=null,r=null;for([i,r]of t)Bs(e,r,o,s),o.writer.move(o.writer.createRangeIn(i),o.writer.createPositionBefore(i)),o.writer.remove(i);function n(e,t){const o=t.modelPosition.nodeAfter,s=r.indexOf(o);s<0||(t.viewPosition=t.mapper.findPositionIn(i,s))}o.mapper.off("modelToViewPosition",n)}(n,s,o,{reconversion:t.reconversion})}),{priority:e.converterPriority||"normal"}),s.on("reduceChanges",Ms(t),{priority:"low"})}}(e))}attributeToElement(e){return this.add(function(e){e=jo(e);let t=e.model;"string"==typeof t&&(t={key:t});let o=`attribute:${t.key}`;t.name&&(o+=":"+t.name);if(t.values)for(const o of t.values)e.view[o]=Ss(e.view[o],"attribute");else e.view=Ss(e.view,"attribute");const s=Os(e);return t=>{t.on(o,function(e){return(t,o,s)=>{if(!s.consumable.test(o.item,t.name))return;const i=e(o.attributeOldValue,s,o),r=e(o.attributeNewValue,s,o);if(!i&&!r)return;s.consumable.consume(o.item,t.name);const n=s.writer,a=n.document.selection;if(o.item instanceof ds||o.item instanceof vs)n.wrap(a.getFirstRange(),r);else{let e=s.mapper.toViewRange(o.range);null!==o.attributeOldValue&&i&&(e=n.unwrap(e,i)),null!==o.attributeNewValue&&r&&n.wrap(e,r)}}}(s),{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=jo(e);let t=e.model;"string"==typeof t&&(t={key:t});let o=`attribute:${t.key}`;t.name&&(o+=":"+t.name);if(t.values)for(const o of t.values)e.view[o]=Rs(e.view[o]);else e.view=Rs(e.view);const s=Os(e);return t=>{var i;t.on(o,(i=s,(e,t,o)=>{if(!o.consumable.test(t.item,e.name))return;const s=i(t.attributeOldValue,o,t),r=i(t.attributeNewValue,o,t);if(!s&&!r)return;o.consumable.consume(t.item,e.name);const n=o.mapper.toViewElement(t.item),c=o.writer;if(!n)throw new a.Bb("conversion-attribute-to-attribute-on-text",o.dispatcher,t);if(null!==t.attributeOldValue&&s)if("class"==s.key){const e=(0,a.qo)(s.value);for(const t of e)c.removeClass(t,n)}else if("style"==s.key){const e=Object.keys(s.value);for(const t of e)c.removeStyle(t,n)}else c.removeAttribute(s.key,n);if(null!==t.attributeNewValue&&r)if("class"==r.key){const e=(0,a.qo)(r.value);for(const t of e)c.addClass(t,n)}else if("style"==r.key){const e=Object.keys(r.value);for(const t of e)c.setStyle(t,r.value[t],n)}else c.setAttribute(r.key,r.value,n)}),{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){const t=Ss(e.view,"ui");return o=>{var s;o.on(`addMarker:${e.model}`,(s=t,(e,t,o)=>{t.isOpening=!0;const i=s(t,o);t.isOpening=!1;const r=s(t,o);if(!i||!r)return;const n=t.markerRange;if(n.isCollapsed&&!o.consumable.consume(n,e.name))return;for(const t of n)if(!o.consumable.consume(t.item,e.name))return;const a=o.mapper,c=o.writer;c.insert(a.toViewPosition(n.start),i),o.mapper.bindElementToMarker(i,t.markerName),n.isCollapsed||(c.insert(a.toViewPosition(n.end),r),o.mapper.bindElementToMarker(r,t.markerName)),e.stop()}),{priority:e.converterPriority||"normal"}),o.on(`removeMarker:${e.model}`,((e,t,o)=>{const s=o.mapper.markerNameToElements(t.markerName);if(s){for(const e of s)o.mapper.unbindElementFromMarkerName(e,t.markerName),o.writer.clear(o.writer.createRangeOn(e),e);o.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(e){return t=>{var o;t.on(`addMarker:${e.model}`,(o=e.view,(e,t,s)=>{if(!t.item)return;if(!(t.item instanceof ds||t.item instanceof vs||t.item.is("$textProxy")))return;const i=js(o,t,s);if(!i)return;if(!s.consumable.consume(t.item,e.name))return;const r=s.writer,n=Ts(r,i),a=r.document.selection;if(t.item instanceof ds||t.item instanceof vs)r.wrap(a.getFirstRange(),n);else{const e=s.mapper.toViewRange(t.range),o=r.wrap(e,n);for(const e of o.getItems())if(e.is("attributeElement")&&e.isSimilar(n)){s.mapper.bindElementToMarker(e,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on(`addMarker:${e.model}`,function(e){return(t,o,s)=>{if(!o.item)return;if(!(o.item instanceof zo))return;const i=js(e,o,s);if(!i)return;if(!s.consumable.test(o.item,t.name))return;const r=s.mapper.toViewElement(o.item);if(r&&r.getCustomProperty("addHighlight")){s.consumable.consume(o.item,t.name);for(const e of Go._createIn(o.item))s.consumable.consume(e.item,t.name);r.getCustomProperty("addHighlight")(r,i,s.writer),s.mapper.bindElementToMarker(r,o.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),t.on(`removeMarker:${e.model}`,function(e){return(t,o,s)=>{if(o.markerRange.isCollapsed)return;const i=js(e,o,s);if(!i)return;const r=Ts(s.writer,i),n=s.mapper.markerNameToElements(o.markerName);if(n){for(const e of n)if(s.mapper.unbindElementFromMarkerName(e,o.markerName),e.is("attributeElement"))s.writer.unwrap(s.writer.createRangeOn(e),r);else{e.getCustomProperty("removeHighlight")(e,i.id,s.writer)}s.writer.clearClonedElementsGroup(o.markerName),t.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(e){e=jo(e);const t=e.model;let o=e.view;o||(o=o=>({group:t,name:o.substr(e.model.length+1)}));return s=>{var i;s.on(`addMarker:${t}`,(i=o,(e,t,o)=>{const s=i(t.markerName,o);if(!s)return;const r=t.markerRange;o.consumable.consume(r,e.name)&&(Es(r,!1,o,t,s),Es(r,!0,o,t,s),e.stop())}),{priority:e.converterPriority||"normal"}),s.on(`removeMarker:${t}`,function(e){return(t,o,s)=>{const i=e(o.markerName,s);if(!i)return;const r=s.mapper.markerNameToElements(o.markerName);if(r){for(const e of r)s.mapper.unbindElementFromMarkerName(e,o.markerName),e.is("containerElement")?(n(`data-${i.group}-start-before`,e),n(`data-${i.group}-start-after`,e),n(`data-${i.group}-end-before`,e),n(`data-${i.group}-end-after`,e)):s.writer.clear(s.writer.createRangeOn(e),e);s.writer.clearClonedElementsGroup(o.markerName),t.stop()}function n(e,t){if(t.hasAttribute(e)){const o=new Set(t.getAttribute(e).split(","));o.delete(i.name),0==o.size?s.writer.removeAttribute(e,t):s.writer.setAttribute(e,Array.from(o).join(","),t)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}}function Ts(e,t){const o=e.createAttributeElement("span",t.attributes);return t.classes&&o._addClass(t.classes),"number"==typeof t.priority&&(o._priority=t.priority),o._id=t.id,o}function Es(e,t,o,s,i){const r=t?e.start:e.end,n=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(n||a){let e,r;t&&n||!t&&!a?(e=n,r=!0):(e=a,r=!1);const c=o.mapper.toViewElement(e);if(c)return void function(e,t,o,s,i,r){const n=`data-${r.group}-${t?"start":"end"}-${o?"before":"after"}`,a=e.hasAttribute(n)?e.getAttribute(n).split(","):[];a.unshift(r.name),s.writer.setAttribute(n,a.join(","),e),s.mapper.bindElementToMarker(e,i.markerName)}(c,t,r,o,s,i)}!function(e,t,o,s,i){const r=`${i.group}-${t?"start":"end"}`,n=i.name?{name:i.name}:null,a=o.writer.createUIElement(r,n);o.writer.insert(e,a),o.mapper.bindElementToMarker(a,s.markerName)}(o.mapper.toViewPosition(r),t,o,s,i)}function As(e){return"string"==typeof e&&(e={name:e}),{name:e.name,attributes:e.attributes?(0,a.qo)(e.attributes):[],children:!!e.children}}function Ss(e,t){return"function"==typeof e?e:(o,s)=>function(e,t,o){"string"==typeof e&&(e={name:e});let s;const i=t.writer,r=Object.assign({},e.attributes);if("container"==o)s=i.createContainerElement(e.name,r);else if("attribute"==o){const t={priority:e.priority||Ge.DEFAULT_PRIORITY};s=i.createAttributeElement(e.name,r,t)}else s=i.createUIElement(e.name,r);if(e.styles){const t=Object.keys(e.styles);for(const o of t)i.setStyle(o,e.styles[o],s)}if(e.classes){const t=e.classes;if("string"==typeof t)i.addClass(t,s);else for(const e of t)i.addClass(e,s)}return s}(e,s,t)}function Os(e){return e.model.values?(t,o,s)=>{const i=e.view[t];return i?i(t,o,s):null}:e.view}function Rs(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function js(e,t,o){const s="function"==typeof e?e(t,o):e;return s?(s.priority||(s.priority=10),s.id||(s.id=t.markerName),s):null}function Ms(e){const t=function(e){return(t,o)=>{if(!t.is("element",e.name))return!1;if("attribute"==o.type){if(e.attributes.includes(o.attributeKey))return!0}else if(e.children)return!0;return!1}}(e);return(e,o)=>{const s=[];o.reconvertedElements||(o.reconvertedElements=new Set);for(const e of o.changes){const i="attribute"==e.type?e.range.start.nodeAfter:e.position.parent;if(i&&t(i,e)){if(!o.reconvertedElements.has(i)){o.reconvertedElements.add(i);const e=Zo._createBefore(i);let t=s.length;for(let o=s.length-1;o>=0;o--){const i=s[o],r=("attribute"==i.type?i.range.start:i.position).compareWith(e);if("before"==r||"remove"==i.type&&"same"==r)break;t=o}s.splice(t,0,{type:"remove",name:i.name,position:e,length:1},{type:"reinsert",name:i.name,position:e,length:1})}}else s.push(e)}o.changes=s}}function Vs(e){return(t,o,s={})=>{const i=["insert"];for(const o of e.attributes)t.hasAttribute(o)&&i.push(`attribute:${o}`);return!!i.every((e=>o.test(t,e)))&&(s.preflight||i.forEach((e=>o.consume(t,e))),!0)}}function Bs(e,t,o,s){for(const i of t)Is(e.root,i,o,s)||o.convertItem(i)}function Is(e,t,o,s){const{writer:i,mapper:r}=o;if(!s.reconversion)return!1;const n=r.toViewElement(t);return!(!n||n.root==e)&&(!!o.canReuseView(n)&&(i.move(i.createRangeOn(n),r.toViewPosition(Zo._createBefore(t))),!0))}function Ds(e,t,{preflight:o}={}){return o?t.test(e,"insert"):t.consume(e,"insert")}function Ns(e){const{schema:t,document:o}=e.model;for(const s of o.getRoots())if(s.isEmpty&&!t.checkChild(s,"$text")&&t.checkChild(s,"paragraph"))return e.insertElement("paragraph",s),!0;return!1}function zs(e,t,o){const s=o.createContext(e);return!!o.checkChild(s,"paragraph")&&!!o.checkChild(s.push("paragraph"),t)}function Fs(e,t){const o=t.createElement("paragraph");return t.insert(o,e),t.createPositionAt(o,0)}var Ls=Object.defineProperty,Zs=Object.defineProperties,Ws=Object.getOwnPropertyDescriptors,$s=Object.getOwnPropertySymbols,qs=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable,Us=(e,t,o)=>t in e?Ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class Gs extends Ps{elementToElement(e){return this.add(Ks(e))}elementToAttribute(e){return this.add(function(e){e=jo(e),Xs(e);const t=Qs(e,!1),o=Js(e.view),s=o?`element:${o}`:"element";return o=>{o.on(s,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=jo(e);let t=null;("string"==typeof e.view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});const t=e.view.key;let o;if("class"==t||"style"==t){o={["class"==t?"classes":"styles"]:e.view.value}}else{o={attributes:{[t]:void 0===e.view.value?/[\s\S]*/:e.view.value}}}e.view.name&&(o.name=e.view.name);return e.view=o,t}(e));Xs(e,t);const o=Qs(e,!0);return t=>{t.on("element",o,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(e){const t=function(e){return(t,o)=>{const s="string"==typeof e?e:e(t,o);return o.writer.createElement("$marker",{"data-name":s})}}(e.model);return Ks((o=((e,t)=>{for(var o in t||(t={}))qs.call(t,o)&&Us(e,o,t[o]);if($s)for(var o of $s(t))Hs.call(t,o)&&Us(e,o,t[o]);return e})({},e),s={model:t},Zs(o,Ws(s))));var o,s}(e))}dataToMarker(e){return this.add(function(e){e=jo(e),e.model||(e.model=t=>t?e.view+":"+t:e.view);const t={view:e.view,model:e.model},o=Ys(ei(t,"start")),s=Ys(ei(t,"end"));return i=>{i.on(`element:${e.view}-start`,o,{priority:e.converterPriority||"normal"}),i.on(`element:${e.view}-end`,s,{priority:e.converterPriority||"normal"});const r=a.tA.low,n=a.tA.highest,c=a.tA.get(e.converterPriority)/n;i.on("element",function(e){return(t,o,s)=>{const i=`data-${e.view}`;function r(t,i){for(const r of i){const i=e.model(r,s),n=s.writer.createElement("$marker",{"data-name":i});s.writer.insert(n,t),o.modelCursor.isEqual(t)?o.modelCursor=o.modelCursor.getShiftedBy(1):o.modelCursor=o.modelCursor._getTransformedByInsertion(t,1),o.modelRange=o.modelRange._getTransformedByInsertion(t,1)[0]}}(s.consumable.test(o.viewItem,{attributes:i+"-end-after"})||s.consumable.test(o.viewItem,{attributes:i+"-start-after"})||s.consumable.test(o.viewItem,{attributes:i+"-end-before"})||s.consumable.test(o.viewItem,{attributes:i+"-start-before"}))&&(o.modelRange||Object.assign(o,s.convertChildren(o.viewItem,o.modelCursor)),s.consumable.consume(o.viewItem,{attributes:i+"-end-after"})&&r(o.modelRange.end,o.viewItem.getAttribute(i+"-end-after").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-start-after"})&&r(o.modelRange.end,o.viewItem.getAttribute(i+"-start-after").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-end-before"})&&r(o.modelRange.start,o.viewItem.getAttribute(i+"-end-before").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-start-before"})&&r(o.modelRange.start,o.viewItem.getAttribute(i+"-start-before").split(",")))}}(t),{priority:r+c})}}(e))}}function Ks(e){const t=Ys(e=jo(e)),o=Js(e.view),s=o?`element:${o}`:"element";return o=>{o.on(s,t,{priority:e.converterPriority||"normal"})}}function Js(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function Ys(e){const t=new C(e.view);return(o,s,i)=>{const r=t.match(s.viewItem);if(!r)return;const n=r.match;if(n.name=!0,!i.consumable.test(s.viewItem,n))return;const a=function(e,t,o){return e instanceof Function?e(t,o):o.writer.createElement(e)}(e.model,s.viewItem,i);a&&i.safeInsert(a,s.modelCursor)&&(i.consumable.consume(s.viewItem,n),i.convertChildren(s.viewItem,a),i.updateConversionResult(a,s))}}function Xs(e,t=null){const o=null===t||(e=>e.getAttribute(t)),s="object"!=typeof e.model?e.model:e.model.key,i="object"!=typeof e.model||void 0===e.model.value?o:e.model.value;e.model={key:s,value:i}}function Qs(e,t){const o=new C(e.view);return(s,i,r)=>{if(!i.modelRange&&t)return;const n=o.match(i.viewItem);if(!n)return;if(!function(e,t){const o="function"==typeof e?e(t):e;if("object"==typeof o&&!Js(o))return!1;return!o.classes&&!o.attributes&&!o.styles}(e.view,i.viewItem)?delete n.match.name:n.match.name=!0,!r.consumable.test(i.viewItem,n.match))return;const a=e.model.key,c="function"==typeof e.model.value?e.model.value(i.viewItem,r):e.model.value;if(null===c)return;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor));const l=function(e,t,o,s){let i=!1;for(const r of Array.from(e.getItems({shallow:o})))s.schema.checkAttribute(r,t.key)&&(i=!0,r.hasAttribute(t.key)||s.writer.setAttribute(t.key,t.value,r));return i}(i.modelRange,{key:a,value:c},t,r);l&&(r.consumable.test(i.viewItem,{name:!0})&&(n.match.name=!0),r.consumable.consume(i.viewItem,n.match))}}function ei(e,t){return{view:`${e.view}-${t}`,model:(t,o)=>{const s=t.getAttribute("name"),i=e.model(s,o);return o.writer.createElement("$marker",{"data-name":i})}}}function ti(e){e.document.registerPostFixer((t=>function(e,t){const o=t.document.selection,s=t.schema,i=[];let r=!1;for(const e of o.getRanges()){const t=oi(e,s);t&&!t.isEqual(e)?(i.push(t),r=!0):i.push(e)}r&&e.setSelection(function(e){const t=[...e],o=new Set;let s=1;for(;s<t.length;){const e=t[s],i=t.slice(0,s);for(const[r,n]of i.entries())if(!o.has(r))if(e.isEqual(n))o.add(r);else if(e.isIntersecting(n)){o.add(r),o.add(s);const i=e.getJoined(n);t.push(i)}s++}return t.filter(((e,t)=>!o.has(t)))}(i),{backward:o.isBackward});return!1}(t,e)))}function oi(e,t){return e.isCollapsed?function(e,t){const o=e.start,s=t.getNearestSelectionRange(o);if(!s){const e=o.getAncestors().reverse().find((e=>t.isObject(e)));return e?Go._createOn(e):null}if(!s.isCollapsed)return s;const i=s.start;if(o.isEqual(i))return null;return new Go(i)}(e,t):function(e,t){const{start:o,end:s}=e,i=t.checkChild(o,"$text"),r=t.checkChild(s,"$text"),n=t.getLimitElement(o),a=t.getLimitElement(s);if(n===a){if(i&&r)return null;if(function(e,t,o){const s=e.nodeAfter&&!o.isLimit(e.nodeAfter)||o.checkChild(e,"$text"),i=t.nodeBefore&&!o.isLimit(t.nodeBefore)||o.checkChild(t,"$text");return s||i}(o,s,t)){const e=o.nodeAfter&&t.isSelectable(o.nodeAfter)?null:t.getNearestSelectionRange(o,"forward"),i=s.nodeBefore&&t.isSelectable(s.nodeBefore)?null:t.getNearestSelectionRange(s,"backward"),r=e?e.start:o,n=i?i.end:s;return new Go(r,n)}}const c=n&&!n.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const e=o.nodeAfter&&s.nodeBefore&&o.nodeAfter.parent===s.nodeBefore.parent,i=c&&(!e||!ii(o.nodeAfter,t)),r=l&&(!e||!ii(s.nodeBefore,t));let d=o,h=s;return i&&(d=Zo._createBefore(si(n,t))),r&&(h=Zo._createAfter(si(a,t))),new Go(d,h)}return null}(e,t)}function si(e,t){let o=e,s=o;for(;t.isLimit(s)&&s.parent;)o=s,s=s.parent;return o}function ii(e,t){return e&&t.isSelectable(e)}class ri extends((0,a.Re)()){constructor(e,t){super(),this.model=e,this.view=new Mo(t),this.mapper=new Ko,this.downcastDispatcher=new as({mapper:this.mapper,schema:e.schema});const o=this.model.document,s=o.selection,i=this.model.markers;var r,n,c;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(o,"change",(()=>{this.view.change((e=>{this.downcastDispatcher.convertChanges(o.differ,i,e),this.downcastDispatcher.convertSelection(s,i,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return(o,s)=>{const i=s.newSelection,r=[];for(const e of i.getRanges())r.push(t.toModelRange(e));const n=e.createSelection(r,{backward:i.isBackward});n.isEqual(e.document.selection)||e.change((e=>{e.setSelection(n)}))}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(r=this.mapper,n=this.model.schema,c=this.view,(e,t)=>{if(!c.document.isComposing||a.OB.isAndroid)for(let e=0;e<t.targetRanges.length;e++){const o=t.targetRanges[e],s=r.toModelRange(o),i=oi(s,n);i&&!i.isEqual(s)&&(t.targetRanges[e]=r.toViewRange(i))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",((e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const s=o.writer,i=o.mapper.toViewPosition(t.range.start),r=s.createText(t.item.data);s.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((e,t,o)=>{const s=o.mapper.toViewPosition(t.position),i=t.position.getShiftedBy(t.length),r=o.mapper.toViewPosition(i,{isPhantom:!0}),n=o.writer.createRange(s,r),a=o.writer.remove(n.getTrimmed());for(const e of o.writer.createRangeIn(a).getItems())o.mapper.unbindViewElement(e,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",((e,t,o)=>{const s=o.writer,i=s.document.selection;for(const e of i.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&o.writer.mergeAttributes(e.start);s.setSelection(null)})),this.downcastDispatcher.on("selection",((e,t,o)=>{const s=t.selection;if(s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=[];for(const e of s.getRanges())i.push(o.mapper.toViewRange(e));o.writer.setSelection(i,{backward:s.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((e,t,o)=>{const s=t.selection;if(!s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=o.writer,r=s.getFirstPosition(),n=o.mapper.toViewPosition(r),a=i.breakAttributes(n);i.setSelection(a)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((e=>{if("$graveyard"==e.rootName)return null;const t=new Me(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t}))}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(e){const t="string"==typeof e?e:e.name,o=this.model.markers.get(t);if(!o)throw new a.Bb("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:t});this.model.change((()=>{this.model.markers._refresh(o)}))}reconvertItem(e){this.model.change((()=>{this.model.document.differ._refreshItem(e)}))}}class ni{constructor(){this._consumables=new Map}add(e,t){let o;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?o=this._consumables.get(e):(o=new ci(e),this._consumables.set(e,o)),o.add(t))}test(e,t){const o=this._consumables.get(e);return void 0===o?null:e.is("$text")||e.is("documentFragment")?o:o.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}revert(e,t){const o=this._consumables.get(e);void 0!==o&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):o.revert(t))}static consumablesFromElement(e){const t={element:e,name:!0,attributes:[],classes:[],styles:[]},o=e.getAttributeKeys();for(const e of o)"style"!=e&&"class"!=e&&t.attributes.push(e);const s=e.getClassNames();for(const e of s)t.classes.push(e);const i=e.getStyleNames();for(const e of i)t.styles.push(e);return t}static createFrom(e,t){if(t||(t=new ni),e.is("$text"))return t.add(e),t;e.is("element")&&t.add(e,ni.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e);for(const o of e.getChildren())t=ni.createFrom(o,t);return t}}const ai=["attributes","classes","styles"];class ci{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){e.name&&(this._canConsumeName=!0);for(const t of ai)t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const t of ai)if(t in e){const o=this._test(t,e[t]);if(!0!==o)return o}return!0}consume(e){e.name&&(this._canConsumeName=!1);for(const t of ai)t in e&&this._consume(t,e[t])}revert(e){e.name&&(this._canConsumeName=!0);for(const t of ai)t in e&&this._revert(t,e[t])}_add(e,t){const o=(0,S.Z)(t)?t:[t],s=this._consumables[e];for(const t of o){if("attributes"===e&&("class"===t||"style"===t))throw new a.Bb("viewconsumable-invalid-attribute",this);if(s.set(t,!0),"styles"===e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(t))s.set(e,!0)}}_test(e,t){const o=(0,S.Z)(t)?t:[t],s=this._consumables[e];for(const t of o)if("attributes"!==e||"class"!==t&&"style"!==t){const e=s.get(t);if(void 0===e)return null;if(!e)return!1}else{const e="class"==t?"classes":"styles",o=this._test(e,[...this._consumables[e].keys()]);if(!0!==o)return o}return!0}_consume(e,t){const o=(0,S.Z)(t)?t:[t],s=this._consumables[e];for(const t of o)if("attributes"!==e||"class"!==t&&"style"!==t){if(s.set(t,!1),"styles"==e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(t))s.set(e,!1)}else{const e="class"==t?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){const o=(0,S.Z)(t)?t:[t],s=this._consumables[e];for(const t of o)if("attributes"!==e||"class"!==t&&"style"!==t){!1===s.get(t)&&s.set(t,!0)}else{const e="class"==t?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class li extends((0,a.Re)()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((e,t)=>{t[0]=new di(t[0])}),{priority:"highest"}),this.on("checkChild",((e,t)=>{t[0]=new di(t[0]),t[1]=this.getDefinition(t[1])}),{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new a.Bb("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new a.Bb("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t="string"==typeof e?e:"is"in e&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){const t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){const t=this.getDefinition(e);return!!t&&!(!t.isLimit&&!t.isObject)}isObject(e){const t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}isInline(e){const t=this.getDefinition(e);return!(!t||!t.isInline)}isSelectable(e){const t=this.getDefinition(e);return!!t&&!(!t.isSelectable&&!t.isObject)}isContent(e){const t=this.getDefinition(e);return!!t&&!(!t.isContent&&!t.isObject)}checkChild(e,t){return!!t&&this._checkContextMatch(t,e)}checkAttribute(e,t){const o=this.getDefinition(e.last);return!!o&&o.allowAttributes.includes(t)}checkMerge(e,t){if(e instanceof Zo){const t=e.nodeBefore,o=e.nodeAfter;if(!(t instanceof zo))throw new a.Bb("schema-check-merge-no-element-before",this);if(!(o instanceof zo))throw new a.Bb("schema-check-merge-no-element-after",this);return this.checkMerge(t,o)}for(const o of t.getChildren())if(!this.checkChild(e,o))return!1;return!0}addChildCheck(e){this.on("checkChild",((t,[o,s])=>{if(!s)return;const i=e(o,s);"boolean"==typeof i&&(t.stop(),t.return=i)}),{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",((t,[o,s])=>{const i=e(o,s);"boolean"==typeof i&&(t.stop(),t.return=i)}),{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;if(e instanceof Zo)t=e.parent;else{t=(e instanceof Go?[e]:Array.from(e.getRanges())).reduce(((e,t)=>{const o=t.getCommonAncestor();return e?e.getCommonAncestor(o,{includeSelf:!0}):o}),null)}for(;!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const o=[...e.getFirstPosition().getAncestors(),new Do("",e.getAttributes())];return this.checkAttribute(o,t)}{const o=e.getRanges();for(const e of o)for(const o of e)if(this.checkAttribute(o.item,t))return!0}return!1}*getValidRanges(e,t){e=function*(e){for(const t of e)yield*t.getMinimalFlatRanges()}(e);for(const o of e)yield*this._getValidRangesForRange(o,t)}getNearestSelectionRange(e,t="both"){if("$graveyard"==e.root.rootName)return null;if(this.checkChild(e,"$text"))return new Go(e);let o,s;const i=e.getAncestors().reverse().find((e=>this.isLimit(e)))||e.root;"both"!=t&&"backward"!=t||(o=new Fo({boundaries:Go._createIn(i),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(s=new Fo({boundaries:Go._createIn(i),startPosition:e}));for(const e of function*(e,t){let o=!1;for(;!o;){if(o=!0,e){const t=e.next();t.done||(o=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(o=!1,yield{walker:t,value:e.value})}}}(o,s)){const t=e.walker==o?"elementEnd":"elementStart",s=e.value;if(s.type==t&&this.isObject(s.item))return Go._createOn(s.item);if(this.checkChild(s.nextPosition,"$text"))return new Go(s.nextPosition)}return null}findAllowedParent(e,t){let o=e.parent;for(;o;){if(this.checkChild(o,t))return o;if(this.isLimit(o))return null;o=o.parent}return null}setAllowedAttributes(e,t,o){const s=o.model;for(const[i,r]of Object.entries(t))s.schema.checkAttribute(e,i)&&o.setAttribute(i,r,e)}removeDisallowedAttributes(e,t){for(const o of e)if(o.is("$text"))xi(this,o,t);else{const e=Go._createIn(o).getPositions();for(const o of e){xi(this,o.nodeBefore||o.parent,t)}}}getAttributesWithProperty(e,t,o){const s={};for(const[i,r]of e.getAttributes()){const e=this.getAttributeProperties(i);void 0!==e[t]&&(void 0!==o&&o!==e[t]||(s[i]=r))}return s}createContext(e){return new di(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,o=Object.keys(t);for(const s of o)e[s]=hi(t[s],s);for(const t of o)ui(e,t);for(const t of o)pi(e,t);for(const t of o)fi(e,t);for(const t of o)gi(e,t),mi(e,t);for(const t of o)bi(e,t),_i(e,t),ki(e,t);this._compiledDefinitions=e}_checkContextMatch(e,t,o=t.length-1){const s=t.getItem(o);if(e.allowIn.includes(s.name)){if(0==o)return!0;{const e=this.getDefinition(s);return this._checkContextMatch(e,t,o-1)}}return!1}*_getValidRangesForRange(e,t){let o=e.start,s=e.start;for(const i of e.getItems({shallow:!0}))i.is("element")&&(yield*this._getValidRangesForRange(Go._createIn(i),t)),this.checkAttribute(i,t)||(o.isEqual(s)||(yield new Go(o,s)),o=Zo._createAfter(i)),s=Zo._createAfter(i);o.isEqual(s)||(yield new Go(o,s))}}class di{constructor(e){if(e instanceof di)return e;let t;t="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=t.map(yi)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){const t=new di([e]);return t._items=[...this._items,...t._items],t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map((e=>e.name))}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function hi(e,t){const o={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){for(const o of e){const e=Object.keys(o).filter((e=>e.startsWith("is")));for(const s of e)t[s]=!!o[s]}}(e,o),wi(e,o,"allowIn"),wi(e,o,"allowContentOf"),wi(e,o,"allowWhere"),wi(e,o,"allowAttributes"),wi(e,o,"allowAttributesOf"),wi(e,o,"allowChildren"),wi(e,o,"inheritTypesFrom"),function(e,t){for(const o of e){const e=o.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}(e,o),o}function ui(e,t){const o=e[t];for(const s of o.allowChildren){const o=e[s];o&&o.allowIn.push(t)}o.allowChildren.length=0}function pi(e,t){for(const o of e[t].allowContentOf)if(e[o]){vi(e,o).forEach((e=>{e.allowIn.push(t)}))}delete e[t].allowContentOf}function fi(e,t){for(const o of e[t].allowWhere){const s=e[o];if(s){const o=s.allowIn;e[t].allowIn.push(...o)}}delete e[t].allowWhere}function gi(e,t){for(const o of e[t].allowAttributesOf){const s=e[o];if(s){const o=s.allowAttributes;e[t].allowAttributes.push(...o)}}delete e[t].allowAttributesOf}function mi(e,t){const o=e[t];for(const t of o.inheritTypesFrom){const s=e[t];if(s){const e=Object.keys(s).filter((e=>e.startsWith("is")));for(const t of e)t in o||(o[t]=s[t])}}delete o.inheritTypesFrom}function bi(e,t){const o=e[t],s=o.allowIn.filter((t=>e[t]));o.allowIn=Array.from(new Set(s))}function _i(e,t){const o=e[t];for(const s of o.allowIn){e[s].allowChildren.push(t)}}function ki(e,t){const o=e[t];o.allowAttributes=Array.from(new Set(o.allowAttributes))}function wi(e,t,o){for(const s of e){const e=s[o];"string"==typeof e?t[o].push(e):Array.isArray(e)&&t[o].push(...e)}}function vi(e,t){const o=e[t];return(s=e,Object.keys(s).map((e=>s[e]))).filter((e=>e.allowIn.includes(o.name)));var s}function yi(e){return"string"==typeof e||e.is("documentFragment")?{name:"string"==typeof e?e:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:e.is("element")?e.name:"$text",*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute:t=>e.getAttribute(t)}}function xi(e,t,o){for(const s of t.getAttributeKeys())e.checkAttribute(t,s)||o.removeAttribute(s,t)}var Pi=Object.defineProperty,Ci=Object.defineProperties,Ti=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,Ai=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,Oi=(e,t,o)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class Ri extends((0,a.ln)()){constructor(e){var t;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(t=((e,t)=>{for(var o in t||(t={}))Ai.call(t,o)&&Oi(e,o,t[o]);if(Ei)for(var o of Ei(t))Si.call(t,o)&&Oi(e,o,t[o]);return e})({},e),Ci(t,Ti({consumable:null,writer:null,store:null,convertItem:(e,t)=>this._convertItem(e,t),convertChildren:(e,t)=>this._convertChildren(e,t),safeInsert:(e,t)=>this._safeInsert(e,t),updateConversionResult:(e,t)=>this._updateConversionResult(e,t),splitToAllowedParent:(e,t)=>this._splitToAllowedParent(e,t),getSplitParts:e=>this._getSplitParts(e),keepEmptyElement:e=>this._keepEmptyElement(e)})))}convert(e,t,o=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let o;for(const s of new di(e)){const e={};for(const t of s.getAttributeKeys())e[t]=s.getAttribute(t);const i=t.createElement(s.name,e);o&&t.insert(i,o),o=Zo._createAt(i,0)}return o}(o,t),this.conversionApi.writer=t,this.conversionApi.consumable=ni.createFrom(e),this.conversionApi.store={};const{modelRange:s}=this._convertItem(e,this._modelCursor),i=t.createDocumentFragment();if(s){this._removeEmptyElements();for(const e of Array.from(this._modelCursor.parent.getChildren()))t.append(e,i);i.markers=function(e,t){const o=new Set,s=new Map,i=Go._createIn(e).getItems();for(const e of i)e.is("element","$marker")&&o.add(e);for(const e of o){const o=e.getAttribute("data-name"),i=t.createPositionBefore(e);s.has(o)?s.get(o).end=i.clone():s.set(o,new Go(i.clone())),t.remove(e)}return s}(i,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(e,t){const o={viewItem:e,modelCursor:t,modelRange:null};if(e.is("element")?this.fire(`element:${e.name}`,o,this.conversionApi):e.is("$text")?this.fire("text",o,this.conversionApi):this.fire("documentFragment",o,this.conversionApi),o.modelRange&&!(o.modelRange instanceof Go))throw new a.Bb("view-conversion-dispatcher-incorrect-result",this);return{modelRange:o.modelRange,modelCursor:o.modelCursor}}_convertChildren(e,t){let o=t.is("position")?t:Zo._createAt(t,0);const s=new Go(o);for(const t of Array.from(e.getChildren())){const e=this._convertItem(t,o);e.modelRange instanceof Go&&(s.end=e.modelRange.end,o=e.modelCursor)}return{modelRange:s,modelCursor:o}}_safeInsert(e,t){const o=this._splitToAllowedParent(e,t);return!!o&&(this.conversionApi.writer.insert(e,o.position),!0)}_updateConversionResult(e,t){const o=this._getSplitParts(e),s=this.conversionApi.writer;t.modelRange||(t.modelRange=s.createRange(s.createPositionBefore(e),s.createPositionAfter(o[o.length-1])));const i=this._cursorParents.get(e);t.modelCursor=i?s.createPositionAt(i,0):t.modelRange.end}_splitToAllowedParent(e,t){const{schema:o,writer:s}=this.conversionApi;let i=o.findAllowedParent(t,e);if(i){if(i===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(i)&&(i=null)}if(!i)return zs(t,e,o)?{position:Fs(t,s)}:null;const r=this.conversionApi.writer.split(t,i),n=[];for(const e of r.range.getWalker())if("elementEnd"==e.type)n.push(e.item);else{const t=n.pop(),o=e.item;this._registerSplitPair(t,o)}const a=r.range.end.parent;return this._cursorParents.set(e,a),{position:r.position,cursorParent:a}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const o=this._splitParts.get(e);this._splitParts.set(t,o),o.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_keepEmptyElement(e){this._emptyElementsToKeep.add(e)}_removeEmptyElements(){let e=!1;for(const t of this._splitParts.keys())t.isEmpty&&!this._emptyElementsToKeep.has(t)&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}class ji{getHtml(e){const t=a.global.document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class Mi{constructor(e){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new Nt(e,{renderingMode:"data"}),this.htmlWriter=new ji}toData(e){const t=this.domConverter.viewToDom(e);return this.htmlWriter.getHtml(t)}toView(e){const t=this._toDom(e);return this.domConverter.domToView(t,{skipComments:this.skipComments})}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}_toDom(e){e.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(e=`<body>${e}</body>`);const t=this.domParser.parseFromString(e,"text/html"),o=t.createDocumentFragment(),s=t.body.childNodes;for(;s.length>0;)o.appendChild(s[0]);return o}}class Vi extends((0,a.ln)()){constructor(e,t){super(),this.model=e,this.mapper=new Ko,this.downcastDispatcher=new as({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",((e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const s=o.writer,i=o.mapper.toViewPosition(t.range.start),r=s.createText(t.item.data);s.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)}),{priority:"lowest"}),this.upcastDispatcher=new Ri({schema:e.schema}),this.viewDocument=new Ue(t),this.stylesProcessor=t,this.htmlProcessor=new Mi(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new rt(this.viewDocument),this.upcastDispatcher.on("text",((e,t,{schema:o,consumable:s,writer:i})=>{let r=t.modelCursor;if(!s.test(t.viewItem))return;if(!o.checkChild(r,"$text")){if(!zs(r,"$text",o))return;if(0==t.viewItem.data.trim().length)return;const e=r.nodeBefore;r=Fs(r,i),e&&e.is("element","$marker")&&(i.move(i.createRangeOn(e),r),r=i.createPositionAfter(e))}s.consume(t.viewItem);const n=i.createText(t.viewItem.data);i.insert(n,r),t.modelRange=i.createRange(r,r.getShiftedBy(n.offsetSize)),t.modelCursor=t.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:s}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=s}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:s}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=s}}),{priority:"lowest"}),(0,a.Re)().prototype.decorate.call(this,"init"),(0,a.Re)().prototype.decorate.call(this,"set"),(0,a.Re)().prototype.decorate.call(this,"get"),(0,a.Re)().prototype.decorate.call(this,"toView"),(0,a.Re)().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},Ns)}),{priority:"lowest"})}get(e={}){const{rootName:t="main",trim:o="empty"}=e;if(!this._checkIfRootsExists([t]))throw new a.Bb("datacontroller-get-non-existent-root",this);const s=this.model.document.getRoot(t);return s.isAttached()||(0,a.KE)("datacontroller-get-detached-root",this),"empty"!==o||this.model.hasContent(s,{ignoreWhitespaces:!0})?this.stringify(s,e):""}stringify(e,t={}){const o=this.toView(e,t);return this.processor.toData(o)}toView(e,t={}){const o=this.viewDocument,s=this._viewWriter;this.mapper.clearBindings();const i=Go._createIn(e),r=new it(o);this.mapper.bindElements(e,r);const n=e.is("documentFragment")?e.markers:function(e){const t=[],o=e.root.document;if(!o)return new Map;const s=Go._createIn(e);for(const e of o.model.markers){const o=e.getRange(),i=o.isCollapsed,r=o.start.isEqual(s.start)||o.end.isEqual(s.end);if(i&&r)t.push([e.name,o]);else{const i=s.getIntersection(o);i&&t.push([e.name,i])}}return t.sort((([e,t],[o,s])=>{if("after"!==t.end.compareWith(s.start))return 1;if("before"!==t.start.compareWith(s.end))return-1;switch(t.start.compareWith(s.start)){case"before":return 1;case"after":return-1;default:switch(t.end.compareWith(s.end)){case"before":return 1;case"after":return-1;default:return o.localeCompare(e)}}})),new Map(t)}(e);return this.downcastDispatcher.convert(i,n,s,t),r}init(e){if(this.model.document.version)throw new a.Bb("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new a.Bb("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(e=>{for(const o of Object.keys(t)){const s=this.model.document.getRoot(o);e.insert(this.parse(t[o],s),s,0)}})),Promise.resolve()}set(e,t={}){let o={};if("string"==typeof e?o.main=e:o=e,!this._checkIfRootsExists(Object.keys(o)))throw new a.Bb("datacontroller-set-non-existent-root",this);this.model.enqueueChange(t.batchType||{},(e=>{e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const t of Object.keys(o)){const s=this.model.document.getRoot(t);e.remove(e.createRangeIn(s)),e.insert(this.parse(o[t],s),s,0)}}))}parse(e,t="$root"){const o=this.processor.toView(e);return this.toModel(o,t)}toModel(e,t="$root"){return this.model.change((o=>this.upcastDispatcher.convert(e,o,t)))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e)if(!this.model.document.getRoot(t))return!1;return!0}}class Bi{constructor(e,t){this._helpers=new Map,this._downcast=(0,a.qo)(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=(0,a.qo)(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const o=this._downcast.includes(t);if(!this._upcast.includes(t)&&!o)throw new a.Bb("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:o})}for(e){if(!this._helpers.has(e))throw new a.Bb("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:o}of Ii(e))this.for("upcast").elementToElement({model:t,view:o,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:o}of Ii(e))this.for("upcast").elementToAttribute({view:o,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:o}of Ii(e))this.for("upcast").attributeToAttribute({view:o,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:o}){if(this._helpers.has(e))throw new a.Bb("conversion-group-exists",this);const s=o?new Cs(t):new Gs(t);this._helpers.set(e,s)}}function*Ii(e){if(e.model.values)for(const t of e.model.values){const o={key:e.model.key,value:t},s=e.view[t],i=e.upcastAlso?e.upcastAlso[t]:void 0;yield*Di(o,s,i)}else yield*Di(e.model,e.view,e.upcastAlso)}function*Di(e,t,o){if(yield{model:e,view:t},o)for(const t of(0,a.qo)(o))yield{model:e,view:t}}class Ni{constructor(e){this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return"Operation"}static fromJSON(e,t){return new this(e.baseVersion)}}function zi(e,t){const o=Zi(t),s=o.reduce(((e,t)=>e+t.offsetSize),0),i=e.parent;$i(e);const r=e.index;return i._insertChild(r,o),Wi(i,r+o.length),Wi(i,r),new Go(e,e.getShiftedBy(s))}function Fi(e){if(!e.isFlat)throw new a.Bb("operation-utils-remove-range-not-flat",this);const t=e.start.parent;$i(e.start),$i(e.end);const o=t._removeChildren(e.start.index,e.end.index-e.start.index);return Wi(t,e.start.index),o}function Li(e,t){if(!e.isFlat)throw new a.Bb("operation-utils-move-range-not-flat",this);const o=Fi(e);return zi(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),o)}function Zi(e){const t=[];!function e(o){if("string"==typeof o)t.push(new Do(o));else if(o instanceof No)t.push(new Do(o.data,o.getAttributes()));else if(o instanceof Bo)t.push(o);else if((0,a.TW)(o))for(const t of o)e(t);else{}}(e);for(let e=1;e<t.length;e++){const o=t[e],s=t[e-1];o instanceof Do&&s instanceof Do&&qi(o,s)&&(t.splice(e-1,2,new Do(s.data+o.data,s.getAttributes())),e--)}return t}function Wi(e,t){const o=e.getChild(t-1),s=e.getChild(t);if(o&&s&&o.is("$text")&&s.is("$text")&&qi(o,s)){const i=new Do(o.data+s.data,o.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,i)}}function $i(e){const t=e.textNode,o=e.parent;if(t){const s=e.offset-t.startOffset,i=t.index;o._removeChildren(i,1);const r=new Do(t.data.substr(0,s),t.getAttributes()),n=new Do(t.data.substr(s),t.getAttributes());o._insertChild(i,[r,n])}}function qi(e,t){const o=e.getAttributes(),s=t.getAttributes();for(const e of o){if(e[1]!==t.getAttribute(e[0]))return!1;s.next()}return s.next().done}class Hi extends Ni{constructor(e,t,o,s){super(s),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=o.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}get affectedSelectable(){return[Go._createFromPositionAndShift(this.sourcePosition,this.howMany),Go._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new Hi(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new Hi(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,o=this.sourcePosition.offset,s=this.targetPosition.offset;if(o+this.howMany>e.maxOffset)throw new a.Bb("move-operation-nodes-do-not-exist",this);if(e===t&&o<s&&s<o+this.howMany)throw new a.Bb("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==(0,a.Rt)(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=o&&this.targetPosition.path[e]<o+this.howMany)throw new a.Bb("move-operation-node-into-itself",this)}}_execute(){Li(Go._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){const o=Zo.fromJSON(e.sourcePosition,t),s=Zo.fromJSON(e.targetPosition,t);return new this(o,e.howMany,s,e.baseVersion)}}class Ui extends Ni{constructor(e,t,o){super(o),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new Io(Zi(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const e=new Io([...this.nodes].map((e=>e._clone(!0)))),t=new Ui(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new Zo(e,[0]);return new Hi(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new a.Bb("insert-operation-position-invalid",this)}_execute(){const e=this.nodes;this.nodes=new Io([...e].map((e=>e._clone(!0)))),zi(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const o=[];for(const t of e.nodes)t.name?o.push(zo.fromJSON(t)):o.push(Do.fromJSON(t));const s=new Ui(Zo.fromJSON(e.position,t),o,e.baseVersion);return s.shouldReceiveAttributes=e.shouldReceiveAttributes,s}}class Gi extends Ni{constructor(e,t,o,s,i){super(i),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=o,this.graveyardPosition=s?s.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new Zo(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Go(this.splitPosition,e)}get affectedSelectable(){const e=[Go._createFromPositionAndShift(this.splitPosition,0),Go._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&e.push(Go._createFromPositionAndShift(this.graveyardPosition,0)),e}clone(){return new Gi(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new Zo(e,[0]);return new Ki(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new a.Bb("split-operation-position-invalid",this);if(!e.parent)throw new a.Bb("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new a.Bb("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new a.Bb("split-operation-graveyard-position-invalid",this)}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)Li(Go._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();zi(this.insertionPosition,t)}Li(new Go(Zo._createAt(e,this.splitPosition.offset),Zo._createAt(e,e.maxOffset)),this.moveTargetPosition)}toJSON(){const e=super.toJSON();return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}static get className(){return"SplitOperation"}static getInsertionPosition(e){const t=e.path.slice(0,-1);return t[t.length-1]++,new Zo(e.root,t,"toPrevious")}static fromJSON(e,t){const o=Zo.fromJSON(e.splitPosition,t),s=Zo.fromJSON(e.insertionPosition,t),i=e.graveyardPosition?Zo.fromJSON(e.graveyardPosition,t):null;return new this(o,e.howMany,s,i,e.baseVersion)}}class Ki extends Ni{constructor(e,t,o,s,i){super(i),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=o.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=s.clone()}get type(){return"merge"}get deletionPosition(){return new Zo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Go(this.sourcePosition,e)}get affectedSelectable(){const e=this.sourcePosition.parent;return[Go._createOn(e),Go._createFromPositionAndShift(this.targetPosition,0),Go._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Ki(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),o=new Zo(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new Gi(e,this.howMany,o,this.graveyardPosition,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new a.Bb("merge-operation-source-position-invalid",this);if(!t.parent)throw new a.Bb("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new a.Bb("merge-operation-how-many-invalid",this)}_execute(){const e=this.sourcePosition.parent;Li(Go._createIn(e),this.targetPosition),Li(Go._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){const o=Zo.fromJSON(e.sourcePosition,t),s=Zo.fromJSON(e.targetPosition,t),i=Zo.fromJSON(e.graveyardPosition,t);return new this(o,e.howMany,s,i,e.baseVersion)}}class Ji extends Ni{constructor(e,t,o,s,i,r){super(r),this.name=e,this.oldRange=t?t.clone():null,this.newRange=o?o.clone():null,this.affectsData=i,this._markers=s}get type(){return"marker"}get affectedSelectable(){const e=[];return this.oldRange&&e.push(this.oldRange.clone()),this.newRange&&(this.oldRange?e.push(...this.newRange.getDifference(this.oldRange)):e.push(this.newRange.clone())),e}clone(){return new Ji(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Ji(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 e=super.toJSON();return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}static get className(){return"MarkerOperation"}static fromJSON(e,t){return new Ji(e.name,e.oldRange?Go.fromJSON(e.oldRange,t):null,e.newRange?Go.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}const Yi=function(e,t){return wo(e,t)};class Xi extends Ni{constructor(e,t,o,s,i){super(i),this.range=e.clone(),this.key=t,this.oldValue=void 0===o?null:o,this.newValue=void 0===s?null:s}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new Xi(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Xi(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const e=super.toJSON();return e.range=this.range.toJSON(),e}_validate(){if(!this.range.isFlat)throw new a.Bb("attribute-operation-range-not-flat",this);for(const e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Yi(e.getAttribute(this.key),this.oldValue))throw new a.Bb("attribute-operation-wrong-old-value",this,{item:e,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&e.hasAttribute(this.key))throw new a.Bb("attribute-operation-attribute-exists",this,{node:e,key:this.key})}}_execute(){Yi(this.oldValue,this.newValue)||function(e,t,o){$i(e.start),$i(e.end);for(const s of e.getItems({shallow:!0})){const e=s.is("$textProxy")?s.textNode:s;null!==o?e._setAttribute(t,o):e._removeAttribute(t),Wi(e.parent,e.index)}Wi(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new Xi(Go.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Qi extends Ni{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new Qi(this.baseVersion)}getReversed(){return new Qi(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class er extends Ni{constructor(e,t,o,s){super(s),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=o}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new er(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new er(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof zo))throw new a.Bb("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new a.Bb("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new er(Zo.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class tr extends Ni{constructor(e,t,o,s,i){super(i),this.root=e,this.key=t,this.oldValue=void 0===o?null:o,this.newValue=void 0===s?null:s}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new tr(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new tr(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new a.Bb("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new a.Bb("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new a.Bb("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new a.Bb("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new tr(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class or extends Ni{constructor(e,t,o,s,i){if(super(i),this.rootName=e,this.elementName=t,this.isAdd=o,this._document=s,!this._document.getRoot(this.rootName)){this._document.createRoot(this.elementName,this.rootName)._isAttached=!1}}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new or(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new or(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){const e=super.toJSON();return delete e._document,e}static get className(){return"RootOperation"}static fromJSON(e,t){return new or(e.rootName,e.elementName,e.isAdd,t,e.baseVersion)}}const sr={};sr[Xi.className]=Xi,sr[Ui.className]=Ui,sr[Ji.className]=Ji,sr[Hi.className]=Hi,sr[Qi.className]=Qi,sr[Ni.className]=Ni,sr[er.className]=er,sr[tr.className]=tr,sr[or.className]=or,sr[Gi.className]=Gi,sr[Ki.className]=Ki;class ir{static fromJSON(e,t){return sr[e.__className].fromJSON(e,t)}}const rr=new Map;function nr(e,t,o){let s=rr.get(e);s||(s=new Map,rr.set(e,s)),s.set(t,o)}function ar(e){return[e]}function cr(e,t,o={}){const s=function(e,t){const o=rr.get(e);return o&&o.has(t)?o.get(t):ar}(e.constructor,t.constructor);try{return s(e=e.clone(),t,o)}catch(e){throw e}}function lr(e,t,o){e=e.slice(),t=t.slice();const s=new dr(o.document,o.useRelations,o.forceWeakRemove);s.setOriginalOperations(e),s.setOriginalOperations(t);const i=s.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:i};const r=new WeakMap;for(const t of e)r.set(t,0);const n={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length};let a=0;for(;a<e.length;){const o=e[a],i=r.get(o);if(i==t.length){a++;continue}const n=t[i],c=cr(o,n,s.getContext(o,n,!0)),l=cr(n,o,s.getContext(n,o,!1));s.updateRelation(o,n),s.setOriginalOperations(c,o),s.setOriginalOperations(l,n);for(const e of c)r.set(e,i+l.length);e.splice(a,1,...c),t.splice(i,1,...l)}if(o.padWithNoOps){const o=e.length-n.originalOperationsACount,s=t.length-n.originalOperationsBCount;ur(e,s-o),ur(t,o-s)}return hr(e,n.nextBaseVersionB),hr(t,n.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:i}}class dr{constructor(e,t,o=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!o,this._relations=new Map}setOriginalOperations(e,t=null){const o=t?this.originalOperations.get(t):null;for(const t of e)this.originalOperations.set(t,o||t)}updateRelation(e,t){if(e instanceof Hi)t instanceof Ki?e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter"):t instanceof Hi&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof Gi){if(t instanceof Ki)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof Hi)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{const o=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.splitPosition)){const s=o.end.offset-e.splitPosition.offset,i=e.splitPosition.offset-o.start.offset;this._setRelation(e,t,{howMany:s,offset:i})}}}else if(e instanceof Ki)t instanceof Ki?(e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement")):t instanceof Gi&&e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource");else if(e instanceof Ji){const o=e.newRange;if(!o)return;if(t instanceof Hi){const s=Go._createFromPositionAndShift(t.sourcePosition,t.howMany),i=s.containsPosition(o.start)||s.start.isEqual(o.start),r=s.containsPosition(o.end)||s.end.isEqual(o.end);!i&&!r||s.containsRange(o)||this._setRelation(e,t,{side:i?"left":"right",path:i?o.start.path.slice():o.end.path.slice()})}else if(t instanceof Ki){const s=o.start.isEqual(t.targetPosition),i=o.start.isEqual(t.deletionPosition),r=o.end.isEqual(t.deletionPosition),n=o.end.isEqual(t.sourcePosition);(s||i||r||n)&&this._setRelation(e,t,{wasInLeftElement:s,wasStartBeforeMergedElement:i,wasEndBeforeMergedElement:r,wasInRightElement:n})}}}getContext(e,t,o){return{aIsStrong:o,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){const t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){const o=this.originalOperations.get(t),s=this._history.getUndoneOperation(o);if(!s)return null;const i=this.originalOperations.get(e),r=this._relations.get(i);return r&&r.get(s)||null}_setRelation(e,t,o){const s=this.originalOperations.get(e),i=this.originalOperations.get(t);let r=this._relations.get(s);r||(r=new Map,this._relations.set(s,r)),r.set(i,o)}}function hr(e,t){for(const o of e)o.baseVersion=t++}function ur(e,t){for(let o=0;o<t;o++)e.push(new Qi(0))}function pr(e,t,o){const s=e.nodes.getNode(0).getAttribute(t);if(s==o)return null;const i=new Go(e.position,e.position.getShiftedBy(e.howMany));return new Xi(i,t,s,o,0)}function fr(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function gr(e,t){const o=[];for(let s=0;s<e.length;s++){const i=e[s],r=new Hi(i.start,i.end.offset-i.start.offset,t,0);o.push(r);for(let t=s+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];t=t._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return o}nr(Xi,Xi,((e,t,o)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){const s=e.range.getDifference(t.range).map((t=>new Xi(t,e.key,e.oldValue,e.newValue,0))),i=e.range.getIntersection(t.range);return i&&o.aIsStrong&&s.push(new Xi(i,t.key,t.newValue,e.newValue,0)),0==s.length?[new Qi(0)]:s}return[e]})),nr(Xi,Ui,((e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){const o=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((t=>new Xi(t,e.key,e.oldValue,e.newValue,e.baseVersion)));if(t.shouldReceiveAttributes){const s=pr(t,e.key,e.oldValue);s&&o.unshift(s)}return o}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),nr(Xi,Ki,((e,t)=>{const o=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&o.push(Go._createFromPositionAndShift(t.graveyardPosition,1));const s=e.range._getTransformedByMergeOperation(t);return s.isCollapsed||o.push(s),o.map((t=>new Xi(t,e.key,e.oldValue,e.newValue,e.baseVersion)))})),nr(Xi,Hi,((e,t)=>function(e,t){const o=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);let s=null,i=[];o.containsRange(e,!0)?s=e:e.start.hasSameParentAs(o.start)?(i=e.getDifference(o),s=e.getIntersection(o)):i=[e];const r=[];for(let e of i){e=e._getTransformedByDeletion(t.sourcePosition,t.howMany);const o=t.getMovedRangeStart(),s=e.start.hasSameParentAs(o),i=e._getTransformedByInsertion(o,t.howMany,s);r.push(...i)}s&&r.push(s._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]);return r}(e.range,t).map((t=>new Xi(t,e.key,e.oldValue,e.newValue,e.baseVersion))))),nr(Xi,Gi,((e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){const o=e.clone();return o.range=new Go(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,o]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),nr(Ui,Xi,((e,t)=>{const o=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){const s=pr(e,t.key,t.newValue);s&&o.push(s)}return o})),nr(Ui,Ui,((e,t,o)=>(e.position.isEqual(t.position)&&o.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]))),nr(Ui,Hi,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),nr(Ui,Gi,((e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e]))),nr(Ui,Ki,((e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e]))),nr(Ji,Ui,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]))),nr(Ji,Ji,((e,t,o)=>{if(e.name==t.name){if(!o.aIsStrong)return[new Qi(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),nr(Ji,Ki,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]))),nr(Ji,Hi,((e,t,o)=>{if(e.oldRange&&(e.oldRange=Go._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(o.abRelation){const s=Go._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==o.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.end=s.end,e.newRange.start.path=o.abRelation.path,[e];if("right"==o.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=s.start,e.newRange.end.path=o.abRelation.path,[e]}e.newRange=Go._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),nr(Ji,Gi,((e,t,o)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(o.abRelation){const s=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&o.abRelation.wasStartBeforeMergedElement?e.newRange.start=Zo._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!o.abRelation.wasInLeftElement&&(e.newRange.start=Zo._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&o.abRelation.wasInRightElement?e.newRange.end=Zo._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&o.abRelation.wasEndBeforeMergedElement?e.newRange.end=Zo._createAt(t.insertionPosition):e.newRange.end=s.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),nr(Ki,Ui,((e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]))),nr(Ki,Ki,((e,t,o)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(o.bWasUndone){const o=t.graveyardPosition.path.slice();return o.push(0),e.sourcePosition=new Zo(t.graveyardPosition.root,o),e.howMany=0,[e]}return[new Qi(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!o.bWasUndone&&"splitAtSource"!=o.abRelation){const s="$graveyard"==e.targetPosition.root.rootName,i="$graveyard"==t.targetPosition.root.rootName;if(i&&!s||!(s&&!i)&&o.aIsStrong){const o=t.targetPosition._getTransformedByMergeOperation(t),s=e.targetPosition._getTransformedByMergeOperation(t);return[new Hi(o,e.howMany,s,0)]}return[new Qi(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&o.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),nr(Ki,Hi,((e,t,o)=>{const s=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!o.bWasUndone&&!o.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&s.containsPosition(e.sourcePosition)?[new Qi(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),nr(Ki,Gi,((e,t,o)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){const s=0!=t.howMany,i=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(s||i||"mergeTargetNotMoved"==o.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==o.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==o.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),nr(Hi,Ui,((e,t)=>{const o=Go._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=o.start,e.howMany=o.end.offset-o.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),nr(Hi,Hi,((e,t,o)=>{const s=Go._createFromPositionAndShift(e.sourcePosition,e.howMany),i=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);let r,n=o.aIsStrong,c=!o.aIsStrong;if("insertBefore"==o.abRelation||"insertAfter"==o.baRelation?c=!0:"insertAfter"!=o.abRelation&&"insertBefore"!=o.baRelation||(c=!1),r=e.targetPosition.isEqual(t.targetPosition)&&c?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),fr(e,t)&&fr(t,e))return[t.getReversed()];if(s.containsPosition(t.targetPosition)&&s.containsRange(i,!0))return s.start=s.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),s.end=s.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),gr([s],r);if(i.containsPosition(e.targetPosition)&&i.containsRange(s,!0))return s.start=s.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),s.end=s.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),gr([s],r);const l=(0,a.Rt)(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return s.start=s.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),s.end=s.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),gr([s],r);"remove"!=e.type||"remove"==t.type||o.aWasUndone||o.forceWeakRemove?"remove"==e.type||"remove"!=t.type||o.bWasUndone||o.forceWeakRemove||(n=!1):n=!0;const d=[],h=s.getDifference(i);for(const e of h){e.start=e.start._getTransformedByDeletion(t.sourcePosition,t.howMany),e.end=e.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const o="same"==(0,a.Rt)(e.start.getParentPath(),t.getMovedRangeStart().getParentPath()),s=e._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,o);d.push(...s)}const u=s.getIntersection(i);return null!==u&&n&&(u.start=u.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),u.end=u.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===d.length?d.push(u):1==d.length?i.start.isBefore(s.start)||i.start.isEqual(s.start)?d.unshift(u):d.push(u):d.splice(1,0,u)),0===d.length?[new Qi(e.baseVersion)]:gr(d,r)})),nr(Hi,Gi,((e,t,o)=>{let s=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=o.abRelation||(s=e.targetPosition._getTransformedBySplitOperation(t));const i=Go._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=s,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){let e=new Go(t.splitPosition,i.end);e=e._getTransformedBySplitOperation(t);return gr([new Go(i.start,t.splitPosition),e],s)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==o.abRelation&&(s=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==o.abRelation&&(s=e.targetPosition);const r=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!o.aWasUndone&&r.push(Go._createFromPositionAndShift(t.insertionPosition,1))}return gr(r,s)})),nr(Hi,Ki,((e,t,o)=>{const s=Go._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&s.containsPosition(t.sourcePosition))if("remove"!=e.type||o.forceWeakRemove){if(1==e.howMany)return o.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Qi(0)]}else if(!o.aWasUndone){const o=[];let s=t.graveyardPosition.clone(),i=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(o.push(new Hi(e.sourcePosition,e.howMany-1,e.targetPosition,0)),s=s._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),i=i._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));const r=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),n=new Hi(s,1,r,0),a=n.getMovedRangeStart().path.slice();a.push(0);const c=new Zo(n.targetPosition.root,a);i=i._getTransformedByMove(s,r,1);const l=new Hi(i,t.howMany,c,0);return o.push(n),o.push(l),o}const i=Go._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=i.start,e.howMany=i.end.offset-i.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),nr(er,Ui,((e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e]))),nr(er,Ki,((e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e]))),nr(er,Hi,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),nr(er,er,((e,t,o)=>{if(e.position.isEqual(t.position)){if(!o.aIsStrong)return[new Qi(0)];e.oldName=t.newName}return[e]})),nr(er,Gi,((e,t)=>{const o=e.position.path,s=t.splitPosition.getParentPath();if("same"==(0,a.Rt)(o,s)&&!t.graveyardPosition){const t=new er(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),nr(tr,tr,((e,t,o)=>{if(e.root===t.root&&e.key===t.key){if(!o.aIsStrong||e.newValue===t.newValue)return[new Qi(0)];e.oldValue=t.newValue}return[e]})),nr(or,or,((e,t)=>e.rootName===t.rootName&&e.isAdd===t.isAdd?[new Qi(0)]:[e])),nr(Gi,Ui,((e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=e.insertionPosition._getTransformedByInsertOperation(t),[e]))),nr(Gi,Ki,((e,t,o)=>{if(!e.graveyardPosition&&!o.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){const o=t.graveyardPosition.path.slice();o.push(0);const s=new Zo(t.graveyardPosition.root,o),i=Gi.getInsertionPosition(new Zo(t.graveyardPosition.root,o)),r=new Gi(s,0,i,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),e.graveyardPosition=r.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[r,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),nr(Gi,Hi,((e,t,o)=>{const s=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){const i=s.start.isEqual(e.graveyardPosition)||s.containsPosition(e.graveyardPosition);if(!o.bWasUndone&&i){const o=e.splitPosition._getTransformedByMoveOperation(t),s=e.graveyardPosition._getTransformedByMoveOperation(t),i=s.path.slice();i.push(0);const r=new Zo(s.root,i);return[new Hi(o,e.howMany,r,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}const i=e.splitPosition.isEqual(t.targetPosition);if(i&&("insertAtSource"==o.baRelation||"splitBefore"==o.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),[e];if(i&&o.abRelation&&o.abRelation.howMany){const{howMany:t,offset:s}=o.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(s),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&s.containsPosition(e.splitPosition)){const o=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=o,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),[e]}return t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),[e]})),nr(Gi,Gi,((e,t,o)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Qi(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Qi(0)];if("splitBefore"==o.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){const s="$graveyard"==e.splitPosition.root.rootName,i="$graveyard"==t.splitPosition.root.rootName;if(i&&!s||!(s&&!i)&&o.aIsStrong){const o=[];return t.howMany&&o.push(new Hi(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&o.push(new Hi(e.splitPosition,e.howMany,e.moveTargetPosition,0)),o}return[new Qi(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==o.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==o.baRelation){const o=t.insertionPosition.path.slice();o.push(0);const s=new Zo(t.insertionPosition.root,o);return[e,new Hi(e.insertionPosition,1,s,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),[e]}));class mr extends((0,a.ln)(Zo)){constructor(e,t,o="toNone"){if(super(e,t,o),!this.root.is("rootElement"))throw new a.Bb("model-liveposition-root-not-rootelement",e);br.call(this)}detach(){this.stopListening()}toPosition(){return new Zo(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function br(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&_r.call(this,o)}),{priority:"low"})}function _r(e){const t=this.getTransformedByOperation(e);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}mr.prototype.is=function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e};class kr{constructor(e={}){"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},(0,a.KE)("batch-constructor-deprecated-string-type"));const{isUndoable:t=!0,isLocal:o=!0,isUndo:s=!1,isTyping:i=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=o,this.isUndo=s,this.isTyping=i}get type(){return(0,a.KE)("batch-type-deprecated"),"default"}get baseVersion(){for(const e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}var wr=Object.defineProperty,vr=Object.defineProperties,yr=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Pr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Tr=(e,t,o)=>t in e?wr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Er=(e,t)=>{for(var o in t||(t={}))Pr.call(t,o)&&Tr(e,o,t[o]);if(xr)for(var o of xr(t))Cr.call(t,o)&&Tr(e,o,t[o]);return e};class Ar{constructor(e){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=e}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(e){const t=e;switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const e of t.range.getItems({shallow:!0}))this._isInInsertedElement(e.parent)||this._markAttribute(e);break;case"remove":case"move":case"reinsert":{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;const e=this._isInInsertedElement(t.sourcePosition.parent),o=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),o||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break}case"rename":{if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);const e=Go._createFromPositionAndShift(t.position,1);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}break}case"split":{const e=t.splitPosition.parent;this._isInInsertedElement(e)||this._markRemove(e,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break}case"merge":{const e=t.sourcePosition.parent;this._isInInsertedElement(e.parent)||this._markRemove(e.parent,e.startOffset,1);const o=t.graveyardPosition.parent;this._markInsert(o,t.graveyardPosition.offset,1);const s=t.targetPosition.parent;this._isInInsertedElement(s)||this._markInsert(s,t.targetPosition.offset,e.maxOffset);break}case"detachRoot":case"addRoot":{const e=t.affectedSelectable;if(!e._isLoaded)return;if(e.isAttached()==t.isAdd)return;this._bufferRootStateChange(t.rootName,t.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!t.root._isLoaded)return;const e=t.root.rootName;this._bufferRootAttributeChange(e,t.key,t.oldValue,t.newValue);break}}this._cachedChanges=null}bufferMarkerChange(e,t,o){t.range&&t.range.root.is("rootElement")&&!t.range.root._isLoaded&&(t.range=null),o.range&&o.range.root.is("rootElement")&&!o.range.root._isLoaded&&(o.range=null);let s=this._changedMarkers.get(e);s?s.newMarkerData=o:(s={newMarkerData:o,oldMarkerData:t},this._changedMarkers.set(e,s)),null==s.oldMarkerData.range&&null==o.range&&this._changedMarkers.delete(e)}getMarkersToRemove(){const e=[];for(const[t,o]of this._changedMarkers)null!=o.oldMarkerData.range&&e.push({name:t,range:o.oldMarkerData.range});return e}getMarkersToAdd(){const e=[];for(const[t,o]of this._changedMarkers)null!=o.newMarkerData.range&&e.push({name:t,range:o.newMarkerData.range});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map((([e,t])=>({name:e,data:{oldRange:t.oldMarkerData.range,newRange:t.newMarkerData.range}})))}hasDataChanges(){if(this._changesInElement.size>0)return!0;if(this._changedRoots.size>0)return!0;for(const{newMarkerData:e,oldMarkerData:t}of this._changedMarkers.values()){if(e.affectsData!==t.affectsData)return!0;if(e.affectsData){const o=e.range&&!t.range,s=!e.range&&t.range,i=e.range&&t.range&&!e.range.isEqual(t.range);if(o||s||i)return!0}}return!1}getChanges(e={}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(const e of this._changesInElement.keys()){const o=this._changesInElement.get(e).sort(((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1)),s=this._elementSnapshots.get(e),i=Sr(e.getChildren()),r=Or(s.length,o);let n=0,a=0;for(const o of r)if("i"===o)t.push(this._getInsertDiff(e,n,i[n])),n++;else if("r"===o)t.push(this._getRemoveDiff(e,n,s[a])),a++;else if("a"===o){const o=i[n].attributes,r=s[a].attributes;let c;if("$text"==i[n].name)c=new Go(Zo._createAt(e,n),Zo._createAt(e,n+1));else{const t=e.offsetToIndex(n);c=new Go(Zo._createAt(e,n),Zo._createAt(e.getChild(t),0))}t.push(...this._getAttributesDiff(c,r,o)),n++,a++}else n++,a++}t.sort(((e,t)=>e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1));for(let e=1,o=0;e<t.length;e++){const s=t[o],i=t[e],r="remove"==s.type&&"remove"==i.type&&"$text"==s.name&&"$text"==i.name&&s.position.isEqual(i.position),n="insert"==s.type&&"insert"==i.type&&"$text"==s.name&&"$text"==i.name&&s.position.parent==i.position.parent&&s.position.offset+s.length==i.position.offset,a="attribute"==s.type&&"attribute"==i.type&&s.position.parent==i.position.parent&&s.range.isFlat&&i.range.isFlat&&s.position.offset+s.length==i.position.offset&&s.attributeKey==i.attributeKey&&s.attributeOldValue==i.attributeOldValue&&s.attributeNewValue==i.attributeNewValue;r||n||a?(s.length++,a&&(s.range.end=s.range.end.getShiftedBy(1)),t[e]=null):o=e}t=t.filter((e=>e));for(const e of t)delete e.changeCount,"attribute"==e.type&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t,this._cachedChanges=t.filter(Rr),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map((e=>{const t=Er({},e);return void 0!==t.state&&delete t.attributes,t}))}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(e,t){if(!this._changedRoots.has(e))return void this._changedRoots.set(e,{name:e,state:t?"attached":"detached"});const o=this._changedRoots.get(e);void 0!==o.state?(delete o.state,void 0===o.attributes&&this._changedRoots.delete(e)):o.state=t?"attached":"detached"}_bufferRootAttributeChange(e,t,o,s){const i=this._changedRoots.get(e)||{name:e},r=i.attributes||{};if(r[t]){const e=r[t];s===e.oldValue?delete r[t]:e.newValue=s}else r[t]={oldValue:o,newValue:s};0===Object.entries(r).length?(delete i.attributes,void 0===i.state&&this._changedRoots.delete(e)):(i.attributes=r,this._changedRoots.set(e,i))}_refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize),this._refreshedItems.add(e);const t=Go._createOn(e);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getData();this.bufferMarkerChange(e.name,t,t)}this._cachedChanges=null}_bufferRootLoad(e){if(e.isAttached()){this._bufferRootStateChange(e.rootName,!0),this._markInsert(e,0,e.maxOffset);for(const t of e.getAttributeKeys())this._bufferRootAttributeChange(e.rootName,t,null,e.getAttribute(t));for(const o of this._markerCollection)if(o.getRange().root==e){const e=o.getData();this.bufferMarkerChange(o.name,(t=Er({},e),vr(t,yr({range:null}))),e)}var t}}_markInsert(e,t,o){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const s={type:"insert",offset:t,howMany:o,count:this._changeCount++};this._markChange(e,s)}_markRemove(e,t,o){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const s={type:"remove",offset:t,howMany:o,count:this._changeCount++};this._markChange(e,s),this._removeAllNestedChanges(e,t,o)}_markAttribute(e){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshot(e);const o=this._getChangesForElement(e);this._handleChange(t,o),o.push(t);for(let e=0;e<o.length;e++)o[e].howMany<1&&(o.splice(e,1),e--)}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshot(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Sr(e.getChildren()))}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const o of t){const s=e.offset+e.howMany,i=o.offset+o.howMany;if("insert"==e.type&&("insert"==o.type&&(e.offset<=o.offset?o.offset+=e.howMany:e.offset<i&&(o.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==o.type&&e.offset<o.offset&&(o.offset+=e.howMany),"attribute"==o.type))if(e.offset<=o.offset)o.offset+=e.howMany;else if(e.offset<i){const i=o.howMany;o.howMany=e.offset-o.offset,t.unshift({type:"attribute",offset:s,howMany:i-o.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==o.type)if(s<=o.offset)o.offset-=e.howMany;else if(s<=i)if(e.offset<o.offset){const t=s-o.offset;o.offset=e.offset,o.howMany-=t,e.nodesToHandle-=t}else o.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=o.offset)e.nodesToHandle-=o.howMany,o.howMany=0;else if(e.offset<i){const t=i-e.offset;o.howMany-=t,e.nodesToHandle-=t}if("remove"==o.type&&(s<=o.offset?o.offset-=e.howMany:e.offset<o.offset&&(e.nodesToHandle+=o.howMany,o.howMany=0)),"attribute"==o.type)if(s<=o.offset)o.offset-=e.howMany;else if(e.offset<o.offset){const t=s-o.offset;o.offset=e.offset,o.howMany-=t}else if(e.offset<i)if(s<=i){const s=o.howMany;o.howMany=e.offset-o.offset;const i=s-o.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:i,count:this._changeCount++})}else o.howMany-=i-e.offset}if("attribute"==e.type){if("insert"==o.type)if(e.offset<o.offset&&s>o.offset){if(s>i){const e={type:"attribute",offset:i,howMany:s-i,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=o.offset&&e.offset<i&&(s>i?(e.nodesToHandle=s-i,e.offset=i):e.nodesToHandle=0);if("remove"==o.type&&e.offset<o.offset&&s>o.offset){const i={type:"attribute",offset:o.offset,howMany:s-o.offset,count:this._changeCount++};this._handleChange(i,t),t.push(i),e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==o.type&&(e.offset>=o.offset&&s<=i?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=o.offset&&s>=i&&(o.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,o){return{type:"insert",position:Zo._createAt(e,t),name:o.name,attributes:new Map(o.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(e,t,o){return{type:"remove",position:Zo._createAt(e,t),name:o.name,attributes:new Map(o.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,o){const s=[];o=new Map(o);for(const[i,r]of t){const t=o.has(i)?o.get(i):null;t!==r&&s.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:i,attributeOldValue:r,attributeNewValue:t,changeCount:this._changeCount++}),o.delete(i)}for(const[t,i]of o)s.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return s}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const o=this._changesInElement.get(t),s=e.startOffset;if(o)for(const e of o)if("insert"==e.type&&s>=e.offset&&s<e.offset+e.howMany)return!0;return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,o){const s=new Go(Zo._createAt(e,t),Zo._createAt(e,t+o));for(const e of s.getItems({shallow:!0}))e.is("element")&&(this._elementSnapshots.delete(e),this._changesInElement.delete(e),this._removeAllNestedChanges(e,0,e.maxOffset))}}function Sr(e){const t=[];for(const o of e)if(o.is("$text"))for(let e=0;e<o.data.length;e++)t.push({name:"$text",attributes:new Map(o.getAttributes())});else t.push({name:o.name,attributes:new Map(o.getAttributes())});return t}function Or(e,t){const o=[];let s=0,i=0;for(const e of t){if(e.offset>s){for(let t=0;t<e.offset-s;t++)o.push("e");i+=e.offset-s}if("insert"==e.type){for(let t=0;t<e.howMany;t++)o.push("i");s=e.offset+e.howMany}else if("remove"==e.type){for(let t=0;t<e.howMany;t++)o.push("r");s=e.offset,i+=e.howMany}else o.push(..."a".repeat(e.howMany).split("")),s=e.offset+e.howMany,i+=e.howMany}if(i<e)for(let t=0;t<e-i-s;t++)o.push("e");return o}function Rr(e){const t="position"in e&&"$graveyard"==e.position.root.rootName,o="range"in e&&"$graveyard"==e.range.root.rootName;return!t&&!o}class jr{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(e){this._operations.length&&e>this._version+1&&this._gaps.set(this._version,e),this._version=e}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(e){if(e.baseVersion!==this.version)throw new a.Bb("model-document-history-addoperation-incorrect-version",this,{operation:e,historyVersion:this.version});this._operations.push(e),this._version++,this._baseVersionToOperationIndex.set(e.baseVersion,this._operations.length-1)}getOperations(e,t=this.version){if(!this._operations.length)return[];const o=this._operations[0];void 0===e&&(e=o.baseVersion);let s=t-1;for(const[t,o]of this._gaps)e>t&&e<o&&(e=o),s>t&&s<o&&(s=t-1);if(s<o.baseVersion||e>this.lastOperation.baseVersion)return[];let i=this._baseVersionToOperationIndex.get(e);void 0===i&&(i=0);let r=this._baseVersionToOperationIndex.get(s);return void 0===r&&(r=this._operations.length-1),this._operations.slice(i,r+1)}getOperation(e){const t=this._baseVersionToOperationIndex.get(e);if(void 0!==t)return this._operations[t]}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class Mr extends zo{constructor(e,t,o="main"){super(t),this._isAttached=!0,this._isLoaded=!0,this._document=e,this.rootName=o}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Mr.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e};var Vr=Object.defineProperty,Br=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Dr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Fr=(e,t,o)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Lr=(e,t)=>{for(var o in t||(t={}))Nr.call(t,o)&&Fr(e,o,t[o]);if(Dr)for(var o of Dr(t))zr.call(t,o)&&Fr(e,o,t[o]);return e},Zr=(e,t)=>Br(e,Ir(t));const Wr="$graveyard";class $r extends((0,a.ln)()){constructor(e){super(),this.model=e,this.history=new jr,this.selection=new vs(this),this.roots=new a.FE({idProperty:"rootName"}),this.differ=new Ar(e.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Wr),this.listenTo(e,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&this.differ.bufferOperation(o)}),{priority:"high"}),this.listenTo(e,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&this.history.addOperation(o)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(e.markers,"update",((e,t,o,s,i)=>{const r=Zr(Lr({},t.getData()),{range:s});this.differ.bufferMarkerChange(t.name,i,r),null===o&&t.on("change",((e,o)=>{const s=t.getData();this.differ.bufferMarkerChange(t.name,Zr(Lr({},s),{range:o}),s)}))})),this.registerPostFixer((e=>{let t=!1;for(const o of this.roots)o.isAttached()||o.isEmpty||(e.remove(e.createRangeIn(o)),t=!0);for(const o of this.model.markers)o.getRange().root.isAttached()||(e.removeMarker(o),t=!0);return t}))}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(Wr)}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new a.Bb("model-document-createroot-name-exists",this,{name:t});const o=new Mr(this,e,t);return this.roots.add(o),o}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(e=!1){return this.getRoots(e).map((e=>e.rootName))}getRoots(e=!1){return this.roots.filter((t=>t!=this.graveyard&&(e||t.isAttached())&&t._isLoaded))}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=w(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const e=this.getRoots();return e.length?e[0]:this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot(),t=this.model,o=t.schema,s=t.createPositionFromPath(e,[0]);return o.getNearestSelectionRange(s)||t.createRange(s)}_validateSelectionRange(e){return qr(e.start)&&qr(e.end)}_callPostFixers(e){let t=!1;do{for(const o of this._postFixers)if(this.selection.refresh(),t=o(e),t)break}while(t)}}function qr(e){const t=e.textNode;if(t){const o=t.data,s=e.offset-t.startOffset;return!(0,a.to)(o,s)&&!(0,a.pp)(o,s)}return!0}var Hr=Object.defineProperty,Ur=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,Kr=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Xr=(e,t,o)=>t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class Qr extends((0,a.ln)()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){const t=e instanceof en?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,o=!1,s=!1){const i=e instanceof en?e.name:e;if(i.includes(","))throw new a.Bb("markercollection-incorrect-marker-name",this);const r=this._markers.get(i);if(r){const e=r.getData(),n=r.getRange();let a=!1;return n.isEqual(t)||(r._attachLiveRange(bs.fromRange(t)),a=!0),o!=r.managedUsingOperations&&(r._managedUsingOperations=o,a=!0),"boolean"==typeof s&&s!=r.affectsData&&(r._affectsData=s,a=!0),a&&this.fire(`update:${i}`,r,n,t,e),r}const n=bs.fromRange(t),c=new en(i,n,o,s);var l;return this._markers.set(i,c),this.fire(`update:${i}`,c,null,t,(l=((e,t)=>{for(var o in t||(t={}))Jr.call(t,o)&&Xr(e,o,t[o]);if(Kr)for(var o of Kr(t))Yr.call(t,o)&&Xr(e,o,t[o]);return e})({},c.getData()),Ur(l,Gr({range:null})))),c}_remove(e){const t=e instanceof en?e.name:e,o=this._markers.get(t);return!!o&&(this._markers.delete(t),this.fire(`update:${t}`,o,o.getRange(),null,o.getData()),this._destroyMarker(o),!0)}_refresh(e){const t=e instanceof en?e.name:e,o=this._markers.get(t);if(!o)throw new a.Bb("markercollection-refresh-marker-not-exists",this);const s=o.getRange();this.fire(`update:${t}`,o,s,s,o.getData())}*getMarkersAtPosition(e){for(const t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(const t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(const e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}class en extends((0,a.ln)(Vo)){constructor(e,t,o,s){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=o,this._affectsData=s}get managedUsingOperations(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}en.prototype.is=function(e){return"marker"===e||"model:marker"===e};class tn extends Ni{constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new a.Bb("detach-operation-on-document-node",this)}_execute(){Fi(Go._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class on extends Vo{constructor(e){super(),this.markers=new Map,this._children=new Io,e&&this._insertChild(0,e)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}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(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const o of e)t=t.getChild(t.offsetToIndex(o));return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}static fromJSON(e){const t=[];for(const o of e)o.name?t.push(zo.fromJSON(o)):t.push(Do.fromJSON(o));return new on(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const o=function(e){if("string"==typeof e)return[new Do(e)];(0,a.TW)(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new Do(e):e instanceof No?new Do(e.data,e.getAttributes()):e))}(t);for(const e of o)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,o)}_removeChildren(e,t=1){const o=this._children._removeNodes(e,t);for(const e of o)e.parent=null;return o}}on.prototype.is=function(e){return"documentFragment"===e||"model:documentFragment"===e};class sn{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new Do(e,t)}createElement(e,t){return new zo(e,t)}createDocumentFragment(){return new on}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,o=0){if(this._assertWriterUsedCorrectly(),e instanceof Do&&""==e.data)return;const s=Zo._createAt(t,o);if(e.parent){if(ln(e.root,s.root))return void this.move(Go._createOn(e),s);if(e.root.document)throw new a.Bb("model-writer-insert-forbidden-move",this);this.remove(e)}const i=s.root.document?s.root.document.version:null,r=new Ui(s,e,i);if(e instanceof Do&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof on)for(const[t,o]of e.markers){const e=Zo._createAt(o.root,0),i={range:new Go(o.start._getCombined(e,s),o.end._getCombined(e,s)),usingOperation:!0,affectsData:!0};this.model.markers.has(t)?this.updateMarker(t,i):this.addMarker(t,i)}}insertText(e,t,o,s){t instanceof on||t instanceof zo||t instanceof Zo?this.insert(this.createText(e),t,o):this.insert(this.createText(e,t),o,s)}insertElement(e,t,o,s){t instanceof on||t instanceof zo||t instanceof Zo?this.insert(this.createElement(e),t,o):this.insert(this.createElement(e,t),o,s)}append(e,t){this.insert(e,t,"end")}appendText(e,t,o){t instanceof on||t instanceof zo?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),o,"end")}appendElement(e,t,o){t instanceof on||t instanceof zo?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),o,"end")}setAttribute(e,t,o){if(this._assertWriterUsedCorrectly(),o instanceof Go){const s=o.getMinimalFlatRanges();for(const o of s)rn(this,e,t,o)}else nn(this,e,t,o)}setAttributes(e,t){for(const[o,s]of(0,a.qL)(e))this.setAttribute(o,s,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof Go){const o=t.getMinimalFlatRanges();for(const t of o)rn(this,e,null,t)}else nn(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=e=>{for(const t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof Go)for(const o of e.getItems())t(o);else t(e)}move(e,t,o){if(this._assertWriterUsedCorrectly(),!(e instanceof Go))throw new a.Bb("writer-move-invalid-range",this);if(!e.isFlat)throw new a.Bb("writer-move-range-not-flat",this);const s=Zo._createAt(t,o);if(s.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!ln(e.root,s.root))throw new a.Bb("writer-move-different-document",this);const i=e.root.document?e.root.document.version:null,r=new Hi(e.start,e.end.offset-e.start.offset,s,i);this.batch.addOperation(r),this.model.applyOperation(r)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof Go?e:Go._createOn(e)).getMinimalFlatRanges().reverse();for(const e of t)this._addOperationForAffectedMarkers("move",e),cn(e.start,e.end.offset-e.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,o=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof zo))throw new a.Bb("writer-merge-no-element-before",this);if(!(o instanceof zo))throw new a.Bb("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,o){return this.model.createPositionFromPath(e,t,o)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(...e){return this.model.createSelection(...e)}_mergeDetached(e){const t=e.nodeBefore,o=e.nodeAfter;this.move(Go._createIn(o),Zo._createAt(t,"end")),this.remove(o)}_merge(e){const t=Zo._createAt(e.nodeBefore,"end"),o=Zo._createAt(e.nodeAfter,0),s=e.root.document.graveyard,i=new Zo(s,[0]),r=e.root.document.version,n=new Ki(o,e.nodeAfter.maxOffset,t,i,r);this.batch.addOperation(n),this.model.applyOperation(n)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof zo))throw new a.Bb("writer-rename-not-element-instance",this);const o=e.root.document?e.root.document.version:null,s=new er(Zo._createBefore(e),e.name,t,o);this.batch.addOperation(s),this.model.applyOperation(s)}split(e,t){this._assertWriterUsedCorrectly();let o,s,i=e.parent;if(!i.parent)throw new a.Bb("writer-split-element-no-parent",this);if(t||(t=i.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new a.Bb("writer-split-invalid-limit-element",this);do{const t=i.root.document?i.root.document.version:null,r=i.maxOffset-e.offset,n=Gi.getInsertionPosition(e),a=new Gi(e,r,n,null,t);this.batch.addOperation(a),this.model.applyOperation(a),o||s||(o=i,s=e.parent.nextSibling),i=(e=this.createPositionAfter(e.parent)).parent}while(i!==t);return{position:e,range:new Go(Zo._createAt(o,"end"),Zo._createAt(s,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new a.Bb("writer-wrap-range-not-flat",this);const o=t instanceof zo?t:new zo(t);if(o.childCount>0)throw new a.Bb("writer-wrap-element-not-empty",this);if(null!==o.parent)throw new a.Bb("writer-wrap-element-attached",this);this.insert(o,e.start);const s=new Go(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(s,Zo._createAt(o,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new a.Bb("writer-unwrap-element-no-parent",this);this.move(Go._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new a.Bb("writer-addmarker-no-usingoperation",this);const o=t.usingOperation,s=t.range,i=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new a.Bb("writer-addmarker-marker-exists",this);if(!s)throw new a.Bb("writer-addmarker-no-range",this);return o?(an(this,e,null,s,i),this.model.markers.get(e)):this.model.markers._set(e,s,o,i)}updateMarker(e,t){this._assertWriterUsedCorrectly();const o="string"==typeof e?e:e.name,s=this.model.markers.get(o);if(!s)throw new a.Bb("writer-updatemarker-marker-not-exists",this);if(!t)return(0,a.KE)("writer-updatemarker-reconvert-using-editingcontroller",{markerName:o}),void this.model.markers._refresh(s);const i="boolean"==typeof t.usingOperation,r="boolean"==typeof t.affectsData,n=r?t.affectsData:s.affectsData;if(!i&&!t.range&&!r)throw new a.Bb("writer-updatemarker-wrong-options",this);const c=s.getRange(),l=t.range?t.range:c;i&&t.usingOperation!==s.managedUsingOperations?t.usingOperation?an(this,o,null,l,n):(an(this,o,c,null,n),this.model.markers._set(o,l,void 0,n)):s.managedUsingOperations?an(this,o,c,l,n):this.model.markers._set(o,l,void 0,n)}removeMarker(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new a.Bb("writer-removemarker-no-marker",this);const o=this.model.markers.get(t);if(!o.managedUsingOperations)return void this.model.markers._remove(t);an(this,t,o.getRange(),null,o.affectsData)}addRoot(e,t="$root"){this._assertWriterUsedCorrectly();const o=this.model.document.getRoot(e);if(o&&o.isAttached())throw new a.Bb("writer-addroot-root-exists",this);const s=this.model.document,i=new or(e,t,!0,s,s.version);return this.batch.addOperation(i),this.model.applyOperation(i),this.model.document.getRoot(e)}detachRoot(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?this.model.document.getRoot(e):e;if(!t||!t.isAttached())throw new a.Bb("writer-detachroot-no-root",this);for(const e of this.model.markers)e.getRange().root===t&&this.removeMarker(e);for(const e of t.getAttributeKeys())this.removeAttribute(e,t);this.remove(this.createRangeIn(t));const o=this.model.document,s=new or(t.rootName,t.name,!1,o,o.version);this.batch.addOperation(s),this.model.applyOperation(s)}setSelection(...e){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...e)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else for(const[t,o]of(0,a.qL)(e))this._setSelectionAttribute(t,o)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(const t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const o=this.model.document.selection;if(o.isCollapsed&&o.anchor.parent.isEmpty){const s=vs._getStoreAttributeKey(e);this.setAttribute(s,t,o.anchor.parent)}o._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const o=vs._getStoreAttributeKey(e);this.removeAttribute(o,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new a.Bb("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(const o of this.model.markers){if(!o.managedUsingOperations)continue;const s=o.getRange();let i=!1;if("move"===e){const e=t;i=e.containsPosition(s.start)||e.start.isEqual(s.start)||e.containsPosition(s.end)||e.end.isEqual(s.end)}else{const e=t,o=e.nodeBefore,r=e.nodeAfter,n=s.start.parent==o&&s.start.isAtEnd,a=s.end.parent==r&&0==s.end.offset,c=s.end.nodeAfter==r,l=s.start.nodeAfter==r;i=n||a||c||l}i&&this.updateMarker(o.name,{range:s})}}}function rn(e,t,o,s){const i=e.model,r=i.document;let n,a,c,l=s.start;for(const e of s.getWalker({shallow:!0}))c=e.item.getAttribute(t),n&&a!=c&&(a!=o&&d(),l=n),n=e.nextPosition,a=c;function d(){const s=new Go(l,n),c=s.root.document?r.version:null,d=new Xi(s,t,a,o,c);e.batch.addOperation(d),i.applyOperation(d)}n instanceof Zo&&n!=l&&a!=o&&d()}function nn(e,t,o,s){const i=e.model,r=i.document,n=s.getAttribute(t);let a,c;if(n!=o){if(s.root===s){const e=s.document?r.version:null;c=new tr(s,t,n,o,e)}else{a=new Go(Zo._createBefore(s),e.createPositionAfter(s));const i=a.root.document?r.version:null;c=new Xi(a,t,n,o,i)}e.batch.addOperation(c),i.applyOperation(c)}}function an(e,t,o,s,i){const r=e.model,n=r.document,a=new Ji(t,o,s,r.markers,!!i,n.version);e.batch.addOperation(a),r.applyOperation(a)}function cn(e,t,o,s){let i;if(e.root.document){const o=s.document,r=new Zo(o.graveyard,[0]);i=new Hi(e,t,r,o.version)}else i=new tn(e,t);o.addOperation(i),s.applyOperation(i)}function ln(e,t){return e===t||e instanceof Mr&&t instanceof Mr}function dn(e,t,o={}){if(t.isCollapsed)return;const s=t.getFirstRange();if("$graveyard"==s.root.rootName)return;const i=e.schema;e.change((e=>{if(!o.doNotResetEntireContent&&function(e,t){const o=e.getLimitElement(t);if(!t.containsEntireContent(o))return!1;const s=t.getFirstRange();if(s.start.parent==s.end.parent)return!1;return e.checkChild(o,"paragraph")}(i,t))return void function(e,t){const o=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(o)),fn(e,e.createPositionAt(o,0),t)}(e,t);const r={};if(!o.doNotAutoparagraph){const e=t.getSelectedElement();e&&Object.assign(r,i.getAttributesWithProperty(e,"copyOnReplace",!0))}const[n,a]=function(e){const t=e.root.document.model,o=e.start;let s=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){const o=function(e){const t=e.parent,o=t.root.document.model.schema,s=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const e of s){if(o.isLimit(e))return null;if(o.isBlock(e))return e}}(s);if(o&&s.isTouching(t.createPositionAt(o,0))){const o=t.createSelection(e);t.modifySelection(o,{direction:"backward"});const i=o.getLastPosition(),r=t.createRange(i,s);t.hasContent(r,{ignoreMarkers:!0})||(s=i)}}return[mr.fromPosition(o,"toPrevious"),mr.fromPosition(s,"toNext")]}(s);n.isTouching(a)||e.remove(e.createRange(n,a)),o.leaveUnmerged||(!function(e,t,o){const s=e.model;if(!pn(e.model.schema,t,o))return;const[i,r]=function(e,t){const o=e.getAncestors(),s=t.getAncestors();let i=0;for(;o[i]&&o[i]==s[i];)i++;return[o[i],s[i]]}(t,o);if(!i||!r)return;!s.hasContent(i,{ignoreMarkers:!0})&&s.hasContent(r,{ignoreMarkers:!0})?un(e,t,o,i.parent):hn(e,t,o,i.parent)}(e,n,a),i.removeDisallowedAttributes(n.parent.getChildren(),e)),gn(e,t,n),!o.doNotAutoparagraph&&function(e,t){const o=e.checkChild(t,"$text"),s=e.checkChild(t,"paragraph");return!o&&s}(i,n)&&fn(e,n,t,r),n.detach(),a.detach()}))}function hn(e,t,o,s){const i=t.parent,r=o.parent;if(i!=s&&r!=s){for(t=e.createPositionAfter(i),(o=e.createPositionBefore(r)).isEqual(t)||e.insert(r,t),e.merge(t);o.parent.isEmpty;){const t=o.parent;o=e.createPositionBefore(t),e.remove(t)}pn(e.model.schema,t,o)&&hn(e,t,o,s)}}function un(e,t,o,s){const i=t.parent,r=o.parent;if(i!=s&&r!=s){for(t=e.createPositionAfter(i),(o=e.createPositionBefore(r)).isEqual(t)||e.insert(i,o);t.parent.isEmpty;){const o=t.parent;t=e.createPositionBefore(o),e.remove(o)}o=e.createPositionBefore(r),function(e,t){const o=t.nodeBefore,s=t.nodeAfter;o.name!=s.name&&e.rename(o,s.name);e.clearAttributes(o),e.setAttributes(Object.fromEntries(s.getAttributes()),o),e.merge(t)}(e,o),pn(e.model.schema,t,o)&&un(e,t,o,s)}}function pn(e,t,o){const s=t.parent,i=o.parent;return s!=i&&(!e.isLimit(s)&&!e.isLimit(i)&&function(e,t,o){const s=new Go(e,t);for(const e of s.getWalker())if(o.isLimit(e.item))return!1;return!0}(t,o,e))}function fn(e,t,o,s={}){const i=e.createElement("paragraph");e.model.schema.setAllowedAttributes(i,s,e),e.insert(i,t),gn(e,o,e.createPositionAt(i,0))}function gn(e,t,o){t instanceof vs?e.setSelection(o):t.setTo(o)}function mn(e,t){const o=[];Array.from(e.getItems({direction:"backward"})).map((e=>t.createRangeOn(e))).filter((t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end)))).forEach((e=>{o.push(e.start.parent),t.remove(e)})),o.forEach((e=>{let o=e;for(;o.parent&&o.isEmpty;){const e=t.createRangeOn(o);o=o.parent,t.remove(e)}}))}class bn{constructor(e,t,o){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=e,this.writer=t,this.position=o,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0)}handleNodes(e){for(const t of Array.from(e))this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(e){const t=this.writer.createPositionAfter(this._lastNode),o=this.writer.createPositionAfter(e);if(o.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new a.Bb("insertcontent-invalid-insertion-position",this);this.position=o,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Go._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Go(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){if(this.schema.isObject(e))return void this._handleObject(e);let t=this._checkAndAutoParagraphToAllowedPosition(e);t||(t=this._checkAndSplitToAllowedPosition(e),t)?(this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this._handleDisallowedNode(e)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const e=mr.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=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}_handleObject(e){this._checkAndSplitToAllowedPosition(e)?this._appendToFragment(e):this._tryAutoparagraphing(e)}_handleDisallowedNode(e){e.is("element")?this.handleNodes(e.getChildren()):this._tryAutoparagraphing(e)}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new a.Bb("insertcontent-wrong-position",this,{node:e,position:this.position});this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=e:this._nodeToSelect=null,this._filterAttributesOf.push(e)}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=mr.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=mr.fromPosition(e,"toNext"))}_mergeOnLeft(){const e=this._firstNode;if(!(e instanceof zo))return;if(!this._canMergeLeft(e))return;const t=mr._createBefore(e);t.stickiness="toNext";const o=mr.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=mr._createAt(t.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=mr._createAt(t.nodeBefore,"end","toNext")),this.position=o.toPosition(),o.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_mergeOnRight(){const e=this._lastNode;if(!(e instanceof zo))return;if(!this._canMergeRight(e))return;const t=mr._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new a.Bb("insertcontent-invalid-insertion-position",this);this.position=Zo._createAt(t.nodeBefore,"end");const o=mr.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=mr._createAt(t.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=mr._createAt(t.nodeBefore,0,"toPrevious")),this.position=o.toPosition(),o.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_canMergeLeft(e){const t=e.previousSibling;return t instanceof zo&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){const t=e.nextSibling;return t instanceof zo&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_tryAutoparagraphing(e){const t=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,t)&&this.schema.checkChild(t,e)&&(t._appendChild(e),this._handleNode(t))}_checkAndAutoParagraphToAllowedPosition(e){if(this.schema.checkChild(this.position.parent,e))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",e))return!1;this._insertPartialFragment();const t=this.writer.createElement("paragraph");return this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0),!0}_checkAndSplitToAllowedPosition(e){const t=this._getAllowedIn(this.position.parent,e);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;)if(this.position.isAtStart){const e=this.position.parent;this.position=this.writer.createPositionBefore(e),e.isEmpty&&e.parent===t&&this.writer.remove(e)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const e=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=e,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(e,t){return this.schema.checkChild(e,t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}}function _n(e,t,o="auto"){const s=e.getSelectedElement();if(s&&t.schema.isObject(s)&&!t.schema.isInline(s))return"before"==o||"after"==o?t.createRange(t.createPositionAt(s,o)):t.createRangeOn(s);const i=(0,a.Ps)(e.getSelectedBlocks());if(!i)return t.createRange(e.focus);if(i.isEmpty)return t.createRange(t.createPositionAt(i,0));const r=t.createPositionAfter(i);return e.focus.isTouching(r)?t.createRange(r):t.createRange(t.createPositionBefore(i))}function kn(e,t,o,s={}){if(!e.schema.isObject(t))throw new a.Bb("insertobject-element-not-an-object",e,{object:t});const i=o||e.document.selection;let r=i;s.findOptimalPosition&&e.schema.isBlock(t)&&(r=e.createSelection(_n(i,e,s.findOptimalPosition)));const n=(0,a.Ps)(i.getSelectedBlocks()),c={};return n&&Object.assign(c,e.schema.getAttributesWithProperty(n,"copyOnReplace",!0)),e.change((o=>{r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0});let i=t;const n=r.anchor.parent;!e.schema.checkChild(n,t)&&e.schema.checkChild(n,"paragraph")&&e.schema.checkChild("paragraph",t)&&(i=o.createElement("paragraph"),o.insert(t,i)),e.schema.setAllowedAttributes(i,c,o);const l=e.insertContent(i,r);return l.isCollapsed||s.setSelection&&function(e,t,o,s){const i=e.model;if("on"==o)return void e.setSelection(t,"on");if("after"!=o)throw new a.Bb("insertobject-invalid-place-parameter-value",i);let r=t.nextSibling;if(i.schema.isInline(t))return void e.setSelection(t,"after");const n=r&&i.schema.checkChild(r,"$text");!n&&i.schema.checkChild(t.parent,"paragraph")&&(r=e.createElement("paragraph"),i.schema.setAllowedAttributes(r,s,e),i.insertContent(r,e.createPositionAfter(t)));r&&e.setSelection(r,0)}(o,t,s.setSelection,c),l}))}const wn=' ,.?!:;"-()';function vn(e,t){const{isForward:o,walker:s,unit:i,schema:r,treatEmojiAsSingleUnit:n}=e,{type:c,item:l,nextPosition:d}=t;if("text"==c)return"word"===e.unit?function(e,t){let o=e.position.textNode;o||(o=t?e.position.nodeAfter:e.position.nodeBefore);for(;o&&o.is("$text");){const s=e.position.offset-o.startOffset;if(Pn(o,s,t))o=t?e.position.nodeAfter:e.position.nodeBefore;else{if(xn(o.data,s,t))break;e.next()}}return e.position}(s,o):function(e,t,o){const s=e.position.textNode;if(s){const i=s.data;let r=e.position.offset-s.startOffset;for(;(0,a.to)(i,r)||"character"==t&&(0,a.pp)(i,r)||o&&(0,a.YK)(i,r);)e.next(),r=e.position.offset-s.startOffset}return e.position}(s,i,n);if(c==(o?"elementStart":"elementEnd")){if(r.isSelectable(l))return Zo._createAt(l,o?"after":"before");if(r.checkChild(d,"$text"))return d}else{if(r.isLimit(l))return void s.skip((()=>!0));if(r.checkChild(d,"$text"))return d}}function yn(e,t){const o=e.root,s=Zo._createAt(o,t?"end":0);return t?new Go(e,s):new Go(s,e)}function xn(e,t,o){const s=t+(o?0:-1);return wn.includes(e.charAt(s))}function Pn(e,t,o){return t===(o?e.offsetSize:0)}class Cn extends((0,a.Re)()){constructor(){super(),this.markers=new Qr,this.document=new $r(this),this.schema=new li,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((e=>this.decorate(e))),this.on("applyOperation",((e,t)=>{t[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(((e,t)=>{if("$marker"===t.name)return!0})),ti(this),this.document.registerPostFixer(Ns),this.on("insertContent",((e,[t,o])=>{e.return=function(e,t,o){return e.change((s=>{const i=o||e.document.selection;i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0});const r=new bn(e,s,i.anchor),n=[];let a;if(t.is("documentFragment")){if(t.markers.size){const e=[];for(const[o,s]of t.markers){const{start:t,end:i}=s,r=t.isEqual(i);e.push({position:t,name:o,isCollapsed:r},{position:i,name:o,isCollapsed:r})}e.sort((({position:e},{position:t})=>e.isBefore(t)?1:-1));for(const{position:o,name:i,isCollapsed:r}of e){let e=null,a=null;const c=o.parent===t&&o.isAtStart,l=o.parent===t&&o.isAtEnd;c||l?r&&(a=c?"start":"end"):(e=s.createElement("$marker"),s.insert(e,o)),n.push({name:i,element:e,collapsed:a})}}a=t.getChildren()}else a=[t];r.handleNodes(a);let c=r.getSelectionRange();if(t.is("documentFragment")&&n.length){const e=c?bs.fromRange(c):null,t={};for(let e=n.length-1;e>=0;e--){const{name:o,element:i,collapsed:a}=n[e],c=!t[o];if(c&&(t[o]=[]),i){const e=s.createPositionAt(i,"before");t[o].push(e),s.remove(i)}else{const e=r.getAffectedRange();if(!e){a&&t[o].push(r.position);continue}a?t[o].push(e[a]):t[o].push(c?e.start:e.end)}}for(const[e,[o,i]]of Object.entries(t))o&&i&&o.root===i.root&&s.addMarker(e,{usingOperation:!0,affectsData:!0,range:new Go(o,i)});e&&(c=e.toRange(),e.detach())}c&&(i instanceof vs?s.setSelection(c):i.setTo(c));const l=r.getAffectedRange()||e.createRange(i.anchor);return r.destroy(),l}))}(this,t,o)})),this.on("insertObject",((e,[t,o,s])=>{e.return=kn(this,t,o,s)})),this.on("canEditAt",(e=>{const t=!this.document.isReadOnly;e.return=t,t||e.stop()}))}change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new kr,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){a.Bb.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{e?"function"==typeof e?(t=e,e=new kr):e instanceof kr||(e=new kr(e)):e=new kr,this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){a.Bb.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,o,...s){const i=Tn(t,o);return this.fire("insertContent",[e,i,o,...s])}insertObject(e,t,o,s,...i){const r=Tn(t,o);return this.fire("insertObject",[e,r,s,s,...i])}deleteContent(e,t){dn(this,e,t)}modifySelection(e,t){!function(e,t,o={}){const s=e.schema,i="backward"!=o.direction,r=o.unit?o.unit:"character",n=!!o.treatEmojiAsSingleUnit,a=t.focus,c=new Fo({boundaries:yn(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),l={walker:c,schema:s,isForward:i,unit:r,treatEmojiAsSingleUnit:n};let d;for(;d=c.next();){if(d.done)return;const o=vn(l,d.value);if(o)return void(t instanceof vs?e.change((e=>{e.setSelectionFocus(o)})):t.setFocus(o))}}(this,e,t)}getSelectedContent(e){return function(e,t){return e.change((e=>{const o=e.createDocumentFragment(),s=t.getFirstRange();if(!s||s.isCollapsed)return o;const i=s.start.root,r=s.start.getCommonPath(s.end),n=i.getNodeByPath(r);let a;a=s.start.parent==s.end.parent?s:e.createRange(e.createPositionAt(n,s.start.path[r.length]),e.createPositionAt(n,s.end.path[r.length]+1));const c=a.end.offset-a.start.offset;for(const t of a.getItems({shallow:!0}))t.is("$textProxy")?e.appendText(t.data,t.getAttributes(),o):e.append(e.cloneElement(t,!0),o);if(a!=s){const t=s._getTransformedByMove(a.start,e.createPositionAt(o,0),c)[0],i=e.createRange(e.createPositionAt(o,0),t.start);mn(e.createRange(t.end,e.createPositionAt(o,"end")),e),mn(i,e)}return o}))}(this,e)}hasContent(e,t={}){const o=e instanceof Go?e:Go._createIn(e);if(o.isCollapsed)return!1;const{ignoreWhitespaces:s=!1,ignoreMarkers:i=!1}=t;if(!i)for(const e of this.markers.getMarkersIntersectingRange(o))if(e.affectsData)return!0;for(const e of o.getItems())if(this.schema.isContent(e)){if(!e.is("$textProxy"))return!0;if(!s)return!0;if(-1!==e.data.search(/\S/))return!0}return!1}canEditAt(e){const t=Tn(e);return this.fire("canEditAt",[t])}createPositionFromPath(e,t,o){return new Zo(e,t,o)}createPositionAt(e,t){return Zo._createAt(e,t)}createPositionAfter(e){return Zo._createAfter(e)}createPositionBefore(e){return Zo._createBefore(e)}createRange(e,t){return new Go(e,t)}createRangeIn(e){return Go._createIn(e)}createRangeOn(e){return Go._createOn(e)}createSelection(...e){return new ds(...e)}createBatch(e){return new kr(e)}createOperationFromJSON(e){return ir.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const e=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const t=this._pendingChanges[0].batch;this._currentWriter=new sn(this,t);const o=this._pendingChanges[0].callback(this._currentWriter);e.push(o),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return e}}function Tn(e,t){if(e)return e instanceof ds||e instanceof vs?e:e instanceof Bo?t||0===t?new ds(e,t):e.is("rootElement")?new ds(e,"in"):new ds(e,"on"):new ds(e)}class En extends Ht{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}class An extends Ht{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}class Sn{constructor(e){this.document=e}createDocumentFragment(e){return new it(this.document,e)}createElement(e,t,o){return new Ee(this.document,e,t,o)}createText(e){return new y(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,o){return o._insertChild(e,t)}removeChildren(e,t,o){return o._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const o=e.parent;if(o){const s=o.getChildIndex(e);return this.removeChildren(s,1,o),this.insertChild(s,t,o),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const o=t.getChildIndex(e);this.remove(e),this.insertChild(o,e.getChildren(),t)}}rename(e,t){const o=new Ee(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,o)?o:null}setAttribute(e,t,o){o._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,o){(0,P.Z)(e)&&void 0===o?t._setStyle(e):o._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,o){o._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return Be._createAt(e,t)}createPositionAfter(e){return Be._createAfter(e)}createPositionBefore(e){return Be._createBefore(e)}createRange(e,t){return new Ie(e,t)}createRangeOn(e){return Ie._createOn(e)}createRangeIn(e){return Ie._createIn(e)}createSelection(...e){return new Ne(...e)}}const On=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Rn=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,jn=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Mn=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,Vn=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Bn=/\w+\((?:[^()]|\([^()]*\))*\)|\S+/gi,In=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function Dn(e){return e.startsWith("#")?On.test(e):e.startsWith("rgb")?Rn.test(e)||jn.test(e):e.startsWith("hsl")?Mn.test(e)||Vn.test(e):In.has(e.toLowerCase())}const Nn=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function zn(e){return Nn.includes(e)}const Fn=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function Ln(e){return Fn.test(e)}const Zn=/^[+-]?[0-9]*([.][0-9]+)?%$/;function Wn(e){return Zn.test(e)}const $n=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function qn(e){return $n.includes(e)}const Hn=["center","top","bottom","left","right"];function Un(e){return Hn.includes(e)}const Gn=["fixed","scroll","local"];function Kn(e){return Gn.includes(e)}const Jn=/^url\(/;function Yn(e){return Jn.test(e)}function Xn(e=""){if(""===e)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const t=oa(e),o=t[0],s=t[2]||o,i=t[1]||o;return{top:o,bottom:s,right:i,left:t[3]||i}}function Qn(e){return t=>{const{top:o,right:s,bottom:i,left:r}=t,n=[];return[o,s,r,i].every((e=>!!e))?n.push([e,ea(t)]):(o&&n.push([e+"-top",o]),s&&n.push([e+"-right",s]),i&&n.push([e+"-bottom",i]),r&&n.push([e+"-left",r])),n}}function ea({top:e,right:t,bottom:o,left:s}){const i=[];return s!==t?i.push(e,t,o,s):o!==e?i.push(e,t,o):t!==e?i.push(e,t):i.push(e),i.join(" ")}function ta(e){return t=>({path:e,value:Xn(t)})}function oa(e){const t=e.matchAll(Bn);return Array.from(t).map((e=>e[0]))}function sa(e){e.setNormalizer("background",(e=>{const t={},o=oa(e);for(const e of o)qn(e)?(t.repeat=t.repeat||[],t.repeat.push(e)):Un(e)?(t.position=t.position||[],t.position.push(e)):Kn(e)?t.attachment=e:Dn(e)?t.color=e:Yn(e)&&(t.image=e);return{path:"background",value:t}})),e.setNormalizer("background-color",(e=>({path:"background.color",value:e}))),e.setReducer("background",(e=>{const t=[];return t.push(["background-color",e.color]),t})),e.setStyleRelation("background",["background-color"])}function ia(e){e.setNormalizer("border",(e=>{const{color:t,style:o,width:s}=ha(e);return{path:"border",value:{color:Xn(t),style:Xn(o),width:Xn(s)}}})),e.setNormalizer("border-top",ra("top")),e.setNormalizer("border-right",ra("right")),e.setNormalizer("border-bottom",ra("bottom")),e.setNormalizer("border-left",ra("left")),e.setNormalizer("border-color",na("color")),e.setNormalizer("border-width",na("width")),e.setNormalizer("border-style",na("style")),e.setNormalizer("border-top-color",ca("color","top")),e.setNormalizer("border-top-style",ca("style","top")),e.setNormalizer("border-top-width",ca("width","top")),e.setNormalizer("border-right-color",ca("color","right")),e.setNormalizer("border-right-style",ca("style","right")),e.setNormalizer("border-right-width",ca("width","right")),e.setNormalizer("border-bottom-color",ca("color","bottom")),e.setNormalizer("border-bottom-style",ca("style","bottom")),e.setNormalizer("border-bottom-width",ca("width","bottom")),e.setNormalizer("border-left-color",ca("color","left")),e.setNormalizer("border-left-style",ca("style","left")),e.setNormalizer("border-left-width",ca("width","left")),e.setExtractor("border-top",la("top")),e.setExtractor("border-right",la("right")),e.setExtractor("border-bottom",la("bottom")),e.setExtractor("border-left",la("left")),e.setExtractor("border-top-color","border.color.top"),e.setExtractor("border-right-color","border.color.right"),e.setExtractor("border-bottom-color","border.color.bottom"),e.setExtractor("border-left-color","border.color.left"),e.setExtractor("border-top-width","border.width.top"),e.setExtractor("border-right-width","border.width.right"),e.setExtractor("border-bottom-width","border.width.bottom"),e.setExtractor("border-left-width","border.width.left"),e.setExtractor("border-top-style","border.style.top"),e.setExtractor("border-right-style","border.style.right"),e.setExtractor("border-bottom-style","border.style.bottom"),e.setExtractor("border-left-style","border.style.left"),e.setReducer("border-color",Qn("border-color")),e.setReducer("border-style",Qn("border-style")),e.setReducer("border-width",Qn("border-width")),e.setReducer("border-top",ua("top")),e.setReducer("border-right",ua("right")),e.setReducer("border-bottom",ua("bottom")),e.setReducer("border-left",ua("left")),e.setReducer("border",function(){return t=>{const o=da(t,"top"),s=da(t,"right"),i=da(t,"bottom"),r=da(t,"left"),n=[o,s,i,r],a={width:e(n,"width"),style:e(n,"style"),color:e(n,"color")},c=pa(a,"all");if(c.length)return c;return[...Object.entries(a).reduce(((e,[t,o])=>(o&&(e.push([`border-${t}`,o]),n.forEach((e=>delete e[t]))),e)),[]),...pa(o,"top"),...pa(s,"right"),...pa(i,"bottom"),...pa(r,"left")]};function e(e,t){return e.map((e=>e[t])).reduce(((e,t)=>e==t?e:null))}}()),e.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),e.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),e.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),e.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),e.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),e.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),e.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),e.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function ra(e){return t=>{const{color:o,style:s,width:i}=ha(t),r={};return void 0!==o&&(r.color={[e]:o}),void 0!==s&&(r.style={[e]:s}),void 0!==i&&(r.width={[e]:i}),{path:"border",value:r}}}function na(e){return t=>({path:"border",value:aa(t,e)})}function aa(e,t){return{[t]:Xn(e)}}function ca(e,t){return o=>({path:"border",value:{[e]:{[t]:o}}})}function la(e){return(t,o)=>{if(o.border)return da(o.border,e)}}function da(e,t){const o={};return e.width&&e.width[t]&&(o.width=e.width[t]),e.style&&e.style[t]&&(o.style=e.style[t]),e.color&&e.color[t]&&(o.color=e.color[t]),o}function ha(e){const t={},o=oa(e);for(const e of o)Ln(e)||/thin|medium|thick/.test(e)?t.width=e:zn(e)?t.style=e:t.color=e;return t}function ua(e){return t=>pa(t,e)}function pa(e,t){const o=[];if(e&&e.width&&o.push("width"),e&&e.style&&o.push("style"),e&&e.color&&o.push("color"),3==o.length){const s=o.map((t=>e[t])).join(" ");return["all"==t?["border",s]:[`border-${t}`,s]]}return"all"==t?[]:o.map((o=>[`border-${t}-${o}`,e[o]]))}function fa(e){e.setNormalizer("margin",ta("margin")),e.setNormalizer("margin-top",(e=>({path:"margin.top",value:e}))),e.setNormalizer("margin-right",(e=>({path:"margin.right",value:e}))),e.setNormalizer("margin-bottom",(e=>({path:"margin.bottom",value:e}))),e.setNormalizer("margin-left",(e=>({path:"margin.left",value:e}))),e.setReducer("margin",Qn("margin")),e.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function ga(e){e.setNormalizer("padding",ta("padding")),e.setNormalizer("padding-top",(e=>({path:"padding.top",value:e}))),e.setNormalizer("padding-right",(e=>({path:"padding.right",value:e}))),e.setNormalizer("padding-bottom",(e=>({path:"padding.bottom",value:e}))),e.setNormalizer("padding-left",(e=>({path:"padding.left",value:e}))),e.setReducer("padding",Qn("padding")),e.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}},"./packages/ckeditor5-enter/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{C:()=>h,G:()=>g});var s=o("./packages/ckeditor5-core/src/index.ts");function*i(e,t){for(const o of t)o&&e.getAttributeProperties(o[0]).copyOnEnter&&(yield o)}class r extends s.mY{execute(){this.editor.model.change((e=>{this.enterBlock(e),this.fire("afterExecute",{writer:e})}))}enterBlock(e){const t=this.editor.model,o=t.document.selection,s=t.schema,r=o.isCollapsed,a=o.getFirstRange(),c=a.start.parent,l=a.end.parent;if(s.isLimit(c)||s.isLimit(l))return r||c!=l||t.deleteContent(o),!1;if(r){const t=i(e.model.schema,o.getAttributes());return n(e,a.start),e.setSelectionAttribute(t),!0}{const s=!(a.start.isAtStart&&a.end.isAtEnd),i=c==l;if(t.deleteContent(o,{leaveUnmerged:s}),s){if(i)return n(e,o.focus),!0;e.setSelection(l,0)}}return!1}}function n(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var a=o("./packages/ckeditor5-engine/src/index.ts"),c=o("./packages/ckeditor5-utils/src/index.ts");const l={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class d extends a.Qj{constructor(e){super(e);const t=this.document;let o=!1;t.on("keydown",((e,t)=>{o=t.shiftKey})),t.on("beforeinput",((s,i)=>{if(!this.isEnabled)return;let r=i.inputType;c.OB.isSafari&&o&&"insertParagraph"==r&&(r="insertLineBreak");const n=i.domEvent,d=l[r];if(!d)return;const h=new a.r7(t,"enter",i.targetRanges[0]);t.fire(h,new a.dK(e,n,{isSoft:d.isSoft})),h.stop.called&&s.stop()}))}observe(){}stopObserving(){}}class h extends s.Sy{static get pluginName(){return"Enter"}init(){const e=this.editor,t=e.editing.view,o=t.document;t.addObserver(d),e.commands.add("enter",new r(e)),this.listenTo(o,"enter",((s,i)=>{o.isComposing||i.preventDefault(),i.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}class u extends s.mY{execute(){const e=this.editor.model,t=e.document;e.change((o=>{!function(e,t,o){const s=o.isCollapsed,r=o.getFirstRange(),n=r.start.parent,a=r.end.parent,c=n==a;if(s){const s=i(e.schema,o.getAttributes());p(e,t,r.end),t.removeSelectionAttribute(o.getAttributeKeys()),t.setSelectionAttribute(s)}else{const s=!(r.start.isAtStart&&r.end.isAtEnd);e.deleteContent(o,{leaveUnmerged:s}),c?p(e,t,o.focus):s&&t.setSelection(a,0)}}(e,o,t.selection),this.fire("afterExecute",{writer:o})}))}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;const o=t.anchor;if(!o||!e.checkChild(o,"softBreak"))return!1;const s=t.getFirstRange(),i=s.start.parent,r=s.end.parent;if((f(i,e)||f(r,e))&&i!==r)return!1;return!0}(e.schema,t.selection)}}function p(e,t,o){const s=t.createElement("softBreak");e.insertContent(s,o),t.setSelection(s,"after")}function f(e,t){return!e.is("rootElement")&&(t.isLimit(e)||f(e.parent,t))}class g extends s.Sy{static get pluginName(){return"ShiftEnter"}init(){const e=this.editor,t=e.model.schema,o=e.conversion,s=e.editing.view,i=s.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),o.for("upcast").elementToElement({model:"softBreak",view:"br"}),o.for("downcast").elementToElement({model:"softBreak",view:(e,{writer:t})=>t.createEmptyElement("br")}),s.addObserver(d),e.commands.add("shiftEnter",new u(e)),this.listenTo(i,"enter",((t,o)=>{i.isComposing||o.preventDefault(),o.isSoft&&(e.execute("shiftEnter"),s.scrollToTheSelection())}),{priority:"low"})}}},"./packages/ckeditor5-typing/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{HG:()=>k,II:()=>d,BT:()=>n,cL:()=>j,uL:()=>y,mh:()=>x,Mq:()=>w,VD:()=>D,r9:()=>N,Up:()=>v,Im:()=>z});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class r{constructor(e,t=20){this._batch=null,this.model=e,this._size=0,this.limit=t,this._isLocked=!1,this._changeCallback=(e,t)=>{t.isLocal&&t.isUndoable&&t!==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(e){this._size+=e,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(e=!1){this.isLocked&&!e||(this._batch=null,this._size=0)}}class n extends s.mY{constructor(e,t){super(e),this._buffer=new r(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,o=t.document,s=e.text||"",i=s.length;let r=o.selection;if(e.selection?r=e.selection:e.range&&(r=t.createSelection(e.range)),!t.canEditAt(r))return;const n=e.resultRange;t.enqueueChange(this._buffer.batch,(e=>{this._buffer.lock(),t.deleteContent(r),s&&t.insertContent(e.createText(s,o.selection.getAttributes()),r),n?e.setSelection(n):r.is("documentSelection")||e.setSelection(r),this._buffer.unlock(),this._buffer.input(i)}))}}var a=o("./packages/ckeditor5-engine/src/index.ts");const c=["insertText","insertReplacementText"];class l extends a.Qj{constructor(e){super(e),this.focusObserver=e.getObserver(a.DX),i.OB.isAndroid&&c.push("insertCompositionText");const t=e.document;t.on("beforeinput",((o,s)=>{if(!this.isEnabled)return;const{data:r,targetRanges:n,inputType:l,domEvent:d}=s;if(!c.includes(l))return;this.focusObserver.flush();const h=new i.M3(t,"insertText");t.fire(h,new a.dK(e,d,{text:r,selection:e.createSelection(n)})),h.stop.called&&o.stop()})),t.on("compositionend",((o,{data:s,domEvent:r})=>{this.isEnabled&&!i.OB.isAndroid&&s&&t.fire("insertText",new a.dK(e,r,{text:s,selection:t.selection}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class d extends s.Sy{static get pluginName(){return"Input"}init(){const e=this.editor,t=e.model,o=e.editing.view,s=t.document.selection;o.addObserver(l);const r=new n(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",r),e.commands.add("input",r),this.listenTo(o.document,"insertText",((s,r)=>{o.document.isComposing||r.preventDefault();const{text:n,selection:a,resultRange:c}=r,l=Array.from(a.getRanges()).map((t=>e.editing.mapper.toModelRange(t)));let d=n;if(i.OB.isAndroid){const e=Array.from(l[0].getItems()).reduce(((e,t)=>e+(t.is("$textProxy")?t.data:"")),"");e&&(e.length<=d.length?d.startsWith(e)&&(d=d.substring(e.length),l[0].start=l[0].start.getShiftedBy(e.length)):e.startsWith(d)&&(l[0].start=l[0].start.getShiftedBy(d.length),d=""))}const h={text:d,selection:t.createSelection(l)};c&&(h.resultRange=e.editing.mapper.toModelRange(c)),e.execute("insertText",h),o.scrollToTheSelection()})),i.OB.isAndroid?this.listenTo(o.document,"keydown",((e,i)=>{!s.isCollapsed&&229==i.keyCode&&o.document.isComposing&&h(t,r)})):this.listenTo(o.document,"compositionstart",(()=>{s.isCollapsed||h(t,r)}))}}function h(e,t){if(!t.isEnabled)return;const o=t.buffer;o.lock(),e.enqueueChange(o.batch,(()=>{e.deleteContent(e.document.selection)})),o.unlock()}class u extends s.mY{constructor(e,t){super(e),this.direction=t,this._buffer=new r(e.model,e.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,o=t.document;t.enqueueChange(this._buffer.batch,(s=>{this._buffer.lock();const r=s.createSelection(e.selection||o.selection);if(!t.canEditAt(r))return;const n=e.sequence||1,a=r.isCollapsed;if(r.isCollapsed&&t.modifySelection(r,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(n))return void this._replaceEntireContentWithParagraph(s);if(this._shouldReplaceFirstBlockWithParagraph(r,n))return void this.editor.execute("paragraph",{selection:r});if(r.isCollapsed)return;let c=0;r.getFirstRange().getMinimalFlatRanges().forEach((e=>{c+=(0,i.QX)(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),t.deleteContent(r,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(c),s.setSelection(r),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,o=t.document.selection,s=t.schema.getLimitElement(o);if(!(o.isCollapsed&&o.containsEntireContent(s)))return!1;if(!t.schema.checkChild(s,"paragraph"))return!1;const i=s.getChild(0);return!i||!i.is("element","paragraph")}_replaceEntireContentWithParagraph(e){const t=this.editor.model,o=t.document.selection,s=t.schema.getLimitElement(o),i=e.createElement("paragraph");e.remove(e.createRangeIn(s)),e.insert(i,s),e.setSelection(i,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const o=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;const s=e.getFirstPosition(),i=o.schema.getLimitElement(s),r=i.getChild(0);return s.parent==r&&(!!e.containsEntireContent(r)&&(!!o.schema.checkChild(i,"paragraph")&&"paragraph"!=r.name))}}const p="word",f="selection",g="backward",m="forward",b={deleteContent:{unit:f,direction:g},deleteContentBackward:{unit:"codePoint",direction:g},deleteWordBackward:{unit:p,direction:g},deleteHardLineBackward:{unit:f,direction:g},deleteSoftLineBackward:{unit:f,direction:g},deleteContentForward:{unit:"character",direction:m},deleteWordForward:{unit:p,direction:m},deleteHardLineForward:{unit:f,direction:m},deleteSoftLineForward:{unit:f,direction:m}};class _ extends a.Qj{constructor(e){super(e);const t=e.document;let o=0;t.on("keydown",(()=>{o++})),t.on("keyup",(()=>{o=0})),t.on("beforeinput",((s,r)=>{if(!this.isEnabled)return;const{targetRanges:n,domEvent:c,inputType:l}=r,d=b[l];if(!d)return;const h={direction:d.direction,unit:d.unit,sequence:o};h.unit==f&&(h.selectionToRemove=e.createSelection(n[0])),"deleteContentBackward"===l&&(i.OB.isAndroid&&(h.sequence=1),function(e){if(1!=e.length||e[0].isCollapsed)return!1;const t=e[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let o=0;for(const{nextPosition:e}of t){if(e.parent.is("$text")){const t=e.parent.data,s=e.offset;if((0,i.to)(t,s)||(0,i.pp)(t,s)||(0,i.YK)(t,s))continue;o++}else o++;if(o>1)return!0}return!1}(n)&&(h.unit=f,h.selectionToRemove=e.createSelection(n)));const u=new a.r7(t,"delete",n[0]);t.fire(u,new a.dK(e,c,h)),u.stop.called&&s.stop()})),i.OB.isBlink&&function(e){const t=e.view,o=t.document;let s=null,r=!1;function n(e){return e==i.Do.backspace||e==i.Do.delete}function c(e){return e==i.Do.backspace?g:m}o.on("keydown",((e,{keyCode:t})=>{s=t,r=!1})),o.on("keyup",((i,{keyCode:l,domEvent:d})=>{const h=o.selection,u=e.isEnabled&&l==s&&n(l)&&!h.isCollapsed&&!r;if(s=null,u){const e=h.getFirstRange(),s=new a.r7(o,"delete",e),i={unit:f,direction:c(l),selectionToRemove:h};o.fire(s,new a.dK(t,d,i))}})),o.on("beforeinput",((e,{inputType:t})=>{const o=b[t];n(s)&&o&&o.direction==c(s)&&(r=!0)}),{priority:"high"}),o.on("beforeinput",((e,{inputType:t,data:o})=>{s==i.Do.delete&&"insertText"==t&&""==o&&e.stop()}),{priority:"high"})}(this)}observe(){}stopObserving(){}}class k extends s.Sy{static get pluginName(){return"Delete"}init(){const e=this.editor,t=e.editing.view,o=t.document,s=e.model.document;t.addObserver(_),this._undoOnBackspace=!1;const i=new u(e,"forward");e.commands.add("deleteForward",i),e.commands.add("forwardDelete",i),e.commands.add("delete",new u(e,"backward")),this.listenTo(o,"delete",((s,i)=>{o.isComposing||i.preventDefault();const{direction:r,sequence:n,selectionToRemove:a,unit:c}=i,l="forward"===r?"deleteForward":"delete",d={sequence:n};if("selection"==c){const t=Array.from(a.getRanges()).map((t=>e.editing.mapper.toModelRange(t)));d.selection=e.model.createSelection(t)}else d.unit=c;e.execute(l,d),t.scrollToTheSelection()}),{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(o,"delete",((t,o)=>{this._undoOnBackspace&&"backward"==o.direction&&1==o.sequence&&"codePoint"==o.unit&&(this._undoOnBackspace=!1,e.execute("undo"),o.preventDefault(),t.stop())}),{context:"$capture"}),this.listenTo(s,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class w extends s.Sy{static get requires(){return[d,k]}static get pluginName(){return"Typing"}}function v(e,t){let o=e.start;return{text:Array.from(e.getWalker({ignoreElementEnd:!1})).reduce(((e,{item:s})=>s.is("$text")||s.is("$textProxy")?e+s.data:(o=t.createPositionAfter(s),"")),""),range:t.createRange(o,e.end)}}class y extends((0,i.Re)()){constructor(e,t){super(),this.model=e,this.testCallback=t,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))})),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",((t,{directChange:o})=>{o&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))})),this.listenTo(e,"change:data",((e,t)=>{!t.isUndo&&t.isLocal&&this._evaluateTextBeforeSelection("data",{batch:t})}))}_evaluateTextBeforeSelection(e,t={}){const o=this.model,s=o.document.selection,i=o.createRange(o.createPositionAt(s.focus.parent,0),s.focus),{text:r,range:n}=v(i,o),a=this.testCallback(r);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const o=Object.assign(t,{text:r,range:n});"object"==typeof a&&Object.assign(o,a),this.fire(`matched:${e}`,o)}}}class x extends s.Sy{constructor(e){super(e),this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const e=this.editor,t=e.model,o=e.editing.view,s=e.locale,r=t.document.selection;this.listenTo(o.document,"arrowKey",((e,t)=>{if(!r.isCollapsed)return;if(t.shiftKey||t.altKey||t.ctrlKey)return;const o=t.keyCode==i.Do.arrowright,n=t.keyCode==i.Do.arrowleft;if(!o&&!n)return;const a=s.contentLanguageDirection;let c=!1;c="ltr"===a&&o||"rtl"===a&&n?this._handleForwardMovement(t):this._handleBackwardMovement(t),!0===c&&e.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(r,"change:range",((e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&E(r.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,o=this.editor.model.document.selection,s=o.getFirstPosition();return!this._isGravityOverridden&&((!s.isAtStart||!P(o,t))&&(!!E(s,t)&&(T(e),this._overrideGravity(),!0)))}_handleBackwardMovement(e){const t=this.attributes,o=this.editor.model,s=o.document.selection,i=s.getFirstPosition();return this._isGravityOverridden?(T(e),this._restoreGravity(),C(o,t,i),!0):i.isAtStart?!!P(s,t)&&(T(e),C(o,t,i),!0):!!function(e,t){const o=e.getShiftedBy(-1);return E(o,t)}(i,t)&&(i.isAtEnd&&!P(s,t)&&E(i,t)?(T(e),C(o,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((e=>e.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function P(e,t){for(const o of t)if(e.hasAttribute(o))return!0;return!1}function C(e,t,o){const s=o.nodeBefore;e.change((o=>{if(s){const t=[],i=e.schema.isObject(s)&&e.schema.isInline(s);for(const[o,r]of s.getAttributes())!e.schema.checkAttribute("$text",o)||i&&!1===e.schema.getAttributeProperties(o).copyFromObject||t.push([o,r]);o.setSelectionAttribute(t)}else o.removeSelectionAttribute(t)}))}function T(e){e.preventDefault()}function E(e,t){const{nodeBefore:o,nodeAfter:s}=e;for(const e of t){const t=o?o.getAttribute(e):void 0;if((s?s.getAttribute(e):void 0)!==t)return!0}return!1}var A=o("./node_modules/lodash-es/escapeRegExp.js");const S={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:I('"'),to:[null,"“",null,"â€"]},quotesSecondary:{from:I("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:I("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:I('"'),to:[null,"“",null,"â€"]},quotesPrimaryPl:{from:I('"'),to:[null,"„",null,"â€"]},quotesSecondaryPl:{from:I("'"),to:[null,"‚",null,"’"]}},O={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},R=["symbols","mathematical","typography","quotes"];class j extends s.Sy{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(e){super(e),e.config.define("typing",{transformations:{include:R}})}init(){const e=this.editor.model.document.selection;e.on("change:range",(()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}_enableTransformationWatchers(){const e=this.editor,t=e.model,o=e.plugins.get("Delete"),s=function(e){const t=e.extra||[],o=e.remove||[],s=e=>!o.includes(e);return function(e){const t=new Set;for(const o of e)if("string"==typeof o&&O[o])for(const e of O[o])t.add(e);else t.add(o);return Array.from(t)}(e.include.concat(t).filter(s)).filter(s).map((e=>"string"==typeof e&&S[e]?S[e]:e)).filter((e=>"object"==typeof e)).map((e=>({from:M(e.from),to:V(e.to)})))}(e.config.get("typing.transformations")),i=new y(e.model,(e=>{for(const t of s){if(t.from.test(e))return{normalizedTransformation:t}}}));i.on("matched:data",((e,s)=>{if(!s.batch.isTyping)return;const{from:i,to:r}=s.normalizedTransformation,n=i.exec(s.text),a=r(n.slice(1)),c=s.range;let l=n.index;t.enqueueChange((e=>{for(let o=1;o<n.length;o++){const s=n[o],i=a[o-1];if(null==i){l+=s.length;continue}const r=c.start.getShiftedBy(l),d=t.createRange(r,r.getShiftedBy(s.length)),h=B(r);t.insertContent(e.createText(i,h),d),l+=i.length}t.enqueueChange((()=>{o.requestUndoOnBackspace()}))}))})),i.bind("isEnabled").to(this)}}function M(e){return"string"==typeof e?new RegExp(`(${(0,A.Z)(e)})$`):e}function V(e){return"string"==typeof e?()=>[e]:e instanceof Array?()=>e:e}function B(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function I(e){return new RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function D(e,t,o,s){return s.createRange(N(e,t,o,!0,s),N(e,t,o,!1,s))}function N(e,t,o,s,i){let r=e.textNode||(s?e.nodeBefore:e.nodeAfter),n=null;for(;r&&r.getAttribute(t)==o;)n=r,r=s?r.previousSibling:r.nextSibling;return n?i.createPositionAt(n,s?"before":"after"):e}function z(e,t,o,s){const i=e.editing.view,r=new Set;i.document.registerPostFixer((i=>{const n=e.model.document.selection;let a=!1;if(n.hasAttribute(t)){const c=D(n.getFirstPosition(),t,n.getAttribute(t),e.model),l=e.editing.mapper.toViewRange(c);for(const e of l.getItems())e.is("element",o)&&!e.hasClass(s)&&(i.addClass(s,e),r.add(e),a=!0)}return a})),e.conversion.for("editingDowncast").add((e=>{function t(){i.change((e=>{for(const t of r.values())e.removeClass(s,t),r.delete(t)}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}},"./packages/ckeditor5-ui/src/index.ts":(e,t,o)=>{"use strict";function s({emitter:e,activator:t,callback:o,contextElements:s}){e.listenTo(document,"mousedown",((e,i)=>{if(!t())return;const r="function"==typeof i.composedPath?i.composedPath():[],n="function"==typeof s?s():s;for(const e of n)if(e.contains(i.target)||r.includes(e))return;o()}))}function i(e){const t=e;t.set("_isCssTransitionsDisabled",!1),t.disableCssTransitions=()=>{t._isCssTransitionsDisabled=!0},t.enableCssTransitions=()=>{t._isCssTransitionsDisabled=!1},t.extendTemplate({attributes:{class:[t.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function r(e){return class extends e{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...e){super(...e),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function n({view:e}){e.listenTo(e.element,"submit",((t,o)=>{o.preventDefault(),e.fire("submit")}),{useCapture:!0})}function a({keystrokeHandler:e,focusTracker:t,gridItems:o,numberOfColumns:s,uiLanguageDirection:i}){const r="number"==typeof s?()=>s:s;function n(e){return s=>{const i=o.find((e=>e.element===t.focusedElement)),r=o.getIndex(i),n=e(r,o);o.get(n).focus(),s.stopPropagation(),s.preventDefault()}}function a(e,t){return e===t-1?0:e+1}function c(e,t){return 0===e?t-1:e-1}e.set("arrowright",n(((e,t)=>"rtl"===i?c(e,t.length):a(e,t.length)))),e.set("arrowleft",n(((e,t)=>"rtl"===i?a(e,t.length):c(e,t.length)))),e.set("arrowup",n(((e,t)=>{let o=e-r();return o<0&&(o=e+r()*Math.floor(t.length/r()),o>t.length-1&&(o-=r())),o}))),e.set("arrowdown",n(((e,t)=>{let o=e+r();return o>t.length-1&&(o=e%r()),o})))}o.d(t,{cH:()=>si,no:()=>Io,Jf:()=>_i,ee:()=>Pi,BK:()=>N,py:()=>ws,UR:()=>W,r5:()=>H,J6:()=>oe,J2:()=>eo,MI:()=>wo,_9:()=>Q,_Y:()=>vo,WB:()=>Bs,RX:()=>r,J0:()=>je,G2:()=>Te,_n:()=>Oe,S8:()=>gs,fF:()=>ks,LR:()=>ri(),I0:()=>Me,Gp:()=>Cs,yd:()=>pi,mO:()=>Z,VY:()=>Ts,r1:()=>ys,Xs:()=>ve,pq:()=>we,Em:()=>ke,Dn:()=>ue,KP:()=>ge,YK:()=>Qe,dn:()=>st,Bv:()=>ot,Hn:()=>Ss,P_:()=>Es,$W:()=>Ws,ZU:()=>Qs,RO:()=>mi,Rm:()=>at,lp:()=>Ls,BM:()=>K,YS:()=>b,nC:()=>Pe,qR:()=>Ie,$y:()=>Be,jB:()=>Ke,gE:()=>Wo,G7:()=>f,vX:()=>l,IJ:()=>a,Pm:()=>gt,up:()=>pt,eC:()=>s,t9:()=>ut,FH:()=>yt,sh:()=>wt,R:()=>kt,s$:()=>vt,Mh:()=>bt,k6:()=>J,ci:()=>Ci,fe:()=>i,S1:()=>Y,jY:()=>X,iw:()=>We,GI:()=>n});var c=o("./packages/ckeditor5-utils/src/index.ts");class l extends c.FE{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",((e,t,o)=>{this._renderViewIntoCollectionParent(t,o)})),this.on("remove",((e,t)=>{t.element&&this._parentElement&&t.element.remove()})),this._parentElement=null}destroy(){this.map((e=>e.destroy()))}setParent(e){this._parentElement=e;for(const e of this)this._renderViewIntoCollectionParent(e)}delegate(...e){if(!e.length||!e.every((e=>"string"==typeof e)))throw new c.Bb("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const o of this)for(const s of e)o.delegate(s).to(t);this.on("add",((o,s)=>{for(const o of e)s.delegate(o).to(t)})),this.on("remove",((o,s)=>{for(const o of e)s.stopDelegating(o,t)}))}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}}var d=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),h=o.n(d),u=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/globals/globals.css"),p={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(u.Z,p);u.Z.locals;class f extends((0,c.Xu)((0,c.Re)())){constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new c.FE,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((t,o)=>{o.locale=e,o.t=e&&e.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=b.bind(this,this)}createCollection(e){const t=new l(e);return this._viewCollections.add(t),t}registerChild(e){(0,c.TW)(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){(0,c.TW)(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new b(e)}extendTemplate(e){b.extend(this.template,e)}render(){if(this.isRendered)throw new c.Bb("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((e=>e.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}var g=o("./node_modules/lodash-es/cloneDeepWith.js"),m=o("./node_modules/lodash-es/isObject.js");class b extends((0,c.ln)()){constructor(e){super(),Object.assign(this,E(T(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new c.Bb("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const o of t.children)M(o)?yield o:V(o)&&(yield*e(o))}(this)}static bind(e,t){return{to:(o,s)=>new k({eventNameOrFunction:o,attribute:o,observable:e,emitter:t,callback:s}),if:(o,s,i)=>new w({observable:e,emitter:t,attribute:o,valueIfTrue:s,callback:i})}}static extend(e,t){if(e._isRendered)throw new c.Bb("template-extend-render",[this,e]);R(e,E(T(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new c.Bb("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),v(this.text)?this._bindToObservable({schema:this.text,updater:x(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,o=e.revertData;for(const s in this.attributes){const i=t.getAttribute(s),r=this.attributes[s];o&&(o.attributes[s]=i);const n=I(r)?r[0].ns:null;if(v(r)){const a=I(r)?r[0].value:r;o&&D(s)&&a.unshift(i),this._bindToObservable({schema:a,updater:P(t,s,n),data:e})}else if("style"==s&&"string"!=typeof r[0])this._renderStyleAttribute(r[0],e);else{o&&i&&D(s)&&r.unshift(i);const e=r.map((e=>e&&e.value||e)).reduce(((e,t)=>e.concat(t)),[]).reduce(S,"");j(e)||t.setAttributeNS(n,s,e)}}}_renderStyleAttribute(e,t){const o=t.node;for(const s in e){const i=e[s];v(i)?this._bindToObservable({schema:[i],updater:C(o,s),data:t}):o.style[s]=i}}_renderElementChildren(e){const t=e.node,o=e.intoFragment?document.createDocumentFragment():t,s=e.isApplying;let i=0;for(const r of this.children)if(B(r)){if(!s){r.setParent(t);for(const e of r)o.appendChild(e.element)}}else if(M(r))s||(r.isRendered||r.render(),o.appendChild(r.element));else if((0,c.UG)(r))o.appendChild(r);else if(s){const t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),r._renderNode({intoFragment:!1,node:o.childNodes[i++],isApplying:!0,revertData:t})}else o.appendChild(r.render());e.intoFragment&&t.appendChild(o)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const o=this.eventListeners[t].map((o=>{const[s,i]=t.split("@");return o.activateDomEventListener(s,i,e)}));e.revertData&&e.revertData.bindings.push(o)}}_bindToObservable({schema:e,updater:t,data:o}){const s=o.revertData;y(e,t,o);const i=e.filter((e=>!j(e))).filter((e=>e.observable)).map((s=>s.activateAttributeListener(e,t,o)));s&&s.bindings.push(i)}_revertTemplateFromNode(e,t){for(const e of t.bindings)for(const t of e)t();if(t.text)return void(e.textContent=t.text);const o=e;for(const e in t.attributes){const s=t.attributes[e];null===s?o.removeAttribute(e):o.setAttribute(e,s)}for(let e=0;e<t.children.length;++e)this._revertTemplateFromNode(o.childNodes[e],t.children[e])}}class _{constructor(e){this.attribute=e.attribute,this.observable=e.observable,this.emitter=e.emitter,this.callback=e.callback}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,o){const s=()=>y(e,t,o);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,s),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,s)}}}class k extends _{constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,o){const s=(e,o)=>{t&&!o.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(o):this.observable.fire(this.eventNameOrFunction,o))};return this.emitter.listenTo(o.node,e,s),()=>{this.emitter.stopListening(o.node,e,s)}}}class w extends _{constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){return!j(super.getValue(e))&&(this.valueIfTrue||!0)}}function v(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(v):e instanceof _)}function y(e,t,{node:o}){const s=function(e,t){return e.map((e=>e instanceof _?e.getValue(t):e))}(e,o);let i;i=1==e.length&&e[0]instanceof w?s[0]:s.reduce(S,""),j(i)?t.remove():t.set(i)}function x(e){return{set(t){e.textContent=t},remove(){e.textContent=""}}}function P(e,t,o){return{set(s){e.setAttributeNS(o,t,s)},remove(){e.removeAttributeNS(o,t)}}}function C(e,t){return{set(o){e.style[t]=o},remove(){e.style[t]=null}}}function T(e){return(0,g.Z)(e,(e=>{if(e&&(e instanceof _||V(e)||M(e)||B(e)))return e}))}function E(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=(0,c.qo)(e.text)}(e),e.on&&(e.eventListeners=function(e){for(const t in e)A(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(const t in e)e[t].value&&(e[t].value=(0,c.qo)(e[t].value)),A(e,t)}(e.attributes);const t=[];if(e.children)if(B(e.children))t.push(e.children);else for(const o of e.children)V(o)||M(o)||(0,c.UG)(o)?t.push(o):t.push(new b(o));e.children=t}return e}function A(e,t){e[t]=(0,c.qo)(e[t])}function S(e,t){return j(t)?e:j(e)?t:`${e} ${t}`}function O(e,t){for(const o in t)e[o]?e[o].push(...t[o]):e[o]=t[o]}function R(e,t){if(t.attributes&&(e.attributes||(e.attributes={}),O(e.attributes,t.attributes)),t.eventListeners&&(e.eventListeners||(e.eventListeners={}),O(e.eventListeners,t.eventListeners)),t.text&&e.text.push(...t.text),t.children&&t.children.length){if(e.children.length!=t.children.length)throw new c.Bb("ui-template-extend-children-mismatch",e);let o=0;for(const s of t.children)R(e.children[o++],s)}}function j(e){return!e&&0!==e}function M(e){return e instanceof f}function V(e){return e instanceof b}function B(e){return e instanceof l}function I(e){return(0,m.Z)(e[0])&&e[0].ns}function D(e){return"class"==e||"style"==e}class N extends l{constructor(e,t=[]){super(t),this.locale=e}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new b({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=(0,c.az)(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}var z=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/icon/icon.css"),F={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(z.Z,F);z.Z.locals;const L=class extends f{constructor(){super();const e=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",e.if("isVisible","ck-hidden",(e=>!e)),"ck-reset_all-excluded",e.if("isColorInherited","ck-icon_inherit-color")],viewBox:e.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"),t=e.getAttribute("viewBox");t&&(this.viewBox=t);for(const{name:t,value:o}of Array.from(e.attributes))L.presentationalAttributeNames.includes(t)&&this.element.setAttribute(t,o);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((e=>{e.style.fill=this.fillColor}))}};let Z=L;Z.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 W extends f{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:e.to("style"),id:e.to("id")},children:[{text:e.to("text")}]})}}var $=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/button.css"),q={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()($.Z,q);$.Z.locals;class H extends f{constructor(e,t=new W){super(e),this._focusDelayed=null;const o=this.bindTemplate,s=(0,c.hQ)();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${s}`),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(t),this.iconView=new Z,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 i={tag:"button",attributes:{class:["ck","ck-button",o.to("class"),o.if("isEnabled","ck-disabled",(e=>!e)),o.if("isVisible","ck-hidden",(e=>!e)),o.to("isOn",(e=>e?"ck-on":"ck-off")),o.if("withText","ck-button_with-text"),o.if("withKeystroke","ck-button_with-keystroke")],role:o.to("role"),type:o.to("type",(e=>e||"button")),tabindex:o.to("tabindex"),"aria-label":o.to("ariaLabel"),"aria-labelledby":o.to("ariaLabelledBy"),"aria-disabled":o.if("isEnabled",!0,(e=>!e)),"aria-pressed":o.to("isOn",(e=>!!this.isToggleable&&String(!!e))),"data-cke-tooltip-text":o.to("_tooltipString"),"data-cke-tooltip-position":o.to("tooltipPosition")},children:this.children,on:{click:o.to((e=>{this.isEnabled?this.fire("execute"):e.preventDefault()}))}};c.OB.isSafari&&(this._focusDelayed||(this._focusDelayed=(0,c.gw)((()=>this.focus()),0)),i.on.mousedown=o.to((()=>{this._focusDelayed()})),i.on.mouseup=o.to((()=>{this._focusDelayed.cancel()}))),this.setTemplate(i)}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(e){return e.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),e}_createKeystrokeView(){const e=new f;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(e=>(0,c.XU)(e)))}]}),e}_getTooltipString(e,t,o){return e?"string"==typeof e?e:(o&&(o=(0,c.XU)(o)),e instanceof Function?e(t,o):`${t}${o?` (${o})`:""}`):""}}var U=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/switchbutton.css"),G={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(U.Z,G);U.Z.locals;class K extends H{constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const e=new f;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}function J(e,t){const o=e.t,s={Black:o("Black"),"Dim grey":o("Dim grey"),Grey:o("Grey"),"Light grey":o("Light grey"),White:o("White"),Red:o("Red"),Orange:o("Orange"),Yellow:o("Yellow"),"Light green":o("Light green"),Green:o("Green"),Aquamarine:o("Aquamarine"),Turquoise:o("Turquoise"),"Light blue":o("Light blue"),Blue:o("Blue"),Purple:o("Purple")};return t.map((e=>{const t=s[e.label];return t&&t!=e.label&&(e.label=t),e}))}function Y(e){return e.map(X).filter((e=>!!e))}function X(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:`${e.color}`}}}}class Q extends H{constructor(e){super(e);const t=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',this.extendTemplate({attributes:{style:{backgroundColor:t.to("color")},class:["ck","ck-color-grid__tile",t.if("hasBorder","ck-color-selector__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var ee=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorgrid/colorgrid.css"),te={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ee.Z,te);ee.Z.locals;class oe extends f{constructor(e,t){super(e);const o=t&&t.colorDefinitions?t.colorDefinitions:[];this.columns=t&&t.columns?t.columns:5;const s={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this.items.on("add",((e,t)=>{t.isOn=t.color===this.selectedColor})),o.forEach((e=>{const t=new Q;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",(()=>{this.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})})),this.items.add(t)})),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:s}}),this.on("change:selectedColor",((e,t,o)=>{for(const e of this.items)e.isOn=e.color===o}))}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",((e,t)=>{this.focusTracker.add(t.element)})),this.items.on("remove",((e,t)=>{this.focusTracker.remove(t.element)})),this.keystrokes.listenTo(this.element),a({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var se=o("./node_modules/color-name/index.js");const ie=function(e){var t,o,s=[],i=1;if("string"==typeof e)if(se[e])s=se[e].slice(),o="rgb";else if("transparent"===e)i=0,o="rgb",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var r=e.slice(1);i=1,(c=r.length)<=4?(s=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],4===c&&(i=parseInt(r[3]+r[3],16)/255)):(s=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],8===c&&(i=parseInt(r[6]+r[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),o="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var n=t[1],a="rgb"===n;o=r=n.replace(/a$/,"");var c="cmyk"===r?4:"gray"===r?1:3;s=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===c?parseFloat(e)/100:"rgb"===r?255*parseFloat(e)/100:parseFloat(e);if("h"===r[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==re[e])return re[e]}return parseFloat(e)})),n===r&&s.push(1),i=a||void 0===s[c]?1:s[c],s=s.slice(0,c)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(s=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),o=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(s=[e[0],e[1],e[2]],o="rgb",i=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(o="rgb",s=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(o="hsl",s=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(i/=100)):(o="rgb",s=[e>>>16,(65280&e)>>>8,255&e]);return{space:o,values:s,alpha:i}};var re={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};var ne=o("./node_modules/color-convert/index.js");function ae(e,t){if(!e)return"";const o=ce(e);if(!o)return"";if(o.space===t)return e;if(s=o,!Object.keys(ne).includes(s.space))return"";var s;const i=ne[o.space][t];if(!i)return"";return function(e,t){switch(t){case"hex":return`#${e}`;case"rgb":return`rgb( ${e[0]}, ${e[1]}, ${e[2]} )`;case"hsl":return`hsl( ${e[0]}, ${e[1]}%, ${e[2]}% )`;case"hwb":return`hwb( ${e[0]}, ${e[1]}, ${e[2]} )`;case"lab":return`lab( ${e[0]}% ${e[1]} ${e[2]} )`;case"lch":return`lch( ${e[0]}% ${e[1]} ${e[2]} )`;default:return""}}(i("hex"===o.space?o.hexValue:o.values),t)}function ce(e){if(e.startsWith("#")){const t=ie(e);return{space:"hex",values:t.values,hexValue:e,alpha:t.alpha}}const t=ie(e);return t.space?t:null}var le=o("./node_modules/lodash-es/debounce.js"),de=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/label/label.css"),he={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(de.Z,he);de.Z.locals;class ue extends f{constructor(e){super(e),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${(0,c.hQ)()}`;const t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}var pe=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css"),fe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(pe.Z,fe);pe.Z.locals;class ge extends f{constructor(e,t){super(e);const o=`ck-labeled-field-view-${(0,c.hQ)()}`,s=`ck-labeled-field-view-status-${(0,c.hQ)()}`;this.fieldView=t(this,o,s),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(o),this.statusView=this._createStatusView(s),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",((e,t)=>e||t));const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",i.to("class"),i.if("isEnabled","ck-disabled",(e=>!e)),i.if("isEmpty","ck-labeled-field-view_empty"),i.if("isFocused","ck-labeled-field-view_focused"),i.if("placeholder","ck-labeled-field-view_placeholder"),i.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(e){const t=new ue(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new f(this.locale),o=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",o.if("errorText","ck-labeled-field-view__status_error"),o.if("_statusText","ck-hidden",(e=>!e))],id:e,role:o.if("errorText","alert")},children:[{text:o.to("_statusText")}]}),t}focus(e){this.fieldView.focus(e)}}class me extends f{constructor(e){super(e),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 c.Rh,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById")},on:{input:t.to(((...e)=>{this.fire("input",...e),this._updateIsEmpty()})),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((e,t,o)=>{this._setDomElementValue(o),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=!this.element.value}_setDomElementValue(e){this.element.value=e||0===e?e:""}}var be=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/input/input.css"),_e={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(be.Z,_e);be.Z.locals;class ke extends me{constructor(e){super(e),this.set("inputMode","text");const t=this.bindTemplate;this.extendTemplate({attributes:{inputmode:t.to("inputMode")}})}}class we extends ke{constructor(e){super(e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class ve extends ke{constructor(e,{min:t,max:o,step:s}={}){super(e);const i=this.bindTemplate;this.set("min",t),this.set("max",o),this.set("step",s),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:i.to("min"),max:i.to("max"),step:i.to("step")}})}}var ye=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/textarea/textarea.css"),xe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ye.Z,xe);ye.Z.locals;class Pe extends me{constructor(e){super(e);const t=(0,c.nn)("px");this.set("minRows",2),this.set("maxRows",5),this.set("_height",null),this.set("resize","none"),this.on("change:minRows",this._validateMinMaxRows.bind(this)),this.on("change:maxRows",this._validateMinMaxRows.bind(this));const o=this.bindTemplate;this.template.tag="textarea",this.extendTemplate({attributes:{class:["ck-textarea"],style:{height:o.to("_height",(e=>e?t(e):null)),resize:o.to("resize")},rows:o.to("minRows")}})}render(){super.render(),this.on("input",(()=>{this._updateAutoGrowHeight(!0),this.fire("update")})),this.on("change:value",(()=>{c.global.window.requestAnimationFrame((()=>{(0,c.pn)(this.element)&&(this._updateAutoGrowHeight(),this.fire("update"))}))}))}reset(){super.reset(),this._updateAutoGrowHeight(),this.fire("update")}_updateAutoGrowHeight(e){const t=this.element,o=Ce(t,"1"),s=Ce(t,t.value),i=o.ownerDocument.defaultView.getComputedStyle(o),r=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),n=(0,c.lo)(o),a=parseFloat(i.lineHeight),l=n.top+n.bottom,d=new c.UL(o).height,h=Math.round((s.scrollHeight-r)/a),u=this.maxRows*a+r+l,p=1===h?d:this.minRows*a+r+l;this._height=Math.min(Math.max(Math.max(h,this.minRows)*a+r+l,p),u),e&&(t.scrollTop=t.scrollHeight),o.remove(),s.remove()}_validateMinMaxRows(){if(this.minRows>this.maxRows)throw new c.Bb("ui-textarea-view-min-rows-greater-than-max-rows",{textareaView:this,minRows:this.minRows,maxRows:this.maxRows})}}function Ce(e,t){const o=e.cloneNode();return o.style.position="absolute",o.style.top="-99999px",o.style.left="-99999px",o.style.height="auto",o.style.overflow="hidden",o.style.width=e.ownerDocument.defaultView.getComputedStyle(e).width,o.tabIndex=-1,o.rows=1,o.value=t,e.parentNode.insertBefore(o,e),o}class Te extends f{constructor(e){super(e);const t=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",t.to("position",(e=>`ck-dropdown__panel_${e}`)),t.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:t.to((e=>{"input"!==e.target.tagName.toLocaleLowerCase()&&e.preventDefault()}))}})}focus(){if(this.children.length){const e=this.children.first;"function"==typeof e.focus?e.focus():(0,c.KE)("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}var Ee=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/dropdown.css"),Ae={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Ee.Z,Ae);Ee.Z.locals;const Se=class extends f{constructor(e,t,o){super(e);const s=this.bindTemplate;this.buttonView=t,this.panelView=o,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 c.VD,this.focusTracker=new c.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",s.to("class"),s.if("isEnabled","ck-disabled",(e=>!e))],id:s.to("id"),"aria-describedby":s.to("ariaDescribedById")},children:[t,o]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":s.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,t,o)=>{if(o)if("auto"===this.panelPosition){const e=Se._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=e?e.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition})),this.keystrokes.listenTo(this.element);const e=(e,t)=>{this.isOpen&&(this.isOpen=!1,t())};this.keystrokes.set("arrowdown",((e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())})),this.keystrokes.set("arrowright",((e,t)=>{this.isOpen&&t()})),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:e,north:t,southEast:o,southWest:s,northEast:i,northWest:r,southMiddleEast:n,southMiddleWest:a,northMiddleEast:c,northMiddleWest:l}=Se.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[o,s,n,a,e,i,r,c,l,t]:[s,o,a,n,e,r,i,l,c,t]}};let Oe=Se;Oe.defaultPanelPositions={south:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/2,name:"s"}),southEast:e=>({top:e.bottom,left:e.left,name:"se"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:"sw"}),southMiddleEast:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/4,name:"sme"}),southMiddleWest:(e,t)=>({top:e.bottom,left:e.left-3*(t.width-e.width)/4,name:"smw"}),north:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:"n"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:"ne"}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}),northMiddleEast:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:"nme"}),northMiddleWest:(e,t)=>({top:e.top-t.height,left:e.left-3*(t.width-e.width)/4,name:"nmw"})},Oe._getOptimalPosition=c.xZ;const Re='<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 je extends H{constructor(e){super(e),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 e=new Z;return e.content=Re,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}class Me extends((0,c.ln)()){constructor(e){if(super(),this.focusables=e.focusables,this.focusTracker=e.focusTracker,this.keystrokeHandler=e.keystrokeHandler,this.actions=e.actions,e.actions&&e.keystrokeHandler)for(const t in e.actions){let o=e.actions[t];"string"==typeof o&&(o=[o]);for(const s of o)e.keystrokeHandler.set(s,((e,o)=>{this[t](),o()}))}this.on("forwardCycle",(()=>this.focusFirst()),{priority:"low"}),this.on("backwardCycle",(()=>this.focusLast()),{priority:"low"})}get first(){return this.focusables.find(Ve)||null}get last(){return this.focusables.filter(Ve).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((t,o)=>{const s=t.element===this.focusTracker.focusedElement;return s&&(e=o),s})),e)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const e=this.next;e&&this.focusables.getIndex(e)===this.current||(e===this.first?this.fire("forwardCycle"):this._focus(e,1))}focusPrevious(){const e=this.previous;e&&this.focusables.getIndex(e)===this.current||(e===this.last?this.fire("backwardCycle"):this._focus(e,-1))}_focus(e,t){e&&e.focus(t)}_getFocusableItem(e){const t=this.current,o=this.focusables.length;if(!o)return null;if(null===t)return this[1===e?"first":"last"];let s=(t+o+e)%o;do{const t=this.focusables.get(s);if(Ve(t))return t;s=(s+o+e)%o}while(s!==t);return null}}function Ve(e){return!(!("focus"in e)||!(0,c.pn)(e.element))}class Be extends f{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Ie extends f{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var De=Object.defineProperty,Ne=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Le=(e,t,o)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ze=(e,t)=>{for(var o in t||(t={}))ze.call(t,o)&&Le(e,o,t[o]);if(Ne)for(var o of Ne(t))Fe.call(t,o)&&Le(e,o,t[o]);return e};function We(e){if(Array.isArray(e))return{items:e,removeItems:[]};const t={items:[],removeItems:[]};return e?Ze(Ze({},t),e):t}var $e=o("./packages/ckeditor5-core/src/index.ts"),qe=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/toolbar.css"),He={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(qe.Z,He);qe.Z.locals;const{threeVerticalDots:Ue}=$e.icons,Ge={alignLeft:$e.icons.alignLeft,bold:$e.icons.bold,importExport:$e.icons.importExport,paragraph:$e.icons.paragraph,plus:$e.icons.plus,text:$e.icons.text,threeVerticalDots:$e.icons.threeVerticalDots,pilcrow:$e.icons.pilcrow,dragIndicator:$e.icons.dragIndicator};class Ke extends f{constructor(e,t){super(e);const o=this.bindTemplate,s=this.t;this.options=t||{},this.set("ariaLabel",s("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Je(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const i="rtl"===e.uiLanguageDirection;this._focusCycler=new Me({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[i?"arrowright":"arrowleft","arrowup"],focusNext:[i?"arrowleft":"arrowright","arrowdown"]}});const r=["ck","ck-toolbar",o.to("class"),o.if("isCompact","ck-toolbar_compact")];var n;this.options.shouldGroupWhenFull&&this.options.isFloating&&r.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:r,role:"toolbar","aria-label":o.to("ariaLabel"),style:{maxWidth:o.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(n=this,n.bindTemplate.to((e=>{e.target===n.element&&e.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new Xe(this):new Ye(this)}render(){super.render(),this.focusTracker.add(this.element);for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",((e,t)=>{this.focusTracker.add(t.element)})),this.items.on("remove",((e,t)=>{this.focusTracker.remove(t.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(e,t,o){this.items.addMany(this._buildItemsFromConfig(e,t,o))}_buildItemsFromConfig(e,t,o){const s=We(e),i=o||s.removeItems;return this._cleanItemsConfiguration(s.items,t,i).map((e=>(0,m.Z)(e)?this._createNestedToolbarDropdown(e,t,i):"|"===e?new Be:"-"===e?new Ie:t.create(e))).filter((e=>!!e))}_cleanItemsConfiguration(e,t,o){const s=e.filter(((e,s,i)=>"|"===e||-1===o.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||((0,c.KE)("toolbarview-line-break-ignored-when-grouping-items",i),!1):!(!(0,m.Z)(e)&&!t.has(e))||((0,c.KE)("toolbarview-item-unavailable",{item:e}),!1))));return this._cleanSeparatorsAndLineBreaks(s)}_cleanSeparatorsAndLineBreaks(e){const t=e=>"-"!==e&&"|"!==e,o=e.length,s=e.findIndex(t);if(-1===s)return[];const i=o-e.slice().reverse().findIndex(t);return e.slice(s,i).filter(((e,o,s)=>{if(t(e))return!0;return!(o>0&&s[o-1]===e)}))}_createNestedToolbarDropdown(e,t,o){let{label:s,icon:i,items:r,tooltip:n=!0,withText:a=!1}=e;if(r=this._cleanItemsConfiguration(r,t,o),!r.length)return null;const l=ut(this.locale);return s||(0,c.KE)("toolbarview-nested-toolbar-dropdown-missing-label",e),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:s,tooltip:n,withText:!!a}),!1!==i?l.buttonView.icon=Ge[i]||i||Ue:l.buttonView.withText=!0,pt(l,(()=>l.toolbarView._buildItemsFromConfig(r,t,o))),l}}class Je extends f{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Ye{constructor(e){const t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using((e=>e)),e.focusables.bindTo(e.items).using((e=>e)),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Xe{constructor(e){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),e.itemsView.children.bindTo(this.ungroupedItems).using((e=>e)),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),e.children.on("change",this._updateFocusCycleableItems.bind(this)),e.items.on("change",((e,t)=>{const o=t.index,s=Array.from(t.added);for(const e of t.removed)o>=this.ungroupedItems.length?this.groupedItems.remove(e):this.ungroupedItems.remove(e);for(let e=o;e<o+s.length;e++){const t=s[e-o];e>this.ungroupedItems.length?this.groupedItems.add(t,e-this.ungroupedItems.length):this.ungroupedItems.add(t,e)}this._updateGrouping()})),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!(0,c.pn)(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const e=this.groupedItems.length;let t;for(;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,o=new c.UL(e.lastChild),s=new c.UL(e);if(!this.cachedPadding){const o=c.global.window.getComputedStyle(e),s="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(o[s])}return"ltr"===t?o.right>s.right-this.cachedPadding:o.left<s.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new c.do(this.viewElement,(t=>{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Be),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 e=this.viewLocale,t=e.t,o=ut(e);return o.class="ck-toolbar__grouped-dropdown",o.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",pt(o,this.groupedItems),o.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:Ue}),o}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((e=>{this.viewFocusables.add(e)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class Qe extends f{constructor(e,t=new ue){super(e);const o=this.bindTemplate,s=new ot(e);this.set({label:"",isVisible:!0}),this.labelView=t,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,s]),s.set({role:"group",ariaLabelledBy:t.id}),s.focusTracker.destroy(),s.keystrokes.destroy(),this.items=s.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",o.if("isVisible","ck-hidden",(e=>!e))]},children:this.children})}focus(){this.items.first&&this.items.first.focus()}}var et=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/list/list.css"),tt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(et.Z,tt);et.Z.locals;class ot extends f{constructor(e){super(e),this._listItemGroupToChangeListeners=new WeakMap;const t=this.bindTemplate;this.focusables=new l,this.items=this.createCollection(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this._focusCycler=new Me({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:t.to("role"),"aria-label":t.to("ariaLabel"),"aria-labelledby":t.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const e of this.items)e instanceof Qe?this._registerFocusableItemsGroup(e):this._registerFocusableListItem(e);this.items.on("change",((e,t)=>{for(const e of t.removed)e instanceof Qe?this._deregisterFocusableItemsGroup(e):this._deregisterFocusableListItem(e);for(const e of Array.from(t.added).reverse())e instanceof Qe?this._registerFocusableItemsGroup(e,t.index):this._registerFocusableListItem(e,t.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(e,t){this.focusTracker.add(e.element),this.focusables.add(e,t)}_deregisterFocusableListItem(e){this.focusTracker.remove(e.element),this.focusables.remove(e)}_getOnGroupItemsChangeCallback(e){return(t,o)=>{for(const e of o.removed)this._deregisterFocusableListItem(e);for(const t of Array.from(o.added).reverse())this._registerFocusableListItem(t,this.items.getIndex(e)+o.index)}}_registerFocusableItemsGroup(e,t){Array.from(e.items).forEach(((e,o)=>{const s=void 0!==t?t+o:void 0;this._registerFocusableListItem(e,s)}));const o=this._getOnGroupItemsChangeCallback(e);this._listItemGroupToChangeListeners.set(e,o),e.items.on("change",o)}_deregisterFocusableItemsGroup(e){for(const t of e.items)this._deregisterFocusableListItem(t);e.items.off("change",this._listItemGroupToChangeListeners.get(e)),this._listItemGroupToChangeListeners.delete(e)}}class st extends f{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",t.if("isVisible","ck-hidden",(e=>!e))],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class it extends f{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var rt=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/splitbutton.css"),nt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(rt.Z,nt);rt.Z.locals;class at extends f{constructor(e){super(e);const t=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(),this.arrowView=this._createArrowView(),this.keystrokes=new c.VD,this.focusTracker=new c.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",t.to("class"),t.if("isVisible","ck-hidden",(e=>!e)),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",((e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())})),this.keystrokes.set("arrowleft",((e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const e=new H;return 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 e=new H,t=e.bindTemplate;return e.icon=Re,e.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":t.to("isOn"),"aria-haspopup":!0,"aria-expanded":t.to("isOn",(e=>String(e)))}}),e.bind("isEnabled").to(this),e.bind("label").to(this),e.bind("tooltip").to(this),e.delegate("execute").to(this,"open"),e}}var ct=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css"),lt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ct.Z,lt);ct.Z.locals;var dt=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/listdropdown.css"),ht={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(dt.Z,ht);dt.Z.locals;function ut(e,t=je){const o=new t(e),i=new Te(e),r=new Oe(e,o,i);return o.bind("isEnabled").to(r),o instanceof at?o.arrowView.bind("isOn").to(r,"isOpen"):o.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",(()=>{s({emitter:e,activator:()=>e.isOpen,callback:()=>{e.isOpen=!1},contextElements:()=>[e.element,...e.focusTracker._elements]})}))})(e),function(e){e.on("execute",(t=>{t.source instanceof K||(e.isOpen=!1)}))}(e),function(e){e.focusTracker.on("change:isFocused",((t,o,s)=>{e.isOpen&&!s&&(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",((t,o)=>{e.isOpen&&(e.panelView.focus(),o())})),e.keystrokes.set("arrowup",((t,o)=>{e.isOpen&&(e.panelView.focusLast(),o())}))}(e),function(e){e.on("change:isOpen",((t,o,s)=>{if(s)return;const i=e.panelView.element;i&&i.contains(c.global.document.activeElement)&&e.buttonView.focus()}))}(e),function(e){e.on("change:isOpen",((t,o,s)=>{s&&e.panelView.focus()}),{priority:"low"})}(e)}(r),r}function pt(e,t,o={}){e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.isOpen?ft(e,t,o):e.once("change:isOpen",(()=>ft(e,t,o)),{priority:"highest"}),o.enableActiveItemFocusOnDropdownOpen&&bt(e,(()=>e.toolbarView.items.find((e=>e.isOn))))}function ft(e,t,o){const s=e.locale,i=s.t,r=e.toolbarView=new Ke(s),n="function"==typeof t?t():t;r.ariaLabel=o.ariaLabel||i("Dropdown toolbar"),o.maxWidth&&(r.maxWidth=o.maxWidth),o.class&&(r.class=o.class),o.isCompact&&(r.isCompact=o.isCompact),o.isVertical&&(r.isVertical=!0),n instanceof l?r.items.bindTo(n).using((e=>e)):r.items.addMany(n),e.panelView.children.add(r),r.items.delegate("execute").to(e)}function gt(e,t,o={}){e.isOpen?mt(e,t,o):e.once("change:isOpen",(()=>mt(e,t,o)),{priority:"highest"}),bt(e,(()=>e.listView.items.find((e=>e instanceof st&&e.children.first.isOn))))}function mt(e,t,o){const s=e.locale,i=e.listView=new ot(s),r="function"==typeof t?t():t;i.ariaLabel=o.ariaLabel,i.role=o.role,_t(e,i.items,r,s),e.panelView.children.add(i),i.items.delegate("execute").to(e)}function bt(e,t){e.on("change:isOpen",(()=>{if(!e.isOpen)return;const o=t();o&&("function"==typeof o.focus?o.focus():(0,c.KE)("ui-dropdown-focus-child-on-open-child-missing-focus",{view:o}))}),{priority:c.tA.low-10})}function _t(e,t,o,s){t.bindTo(o).using((t=>{if("separator"===t.type)return new it(s);if("group"===t.type){const o=new Qe(s);return o.set({label:t.label}),_t(e,o.items,t.items,s),o.items.delegate("execute").to(e),o}if("button"===t.type||"switchbutton"===t.type){const e=new st(s);let o;return"button"===t.type?(o=new H(s),o.extendTemplate({attributes:{"aria-checked":o.bindTemplate.to("isOn")}})):o=new K(s),o.bind(...Object.keys(t.model)).to(t.model),o.delegate("execute").to(e),e.children.add(o),e}return null}))}const kt=(e,t,o)=>{const s=new we(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),s.bind("hasError").to(e,"errorText",(e=>!!e)),s.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(s),s},wt=(e,t,o)=>{const s=new ve(e.locale);return s.set({id:t,ariaDescribedById:o,inputMode:"numeric"}),s.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),s.bind("hasError").to(e,"errorText",(e=>!!e)),s.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(s),s},vt=(e,t,o)=>{const s=new Pe(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),s.bind("hasError").to(e,"errorText",(e=>!!e)),s.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(s),s},yt=(e,t,o)=>{const s=ut(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isEnabled").to(e),s},xt=(e,t=0,o=1)=>e>o?o:e<t?t:e,Pt=(e,t=0,o=Math.pow(10,t))=>Math.round(o*e)/o,Ct=(Math.PI,e=>("#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Pt(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?Pt(parseInt(e.substring(6,8),16)/255,2):1})),Tt=({h:e,s:t,v:o,a:s})=>{const i=(200-t)*o/100;return{h:Pt(e),s:Pt(i>0&&i<200?t*o/100/(i<=100?i:200-i)*100:0),l:Pt(i/2),a:Pt(s,2)}},Et=e=>{const{h:t,s:o,l:s}=Tt(e);return`hsl(${t}, ${o}%, ${s}%)`},At=({h:e,s:t,v:o,a:s})=>{e=e/360*6,t/=100,o/=100;const i=Math.floor(e),r=o*(1-t),n=o*(1-(e-i)*t),a=o*(1-(1-e+i)*t),c=i%6;return{r:Pt(255*[o,n,r,r,a,o][c]),g:Pt(255*[a,o,o,n,r,r][c]),b:Pt(255*[r,r,a,o,o,n][c]),a:Pt(s,2)}},St=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},Ot=({r:e,g:t,b:o,a:s})=>{const i=s<1?St(Pt(255*s)):"";return"#"+St(e)+St(t)+St(o)+i},Rt=({r:e,g:t,b:o,a:s})=>{const i=Math.max(e,t,o),r=i-Math.min(e,t,o),n=r?i===e?(t-o)/r:i===t?2+(o-e)/r:4+(e-t)/r:0;return{h:Pt(60*(n<0?n+6:n)),s:Pt(i?r/i*100:0),v:Pt(i/255*100),a:s}},jt=(e,t)=>{if(e===t)return!0;for(const o in e)if(e[o]!==t[o])return!1;return!0},Mt={},Vt=e=>{let t=Mt[e];return t||(t=document.createElement("template"),t.innerHTML=e,Mt[e]=t),t},Bt=(e,t,o)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:o}))};let It=!1;const Dt=e=>"touches"in e,Nt=(e,t)=>{const o=Dt(t)?t.touches[0]:t,s=e.el.getBoundingClientRect();Bt(e.el,"move",e.getMove({x:xt((o.pageX-(s.left+window.pageXOffset))/s.width),y:xt((o.pageY-(s.top+window.pageYOffset))/s.height)}))};class zt{constructor(e,t,o,s){const i=Vt(`<div role="slider" tabindex="0" part="${t}" ${o}><div part="${t}-pointer"></div></div>`);e.appendChild(i.content.cloneNode(!0));const r=e.querySelector(`[part=${t}]`);r.addEventListener("mousedown",this),r.addEventListener("touchstart",this),r.addEventListener("keydown",this),this.el=r,this.xy=s,this.nodes=[r.firstChild,r]}set dragging(e){const t=e?document.addEventListener:document.removeEventListener;t(It?"touchmove":"mousemove",this),t(It?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!(e=>!(It&&!Dt(e)||(It||(It=Dt(e)),0)))(e)||!It&&0!=e.button)return;this.el.focus(),Nt(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),Nt(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((e,t)=>{const o=t.keyCode;o>40||e.xy&&o<37||o<33||(t.preventDefault(),Bt(e.el,"move",e.getMove({x:39===o?.01:37===o?-.01:34===o?.05:33===o?-.05:35===o?1:36===o?-1:0,y:40===o?.01:38===o?-.01:0},!0)))})(this,e)}}style(e){e.forEach(((e,t)=>{for(const o in e)this.nodes[t].style.setProperty(o,e[o])}))}}class Ft extends zt{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:e/360*100+"%",color:Et({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Pt(e)}`)}getMove(e,t){return{h:t?xt(this.h+360*e.x,0,360):360*e.x}}}class Lt extends zt{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:100-e.v+"%",left:`${e.s}%`,color:Et(e)},{"background-color":Et({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Pt(e.s)}%, Brightness ${Pt(e.v)}%`)}getMove(e,t){return{s:t?xt(this.hsva.s+100*e.x,0,100):100*e.x,v:t?xt(this.hsva.v-100*e.y,0,100):Math.round(100-100*e.y)}}}const Zt=Symbol("same"),Wt=Symbol("color"),$t=Symbol("hsva"),qt=Symbol("update"),Ht=Symbol("parts"),Ut=Symbol("css"),Gt=Symbol("sliders");class Kt extends HTMLElement{static get observedAttributes(){return["color"]}get[Ut](){return[':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)}',"[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}","[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}"]}get[Gt](){return[Lt,Ft]}get color(){return this[Wt]}set color(e){if(!this[Zt](e)){const t=this.colorModel.toHsva(e);this[qt](t),this[Wt]=e}}constructor(){super();const e=Vt(`<style>${this[Ut].join("")}</style>`),t=this.attachShadow({mode:"open"});t.appendChild(e.content.cloneNode(!0)),t.addEventListener("move",this),this[Ht]=this[Gt].map((e=>new e(t)))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,t,o){const s=this.colorModel.fromAttr(o);this[Zt](s)||(this.color=s)}handleEvent(e){const t=this[$t],o={...t,...e.detail};let s;this[qt](o),jt(o,t)||this[Zt](s=this.colorModel.fromHsva(o))||(this[Wt]=s,Bt(this,"color-changed",{value:s}))}[Zt](e){return this.color&&this.colorModel.equal(e,this.color)}[qt](e){this[$t]=e,this[Ht].forEach((t=>t.update(e)))}}const Jt={defaultColor:"#000",toHsva:e=>Rt(Ct(e)),fromHsva:({h:e,s:t,v:o})=>Ot(At({h:e,s:t,v:o,a:1})),equal:(e,t)=>e.toLowerCase()===t.toLowerCase()||jt(Ct(e),Ct(t)),fromAttr:e=>e};class Yt extends Kt{get colorModel(){return Jt}}customElements.define("hex-color-picker",class extends Yt{});var Xt=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorpicker/colorpicker.css"),Qt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Xt.Z,Qt);Xt.Z.locals;class eo extends f{constructor(e,t={}){super(e),this.set({color:"",_hexColor:""}),this.hexInputRow=this._createInputRow();const o=this.createCollection();t.hideInput||o.add(this.hexInputRow),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker"],tabindex:-1},children:o}),this._config=t,this._debounceColorPickerEvent=(0,le.Z)((e=>{this.set("color",e),this.fire("colorSelected",{color:this.color})}),150,{leading:!0}),this.on("set:color",((e,t,o)=>{e.return=ae(o,this._config.format||"hsl")})),this.on("change:color",(()=>{this._hexColor=to(this.color)})),this.on("change:_hexColor",(()=>{document.activeElement!==this.picker&&this.picker.setAttribute("color",this._hexColor),to(this.color)!=to(this._hexColor)&&(this.color=this._hexColor)}))}render(){if(super.render(),this.picker=c.global.document.createElement("hex-color-picker"),this.picker.setAttribute("class","hex-color-picker"),this.picker.setAttribute("tabindex","-1"),this._createSlidersView(),this.element){this.hexInputRow.element?this.element.insertBefore(this.picker,this.hexInputRow.element):this.element.appendChild(this.picker);const e=document.createElement("style");e.textContent='[role="slider"]:focus [part$="pointer"] {border: 1px solid #fff;outline: 1px solid var(--ck-color-focus-border);box-shadow: 0 0 0 2px #fff;}',this.picker.shadowRoot.appendChild(e)}this.picker.addEventListener("color-changed",(e=>{const t=e.detail.value;this._debounceColorPickerEvent(t)}))}focus(){if(!this._config.hideInput&&(c.OB.isGecko||c.OB.isiOS||c.OB.isSafari)){this.hexInputRow.children.get(1).focus()}this.slidersView.first.focus()}_createSlidersView(){const e=[...this.picker.shadowRoot.children].filter((e=>"slider"===e.getAttribute("role"))).map((e=>new oo(e)));this.slidersView=this.createCollection(),e.forEach((e=>{this.slidersView.add(e)}))}_createInputRow(){const e=new so,t=this._createColorInput();return new io(this.locale,[e,t])}_createColorInput(){const e=new ge(this.locale,kt),{t}=this.locale;return e.set({label:t("HEX"),class:"color-picker-hex-input"}),e.fieldView.bind("value").to(this,"_hexColor",(t=>e.isFocused?e.fieldView.value:t.startsWith("#")?t.substring(1):t)),e.fieldView.on("input",(()=>{const t=e.fieldView.element.value;if(t){const e=t.trim(),o=e.startsWith("#")?e.substring(1):e;[3,4,6,8].includes(o.length)&&/(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})/.test(o)&&this._debounceColorPickerEvent("#"+o)}})),e}}function to(e){let t=function(e){if(!e)return"";const t=ce(e);return t?"hex"===t.space?t.hexValue:ae(e,"hex"):"#000"}(e);return t||(t="#000"),4===t.length&&(t="#"+[t[1],t[1],t[2],t[2],t[3],t[3]].join("")),t.toLowerCase()}class oo extends f{constructor(e){super(),this.element=e}focus(){this.element.focus()}}class so extends f{constructor(e){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__hash-view"]},children:"#"})}}class io extends f{constructor(e,t){super(e),this.children=this.createCollection(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__row"]},children:this.children})}}class ro extends((0,c.Re)(c.FE)){constructor(e){super(e),this.set("isEmpty",!0),this.on("change",(()=>{this.set("isEmpty",0===this.length)}))}add(e,t){return this.find((t=>t.color===e.color))?this:super.add(e,t)}hasColor(e){return!!this.find((t=>t.color===e))}}var no=o("./packages/ckeditor5-core/theme/icons/eraser.svg");const ao='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.209 18.717A8.5 8.5 0 1 1 18.686 9.6h-.008l.002.12a3 3 0 0 1-2.866 2.997h-.268l-.046-.002v.002h-4.791a2 2 0 1 0 0 4 1 1 0 1 1-.128 1.992 8.665 8.665 0 0 1-.372.008Zm-3.918-7.01a1.25 1.25 0 1 0-2.415-.648 1.25 1.25 0 0 0 2.415.647ZM5.723 8.18a1.25 1.25 0 1 0 .647-2.414 1.25 1.25 0 0 0-.647 2.414ZM9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Zm4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Z"/></svg>';class co extends f{constructor(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:r,colorPickerLabel:n,focusTracker:a,focusables:c}){super(e);const l=this.bindTemplate;this.set("isVisible",!0),this.focusTracker=a,this.items=this.createCollection(),this.colorDefinitions=t,this.columns=o,this.documentColors=new ro,this.documentColorsCount=r,this._focusables=c,this._removeButtonLabel=s,this._colorPickerLabel=n,this._documentColorsLabel=i,this.setTemplate({tag:"div",attributes:{class:["ck-color-grids-fragment",l.if("isVisible","ck-hidden",(e=>!e))]},children:this.items}),this.removeColorButtonView=this._createRemoveColorButton(),this.items.add(this.removeColorButtonView)}updateDocumentColors(e,t){const o=e.document,s=this.documentColorsCount;this.documentColors.clear();for(const i of o.getRoots()){const o=e.createRangeIn(i);for(const e of o.getItems())if(e.is("$textProxy")&&e.hasAttribute(t)&&(this._addColorToDocumentColors(e.getAttribute(t)),this.documentColors.length>=s))return}}updateSelectedColors(){const e=this.documentColorsGrid,t=this.staticColorsGrid,o=this.selectedColor;t.selectedColor=o,e&&(e.selectedColor=o)}render(){if(super.render(),this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount){const e=b.bind(this.documentColors,this.documentColors),t=new ue(this.locale);t.text=this._documentColorsLabel,t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]}}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}this._createColorPickerButton(),this._addColorSelectorElementsToFocusTracker(),this.focus()}focus(){this.removeColorButtonView.focus()}destroy(){super.destroy()}addColorPickerButton(){this.colorPickerButtonView&&(this.items.add(this.colorPickerButtonView),this.focusTracker.add(this.colorPickerButtonView.element),this._focusables.add(this.colorPickerButtonView))}_addColorSelectorElementsToFocusTracker(){this.focusTracker.add(this.removeColorButtonView.element),this._focusables.add(this.removeColorButtonView),this.staticColorsGrid&&(this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid)),this.documentColorsGrid&&(this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid))}_createColorPickerButton(){this.colorPickerButtonView=new H,this.colorPickerButtonView.set({label:this._colorPickerLabel,withText:!0,icon:ao,class:"ck-color-selector__color-picker"}),this.colorPickerButtonView.on("execute",(()=>{this.fire("colorPicker:show")}))}_createRemoveColorButton(){const e=new H;return e.set({withText:!0,icon:no.Z,label:this._removeButtonLabel}),e.class="ck-color-selector__remove-color",e.on("execute",(()=>{this.fire("execute",{value:null,source:"removeColorButton"})})),e.render(),e}_createStaticColorsGrid(){const e=new oe(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.on("execute",((e,t)=>{this.fire("execute",{value:t.value,source:"staticColorsGrid"})})),e}_createDocumentColorsGrid(){const e=b.bind(this.documentColors,this.documentColors),t=new oe(this.locale,{columns:this.columns});return t.extendTemplate({attributes:{class:e.if("isEmpty","ck-hidden")}}),t.items.bindTo(this.documentColors).using((e=>{const t=new Q;return t.set({color:e.color,hasBorder:e.options&&e.options.hasBorder}),e.label&&t.set({label:e.label,tooltip:!0}),t.on("execute",(()=>{this.fire("execute",{value:e.color,source:"documentColorsGrid"})})),t})),this.documentColors.on("change:isEmpty",((e,o,s)=>{s&&(t.selectedColor=null)})),t}_addColorToDocumentColors(e){const t=this.colorDefinitions.find((t=>t.color===e));t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}var lo=o("./packages/ckeditor5-core/theme/icons/check.svg"),ho=o("./packages/ckeditor5-core/theme/icons/cancel.svg"),uo=Object.defineProperty,po=Object.getOwnPropertySymbols,fo=Object.prototype.hasOwnProperty,go=Object.prototype.propertyIsEnumerable,mo=(e,t,o)=>t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class bo extends f{constructor(e,{focusTracker:t,focusables:o,keystrokes:s,colorPickerViewConfig:i}){super(e),this.items=this.createCollection(),this.focusTracker=t,this.keystrokes=s,this.set("isVisible",!1),this.set("selectedColor",void 0),this._focusables=o,this._colorPickerViewConfig=i;const r=this.bindTemplate,{saveButtonView:n,cancelButtonView:a}=this._createActionButtons();this.saveButtonView=n,this.cancelButtonView=a,this.actionBarView=this._createActionBarView({saveButtonView:n,cancelButtonView:a}),this.setTemplate({tag:"div",attributes:{class:["ck-color-picker-fragment",r.if("isVisible","ck-hidden",(e=>!e))]},children:this.items})}render(){super.render();const e=new eo(this.locale,((e,t)=>{for(var o in t||(t={}))fo.call(t,o)&&mo(e,o,t[o]);if(po)for(var o of po(t))go.call(t,o)&&mo(e,o,t[o]);return e})({},this._colorPickerViewConfig));this.colorPickerView=e,this.colorPickerView.render(),this.selectedColor&&(e.color=this.selectedColor),this.listenTo(this,"change:selectedColor",((t,o,s)=>{e.color=s})),this.items.add(this.colorPickerView),this.items.add(this.actionBarView),this._addColorPickersElementsToFocusTracker(),this._stopPropagationOnArrowsKeys(),this._executeOnEnterPress(),this._executeUponColorChange()}destroy(){super.destroy()}focus(){this.colorPickerView.focus()}_executeOnEnterPress(){this.keystrokes.set("enter",(e=>{this.isVisible&&this.focusTracker.focusedElement!==this.cancelButtonView.element&&(this.fire("execute",{value:this.selectedColor}),e.stopPropagation(),e.preventDefault())}))}_stopPropagationOnArrowsKeys(){const e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}_addColorPickersElementsToFocusTracker(){for(const e of this.colorPickerView.slidersView)this.focusTracker.add(e.element),this._focusables.add(e);const e=this.colorPickerView.hexInputRow.children.get(1);e.element&&(this.focusTracker.add(e.element),this._focusables.add(e)),this.focusTracker.add(this.saveButtonView.element),this._focusables.add(this.saveButtonView),this.focusTracker.add(this.cancelButtonView.element),this._focusables.add(this.cancelButtonView)}_createActionBarView({saveButtonView:e,cancelButtonView:t}){const o=new f,s=this.createCollection();return s.add(e),s.add(t),o.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector_action-bar"]},children:s}),o}_createActionButtons(){const e=this.locale,t=e.t,o=new H(e),s=new H(e);return o.set({icon:lo.Z,class:"ck-button-save",type:"button",withText:!1,label:t("Accept")}),s.set({icon:ho.Z,class:"ck-button-cancel",type:"button",withText:!1,label:t("Cancel")}),o.on("execute",(()=>{this.fire("execute",{source:"colorPickerSaveButton",value:this.selectedColor})})),s.on("execute",(()=>{this.fire("colorPicker:cancel")})),{saveButtonView:o,cancelButtonView:s}}_executeUponColorChange(){this.colorPickerView.on("colorSelected",((e,t)=>{this.fire("execute",{value:t.color,source:"colorPicker"}),this.set("selectedColor",t.color)}))}}var _o=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorselector/colorselector.css"),ko={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(_o.Z,ko);_o.Z.locals;class wo extends f{constructor(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:r,colorPickerLabel:n,colorPickerViewConfig:a}){super(e),this.items=this.createCollection(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this._focusables=new l,this._colorPickerViewConfig=a,this._focusCycler=new Me({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.colorGridsFragmentView=new co(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:r,colorPickerLabel:n,focusTracker:this.focusTracker,focusables:this._focusables}),this.colorPickerFragmentView=new bo(e,{focusables:this._focusables,focusTracker:this.focusTracker,keystrokes:this.keystrokes,colorPickerViewConfig:a}),this.set("_isColorGridsFragmentVisible",!0),this.set("_isColorPickerFragmentVisible",!1),this.set("selectedColor",void 0),this.colorGridsFragmentView.bind("isVisible").to(this,"_isColorGridsFragmentVisible"),this.colorPickerFragmentView.bind("isVisible").to(this,"_isColorPickerFragmentVisible"),this.on("change:selectedColor",((e,t,o)=>{this.colorGridsFragmentView.set("selectedColor",o),this.colorPickerFragmentView.set("selectedColor",o)})),this.colorGridsFragmentView.on("change:selectedColor",((e,t,o)=>{this.set("selectedColor",o)})),this.colorPickerFragmentView.on("change:selectedColor",((e,t,o)=>{this.set("selectedColor",o)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector"]},children:this.items})}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendUI(){this._appendColorGridsFragment(),this._colorPickerViewConfig&&this._appendColorPickerFragment()}showColorPickerFragment(){this.colorPickerFragmentView.colorPickerView&&!this._isColorPickerFragmentVisible&&(this._isColorPickerFragmentVisible=!0,this.colorPickerFragmentView.focus(),this._isColorGridsFragmentVisible=!1)}showColorGridsFragment(){this._isColorGridsFragmentVisible||(this._isColorGridsFragmentVisible=!0,this.colorGridsFragmentView.focus(),this._isColorPickerFragmentVisible=!1)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}updateDocumentColors(e,t){this.colorGridsFragmentView.updateDocumentColors(e,t)}updateSelectedColors(){this.colorGridsFragmentView.updateSelectedColors()}_appendColorGridsFragment(){this.items.length||(this.items.add(this.colorGridsFragmentView),this.colorGridsFragmentView.delegate("execute").to(this),this.colorGridsFragmentView.delegate("colorPicker:show").to(this))}_appendColorPickerFragment(){2!==this.items.length&&(this.items.add(this.colorPickerFragmentView),this.colorGridsFragmentView.colorPickerButtonView&&this.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{this.showColorPickerFragment()})),this.colorGridsFragmentView.addColorPickerButton(),this.colorPickerFragmentView.delegate("execute").to(this),this.colorPickerFragmentView.delegate("colorPicker:cancel").to(this))}}class vo{constructor(e){this._components=new Map,this.editor=e}*names(){for(const e of this._components.values())yield e.originalName}add(e,t){this._components.set(yo(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new c.Bb("componentfactory-item-missing",this,{name:e});return this._components.get(yo(e)).callback(this.editor.locale)}has(e){return this._components.has(yo(e))}}function yo(e){return String(e).toLowerCase()}var xo=o("./node_modules/lodash-es/isElement.js"),Po=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonpanel.css"),Co={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Po.Z,Co);Po.Z.locals;var To=Object.defineProperty,Eo=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,Oo=(e,t,o)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ro=(e,t)=>{for(var o in t||(t={}))Ao.call(t,o)&&Oo(e,o,t[o]);if(Eo)for(var o of Eo(t))So.call(t,o)&&Oo(e,o,t[o]);return e};const jo=(0,c.nn)("px"),Mo=c.global.document.body,Vo={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},Bo=class extends f{constructor(e){super(e);const t=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",t.to("position",(e=>`ck-balloon-panel_${e}`)),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",jo),left:t.to("left",jo)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){this.show();const t=Bo.defaultPositions,o=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:Mo,fitInViewport:!0},e),s=Bo._getOptimalPosition(o)||Vo,i=parseInt(s.left),r=parseInt(s.top),n=s.name,a=s.config||{},{withArrow:c=!0}=a;this.top=r,this.left=i,this.position=n,this.withArrow=c}pin(e){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this._startPinning(e),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(e){this.attachTo(e);const t=Do(e.target),o=e.limiter?Do(e.limiter):Mo;this.listenTo(c.global.document,"scroll",((s,i)=>{const r=i.target,n=t&&r.contains(t),a=o&&r.contains(o);!n&&!a&&t&&o||this.attachTo(e)}),{useCapture:!0}),this.listenTo(c.global.window,"resize",(()=>{this.attachTo(e)}))}_stopPinning(){this.stopListening(c.global.document,"scroll"),this.stopListening(c.global.window,"resize")}};let Io=Bo;function Do(e){return(0,xo.Z)(e)?e:(0,c.bR)(e)?e.commonAncestorContainer:"function"==typeof e?Do(e()):null}function No(e={}){const{sideOffset:t=Io.arrowSideOffset,heightOffset:o=Io.arrowHeightOffset,stickyVerticalOffset:s=Io.stickyVerticalOffset,config:i}=e;return{northWestArrowSouthWest:(e,o)=>Ro({top:r(e,o),left:e.left-t,name:"arrow_sw"},i&&{config:i}),northWestArrowSouthMiddleWest:(e,o)=>Ro({top:r(e,o),left:e.left-.25*o.width-t,name:"arrow_smw"},i&&{config:i}),northWestArrowSouth:(e,t)=>Ro({top:r(e,t),left:e.left-t.width/2,name:"arrow_s"},i&&{config:i}),northWestArrowSouthMiddleEast:(e,o)=>Ro({top:r(e,o),left:e.left-.75*o.width+t,name:"arrow_sme"},i&&{config:i}),northWestArrowSouthEast:(e,o)=>Ro({top:r(e,o),left:e.left-o.width+t,name:"arrow_se"},i&&{config:i}),northArrowSouthWest:(e,o)=>Ro({top:r(e,o),left:e.left+e.width/2-t,name:"arrow_sw"},i&&{config:i}),northArrowSouthMiddleWest:(e,o)=>Ro({top:r(e,o),left:e.left+e.width/2-.25*o.width-t,name:"arrow_smw"},i&&{config:i}),northArrowSouth:(e,t)=>Ro({top:r(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"},i&&{config:i}),northArrowSouthMiddleEast:(e,o)=>Ro({top:r(e,o),left:e.left+e.width/2-.75*o.width+t,name:"arrow_sme"},i&&{config:i}),northArrowSouthEast:(e,o)=>Ro({top:r(e,o),left:e.left+e.width/2-o.width+t,name:"arrow_se"},i&&{config:i}),northEastArrowSouthWest:(e,o)=>Ro({top:r(e,o),left:e.right-t,name:"arrow_sw"},i&&{config:i}),northEastArrowSouthMiddleWest:(e,o)=>Ro({top:r(e,o),left:e.right-.25*o.width-t,name:"arrow_smw"},i&&{config:i}),northEastArrowSouth:(e,t)=>Ro({top:r(e,t),left:e.right-t.width/2,name:"arrow_s"},i&&{config:i}),northEastArrowSouthMiddleEast:(e,o)=>Ro({top:r(e,o),left:e.right-.75*o.width+t,name:"arrow_sme"},i&&{config:i}),northEastArrowSouthEast:(e,o)=>Ro({top:r(e,o),left:e.right-o.width+t,name:"arrow_se"},i&&{config:i}),southWestArrowNorthWest:e=>Ro({top:n(e),left:e.left-t,name:"arrow_nw"},i&&{config:i}),southWestArrowNorthMiddleWest:(e,o)=>Ro({top:n(e),left:e.left-.25*o.width-t,name:"arrow_nmw"},i&&{config:i}),southWestArrowNorth:(e,t)=>Ro({top:n(e),left:e.left-t.width/2,name:"arrow_n"},i&&{config:i}),southWestArrowNorthMiddleEast:(e,o)=>Ro({top:n(e),left:e.left-.75*o.width+t,name:"arrow_nme"},i&&{config:i}),southWestArrowNorthEast:(e,o)=>Ro({top:n(e),left:e.left-o.width+t,name:"arrow_ne"},i&&{config:i}),southArrowNorthWest:e=>Ro({top:n(e),left:e.left+e.width/2-t,name:"arrow_nw"},i&&{config:i}),southArrowNorthMiddleWest:(e,o)=>Ro({top:n(e),left:e.left+e.width/2-.25*o.width-t,name:"arrow_nmw"},i&&{config:i}),southArrowNorth:(e,t)=>Ro({top:n(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"},i&&{config:i}),southArrowNorthMiddleEast:(e,o)=>Ro({top:n(e),left:e.left+e.width/2-.75*o.width+t,name:"arrow_nme"},i&&{config:i}),southArrowNorthEast:(e,o)=>Ro({top:n(e),left:e.left+e.width/2-o.width+t,name:"arrow_ne"},i&&{config:i}),southEastArrowNorthWest:e=>Ro({top:n(e),left:e.right-t,name:"arrow_nw"},i&&{config:i}),southEastArrowNorthMiddleWest:(e,o)=>Ro({top:n(e),left:e.right-.25*o.width-t,name:"arrow_nmw"},i&&{config:i}),southEastArrowNorth:(e,t)=>Ro({top:n(e),left:e.right-t.width/2,name:"arrow_n"},i&&{config:i}),southEastArrowNorthMiddleEast:(e,o)=>Ro({top:n(e),left:e.right-.75*o.width+t,name:"arrow_nme"},i&&{config:i}),southEastArrowNorthEast:(e,o)=>Ro({top:n(e),left:e.right-o.width+t,name:"arrow_ne"},i&&{config:i}),westArrowEast:(e,t)=>Ro({top:e.top+e.height/2-t.height/2,left:e.left-t.width-o,name:"arrow_e"},i&&{config:i}),eastArrowWest:(e,t)=>Ro({top:e.top+e.height/2-t.height/2,left:e.right+o,name:"arrow_w"},i&&{config:i}),viewportStickyNorth:(e,t,o,r)=>{const n=r||o;return e.getIntersection(n)?n.height-e.height>s?null:{top:n.top+s,left:e.left+e.width/2-t.width/2,name:"arrowless",config:Ro({withArrow:!1},i)}:null}};function r(e,t){return e.top-t.height-o}function n(e){return e.bottom+o}}Io.arrowSideOffset=25,Io.arrowHeightOffset=10,Io.stickyVerticalOffset=20,Io._getOptimalPosition=c.xZ,Io.defaultPositions=No();var zo=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/tooltip/tooltip.css"),Fo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(zo.Z,Fo);zo.Z.locals;const Lo="ck-tooltip",Zo=class extends((0,c.Xu)()){constructor(e){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,Zo._editors.add(e),Zo._instance)return Zo._instance;Zo._instance=this,this.tooltipTextView=new f(e.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 Io(e.locale),this.balloonPanelView.class=Lo,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=(0,le.Z)(this._pinTooltip,600),this.listenTo(c.global.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(c.global.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(c.global.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(c.global.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(c.global.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(e){const t=e.ui.view&&e.ui.view.body;Zo._editors.delete(e),this.stopListening(e.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),Zo._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Zo._instance=null)}static getPositioningFunctions(e){const t=Zo.defaultBalloonPositions;return{s:[t.southArrowNorth,t.southArrowNorthEast,t.southArrowNorthWest],n:[t.northArrowSouth],e:[t.eastArrowWest],w:[t.westArrowEast],sw:[t.southArrowNorthEast],se:[t.southArrowNorthWest]}[e]}_onEnterOrFocus(e,{target:t}){const o=$o(t);var s;o&&(o!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(o,{text:(s=o).dataset.ckeTooltipText,position:s.dataset.ckeTooltipPosition||"s",cssClass:s.dataset.ckeTooltipClass||""})))}_onLeaveOrBlur(e,{target:t,relatedTarget:o}){if("mouseleave"===e.name){if(!(0,xo.Z)(t))return;if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;const e=$o(t),s=$o(o);e&&e!==s&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(e,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(e,{text:t,position:o,cssClass:s}){const i=(0,c.Ps)(Zo._editors.values()).ui.view.body;i.has(this.balloonPanelView)||i.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.pin({target:e,positions:Zo.getPositioningFunctions(o)}),this._resizeObserver=new c.do(e,(()=>{(0,c.pn)(e)||this._unpinTooltip()})),this.balloonPanelView.class=[Lo,s].filter((e=>e)).join(" ");for(const e of Zo._editors)this.listenTo(e.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=e,this._currentTooltipPosition=o}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const e of Zo._editors)this.stopListening(e.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){(0,c.pn)(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Zo.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let Wo=Zo;function $o(e){return(0,xo.Z)(e)?e.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}Wo.defaultBalloonPositions=No({heightOffset:5,sideOffset:13}),Wo._editors=new Set,Wo._instance=null;var qo=o("./node_modules/lodash-es/throttle.js");var Ho=Object.defineProperty,Uo=Object.getOwnPropertySymbols,Go=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,Jo=(e,t,o)=>t in e?Ho(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Yo=(e,t)=>{for(var o in t||(t={}))Go.call(t,o)&&Jo(e,o,t[o]);if(Uo)for(var o of Uo(t))Ko.call(t,o)&&Jo(e,o,t[o]);return e};const Xo=50,Qo=350,es="Powered by";class ts extends((0,c.Xu)()){constructor(e){super(),this.editor=e,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=(0,qo.Z)(this._showBalloon.bind(this),50,{leading:!0}),e.on("ready",this._handleEditorReady.bind(this))}destroy(){const e=this._balloonView;e&&(e.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const e=this.editor;(!!e.config.get("ui.poweredBy.forceVisible")||"VALID"!==(0,c.Tx)(e.config.get("licenseKey")))&&e.ui.view&&(e.ui.focusTracker.on("change:isFocused",((e,t,o)=>{this._updateLastFocusedEditableElement(),o?this._showBalloon():this._hideBalloon()})),e.ui.focusTracker.on("change:focusedElement",((e,t,o)=>{this._updateLastFocusedEditableElement(),o&&this._showBalloon()})),e.ui.on("update",(()=>{this._showBalloonThrottled()})))}_createBalloonView(){const e=this.editor,t=this._balloonView=new Io,o=is(e),s=new os(e.locale,o.label);t.content.add(s),t.set({class:"ck-powered-by-balloon"}),e.ui.view.body.add(t),e.ui.focusTracker.add(t.element),this._balloonView=t}_showBalloon(){if(!this._lastFocusedEditableElement)return;const e=function(e,t){const o=is(e),s="right"===o.side?function(e,t){return ss(e,t,((e,o)=>e.left+e.width-o.width-t.horizontalOffset))}(t,o):function(e,t){return ss(e,t,(e=>e.left+t.horizontalOffset))}(t,o);return{target:t,positions:[s]}}(this.editor,this._lastFocusedEditableElement);e&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(e))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const e=this.editor,t=e.ui.focusTracker.isFocused,o=e.ui.focusTracker.focusedElement;if(!t||!o)return void(this._lastFocusedEditableElement=null);const s=Array.from(e.ui.getEditableElementsNames()).map((t=>e.ui.getEditableElement(t)));s.includes(o)?this._lastFocusedEditableElement=o:this._lastFocusedEditableElement=s[0]}}class os extends f{constructor(e,t){super(e);const o=new Z,s=this.bindTemplate;o.set({content:'<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>\n',isColorInherited:!1}),o.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),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:[...t?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[t]}]:[],o],on:{dragstart:s.to((e=>e.preventDefault()))}}]})}}function ss(e,t,o){return(s,i)=>{const r=new c.UL(e);if(r.width<Qo||r.height<Xo)return null;let n;n="inside"===t.position?r.bottom-i.height:r.bottom-i.height/2,n-=t.verticalOffset;const a=o(r,i),l=s.clone().moveTo(a,n).getIntersection(i.clone().moveTo(a,n)).getVisible();return!l||l.getArea()<i.getArea()?null:{top:n,left:a,name:`position_${t.position}-side_${t.side}`,config:{withArrow:!1}}}}function is(e){const t=e.config.get("ui.poweredBy"),o=t&&t.position||"border";return Yo({position:o,label:es,verticalOffset:"inside"===o?5:0,horizontalOffset:5,side:"ltr"===e.locale.contentLanguageDirection?"right":"left"},t)}var rs=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"),ns={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(rs.Z,ns);rs.Z.locals;class as{constructor(e){this.editor=e}announce(e,t,o="polite"){const s=this.editor;this.view||(this.view=new cs(s.locale),s.ui.view.body.add(this.view));let i=this.view.regionViews.find((t=>t.regionName===e));i||(i=new ls(this.view.locale),this.view.regionViews.add(i)),i.set({regionName:e,text:t,politeness:o})}}class cs extends f{constructor(e){super(e),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class ls extends f{constructor(e){super(e);const t=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness","polite"),this.setTemplate({tag:"div",attributes:{role:"region","data-region":t.to("regionName"),"aria-live":t.to("politeness")},children:[{text:t.to("text")}]})}}var ds=Object.defineProperty,hs=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable,fs=(e,t,o)=>t in e?ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class gs extends((0,c.Re)()){constructor(e){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const t=e.editing.view;this.editor=e,this.componentFactory=new vo(e),this.focusTracker=new c.Rh,this.tooltipManager=new Wo(e),this.poweredBy=new ts(e),this.ariaLiveAnnouncer=new as(e),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",(()=>{this.isReady=!0})),this.listenTo(t.document,"layoutChanged",this.update.bind(this)),this.listenTo(t,"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 e of this._editableElementsMap.values())e.ckeditorInstance=null,this.editor.keystrokes.stopListening(e);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor),this.focusTracker.add(t);const o=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?o():this.once("ready",o)}removeEditableElement(e){const t=this._editableElementsMap.get(e);t&&(this._editableElementsMap.delete(e),this.editor.keystrokes.stopListening(t),this.focusTracker.remove(t),t.ckeditorInstance=null)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(e,t={}){e.isRendered?(this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)):e.once("render",(()=>{this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)})),this._focusableToolbarDefinitions.push({toolbarView:e,options:t})}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 e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;const o=e.config.get("toolbar.viewportTopOffset");return o?(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:o}):{top:0}}_initFocusTracking(){const e=this.editor,t=e.editing.view;let o,s;e.keystrokes.set("Alt+F10",((e,i)=>{const r=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(r)&&!Array.from(t.domRoots.values()).includes(r)&&(o=r);const n=this._getCurrentFocusedToolbarDefinition();n&&s||(s=this._getFocusableCandidateToolbarDefinitions());for(let e=0;e<s.length;e++){const e=s.shift();if(s.push(e),e!==n&&this._focusFocusableCandidateToolbar(e)){n&&n.options.afterBlur&&n.options.afterBlur();break}}i()})),e.keystrokes.set("Esc",((t,s)=>{const i=this._getCurrentFocusedToolbarDefinition();i&&(o?(o.focus(),o=null):e.editing.view.focus(),i.options.afterBlur&&i.options.afterBlur(),s())}))}_getFocusableCandidateToolbarDefinitions(){const e=[];for(const t of this._focusableToolbarDefinitions){const{toolbarView:o,options:s}=t;((0,c.pn)(o.element)||s.beforeFocus)&&e.push(t)}return e.sort(((e,t)=>ms(e)-ms(t))),e}_getCurrentFocusedToolbarDefinition(){for(const e of this._focusableToolbarDefinitions)if(e.toolbarView.element&&e.toolbarView.element.contains(this.focusTracker.focusedElement))return e;return null}_focusFocusableCandidateToolbar(e){const{toolbarView:t,options:{beforeFocus:o}}=e;return o&&o(),!!(0,c.pn)(t.element)&&(t.focus(),!0)}_handleScrollToTheSelection(e,t){const o=((e,t)=>{for(var o in t||(t={}))us.call(t,o)&&fs(e,o,t[o]);if(hs)for(var o of hs(t))ps.call(t,o)&&fs(e,o,t[o]);return e})({top:0,bottom:0,left:0,right:0},this.viewportOffset);t.viewportOffset.top+=o.top,t.viewportOffset.bottom+=o.bottom,t.viewportOffset.left+=o.left,t.viewportOffset.right+=o.right}}function ms(e){const{toolbarView:t,options:o}=e;let s=10;return(0,c.pn)(t.element)&&s--,o.isContextual&&s--,s}var bs=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/editorui/editorui.css"),_s={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(bs.Z,_s);bs.Z.locals;class ks extends f{constructor(e){super(e),this.body=new N(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class ws extends ks{constructor(e){super(e),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:e.uiLanguageDirection,lang:e.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 e=this.t,t=new ue;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class vs extends f{constructor(e,t,o){super(e),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=o,this._hasExternalElement=!!this._editableElement,this._editingView=t}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 e=this._editingView;function t(t){e.change((o=>{const s=e.document.getRoot(t.name);o.addClass(t.isFocused?"ck-focused":"ck-blurred",s),o.removeClass(t.isFocused?"ck-blurred":"ck-focused",s)}))}e.isRenderingInProgress?function o(s){e.once("change:isRenderingInProgress",((e,i,r)=>{r?o(s):t(s)}))}(this):t(this)}}class ys extends vs{constructor(e,t,o,s={}){super(e,t,o);const i=e.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=s.label||(()=>i("Editor editing area: %0",this.name))}render(){super.render();const e=this._editingView;e.change((t=>{const o=e.document.getRoot(this.name);t.setAttribute("aria-label",this._generateLabel(this),o)}))}}var xs=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/formheader/formheader.css"),Ps={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(xs.Z,Ps);xs.Z.locals;class Cs extends f{constructor(e,t={}){super(e);const o=this.bindTemplate;this.set("label",t.label||""),this.set("class",t.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",o.to("class")]},children:this.children}),t.icon&&(this.iconView=new Z,this.iconView.content=t.icon,this.children.add(this.iconView));const s=new f(e);s.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"]},children:[{text:o.to("label")}]}),this.children.add(s)}}class Ts extends f{constructor(e){super(e);const t=this.bindTemplate;this.setTemplate({tag:"iframe",attributes:{class:["ck","ck-reset_all"],sandbox:"allow-same-origin allow-scripts"},on:{load:t.to("loaded")}})}render(){return new Promise((e=>(this.on("loaded",e),super.render())))}}class Es extends $e.eO{static get pluginName(){return"Notification"}init(){this.on("show:warning",((e,t)=>{window.alert(t.message)}),{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){const t=e.namespace?`show:${e.type}:${e.namespace}`:`show:${e.type}`;this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}var As=o("./node_modules/lodash-es/assignIn.js");class Ss extends((0,c.Re)()){constructor(e,t){super(),t&&(0,As.Z)(this,t),e&&this.set(e)}}var Os=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonrotator.css"),Rs={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Os.Z,Rs);Os.Z.locals;var js=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/fakepanel.css"),Ms={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(js.Z,Ms);js.Z.locals;const Vs=(0,c.nn)("px");class Bs extends $e.Sy{constructor(e){super(e),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,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}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(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this._view||this._createPanelView(),this.hasView(e.view))throw new c.Bb("contextualballoon-add-view-exist",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const o=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),o.set(e.view,e),this._viewToStack.set(e.view,o),o===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new c.Bb("contextualballoon-remove-view-not-exist",[this,e]);const t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new c.Bb("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}_createPanelView(){this._view=new Io(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(e){return Array.from(this._idToStack.entries()).find((t=>t[1]===e))[0]}_showNextStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){const e=new Is(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((e,t)=>!t&&e>1)),e.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((e,o)=>{if(o<2)return"";const s=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[s,o])})),e.buttonNextView.on("execute",(()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),e.buttonPrevView.on("execute",(()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),e}_createFakePanelsView(){const e=new Ds(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((e,t)=>!t&&e>=2?Math.min(e-1,2):0)),e.listenTo(this.view,"change:top",(()=>e.updatePosition())),e.listenTo(this.view,"change:left",(()=>e.updatePosition())),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:o=!0,singleViewMode:s=!1}){this.view.class=t,this.view.withArrow=o,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}}class Is extends f{constructor(e){super(e);const t=e.t,o=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new c.Rh,this.buttonPrevView=this._createButtonView(t("Previous"),'<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>'),this.buttonNextView=this._createButtonView(t("Next"),'<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>'),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",o.to("isNavigationVisible",(e=>e?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.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(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const o=new H(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o}}class Ds extends f{constructor(e,t){super(e);const o=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=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(e=>e?"":"ck-hidden"))],style:{top:o.to("top",Vs),left:o.to("left",Vs),width:o.to("width",Vs),height:o.to("height",Vs)}},children:this.content}),this.on("change:numberOfPanels",((e,t,o,s)=>{o>s?this._addPanels(o-s):this._removePanels(s-o),this.updatePosition()}))}_addPanels(e){for(;e--;){const e=new f;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:o,height:s}=new c.UL(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:o,height:s})}}}var Ns=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/stickypanel.css"),zs={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Ns.Z,zs);Ns.Z.locals;const Fs=(0,c.nn)("px");class Ls extends f{constructor(e){super(e);const t=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 b({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",(e=>e?"block":"none")),height:t.to("isSticky",(e=>e?Fs(this._contentPanelRect.height):null))}}}).render(),this._contentPanel=new b({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",(e=>e?Fs(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:t.to("_stickyTopOffset",(e=>e?Fs(e):e)),bottom:t.to("_stickyBottomOffset",(e=>e?Fs(e):e)),marginLeft:t.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(c.global.document,"scroll",(()=>{this.checkIfShouldBeSticky()}),{useCapture:!0}),this.listenTo(this,"change:isActive",(()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const e=new c.UL(this.limiterElement);let t=e.getVisible();if(t){const e=new c.UL(c.global.window);e.top+=this.viewportTopOffset,e.height-=this.viewportTopOffset,t=t.getIntersection(e)}if(t&&e.top<t.top){const o=t.top;if(o+this._contentPanelRect.height+this.limiterBottomOffset>t.bottom){const o=Math.max(e.bottom-t.bottom,0)+this.limiterBottomOffset;e.bottom-o>e.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(o):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<e.height?this._stickToTopOfAncestors(o):this._unstick()}else this._unstick()}_stickToTopOfAncestors(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=e,this._stickyBottomOffset=null,this._marginLeft=Fs(-c.global.window.scrollX)}_stickToBottomOfLimiter(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=e,this._marginLeft=Fs(-c.global.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new c.UL(this._contentPanel)}}class Zs extends ge{constructor(e,t){const o=e.t,s=Object.assign({},{showResetButton:!0,showIcon:!0,creator:kt},t);super(e,s.creator),this.label=t.label,this._viewConfig=s,this._viewConfig.showIcon&&(this.iconView=new Z,this.iconView.content=$e.icons.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new H(e),this.resetButtonView.set({label:o("Clear"),icon:$e.icons.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",(e=>!e)),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 Ws extends f{constructor(){super();const e=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",e.if("isVisible","ck-hidden",(e=>!e))],tabindex:-1},children:[{tag:"span",children:[{text:[e.to("primaryText")]}]},{tag:"span",children:[{text:[e.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class $s extends f{constructor(e){super(e),this.children=this.createCollection(),this.focusTracker=new c.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new Me({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const e of this.children)this.focusTracker.add(e.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var qs=o("./node_modules/lodash-es/escapeRegExp.js"),Hs=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/search/search.css"),Us={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Hs.Z,Us);Hs.Z.locals;var Gs=Object.defineProperty,Ks=Object.getOwnPropertySymbols,Js=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,Xs=(e,t,o)=>t in e?Gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class Qs extends f{constructor(e,t){super(e),this._config=t,this.filteredView=t.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this.resultsView=new $s(e),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),t.infoView&&t.infoView.instance?this.infoView=t.infoView.instance:(this.infoView=new Ws,this._enableDefaultInfoViewBehavior(),this.on("render",(()=>{this.search("")}))),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new Me({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",((e,{resultsCount:t,totalItemsCount:o})=>{this.resultsCount=t,this.totalItemsCount=o})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",t.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const e=e=>e.stopPropagation();for(const e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(e){const t=e?new RegExp((0,qs.Z)(e),"ig"):null,o=this.filteredView.filter(t);this.fire("search",((e,t)=>{for(var o in t||(t={}))Js.call(t,o)&&Xs(e,o,t[o]);if(Ks)for(var o of Ks(t))Ys.call(t,o)&&Xs(e,o,t[o]);return e})({query:e},o))}_createSearchTextQueryView(){const e=new Zs(this.locale,this._config.queryView);return this.listenTo(e.fieldView,"input",(()=>{this.search(e.fieldView.element.value)})),e.on("reset",(()=>this.reset())),e.bind("isEnabled").to(this),e}_enableDefaultInfoViewBehavior(){const e=this.locale.t,t=this.infoView;function o(e,{query:t,resultsCount:o,totalItemsCount:s}){return"function"==typeof e?e(t,o,s):e}this.on("search",((s,i)=>{if(i.resultsCount)t.set({isVisible:!1});else{const s=this._config.infoView&&this._config.infoView.text;let r,n;i.totalItemsCount?s&&s.notFound?(r=s.notFound.primary,n=s.notFound.secondary):(r=e("No results found"),n=""):s&&s.noSearchableItems?(r=s.noSearchableItems.primary,n=s.noSearchableItems.secondary):(r=e("No searchable items"),n=""),t.set({primaryText:o(r,i),secondaryText:o(n,i),isVisible:!0})}}))}}var ei=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/autocomplete/autocomplete.css"),ti={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ei.Z,ti);ei.Z.locals;const oi=class extends Qs{constructor(e,t){super(e,t),this._config=t;const o=(0,c.nn)("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const s=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[s.if("isVisible","ck-hidden",(e=>!e)),s.to("_position",(e=>`ck-search__results_${e}`))],style:{width:s.to("_width",o)}}}),this.focusTracker.on("change:isFocused",((e,o,s)=>{this._updateResultsVisibility(),s?this.resultsView.element.scrollTop=0:t.resetOnBlur&&this.queryView.reset()})),this.on("search",(()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()})),this.keystrokes.set("esc",((e,t)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,t())})),this.listenTo(c.global.document,"scroll",(()=>{this._updateResultsViewWidthAndPosition()})),this.on("change:isEnabled",(()=>{this._updateResultsVisibility()})),this.filteredView.on("execute",((e,{value:t})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=t,this.resultsView.isVisible=!1})),this.resultsView.on("change:isVisible",(()=>{this._updateResultsViewWidthAndPosition()}))}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new c.UL(this.queryView.fieldView.element).width;const e=oi._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:oi.defaultResultsPositions});this.resultsView._position=e?e.name:"s"}_updateResultsVisibility(){const e=void 0===this._config.queryMinChars?0:this._config.queryMinChars,t=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&t>=e}};let si=oi;si.defaultResultsPositions=[e=>({top:e.bottom,left:e.left,name:"s"}),(e,t)=>({top:e.top-t.height,left:e.left,name:"n"})],si._getOptimalPosition=c.xZ;var ii=o("./packages/ckeditor5-ui/src/search/filteredview.ts"),ri=o.n(ii);const ni=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});var ai=o("./node_modules/lodash-es/toString.js"),ci=/[&<>"']/g,li=RegExp(ci.source);const di=function(e){return(e=(0,ai.Z)(e))&&li.test(e)?e.replace(ci,ni):e};var hi=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"),ui={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(hi.Z,ui);hi.Z.locals;class pi extends f{constructor(){super(),this.set("text",void 0),this.setTemplate({tag:"span",attributes:{class:["ck","ck-highlighted-text"]}}),this.on("render",(()=>{this.on("change:text",(()=>{this._updateInnerHTML(this.text)})),this._updateInnerHTML(this.text)}))}highlightText(e){this._updateInnerHTML(function(e,t){if(!t)return di(e);const o=[];let s=0,i=t.exec(e);for(;null!==i;){const r=i.index;r!==s&&o.push({text:e.substring(s,r),isMatch:!1}),o.push({text:i[0],isMatch:!0}),s=t.lastIndex,i=t.exec(e)}s!==e.length&&o.push({text:e.substring(s),isMatch:!1});return o.map((e=>(e.text=di(e.text),e))).map((e=>e.isMatch?`<mark>${e.text}</mark>`:e.text)).join("")}(this.text||"",e))}_updateInnerHTML(e){this.element.innerHTML=e||""}}var fi=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/spinner/spinner.css"),gi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(fi.Z,gi);fi.Z.locals;class mi extends f{constructor(){super(),this.set("isVisible",!1);const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-spinner-container",e.if("isVisible","ck-hidden",(e=>!e))]},children:[{tag:"span",attributes:{class:["ck","ck-spinner"]}}]})}}const bi=(0,c.nn)("px");class _i extends $e.Sy{constructor(e){super(e),this._resizeObserver=null,this._balloonConfig=We(e.config.get("balloonToolbar")),this.toolbarView=this._createToolbarView(),this.focusTracker=new c.Rh,e.ui.once("ready",(()=>{this.focusTracker.add(e.ui.getEditableElement()),this.focusTracker.add(this.toolbarView.element)})),e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this.show(!0),afterBlur:()=>this.hide(),isContextual:!0}),this._balloon=e.plugins.get(Bs),this._fireSelectionChangeDebounced=(0,le.Z)((()=>this.fire("_selectionChangeDebounced")),200),this.decorate("show")}static get pluginName(){return"BalloonToolbar"}static get requires(){return[Bs]}init(){const e=this.editor,t=e.model.document.selection;this.listenTo(this.focusTracker,"change:isFocused",((e,t,o)=>{const s=this._balloon.visibleView===this.toolbarView;!o&&s?this.hide():o&&this.show()})),this.listenTo(t,"change:range",((e,o)=>{(o.directChange||t.isCollapsed)&&this.hide(),this._fireSelectionChangeDebounced()})),this.listenTo(this,"_selectionChangeDebounced",(()=>{this.editor.editing.view.document.isFocused&&this.show()})),this._balloonConfig.shouldNotGroupWhenFull||this.listenTo(e,"ready",(()=>{const t=e.ui.view.editable.element;this._resizeObserver=new c.do(t,(e=>{this.toolbarView.maxWidth=bi(.9*e.contentRect.width)}))})),this.listenTo(this.toolbarView,"groupedItemsUpdate",(()=>{this._updatePosition()}))}afterInit(){const e=this.editor.ui.componentFactory;this.toolbarView.fillFromConfig(this._balloonConfig,e)}_createToolbarView(){const e=this.editor.locale.t,t=!this._balloonConfig.shouldNotGroupWhenFull,o=new Ke(this.editor.locale,{shouldGroupWhenFull:t,isFloating:!0});return o.ariaLabel=e("Editor contextual toolbar"),o.render(),o}show(e=!1){const t=this.editor,o=t.model.document.selection,s=t.model.schema;this._balloon.hasView(this.toolbarView)||o.isCollapsed&&!e||function(e,t){if(1===e.rangeCount)return!1;return[...e.getRanges()].every((e=>{const o=e.getContainedElement();return o&&t.isSelectable(o)}))}(o,s)||Array.from(this.toolbarView.items).every((e=>void 0!==e.isEnabled&&!e.isEnabled))||(this.listenTo(this.editor.ui,"update",(()=>{this._updatePosition()})),this._balloon.add({view:this.toolbarView,position:this._getBalloonPositionData(),balloonClassName:"ck-toolbar-container"}))}hide(){this._balloon.hasView(this.toolbarView)&&(this.stopListening(this.editor.ui,"update"),this._balloon.remove(this.toolbarView))}_getBalloonPositionData(){const e=this.editor.editing.view,t=e.document,o=t.selection,s=t.selection.isBackward;return{target:()=>{const t=s?o.getFirstRange():o.getLastRange(),i=c.UL.getDomRangeRects(e.domConverter.viewRangeToDom(t));return s?i[0]:(i.length>1&&0===i[i.length-1].width&&i.pop(),i[i.length-1])},positions:this._getBalloonPositions(s)}}_updatePosition(){this._balloon.updatePosition(this._getBalloonPositionData())}destroy(){super.destroy(),this.stopListening(),this._fireSelectionChangeDebounced.cancel(),this.toolbarView.destroy(),this.focusTracker.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_getBalloonPositions(e){const t=c.OB.isSafari&&c.OB.isiOS?No({heightOffset:Math.max(Io.arrowHeightOffset,Math.round(20/c.global.window.visualViewport.scale))}):Io.defaultPositions;return e?[t.northWestArrowSouth,t.northWestArrowSouthWest,t.northWestArrowSouthEast,t.northWestArrowSouthMiddleEast,t.northWestArrowSouthMiddleWest,t.southWestArrowNorth,t.southWestArrowNorthWest,t.southWestArrowNorthEast,t.southWestArrowNorthMiddleWest,t.southWestArrowNorthMiddleEast]:[t.southEastArrowNorth,t.southEastArrowNorthEast,t.southEastArrowNorthWest,t.southEastArrowNorthMiddleEast,t.southEastArrowNorthMiddleWest,t.northEastArrowSouth,t.northEastArrowSouthEast,t.northEastArrowSouthWest,t.northEastArrowSouthMiddleEast,t.northEastArrowSouthMiddleWest]}}var ki=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css"),wi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ki.Z,wi);ki.Z.locals;const vi=(0,c.nn)("px");class yi extends H{constructor(e){super(e);const t=this.bindTemplate;this.isVisible=!1,this.isToggleable=!0,this.set("top",0),this.set("left",0),this.extendTemplate({attributes:{class:"ck-block-toolbar-button",style:{top:t.to("top",(e=>vi(e))),left:t.to("left",(e=>vi(e)))}}})}}const xi=(0,c.nn)("px");class Pi extends $e.Sy{constructor(e){super(e),this._resizeObserver=null,this._blockToolbarConfig=We(this.editor.config.get("blockToolbar")),this.toolbarView=this._createToolbarView(),this.panelView=this._createPanelView(),this.buttonView=this._createButtonView(),s({emitter:this.panelView,contextElements:[this.panelView.element,this.buttonView.element],activator:()=>this.panelView.isVisible,callback:()=>this._hidePanel()})}static get pluginName(){return"BlockToolbar"}init(){const e=this.editor,t=e.t,o=t("Click to edit block"),s=t("Drag to move"),i=t("Edit block"),r=e.plugins.has("DragDropBlockToolbar"),n=r?`${o}\n${s}`:i;this.buttonView.label=n,r&&(this.buttonView.element.dataset.ckeTooltipClass="ck-tooltip_multi-line"),this.listenTo(e.model.document.selection,"change:range",((e,t)=>{t.directChange&&this._hidePanel()})),this.listenTo(e.ui,"update",(()=>this._updateButton())),this.listenTo(e,"change:isReadOnly",(()=>this._updateButton()),{priority:"low"}),this.listenTo(e.ui.focusTracker,"change:isFocused",(()=>this._updateButton())),this.listenTo(this.buttonView,"change:isVisible",((e,t,o)=>{o?this.buttonView.listenTo(window,"resize",(()=>this._updateButton())):(this.buttonView.stopListening(window,"resize"),this._hidePanel())})),e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this._showPanel(),afterBlur:()=>this._hidePanel()})}afterInit(){this.toolbarView.fillFromConfig(this._blockToolbarConfig,this.editor.ui.componentFactory);for(const e of this.toolbarView.items)e.on("execute",(()=>this._hidePanel(!0)),{priority:"high"})}destroy(){super.destroy(),this.panelView.destroy(),this.buttonView.destroy(),this.toolbarView.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_createToolbarView(){const e=this.editor.locale.t,t=!this._blockToolbarConfig.shouldNotGroupWhenFull,o=new Ke(this.editor.locale,{shouldGroupWhenFull:t,isFloating:!0});return o.ariaLabel=e("Editor block content toolbar"),o}_createPanelView(){const e=this.editor,t=new Io(e.locale);return t.content.add(this.toolbarView),t.class="ck-toolbar-container",e.ui.view.body.add(t),e.ui.focusTracker.add(t.element),this.toolbarView.keystrokes.set("Esc",((e,t)=>{this._hidePanel(!0),t()})),t}_createButtonView(){const e=this.editor,t=e.t,o=new yi(e.locale),s=this._blockToolbarConfig.icon,i=Ge[s]||s||Ge.dragIndicator;return o.set({label:t("Edit block"),icon:i,withText:!1}),o.bind("isOn").to(this.panelView,"isVisible"),o.bind("tooltip").to(this.panelView,"isVisible",(e=>!e)),this.listenTo(o,"execute",(()=>{this.panelView.isVisible?this._hidePanel(!0):this._showPanel()})),e.ui.view.body.add(o),e.ui.focusTracker.add(o.element),o}_updateButton(){const e=this.editor,t=e.model,o=e.editing.view;if(!e.ui.focusTracker.isFocused)return void this._hideButton();if(!e.model.canEditAt(e.model.document.selection))return void this._hideButton();const s=Array.from(t.document.selection.getSelectedBlocks())[0];if(!s||Array.from(this.toolbarView.items).every((e=>!e.isEnabled)))return void this._hideButton();const i=o.domConverter.mapViewToDom(e.editing.mapper.toViewElement(s));this.buttonView.isVisible=!0,this._setupToolbarResize(),this._attachButtonToElement(i),this.panelView.isVisible&&this._showPanel()}_hideButton(){this.buttonView.isVisible=!1}_showPanel(){if(!this.buttonView.isVisible)return;const e=this.panelView.isVisible;this.panelView.show();const t=this._getSelectedEditableElement();this.toolbarView.maxWidth=this._getToolbarMaxWidth(t),this.panelView.pin({target:this.buttonView.element,limiter:t}),e||this.toolbarView.items.get(0).focus()}_getSelectedEditableElement(){const e=this.editor.model.document.selection.getFirstRange().root.rootName;return this.editor.ui.getEditableElement(e)}_hidePanel(e){this.panelView.isVisible=!1,e&&this.editor.editing.view.focus()}_attachButtonToElement(e){const t=window.getComputedStyle(e),o=new c.UL(this._getSelectedEditableElement()),s=parseInt(t.paddingTop,10),i=parseInt(t.lineHeight,10)||1.2*parseInt(t.fontSize,10),r=new c.UL(this.buttonView.element),n=new c.UL(e);let a;a="ltr"===this.editor.locale.uiLanguageDirection?o.left-r.width:o.right;const l=n.top+s+(i-r.height)/2;r.moveTo(a,l);const d=r.toAbsoluteRect();this.buttonView.top=d.top,this.buttonView.left=d.left}_setupToolbarResize(){const e=this._getSelectedEditableElement();this._blockToolbarConfig.shouldNotGroupWhenFull||(this._resizeObserver&&this._resizeObserver.element!==e&&(this._resizeObserver.destroy(),this._resizeObserver=null),this._resizeObserver||(this._resizeObserver=new c.do(e,(()=>{this.toolbarView.maxWidth=this._getToolbarMaxWidth(e)}))))}_getToolbarMaxWidth(e){const t=new c.UL(e),o=new c.UL(this.buttonView.element),s="rtl"===this.editor.locale.uiLanguageDirection?o.left-t.right+o.width:t.left-o.left;return xi(t.width+s)}}const Ci={colorPaletteIcon:ao}},"./packages/ckeditor5-ui/src/search/filteredview.ts":()=>{},"./packages/ckeditor5-utils/src/ckeditorerror.ts":(e,t,o)=>{"use strict";o.d(t,{H:()=>n,KE:()=>r,ZP:()=>i});const s="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class i extends Error{constructor(e,t,o){super(function(e,t){const o=new WeakSet,s=(e,t)=>{if("object"==typeof t&&null!==t){if(o.has(t))return`[object ${t.constructor.name}]`;o.add(t)}return t},i=t?` ${JSON.stringify(t,s)}`:"",r=a(e);return e+i+r}(e,o)),this.name="CKEditorError",this.context=t,this.data=o}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const o=new i(e.message,t);throw o.stack=e.stack,o}}function r(e,t){console.warn(...c(e,t))}function n(e,t){console.error(...c(e,t))}function a(e){return`\nRead more: ${s}#error-${e}`}function c(e,t){const o=a(e);return t?[e,t,o]:[e,o]}},"./packages/ckeditor5-utils/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{Bb:()=>w.ZP,FE:()=>gt,De:()=>ie,Xu:()=>de,a6:()=>H,ln:()=>C,M3:()=>f,Rh:()=>bt,VD:()=>_t,go:()=>ft,Re:()=>F,UL:()=>xe,do:()=>Se,Rt:()=>G,QX:()=>U,az:()=>ee,gw:()=>yt,Hg:()=>d,Pk:()=>h,OB:()=>r,HZ:()=>a,wm:()=>ge,Ps:()=>mt,dk:()=>me,lo:()=>_e,Cq:()=>it,yy:()=>be,XU:()=>nt,j9:()=>ht,mA:()=>ct,xZ:()=>ze,global:()=>fe,cq:()=>je,ZQ:()=>Me,VG:()=>_,dj:()=>at,tO:()=>Pt,C3:()=>Ve,Zt:()=>lt,Cb:()=>Ct,pp:()=>At,YK:()=>Ot,to:()=>Et,TW:()=>K,nA:()=>Tt,UG:()=>ae,bR:()=>we,Gs:()=>ke,$b:()=>Be,pn:()=>Ie,Do:()=>ot,H:()=>w.H,KE:()=>w.KE,CD:()=>u,Zz:()=>rt,tA:()=>b,Dm:()=>k.D,Od:()=>Ze,F0:()=>$e,mR:()=>We,jS:()=>Oe,x:()=>vt,qo:()=>ut,qL:()=>kt,nn:()=>Re,hQ:()=>m,Tx:()=>xt,i8:()=>k.Z});const s=function(){try{return navigator.userAgent.toLowerCase()}catch(e){return""}}();var i;const r={isMac:n(s),isWindows:(i=s,i.indexOf("windows")>-1),isGecko:function(e){return!!e.match(/gecko\/\d+/)}(s),isSafari:function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(s),isiOS:function(e){return!!e.match(/iphone|ipad/i)||n(e)&&navigator.maxTouchPoints>0}(s),isAndroid:function(e){return e.indexOf("android")>-1}(s),isBlink:function(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}(s),features:{isRegExpUnicodePropertySupported:function(){let e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}()}};function n(e){return e.indexOf("macintosh")>-1}function a(e,t,o,s){o=o||function(e,t){return e===t};const i=Array.isArray(e)?e:Array.prototype.slice.call(e),r=Array.isArray(t)?t:Array.prototype.slice.call(t),n=function(e,t,o){const s=c(e,t,o);if(-1===s)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=l(e,s),r=l(t,s),n=c(i,r,o),a=e.length-n,d=t.length-n;return{firstIndex:s,lastIndexOld:a,lastIndexNew:d}}(i,r,o),a=s?function(e,t){const{firstIndex:o,lastIndexOld:s,lastIndexNew:i}=e;if(-1===o)return Array(t).fill("equal");let r=[];o>0&&(r=r.concat(Array(o).fill("equal")));i-o>0&&(r=r.concat(Array(i-o).fill("insert")));s-o>0&&(r=r.concat(Array(s-o).fill("delete")));i<t&&(r=r.concat(Array(t-i).fill("equal")));return r}(n,r.length):function(e,t){const o=[],{firstIndex:s,lastIndexOld:i,lastIndexNew:r}=t;r-s>0&&o.push({index:s,type:"insert",values:e.slice(s,r)});i-s>0&&o.push({index:s+(r-s),type:"delete",howMany:i-s});return o}(r,n);return a}function c(e,t,o){for(let s=0;s<Math.max(e.length,t.length);s++)if(void 0===e[s]||void 0===t[s]||!o(e[s],t[s]))return s;return-1}function l(e,t){return e.slice(t).reverse()}function d(e,t,o){o=o||function(e,t){return e===t};const s=e.length,i=t.length;if(s>200||i>200||s+i>300)return d.fastDiff(e,t,o,!0);let r,n;if(i<s){const o=e;e=t,t=o,r="delete",n="insert"}else r="insert",n="delete";const a=e.length,c=t.length,l=c-a,h={},u={};function p(s){const i=(void 0!==u[s-1]?u[s-1]:-1)+1,l=void 0!==u[s+1]?u[s+1]:-1,d=i>l?-1:1;h[s+d]&&(h[s]=h[s+d].slice(0)),h[s]||(h[s]=[]),h[s].push(i>l?r:n);let p=Math.max(i,l),f=p-s;for(;f<a&&p<c&&o(e[f],t[p]);)f++,p++,h[s].push("equal");return p}let f,g=0;do{for(f=-g;f<l;f++)u[f]=p(f);for(f=l+g;f>l;f--)u[f]=p(f);u[l]=p(l),g++}while(u[l]!==c);return h[l].slice(1)}function h(e,t){const o=[];let s=0,i=null;return e.forEach((e=>{"equal"==e?(r(),s++):"insert"==e?(i&&"insert"==i.type?i.values.push(t[s]):(r(),i={type:"insert",index:s,values:[t[s]]}),s++):i&&"delete"==i.type?i.howMany++:(r(),i={type:"delete",index:s,howMany:1})})),r(),o;function r(){i&&(o.push(i),i=null)}}function u(e,...t){t.forEach((t=>{const o=Object.getOwnPropertyNames(t),s=Object.getOwnPropertySymbols(t);o.concat(s).forEach((o=>{if(o in e.prototype)return;if("function"==typeof t&&("length"==o||"name"==o||"prototype"==o))return;const s=Object.getOwnPropertyDescriptor(t,o);s.enumerable=!1,Object.defineProperty(e.prototype,o,s)}))}))}d.fastDiff=a;const p=function(){return function e(){e.called=!0}};class f{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=p(),this.off=p()}}const g=new Array(256).fill("").map(((e,t)=>("0"+t.toString(16)).slice(-2)));function m(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0,s=4294967296*Math.random()>>>0;return"e"+g[e>>0&255]+g[e>>8&255]+g[e>>16&255]+g[e>>24&255]+g[t>>0&255]+g[t>>8&255]+g[t>>16&255]+g[t>>24&255]+g[o>>0&255]+g[o>>8&255]+g[o>>16&255]+g[o>>24&255]+g[s>>0&255]+g[s>>8&255]+g[s>>16&255]+g[s>>24&255]}const b={get(e="normal"){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function _(e,t){const o=b.get(t.priority);for(let s=0;s<e.length;s++)if(b.get(e[s].priority)<o)return void e.splice(s,0,t);e.push(t)}var k=o("./packages/ckeditor5-utils/src/version.ts"),w=o("./packages/ckeditor5-utils/src/ckeditorerror.ts");const v=Symbol("listeningTo"),y=Symbol("emitterId"),x=Symbol("delegations"),P=C(Object);function C(e){if(!e)return P;return class extends e{on(e,t,o){this.listenTo(this,e,t,o)}once(e,t,o){let s=!1;this.listenTo(this,e,((e,...o)=>{s||(s=!0,e.off(),t.call(this,e,...o))}),o)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,o,s={}){let i,r;this[v]||(this[v]={});const n=this[v];E(e)||T(e);const a=E(e);(i=n[a])||(i=n[a]={emitter:e,callbacks:{}}),(r=i.callbacks[t])||(r=i.callbacks[t]=[]),r.push(o),function(e,t,o,s,i){t._addEventListener?t._addEventListener(o,s,i):e._addEventListener.call(t,o,s,i)}(this,e,t,o,s)}stopListening(e,t,o){const s=this[v];let i=e&&E(e);const r=s&&i?s[i]:void 0,n=r&&t?r.callbacks[t]:void 0;if(!(!s||e&&!r||t&&!n))if(o){j(this,e,t,o);-1!==n.indexOf(o)&&(1===n.length?delete r.callbacks[t]:j(this,e,t,o))}else if(n){for(;o=n.pop();)j(this,e,t,o);delete r.callbacks[t]}else if(r){for(t in r.callbacks)this.stopListening(e,t);delete s[i]}else{for(i in s)this.stopListening(s[i].emitter);delete this[v]}}fire(e,...t){try{const o=e instanceof f?e:new f(this,e),s=o.name;let i=O(this,s);if(o.path.push(this),i){const e=[o,...t];i=Array.from(i);for(let t=0;t<i.length&&(i[t].callback.apply(this,e),o.off.called&&(delete o.off.called,this._removeEventListener(s,i[t].callback)),!o.stop.called);t++);}const r=this[x];if(r){const e=r.get(s),i=r.get("*");e&&R(e,o,t),i&&R(i,o,t)}return o.return}catch(e){w.ZP.rethrowUnexpectedError(e,this)}}delegate(...e){return{to:(t,o)=>{this[x]||(this[x]=new Map),e.forEach((e=>{const s=this[x].get(e);s?s.set(t,o):this[x].set(e,new Map([[t,o]]))}))}}}stopDelegating(e,t){if(this[x])if(e)if(t){const o=this[x].get(e);o&&o.delete(t)}else this[x].delete(e);else this[x].clear()}_addEventListener(e,t,o){!function(e,t){const o=A(e);if(o[t])return;let s=t,i=null;const r=[];for(;""!==s&&!o[s];)o[s]={callbacks:[],childEvents:[]},r.push(o[s]),i&&o[s].childEvents.push(i),i=s,s=s.substr(0,s.lastIndexOf(":"));if(""!==s){for(const e of r)e.callbacks=o[s].callbacks.slice();o[s].childEvents.push(i)}}(this,e);const s=S(this,e),i={callback:t,priority:b.get(o.priority)};for(const e of s)_(e,i)}_removeEventListener(e,t){const o=S(this,e);for(const e of o)for(let o=0;o<e.length;o++)e[o].callback==t&&(e.splice(o,1),o--)}}}function T(e,t){e[y]||(e[y]=t||m())}function E(e){return e[y]}function A(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function S(e,t){const o=A(e)[t];if(!o)return[];let s=[o.callbacks];for(let t=0;t<o.childEvents.length;t++){const i=S(e,o.childEvents[t]);s=s.concat(i)}return s}function O(e,t){let o;return e._events&&(o=e._events[t])&&o.callbacks.length?o.callbacks:t.indexOf(":")>-1?O(e,t.substr(0,t.lastIndexOf(":"))):null}function R(e,t,o){for(let[s,i]of e){i?"function"==typeof i&&(i=i(t.name)):i=t.name;const e=new f(t.source,i);e.path=[...t.path],s.fire(e,...o)}}function j(e,t,o,s){t._removeEventListener?t._removeEventListener(o,s):e._removeEventListener.call(t,o,s)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{C[e]=P.prototype[e]}));var M=o("./node_modules/lodash-es/isObject.js");const V=Symbol("observableProperties"),B=Symbol("boundObservables"),I=Symbol("boundProperties"),D=Symbol("decoratedMethods"),N=Symbol("decoratedOriginal"),z=F(C());function F(e){if(!e)return z;return class extends e{set(e,t){if((0,M.Z)(e))return void Object.keys(e).forEach((t=>{this.set(t,e[t])}),this);L(this);const o=this[V];if(e in this&&!o.has(e))throw new w.ZP("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>o.get(e),set(t){const s=o.get(e);let i=this.fire(`set:${e}`,e,t,s);void 0===i&&(i=t),s===i&&o.has(e)||(o.set(e,i),this.fire(`change:${e}`,e,i,s))}}),this[e]=t}bind(...e){if(!e.length||!$(e))throw new w.ZP("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new w.ZP("observable-bind-duplicate-properties",this);L(this);const t=this[I];e.forEach((e=>{if(t.has(e))throw new w.ZP("observable-bind-rebind",this)}));const o=new Map;return e.forEach((e=>{const s={property:e,to:[]};t.set(e,s),o.set(e,s)})),{to:Z,toMany:W,_observable:this,_bindProperties:e,_to:[],_bindings:o}}unbind(...e){if(!this[V])return;const t=this[I],o=this[B];if(e.length){if(!$(e))throw new w.ZP("observable-unbind-wrong-properties",this);e.forEach((e=>{const s=t.get(e);s&&(s.to.forEach((([e,t])=>{const i=o.get(e),r=i[t];r.delete(s),r.size||delete i[t],Object.keys(i).length||(o.delete(e),this.stopListening(e,"change"))})),t.delete(e))}))}else o.forEach(((e,t)=>{this.stopListening(t,"change")})),o.clear(),t.clear()}decorate(e){L(this);const t=this[e];if(!t)throw new w.ZP("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,((e,o)=>{e.return=t.apply(this,o)})),this[e]=function(...t){return this.fire(e,t)},this[e][N]=t,this[D]||(this[D]=[]),this[D].push(e)}stopListening(e,t,o){if(!e&&this[D]){for(const e of this[D])this[e]=this[e][N];delete this[D]}super.stopListening(e,t,o)}}}function L(e){e[V]||(Object.defineProperty(e,V,{value:new Map}),Object.defineProperty(e,B,{value:new Map}),Object.defineProperty(e,I,{value:new Map}))}function Z(...e){const t=function(...e){if(!e.length)throw new w.ZP("observable-bind-to-parse-error",null);const t={to:[]};let o;"function"==typeof e[e.length-1]&&(t.callback=e.pop());return e.forEach((e=>{if("string"==typeof e)o.properties.push(e);else{if("object"!=typeof e)throw new w.ZP("observable-bind-to-parse-error",null);o={observable:e,properties:[]},t.to.push(o)}})),t}(...e),o=Array.from(this._bindings.keys()),s=o.length;if(!t.callback&&t.to.length>1)throw new w.ZP("observable-bind-to-no-callback",this);if(s>1&&t.callback)throw new w.ZP("observable-bind-to-extra-callback",this);var i;t.to.forEach((e=>{if(e.properties.length&&e.properties.length!==s)throw new w.ZP("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)})),this._to=t.to,t.callback&&(this._bindings.get(o[0]).callback=t.callback),i=this._observable,this._to.forEach((e=>{const t=i[B];let o;t.get(e.observable)||i.listenTo(e.observable,"change",((s,r)=>{o=t.get(e.observable)[r],o&&o.forEach((e=>{q(i,e.property)}))}))})),function(e){let t;e._bindings.forEach(((o,s)=>{e._to.forEach((i=>{t=i.properties[o.callback?0:e._bindProperties.indexOf(s)],o.to.push([i.observable,t]),function(e,t,o,s){const i=e[B],r=i.get(o),n=r||{};n[s]||(n[s]=new Set);n[s].add(t),r||i.set(o,n)}(e._observable,o,i.observable,t)}))}))}(this),this._bindProperties.forEach((e=>{q(this._observable,e)}))}function W(e,t,o){if(this._bindings.size>1)throw new w.ZP("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){const o=e.map((e=>[e,t]));return Array.prototype.concat.apply([],o)}(e,t),o)}function $(e){return e.every((e=>"string"==typeof e))}function q(e,t){const o=e[I].get(t);let s;o.callback?s=o.callback.apply(e,o.to.map((e=>e[0][e[1]]))):(s=o.to[0],s=s[0][s[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=s:e.set(t,s)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{F[e]=z.prototype[e]}));class H{constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach((({element:e,newElement:t})=>{e.style.display="",t&&t.remove()})),this._replacedElements=[]}}function U(e){let t=0;for(const o of e)t++;return t}function G(e,t){const o=Math.min(e.length,t.length);for(let s=0;s<o;s++)if(e[s]!=t[s])return s;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}function K(e){return!(!e||!e[Symbol.iterator])}var J=o("./node_modules/lodash-es/_baseGetTag.js"),Y=o("./node_modules/lodash-es/isArray.js"),X=o("./node_modules/lodash-es/isObjectLike.js");const Q=function(e){return"string"==typeof e||!(0,Y.Z)(e)&&(0,X.Z)(e)&&"[object String]"==(0,J.Z)(e)};function ee(e,t,o={},s=[]){const i=o&&o.xmlns,r=i?e.createElementNS(i,t):e.createElement(t);for(const e in o)r.setAttribute(e,o[e]);!Q(s)&&K(s)||(s=[s]);for(let t of s)Q(t)&&(t=e.createTextNode(t)),r.appendChild(t);return r}var te=o("./node_modules/lodash-es/isPlainObject.js"),oe=o("./node_modules/lodash-es/cloneDeepWith.js"),se=o("./node_modules/lodash-es/isElement.js");class ie{constructor(e,t){this._config={},t&&this.define(re(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,o,s=!1){if((0,te.Z)(t))return void this._setObjectToTarget(e,t,s);const i=t.split(".");t=i.pop();for(const t of i)(0,te.Z)(e[t])||(e[t]={}),e=e[t];if((0,te.Z)(o))return(0,te.Z)(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,o,s);s&&void 0!==e[t]||(e[t]=o)}_getFromSource(e,t){const o=t.split(".");t=o.pop();for(const t of o){if(!(0,te.Z)(e[t])){e=null;break}e=e[t]}return e?re(e[t]):void 0}_setObjectToTarget(e,t,o){Object.keys(t).forEach((s=>{this._setToTarget(e,s,t[s],o)}))}}function re(e){return(0,oe.Z)(e,ne)}function ne(e){return(0,se.Z)(e)||"function"==typeof e?e:void 0}function ae(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function ce(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}const le=de(C());function de(e){if(!e)return le;return class extends e{listenTo(e,t,o,s={}){if(ae(e)||ce(e)){const i={capture:!!s.useCapture,passive:!!s.usePassive},r=this._getProxyEmitter(e,i)||new he(e,i);this.listenTo(r,t,o,s)}else super.listenTo(e,t,o,s)}stopListening(e,t,o){if(ae(e)||ce(e)){const s=this._getAllProxyEmitters(e);for(const e of s)this.stopListening(e,t,o)}else super.stopListening(e,t,o)}_getProxyEmitter(e,t){return function(e,t){const o=e[v];return o&&o[t]?o[t].emitter:null}(this,ue(e,t))}_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((t=>this._getProxyEmitter(e,t))).filter((e=>!!e))}}}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{de[e]=le.prototype[e]}));class he extends(C()){constructor(e,t){super(),T(this,ue(e,t)),this._domNode=e,this._options=t}attach(e){if(this._domListeners&&this._domListeners[e])return;const t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}_addEventListener(e,t,o){this.attach(e),C().prototype._addEventListener.call(this,e,t,o)}_removeEventListener(e,t){C().prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){const t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}}function ue(e,t){let o=function(e){return e["data-ck-expando"]||(e["data-ck-expando"]=m())}(e);for(const e of Object.keys(t).sort())t[e]&&(o+="-"+e);return o}let pe;try{pe={window,document}}catch(e){pe={window:{},document:{}}}const fe=pe;function ge(e){let t=e.parentElement;if(!t)return null;for(;"BODY"!=t.tagName;){const e=t.style.overflowY||fe.window.getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)break;if(t=t.parentElement,!t)return null}return t}function me(e){const t=[];let o=e;for(;o&&o.nodeType!=Node.DOCUMENT_NODE;)t.unshift(o),o=o.parentNode;return t}function be(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}function _e(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function ke(e){return"[object Text]"==Object.prototype.toString.call(e)}function we(e){return"[object Range]"==Object.prototype.toString.apply(e)}function ve(e){return e&&e.parentNode?e.offsetParent===fe.document.body?null:e.offsetParent:null}const ye=["top","right","bottom","left","width","height"];class xe{constructor(e){const t=we(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),Te(e)||t)if(t){const t=xe.getDomRangeRects(e);Pe(this,xe.getBoundingRect(t))}else Pe(this,e.getBoundingClientRect());else if(ce(e)){const{innerWidth:t,innerHeight:o}=e;Pe(this,{top:0,right:t,bottom:o,left:0,width:t,height:o})}else Pe(this,e)}clone(){return new xe(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left),width:0,height:0};if(t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0)return null;{const e=new xe(t);return e._source=this._source,e}}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(Ce(e))return t;let o,s=e,i=e.parentNode||e.commonAncestorContainer;for(;i&&!Ce(i);){const e="visible"===((r=i)instanceof HTMLElement?r.ownerDocument.defaultView.getComputedStyle(r).overflow:"visible");s instanceof HTMLElement&&"absolute"===Ee(s)&&(o=s);const n=Ee(i);if(e||o&&("relative"===n&&e||"relative"!==n)){s=i,i=i.parentNode;continue}const a=new xe(i),c=t.getIntersection(a);if(!c)return null;c.getArea()<t.getArea()&&(t=c),s=i,i=i.parentNode}var r;return t}isEqual(e){for(const t of ye)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}toAbsoluteRect(){const{scrollX:e,scrollY:t}=fe.window,o=this.clone().moveBy(e,t);if(Te(o._source)){const e=ve(o._source);e&&function(e,t){const o=new xe(t),s=_e(t);let i=0,r=0;i-=o.left,r-=o.top,i+=t.scrollLeft,r+=t.scrollTop,i-=s.left,r-=s.top,e.moveBy(i,r)}(o,e)}return o}excludeScrollbarsAndBorders(){const e=this._source;let t,o,s;if(ce(e))t=e.innerWidth-e.document.documentElement.clientWidth,o=e.innerHeight-e.document.documentElement.clientHeight,s=e.getComputedStyle(e.document.documentElement).direction;else{const i=_e(e);t=e.offsetWidth-e.clientWidth-i.left-i.right,o=e.offsetHeight-e.clientHeight-i.top-i.bottom,s=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===s?this.right-=t:this.left+=t,this.height-=o,this.bottom-=o,this}static getDomRangeRects(e){const t=[],o=Array.from(e.getClientRects());if(o.length)for(const e of o)t.push(new xe(e));else{let o=e.startContainer;ke(o)&&(o=o.parentNode);const s=new xe(o.getBoundingClientRect());s.right=s.left,s.width=0,t.push(s)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let o=0;for(const s of e)o++,t.left=Math.min(t.left,s.left),t.top=Math.min(t.top,s.top),t.right=Math.max(t.right,s.right),t.bottom=Math.max(t.bottom,s.bottom);return 0==o?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new xe(t))}}function Pe(e,t){for(const o of ye)e[o]=t[o]}function Ce(e){return!!Te(e)&&e===e.ownerDocument.body}function Te(e){return null!==e&&"object"==typeof e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect}function Ee(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).position:"static"}const Ae=class{constructor(e,t){Ae._observerInstance||Ae._createObserver(),this._element=e,this._callback=t,Ae._addElementCallback(e,t),Ae._observerInstance.observe(e)}get element(){return this._element}destroy(){Ae._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){Ae._elementCallbacks||(Ae._elementCallbacks=new Map);let o=Ae._elementCallbacks.get(e);o||(o=new Set,Ae._elementCallbacks.set(e,o)),o.add(t)}static _deleteElementCallback(e,t){const o=Ae._getElementCallbacks(e);o&&(o.delete(t),o.size||(Ae._elementCallbacks.delete(e),Ae._observerInstance.unobserve(e))),Ae._elementCallbacks&&!Ae._elementCallbacks.size&&(Ae._observerInstance=null,Ae._elementCallbacks=null)}static _getElementCallbacks(e){return Ae._elementCallbacks?Ae._elementCallbacks.get(e):null}static _createObserver(){Ae._observerInstance=new fe.window.ResizeObserver((e=>{for(const t of e){const e=Ae._getElementCallbacks(t.target);if(e)for(const o of e)o(t)}}))}};let Se=Ae;function Oe(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function Re(e){return t=>t+e}function je(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function Me(e,t,o){e.insertBefore(o,e.childNodes[t]||null)}function Ve(e){return e&&e.nodeType===Node.COMMENT_NODE}function Be(e){try{fe.document.createAttribute(e)}catch(e){return!1}return!0}function Ie(e){return!!(e&&e.getClientRects&&e.getClientRects().length)}Se._observerInstance=null,Se._elementCallbacks=null;var De=o("./node_modules/lodash-es/isFunction.js"),Ne=Math.pow;function ze({element:e,target:t,positions:o,limiter:s,fitInViewport:i,viewportOffsetConfig:r}){(0,De.Z)(t)&&(t=t()),(0,De.Z)(s)&&(s=s());const n=ve(e),a=function(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new xe(fe.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t}(r),c=new xe(e),l=Fe(t,a);let d;if(!l||!a.getIntersection(l))return null;const h={targetRect:l,elementRect:c,positionedElementAncestor:n,viewportRect:a};if(s||i){if(s){const e=Fe(s,a);e&&(h.limiterRect=e)}d=function(e,t){const{elementRect:o}=t,s=o.getArea(),i=e.map((e=>new Le(e,t))).filter((e=>!!e.name));let r=0,n=null;for(const e of i){const{limiterIntersectionArea:t,viewportIntersectionArea:o}=e;if(t===s)return e;const i=Ne(o,2)+Ne(t,2);i>r&&(r=i,n=e)}return n}(o,h)}else d=new Le(o[0],h);return d}function Fe(e,t){const o=new xe(e).getVisible();return o?o.getIntersection(t):null}class Le{constructor(e,t){const o=e(t.targetRect,t.elementRect,t.viewportRect,t.limiterRect);if(!o)return;const{left:s,top:i,name:r,config:n}=o;this.name=r,this.config=n,this._positioningFunctionCoordinates={left:s,top:i},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const e=this._options.limiterRect;return e?e.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return 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._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function Ze(e){const t=e.parentNode;t&&t.removeChild(e)}function We({target:e,viewportOffset:t=0,ancestorOffset:o=0,alignToTop:s,forceScroll:i}){const r=Ye(e);let n=r,a=null;for(t=function(e){if("number"==typeof e)return{top:e,bottom:e,left:e,right:e};return e}(t);n;){let c;c=Xe(n==r?e:a),He({parent:c,getRect:()=>Qe(e,n),alignToTop:s,ancestorOffset:o,forceScroll:i});const l=Qe(e,n);if(qe({window:n,rect:l,viewportOffset:t,alignToTop:s,forceScroll:i}),n.parent!=n){if(a=n.frameElement,n=n.parent,!a)return}else n=null}}function $e(e,t,o){He({parent:Xe(e),getRect:()=>new xe(e),ancestorOffset:t,limiterElement:o})}function qe({window:e,rect:t,alignToTop:o,forceScroll:s,viewportOffset:i}){const r=t.clone().moveBy(0,i.bottom),n=t.clone().moveBy(0,-i.top),a=new xe(e).excludeScrollbarsAndBorders(),c=o&&s,l=[n,r].every((e=>a.contains(e)));let{scrollX:d,scrollY:h}=e;const u=d,p=h;c?h-=a.top-t.top+i.top:l||(Ge(n,a)?h-=a.top-t.top+i.top:Ue(r,a)&&(h+=o?t.top-a.top-i.top:t.bottom-a.bottom+i.bottom)),l||(Ke(t,a)?d-=a.left-t.left+i.left:Je(t,a)&&(d+=t.right-a.right+i.right)),d==u&&h===p||e.scrollTo(d,h)}function He({parent:e,getRect:t,alignToTop:o,forceScroll:s,ancestorOffset:i=0,limiterElement:r}){const n=Ye(e),a=o&&s;let c,l,d;const h=r||n.document.body;for(;e!=h;)l=t(),c=new xe(e).excludeScrollbarsAndBorders(),d=c.contains(l),a?e.scrollTop-=c.top-l.top+i:d||(Ge(l,c)?e.scrollTop-=c.top-l.top+i:Ue(l,c)&&(e.scrollTop+=o?l.top-c.top-i:l.bottom-c.bottom+i)),d||(Ke(l,c)?e.scrollLeft-=c.left-l.left+i:Je(l,c)&&(e.scrollLeft+=l.right-c.right+i)),e=e.parentNode}function Ue(e,t){return e.bottom>t.bottom}function Ge(e,t){return e.top<t.top}function Ke(e,t){return e.left<t.left}function Je(e,t){return e.right>t.right}function Ye(e){return we(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Xe(e){if(we(e)){let t=e.commonAncestorContainer;return ke(t)&&(t=t.parentNode),t}return e.parentNode}function Qe(e,t){const o=Ye(e),s=new xe(e);if(o===t)return s;{let e=o;for(;e!=t;){const t=e.frameElement,o=new xe(t).excludeScrollbarsAndBorders();s.moveBy(o.left,o.top),e=e.parent}}return s}const et={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},tt={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},ot=function(){const e={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++){e[String.fromCharCode(t).toLowerCase()]=t}for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;for(const t of"`-=[];',./\\")e[t]=t.charCodeAt(0);return e}(),st=Object.fromEntries(Object.entries(ot).map((([e,t])=>[t,e.charAt(0).toUpperCase()+e.slice(1)])));function it(e){let t;if("string"==typeof e){if(t=ot[e.toLowerCase()],!t)throw new w.ZP("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?ot.alt:0)+(e.ctrlKey?ot.ctrl:0)+(e.shiftKey?ot.shift:0)+(e.metaKey?ot.cmd:0);return t}function rt(e){return"string"==typeof e&&(e=function(e){return e.split("+").map((e=>e.trim()))}(e)),e.map((e=>"string"==typeof e?function(e){if(e.endsWith("!"))return it(e.slice(0,-1));const t=it(e);return(r.isMac||r.isiOS)&&t==ot.ctrl?ot.cmd:t}(e):e)).reduce(((e,t)=>t+e),0)}function nt(e){let t=rt(e);return Object.entries(r.isMac||r.isiOS?et:tt).reduce(((e,[o,s])=>(0!=(t&ot[o])&&(t&=~ot[o],e+=s),e)),"")+(t?st[t]:"")}function at(e){return e==ot.arrowright||e==ot.arrowleft||e==ot.arrowup||e==ot.arrowdown}function ct(e,t){const o="ltr"===t;switch(e){case ot.arrowleft:return o?"left":"right";case ot.arrowright:return o?"right":"left";case ot.arrowup:return"up";case ot.arrowdown:return"down"}}function lt(e,t){const o=ct(e,t);return"down"===o||"right"===o}const dt=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function ht(e){return dt.includes(e)?"rtl":"ltr"}function ut(e){return Array.isArray(e)?e:[e]}function pt(e,t,o=1){if("number"!=typeof o)throw new w.ZP("translation-service-quantity-not-a-number",null,{quantity:o});const s=Object.keys(fe.window.CKEDITOR_TRANSLATIONS).length;1===s&&(e=Object.keys(fe.window.CKEDITOR_TRANSLATIONS)[0]);const i=t.id||t.string;if(0===s||!function(e,t){return!!fe.window.CKEDITOR_TRANSLATIONS[e]&&!!fe.window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,i))return 1!==o?t.plural:t.string;const r=fe.window.CKEDITOR_TRANSLATIONS[e].dictionary,n=fe.window.CKEDITOR_TRANSLATIONS[e].getPluralForm||(e=>1===e?0:1),a=r[i];if("string"==typeof a)return a;return a[Number(n(o))]}fe.window.CKEDITOR_TRANSLATIONS||(fe.window.CKEDITOR_TRANSLATIONS={});class ft{constructor({uiLanguage:e="en",contentLanguage:t}={}){this.uiLanguage=e,this.contentLanguage=t||this.uiLanguage,this.uiLanguageDirection=ht(this.uiLanguage),this.contentLanguageDirection=ht(this.contentLanguage),this.t=(e,t)=>this._t(e,t)}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(e,t=[]){t=ut(t),"string"==typeof e&&(e={string:e});const o=!!e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,((e,o)=>o<t.length?t[o]:e))}(pt(this.uiLanguage,e,o),t)}}class gt extends(C()){constructor(e={},t={}){super();const o=K(e);if(o||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],o)for(const t of e)this._items.push(t),this._itemMap.set(this._getItemIdBeforeAdding(t),t)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new w.ZP("collection-add-item-invalid-index",this);let o=0;for(const s of e){const e=this._getItemIdBeforeAdding(s),i=t+o;this._items.splice(i,0,s),this._itemMap.set(e,s),this.fire("add",s,i),o++}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new w.ZP("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if("string"==typeof e)return this._itemMap.has(e);{const t=e[this._idProperty];return t&&this._itemMap.has(t)}}getIndex(e){let t;return t="string"==typeof e?this._itemMap.get(e):e,t?this._items.indexOf(t):-1}remove(e){const[t,o]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:o}),t}map(e,t){return this._items.map(e,t)}forEach(e,t){this._items.forEach(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new w.ZP("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding((t=>new e(t)))},using:e=>{"function"==typeof e?this._setUpBindToBinding(e):this._setUpBindToBinding((t=>t[e]))}}}_setUpBindToBinding(e){const t=this._bindToCollection,o=(o,s,i)=>{const r=t._bindToCollection==this,n=t._bindToInternalToExternalMap.get(s);if(r&&n)this._bindToExternalToInternalMap.set(s,n),this._bindToInternalToExternalMap.set(n,s);else{const o=e(s);if(!o)return void this._skippedIndexesFromExternal.push(i);let r=i;for(const e of this._skippedIndexesFromExternal)i>e&&r--;for(const e of t._skippedIndexesFromExternal)r>=e&&r++;this._bindToExternalToInternalMap.set(s,o),this._bindToInternalToExternalMap.set(o,s),this.add(o,r);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)r<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(const e of t)o(0,e,t.getIndex(e));this.listenTo(t,"add",o),this.listenTo(t,"remove",((e,t,o)=>{const s=this._bindToExternalToInternalMap.get(t);s&&this.remove(s),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((e,t)=>(o<t&&e.push(t-1),o>t&&e.push(t),e)),[])}))}_getItemIdBeforeAdding(e){const t=this._idProperty;let o;if(t in e){if(o=e[t],"string"!=typeof o)throw new w.ZP("collection-add-invalid-id",this);if(this.get(o))throw new w.ZP("collection-add-item-already-exists",this)}else e[t]=o=m();return o}_remove(e){let t,o,s,i=!1;const r=this._idProperty;if("string"==typeof e?(o=e,s=this._itemMap.get(o),i=!s,s&&(t=this._items.indexOf(s))):"number"==typeof e?(t=e,s=this._items[t],i=!s,s&&(o=s[r])):(s=e,o=s[r],t=this._items.indexOf(s),i=-1==t||!this._itemMap.get(o)),i)throw new w.ZP("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(o);const n=this._bindToInternalToExternalMap.get(s);return this._bindToInternalToExternalMap.delete(s),this._bindToExternalToInternalMap.delete(n),this.fire("remove",s,t),[s,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function mt(e){const t=e.next();return t.done?null:t.value}class bt extends(de(F())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(e){if(this._elements.has(e))throw new w.ZP("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(()=>this._focus(e)),{useCapture:!0}),this.listenTo(e,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(e)}remove(e){e===this.focusedElement&&this._blur(),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}class _t{constructor(){this._listener=new(de())}listenTo(e){this._listener.listenTo(e,"keydown",((e,t)=>{this._listener.fire("_keydown:"+it(t),t)}))}set(e,t,o={}){const s=rt(e),i=o.priority;this._listener.listenTo(this._listener,"_keydown:"+s,((e,o)=>{t(o,(()=>{o.preventDefault(),o.stopPropagation(),e.stop()})),e.return=!0}),{priority:i})}press(e){return!!this._listener.fire("_keydown:"+it(e),e)}stopListening(e){this._listener.stopListening(e)}destroy(){this.stopListening()}}function kt(e){return K(e)?new Map(e):function(e){const t=new Map;for(const o in e)t.set(o,e[o]);return t}(e)}const wt=1e4;function vt(e,t,o,s){if(Math.max(t.length,e.length)>wt)return e.slice(0,o).concat(t).concat(e.slice(o+s,e.length));{const i=Array.from(e);return i.splice(o,s,...t),i}}function yt(e,t){let o;function s(...i){s.cancel(),o=setTimeout((()=>e(...i)),t)}return s.cancel=()=>{clearTimeout(o)},s}function xt(e){function t(e){return e.length>=40&&e.length<=255?"VALID":"INVALID"}if(!e)return"INVALID";let o="";try{o=atob(e)}catch(e){return"INVALID"}const s=o.split("-"),i=s[0],r=s[1];if(!r)return t(e);try{atob(r)}catch(o){try{if(atob(i),!atob(i).length)return t(e)}catch(o){return t(e)}}if(i.length<40||i.length>255)return"INVALID";let n="";try{atob(i),n=atob(r)}catch(e){return"INVALID"}if(8!==n.length)return"INVALID";const a=Number(n.substring(0,4)),c=Number(n.substring(4,6))-1,l=Number(n.substring(6,8)),d=new Date(a,c,l);return d<k.D||isNaN(Number(d))?"INVALID":"VALID"}function Pt(e){return!!e&&1==e.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e)}function Ct(e){return!!e&&1==e.length&&/[\ud800-\udbff]/.test(e)}function Tt(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}function Et(e,t){return Ct(e.charAt(t-1))&&Tt(e.charAt(t))}function At(e,t){return Pt(e.charAt(t))}const St=function(){const e=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],t=new RegExp("\\p{Regional_Indicator}{2}","u").source,o="(?:"+e.map((e=>e.source)).join("|")+")";return new RegExp(`${t}|${o}(?:â€${o})*`,"ug")}();function Ot(e,t){const o=String(e).matchAll(St);return Array.from(o).some((e=>e.index<t&&t<e.index+e[0].length))}},"./packages/ckeditor5-utils/src/version.ts":(e,t,o)=>{"use strict";o.d(t,{D:()=>n,Z:()=>r});var s=o("./packages/ckeditor5-utils/src/ckeditorerror.ts");const i="40.1.0",r=i,n=new Date(2023,10,15);if(globalThis.CKEDITOR_VERSION)throw new s.ZP("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=i},"./packages/ckeditor5-widget/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{s4:()=>f,Uo:()=>g,$L:()=>W,WR:()=>ce,e8:()=>q,Ww:()=>D,KT:()=>P,id:()=>y,Qd:()=>m,em:()=>w,l6:()=>v,XC:()=>b,sC:()=>x,$n:()=>C});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-engine/src/index.ts"),r=o("./packages/ckeditor5-typing/src/index.ts"),n=o("./packages/ckeditor5-utils/src/index.ts"),a=o("./packages/ckeditor5-ui/src/index.ts"),c=o("./packages/ckeditor5-enter/src/index.ts");class l extends((0,n.ln)()){constructor(){super(...arguments),this._stack=[]}add(e,t){const o=this._stack,s=o[0];this._insertDescriptor(e);const i=o[0];s===i||d(s,i)||this.fire("change:top",{oldDescriptor:s,newDescriptor:i,writer:t})}remove(e,t){const o=this._stack,s=o[0];this._removeDescriptor(e);const i=o[0];s===i||d(s,i)||this.fire("change:top",{oldDescriptor:s,newDescriptor:i,writer:t})}_insertDescriptor(e){const t=this._stack,o=t.findIndex((t=>t.id===e.id));if(d(e,t[o]))return;o>-1&&t.splice(o,1);let s=0;for(;t[s]&&h(t[s],e);)s++;t.splice(s,0,e)}_removeDescriptor(e){const t=this._stack,o=t.findIndex((t=>t.id===e));o>-1&&t.splice(o,1)}}function d(e,t){return e&&t&&e.priority==t.priority&&u(e.classes)==u(t.classes)}function h(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&u(e.classes)>u(t.classes)}function u(e){return Array.isArray(e)?e.sort().join(","):e}const p='<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>',f="ck-widget",g="ck-widget_selected";function m(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function b(e,t,o={}){if(!e.is("containerElement"))throw new n.Bb("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass(f,e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=T,t.setCustomProperty("widgetLabel",[],e),o.label&&v(e,o.label),o.hasSelectionHandle&&function(e,t){const o=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){const t=this.toDomElement(e),o=new a.mO;return o.set("content",p),o.render(),t.appendChild(o.element),t}));t.insert(t.createPositionAt(e,0),o),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),w(e,t),e}function _(e,t,o){if(t.classes&&o.addClass((0,n.qo)(t.classes),e),t.attributes)for(const s in t.attributes)o.setAttribute(s,t.attributes[s],e)}function k(e,t,o){if(t.classes&&o.removeClass((0,n.qo)(t.classes),e),t.attributes)for(const s in t.attributes)o.removeAttribute(s,e)}function w(e,t,o=_,s=k){const i=new l;i.on("change:top",((t,i)=>{i.oldDescriptor&&s(e,i.oldDescriptor,i.writer),i.newDescriptor&&o(e,i.newDescriptor,i.writer)}));t.setCustomProperty("addHighlight",((e,t,o)=>i.add(t,o)),e),t.setCustomProperty("removeHighlight",((e,t,o)=>i.remove(t,o)),e)}function v(e,t){e.getCustomProperty("widgetLabel").push(t)}function y(e){return e.getCustomProperty("widgetLabel").reduce(((e,t)=>"function"==typeof t?e?e+". "+t():t():e?e+". "+t:t),"")}function x(e,t,o={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("role","textbox",e),o.label&&t.setAttribute("aria-label",o.label,e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",((o,s,i)=>{t.setAttribute("contenteditable",i?"false":"true",e)})),e.on("change:isFocused",((o,s,i)=>{i?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),w(e,t),e}function P(e,t){const o=e.getSelectedElement();if(o){const s=S(e);if(s)return t.createRange(t.createPositionAt(o,s))}return(0,i.KT)(e,t)}function C(e,t){return(o,s)=>{const{mapper:i,viewPosition:r}=s,n=i.findMappedViewAncestor(r);if(!t(n))return;const a=i.toModelElement(n);s.modelPosition=e.createPositionAt(a,r.isAtStart?"before":"after")}}function T(){return null}const E="widget-type-around";function A(e,t,o){return!!e&&m(e)&&!o.isInline(t)}function S(e){return e.getAttribute(E)}var O=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),R=o.n(O),j=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgettypearound.css"),M={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};R()(j.Z,M);j.Z.locals;const V=["before","after"],B=(new DOMParser).parseFromString('<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>',"image/svg+xml").firstChild,I="ck-widget__type-around_disabled";class D extends s.Sy{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[c.C,r.HG]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",((o,s,i)=>{t.change((e=>{for(const o of t.document.roots)i?e.removeClass(I,o):e.addClass(I,o)})),i||e.model.change((e=>{e.removeSelectionAttribute(E)}))})),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(e,t){const o=this.editor,s=o.editing.view,i=o.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);o.execute("insertParagraph",{position:o.model.createPositionAt(e,t),attributes:i}),s.focus(),s.scrollToTheSelection()}_listenToIfEnabled(e,t,o,s){this.listenTo(e,t,((...e)=>{this.isEnabled&&o(...e)}),s)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=S(e);if(!t)return!1;const o=e.getSelectedElement();return this._insertParagraph(o,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,o=e.locale.t,s={before:o("Insert paragraph before block"),after:o("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",((e,i,r)=>{const n=r.mapper.toViewElement(i.item);if(n&&A(n,i.item,t)){!function(e,t,o){const s=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){const o=this.toDomElement(e);return function(e,t){for(const o of V){const s=new a.YS({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${o}`],title:t[o],"aria-hidden":"true"},children:[e.ownerDocument.importNode(B,!0)]});e.appendChild(s.render())}}(o,t),function(e){const t=new a.YS({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(o),o}));e.insert(e.createPositionAt(o,"end"),s)}(r.writer,s,n);n.getCustomProperty("widgetLabel").push((()=>this.isEnabled?o("Press Enter to type after or press Shift + Enter to type before the widget"):""))}}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,o=t.document.selection,s=t.schema,i=e.editing.view;function r(e){return`ck-widget_type-around_show-fake-caret_${e}`}this._listenToIfEnabled(i.document,"arrowKey",((e,t)=>{this._handleArrowKeyPress(e,t)}),{context:[m,"$text"],priority:"high"}),this._listenToIfEnabled(o,"change:range",((t,o)=>{o.directChange&&e.model.change((e=>{e.removeSelectionAttribute(E)}))})),this._listenToIfEnabled(t.document,"change:data",(()=>{const t=o.getSelectedElement();if(t){if(A(e.editing.mapper.toViewElement(t),t,s))return}e.model.change((e=>{e.removeSelectionAttribute(E)}))})),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",((e,t,o)=>{const i=o.writer;if(this._currentFakeCaretModelElement){const e=o.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(i.removeClass(V.map(r),e),this._currentFakeCaretModelElement=null)}const n=t.selection.getSelectedElement();if(!n)return;const a=o.mapper.toViewElement(n);if(!A(a,n,s))return;const c=S(t.selection);c&&(i.addClass(r(c),a),this._currentFakeCaretModelElement=n)})),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",((t,o,s)=>{s||e.model.change((e=>{e.removeSelectionAttribute(E)}))}))}_handleArrowKeyPress(e,t){const o=this.editor,s=o.model,i=s.document.selection,r=s.schema,a=o.editing.view,c=t.keyCode,l=(0,n.Zt)(c,o.locale.contentLanguageDirection),d=a.document.selection.getSelectedElement();let h;A(d,o.editing.mapper.toModelElement(d),r)?h=this._handleArrowKeyPressOnSelectedWidget(l):i.isCollapsed?h=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):t.shiftKey||(h=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),h&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,o=S(t.document.selection);return t.change((t=>{if(!o)return t.setSelectionAttribute(E,e?"after":"before"),!0;if(!(o===(e?"after":"before")))return t.removeSelectionAttribute(E),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,o=t.model,s=o.schema,i=t.plugins.get("Widget"),r=i._getObjectElementNextToSelection(e);return!!A(t.editing.mapper.toViewElement(r),r,s)&&(o.change((t=>{i._setSelectionOverElement(r),t.setSelectionAttribute(E,e?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,o=t.model,s=o.schema,i=t.editing.mapper,r=o.document.selection,n=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!A(i.toViewElement(n),n,s)&&(o.change((t=>{t.setSelection(n,"on"),t.setSelectionAttribute(E,e?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",((o,s)=>{const i=s.domTarget.closest(".ck-widget__type-around__button");if(!i)return;const r=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(i),n=function(e,t){const o=e.closest(".ck-widget");return t.mapDomToView(o)}(i,t.domConverter),a=e.editing.mapper.toModelElement(n);this._insertParagraph(a,r),s.preventDefault(),o.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,o=e.editing.view;this._listenToIfEnabled(o.document,"enter",((o,s)=>{if("atTarget"!=o.eventPhase)return;const i=t.getSelectedElement(),r=e.editing.mapper.toViewElement(i),n=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:A(r,i,n)&&(this._insertParagraph(i,s.isSoft?"before":"after"),a=!0),a&&(s.preventDefault(),o.stop())}),{context:m})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",((t,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=e.selection)}),{priority:"high"}),n.OB.isAndroid?this._listenToIfEnabled(e,"keydown",((e,t)=>{229==t.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()})):this._listenToIfEnabled(e,"compositionstart",(()=>{this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,o=e.model,s=o.schema;this._listenToIfEnabled(t.document,"delete",((t,i)=>{if("atTarget"!=t.eventPhase)return;const r=S(o.document.selection);if(!r)return;const n=i.direction,a=o.document.selection.getSelectedElement(),c="forward"==n;if("before"===r===c)e.execute("delete",{selection:o.createSelection(a,"on")});else{const t=s.getNearestSelectionRange(o.createPositionAt(a,r),n);if(t)if(t.isCollapsed){const i=o.createSelection(t.start);if(o.modifySelection(i,{direction:n}),i.focus.isEqual(t.start)){const e=function(e,t){let o=t;for(const s of t.getAncestors({parentFirst:!0})){if(s.childCount>1||e.isLimit(s))break;o=s}return o}(s,t.start.parent);o.deleteContent(o.createSelection(e,"on"),{doNotAutoparagraph:!0})}else o.change((o=>{o.setSelection(t),e.execute(c?"deleteForward":"delete")}))}else o.change((o=>{o.setSelection(t),e.execute(c?"deleteForward":"delete")}))}i.preventDefault(),t.stop()}),{context:m})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,o=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",((e,[s,i])=>{if(i&&!i.is("documentSelection"))return;const r=S(o);return r?(e.stop(),t.change((e=>{const i=o.getSelectedElement(),n=t.createPositionAt(i,r),a=e.createSelection(n),c=t.insertContent(s,a);return e.setSelection(a),c}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",((e,o)=>{const[,s,i={}]=o;if(s&&!s.is("documentSelection"))return;const r=S(t);r&&(i.findOptimalPosition=r,o[3]=i)}),{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",((e,[o])=>{if(o&&!o.is("documentSelection"))return;S(t)&&e.stop()}),{priority:"high"})}}function N(e){const t=e.model;return(o,s)=>{const i=s.keyCode==n.Do.arrowup,r=s.keyCode==n.Do.arrowdown,a=s.shiftKey,c=t.document.selection;if(!i&&!r)return;const l=r;if(a&&function(e,t){return!e.isCollapsed&&e.isBackward==t}(c,l))return;const d=function(e,t,o){const s=e.model;if(o){const e=t.isCollapsed?t.focus:t.getLastPosition(),o=z(s,e,"forward");if(!o)return null;const i=s.createRange(e,o),r=F(s.schema,i,"backward");return r?s.createRange(e,r):null}{const e=t.isCollapsed?t.focus:t.getFirstPosition(),o=z(s,e,"backward");if(!o)return null;const i=s.createRange(o,e),r=F(s.schema,i,"forward");return r?s.createRange(r,e):null}}(e,c,l);if(d){if(d.isCollapsed){if(c.isCollapsed)return;if(a)return}(d.isCollapsed||function(e,t,o){const s=e.model,i=e.view.domConverter;if(o){const e=s.createSelection(t.start);s.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=s.createRange(e.focus,t.end))}const r=e.mapper.toViewRange(t),a=i.viewRangeToDom(r),c=n.UL.getDomRangeRects(a);let l;for(const e of c)if(void 0!==l){if(Math.round(e.top)>=l)return!1;l=Math.max(l,Math.round(e.bottom))}else l=Math.round(e.bottom);return!0}(e,d,l))&&(t.change((e=>{const o=l?d.end:d.start;if(a){const s=t.createSelection(c.anchor);s.setFocus(o),e.setSelection(s)}else e.setSelection(o)})),o.stop(),s.preventDefault(),s.stopPropagation())}}}function z(e,t,o){const s=e.schema,i=e.createRangeIn(t.root),r="forward"==o?"elementStart":"elementEnd";for(const{previousPosition:e,item:n,type:a}of i.getWalker({startPosition:t,direction:o})){if(s.isLimit(n)&&!s.isInline(n))return e;if(a==r&&s.isBlock(n))return null}return null}function F(e,t,o){const s="backward"==o?t.end:t.start;if(e.checkChild(s,"$text"))return s;for(const{nextPosition:s}of t.getWalker({direction:o}))if(e.checkChild(s,"$text"))return s;return null}var L=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widget.css"),Z={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};R()(L.Z,Z);L.Z.locals;class W extends s.Sy{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[D,r.HG]}init(){const e=this.editor,t=e.editing.view,o=t.document;this.editor.editing.downcastDispatcher.on("selection",((t,o,s)=>{const i=s.writer,r=o.selection;if(r.isCollapsed)return;const n=r.getSelectedElement();if(!n)return;const a=e.editing.mapper.toViewElement(n);m(a)&&s.consumable.consume(r,"selection")&&i.setSelection(i.createRangeOn(a),{fake:!0,label:y(a)})})),this.editor.editing.downcastDispatcher.on("selection",((e,t,o)=>{this._clearPreviouslySelectedWidgets(o.writer);const s=o.writer,i=s.document.selection;let r=null;for(const e of i.getRanges())for(const t of e){const e=t.item;m(e)&&!$(e,r)&&(s.addClass(g,e),this._previouslySelected.add(e),r=e)}}),{priority:"low"}),t.addObserver(i.dM),this.listenTo(o,"mousedown",((...e)=>this._onMousedown(...e))),this.listenTo(o,"arrowKey",((...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)}),{context:[m,"$text"]}),this.listenTo(o,"arrowKey",((...e)=>{this._preventDefaultOnArrowKeyPress(...e)}),{context:"$root"}),this.listenTo(o,"arrowKey",N(this.editor.editing),{context:"$text"}),this.listenTo(o,"delete",((e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())}),{context:"$root"})}_onMousedown(e,t){const o=this.editor,s=o.editing.view,i=s.document;let r=t.target;if(t.domEvent.detail>=3)return void(this._selectBlockContent(r)&&t.preventDefault());if(function(e){let t=e;for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(m(t))return!1;t=t.parent}return!1}(r))return;if(!m(r)&&(r=r.findAncestor(m),!r))return;n.OB.isAndroid&&t.preventDefault(),i.isFocused||s.focus();const a=o.editing.mapper.toModelElement(r);this._setSelectionOverElement(a)}_selectBlockContent(e){const t=this.editor,o=t.model,s=t.editing.mapper,r=o.schema,n=s.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),a=function(e,t){for(const o of e.getAncestors({includeSelf:!0,parentFirst:!0})){if(t.checkChild(o,"$text"))return o;if(t.isLimit(o)&&!t.isObject(o))break}return null}(s.toModelElement(n),o.schema);return!!a&&(o.change((e=>{const t=r.isLimit(a)?null:function(e,t){const o=new i.Po({startPosition:e});for(const{item:e}of o){if(t.isLimit(e)||!e.is("element"))return null;if(t.checkChild(e,"$text"))return e}return null}(e.createPositionAfter(a),r),o=e.createPositionAt(a,0),s=t?e.createPositionAt(t,0):e.createPositionAt(a,"end");e.setSelection(e.createRange(o,s))})),!0)}_handleSelectionChangeOnArrowKeyPress(e,t){const o=t.keyCode,s=this.editor.model,i=s.schema,r=s.document.selection,a=r.getSelectedElement(),c=(0,n.mA)(o,this.editor.locale.contentLanguageDirection),l="down"==c||"right"==c,d="up"==c||"down"==c;if(a&&i.isObject(a)){const o=l?r.getLastPosition():r.getFirstPosition(),n=i.getNearestSelectionRange(o,l?"forward":"backward");return void(n&&(s.change((e=>{e.setSelection(n)})),t.preventDefault(),e.stop()))}if(!r.isCollapsed&&!t.shiftKey){const o=r.getFirstPosition(),n=r.getLastPosition(),a=o.nodeAfter,c=n.nodeBefore;return void((a&&i.isObject(a)||c&&i.isObject(c))&&(s.change((e=>{e.setSelection(l?n:o)})),t.preventDefault(),e.stop()))}if(!r.isCollapsed)return;const h=this._getObjectElementNextToSelection(l);if(h&&i.isObject(h)){if(i.isInline(h)&&d)return;this._setSelectionOverElement(h),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const o=this.editor.model,s=o.schema,i=o.document.selection.getSelectedElement();i&&s.isObject(i)&&(t.preventDefault(),e.stop())}_handleDelete(e){const t=this.editor.model.document.selection;if(!this.editor.model.canEditAt(t))return;if(!t.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);return o?(this.editor.model.change((e=>{let s=t.anchor.parent;for(;s.isEmpty;){const t=s;s=t.parent,e.remove(t)}this._setSelectionOverElement(o)})),!0):void 0}_setSelectionOverElement(e){this.editor.model.change((t=>{t.setSelection(t.createRangeOn(e))}))}_getObjectElementNextToSelection(e){const t=this.editor.model,o=t.schema,s=t.document.selection,i=t.createSelection(s);if(t.modifySelection(i,{direction:e?"forward":"backward"}),i.isEqual(s))return null;const r=e?i.focus.nodeBefore:i.focus.nodeAfter;return r&&o.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(g,t);this._previouslySelected.clear()}}function $(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}class q extends s.Sy{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[a.WB]}static get pluginName(){return"WidgetToolbarRepository"}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",(t=>{(function(e){const t=e.getSelectedElement();return!(!t||!m(t))})(e.editing.view.document.selection)&&t.stop()}),{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(e.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(e.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:o,getRelatedElement:s,balloonClassName:i="ck-toolbar-container"}){if(!o.length)return void(0,n.KE)("widget-toolbar-no-items",{toolbarId:e});const r=this.editor,c=r.t,l=new a.jB(r.locale);if(l.ariaLabel=t||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new n.Bb("widget-toolbar-duplicated",this,{toolbarId:e});const d={view:l,getRelatedElement:s,balloonClassName:i,itemsConfig:o,initialized:!1};r.ui.addToolbar(l,{isContextual:!0,beforeFocus:()=>{const e=s(r.editing.view.document.selection);e&&this._showToolbar(d,e)},afterBlur:()=>{this._hideToolbar(d)}}),this._toolbarDefinitions.set(e,d)}_updateToolbarsVisibility(){let e=0,t=null,o=null;for(const s of this._toolbarDefinitions.values()){const i=s.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&i)if(this.editor.ui.focusTracker.isFocused){const r=i.getAncestors().length;r>e&&(e=r,t=i,o=s)}else this._isToolbarVisible(s)&&this._hideToolbar(s);else this._isToolbarInBalloon(s)&&this._hideToolbar(s)}o&&this._showToolbar(o,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?H(this.editor,t):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:U(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){const t=e.getRelatedElement(this.editor.editing.view.document.selection);H(this.editor,t)}})))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function H(e,t){const o=e.plugins.get("ContextualBalloon"),s=U(e,t);o.updatePosition(s)}function U(e,t){const o=e.editing.view,s=a.no.defaultPositions;return{target:o.domConverter.mapViewToDom(t),positions:[s.northArrowSouth,s.northArrowSouthWest,s.northArrowSouthEast,s.southArrowNorth,s.southArrowNorthWest,s.southArrowNorthEast,s.viewportStickyNorth]}}class G extends((0,n.Re)()){constructor(e){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=e,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(e,t,o){const s=new n.UL(t);this.activeHandlePosition=function(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const o of t)if(e.classList.contains(K(o)))return o}(e),this._referenceCoordinates=function(e,t){const o=new n.UL(e),s=t.split("-"),i={x:"right"==s[1]?o.right:o.left,y:"bottom"==s[0]?o.bottom:o.top};return i.x+=e.ownerDocument.defaultView.scrollX,i.y+=e.ownerDocument.defaultView.scrollY,i}(t,function(e){const t=e.split("-"),o={top:"bottom",bottom:"top",left:"right",right:"left"};return`${o[t[0]]}-${o[t[1]]}`}(this.activeHandlePosition)),this._originalWidth=s.width,this._originalHeight=s.height,this._aspectRatio=s.width/s.height;const i=o.style.width;i&&i.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(i):this._originalWidthPercents=function(e,t){const o=e.parentElement;let s=parseFloat(o.ownerDocument.defaultView.getComputedStyle(o).width);const i=5;let r=0,n=o;for(;isNaN(s);){if(n=n.parentElement,++r>i)return 0;s=parseFloat(o.ownerDocument.defaultView.getComputedStyle(n).width)}return t.width/s*100}(o,s)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function K(e){return`ck-widget__resizer__handle-${e}`}class J extends a.G7{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",(e=>e?`ck-orientation-${e}`:""))],style:{display:e.if("_isVisible","none",(e=>!e))}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",((e,t)=>null!==e&&null!==t)),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",((t,o,s)=>"px"===e.unit?`${t}×${o}`:`${s}%`)),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",((e,t,o)=>t<50||o<50?"above-center":e))}_dismiss(){this.unbind(),this._isVisible=!1}}var Y=Object.defineProperty,X=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,se=(e,t,o)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class ie extends((0,n.Re)()){constructor(e){super(),this._viewResizerWrapper=null,this._options=e,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",((e,t)=>e&&t)),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 e=this,t=this._options.viewElement;this._options.editor.editing.view.change((o=>{const s=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){const o=this.toDomElement(t);return e._appendHandles(o),e._appendSizeUI(o),o}));o.insert(o.createPositionAt(t,"end"),s),o.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=s,this.isVisible||this.hide()})),this.on("change:isVisible",(()=>{this.isVisible?(this.show(),this.redraw()):this.hide()}))}begin(e){this._state=new G(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change((e=>{const o=this._options.unit||"%",s=("%"===o?t.widthPercents:t.width)+o;e.setStyle("width",s,this._options.viewElement)}));const o=this._getHandleHost(),s=new n.UL(o),i=Math.round(s.width),r=Math.round(s.height),a=new n.UL(o);var c;t.width=Math.round(a.width),t.height=Math.round(a.height),this.redraw(s),this.state.update((c=((e,t)=>{for(var o in t||(t={}))te.call(t,o)&&se(e,o,t[o]);if(ee)for(var o of ee(t))oe.call(t,o)&&se(e,o,t[o]);return e})({},t),X(c,Q({handleHostWidth:i,handleHostHeight:r}))))}commit(){const e=this._options.unit||"%",t=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(t)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!((o=t)&&o.ownerDocument&&o.ownerDocument.contains(o)))return;var o;const s=t.parentElement,i=this._getHandleHost(),r=this._viewResizerWrapper,a=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let c;if(s.isSameNode(i)){const t=e||new n.UL(i);c=[t.width+"px",t.height+"px",void 0,void 0]}else c=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];"same"!==(0,n.Rt)(a,c)&&this._options.editor.editing.view.change((e=>{e.setStyle({width:c[0],height:c[1],left:c[2],top:c[3]},r)}))}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.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(e){const t=this.state,o={x:(s=e).pageX,y:s.pageY};var s;const i=!this._options.isCentered||this._options.isCentered(this),r={x:t._referenceCoordinates.x-(o.x+t.originalWidth),y:o.y-t.originalHeight-t._referenceCoordinates.y};i&&t.activeHandlePosition.endsWith("-right")&&(r.x=o.x-(t._referenceCoordinates.x+t.originalWidth)),i&&(r.x*=2);let n=Math.abs(t.originalWidth+r.x),a=Math.abs(t.originalHeight+r.y);return"width"==(n/t.aspectRatio>a?"width":"height")?a=n/t.aspectRatio:n=a*t.aspectRatio,{width:Math.round(n),height:Math.round(a),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*n*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const s of t)e.appendChild(new a.YS({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(o=s,`ck-widget__resizer__handle-${o}`)}}).render());var o}_appendSizeUI(e){this._sizeView=new J,this._sizeView.render(),e.appendChild(this._sizeView.element)}}var re=o("./node_modules/lodash-es/throttle.js"),ne=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgetresize.css"),ae={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};R()(ne.Z,ae);ne.Z.locals;class ce extends s.Sy{constructor(){super(...arguments),this._resizers=new Map}static get pluginName(){return"WidgetResize"}init(){const e=this.editor.editing,t=n.global.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(i.dM),this._observer=new((0,n.Xu)()),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=(0,re.Z)((()=>this.redrawSelectedResizer()),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[e,t]of this._resizers)e.isAttached()||(this._resizers.delete(e),t.destroy())}),{priority:"lowest"}),this._observer.listenTo(n.global.window,"resize",this._redrawSelectedResizerThrottled);const o=this.editor.editing.view.document.selection;o.on("change",(()=>{const e=o.getSelectedElement(),t=this.getResizerByViewElement(e)||null;t?this.select(t):this.deselect()}))}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawSelectedResizerThrottled.cancel()}select(e){this.deselect(),this.selectedResizer=e,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(e){const t=new ie(e),o=this.editor.plugins;if(t.attach(),o.has("WidgetToolbarRepository")){const e=o.get("WidgetToolbarRepository");t.on("begin",(()=>{e.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(()=>{e.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(()=>{e.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(e.viewElement,t);const s=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(s)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const o=t.domTarget;ie.isResizeHandle(o)&&(this._activeResizer=this._getResizerByHandle(o)||null,this._activeResizer&&(this._activeResizer.begin(o),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}},"./packages/ckeditor5-core/theme/icons/cancel.svg":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s='<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>'},"./packages/ckeditor5-core/theme/icons/check.svg":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s='<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>'},"./packages/ckeditor5-core/theme/icons/eraser.svg":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s='<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>'},"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":(e,t,o)=>{"use strict";var s,i=function(){return void 0===s&&(s=Boolean(window&&document&&document.all&&!window.atob)),s},r=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),n=[];function a(e){for(var t=-1,o=0;o<n.length;o++)if(n[o].identifier===e){t=o;break}return t}function c(e,t){for(var o={},s=[],i=0;i<e.length;i++){var r=e[i],c=t.base?r[0]+t.base:r[0],l=o[c]||0,d="".concat(c," ").concat(l);o[c]=l+1;var h=a(d),u={css:r[1],media:r[2],sourceMap:r[3]};-1!==h?(n[h].references++,n[h].updater(u)):n.push({identifier:d,updater:m(u,t),references:1}),s.push(d)}return s}function l(e){var t=document.createElement("style"),s=e.attributes||{};if(void 0===s.nonce){var i=o.nc;i&&(s.nonce=i)}if(Object.keys(s).forEach((function(e){t.setAttribute(e,s[e])})),"function"==typeof e.insert)e.insert(t);else{var n=r(e.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(t)}return t}var d,h=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function u(e,t,o,s){var i=o?"":s.media?"@media ".concat(s.media," {").concat(s.css,"}"):s.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var r=document.createTextNode(i),n=e.childNodes;n[t]&&e.removeChild(n[t]),n.length?e.insertBefore(r,n[t]):e.appendChild(r)}}function p(e,t,o){var s=o.css,i=o.media,r=o.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=s;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(s))}}var f=null,g=0;function m(e,t){var o,s,i;if(t.singleton){var r=g++;o=f||(f=l(t)),s=u.bind(null,o,r,!1),i=u.bind(null,o,r,!0)}else o=l(t),s=p.bind(null,o,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return s(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;s(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var o=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var s=0;s<o.length;s++){var i=a(o[s]);n[i].references--}for(var r=c(e,t),l=0;l<o.length;l++){var d=a(o[l]);0===n[d].references&&(n[d].updater(),n.splice(d,1))}o=r}}}},"./src/clipboard.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Clipboard:()=>F,ClipboardPipeline:()=>h,DragDrop:()=>B,DragDropBlockToolbar:()=>O,DragDropTarget:()=>b,PastePlainText:()=>z});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts"),r=o("./packages/ckeditor5-engine/src/index.ts");class n extends r.qZ{constructor(e){super(e),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const t=this.document;function o(e){return(o,s)=>{s.preventDefault();const r=s.dropRange?[s.dropRange]:null,n=new i.M3(t,e);t.fire(n,{dataTransfer:s.dataTransfer,method:o.name,targetRanges:r,target:s.target,domEvent:s.domEvent}),n.stop.called&&s.stopPropagation()}}this.listenTo(t,"paste",o("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",o("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",o("dragging"),{priority:"low"})}onDomEvent(e){const t="clipboardData"in e?e.clipboardData:e.dataTransfer,o="drop"==e.type||"paste"==e.type,s={dataTransfer:new r.tn(t,{cacheFiles:o})};"drop"!=e.type&&"dragover"!=e.type||(s.dropRange=function(e,t){const o=t.target.ownerDocument,s=t.clientX,i=t.clientY;let r;o.caretRangeFromPoint&&o.caretRangeFromPoint(s,i)?r=o.caretRangeFromPoint(s,i):t.rangeParent&&(r=o.createRange(),r.setStart(t.rangeParent,t.rangeOffset),r.collapse(!0));if(r)return e.domConverter.domRangeToView(r);return null}(this.view,e)),this.fire(e.type,e,s)}}const a=["figcaption","li"],c=["ol","ul"];function l(e){if(e.is("$text")||e.is("$textProxy"))return e.data;if(e.is("element","img")&&e.hasAttribute("alt"))return e.getAttribute("alt");if(e.is("element","br"))return"\n";let t="",o=null;for(const s of e.getChildren())t+=d(s,o)+l(s),o=s;return t}function d(e,t){return t?e.is("element","li")&&!e.isEmpty&&e.getChild(0).is("containerElement")||c.includes(e.name)&&c.includes(t.name)?"\n\n":e.is("containerElement")||t.is("containerElement")?a.includes(e.name)||a.includes(t.name)?"\n":"\n\n":"":""}class h extends s.Sy{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(n),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(e,t,o){const s=this.editor.model.getSelectedContent(t);this.fire("outputTransformation",{dataTransfer:e,content:s,method:o})}_setupPasteDrop(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document;this.listenTo(s,"clipboardInput",((t,o)=>{"paste"!=o.method||e.model.canEditAt(e.model.document.selection)||t.stop()}),{priority:"highest"}),this.listenTo(s,"clipboardInput",((e,t)=>{const s=t.dataTransfer;let r;if(t.content)r=t.content;else{let e="";s.getData("text/html")?e=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((e,t)=>1==t.length?" ":t)).replace(/<!--[\s\S]*?-->/g,"")}(s.getData("text/html")):s.getData("text/plain")&&(((n=(n=s.getData("text/plain")).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," ")).includes("</p><p>")||n.includes("<br>"))&&(n=`<p>${n}</p>`),e=n),r=this.editor.data.htmlProcessor.toView(e)}var n;const a=new i.M3(this,"inputTransformation");this.fire(a,{content:r,dataTransfer:s,targetRanges:t.targetRanges,method:t.method}),a.stop.called&&e.stop(),o.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((e,o)=>{if(o.content.isEmpty)return;const s=this.editor.data.toModel(o.content,"$clipboardHolder");0!=s.childCount&&(e.stop(),t.change((()=>{this.fire("contentInsertion",{content:s,method:o.method,dataTransfer:o.dataTransfer,targetRanges:o.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((e,o)=>{o.resultRange=t.insertContent(o.content)}),{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,o=e.editing.view.document,s=(e,o)=>{const s=o.dataTransfer;o.preventDefault(),this._fireOutputTransformationEvent(s,t.selection,e.name)};this.listenTo(o,"copy",s,{priority:"low"}),this.listenTo(o,"cut",((t,o)=>{e.model.canEditAt(e.model.document.selection)?s(t,o):o.preventDefault()}),{priority:"low"}),this.listenTo(this,"outputTransformation",((t,s)=>{const i=e.data.toView(s.content);o.fire("clipboardOutput",{dataTransfer:s.dataTransfer,content:i,method:s.method})}),{priority:"low"}),this.listenTo(o,"clipboardOutput",((o,s)=>{s.content.isEmpty||(s.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(s.content)),s.dataTransfer.setData("text/plain",l(s.content))),"cut"==s.method&&e.model.deleteContent(t.selection)}),{priority:"low"})}}var u=o("./packages/ckeditor5-widget/src/index.ts"),p=o("./packages/ckeditor5-ui/src/index.ts");const f=(0,i.nn)("px");class g extends p.G7{constructor(){super();const e=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",e.if("isVisible","ck-hidden",(e=>!e))],style:{left:e.to("left",(e=>f(e))),top:e.to("top",(e=>f(e))),width:e.to("width",(e=>f(e)))}}})}}var m=o("./node_modules/lodash-es/throttle.js");class b extends s.Sy{constructor(){super(...arguments),this.removeDropMarkerDelayed=(0,i.gw)((()=>this.removeDropMarker()),40),this._updateDropMarkerThrottled=(0,m.Z)((e=>this._updateDropMarker(e)),40),this._reconvertMarkerThrottled=(0,m.Z)((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0),this._dropTargetLineView=new g,this._domEmitter=new((0,i.Xu)()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:e}of this._scrollables.values())e.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(e,t,o,s,i,r){this.removeDropMarkerDelayed.cancel();const n=_(this.editor,e,t,o,s,i,r);if(n)return r&&r.containsRange(n)?this.removeDropMarker():void this._updateDropMarkerThrottled(n)}getFinalDropRange(e,t,o,s,i,r){const n=_(this.editor,e,t,o,s,i,r);return this.removeDropMarker(),n}removeDropMarker(){const e=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,e.markers.has("drop-target")&&e.change((e=>{e.removeMarker("drop-target")}))}_setupDropMarker(){const e=this.editor;e.ui.view.body.add(this._dropTargetLineView),e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:o})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(o);t.markerRange.isCollapsed?this._updateDropTargetLine(t.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){const t=this.editor,o=t.model.markers;t.model.change((t=>{o.has("drop-target")?o.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})}))}_createDropTargetPosition(e){return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){const t=this.toDomElement(e);return t.append("â ",e.createElement("span"),"â "),t}))}_updateDropTargetLine(e){const t=this.editor.editing,o=e.start.nodeBefore,s=e.start.nodeAfter,r=e.start.parent,n=o?t.mapper.toViewElement(o):null,a=n?t.view.domConverter.mapViewToDom(n):null,c=s?t.mapper.toViewElement(s):null,l=c?t.view.domConverter.mapViewToDom(c):null,d=t.mapper.toViewElement(r),h=t.view.domConverter.mapViewToDom(d),u=this._getScrollableRect(d),{scrollX:p,scrollY:f}=i.global.window,g=a?new i.UL(a):null,m=l?new i.UL(l):null,b=new i.UL(h).excludeScrollbarsAndBorders(),_=g?g.bottom:b.top,k=m?m.top:b.bottom,w=i.global.window.getComputedStyle(h),v=_<=k?(_+k)/2:k;if(u.top<v&&v<u.bottom){const e=b.left+parseFloat(w.paddingLeft),t=b.right-parseFloat(w.paddingRight),o=Math.max(e+p,u.left),s=Math.min(t+p,u.right);this._dropTargetLineView.set({isVisible:!0,left:o,top:v+f,width:s-o})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(e){const t=e.root.rootName;let o;if(this._scrollables.has(t))o=this._scrollables.get(t).domElement;else{o=function(e){let t=e;do{t=t.parentElement;const e=i.global.window.getComputedStyle(t).overflowY;if("auto"==e||"scroll"==e)break}while("BODY"!=t.tagName);return t}(this.editor.editing.view.domConverter.mapViewToDom(e)),this._domEmitter.listenTo(o,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const s=new i.do(o,this._reconvertMarkerThrottled);this._scrollables.set(t,{domElement:o,resizeObserver:s})}return new i.UL(o).excludeScrollbarsAndBorders()}}function _(e,t,o,s,i,r,n){const a=e.model,c=e.editing.mapper;let l=y(e,t);for(;l;){if(!r)if(a.schema.checkChild(l,"$text")){if(o){const t=o[0].start,r=c.toModelPosition(t);if(!n||Array.from(n.getItems()).every((e=>a.schema.checkChild(r,e)))){if(a.schema.checkChild(r,"$text"))return a.createRange(r);if(t)return w(e,y(e,t.parent),s,i)}}}else if(a.schema.isInline(l))return w(e,l,s,i);if(a.schema.isBlock(l))return w(e,l,s,i);if(a.schema.checkChild(l,"$block")){const t=Array.from(l.getChildren()).filter((t=>t.is("element")&&!k(e,t)));let o=0,r=t.length;if(0==r)return a.createRange(a.createPositionAt(l,"end"));for(;o<r-1;){const n=Math.floor((o+r)/2);"before"==v(e,t[n],s,i)?r=n:o=n}return w(e,t[o],s,i)}l=l.parent}return null}function k(e,t){const o=e.editing.mapper,s=e.editing.view.domConverter,r=o.toViewElement(t),n=s.mapViewToDom(r);return"none"!=i.global.window.getComputedStyle(n).float}function w(e,t,o,s){const i=e.model;return i.createRange(i.createPositionAt(t,v(e,t,o,s)))}function v(e,t,o,s){const r=e.editing.mapper,n=e.editing.view.domConverter,a=r.toViewElement(t),c=n.mapViewToDom(a),l=new i.UL(c);return e.model.schema.isInline(t)?o<(l.left+l.right)/2?"before":"after":s<(l.top+l.bottom)/2?"before":"after"}function y(e,t){const o=e.editing.mapper,s=e.editing.view,i=o.toModelElement(t);if(i)return i;const r=s.createPositionBefore(t),n=o.findMappedViewAncestor(r);return o.toModelElement(n)}var x=Object.defineProperty,P=Object.defineProperties,C=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,S=(e,t,o)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class O extends s.Sy{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new((0,i.Xu)())}static get pluginName(){return"DragDropBlockToolbar"}init(){const e=this.editor;if(this.listenTo(e,"change:isReadOnly",((e,t,o)=>{o?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")})),i.OB.isAndroid&&this.forceDisabled("noAndroidSupport"),e.plugins.has("BlockToolbar")){const t=e.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(t,"dragstart",((e,t)=>this._handleBlockDragStart(t))),this._domEmitter.listenTo(i.global.document,"dragover",((e,t)=>this._handleBlockDragging(t))),this._domEmitter.listenTo(i.global.document,"drop",((e,t)=>this._handleBlockDragging(t))),this._domEmitter.listenTo(i.global.document,"dragend",(()=>this._handleBlockDragEnd()),{useCapture:!0}),this.isEnabled&&t.setAttribute("draggable","true"),this.on("change:isEnabled",((e,o,s)=>{t.setAttribute("draggable",s?"true":"false")}))}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;const t=this.editor.model,o=t.document.selection,s=this.editor.editing.view,i=Array.from(o.getSelectedBlocks()),r=t.createRange(t.createPositionBefore(i[0]),t.createPositionAfter(i[i.length-1]));t.change((e=>e.setSelection(r))),this._isBlockDragging=!0,s.focus(),s.getObserver(n).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;const t=e.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),o=e.clientY,s=document.elementFromPoint(t,o),i=this.editor.editing.view;var r,a;s&&s.closest(".ck-editor__editable")&&i.getObserver(n).onDomEvent((r=((e,t)=>{for(var o in t||(t={}))E.call(t,o)&&S(e,o,t[o]);if(T)for(var o of T(t))A.call(t,o)&&S(e,o,t[o]);return e})({},e),a={type:e.type,dataTransfer:e.dataTransfer,target:s,clientX:t,clientY:o,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()},P(r,C(a))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var R=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),j=o.n(R),M=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-clipboard/theme/clipboard.css"),V={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(M.Z,V);M.Z.locals;class B extends s.Sy{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=(0,i.gw)((()=>this._clearDraggableAttributes()),40),this._blockMode=!1,this._domEmitter=new((0,i.Xu)())}static get pluginName(){return"DragDrop"}static get requires(){return[h,u.$L,b,O]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,t.addObserver(n),t.addObserver(r.dM),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",((e,t,o)=>{o?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((e,t,o)=>{o||this._finalizeDragging(!1)})),i.OB.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 e=this.editor,t=e.model,o=e.editing.view,s=o.document,r=e.plugins.get(b);this.listenTo(s,"dragstart",((e,o)=>{if(o.target&&o.target.is("editableElement"))return void o.preventDefault();if(this._prepareDraggedRange(o.target),!this._draggedRange)return void o.preventDefault();this._draggingUid=(0,i.hQ)(),o.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",o.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const s=t.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(o.dataTransfer,s,"dragstart");const{dataTransfer:r,domTarget:n,domEvent:a}=o,{clientX:c}=a;this._updatePreview({dataTransfer:r,domTarget:n,clientX:c}),o.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(s,"dragend",((e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)}),{priority:"low"}),this._domEmitter.listenTo(i.global.document,"dragend",(()=>{this._blockMode=!1}),{useCapture:!0}),this.listenTo(s,"dragenter",(()=>{this.isEnabled&&o.focus()})),this.listenTo(s,"dragleave",(()=>{r.removeDropMarkerDelayed()})),this.listenTo(s,"dragging",((e,t)=>{if(!this.isEnabled)return void(t.dataTransfer.dropEffect="none");const{clientX:o,clientY:s}=t.domEvent;r.updateDropMarker(t.target,t.targetRanges,o,s,this._blockMode,this._draggedRange),this._draggedRange||(t.dataTransfer.dropEffect="copy"),i.OB.isGecko||("copy"==t.dataTransfer.effectAllowed?t.dataTransfer.dropEffect="copy":["all","copyMove"].includes(t.dataTransfer.effectAllowed)&&(t.dataTransfer.dropEffect="move")),e.stop()}),{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document,o=e.plugins.get(b);this.listenTo(t,"clipboardInput",((t,s)=>{if("drop"!=s.method)return;const{clientX:i,clientY:r}=s.domEvent,n=o.getFinalDropRange(s.target,s.targetRanges,i,r,this._blockMode,this._draggedRange);if(!n)return this._finalizeDragging(!1),void t.stop();this._draggedRange&&this._draggingUid!=s.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==I(s.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(n,!0))return this._finalizeDragging(!1),void t.stop();s.targetRanges=[e.editing.mapper.toViewRange(n)]}),{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(h);e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o=t.targetRanges.map((e=>this.editor.editing.mapper.toModelRange(e)));this.editor.model.change((e=>e.setSelection(o)))}),{priority:"high"}),e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o="move"==I(t.dataTransfer),s=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(s&&o)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,o=t.document;this.listenTo(o,"mousedown",((s,r)=>{if(i.OB.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let n=D(r.target);if(i.OB.isBlink&&!e.isReadOnly&&!n&&!o.selection.isCollapsed){const e=o.selection.getSelectedElement();e&&(0,u.Qd)(e)||(n=o.selection.editableElement)}n&&(t.change((e=>{e.setAttribute("draggable","true",n)})),this._draggableElement=e.editing.mapper.toModelElement(n))})),this.listenTo(o,"mouseup",(()=>{i.OB.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change((t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_finalizeDragging(e){const t=this.editor,o=t.model;if(t.plugins.get(b).removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop")}this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(e&&this.isEnabled&&o.change((e=>{const t=o.createSelection(this._draggedRange);o.deleteContent(t,{doNotAutoparagraph:!0});const s=t.getFirstPosition().parent;s.isEmpty&&!o.schema.checkChild(s,"$text")&&o.schema.checkChild(s,"paragraph")&&e.insertElement("paragraph",s,0)})),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(e){const t=this.editor,o=t.model,s=o.document.selection,i=e?D(e):null;if(i){const e=t.editing.mapper.toModelElement(i);if(this._draggedRange=r.iE.fromRange(o.createRangeOn(e)),this._blockMode=o.schema.isBlock(e),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}return}if(s.isCollapsed&&!s.getFirstPosition().parent.isEmpty)return;const n=Array.from(s.getSelectedBlocks()),a=s.getFirstRange();if(0==n.length)return void(this._draggedRange=r.iE.fromRange(a));const c=N(o,n);if(n.length>1)this._draggedRange=r.iE.fromRange(c),this._blockMode=!0;else if(1==n.length){const e=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=r.iE.fromRange(e?c:a),this._blockMode=e}o.change((e=>e.setSelection(this._draggedRange.toRange())))}_updatePreview({dataTransfer:e,domTarget:t,clientX:o}){const s=this.editor.editing.view,r=s.document.selection.editableElement,n=s.domConverter.mapViewToDom(r),a=i.global.window.getComputedStyle(n);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=(0,i.az)(i.global.document,"div",{style:"position: fixed; left: -999999px;"}),i.global.document.body.appendChild(this._previewContainer));const c=new i.UL(n);if(n.contains(t))return;const l=parseFloat(a.paddingLeft),d=(0,i.az)(i.global.document,"div");d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-o+l}px`,i.OB.isiOS&&(d.style.backgroundColor="white"),d.innerHTML=e.getData("text/html"),e.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function I(e){return i.OB.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function D(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(u.Qd);if((0,u.Qd)(e))return e;const t=e.findAncestor((e=>(0,u.Qd)(e)||e.is("editableElement")));return(0,u.Qd)(t)?t:null}function N(e,t){const o=t[0],s=t[t.length-1],i=o.getCommonAncestor(s),r=e.createPositionBefore(o),n=e.createPositionAfter(s);if(i&&i.is("element")&&!e.schema.isLimit(i)){const t=e.createRangeOn(i),o=r.isTouching(t.start),s=n.isTouching(t.end);if(o&&s)return N(e,[i])}return e.createRange(r,n)}class z extends s.Sy{static get pluginName(){return"PastePlainText"}static get requires(){return[h]}init(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document,i=t.document.selection;let r=!1;o.addObserver(n),this.listenTo(s,"keydown",((e,t)=>{r=t.shiftKey})),e.plugins.get(h).on("contentInsertion",((e,o)=>{(r||function(e,t){if(e.childCount>1)return!1;const o=e.getChild(0);if(t.isObject(o))return!1;return 0==Array.from(o.getAttributeKeys()).length}(o.content,t.schema))&&t.change((e=>{const s=Array.from(i.getAttributes()).filter((([e])=>t.schema.getAttributeProperties(e).isFormatting));i.isCollapsed||t.deleteContent(i,{doNotAutoparagraph:!0}),s.push(...i.getAttributes());const r=e.createRangeIn(o.content);for(const t of r.getItems())t.is("$textProxy")&&e.setAttributes(s,t)}))}))}}class F extends s.Sy{static get pluginName(){return"Clipboard"}static get requires(){return[h,B,z]}}},"./src/core.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Command:()=>s.mY,Context:()=>s._y,ContextPlugin:()=>s.eO,DataApiMixin:()=>s.W9,Editor:()=>s.ML,ElementApiMixin:()=>s.xK,MultiCommand:()=>s.AJ,PendingActions:()=>s.lR,Plugin:()=>s.Sy,attachToForm:()=>s.P$,icons:()=>s.icons,secureSourceElement:()=>s.Nu});var s=o("./packages/ckeditor5-core/src/index.ts")},"./src/engine.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{AttributeElement:()=>s.kW,AttributeOperation:()=>s.Yy,BubblingEventInfo:()=>s.r7,ClickObserver:()=>s.KU,Conversion:()=>s.uz,DataController:()=>s.Yc,DataTransfer:()=>s.tn,DocumentFragment:()=>s.f4,DocumentSelection:()=>s.uj,DomConverter:()=>s.pG,DomEventData:()=>s.dK,DomEventObserver:()=>s.qZ,DowncastWriter:()=>s.qD,EditingController:()=>s.jH,Element:()=>s.W_,FocusObserver:()=>s.DX,History:()=>s.Ay,HtmlDataProcessor:()=>s.X5,InsertOperation:()=>s.IZ,LivePosition:()=>s.jP,LiveRange:()=>s.iE,MarkerOperation:()=>s.zj,Matcher:()=>s.xO,MergeOperation:()=>s.lB,Model:()=>s.Hn,MouseObserver:()=>s.dM,MoveOperation:()=>s.$z,NoOperation:()=>s.Pk,Observer:()=>s.Qj,OperationFactory:()=>s.Bz,Position:()=>s.Ly,Range:()=>s.e6,RenameOperation:()=>s.sN,Renderer:()=>s.Th,RootAttributeOperation:()=>s._o,RootOperation:()=>s.tF,SplitOperation:()=>s.qh,StylesProcessor:()=>s.A_,TabObserver:()=>s.aY,Text:()=>s.xv,TextProxy:()=>s.R,TreeWalker:()=>s.Po,UpcastWriter:()=>s.yj,View:()=>s.G7,ViewAttributeElement:()=>s.m1,ViewContainerElement:()=>s.By,ViewDocument:()=>s.Ux,ViewDocumentFragment:()=>s.y_,ViewEditableElement:()=>s.W2,ViewElement:()=>s.y9,ViewEmptyElement:()=>s.pc,ViewRawElement:()=>s.wx,ViewRootEditableElement:()=>s.FY,ViewText:()=>s.Xj,ViewTreeWalker:()=>s.rh,ViewUIElement:()=>s.dq,addBackgroundRules:()=>s.QR,addBorderRules:()=>s.sI,addMarginRules:()=>s.vt,addPaddingRules:()=>s.J8,disablePlaceholder:()=>s.DA,enablePlaceholder:()=>s.ID,findOptimalInsertionRange:()=>s.KT,getBoxSidesShorthandValue:()=>s.I8,getBoxSidesValueReducer:()=>s.mq,getBoxSidesValues:()=>s.oz,getFillerOffset:()=>s.YG,getPositionShorthandNormalizer:()=>s.m0,getShorthandValues:()=>s.uT,hidePlaceholder:()=>s.$_,isAttachment:()=>s.SB,isColor:()=>s.D5,isLength:()=>s.G9,isLineStyle:()=>s.IT,isPercentage:()=>s.zz,isPosition:()=>s.WK,isRepeat:()=>s.Zb,isURL:()=>s.PX,needsPlaceholder:()=>s.Q7,showPlaceholder:()=>s.NJ,transformSets:()=>s.Rf});var s=o("./packages/ckeditor5-engine/src/index.ts")},"./src/enter.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Enter:()=>s.C,ShiftEnter:()=>s.G});var s=o("./packages/ckeditor5-enter/src/index.ts")},"./src/paragraph.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Paragraph:()=>l,ParagraphButtonUI:()=>u});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class r extends s.mY{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){const e=this.editor.model,t=e.document,o=(0,i.Ps)(t.selection.getSelectedBlocks());this.value=!!o&&o.is("element","paragraph"),this.isEnabled=!!o&&n(o,e.schema)}execute(e={}){const t=this.editor.model,o=t.document,s=e.selection||o.selection;t.canEditAt(s)&&t.change((e=>{const o=s.getSelectedBlocks();for(const s of o)!s.is("element","paragraph")&&n(s,t.schema)&&e.rename(s,"paragraph")}))}}function n(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class a extends s.mY{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){const t=this.editor.model,o=e.attributes;let s=e.position;t.canEditAt(s)&&t.change((e=>{if(s=this._findPositionToInsertParagraph(s,e),!s)return;const i=e.createElement("paragraph");o&&t.schema.setAllowedAttributes(i,o,e),t.insertContent(i,s),e.setSelection(i,"in")}))}_findPositionToInsertParagraph(e,t){const o=this.editor.model;if(o.schema.checkChild(e,"paragraph"))return e;const s=o.schema.findAllowedParent(e,"paragraph");if(!s)return null;const i=e.parent,r=o.schema.checkChild(i,"$text");return i.isEmpty||r&&e.isAtEnd?o.createPositionAfter(i):!i.isEmpty&&r&&e.isAtStart?o.createPositionBefore(i):t.split(e,s).position}}const c=class extends s.Sy{static get pluginName(){return"Paragraph"}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new r(e)),e.commands.add("insertParagraph",new a(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>c.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let l=c;l.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var d=o("./packages/ckeditor5-ui/src/index.ts");const h=s.icons.paragraph;class u extends s.Sy{static get requires(){return[l]}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("paragraph",(o=>{const s=new d.r5(o),i=e.commands.get("paragraph");return s.label=t("Paragraph"),s.icon=h,s.tooltip=!0,s.isToggleable=!0,s.bind("isEnabled").to(i),s.bind("isOn").to(i,"value"),s.on("execute",(()=>{e.execute("paragraph")})),s}))}}},"./src/select-all.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{SelectAll:()=>h,SelectAllEditing:()=>c,SelectAllUI:()=>d});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class r extends s.mY{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let o=e.schema.getLimitElement(t);if(t.containsEntireContent(o)||!n(e.schema,o))do{if(o=o.parent,!o)return}while(!n(e.schema,o));e.change((e=>{e.setSelection(o,"in")}))}}function n(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const a=(0,i.Zz)("Ctrl+A");class c extends s.Sy{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new r(e)),this.listenTo(t,"keydown",((t,o)=>{(0,i.Cq)(o)===a&&(e.execute("selectAll"),o.preventDefault())}))}}var l=o("./packages/ckeditor5-ui/src/index.ts");class d extends s.Sy{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",(t=>{const o=e.commands.get("selectAll"),s=new l.r5(t),i=t.t;return s.set({label:i("Select all"),icon:'<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>',keystroke:"Ctrl+A",tooltip:!0}),s.bind("isEnabled").to(o,"isEnabled"),this.listenTo(s,"execute",(()=>{e.execute("selectAll"),e.editing.view.focus()})),s}))}}class h extends s.Sy{static get requires(){return[c,d]}static get pluginName(){return"SelectAll"}}},"./src/typing.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Delete:()=>s.HG,Input:()=>s.II,InsertTextCommand:()=>s.BT,TextTransformation:()=>s.cL,TextWatcher:()=>s.uL,TwoStepCaretMovement:()=>s.mh,Typing:()=>s.Mq,findAttributeRange:()=>s.VD,findAttributeRangeBound:()=>s.r9,getLastTextLine:()=>s.Up,inlineHighlight:()=>s.Im});var s=o("./packages/ckeditor5-typing/src/index.ts")},"./src/ui.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{AutocompleteView:()=>s.cH,BalloonPanelView:()=>s.no,BalloonToolbar:()=>s.Jf,BlockToolbar:()=>s.ee,BodyCollection:()=>s.BK,BoxedEditorUIView:()=>s.py,ButtonLabelView:()=>s.UR,ButtonView:()=>s.r5,ColorGridView:()=>s.J6,ColorPickerView:()=>s.J2,ColorSelectorView:()=>s.MI,ColorTileView:()=>s._9,ComponentFactory:()=>s._Y,ContextualBalloon:()=>s.WB,CssTransitionDisablerMixin:()=>s.RX,DropdownButtonView:()=>s.J0,DropdownPanelView:()=>s.G2,DropdownView:()=>s._n,EditorUI:()=>s.S8,EditorUIView:()=>s.fF,FilteredView:()=>s.LR,FocusCycler:()=>s.I0,FormHeaderView:()=>s.Gp,HighlightedTextView:()=>s.yd,IconView:()=>s.mO,IframeView:()=>s.VY,InlineEditableUIView:()=>s.r1,InputNumberView:()=>s.Xs,InputTextView:()=>s.pq,InputView:()=>s.Em,LabelView:()=>s.Dn,LabeledFieldView:()=>s.KP,ListItemGroupView:()=>s.YK,ListItemView:()=>s.dn,ListView:()=>s.Bv,Model:()=>s.Hn,Notification:()=>s.P_,SearchInfoView:()=>s.$W,SearchTextView:()=>s.ZU,SpinnerView:()=>s.RO,SplitButtonView:()=>s.Rm,StickyPanelView:()=>s.lp,SwitchButtonView:()=>s.BM,Template:()=>s.YS,TextareaView:()=>s.nC,ToolbarLineBreakView:()=>s.qR,ToolbarSeparatorView:()=>s.$y,ToolbarView:()=>s.jB,TooltipManager:()=>s.gE,View:()=>s.G7,ViewCollection:()=>s.vX,addKeyboardHandlingForGrid:()=>s.IJ,addListToDropdown:()=>s.Pm,addToolbarToDropdown:()=>s.up,clickOutsideHandler:()=>s.eC,createDropdown:()=>s.t9,createLabeledDropdown:()=>s.FH,createLabeledInputNumber:()=>s.sh,createLabeledInputText:()=>s.R,createLabeledTextarea:()=>s.s$,focusChildOnDropdownOpen:()=>s.Mh,getLocalizedColorOptions:()=>s.k6,icons:()=>s.ci,injectCssTransitionDisabler:()=>s.fe,normalizeColorOptions:()=>s.S1,normalizeSingleColorDefinition:()=>s.jY,normalizeToolbarConfig:()=>s.iw,submitHandler:()=>s.GI});var s=o("./packages/ckeditor5-ui/src/index.ts")},"./src/undo.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Undo:()=>w,UndoEditing:()=>g,UndoUI:()=>k});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-engine/src/index.ts"),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,l=(e,t,o)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class d extends s.mY{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(e.data,"set",((e,t)=>{t[1]=((e,t)=>{for(var o in t||(t={}))a.call(t,o)&&l(e,o,t[o]);if(n)for(var o of n(t))c.call(t,o)&&l(e,o,t[o]);return e})({},t[1]);const o=t[1];o.batchType||(o.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(e.data,"set",((e,t)=>{t[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(e){const t=this.editor.model.document.selection,o={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,o){const s=this.editor.model,i=s.document,r=[],n=e.map((e=>e.getTransformedByOperations(o))),a=n.flat();for(const e of n){const t=e.filter((e=>e.root!=i.graveyard)).filter((e=>!u(e,a)));t.length&&(h(t),r.push(t[0]))}r.length&&s.change((e=>{e.setSelection(r,{backward:t})}))}_undo(e,t){const o=this.editor.model,s=o.document;this._createdBatches.add(t);const r=e.operations.slice().filter((e=>e.isDocumentOperation));r.reverse();for(const e of r){const r=e.baseVersion+1,n=Array.from(s.history.getOperations(r)),a=(0,i.Rf)([e.getReversed()],n,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let r of a){const n=r.affectedSelectable;n&&!o.canEditAt(n)&&(r=new i.Pk(r.baseVersion)),t.addOperation(r),o.applyOperation(r),s.history.setOperationAsUndone(e,r)}}}}function h(e){e.sort(((e,t)=>e.start.isBefore(t.start)?-1:1));for(let t=1;t<e.length;t++){const o=e[t-1].getJoined(e[t],!0);o&&(t--,e.splice(t,2,o))}}function u(e,t){return t.some((t=>t!==e&&t.containsRange(e,!0)))}class p extends d{execute(e=null){const t=e?this._stack.findIndex((t=>t.batch==e)):this._stack.length-1,o=this._stack.splice(t,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,(()=>{this._undo(o.batch,s);const e=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,e)})),this.fire("revert",o.batch,s),this.refresh()}}class f extends d{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,(()=>{const o=e.batch.operations[e.batch.operations.length-1].baseVersion+1,s=this.editor.model.document.history.getOperations(o);this._restoreSelection(e.selection.ranges,e.selection.isBackward,s),this._undo(e.batch,t)})),this.refresh()}}class g extends s.Sy{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const e=this.editor;this._undoCommand=new p(e),this._redoCommand=new f(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",((e,t)=>{const o=t[0];if(!o.isDocumentOperation)return;const s=o.batch,i=this._redoCommand.createdBatches.has(s),r=this._undoCommand.createdBatches.has(s);this._batchRegistry.has(s)||(this._batchRegistry.add(s),s.isUndoable&&(i?this._undoCommand.addBatch(s):r||(this._undoCommand.addBatch(s),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((e,t,o)=>{this._redoCommand.addBatch(o)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}var m=o("./packages/ckeditor5-ui/src/index.ts");const b='<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>',_='<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 k extends s.Sy{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,o=e.t,s="ltr"==t.uiLanguageDirection?b:_,i="ltr"==t.uiLanguageDirection?_:b;this._addButton("undo",o("Undo"),"CTRL+Z",s),this._addButton("redo",o("Redo"),"CTRL+Y",i)}_addButton(e,t,o,s){const i=this.editor;i.ui.componentFactory.add(e,(r=>{const n=i.commands.get(e),a=new m.r5(r);return a.set({label:t,icon:s,keystroke:o,tooltip:!0}),a.bind("isEnabled").to(n,"isEnabled"),this.listenTo(a,"execute",(()=>{i.execute(e),i.editing.view.focus()})),a}))}}class w extends s.Sy{static get requires(){return[g,k]}static get pluginName(){return"Undo"}}},"./src/upload.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Base64UploadAdapter:()=>h,FileDialogButtonView:()=>l,FileRepository:()=>n,SimpleUploadAdapter:()=>w});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class r extends((0,i.Re)()){constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise(((o,s)=>{t.onload=()=>{const e=t.result;this._data=e,o(e)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)}))}abort(){this._reader.abort()}}class n extends s.Sy{constructor(){super(...arguments),this.loaders=new i.FE,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[s.lR]}init(){this.loaders.on("change",(()=>this._updatePendingAction())),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0))}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return(0,i.KE)("filerepository-no-upload-adapter"),null;const t=new a(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then((e=>{this._loadersMap.set(e,t)})).catch((()=>{})),t.on("change:uploaded",(()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e})),t.on("change:uploadTotal",(()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e})),t}destroyLoader(e){const t=e instanceof a?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach(((e,o)=>{e===t&&this._loadersMap.delete(o)}))}_updatePendingAction(){const e=this.editor.plugins.get(s.lR);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,o=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(o(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",o)}}else e.remove(this._pendingAction),this._pendingAction=null}}class a extends((0,i.Re)()){constructor(e,t){super(),this.id=(0,i.hQ)(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new r,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((e=>this._filePromiseWrapper?e:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new i.Bb("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((e=>this._reader.read(e))).then((e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e})).catch((e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e}))}upload(){if("idle"!=this.status)throw new i.Bb("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((e=>(this.uploadResponse=e,this.status="idle",e))).catch((e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e}))}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&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(e){const t={};return t.promise=new Promise(((o,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then((e=>{t.isFulfilled=!0,o(e)})).catch((e=>{t.isFulfilled=!0,s(e)}))})),t}}var c=o("./packages/ckeditor5-ui/src/index.ts");class l extends c.G7{constructor(e){super(e),this.buttonView=new c.r5(e),this._fileInputView=new d(e),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",(()=>{this._fileInputView.open()}))}focus(){this.buttonView.focus()}}class d extends c.G7{constructor(e){super(e),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}class h extends s.Sy{static get requires(){return[n]}static get pluginName(){return"Base64UploadAdapter"}init(){this.editor.plugins.get(n).createUploadAdapter=e=>new u(e)}}class u{constructor(e){this.loader=e}upload(){return new Promise(((e,t)=>{const o=this.reader=new window.FileReader;o.addEventListener("load",(()=>{e({default:o.result})})),o.addEventListener("error",(e=>{t(e)})),o.addEventListener("abort",(()=>{t()})),this.loader.file.then((e=>{o.readAsDataURL(e)}))}))}abort(){this.reader.abort()}}var p=Object.defineProperty,f=Object.defineProperties,g=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,k=(e,t,o)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class w extends s.Sy{static get requires(){return[n]}static get pluginName(){return"SimpleUploadAdapter"}init(){const e=this.editor.config.get("simpleUpload");e&&(e.uploadUrl?this.editor.plugins.get(n).createUploadAdapter=t=>new v(t,e):(0,i.KE)("simple-upload-adapter-missing-uploadurl"))}}class v{constructor(e,t){this.loader=e,this.options=t}upload(){return this.loader.file.then((e=>new Promise(((t,o)=>{this._initRequest(),this._initListeners(t,o,e),this._sendRequest(e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.options.uploadUrl,!0),e.responseType="json"}_initListeners(e,t,o){const s=this.xhr,i=this.loader,r=`Couldn't upload file: ${o.name}.`;s.addEventListener("error",(()=>t(r))),s.addEventListener("abort",(()=>t())),s.addEventListener("load",(()=>{const o=s.response;if(!o||o.error)return t(o&&o.error&&o.error.message?o.error.message:r);const i=o.url?{default:o.url}:o.urls;var n;e((n=((e,t)=>{for(var o in t||(t={}))b.call(t,o)&&k(e,o,t[o]);if(m)for(var o of m(t))_.call(t,o)&&k(e,o,t[o]);return e})({},o),f(n,g({urls:i}))))})),s.upload&&s.upload.addEventListener("progress",(e=>{e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}_sendRequest(e){const t=this.options.headers||{},o=this.options.withCredentials||!1;for(const e of Object.keys(t))this.xhr.setRequestHeader(e,t[e]);this.xhr.withCredentials=o;const s=new FormData;s.append("upload",e),this.xhr.send(s)}}},"./src/utils.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{CKEditorError:()=>s.Bb,Collection:()=>s.FE,Config:()=>s.De,DomEmitterMixin:()=>s.Xu,ElementReplacer:()=>s.a6,EmitterMixin:()=>s.ln,EventInfo:()=>s.M3,FocusTracker:()=>s.Rh,KeystrokeHandler:()=>s.VD,Locale:()=>s.go,ObservableMixin:()=>s.Re,Rect:()=>s.UL,ResizeObserver:()=>s.do,compareArrays:()=>s.Rt,count:()=>s.QX,createElement:()=>s.az,delay:()=>s.gw,diff:()=>s.Hg,diffToChanges:()=>s.Pk,env:()=>s.OB,fastDiff:()=>s.HZ,findClosestScrollableAncestor:()=>s.wm,first:()=>s.Ps,getAncestors:()=>s.dk,getBorderWidths:()=>s.lo,getCode:()=>s.Cq,getDataFromElement:()=>s.yy,getEnvKeystrokeText:()=>s.XU,getLanguageDirection:()=>s.j9,getLocalizedArrowKeyCodeDirection:()=>s.mA,getOptimalPosition:()=>s.xZ,global:()=>s.global,indexOf:()=>s.cq,insertAt:()=>s.ZQ,insertToPriorityArray:()=>s.VG,isArrowKeyCode:()=>s.dj,isCombiningMark:()=>s.tO,isComment:()=>s.C3,isForwardArrowKeyCode:()=>s.Zt,isHighSurrogateHalf:()=>s.Cb,isInsideCombinedSymbol:()=>s.pp,isInsideEmojiSequence:()=>s.YK,isInsideSurrogatePair:()=>s.to,isIterable:()=>s.TW,isLowSurrogateHalf:()=>s.nA,isNode:()=>s.UG,isRange:()=>s.bR,isText:()=>s.Gs,isValidAttributeName:()=>s.$b,isVisible:()=>s.pn,keyCodes:()=>s.Do,logError:()=>s.H,logWarning:()=>s.KE,mix:()=>s.CD,parseKeystroke:()=>s.Zz,priorities:()=>s.tA,releaseDate:()=>s.Dm,remove:()=>s.Od,scrollAncestorsToShowTarget:()=>s.F0,scrollViewportToShowTarget:()=>s.mR,setDataInElement:()=>s.jS,spliceArray:()=>s.x,toArray:()=>s.qo,toMap:()=>s.qL,toUnit:()=>s.nn,uid:()=>s.hQ,verifyLicense:()=>s.Tx,version:()=>s.i8});var s=o("./packages/ckeditor5-utils/src/index.ts")},"./src/watchdog.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{ContextWatchdog:()=>v,EditorWatchdog:()=>_,Watchdog:()=>s});class s{constructor(e){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof e.crashNumberLimit?e.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof e.minimumNonErrorTimePeriod?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const t="error"in e?e.error:e.reason;t instanceof Error&&this._handleError(t,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(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter((e=>e!==t))}_fire(e,...t){const o=this._listeners[e]||[];for(const e of o)e.apply(this,[null,...t])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t instanceof ErrorEvent?t.filename:void 0,lineno:t instanceof ErrorEvent?t.lineno:void 0,colno:t instanceof ErrorEvent?t.colno:void 0,date:this._now()});const o=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:o}),o?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(e){return e.is&&e.is("CKEditorError")&&void 0!==e.context&&null!==e.context&&"ready"===this.state&&this._isErrorComingFromThisItem(e)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function i(e,t=new Set){const o=[e],s=new Set;let i=0;for(;o.length>i;){const e=o[i++];if(!s.has(e)&&r(e)&&!t.has(e))if(s.add(e),Symbol.iterator in e)try{for(const t of e)o.push(t)}catch(e){}else for(const t in e)"defaultValue"!==t&&o.push(e[t])}return s}function r(e){const t=Object.prototype.toString.call(e),o=typeof e;return!("number"===o||"boolean"===o||"string"===o||"symbol"===o||"function"===o||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e._watchdogExcluded||e instanceof EventTarget||e instanceof Event)}function n(e,t,o=new Set){if(e===t&&("object"==typeof(s=e)&&null!==s))return!0;var s;const r=i(e,o),n=i(t,o);for(const e of r)if(n.has(e))return!0;return!1}var a=o("./node_modules/lodash-es/throttle.js"),c=o("./node_modules/lodash-es/isElement.js"),l=o("./node_modules/lodash-es/cloneDeepWith.js"),d=Object.defineProperty,h=Object.defineProperties,u=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(e,t,o)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))f.call(t,o)&&m(e,o,t[o]);if(p)for(var o of p(t))g.call(t,o)&&m(e,o,t[o]);return e};class _ extends s{constructor(e,t={}){super(t),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=(0,a.Z)(this._save.bind(this),"number"==typeof t.saveInterval?t.saveInterval:5e3),e&&(this._creator=(t,o)=>e.create(t,o)),this._destructor=e=>e.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((e=>{console.error("An error happened during the editor destroying.",e)})).then((()=>{const e={},t=[],o=this._config.rootsAttributes||{},s={};for(const[i,r]of Object.entries(this._data.roots))r.isLoaded?(e[i]="",s[i]=o[i]||{}):t.push(i);const i=(r=b({},this._config),n={extraPlugins:this._config.extraPlugins||[],lazyRoots:t,rootsAttributes:s,_watchdogInitialData:this._data},h(r,u(n)));var r,n;return delete i.initialData,i.extraPlugins.push(k),this._initUsingData?this.create(e,i,i.context):(0,c.Z)(this._elementOrData)?this.create(this._elementOrData,i,i.context):this.create(this._editables,i,i.context)})).then((()=>{this._fire("restart")}))}create(e=this._elementOrData,t=this._config,o){return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=e,this._initUsingData="string"==typeof e||Object.keys(e).length>0&&"string"==typeof Object.values(e)[0],this._config=this._cloneEditorConfiguration(t)||{},this._config.context=o,this._creator(e,this._config)))).then((e=>{this._editor=e,e.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=e.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 e=this._editor;return this._editor=null,e.model.document.off("change:data",this._throttledSave),this._destructor(e)}))}_save(){const e=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=e}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(e){this._excludedProps=e}_getData(){const e=this._editor,t=e.model.document.roots.filter((e=>e.isAttached()&&"$graveyard"!=e.rootName)),{plugins:o}=e,s=o.has("CommentsRepository")&&o.get("CommentsRepository"),i=o.has("TrackChanges")&&o.get("TrackChanges"),r={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};t.forEach((e=>{r.roots[e.rootName]={content:JSON.stringify(Array.from(e.getChildren())),attributes:JSON.stringify(Array.from(e.getAttributes())),isLoaded:e._isLoaded}}));for(const t of e.model.markers)t._affectsData&&(r.markers[t.name]={rangeJSON:t.getRange().toJSON(),usingOperation:t._managedUsingOperations,affectsData:t._affectsData});return s&&(r.commentThreads=JSON.stringify(s.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),i&&(r.suggestions=JSON.stringify(i.getSuggestions({toJSON:!0,skipNotAttached:!0}))),r}_getEditables(){const e={};for(const t of this.editor.model.document.getRootNames()){const o=this.editor.ui.getEditableElement(t);o&&(e[t]=o)}return e}_isErrorComingFromThisItem(e){return n(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return(0,l.Z)(e,((e,t)=>(0,c.Z)(e)||"context"===t?e:void 0))}}class k{constructor(e){this.editor=e,this._data=e.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",(e=>{e.stop(),this.editor.model.enqueueChange({isUndoable:!1},(e=>{this._restoreCollaborationData(),this._restoreEditorData(e)})),this.editor.data.fire("ready")}),{priority:999})}_createNode(e,t){if("name"in t){const o=e.createElement(t.name,t.attributes);if(t.children)for(const s of t.children)o._appendChild(this._createNode(e,s));return o}return e.createText(t.data,t.attributes)}_restoreEditorData(e){const t=this.editor;Object.entries(this._data.roots).forEach((([o,{content:s,attributes:i}])=>{const r=JSON.parse(s),n=JSON.parse(i),a=t.model.document.getRoot(o);for(const[t,o]of n)e.setAttribute(t,o,a);for(const t of r){const o=this._createNode(e,t);e.insert(o,a,"end")}})),Object.entries(this._data.markers).forEach((([o,s])=>{const{document:i}=t.model,r=s,{rangeJSON:{start:n,end:a}}=r,c=((e,t)=>{var o={};for(var s in e)f.call(e,s)&&t.indexOf(s)<0&&(o[s]=e[s]);if(null!=e&&p)for(var s of p(e))t.indexOf(s)<0&&g.call(e,s)&&(o[s]=e[s]);return o})(r,["rangeJSON"]),l=i.getRoot(n.root),d=e.createPositionFromPath(l,n.path,n.stickiness),h=e.createPositionFromPath(l,a.path,a.stickiness),u=e.createRange(d,h);e.addMarker(o,b({range:u},c))}))}_restoreCollaborationData(){const e=JSON.parse(this._data.commentThreads),t=JSON.parse(this._data.suggestions);e.forEach((e=>{const t=this.editor.config.get("collaboration.channelId"),o=this.editor.plugins.get("CommentsRepository");if(o.hasCommentThread(e.threadId)){o.getCommentThread(e.threadId).remove()}o.addCommentThread(b({channelId:t},e))})),t.forEach((e=>{const t=this.editor.plugins.get("TrackChangesEditing");if(t.hasSuggestion(e.id)){t.getSuggestion(e.id).attributes=e.attributes}else t.addSuggestionData(e)}))}}const w=Symbol("MainQueueId");class v extends s{constructor(e,t={}){super(t),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new y,this._watchdogConfig=t,this._creator=t=>e.create(t),this._destructor=e=>e.destroy(),this._actionQueues.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}get context(){return this._context}create(e={}){return this._actionQueues.enqueue(w,(()=>(this._contextConfig=e,this._create())))}getItem(e){return this._getWatchdog(e)._item}getItemState(e){return this._getWatchdog(e).state}add(e){const t=x(e);return Promise.all(t.map((e=>this._actionQueues.enqueue(e.id,(()=>{if("destroyed"===this.state)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 t;if(this._watchdogs.has(e.id))throw new Error(`Item with the given id is already added: '${e.id}'.`);if("editor"===e.type)return t=new _(null,this._watchdogConfig),t.setCreator(e.creator),t._setExcludedProperties(this._contextProps),e.destructor&&t.setDestructor(e.destructor),this._watchdogs.set(e.id,t),t.on("error",((o,{error:s,causesRestart:i})=>{this._fire("itemError",{itemId:e.id,error:s}),i&&this._actionQueues.enqueue(e.id,(()=>new Promise((o=>{const s=()=>{t.off("restart",s),this._fire("itemRestart",{itemId:e.id}),o()};t.on("restart",s)}))))})),t.create(e.sourceElementOrData,e.config,this._context);throw new Error(`Not supported item type: '${e.type}'.`)})))))}remove(e){const t=x(e);return Promise.all(t.map((e=>this._actionQueues.enqueue(e,(()=>{const t=this._getWatchdog(e);return this._watchdogs.delete(e),t.destroy()})))))}destroy(){return this._actionQueues.enqueue(w,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(w,(()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((e=>{console.error("An error happened during destroying the context or items.",e)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((e=>(this._context=e,this._contextProps=i(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 e=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((e=>e.destroy()))).then((()=>this._destructor(e)))}))}_getWatchdog(e){const t=this._watchdogs.get(e);if(!t)throw new Error(`Item with the given id was not registered: ${e}.`);return t}_isErrorComingFromThisItem(e){for(const t of this._watchdogs.values())if(t._isErrorComingFromThisItem(e))return!1;return n(this._context,e.context)}}class y{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e,t){const o=e===w;this._activeActions++,this._queues.get(e)||this._queues.set(e,Promise.resolve());const s=(o?Promise.all(this._queues.values()):Promise.all([this._queues.get(w),this._queues.get(e)])).then(t),i=s.catch((()=>{}));return this._queues.set(e,i),s.finally((()=>{this._activeActions--,this._queues.get(e)===i&&0===this._activeActions&&this._onEmptyCallbacks.forEach((e=>e()))}))}}function x(e){return Array.isArray(e)?e:[e]}},"./src/widget.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{WIDGET_CLASS_NAME:()=>s.s4,WIDGET_SELECTED_CLASS_NAME:()=>s.Uo,Widget:()=>s.$L,WidgetResize:()=>s.WR,WidgetToolbarRepository:()=>s.e8,WidgetTypeAround:()=>s.Ww,findOptimalInsertionRange:()=>s.KT,getLabel:()=>s.id,isWidget:()=>s.Qd,setHighlightHandling:()=>s.em,setLabel:()=>s.l6,toWidget:()=>s.XC,toWidgetEditable:()=>s.sC,viewToModelPositionOutsideModelElement:()=>s.$n});var s=o("./packages/ckeditor5-widget/src/index.ts")},"?7cdd":(e,t,o)=>{e.exports=o},"./node_modules/lodash-es/_ListCache.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});const s=function(){this.__data__=[],this.size=0};var i=o("./node_modules/lodash-es/eq.js");const r=function(e,t){for(var o=e.length;o--;)if((0,i.Z)(e[o][0],t))return o;return-1};var n=Array.prototype.splice;const a=function(e){var t=this.__data__,o=r(t,e);return!(o<0)&&(o==t.length-1?t.pop():n.call(t,o,1),--this.size,!0)};const c=function(e){var t=this.__data__,o=r(t,e);return o<0?void 0:t[o][1]};const l=function(e){return r(this.__data__,e)>-1};const d=function(e,t){var o=this.__data__,s=r(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this};function h(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}h.prototype.clear=s,h.prototype.delete=a,h.prototype.get=c,h.prototype.has=l,h.prototype.set=d;const u=h},"./node_modules/lodash-es/_Map.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_getNative.js"),i=o("./node_modules/lodash-es/_root.js");const r=(0,s.Z)(i.Z,"Map")},"./node_modules/lodash-es/_MapCache.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>x});const s=(0,o("./node_modules/lodash-es/_getNative.js").Z)(Object,"create");const i=function(){this.__data__=s?s(null):{},this.size=0};const r=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var n=Object.prototype.hasOwnProperty;const a=function(e){var t=this.__data__;if(s){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return n.call(t,e)?t[e]:void 0};var c=Object.prototype.hasOwnProperty;const l=function(e){var t=this.__data__;return s?void 0!==t[e]:c.call(t,e)};const d=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this};function h(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}h.prototype.clear=i,h.prototype.delete=r,h.prototype.get=a,h.prototype.has=l,h.prototype.set=d;const u=h;var p=o("./node_modules/lodash-es/_ListCache.js"),f=o("./node_modules/lodash-es/_Map.js");const g=function(){this.size=0,this.__data__={hash:new u,map:new(f.Z||p.Z),string:new u}};const m=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const b=function(e,t){var o=e.__data__;return m(t)?o["string"==typeof t?"string":"hash"]:o.map};const _=function(e){var t=b(this,e).delete(e);return this.size-=t?1:0,t};const k=function(e){return b(this,e).get(e)};const w=function(e){return b(this,e).has(e)};const v=function(e,t){var o=b(this,e),s=o.size;return o.set(e,t),this.size+=o.size==s?0:1,this};function y(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}y.prototype.clear=g,y.prototype.delete=_,y.prototype.get=k,y.prototype.has=w,y.prototype.set=v;const x=y},"./node_modules/lodash-es/_Stack.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});var s=o("./node_modules/lodash-es/_ListCache.js");const i=function(){this.__data__=new s.Z,this.size=0};const r=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o};const n=function(e){return this.__data__.get(e)};const a=function(e){return this.__data__.has(e)};var c=o("./node_modules/lodash-es/_Map.js"),l=o("./node_modules/lodash-es/_MapCache.js");const d=function(e,t){var o=this.__data__;if(o instanceof s.Z){var i=o.__data__;if(!c.Z||i.length<199)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new l.Z(i)}return o.set(e,t),this.size=o.size,this};function h(e){var t=this.__data__=new s.Z(e);this.size=t.size}h.prototype.clear=i,h.prototype.delete=r,h.prototype.get=n,h.prototype.has=a,h.prototype.set=d;const u=h},"./node_modules/lodash-es/_Symbol.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=o("./node_modules/lodash-es/_root.js").Z.Symbol},"./node_modules/lodash-es/_Uint8Array.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=o("./node_modules/lodash-es/_root.js").Z.Uint8Array},"./node_modules/lodash-es/_arrayLikeKeys.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});const s=function(e,t){for(var o=-1,s=Array(e);++o<e;)s[o]=t(o);return s};var i=o("./node_modules/lodash-es/isArguments.js"),r=o("./node_modules/lodash-es/isArray.js"),n=o("./node_modules/lodash-es/isBuffer.js"),a=o("./node_modules/lodash-es/_isIndex.js"),c=o("./node_modules/lodash-es/isTypedArray.js"),l=Object.prototype.hasOwnProperty;const d=function(e,t){var o=(0,r.Z)(e),d=!o&&(0,i.Z)(e),h=!o&&!d&&(0,n.Z)(e),u=!o&&!d&&!h&&(0,c.Z)(e),p=o||d||h||u,f=p?s(e.length,String):[],g=f.length;for(var m in e)!t&&!l.call(e,m)||p&&("length"==m||h&&("offset"==m||"parent"==m)||u&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,a.Z)(m,g))||f.push(m);return f}},"./node_modules/lodash-es/_arrayPush.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e,t){for(var o=-1,s=t.length,i=e.length;++o<s;)e[i+o]=t[o];return e}},"./node_modules/lodash-es/_assignValue.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o("./node_modules/lodash-es/_baseAssignValue.js"),i=o("./node_modules/lodash-es/eq.js"),r=Object.prototype.hasOwnProperty;const n=function(e,t,o){var n=e[t];r.call(e,t)&&(0,i.Z)(n,o)&&(void 0!==o||t in e)||(0,s.Z)(e,t,o)}},"./node_modules/lodash-es/_baseAssignValue.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_defineProperty.js");const i=function(e,t,o){"__proto__"==t&&s.Z?(0,s.Z)(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}},"./node_modules/lodash-es/_baseClone.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>Q});var s=o("./node_modules/lodash-es/_Stack.js");const i=function(e,t){for(var o=-1,s=null==e?0:e.length;++o<s&&!1!==t(e[o],o,e););return e};var r=o("./node_modules/lodash-es/_assignValue.js"),n=o("./node_modules/lodash-es/_copyObject.js"),a=o("./node_modules/lodash-es/keys.js");const c=function(e,t){return e&&(0,n.Z)(t,(0,a.Z)(t),e)};var l=o("./node_modules/lodash-es/keysIn.js");const d=function(e,t){return e&&(0,n.Z)(t,(0,l.Z)(t),e)};var h=o("./node_modules/lodash-es/_cloneBuffer.js"),u=o("./node_modules/lodash-es/_copyArray.js"),p=o("./node_modules/lodash-es/_getSymbols.js");const f=function(e,t){return(0,n.Z)(e,(0,p.Z)(e),t)};var g=o("./node_modules/lodash-es/_arrayPush.js"),m=o("./node_modules/lodash-es/_getPrototype.js"),b=o("./node_modules/lodash-es/stubArray.js");const _=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,g.Z)(t,(0,p.Z)(e)),e=(0,m.Z)(e);return t}:b.Z;const k=function(e,t){return(0,n.Z)(e,_(e),t)};var w=o("./node_modules/lodash-es/_getAllKeys.js"),v=o("./node_modules/lodash-es/_baseGetAllKeys.js");const y=function(e){return(0,v.Z)(e,l.Z,_)};var x=o("./node_modules/lodash-es/_getTag.js"),P=Object.prototype.hasOwnProperty;const C=function(e){var t=e.length,o=new e.constructor(t);return t&&"string"==typeof e[0]&&P.call(e,"index")&&(o.index=e.index,o.input=e.input),o};var T=o("./node_modules/lodash-es/_cloneArrayBuffer.js");const E=function(e,t){var o=t?(0,T.Z)(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)};var A=/\w*$/;const S=function(e){var t=new e.constructor(e.source,A.exec(e));return t.lastIndex=e.lastIndex,t};var O=o("./node_modules/lodash-es/_Symbol.js"),R=O.Z?O.Z.prototype:void 0,j=R?R.valueOf:void 0;const M=function(e){return j?Object(j.call(e)):{}};var V=o("./node_modules/lodash-es/_cloneTypedArray.js");const B=function(e,t,o){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,T.Z)(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return E(e,o);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,V.Z)(e,o);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return S(e);case"[object Symbol]":return M(e)}};var I=o("./node_modules/lodash-es/_initCloneObject.js"),D=o("./node_modules/lodash-es/isArray.js"),N=o("./node_modules/lodash-es/isBuffer.js"),z=o("./node_modules/lodash-es/isObjectLike.js");const F=function(e){return(0,z.Z)(e)&&"[object Map]"==(0,x.Z)(e)};var L=o("./node_modules/lodash-es/_baseUnary.js"),Z=o("./node_modules/lodash-es/_nodeUtil.js"),W=Z.Z&&Z.Z.isMap;const $=W?(0,L.Z)(W):F;var q=o("./node_modules/lodash-es/isObject.js");const H=function(e){return(0,z.Z)(e)&&"[object Set]"==(0,x.Z)(e)};var U=Z.Z&&Z.Z.isSet;const G=U?(0,L.Z)(U):H;var K="[object Arguments]",J="[object Function]",Y="[object Object]",X={};X[K]=X["[object Array]"]=X["[object ArrayBuffer]"]=X["[object DataView]"]=X["[object Boolean]"]=X["[object Date]"]=X["[object Float32Array]"]=X["[object Float64Array]"]=X["[object Int8Array]"]=X["[object Int16Array]"]=X["[object Int32Array]"]=X["[object Map]"]=X["[object Number]"]=X[Y]=X["[object RegExp]"]=X["[object Set]"]=X["[object String]"]=X["[object Symbol]"]=X["[object Uint8Array]"]=X["[object Uint8ClampedArray]"]=X["[object Uint16Array]"]=X["[object Uint32Array]"]=!0,X["[object Error]"]=X[J]=X["[object WeakMap]"]=!1;const Q=function e(t,o,n,p,g,m){var b,_=1&o,v=2&o,P=4&o;if(n&&(b=g?n(t,p,g,m):n(t)),void 0!==b)return b;if(!(0,q.Z)(t))return t;var T=(0,D.Z)(t);if(T){if(b=C(t),!_)return(0,u.Z)(t,b)}else{var E=(0,x.Z)(t),A=E==J||"[object GeneratorFunction]"==E;if((0,N.Z)(t))return(0,h.Z)(t,_);if(E==Y||E==K||A&&!g){if(b=v||A?{}:(0,I.Z)(t),!_)return v?k(t,d(b,t)):f(t,c(b,t))}else{if(!X[E])return g?t:{};b=B(t,E,_)}}m||(m=new s.Z);var S=m.get(t);if(S)return S;m.set(t,b),G(t)?t.forEach((function(s){b.add(e(s,o,n,s,t,m))})):$(t)&&t.forEach((function(s,i){b.set(i,e(s,o,n,i,t,m))}));var O=P?v?y:w.Z:v?l.Z:a.Z,R=T?void 0:O(t);return i(R||t,(function(s,i){R&&(s=t[i=s]),(0,r.Z)(b,i,e(s,o,n,i,t,m))})),b}},"./node_modules/lodash-es/_baseGetAllKeys.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_arrayPush.js"),i=o("./node_modules/lodash-es/isArray.js");const r=function(e,t,o){var r=t(e);return(0,i.Z)(e)?r:(0,s.Z)(r,o(e))}},"./node_modules/lodash-es/_baseGetTag.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});var s=o("./node_modules/lodash-es/_Symbol.js"),i=Object.prototype,r=i.hasOwnProperty,n=i.toString,a=s.Z?s.Z.toStringTag:void 0;const c=function(e){var t=r.call(e,a),o=e[a];try{e[a]=void 0;var s=!0}catch(e){}var i=n.call(e);return s&&(t?e[a]=o:delete e[a]),i};var l=Object.prototype.toString;const d=function(e){return l.call(e)};var h=s.Z?s.Z.toStringTag:void 0;const u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":h&&h in Object(e)?c(e):d(e)}},"./node_modules/lodash-es/_baseUnary.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e){return function(t){return e(t)}}},"./node_modules/lodash-es/_cloneArrayBuffer.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_Uint8Array.js");const i=function(e){var t=new e.constructor(e.byteLength);return new s.Z(t).set(new s.Z(e)),t}},"./node_modules/lodash-es/_cloneBuffer.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var s=o("./node_modules/lodash-es/_root.js"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=i&&"object"==typeof module&&module&&!module.nodeType&&module,n=r&&r.exports===i?s.Z.Buffer:void 0,a=n?n.allocUnsafe:void 0;const c=function(e,t){if(t)return e.slice();var o=e.length,s=a?a(o):new e.constructor(o);return e.copy(s),s}},"./node_modules/lodash-es/_cloneTypedArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_cloneArrayBuffer.js");const i=function(e,t){var o=t?(0,s.Z)(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}},"./node_modules/lodash-es/_copyArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e,t){var o=-1,s=e.length;for(t||(t=Array(s));++o<s;)t[o]=e[o];return t}},"./node_modules/lodash-es/_copyObject.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_assignValue.js"),i=o("./node_modules/lodash-es/_baseAssignValue.js");const r=function(e,t,o,r){var n=!o;o||(o={});for(var a=-1,c=t.length;++a<c;){var l=t[a],d=r?r(o[l],e[l],l,o,e):void 0;void 0===d&&(d=e[l]),n?(0,i.Z)(o,l,d):(0,s.Z)(o,l,d)}return o}},"./node_modules/lodash-es/_createAssigner.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>_});const s=function(e){return e};const i=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)};var r=Math.max;const n=function(e,t,o){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,n=-1,a=r(s.length-t,0),c=Array(a);++n<a;)c[n]=s[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=s[n];return l[t]=o(c),i(e,this,l)}};const a=function(e){return function(){return e}};var c=o("./node_modules/lodash-es/_defineProperty.js");const l=c.Z?function(e,t){return(0,c.Z)(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:s;var d=Date.now;const h=function(e){var t=0,o=0;return function(){var s=d(),i=16-(s-o);if(o=s,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(l);const u=function(e,t){return h(n(e,t,s),e+"")};var p=o("./node_modules/lodash-es/eq.js"),f=o("./node_modules/lodash-es/isArrayLike.js"),g=o("./node_modules/lodash-es/_isIndex.js"),m=o("./node_modules/lodash-es/isObject.js");const b=function(e,t,o){if(!(0,m.Z)(o))return!1;var s=typeof t;return!!("number"==s?(0,f.Z)(o)&&(0,g.Z)(t,o.length):"string"==s&&t in o)&&(0,p.Z)(o[t],e)};const _=function(e){return u((function(t,o){var s=-1,i=o.length,r=i>1?o[i-1]:void 0,n=i>2?o[2]:void 0;for(r=e.length>3&&"function"==typeof r?(i--,r):void 0,n&&b(o[0],o[1],n)&&(r=i<3?void 0:r,i=1),t=Object(t);++s<i;){var a=o[s];a&&e(t,a,s,r)}return t}))}},"./node_modules/lodash-es/_defineProperty.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_getNative.js");const i=function(){try{var e=(0,s.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},"./node_modules/lodash-es/_freeGlobal.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s="object"==typeof global&&global&&global.Object===Object&&global},"./node_modules/lodash-es/_getAllKeys.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o("./node_modules/lodash-es/_baseGetAllKeys.js"),i=o("./node_modules/lodash-es/_getSymbols.js"),r=o("./node_modules/lodash-es/keys.js");const n=function(e){return(0,s.Z)(e,r.Z,i.Z)}},"./node_modules/lodash-es/_getNative.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>_});var s=o("./node_modules/lodash-es/isFunction.js");const i=o("./node_modules/lodash-es/_root.js").Z["__core-js_shared__"];var r,n=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";const a=function(e){return!!n&&n in e};var c=o("./node_modules/lodash-es/isObject.js"),l=o("./node_modules/lodash-es/_toSource.js"),d=/^\[object .+?Constructor\]$/,h=Function.prototype,u=Object.prototype,p=h.toString,f=u.hasOwnProperty,g=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,c.Z)(e)||a(e))&&((0,s.Z)(e)?g:d).test((0,l.Z)(e))};const b=function(e,t){return null==e?void 0:e[t]};const _=function(e,t){var o=b(e,t);return m(o)?o:void 0}},"./node_modules/lodash-es/_getPrototype.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=(0,o("./node_modules/lodash-es/_overArg.js").Z)(Object.getPrototypeOf,Object)},"./node_modules/lodash-es/_getSymbols.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});const s=function(e,t){for(var o=-1,s=null==e?0:e.length,i=0,r=[];++o<s;){var n=e[o];t(n,o,e)&&(r[i++]=n)}return r};var i=o("./node_modules/lodash-es/stubArray.js"),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;const a=n?function(e){return null==e?[]:(e=Object(e),s(n(e),(function(t){return r.call(e,t)})))}:i.Z},"./node_modules/lodash-es/_getTag.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>x});var s=o("./node_modules/lodash-es/_getNative.js"),i=o("./node_modules/lodash-es/_root.js");const r=(0,s.Z)(i.Z,"DataView");var n=o("./node_modules/lodash-es/_Map.js");const a=(0,s.Z)(i.Z,"Promise");const c=(0,s.Z)(i.Z,"Set");const l=(0,s.Z)(i.Z,"WeakMap");var d=o("./node_modules/lodash-es/_baseGetTag.js"),h=o("./node_modules/lodash-es/_toSource.js"),u="[object Map]",p="[object Promise]",f="[object Set]",g="[object WeakMap]",m="[object DataView]",b=(0,h.Z)(r),_=(0,h.Z)(n.Z),k=(0,h.Z)(a),w=(0,h.Z)(c),v=(0,h.Z)(l),y=d.Z;(r&&y(new r(new ArrayBuffer(1)))!=m||n.Z&&y(new n.Z)!=u||a&&y(a.resolve())!=p||c&&y(new c)!=f||l&&y(new l)!=g)&&(y=function(e){var t=(0,d.Z)(e),o="[object Object]"==t?e.constructor:void 0,s=o?(0,h.Z)(o):"";if(s)switch(s){case b:return m;case _:return u;case k:return p;case w:return f;case v:return g}return t});const x=y},"./node_modules/lodash-es/_initCloneObject.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var s=o("./node_modules/lodash-es/isObject.js"),i=Object.create;const r=function(){function e(){}return function(t){if(!(0,s.Z)(t))return{};if(i)return i(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();var n=o("./node_modules/lodash-es/_getPrototype.js"),a=o("./node_modules/lodash-es/_isPrototype.js");const c=function(e){return"function"!=typeof e.constructor||(0,a.Z)(e)?{}:r((0,n.Z)(e))}},"./node_modules/lodash-es/_isIndex.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=/^(?:0|[1-9]\d*)$/;const i=function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&s.test(e))&&e>-1&&e%1==0&&e<t}},"./node_modules/lodash-es/_isPrototype.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=Object.prototype;const i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||s)}},"./node_modules/lodash-es/_nodeUtil.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var s=o("./node_modules/lodash-es/_freeGlobal.js"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=i&&"object"==typeof module&&module&&!module.nodeType&&module,n=r&&r.exports===i&&s.Z.process;const a=function(){try{var e=r&&r.require&&r.require("util").types;return e||n&&n.binding&&n.binding("util")}catch(e){}}()},"./node_modules/lodash-es/_overArg.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e,t){return function(o){return e(t(o))}}},"./node_modules/lodash-es/_root.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_freeGlobal.js"),i="object"==typeof self&&self&&self.Object===Object&&self;const r=s.Z||i||Function("return this")()},"./node_modules/lodash-es/_toSource.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=Function.prototype.toString;const i=function(e){if(null!=e){try{return s.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash-es/assignIn.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o("./node_modules/lodash-es/_copyObject.js"),i=o("./node_modules/lodash-es/_createAssigner.js"),r=o("./node_modules/lodash-es/keysIn.js");const n=(0,i.Z)((function(e,t){(0,s.Z)(t,(0,r.Z)(t),e)}))},"./node_modules/lodash-es/cloneDeepWith.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_baseClone.js");const i=function(e,t){return t="function"==typeof t?t:void 0,(0,s.Z)(e,5,t)}},"./node_modules/lodash-es/debounce.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>_});var s=o("./node_modules/lodash-es/isObject.js"),i=o("./node_modules/lodash-es/_root.js");const r=function(){return i.Z.Date.now()};var n=/\s/;const a=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t};var c=/^\s+/;const l=function(e){return e?e.slice(0,a(e)+1).replace(c,""):e};var d=o("./node_modules/lodash-es/isSymbol.js"),h=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt;const g=function(e){if("number"==typeof e)return e;if((0,d.Z)(e))return NaN;if((0,s.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,s.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var o=u.test(e);return o||p.test(e)?f(e.slice(2),o?2:8):h.test(e)?NaN:+e};var m=Math.max,b=Math.min;const _=function(e,t,o){var i,n,a,c,l,d,h=0,u=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var o=i,s=n;return i=n=void 0,h=t,c=e.apply(s,o)}function k(e){var o=e-d;return void 0===d||o>=t||o<0||p&&e-h>=a}function w(){var e=r();if(k(e))return v(e);l=setTimeout(w,function(e){var o=t-(e-d);return p?b(o,a-(e-h)):o}(e))}function v(e){return l=void 0,f&&i?_(e):(i=n=void 0,c)}function y(){var e=r(),o=k(e);if(i=arguments,n=this,d=e,o){if(void 0===l)return function(e){return h=e,l=setTimeout(w,t),u?_(e):c}(d);if(p)return clearTimeout(l),l=setTimeout(w,t),_(d)}return void 0===l&&(l=setTimeout(w,t)),c}return t=g(t)||0,(0,s.Z)(o)&&(u=!!o.leading,a=(p="maxWait"in o)?m(g(o.maxWait)||0,t):a,f="trailing"in o?!!o.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),h=0,i=d=n=l=void 0},y.flush=function(){return void 0===l?c:v(r())},y}},"./node_modules/lodash-es/eq.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e,t){return e===t||e!=e&&t!=t}},"./node_modules/lodash-es/escapeRegExp.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o("./node_modules/lodash-es/toString.js"),i=/[\\^$.*+?()[\]{}|]/g,r=RegExp(i.source);const n=function(e){return(e=(0,s.Z)(e))&&r.test(e)?e.replace(i,"\\$&"):e}},"./node_modules/lodash-es/isArguments.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObjectLike.js");const r=function(e){return(0,i.Z)(e)&&"[object Arguments]"==(0,s.Z)(e)};var n=Object.prototype,a=n.hasOwnProperty,c=n.propertyIsEnumerable;const l=r(function(){return arguments}())?r:function(e){return(0,i.Z)(e)&&a.call(e,"callee")&&!c.call(e,"callee")}},"./node_modules/lodash-es/isArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=Array.isArray},"./node_modules/lodash-es/isArrayLike.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/isFunction.js"),i=o("./node_modules/lodash-es/isLength.js");const r=function(e){return null!=e&&(0,i.Z)(e.length)&&!(0,s.Z)(e)}},"./node_modules/lodash-es/isBuffer.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var s=o("./node_modules/lodash-es/_root.js");const i=function(){return!1};var r="object"==typeof exports&&exports&&!exports.nodeType&&exports,n=r&&"object"==typeof module&&module&&!module.nodeType&&module,a=n&&n.exports===r?s.Z.Buffer:void 0;const c=(a?a.isBuffer:void 0)||i},"./node_modules/lodash-es/isElement.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/isObjectLike.js"),i=o("./node_modules/lodash-es/isPlainObject.js");const r=function(e){return(0,s.Z)(e)&&1===e.nodeType&&!(0,i.Z)(e)}},"./node_modules/lodash-es/isFunction.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObject.js");const r=function(e){if(!(0,i.Z)(e))return!1;var t=(0,s.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash-es/isLength.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./node_modules/lodash-es/isObject.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash-es/isObjectLike.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash-es/isPlainObject.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>h});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/_getPrototype.js"),r=o("./node_modules/lodash-es/isObjectLike.js"),n=Function.prototype,a=Object.prototype,c=n.toString,l=a.hasOwnProperty,d=c.call(Object);const h=function(e){if(!(0,r.Z)(e)||"[object Object]"!=(0,s.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var o=l.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&c.call(o)==d}},"./node_modules/lodash-es/isSymbol.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObjectLike.js");const r=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,s.Z)(e)}},"./node_modules/lodash-es/isTypedArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>h});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isLength.js"),r=o("./node_modules/lodash-es/isObjectLike.js"),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1;const a=function(e){return(0,r.Z)(e)&&(0,i.Z)(e.length)&&!!n[(0,s.Z)(e)]};var c=o("./node_modules/lodash-es/_baseUnary.js"),l=o("./node_modules/lodash-es/_nodeUtil.js"),d=l.Z&&l.Z.isTypedArray;const h=d?(0,c.Z)(d):a},"./node_modules/lodash-es/keys.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var s=o("./node_modules/lodash-es/_arrayLikeKeys.js"),i=o("./node_modules/lodash-es/_isPrototype.js");const r=(0,o("./node_modules/lodash-es/_overArg.js").Z)(Object.keys,Object);var n=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,i.Z)(e))return r(e);var t=[];for(var o in Object(e))n.call(e,o)&&"constructor"!=o&&t.push(o);return t};var c=o("./node_modules/lodash-es/isArrayLike.js");const l=function(e){return(0,c.Z)(e)?(0,s.Z)(e):a(e)}},"./node_modules/lodash-es/keysIn.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var s=o("./node_modules/lodash-es/_arrayLikeKeys.js"),i=o("./node_modules/lodash-es/isObject.js"),r=o("./node_modules/lodash-es/_isPrototype.js");const n=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t};var a=Object.prototype.hasOwnProperty;const c=function(e){if(!(0,i.Z)(e))return n(e);var t=(0,r.Z)(e),o=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&o.push(s);return o};var l=o("./node_modules/lodash-es/isArrayLike.js");const d=function(e){return(0,l.Z)(e)?(0,s.Z)(e,!0):c(e)}},"./node_modules/lodash-es/stubArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(){return[]}},"./node_modules/lodash-es/throttle.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/debounce.js"),i=o("./node_modules/lodash-es/isObject.js");const r=function(e,t,o){var r=!0,n=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return(0,i.Z)(o)&&(r="leading"in o?!!o.leading:r,n="trailing"in o?!!o.trailing:n),(0,s.Z)(e,t,{leading:r,maxWait:t,trailing:n})}},"./node_modules/lodash-es/toString.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var s=o("./node_modules/lodash-es/_Symbol.js");const i=function(e,t){for(var o=-1,s=null==e?0:e.length,i=Array(s);++o<s;)i[o]=t(e[o],o,e);return i};var r=o("./node_modules/lodash-es/isArray.js"),n=o("./node_modules/lodash-es/isSymbol.js"),a=s.Z?s.Z.prototype:void 0,c=a?a.toString:void 0;const l=function e(t){if("string"==typeof t)return t;if((0,r.Z)(t))return i(t,e)+"";if((0,n.Z)(t))return c?c.call(t):"";var o=t+"";return"0"==o&&1/t==-Infinity?"-0":o};const d=function(e){return null==e?"":l(e)}}},t={};function o(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={id:s,exports:{}};return e[s](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var s=o("?7cdd");(window.CKEditor5=window.CKEditor5||{}).dll=s})(),function(e){e.CKEditor5=e.CKEditor5||{};const t=["utils","core","engine","ui","clipboard","enter","paragraph","select-all","typing","undo","upload","widget","watchdog"];for(const o of t){const t=o.replace(/-([a-z])/g,((e,t)=>t.toUpperCase()));e.CKEditor5[t]=e.CKEditor5.dll(`./src/${o}.js`)}}(window); \ No newline at end of file + */(()=>{var e={"./node_modules/color-convert/conversions.js":(e,t,o)=>{const s=o("./node_modules/color-name/index.js"),i={};for(const e of Object.keys(s))i[s[e]]=e;const r={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"]}};e.exports=r;for(const e of Object.keys(r)){if(!("channels"in r[e]))throw new Error("missing channels property: "+e);if(!("labels"in r[e]))throw new Error("missing channel labels property: "+e);if(r[e].labels.length!==r[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:o}=r[e];delete r[e].channels,delete r[e].labels,Object.defineProperty(r[e],"channels",{value:t}),Object.defineProperty(r[e],"labels",{value:o})}r.rgb.hsl=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(t,o,s),r=Math.max(t,o,s),n=r-i;let a,c;r===i?a=0:t===r?a=(o-s)/n:o===r?a=2+(s-t)/n:s===r&&(a=4+(t-o)/n),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+r)/2;return c=r===i?0:l<=.5?n/(r+i):n/(2-r-i),[a,100*c,100*l]},r.rgb.hsv=function(e){let t,o,s,i,r;const n=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(n,a,c),d=l-Math.min(n,a,c),h=function(e){return(l-e)/6/d+.5};return 0===d?(i=0,r=0):(r=d/l,t=h(n),o=h(a),s=h(c),n===l?i=s-o:a===l?i=1/3+t-s:c===l&&(i=2/3+o-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*l]},r.rgb.hwb=function(e){const t=e[0],o=e[1];let s=e[2];const i=r.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(o,s));return s=1-1/255*Math.max(t,Math.max(o,s)),[i,100*n,100*s]},r.rgb.cmyk=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(1-t,1-o,1-s);return[100*((1-t-i)/(1-i)||0),100*((1-o-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*i]},r.rgb.keyword=function(e){const t=i[e];if(t)return t;let o,r=1/0;for(const t of Object.keys(s)){const i=s[t],c=(a=i,((n=e)[0]-a[0])**2+(n[1]-a[1])**2+(n[2]-a[2])**2);c<r&&(r=c,o=t)}var n,a;return o},r.keyword.rgb=function(e){return s[e]},r.rgb.xyz=function(e){let t=e[0]/255,o=e[1]/255,s=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;return[100*(.4124*t+.3576*o+.1805*s),100*(.2126*t+.7152*o+.0722*s),100*(.0193*t+.1192*o+.9505*s)]},r.rgb.lab=function(e){const t=r.rgb.xyz(e);let o=t[0],s=t[1],i=t[2];o/=95.047,s/=100,i/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*s-16,500*(o-s),200*(s-i)]},r.hsl.rgb=function(e){const t=e[0]/360,o=e[1]/100,s=e[2]/100;let i,r,n;if(0===o)return n=255*s,[n,n,n];i=s<.5?s*(1+o):s+o-s*o;const a=2*s-i,c=[0,0,0];for(let e=0;e<3;e++)r=t+1/3*-(e-1),r<0&&r++,r>1&&r--,n=6*r<1?a+6*(i-a)*r:2*r<1?i:3*r<2?a+(i-a)*(2/3-r)*6:a,c[e]=255*n;return c},r.hsl.hsv=function(e){const t=e[0];let o=e[1]/100,s=e[2]/100,i=o;const r=Math.max(s,.01);s*=2,o*=s<=1?s:2-s,i*=r<=1?r:2-r;return[t,100*(0===s?2*i/(r+i):2*o/(s+o)),100*((s+o)/2)]},r.hsv.rgb=function(e){const t=e[0]/60,o=e[1]/100;let s=e[2]/100;const i=Math.floor(t)%6,r=t-Math.floor(t),n=255*s*(1-o),a=255*s*(1-o*r),c=255*s*(1-o*(1-r));switch(s*=255,i){case 0:return[s,c,n];case 1:return[a,s,n];case 2:return[n,s,c];case 3:return[n,a,s];case 4:return[c,n,s];case 5:return[s,n,a]}},r.hsv.hsl=function(e){const t=e[0],o=e[1]/100,s=e[2]/100,i=Math.max(s,.01);let r,n;n=(2-o)*s;const a=(2-o)*i;return r=o*i,r/=a<=1?a:2-a,r=r||0,n/=2,[t,100*r,100*n]},r.hwb.rgb=function(e){const t=e[0]/360;let o=e[1]/100,s=e[2]/100;const i=o+s;let r;i>1&&(o/=i,s/=i);const n=Math.floor(6*t),a=1-s;r=6*t-n,0!=(1&n)&&(r=1-r);const c=o+r*(a-o);let l,d,h;switch(n){default:case 6:case 0:l=a,d=c,h=o;break;case 1:l=c,d=a,h=o;break;case 2:l=o,d=a,h=c;break;case 3:l=o,d=c,h=a;break;case 4:l=c,d=o,h=a;break;case 5:l=a,d=o,h=c}return[255*l,255*d,255*h]},r.cmyk.rgb=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,o*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i))]},r.xyz.rgb=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100;let i,r,n;return i=3.2406*t+-1.5372*o+-.4986*s,r=-.9689*t+1.8758*o+.0415*s,n=.0557*t+-.204*o+1.057*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[255*i,255*r,255*n]},r.xyz.lab=function(e){let t=e[0],o=e[1],s=e[2];t/=95.047,o/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*o-16,500*(t-o),200*(o-s)]},r.lab.xyz=function(e){let t,o,s;o=(e[0]+16)/116,t=e[1]/500+o,s=o-e[2]/200;const i=o**3,r=t**3,n=s**3;return o=i>.008856?i:(o-16/116)/7.787,t=r>.008856?r:(t-16/116)/7.787,s=n>.008856?n:(s-16/116)/7.787,t*=95.047,o*=100,s*=108.883,[t,o,s]},r.lab.lch=function(e){const t=e[0],o=e[1],s=e[2];let i;i=360*Math.atan2(s,o)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(o*o+s*s),i]},r.lch.lab=function(e){const t=e[0],o=e[1],s=e[2]/360*2*Math.PI;return[t,o*Math.cos(s),o*Math.sin(s)]},r.rgb.ansi16=function(e,t=null){const[o,s,i]=e;let n=null===t?r.rgb.hsv(e)[2]:t;if(n=Math.round(n/50),0===n)return 30;let a=30+(Math.round(i/255)<<2|Math.round(s/255)<<1|Math.round(o/255));return 2===n&&(a+=60),a},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){const t=e[0],o=e[1],s=e[2];if(t===o&&o===s)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(s/255*5)},r.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const o=.5*(1+~~(e>50));return[(1&t)*o*255,(t>>1&1)*o*255,(t>>2&1)*o*255]},r.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let o=t[0];3===t[0].length&&(o=o.split("").map((e=>e+e)).join(""));const s=parseInt(o,16);return[s>>16&255,s>>8&255,255&s]},r.rgb.hcg=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.max(Math.max(t,o),s),r=Math.min(Math.min(t,o),s),n=i-r;let a,c;return a=n<1?r/(1-n):0,c=n<=0?0:i===t?(o-s)/n%6:i===o?2+(s-t)/n:4+(t-o)/n,c/=6,c%=1,[360*c,100*n,100*a]},r.hsl.hcg=function(e){const t=e[1]/100,o=e[2]/100,s=o<.5?2*t*o:2*t*(1-o);let i=0;return s<1&&(i=(o-.5*s)/(1-s)),[e[0],100*s,100*i]},r.hsv.hcg=function(e){const t=e[1]/100,o=e[2]/100,s=t*o;let i=0;return s<1&&(i=(o-s)/(1-s)),[e[0],100*s,100*i]},r.hcg.rgb=function(e){const t=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[255*s,255*s,255*s];const i=[0,0,0],r=t%1*6,n=r%1,a=1-n;let c=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-o)*s,[255*(o*i[0]+c),255*(o*i[1]+c),255*(o*i[2]+c)]},r.hcg.hsv=function(e){const t=e[1]/100,o=t+e[2]/100*(1-t);let s=0;return o>0&&(s=t/o),[e[0],100*s,100*o]},r.hcg.hsl=function(e){const t=e[1]/100,o=e[2]/100*(1-t)+.5*t;let s=0;return o>0&&o<.5?s=t/(2*o):o>=.5&&o<1&&(s=t/(2*(1-o))),[e[0],100*s,100*o]},r.hcg.hwb=function(e){const t=e[1]/100,o=t+e[2]/100*(1-t);return[e[0],100*(o-t),100*(1-o)]},r.hwb.hcg=function(e){const t=e[1]/100,o=1-e[2]/100,s=o-t;let i=0;return s<1&&(i=(o-s)/(1-s)),[e[0],100*s,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=function(e){return[0,0,e[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),o=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(o.length)+o},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},"./node_modules/color-convert/index.js":(e,t,o)=>{const s=o("./node_modules/color-convert/conversions.js"),i=o("./node_modules/color-convert/route.js"),r={};Object.keys(s).forEach((e=>{r[e]={},Object.defineProperty(r[e],"channels",{value:s[e].channels}),Object.defineProperty(r[e],"labels",{value:s[e].labels});const t=i(e);Object.keys(t).forEach((o=>{const s=t[o];r[e][o]=function(e){const t=function(...t){const o=t[0];if(null==o)return o;o.length>1&&(t=o);const s=e(t);if("object"==typeof s)for(let e=s.length,t=0;t<e;t++)s[t]=Math.round(s[t]);return s};return"conversion"in e&&(t.conversion=e.conversion),t}(s),r[e][o].raw=function(e){const t=function(...t){const o=t[0];return null==o?o:(o.length>1&&(t=o),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(s)}))})),e.exports=r},"./node_modules/color-convert/route.js":(e,t,o)=>{const s=o("./node_modules/color-convert/conversions.js");function i(e){const t=function(){const e={},t=Object.keys(s);for(let o=t.length,s=0;s<o;s++)e[t[s]]={distance:-1,parent:null};return e}(),o=[e];for(t[e].distance=0;o.length;){const e=o.pop(),i=Object.keys(s[e]);for(let s=i.length,r=0;r<s;r++){const s=i[r],n=t[s];-1===n.distance&&(n.distance=t[e].distance+1,n.parent=e,o.unshift(s))}}return t}function r(e,t){return function(o){return t(e(o))}}function n(e,t){const o=[t[e].parent,e];let i=s[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)o.unshift(t[n].parent),i=r(s[t[n].parent][n],i),n=t[n].parent;return i.conversion=o,i}e.exports=function(e){const t=i(e),o={},s=Object.keys(t);for(let e=s.length,i=0;i<e;i++){const e=s[i];null!==t[e].parent&&(o[e]=n(e,t))}return o}},"./node_modules/color-name/index.js":e=>{"use strict";e.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]}},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-clipboard/theme/clipboard.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}',""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/placeholder.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/renderer.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/autocomplete/autocomplete.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/button.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/switchbutton.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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))}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/collapsible/collapsible.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorgrid/colorgrid.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorpicker/colorpicker.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorselector/colorselector.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/dropdown.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/listdropdown.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/splitbutton.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}',""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/editorui/editorui.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/formheader/formheader.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/icon/icon.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/input/input.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/label/label.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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))}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/list/list.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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%}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonpanel.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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%}',""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonrotator.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/fakepanel.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/stickypanel.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/search/search.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/spinner/spinner.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/textarea/textarea.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.id,".ck-textarea{overflow-x:hidden}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/toolbar.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/tooltip/tooltip.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/globals/globals.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widget.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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))}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgetresize.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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)}",""]);const r=i},"./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgettypearound.css":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/css-loader/dist/runtime/api.js"),i=o.n(s)()((function(e){return e[1]}));i.push([e.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}}',""]);const r=i},"./node_modules/css-loader/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=e(t);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,s){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(s)for(var r=0;r<this.length;r++){var n=this[r][0];null!=n&&(i[n]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);s&&i[c[0]]||(o&&(c[2]?c[2]="".concat(o," and ").concat(c[2]):c[2]=o),t.push(c))}},t}},"./packages/ckeditor5-core/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{mY:()=>n,_y:()=>d,eO:()=>h,W9:()=>_,ML:()=>g,xK:()=>k,AJ:()=>c,lR:()=>v,Sy:()=>i,P$:()=>b,icons:()=>C,Nu:()=>w});var s=o("./packages/ckeditor5-utils/src/index.ts");class i extends((0,s.Re)()){constructor(e){super(),this._disableStack=new Set,this.editor=e,this.set("isEnabled",!0)}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",r,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",r),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function r(e){e.return=!1,e.stop()}class n extends((0,s.Re)()){constructor(e){super(),this.editor=e,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(e,"change:isReadOnly",(()=>{this.refresh()})),this.on("set:isEnabled",(t=>{if(!this.affectsData)return;const o=e.model.document.selection,s=!("$graveyard"==o.getFirstPosition().root.rootName)&&e.model.canEditAt(o);(e.isReadOnly||this._isEnabledBasedOnSelection&&!s)&&(t.return=!1,t.stop())}),{priority:"highest"}),this.on("execute",(e=>{this.isEnabled||e.stop()}),{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(e){this._affectsData=e}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",a,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",a),this.refresh())}execute(...e){}destroy(){this.stopListening()}}function a(e){e.return=!1,e.stop()}class c extends n{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...e){const t=this._getFirstEnabledCommand();return!!t&&t.execute(e)}registerChildCommand(e,t={}){(0,s.VG)(this._childCommandsDefinitions,{command:e,priority:t.priority||"normal"}),e.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const e=this._childCommandsDefinitions.find((({command:e})=>e.isEnabled));return e&&e.command}}class l extends((0,s.ln)()){constructor(e,t=[],o=[]){super(),this._plugins=new Map,this._context=e,this._availablePlugins=new Map;for(const e of t)e.pluginName&&this._availablePlugins.set(e.pluginName,e);this._contextPlugins=new Map;for(const[e,t]of o)this._contextPlugins.set(e,t),this._contextPlugins.set(t,e),e.pluginName&&this._availablePlugins.set(e.pluginName,e)}*[Symbol.iterator](){for(const e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new s.Bb("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e,t=[],o=[]){const i=this,r=this._context;!function e(t,o=new Set){t.forEach((t=>{c(t)&&(o.has(t)||(o.add(t),t.pluginName&&!i._availablePlugins.has(t.pluginName)&&i._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,o)))}))}(e),u(e);const n=[...function e(t,o=new Set){return t.map((e=>c(e)?e:i._availablePlugins.get(e))).reduce(((t,s)=>o.has(s)?t:(o.add(s),s.requires&&(u(s.requires,s),e(s.requires,o).forEach((e=>t.add(e)))),t.add(s))),new Set)}(e.filter((e=>!d(e,t))))];!function(e,t){for(const o of t){if("function"!=typeof o)throw new s.Bb("plugincollection-replace-plugin-invalid-type",null,{pluginItem:o});const t=o.pluginName;if(!t)throw new s.Bb("plugincollection-replace-plugin-missing-name",null,{pluginItem:o});if(o.requires&&o.requires.length)throw new s.Bb("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});const r=i._availablePlugins.get(t);if(!r)throw new s.Bb("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});const n=e.indexOf(r);if(-1===n){if(i._contextPlugins.has(r))return;throw new s.Bb("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(r.requires&&r.requires.length)throw new s.Bb("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(n,1,o),i._availablePlugins.set(t,o)}}(n,o);const a=n.map((e=>{let t=i._contextPlugins.get(e);return t=t||new e(r),i._add(e,t),t}));return p(a,"init").then((()=>p(a,"afterInit"))).then((()=>a));function c(e){return"function"==typeof e}function l(e){return c(e)&&!!e.isContextPlugin}function d(e,t){return t.some((t=>t===e||(h(e)===t||h(t)===e)))}function h(e){return c(e)?e.pluginName||e.name:e}function u(e,o=null){e.map((e=>c(e)?e:i._availablePlugins.get(e)||e)).forEach((e=>{!function(e,t){if(c(e))return;if(t)throw new s.Bb("plugincollection-soft-required",r,{missingPlugin:e,requiredBy:h(t)});throw new s.Bb("plugincollection-plugin-not-found",r,{plugin:e})}(e,o),function(e,t){if(!l(t))return;if(l(e))return;throw new s.Bb("plugincollection-context-required",r,{plugin:h(e),requiredBy:h(t)})}(e,o),function(e,o){if(!o)return;if(!d(e,t))return;throw new s.Bb("plugincollection-required",r,{plugin:h(e),requiredBy:h(o)})}(e,o)}))}function p(e,t){return e.reduce(((e,o)=>o[t]?i._contextPlugins.has(o)?e:e.then(o[t].bind(o)):e),Promise.resolve())}}destroy(){const e=[];for(const[,t]of this)"function"!=typeof t.destroy||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const o=e.pluginName;if(o){if(this._plugins.has(o))throw new s.Bb("plugincollection-plugin-name-conflict",null,{pluginName:o,plugin1:this._plugins.get(o).constructor,plugin2:e});this._plugins.set(o,t)}}}class d{constructor(e){this._contextOwner=null,this.config=new s.De(e,this.constructor.defaultConfig);const t=this.constructor.builtinPlugins;this.config.define("plugins",t),this.plugins=new l(this,t);const o=this.config.get("language")||{};this.locale=new s.go({uiLanguage:"string"==typeof o?o:o.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new s.FE}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const o of e.concat(t)){if("function"!=typeof o)throw new s.Bb("context-initplugins-constructor-only",null,{Plugin:o});if(!0!==o.isContextPlugin)throw new s.Bb("context-initplugins-invalid-plugin",null,{Plugin:o})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,(e=>e.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(e,t){if(this._contextOwner)throw new s.Bb("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise((t=>{const o=new this(e);t(o.initPlugins().then((()=>o)))}))}}class h extends((0,s.Re)()){constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class u extends s.VD{constructor(e){super(),this.editor=e}set(e,t,o={}){if("string"==typeof t){const e=t;t=(t,o)=>{this.editor.execute(e),o()}}super.set(e,t,o)}}var p=o("./packages/ckeditor5-engine/src/index.ts");class f{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const o=this.get(e);if(!o)throw new s.Bb("commandcollection-command-not-found",this,{commandName:e});return o.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}class g extends((0,s.Re)()){constructor(e={}){super();const t=this.constructor,o=e.language||t.defaultConfig&&t.defaultConfig.language;this._context=e.context||new d({language:o}),this._context._addEditor(this,!e.context);const i=Array.from(t.builtinPlugins||[]);this.config=new s.De(e,t.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new l(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new f,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new p.Hn,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const r=new p.A_;this.data=new p.Yc(this.model,r),this.editing=new p.jH(this.model,r),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new p.uz([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 u(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new s.Bb("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new s.Bb("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new s.Bb("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const e=this.config,t=e.get("plugins"),o=e.get("removePlugins")||[],s=e.get("extraPlugins")||[],i=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(s),o,i)}destroy(){let e=Promise.resolve();return"initializing"==this.state&&(e=new Promise((e=>this.once("ready",e)))),e.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(e,...t){try{return this.commands.execute(e,...t)}catch(e){s.Bb.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}static create(...e){throw new Error("This is an abstract method.")}}var m=o("./node_modules/lodash-es/isFunction.js");function b(e){if(!(0,m.Z)(e.updateSourceElement))throw new s.Bb("attachtoform-missing-elementapi-interface",e);const t=e.sourceElement;if(function(e){return!!e&&"textarea"===e.tagName.toLowerCase()}(t)&&t.form){let o;const s=t.form,i=()=>e.updateSourceElement();(0,m.Z)(s.submit)&&(o=s.submit,s.submit=()=>{i(),o.apply(s)}),s.addEventListener("submit",i),e.on("destroy",(()=>{s.removeEventListener("submit",i),o&&(s.submit=o)}))}}function _(e){return class extends e{setData(e){this.data.set(e)}getData(e){return this.data.get(e)}}}{const e=_(Object);_.setData=e.prototype.setData,_.getData=e.prototype.getData}function k(e){return class extends e{updateSourceElement(e){if(!this.sourceElement)throw new s.Bb("editor-missing-sourceelement",this);const t=this.config.get("updateSourceElementOnDestroy"),o=this.sourceElement instanceof HTMLTextAreaElement;if(!t&&!o)return void(0,s.jS)(this.sourceElement,"");const i="string"==typeof e?e:this.data.get();(0,s.jS)(this.sourceElement,i)}}}function w(e,t){if(t.ckeditorInstance)throw new s.Bb("editor-source-element-already-used",e);t.ckeditorInstance=e,e.once("destroy",(()=>{delete t.ckeditorInstance}))}k.updateSourceElement=k(Object).prototype.updateSourceElement;class v extends h{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new s.FE({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new s.Bb("pendingactions-add-invalid-message",this);const t=new((0,s.Re)());return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}var y=o("./packages/ckeditor5-core/theme/icons/cancel.svg");var x=o("./packages/ckeditor5-core/theme/icons/check.svg");var P=o("./packages/ckeditor5-core/theme/icons/eraser.svg");const C={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:y.Z,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:x.Z,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:P.Z,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>\n',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>'}},"./packages/ckeditor5-engine/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{kW:()=>Ge,Yy:()=>Xi,r7:()=>Fe,KU:()=>En,uz:()=>Bi,Yc:()=>Vi,tn:()=>Eo,f4:()=>on,uj:()=>vs,pG:()=>Nt,dK:()=>qt,qZ:()=>Ht,qD:()=>rt,jH:()=>ri,W_:()=>zo,DX:()=>Po,Ay:()=>jr,X5:()=>Mi,IZ:()=>Ui,jP:()=>mr,iE:()=>bs,zj:()=>Ji,xO:()=>C,lB:()=>Ki,Hn:()=>Cn,dM:()=>An,$z:()=>Hi,Pk:()=>Qi,Qj:()=>Wt,Bz:()=>ir,Ly:()=>Zo,e6:()=>Go,sN:()=>er,Th:()=>Et,_o:()=>tr,tF:()=>or,qh:()=>Gi,A_:()=>Pe,aY:()=>Ro,xv:()=>Do,R:()=>No,Po:()=>Fo,yj:()=>Sn,G7:()=>Mo,m1:()=>Ge,By:()=>Se,Ux:()=>Ue,y_:()=>it,W2:()=>Re,y9:()=>Ee,pc:()=>Ye,wx:()=>ot,FY:()=>Me,Xj:()=>y,rh:()=>Ve,dq:()=>Qe,QR:()=>sa,sI:()=>ia,vt:()=>fa,J8:()=>ga,DA:()=>h,ID:()=>d,KT:()=>_n,I8:()=>ea,mq:()=>Qn,oz:()=>Xn,YG:()=>Oe,m0:()=>ta,uT:()=>oa,$_:()=>p,SB:()=>Kn,D5:()=>Dn,G9:()=>Ln,IT:()=>zn,zz:()=>Wn,WK:()=>Un,Zb:()=>qn,PX:()=>Yn,Q7:()=>f,NJ:()=>u,Rf:()=>lr});var s=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),i=o.n(s),r=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/placeholder.css"),n={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i()(r.Z,n);r.Z.locals;var a=o("./packages/ckeditor5-utils/src/index.ts");const c=new WeakMap;let l=!1;function d({view:e,element:t,text:o,isDirectHost:s=!0,keepOnFocus:i=!1}){const r=e.document;function n(o){c.get(r).set(t,{text:o,isDirectHost:s,keepOnFocus:i,hostElement:s?t:null}),e.change((e=>g(r,e)))}c.has(r)||(c.set(r,new Map),r.registerPostFixer((e=>g(r,e))),r.on("change:isComposing",(()=>{e.change((e=>g(r,e)))}),{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",((e,t,o)=>{n(o)})),t.placeholder?n(t.placeholder):o&&n(o),o&&function(){l||(0,a.KE)("enableplaceholder-deprecated-text-option");l=!0}()}function h(e,t){const o=t.document;c.has(o)&&e.change((e=>{const s=c.get(o),i=s.get(t);e.removeAttribute("data-placeholder",i.hostElement),p(e,i.hostElement),s.delete(t)}))}function u(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}function p(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function f(e,t){if(!e.isAttached())return!1;if(Array.from(e.getChildren()).some((e=>!e.is("uiElement"))))return!1;const o=e.document,s=o.selection.anchor;return(!o.isComposing||!s||s.parent!==e)&&(!!t||(!o.isFocused||!!s&&s.parent!==e))}function g(e,t){const o=c.get(e),s=[];let i=!1;for(const[e,r]of o)r.isDirectHost&&(s.push(e),m(t,e,r)&&(i=!0));for(const[e,r]of o){if(r.isDirectHost)continue;const o=b(e);o&&(s.includes(o)||(r.hostElement=o,m(t,e,r)&&(i=!0)))}return i}function m(e,t,o){const{text:s,isDirectHost:i,hostElement:r}=o;let n=!1;r.getAttribute("data-placeholder")!==s&&(e.setAttribute("data-placeholder",s,r),n=!0);return(i||1==t.childCount)&&f(r,o.keepOnFocus)?u(e,r)&&(n=!0):p(e,r)&&(n=!0),n}function b(e){if(e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class _{is(){throw new Error("is() method is abstract")}}var k=o("./node_modules/lodash-es/_baseClone.js");const w=function(e){return(0,k.Z)(e,4)};o("./packages/ckeditor5-utils/src/version.ts");class v extends((0,a.ln)(_)){constructor(e){super(),this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new a.Bb("view-node-not-found-in-parent",this);return e}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}getCommonAncestor(e,t={}){const o=this.getAncestors(t),s=e.getAncestors(t);let i=0;for(;o[i]==s[i]&&o[i];)i++;return 0===i?null:o[i-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),o=e.getPath(),s=(0,a.Rt)(t,o);switch(s){case"prefix":return!0;case"extension":return!1;default:return t[s]<o[s]}}isAfter(e){return this!=e&&(this.root===e.root&&!this.isBefore(e))}_remove(){this.parent._removeChildren(this.index)}_fireChange(e,t){this.fire(`change:${e}`,t),this.parent&&this.parent._fireChange(e,t)}toJSON(){const e=w(this);return delete e.parent,e}}v.prototype.is=function(e){return"node"===e||"view:node"===e};class y extends v{constructor(e,t){super(e),this._textData=t}get data(){return this._textData}get _data(){return this.data}set _data(e){this._fireChange("text",this),this._textData=e}isSimilar(e){return e instanceof y&&(this===e||this.data===e.data)}_clone(){return new y(this.document,this.data)}}y.prototype.is=function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e};class x extends _{constructor(e,t,o){if(super(),this.textNode=e,t<0||t>e.data.length)throw new a.Bb("view-textproxy-wrong-offsetintext",this);if(o<0||t+o>e.data.length)throw new a.Bb("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+o),this.offsetInText=t}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(e={}){const t=[];let o=e.includeSelf?this.textNode:this.parent;for(;null!==o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}}x.prototype.is=function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e};var P=o("./node_modules/lodash-es/isPlainObject.js");class C{constructor(...e){this._patterns=[],this.add(...e)}add(...e){for(let t of e)("string"==typeof t||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(const t of e)for(const e of this._patterns){const o=T(t,e);if(o)return{element:t,pattern:e,match:o}}return null}matchAll(...e){const t=[];for(const o of e)for(const e of this._patterns){const s=T(o,e);s&&t.push({element:o,pattern:e,match:s})}return t.length>0?t:null}getElementName(){if(1!==this._patterns.length)return null;const e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}function T(e,t){if("function"==typeof t)return t(e);const o={};return t.name&&(o.name=function(e,t){if(e instanceof RegExp)return!!t.match(e);return e===t}(t.name,e.name),!o.name)||t.attributes&&(o.attributes=function(e,t){const o=new Set(t.getAttributeKeys());(0,P.Z)(e)?(void 0!==e.style&&(0,a.KE)("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&(0,a.KE)("matcher-pattern-deprecated-attributes-class-key",e)):(o.delete("style"),o.delete("class"));return E(e,o,(e=>t.getAttribute(e)))}(t.attributes,e),!o.attributes)||t.classes&&(o.classes=function(e,t){return E(e,t.getClassNames(),(()=>{}))}(t.classes,e),!o.classes)||t.styles&&(o.styles=function(e,t){return E(e,t.getStyleNames(!0),(e=>t.getStyle(e)))}(t.styles,e),!o.styles)?null:o}function E(e,t,o){const s=function(e){if(Array.isArray(e))return e.map((e=>(0,P.Z)(e)?(void 0!==e.key&&void 0!==e.value||(0,a.KE)("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0]));if((0,P.Z)(e))return Object.entries(e);return[[e,!0]]}(e),i=Array.from(t),r=[];if(s.forEach((([e,t])=>{i.forEach((s=>{(function(e,t){return!0===e||e===t||e instanceof RegExp&&t.match(e)})(e,s)&&function(e,t,o){if(!0===e)return!0;const s=o(t);return e===s||e instanceof RegExp&&!!String(s).match(e)}(t,s,o)&&r.push(s)}))})),s.length&&!(r.length<s.length))return r}var A=o("./node_modules/lodash-es/isObject.js"),S=o("./node_modules/lodash-es/isArray.js"),O=o("./node_modules/lodash-es/isSymbol.js"),R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/;const M=function(e,t){if((0,S.Z)(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!(0,O.Z)(e))||(j.test(e)||!R.test(e)||null!=t&&e in Object(t))};var V=o("./node_modules/lodash-es/_MapCache.js");function B(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function(){var s=arguments,i=t?t.apply(this,s):s[0],r=o.cache;if(r.has(i))return r.get(i);var n=e.apply(this,s);return o.cache=r.set(i,n)||r,n};return o.cache=new(B.Cache||V.Z),o}B.Cache=V.Z;const I=B;var D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N=/\\(\\)?/g;const z=function(e){var t=I(e,(function(e){return 500===o.size&&o.clear(),e})),o=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(D,(function(e,o,s,i){t.push(s?i.replace(N,"$1"):o||e)})),t}));var F=o("./node_modules/lodash-es/toString.js");const L=function(e,t){return(0,S.Z)(e)?e:M(e,t)?[e]:z((0,F.Z)(e))};const Z=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const W=function(e){if("string"==typeof e||(0,O.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const $=function(e,t){for(var o=0,s=(t=L(t,e)).length;null!=e&&o<s;)e=e[W(t[o++])];return o&&o==s?e:void 0};const q=function(e,t,o){var s=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(o=o>i?i:o)<0&&(o+=i),i=t>o?0:o-t>>>0,t>>>=0;for(var r=Array(i);++s<i;)r[s]=e[s+t];return r};const H=function(e,t){return t.length<2?e:$(e,q(t,0,-1))};const U=function(e,t){return t=L(t,e),null==(e=H(e,t))||delete e[W(Z(t))]};const G=function(e,t){return null==e||U(e,t)};const K=function(e,t,o){var s=null==e?void 0:$(e,t);return void 0===s?o:s};var J=o("./node_modules/lodash-es/_Stack.js"),Y=o("./node_modules/lodash-es/_baseAssignValue.js"),X=o("./node_modules/lodash-es/eq.js");const Q=function(e,t,o){(void 0!==o&&!(0,X.Z)(e[t],o)||void 0===o&&!(t in e))&&(0,Y.Z)(e,t,o)};const ee=function(e){return function(t,o,s){for(var i=-1,r=Object(t),n=s(t),a=n.length;a--;){var c=n[e?a:++i];if(!1===o(r[c],c,r))break}return t}}();var te=o("./node_modules/lodash-es/_cloneBuffer.js"),oe=o("./node_modules/lodash-es/_cloneTypedArray.js"),se=o("./node_modules/lodash-es/_copyArray.js"),ie=o("./node_modules/lodash-es/_initCloneObject.js"),re=o("./node_modules/lodash-es/isArguments.js"),ne=o("./node_modules/lodash-es/isArrayLike.js"),ae=o("./node_modules/lodash-es/isObjectLike.js");const ce=function(e){return(0,ae.Z)(e)&&(0,ne.Z)(e)};var le=o("./node_modules/lodash-es/isBuffer.js"),de=o("./node_modules/lodash-es/isFunction.js"),he=o("./node_modules/lodash-es/isTypedArray.js");const ue=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var pe=o("./node_modules/lodash-es/_copyObject.js"),fe=o("./node_modules/lodash-es/keysIn.js");const ge=function(e){return(0,pe.Z)(e,(0,fe.Z)(e))};const me=function(e,t,o,s,i,r,n){var a=ue(e,o),c=ue(t,o),l=n.get(c);if(l)Q(e,o,l);else{var d=r?r(a,c,o+"",e,t,n):void 0,h=void 0===d;if(h){var u=(0,S.Z)(c),p=!u&&(0,le.Z)(c),f=!u&&!p&&(0,he.Z)(c);d=c,u||p||f?(0,S.Z)(a)?d=a:ce(a)?d=(0,se.Z)(a):p?(h=!1,d=(0,te.Z)(c,!0)):f?(h=!1,d=(0,oe.Z)(c,!0)):d=[]:(0,P.Z)(c)||(0,re.Z)(c)?(d=a,(0,re.Z)(a)?d=ge(a):(0,A.Z)(a)&&!(0,de.Z)(a)||(d=(0,ie.Z)(c))):h=!1}h&&(n.set(c,d),i(d,c,s,r,n),n.delete(c)),Q(e,o,d)}};const be=function e(t,o,s,i,r){t!==o&&ee(o,(function(n,a){if(r||(r=new J.Z),(0,A.Z)(n))me(t,o,a,s,e,i,r);else{var c=i?i(ue(t,a),n,a+"",t,o,r):void 0;void 0===c&&(c=n),Q(t,a,c)}}),fe.Z)};const _e=(0,o("./node_modules/lodash-es/_createAssigner.js").Z)((function(e,t,o){be(e,t,o)}));var ke=o("./node_modules/lodash-es/_assignValue.js"),we=o("./node_modules/lodash-es/_isIndex.js");const ve=function(e,t,o,s){if(!(0,A.Z)(e))return e;for(var i=-1,r=(t=L(t,e)).length,n=r-1,a=e;null!=a&&++i<r;){var c=W(t[i]),l=o;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=n){var d=a[c];void 0===(l=s?s(d,c,a):void 0)&&(l=(0,A.Z)(d)?d:(0,we.Z)(t[i+1])?[]:{})}(0,ke.Z)(a,c,l),a=a[c]}return e};const ye=function(e,t,o){return null==e?e:ve(e,t,o)};class xe{constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();const t=function(e){let t=null,o=0,s=0,i=null;const r=new Map;if(""===e)return r;";"!=e.charAt(e.length-1)&&(e+=";");for(let n=0;n<e.length;n++){const a=e.charAt(n);if(null===t)switch(a){case":":i||(i=e.substr(o,n-o),s=n+1);break;case'"':case"'":t=a;break;case";":{const t=e.substr(s,n-s);i&&r.set(i.trim(),t.trim()),i=null,o=n+1;break}}else a===t&&(t=null)}return r}(e);for(const[e,o]of t)this._styleProcessor.toNormalizedForm(e,o,this._styles)}has(e){if(this.isEmpty)return!1;const t=this._styleProcessor.getReducedForm(e,this._styles).find((([t])=>t===e));return Array.isArray(t)}set(e,t){if((0,A.Z)(e))for(const[t,o]of Object.entries(e))this._styleProcessor.toNormalizedForm(t,o,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t=Ce(e);G(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((e=>e.join(":"))).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!(0,A.Z)(this._styles[e]))return this._styles[e];const t=this._styleProcessor.getReducedForm(e,this._styles).find((([t])=>t===e));return Array.isArray(t)?t[1]:void 0}getStyleNames(e=!1){if(this.isEmpty)return[];if(e)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map((([e])=>e))}clear(){this._styles={}}_getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const o of t)e.push(...this._styleProcessor.getReducedForm(o,this._styles));return e}_cleanEmptyObjectsOnPath(e){const t=e.split(".");if(!(t.length>1))return;const o=t.splice(0,t.length-1).join("."),s=K(this._styles,o);if(!s)return;!Object.keys(s).length&&this.remove(o)}}class Pe{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,o){if((0,A.Z)(t))Te(o,Ce(e),t);else if(this._normalizers.has(e)){const s=this._normalizers.get(e),{path:i,value:r}=s(t);Te(o,i,r)}else Te(o,e,t)}getNormalized(e,t){if(!e)return _e({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){const o=this._extractors.get(e);if("string"==typeof o)return K(t,o);const s=o(e,t);if(s)return s}return K(t,Ce(e))}getReducedForm(e,t){const o=this.getNormalized(e,t);if(void 0===o)return[];if(this._reducers.has(e)){return this._reducers.get(e)(o)}return[[e,o]]}getStyleNames(e){const t=Array.from(this._consumables.keys()).filter((t=>{const o=this.getNormalized(t,e);return o&&"object"==typeof o?Object.keys(o).length:o})),o=new Set([...t,...Object.keys(e)]);return Array.from(o)}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const o of t)this._mapStyleNames(o,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function Ce(e){return e.replace("-",".")}function Te(e,t,o){let s=o;(0,A.Z)(o)&&(s=_e({},K(e,t),o)),ye(e,t,s)}class Ee extends v{constructor(e,t,o,s){if(super(e),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=t,this._attrs=function(e){const t=(0,a.qL)(e);for(const[e,o]of t)null===o?t.delete(e):"string"!=typeof o&&t.set(e,String(o));return t}(o),this._children=[],s&&this._insertChild(0,s),this._classes=new Set,this._attrs.has("class")){const e=this._attrs.get("class");Ae(this._classes,e),this._attrs.delete("class")}this._styles=new xe(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 0===this._children.length}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}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(e){if("class"==e)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==e){const e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(e)}hasAttribute(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof Ee))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(const[t,o]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==o)return!1;for(const t of this._classes)if(!e._classes.has(t))return!1;for(const t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(...e){for(const t of e)if(!this._classes.has(t))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(e){return this._styles.getStyleNames(e)}hasStyle(...e){for(const t of e)if(!this._styles.has(t))return!1;return!0}findAncestor(...e){const t=new C(...e);let o=this.parent;for(;o&&!o.is("documentFragment");){if(t.match(o))return o;o=o.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),o=Array.from(this._attrs).map((e=>`${e[0]}="${e[1]}"`)).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==o?"":` ${o}`)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}_clone(e=!1){const t=[];if(e)for(const o of this.getChildren())t.push(o._clone(e));const o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o._unsafeAttributesToRender=this._unsafeAttributesToRender,o}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this);let o=0;const s=function(e,t){if("string"==typeof t)return[new y(e,t)];(0,a.TW)(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new y(e,t):t instanceof x?new y(e,t.data):t))}(this.document,t);for(const t of s)null!==t.parent&&t._remove(),t.parent=this,t.document=this.document,this._children.splice(e,0,t),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let o=e;o<e+t;o++)this._children[o].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){const o=String(t);this._fireChange("attributes",this),"class"==e?Ae(this._classes,o):"style"==e?this._styles.setTo(o):this._attrs.set(e,o)}_removeAttribute(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){this._fireChange("attributes",this);for(const t of(0,a.qo)(e))this._classes.add(t)}_removeClass(e){this._fireChange("attributes",this);for(const t of(0,a.qo)(e))this._classes.delete(t)}_setStyle(e,t){this._fireChange("attributes",this),"string"!=typeof e?this._styles.set(e):this._styles.set(e,t)}_removeStyle(e){this._fireChange("attributes",this);for(const t of(0,a.qo)(e))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function Ae(e,t){const o=t.split(/\s+/);e.clear(),o.forEach((t=>e.add(t)))}Ee.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Se extends Ee{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=Oe}}function Oe(){const e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const t of e)if(!t.is("uiElement"))return null;return this.childCount}Se.prototype.is=function(e,t){return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Re extends((0,a.Re)(Se)){constructor(e,t,o,s){super(e,t,o,s),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",(t=>t&&e.selection.editableElement==this)),this.listenTo(e.selection,"change",(()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this}))}destroy(){this.stopListening()}}Re.prototype.is=function(e,t){return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};const je=Symbol("rootName");class Me extends Re{constructor(e,t){super(e,t),this.rootName="main"}get rootName(){return this.getCustomProperty(je)}set rootName(e){this._setCustomProperty(je,e)}set _name(e){this.name=e}}Me.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Ve{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new a.Bb("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new a.Bb("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this._position=Be._createAt(e.startPosition):this._position=Be._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.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(e){let t,o;do{o=this.position,t=this.next()}while(!t.done&&e(t.value));t.done||(this._position=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,o=e.parent;if(null===o.parent&&e.offset===o.childCount)return{done:!0,value:void 0};if(o===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let s;if(o instanceof y){if(e.isAtEnd)return this._position=Be._createAfter(o),this._next();s=o.data[e.offset]}else s=o.getChild(e.offset);if(s instanceof Ee){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e=new Be(s,0);return this._position=e,this._formatReturnValue("elementStart",s,t,e,1)}if(s instanceof y){if(this.singleCharacters)return e=new Be(s,0),this._position=e,this._next();let o,i=s.data.length;return s==this._boundaryEndParent?(i=this.boundaries.end.offset,o=new x(s,0,i),e=Be._createAfter(o)):(o=new x(s,0,s.data.length),e.offset++),this._position=e,this._formatReturnValue("text",o,t,e,i)}if("string"==typeof s){let s;if(this.singleCharacters)s=1;else{s=(o===this._boundaryEndParent?this.boundaries.end.offset:o.data.length)-e.offset}const i=new x(o,e.offset,s);return e.offset+=s,this._position=e,this._formatReturnValue("text",i,t,e,s)}return e=Be._createAfter(o),this._position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",o,t,e)}_previous(){let e=this.position.clone();const t=this.position,o=e.parent;if(null===o.parent&&0===e.offset)return{done:!0,value:void 0};if(o==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let s;if(o instanceof y){if(e.isAtStart)return this._position=Be._createBefore(o),this._previous();s=o.data[e.offset-1]}else s=o.getChild(e.offset-1);if(s instanceof Ee)return this.shallow?(e.offset--,this._position=e,this._formatReturnValue("elementStart",s,t,e,1)):(e=new Be(s,s.childCount),this._position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",s,t,e));if(s instanceof y){if(this.singleCharacters)return e=new Be(s,s.data.length),this._position=e,this._previous();let o,i=s.data.length;if(s==this._boundaryStartParent){const t=this.boundaries.start.offset;o=new x(s,t,s.data.length-t),i=o.data.length,e=Be._createBefore(o)}else o=new x(s,0,s.data.length),e.offset--;return this._position=e,this._formatReturnValue("text",o,t,e,i)}if("string"==typeof s){let s;if(this.singleCharacters)s=1;else{const t=o===this._boundaryStartParent?this.boundaries.start.offset:0;s=e.offset-t}e.offset-=s;const i=new x(o,e.offset,s);return this._position=e,this._formatReturnValue("text",i,t,e,s)}return e=Be._createBefore(o),this._position=e,this._formatReturnValue("elementStart",o,t,e,1)}_formatReturnValue(e,t,o,s,i){return t instanceof x&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?o=Be._createAfter(t.textNode):(s=Be._createAfter(t.textNode),this._position=s)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?o=Be._createBefore(t.textNode):(s=Be._createBefore(t.textNode),this._position=s))),{done:!1,value:{type:e,item:t,previousPosition:o,nextPosition:s,length:i}}}}class Be extends _{constructor(e,t){super(),this.parent=e,this.offset=t}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 0===this.offset}get isAtEnd(){const e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof Re);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=Be._createAt(this),o=t.offset+e;return t.offset=o<0?0:o,t}getLastMatchingPosition(e,t={}){t.startPosition=this;const o=new Ve(t);return o.skip(e),o.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),o=e.getAncestors();let s=0;for(;t[s]==o[s]&&t[s];)s++;return 0===s?null:t[s-1]}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";const t=this.parent.is("node")?this.parent.getPath():[],o=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),o.push(e.offset);const s=(0,a.Rt)(t,o);switch(s){case"prefix":return"before";case"extension":return"after";default:return t[s]<o[s]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new Ve(e)}clone(){return new Be(this.parent,this.offset)}static _createAt(e,t){if(e instanceof Be)return new this(e.parent,e.offset);{const o=e;if("end"==t)t=o.is("$text")?o.data.length:o.childCount;else{if("before"==t)return this._createBefore(o);if("after"==t)return this._createAfter(o);if(0!==t&&!t)throw new a.Bb("view-createpositionat-offset-required",o)}return new Be(o,t)}}static _createAfter(e){if(e.is("$textProxy"))return new Be(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new a.Bb("view-position-after-root",e,{root:e});return new Be(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new Be(e.textNode,e.offsetInText);if(!e.parent)throw new a.Bb("view-position-before-root",e,{root:e});return new Be(e.parent,e.index)}}Be.prototype.is=function(e){return"position"===e||"view:position"===e};class Ie extends _{constructor(e,t=null){super(),this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new Ve({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 e=this.start.getLastMatchingPosition(De,{direction:"backward"}),t=this.end.getLastMatchingPosition(De);return e.parent.is("$text")&&e.isAtStart&&(e=Be._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=Be._createAfter(t.parent)),new Ie(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(De);if(e.isAfter(this.end)||e.isEqual(this.end))return new Ie(e,e);let t=this.end.getLastMatchingPosition(De,{direction:"backward"});const o=e.nodeAfter,s=t.nodeBefore;return o&&o.is("$text")&&(e=new Be(o,0)),s&&s.is("$text")&&(t=new Be(s,s.data.length)),new Ie(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const o=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),s=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return o&&s}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new Ie(this.start,e.start)),this.containsPosition(e.end)&&t.push(new Ie(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,o=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(o=e.end),new Ie(t,o)}return null}getWalker(e={}){return e.boundaries=this,new Ve(e)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}clone(){return new Ie(this.start,this.end)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new Ve(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new Ve(e);yield t.position;for(const e of t)yield e.nextPosition}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}static _createFromParentsAndOffsets(e,t,o,s){return new this(new Be(e,t),new Be(o,s))}static _createFromPositionAndShift(e,t){const o=e,s=e.getShiftedBy(t);return t>0?new this(o,s):new this(s,o)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(Be._createBefore(e),t)}}function De(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}Ie.prototype.is=function(e){return"range"===e||"view:range"===e};class Ne extends((0,a.ln)(_)){constructor(...e){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",e.length&&this.setTo(...e)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return 1===this.rangeCount&&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 e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let o=!1;for(const s of e._ranges)if(t.isEqual(s)){o=!0;break}if(!o)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=(0,a.QX)(this.getRanges());if(t!=(0,a.QX)(e.getRanges()))return!1;if(0==t)return!0;for(let t of this.getRanges()){t=t.getTrimmed();let o=!1;for(let s of e.getRanges())if(s=s.getTrimmed(),t.start.isEqual(s.start)&&t.end.isEqual(s.end)){o=!0;break}if(!o)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...e){let[t,o,s]=e;if("object"==typeof o&&(s=o,o=void 0),null===t)this._setRanges([]),this._setFakeOptions(s);else if(t instanceof Ne||t instanceof ze)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Ie)this._setRanges([t],s&&s.backward),this._setFakeOptions(s);else if(t instanceof Be)this._setRanges([new Ie(t)]),this._setFakeOptions(s);else if(t instanceof v){const e=!!s&&!!s.backward;let i;if(void 0===o)throw new a.Bb("view-selection-setto-required-second-parameter",this);i="in"==o?Ie._createIn(t):"on"==o?Ie._createOn(t):new Ie(Be._createAt(t,o)),this._setRanges([i],e),this._setFakeOptions(s)}else{if(!(0,a.TW)(t))throw new a.Bb("view-selection-setto-not-selectable",this);this._setRanges(t,s&&s.backward),this._setFakeOptions(s)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new a.Bb("view-selection-setfocus-no-ranges",this);const o=Be._createAt(e,t);if("same"==o.compareWith(this.focus))return;const s=this.anchor;this._ranges.pop(),"before"==o.compareWith(s)?this._addRange(new Ie(o,s),!0):this._addRange(new Ie(s,o)),this.fire("change")}_setRanges(e,t=!1){e=Array.from(e),this._ranges=[];for(const t of e)this._addRange(t);this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}_addRange(e,t=!1){if(!(e instanceof Ie))throw new a.Bb("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(const t of this._ranges)if(e.isIntersecting(t))throw new a.Bb("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new Ie(e.start,e.end))}}Ne.prototype.is=function(e){return"selection"===e||"view:selection"===e};class ze extends((0,a.ln)(_)){constructor(...e){super(),this._selection=new Ne,this._selection.delegate("change").to(this),e.length&&this._selection.setTo(...e)}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(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}_setTo(...e){this._selection.setTo(...e)}_setFocus(e,t){this._selection.setFocus(e,t)}}ze.prototype.is=function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e};class Fe extends a.M3{constructor(e,t,o){super(e,t),this.startRange=o,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Le=Symbol("bubbling contexts");function Ze(e){return class extends e{fire(e,...t){try{const o=e instanceof a.M3?e:new a.M3(this,e),s=He(this);if(!s.size)return;if(We(o,"capturing",this),$e(s,"$capture",o,...t))return o.return;const i=o.startRange||this.selection.getFirstRange(),r=i?i.getContainedElement():null,n=!!r&&Boolean(qe(s,r));let c=r||function(e){if(!e)return null;const t=e.start.parent,o=e.end.parent,s=t.getPath(),i=o.getPath();return s.length>i.length?t:o}(i);if(We(o,"atTarget",c),!n){if($e(s,"$text",o,...t))return o.return;We(o,"bubbling",c)}for(;c;){if(c.is("rootElement")){if($e(s,"$root",o,...t))return o.return}else if(c.is("element")&&$e(s,c.name,o,...t))return o.return;if($e(s,c,o,...t))return o.return;c=c.parent,We(o,"bubbling",c)}return We(o,"bubbling",this),$e(s,"$document",o,...t),o.return}catch(e){a.Bb.rethrowUnexpectedError(e,this)}}_addEventListener(e,t,o){const s=(0,a.qo)(o.context||"$document"),i=He(this);for(const r of s){let s=i.get(r);s||(s=new((0,a.ln)()),i.set(r,s)),this.listenTo(s,e,t,o)}}_removeEventListener(e,t){const o=He(this);for(const s of o.values())this.stopListening(s,e,t)}}}{const e=Ze(Object);["fire","_addEventListener","_removeEventListener"].forEach((t=>{Ze[t]=e.prototype[t]}))}function We(e,t,o){e instanceof Fe&&(e._eventPhase=t,e._currentTarget=o)}function $e(e,t,o,...s){const i="string"==typeof t?e.get(t):qe(e,t);return!!i&&(i.fire(o,...s),o.stop.called)}function qe(e,t){for(const[o,s]of e)if("function"==typeof o&&o(t))return s;return null}function He(e){return e[Le]||(e[Le]=new Map),e[Le]}class Ue extends(Ze((0,a.Re)())){constructor(e){super(),this._postFixers=new Set,this.selection=new ze,this.roots=new a.FE({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.forEach((e=>e.destroy())),this.stopListening()}_callPostFixers(e){let t=!1;do{for(const o of this._postFixers)if(t=o(e),t)break}while(t)}}class Ge extends Ee{constructor(e,t,o,s){super(e,t,o,s),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=Ke}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new a.Bb("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(e){return null!==this.id||null!==e.id?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e=!1){const t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function Ke(){if(Je(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(Je(e)>1)return null;e=e.parent}return!e||Je(e)>1?null:this.childCount}function Je(e){return Array.from(e.getChildren()).filter((e=>!e.is("uiElement"))).length}Ge.DEFAULT_PRIORITY=10,Ge.prototype.is=function(e,t){return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Ye extends Ee{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=Xe}_insertChild(e,t){if(t&&(t instanceof v||Array.from(t).length>0))throw new a.Bb("view-emptyelement-cannot-add",[this,t]);return 0}}function Xe(){return null}Ye.prototype.is=function(e,t){return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Qe extends Ee{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=tt}_insertChild(e,t){if(t&&(t instanceof v||Array.from(t).length>0))throw new a.Bb("view-uielement-cannot-add",[this,t]);return 0}render(e,t){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const e of this.getAttributeKeys())t.setAttribute(e,this.getAttribute(e));return t}}function et(e){e.document.on("arrowKey",((t,o)=>function(e,t,o){if(t.keyCode==a.Do.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),s=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(s||t.shiftKey){const t=e.focusNode,i=e.focusOffset,r=o.domPositionToView(t,i);if(null===r)return;let n=!1;const a=r.getLastMatchingPosition((e=>(e.item.is("uiElement")&&(n=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement")))));if(n){const t=o.viewPositionToDom(a);s?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}(0,o,e.domConverter)),{priority:"low"})}function tt(){return null}Qe.prototype.is=function(e,t){return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class ot extends Ee{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=st}_insertChild(e,t){if(t&&(t instanceof v||Array.from(t).length>0))throw new a.Bb("view-rawelement-cannot-add",[this,t]);return 0}render(e,t){}}function st(){return null}ot.prototype.is=function(e,t){return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class it extends((0,a.ln)(_)){constructor(e,t){super(),this._children=[],this._customProperties=new Map,this.document=e,t&&this._insertChild(0,t)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange("children",this);let o=0;const s=function(e,t){if("string"==typeof t)return[new y(e,t)];(0,a.TW)(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new y(e,t):t instanceof x?new y(e,t.data):t))}(this.document,t);for(const t of s)null!==t.parent&&t._remove(),t.parent=this,this._children.splice(e,0,t),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let o=e;o<e+t;o++)this._children[o].parent=null;return this._children.splice(e,t)}_fireChange(e,t){this.fire("change:"+e,t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}it.prototype.is=function(e){return"documentFragment"===e||"view:documentFragment"===e};class rt{constructor(e){this._cloneGroups=new Map,this._slotFactory=null,this.document=e}setSelection(...e){this.document.selection._setTo(...e)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createDocumentFragment(e){return new it(this.document,e)}createText(e){return new y(this.document,e)}createAttributeElement(e,t,o={}){const s=new Ge(this.document,e,t);return"number"==typeof o.priority&&(s._priority=o.priority),o.id&&(s._id=o.id),o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createContainerElement(e,t,o={},s={}){let i=null;(0,P.Z)(o)?s=o:i=o;const r=new Se(this.document,e,t,i);return s.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...s.renderUnsafeAttributes),r}createEditableElement(e,t,o={}){const s=new Re(this.document,e,t);return o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createEmptyElement(e,t,o={}){const s=new Ye(this.document,e,t);return o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createUIElement(e,t,o){const s=new Qe(this.document,e,t);return o&&(s.render=o),s}createRawElement(e,t,o,s={}){const i=new ot(this.document,e,t);return o&&(i.render=o),s.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...s.renderUnsafeAttributes),i}setAttribute(e,t,o){o._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,o){(0,P.Z)(e)&&void 0===o?t._setStyle(e):o._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,o){o._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof Be?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new a.Bb("view-writer-break-non-container-element",this.document);if(!t.parent)throw new a.Bb("view-writer-break-root",this.document);if(e.isAtStart)return Be._createBefore(t);if(!e.isAtEnd){const o=t._clone(!1);this.insert(Be._createAfter(t),o);const s=new Ie(e,Be._createAt(t,"end")),i=new Be(o,0);this.move(s,i)}return Be._createAfter(t)}mergeAttributes(e){const t=e.offset,o=e.parent;if(o.is("$text"))return e;if(o.is("attributeElement")&&0===o.childCount){const e=o.parent,t=o.index;return o._remove(),this._removeFromClonedElementsGroup(o),this.mergeAttributes(new Be(e,t))}const s=o.getChild(t-1),i=o.getChild(t);if(!s||!i)return e;if(s.is("$text")&&i.is("$text"))return dt(s,i);if(s.is("attributeElement")&&i.is("attributeElement")&&s.isSimilar(i)){const e=s.childCount;return s._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new Be(s,e))}return e}mergeContainers(e){const t=e.nodeBefore,o=e.nodeAfter;if(!(t&&o&&t.is("containerElement")&&o.is("containerElement")))throw new a.Bb("view-writer-merge-containers-invalid-position",this.document);const s=t.getChild(t.childCount-1),i=s instanceof y?Be._createAt(s,"end"):Be._createAt(t,"end");return this.move(Ie._createIn(o),Be._createAt(t,"end")),this.remove(Ie._createOn(o)),i}insert(e,t){ut(t=(0,a.TW)(t)?[...t]:[t],this.document);const o=t.reduce(((e,t)=>{const o=e[e.length-1],s=!t.is("uiElement");return o&&o.breakAttributes==s?o.nodes.push(t):e.push({breakAttributes:s,nodes:[t]}),e}),[]);let s=null,i=e;for(const{nodes:e,breakAttributes:t}of o){const o=this._insertNodes(i,e,t);s||(s=o.start),i=o.end}return s?new Ie(s,i):new Ie(e)}remove(e){const t=e instanceof Ie?e:Ie._createOn(e);if(ft(t,this.document),t.isCollapsed)return new it(this.document);const{start:o,end:s}=this._breakAttributesRange(t,!0),i=o.parent,r=s.offset-o.offset,n=i._removeChildren(o.offset,r);for(const e of n)this._removeFromClonedElementsGroup(e);const a=this.mergeAttributes(o);return t.start=a,t.end=a.clone(),new it(this.document,n)}clear(e,t){ft(e,this.document);const o=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const s of o){const o=s.item;let i;if(o.is("element")&&t.isSimilar(o))i=Ie._createOn(o);else if(!s.nextPosition.isAfter(e.start)&&o.is("$textProxy")){const e=o.getAncestors().find((e=>e.is("element")&&t.isSimilar(e)));e&&(i=Ie._createIn(e))}i&&(i.end.isAfter(e.end)&&(i.end=e.end),i.start.isBefore(e.start)&&(i.start=e.start),this.remove(i))}}move(e,t){let o;if(t.isAfter(e.end)){const s=(t=this._breakAttributes(t,!0)).parent,i=s.childCount;e=this._breakAttributesRange(e,!0),o=this.remove(e),t.offset+=s.childCount-i}else o=this.remove(e);return this.insert(t,o)}wrap(e,t){if(!(t instanceof Ge))throw new a.Bb("view-writer-wrap-invalid-attribute",this.document);if(ft(e,this.document),e.isCollapsed){let s=e.start;s.parent.is("element")&&(o=s.parent,!Array.from(o.getChildren()).some((e=>!e.is("uiElement"))))&&(s=s.getLastMatchingPosition((e=>e.item.is("uiElement")))),s=this._wrapPosition(s,t);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(e.start)&&this.setSelection(s),new Ie(s)}return this._wrapRange(e,t);var o}unwrap(e,t){if(!(t instanceof Ge))throw new a.Bb("view-writer-unwrap-invalid-attribute",this.document);if(ft(e,this.document),e.isCollapsed)return e;const{start:o,end:s}=this._breakAttributesRange(e,!0),i=o.parent,r=this._unwrapChildren(i,o.offset,s.offset,t),n=this.mergeAttributes(r.start);n.isEqual(r.start)||r.end.offset--;const c=this.mergeAttributes(r.end);return new Ie(n,c)}rename(e,t){const o=new Se(this.document,e,t.getAttributes());return this.insert(Be._createAfter(t),o),this.move(Ie._createIn(t),Be._createAt(o,0)),this.remove(Ie._createOn(t)),o}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return Be._createAt(e,t)}createPositionAfter(e){return Be._createAfter(e)}createPositionBefore(e){return Be._createBefore(e)}createRange(e,t){return new Ie(e,t)}createRangeOn(e){return Ie._createOn(e)}createRangeIn(e){return Ie._createIn(e)}createSelection(...e){return new Ne(...e)}createSlot(e="children"){if(!this._slotFactory)throw new a.Bb("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,e)}_registerSlotFactory(e){this._slotFactory=e}_clearSlotFactory(){this._slotFactory=null}_insertNodes(e,t,o){let s,i;if(s=o?nt(e):e.parent.is("$text")?e.parent.parent:e.parent,!s)throw new a.Bb("view-writer-invalid-position-container",this.document);i=o?this._breakAttributes(e,!0):e.parent.is("$text")?lt(e):e;const r=s._insertChild(i.offset,t);for(const e of t)this._addToClonedElementsGroup(e);const n=i.getShiftedBy(r),c=this.mergeAttributes(i);c.isEqual(i)||n.offset--;const l=this.mergeAttributes(n);return new Ie(c,l)}_wrapChildren(e,t,o,s){let i=t;const r=[];for(;i<o;){const t=e.getChild(i),o=t.is("$text"),n=t.is("attributeElement");if(n&&this._wrapAttributeElement(s,t))r.push(new Be(e,i));else if(o||!n||at(s,t)){const o=s._clone();t._remove(),o._appendChild(t),e._insertChild(i,o),this._addToClonedElementsGroup(o),r.push(new Be(e,i))}else this._wrapChildren(t,0,t.childCount,s);i++}let n=0;for(const e of r){if(e.offset-=n,e.offset==t)continue;this.mergeAttributes(e).isEqual(e)||(n++,o--)}return Ie._createFromParentsAndOffsets(e,t,e,o)}_unwrapChildren(e,t,o,s){let i=t;const r=[];for(;i<o;){const t=e.getChild(i);if(t.is("attributeElement"))if(t.isSimilar(s)){const s=t.getChildren(),n=t.childCount;t._remove(),e._insertChild(i,s),this._removeFromClonedElementsGroup(t),r.push(new Be(e,i),new Be(e,i+n)),i+=n,o+=n-1}else this._unwrapAttributeElement(s,t)?(r.push(new Be(e,i),new Be(e,i+1)),i++):(this._unwrapChildren(t,0,t.childCount,s),i++);else i++}let n=0;for(const e of r){if(e.offset-=n,e.offset==t||e.offset==o)continue;this.mergeAttributes(e).isEqual(e)||(n++,o--)}return Ie._createFromParentsAndOffsets(e,t,e,o)}_wrapRange(e,t){const{start:o,end:s}=this._breakAttributesRange(e,!0),i=o.parent,r=this._wrapChildren(i,o.offset,s.offset,t),n=this.mergeAttributes(r.start);n.isEqual(r.start)||r.end.offset--;const a=this.mergeAttributes(r.end);return new Ie(n,a)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return ct(e.clone());e.parent.is("$text")&&(e=lt(e));const o=this.createAttributeElement("_wrapPosition-fake-element");o._priority=Number.POSITIVE_INFINITY,o.isSimilar=()=>!1,e.parent._insertChild(e.offset,o);const s=new Ie(e,e.getShiftedBy(1));this.wrap(s,t);const i=new Be(o.parent,o.index);o._remove();const r=i.nodeBefore,n=i.nodeAfter;return r instanceof y&&n instanceof y?dt(r,n):ct(i)}_wrapAttributeElement(e,t){if(!gt(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const o of e.getAttributeKeys())if("class"!==o&&"style"!==o&&t.hasAttribute(o)&&t.getAttribute(o)!==e.getAttribute(o))return!1;for(const o of e.getStyleNames())if(t.hasStyle(o)&&t.getStyle(o)!==e.getStyle(o))return!1;for(const o of e.getAttributeKeys())"class"!==o&&"style"!==o&&(t.hasAttribute(o)||this.setAttribute(o,e.getAttribute(o),t));for(const o of e.getStyleNames())t.hasStyle(o)||this.setStyle(o,e.getStyle(o),t);for(const o of e.getClassNames())t.hasClass(o)||this.addClass(o,t);return!0}_unwrapAttributeElement(e,t){if(!gt(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const o of e.getAttributeKeys())if("class"!==o&&"style"!==o&&(!t.hasAttribute(o)||t.getAttribute(o)!==e.getAttribute(o)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(const o of e.getStyleNames())if(!t.hasStyle(o)||t.getStyle(o)!==e.getStyle(o))return!1;for(const o of e.getAttributeKeys())"class"!==o&&"style"!==o&&this.removeAttribute(o,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){const o=e.start,s=e.end;if(ft(e,this.document),e.isCollapsed){const o=this._breakAttributes(e.start,t);return new Ie(o,o)}const i=this._breakAttributes(s,t),r=i.parent.childCount,n=this._breakAttributes(o,t);return i.offset+=i.parent.childCount-r,new Ie(n,i)}_breakAttributes(e,t=!1){const o=e.offset,s=e.parent;if(e.parent.is("emptyElement"))throw new a.Bb("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new a.Bb("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new a.Bb("view-writer-cannot-break-raw-element",this.document);if(!t&&s.is("$text")&&pt(s.parent))return e.clone();if(pt(s))return e.clone();if(s.is("$text"))return this._breakAttributes(lt(e),t);if(o==s.childCount){const e=new Be(s.parent,s.index+1);return this._breakAttributes(e,t)}if(0===o){const e=new Be(s.parent,s.index);return this._breakAttributes(e,t)}{const e=s.index+1,i=s._clone();s.parent._insertChild(e,i),this._addToClonedElementsGroup(i);const r=s.childCount-o,n=s._removeChildren(o,r);i._appendChild(n);const a=new Be(s.parent,e);return this._breakAttributes(a,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(const t of e.getChildren())this._addToClonedElementsGroup(t);const t=e.id;if(!t)return;let o=this._cloneGroups.get(t);o||(o=new Set,this._cloneGroups.set(t,o)),o.add(e),e._clonesGroup=o}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const t of e.getChildren())this._removeFromClonedElementsGroup(t);const t=e.id;if(!t)return;const o=this._cloneGroups.get(t);o&&o.delete(e)}}function nt(e){let t=e.parent;for(;!pt(t);){if(!t)return;t=t.parent}return t}function at(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function ct(e){const t=e.nodeBefore;if(t&&t.is("$text"))return new Be(t,t.data.length);const o=e.nodeAfter;return o&&o.is("$text")?new Be(o,0):e}function lt(e){if(e.offset==e.parent.data.length)return new Be(e.parent.parent,e.parent.index+1);if(0===e.offset)return new Be(e.parent.parent,e.parent.index);const t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new y(e.root.document,t)),new Be(e.parent.parent,e.parent.index+1)}function dt(e,t){const o=e.data.length;return e._data+=t.data,t._remove(),new Be(e,o)}const ht=[y,Ge,Se,Ye,ot,Qe];function ut(e,t){for(const o of e){if(!ht.some((e=>o instanceof e)))throw new a.Bb("view-writer-insert-invalid-node-type",t);o.is("$text")||ut(o.getChildren(),t)}}function pt(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function ft(e,t){const o=nt(e.start),s=nt(e.end);if(!o||!s||o!==s)throw new a.Bb("view-writer-invalid-range-container",t)}function gt(e,t){return null===e.id&&null===t.id}const mt=e=>e.createTextNode(" "),bt=e=>{const t=e.createElement("span");return t.dataset.ckeFiller="true",t.innerText=" ",t},_t=e=>{const t=e.createElement("br");return t.dataset.ckeFiller="true",t},kt=7,wt="â ".repeat(kt);function vt(e){return"string"==typeof e?e.substr(0,kt)===wt:(0,a.Gs)(e)&&e.data.substr(0,kt)===wt}function yt(e){return e.data.length==kt&&vt(e)}function xt(e){const t="string"==typeof e?e:e.data;return vt(e)?t.slice(kt):t}function Pt(e,t){if(t.keyCode==a.Do.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,o=e.getRangeAt(0).startOffset;vt(t)&&o<=kt&&e.collapse(t,0)}}}var Ct=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-engine/theme/renderer.css"),Tt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i()(Ct.Z,Tt);Ct.Z.locals;class Et extends((0,a.Re)()){constructor(e,t){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=e,this.selection=t,this.set("isFocused",!1),this.set("isSelecting",!1),a.OB.isBlink&&!a.OB.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this.set("isComposing",!1),this.on("change:isComposing",(()=>{this.isComposing||this.render()}))}markToSync(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e){throw new a.Bb("view-renderer-unknown-type",this)}this.markedChildren.add(t)}}}render(){if(this.isComposing&&!a.OB.isAndroid)return;let e=null;const t=!(a.OB.isBlink&&!a.OB.isAndroid)||!this.isSelecting;for(const e of this.markedChildren)this._updateChildrenMappings(e);t?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(e=this.domConverter.domPositionToView(this._inlineFiller),e&&e.parent.is("$text")&&(e=Be._createBefore(e.parent)));for(const e of this.markedAttributes)this._updateAttrs(e);for(const t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(const t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(t)if(e){const t=this.domConverter.viewPositionToDom(e),o=t.parent.ownerDocument;vt(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=At(o,t.parent,t.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const o=Array.from(t.childNodes),s=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),i=this._diffNodeLists(o,s),r=this._findUpdateActions(i,o,s,St);if(-1!==r.indexOf("update")){const t={equal:0,insert:0,delete:0};for(const i of r)if("update"===i){const i=t.equal+t.insert,r=t.equal+t.delete,n=e.getChild(i);!n||n.is("uiElement")||n.is("rawElement")||this._updateElementMappings(n,o[r]),(0,a.Od)(s[i]),t.equal++}else t[i]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();return e.parent.is("$text")?Be._createBefore(e.parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&(0,a.Gs)(t.parent)&&vt(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!vt(e))throw new a.Bb("view-renderer-filler-was-lost",this);yt(e)?e.remove():e.data=e.data.substr(kt),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,o=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;const t=e.findAncestor((e=>e.hasAttribute("contenteditable")));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(o===t.getFillerOffset())return!1;const s=e.nodeBefore,i=e.nodeAfter;return!(s instanceof y||i instanceof y)&&(!a.OB.isAndroid||!s&&!i)}_updateText(e,t){const o=this.domConverter.findCorrespondingDomText(e);let s=this.domConverter.viewToDom(e).data;const i=t.inlineFillerPosition;i&&i.parent==e.parent&&i.offset==e.index&&(s=wt+s),jt(o,s)}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const o=Array.from(t.attributes).map((e=>e.name)),s=e.getAttributeKeys();for(const o of s)this.domConverter.setDomElementAttribute(t,o,e.getAttribute(o),e);for(const s of o)e.hasAttribute(s)||this.domConverter.removeDomElementAttribute(t,s)}_updateChildren(e,t){const o=this.domConverter.mapViewToDom(e);if(!o)return;if(a.OB.isAndroid){let e=null;for(const t of Array.from(o.childNodes)){if(e&&(0,a.Gs)(e)&&(0,a.Gs)(t)){o.normalize();break}e=t}}const s=t.inlineFillerPosition,i=o.childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));s&&s.parent===e&&At(o.ownerDocument,r,s.offset);const n=this._diffNodeLists(i,r),c=this._findUpdateActions(n,i,r,Ot);let l=0;const d=new Set;for(const e of c)"delete"===e?(d.add(i[l]),(0,a.Od)(i[l])):"equal"!==e&&"update"!==e||l++;l=0;for(const e of c)"insert"===e?((0,a.ZQ)(o,l,r[l]),l++):"update"===e?(jt(i[l],r[l].data),l++):"equal"===e&&(this._markDescendantTextToSync(this.domConverter.domToView(r[l])),l++);for(const e of d)e.parentNode||this.domConverter.unbindDomElement(e)}_diffNodeLists(e,t){return e=function(e,t){const o=Array.from(e);if(0==o.length||!t)return o;const s=o[o.length-1];s==t&&o.pop();return o}(e,this._fakeSelectionContainer),(0,a.Hg)(e,t,Rt.bind(null,this.domConverter))}_findUpdateActions(e,t,o,s){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let i=[],r=[],n=[];const c={equal:0,insert:0,delete:0};for(const l of e)"insert"===l?n.push(o[c.equal+c.insert]):"delete"===l?r.push(t[c.equal+c.delete]):(i=i.concat((0,a.Hg)(r,n,s).map((e=>"equal"===e?"update":e))),i.push("equal"),r=[],n=[]),c[l]++;return i.concat((0,a.Hg)(r,n,s).map((e=>"equal"===e?"update":e)))}_markDescendantTextToSync(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(const t of e.getChildren())this._markDescendantTextToSync(t)}_updateSelection(){if(a.OB.isBlink&&!a.OB.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(e)):this.isComposing&&a.OB.isAndroid||this._updateDomSelection(e))}_updateFakeSelection(e){const t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){const t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));const o=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(o,this.selection),!this._fakeSelectionNeedsUpdate(e))return;o.parentElement&&o.parentElement==e||e.appendChild(o),o.textContent=this.selection.fakeSelectionLabel||" ";const s=t.getSelection(),i=t.createRange();s.removeAllRanges(),i.selectNodeContents(o),s.addRange(i)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const o=this.domConverter.viewPositionToDom(this.selection.anchor),s=this.domConverter.viewPositionToDom(this.selection.focus);t.setBaseAndExtent(o.parent,o.offset,s.parent,s.offset),a.OB.isGecko&&function(e,t){const o=e.parent;if(o.nodeType!=Node.ELEMENT_NODE||e.offset!=o.childNodes.length-1)return;const s=o.childNodes[e.offset];s&&"BR"==s.tagName&&t.addRange(t.getRangeAt(0))}(s,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;const t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer,o=e.ownerDocument.getSelection();return!t||t.parentElement!==e||(o.anchorNode!==t&&!t.contains(o.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const e of this.domDocuments){const t=e.getSelection();if(t.rangeCount){const o=e.activeElement,s=this.domConverter.mapDomToView(o);o&&s&&t.removeAllRanges()}}}_removeFakeSelection(){const e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function At(e,t,o){const s=t instanceof Array?t:t.childNodes,i=s[o];if((0,a.Gs)(i))return i.data=wt+i.data,i;{const i=e.createTextNode(wt);return Array.isArray(t)?s.splice(o,0,i):(0,a.ZQ)(t,o,i),i}}function St(e,t){return(0,a.UG)(e)&&(0,a.UG)(t)&&!(0,a.Gs)(e)&&!(0,a.Gs)(t)&&!(0,a.C3)(e)&&!(0,a.C3)(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Ot(e,t){return(0,a.UG)(e)&&(0,a.UG)(t)&&(0,a.Gs)(e)&&(0,a.Gs)(t)}function Rt(e,t,o){return t===o||((0,a.Gs)(t)&&(0,a.Gs)(o)?t.data===o.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(o)))}function jt(e,t){const o=e.data;if(o==t)return;const s=(0,a.HZ)(o,t);for(const t of s)"insert"===t.type?e.insertData(t.index,t.values.join("")):e.deleteData(t.index,t.howMany)}const Mt=_t(a.global.document),Vt=mt(a.global.document),Bt=bt(a.global.document),It="data-ck-unsafe-attribute-",Dt="data-ck-unsafe-element";class Nt{constructor(e,{blockFillerMode:t,renderingMode:o="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new C,this._inlineObjectElementMatcher=new C,this._elementsWithTemporaryCustomProperties=new Set,this.document=e,this.renderingMode=o,this.blockFillerMode=t||("editing"===o?"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="editing"===this.renderingMode?a.global.document:a.global.document.implementation.createHTMLDocument("")}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new Ne(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(const t of Array.from(e.children))this.unbindDomElement(t)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,o){return"data"===this.renderingMode||!(e=e.toLowerCase()).startsWith("on")&&(("srcdoc"!==e||!t.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===o&&("src"===e||"srcset"===e)||("source"===o&&"srcset"===e||!t.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(e,t){if("data"===this.renderingMode)return void(e.innerHTML=t);const o=(new DOMParser).parseFromString(t,"text/html"),s=o.createDocumentFragment(),i=o.body.childNodes;for(;i.length>0;)s.appendChild(i[0]);const r=o.createTreeWalker(s,NodeFilter.SHOW_ELEMENT),n=[];let a;for(;a=r.nextNode();)n.push(a);for(const e of n){for(const t of e.getAttributeNames())this.setDomElementAttribute(e,t,e.getAttribute(t));const t=e.tagName.toLowerCase();this._shouldRenameElement(t)&&(Zt(t),e.replaceWith(this._createReplacementDomElement(t,e)))}for(;e.firstChild;)e.firstChild.remove();e.append(s)}viewToDom(e,t={}){if(e.is("$text")){const t=this._processDataFromViewText(e);return this._domDocument.createTextNode(t)}{const o=e;if(this.mapViewToDom(o)){if(!o.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(o);this._elementsWithTemporaryCustomProperties.add(o)}let s;if(o.is("documentFragment"))s=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(s,o);else{if(o.is("uiElement"))return s="$comment"===o.name?this._domDocument.createComment(o.getCustomProperty("$rawContent")):o.render(this._domDocument,this),t.bind&&this.bindElements(s,o),s;this._shouldRenameElement(o.name)?(Zt(o.name),s=this._createReplacementDomElement(o.name)):s=o.hasAttribute("xmlns")?this._domDocument.createElementNS(o.getAttribute("xmlns"),o.name):this._domDocument.createElement(o.name),o.is("rawElement")&&o.render(s,this),t.bind&&this.bindElements(s,o);for(const e of o.getAttributeKeys())this.setDomElementAttribute(s,e,o.getAttribute(e),o)}if(!1!==t.withChildren)for(const e of this.viewChildrenToDom(o,t))s.appendChild(e);return s}}setDomElementAttribute(e,t,o,s){const i=this.shouldRenderAttribute(t,o,e.tagName.toLowerCase())||s&&s.shouldRenderUnsafeAttribute(t);i||(0,a.KE)("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:o}),(0,a.$b)(t)?(e.hasAttribute(t)&&!i?e.removeAttribute(t):e.hasAttribute(It+t)&&i&&e.removeAttribute(It+t),e.setAttribute(i?t:It+t,o)):(0,a.KE)("domconverter-invalid-attribute-detected",{domElement:e,key:t,value:o})}removeDomElementAttribute(e,t){t!=Dt&&(e.removeAttribute(t),e.removeAttribute(It+t))}*viewChildrenToDom(e,t={}){const o=e.getFillerOffset&&e.getFillerOffset();let s=0;for(const i of e.getChildren()){o===s&&(yield this._getBlockFiller());const e=i.is("element")&&!!i.getCustomProperty("dataPipeline:transparentRendering")&&!(0,a.Ps)(i.getAttributes());e&&"data"==this.renderingMode?yield*this.viewChildrenToDom(i,t):(e&&(0,a.KE)("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:i}),yield this.viewToDom(i,t)),s++}o===s&&(yield this._getBlockFiller())}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),o=this.viewPositionToDom(e.end),s=this._domDocument.createRange();return s.setStart(t.parent,t.offset),s.setEnd(o.parent,o.offset),s}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const o=this.findCorrespondingDomText(t);if(!o)return null;let s=e.offset;return vt(o)&&(s+=kt),{parent:o,offset:s}}{let o,s,i;if(0===e.offset){if(o=this.mapViewToDom(t),!o)return null;i=o.childNodes[0]}else{const t=e.nodeBefore;if(s=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(t),!s)return null;o=s.parentNode,i=s.nextSibling}if((0,a.Gs)(i)&&vt(i))return{parent:i,offset:kt};return{parent:o,offset:s?(0,a.cq)(s)+1:0}}}domToView(e,t={}){const o=[],s=this._domToView(e,t,o),i=s.next().value;return i?(s.next(),this._processDomInlineNodes(null,o,t),i.is("$text")&&0==i.data.length?null:i):null}*domChildrenToView(e,t={},o=[]){for(let s=0;s<e.childNodes.length;s++){const i=e.childNodes[s],r=this._domToView(i,t,o),n=r.next().value;null!==n&&(this._isBlockViewElement(n)&&this._processDomInlineNodes(e,o,t),yield n,r.next())}this._processDomInlineNodes(e,o,t)}domSelectionToView(e){if(function(e){if(!a.OB.isGecko)return!1;if(!e.rangeCount)return!1;const t=e.getRangeAt(0).startContainer;try{Object.prototype.toString.call(t)}catch(e){return!0}return!1}(e))return new Ne([]);if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;(0,a.Gs)(t)&&(t=t.parentNode);const o=this.fakeSelectionToView(t);if(o)return o}const t=this.isDomSelectionBackward(e),o=[];for(let t=0;t<e.rangeCount;t++){const s=e.getRangeAt(t),i=this.domRangeToView(s);i&&o.push(i)}return new Ne(o,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),o=this.domPositionToView(e.endContainer,e.endOffset);return t&&o?new Ie(t,o):null}domPositionToView(e,t=0){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,(0,a.cq)(e));const o=this.mapDomToView(e);if(o&&(o.is("uiElement")||o.is("rawElement")))return Be._createBefore(o);if((0,a.Gs)(e)){if(yt(e))return this.domPositionToView(e.parentNode,(0,a.cq)(e));const o=this.findCorrespondingViewText(e);let s=t;return o?(vt(e)&&(s-=kt,s=s<0?0:s),new Be(o,s)):null}if(0===t){const t=this.mapDomToView(e);if(t)return new Be(t,0)}else{const o=e.childNodes[t-1];if((0,a.Gs)(o)&&yt(o)||o&&this.isBlockFiller(o))return this.domPositionToView(o.parentNode,(0,a.cq)(o));const s=(0,a.Gs)(o)?this.findCorrespondingViewText(o):this.mapDomToView(o);if(s&&s.parent)return new Be(s.parent,s.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(yt(e))return null;const t=this.getHostViewElement(e);if(t)return t;const o=e.previousSibling;if(o){if(!this.isElement(o))return null;const e=this.mapDomToView(o);if(e){const t=e.nextSibling;return t instanceof y?t:null}}else{const t=this.mapDomToView(e.parentNode);if(t){const e=t.getChild(0);return e instanceof y?e:null}}return null}mapViewToDom(e){return this._viewToDomMapping.get(e)}findCorrespondingDomText(e){const t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}focus(e){const t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){const{scrollX:e,scrollY:o}=a.global.window,s=[];Ft(t,(e=>{const{scrollLeft:t,scrollTop:o}=e;s.push([t,o])})),t.focus(),Ft(t,(e=>{const[t,o]=s.shift();e.scrollLeft=t,e.scrollTop=o})),a.global.window.scrollTo(e,o)}}_clearDomSelection(){const e=this.mapViewToDom(this.document.selection.editableElement);if(!e)return;const t=e.ownerDocument.defaultView.getSelection(),o=this.domSelectionToView(t);o&&o.rangeCount>0&&t.removeAllRanges()}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(e){return"br"==this.blockFillerMode?e.isEqualNode(Mt):!("BR"!==e.tagName||!Lt(e,this.blockElements)||1!==e.parentNode.childNodes.length)||(e.isEqualNode(Bt)||function(e,t){const o=e.isEqualNode(Vt);return o&&Lt(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements))}isDomSelectionBackward(e){if(e.isCollapsed)return!1;const t=this._domDocument.createRange();try{t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset)}catch(e){return!1}const o=t.collapsed;return t.detach(),o}getHostViewElement(e){const t=(0,a.dk)(e);for(t.pop();t.length;){const e=t.pop(),o=this._domToViewMapping.get(e);if(o&&(o.is("uiElement")||o.is("rawElement")))return o}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}registerInlineObjectMatcher(e){this._inlineObjectElementMatcher.add(e)}_clearTemporaryCustomProperties(){for(const e of this._elementsWithTemporaryCustomProperties)e._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return mt(this._domDocument);case"markedNbsp":return bt(this._domDocument);case"br":return _t(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if((0,a.Gs)(e)&&vt(e)&&t<kt)return!1;if(this.isElement(e)&&vt(e.childNodes[t]))return!1;const o=this.mapDomToView(e);return!o||!o.is("uiElement")&&!o.is("rawElement")}*_domToView(e,t,o){if(this.isBlockFiller(e))return null;const s=this.getHostViewElement(e);if(s)return s;if((0,a.C3)(e)&&t.skipComments)return null;if((0,a.Gs)(e)){if(yt(e))return null;{const t=e.data;if(""===t)return null;const s=new y(this.document,t);return o.push(s),s}}{let s=this.mapDomToView(e);if(s)return this._isInlineObjectElement(s)&&o.push(s),s;if(this.isDocumentFragment(e))s=new it(this.document),t.bind&&this.bindDocumentFragments(e,s);else{s=this._createViewElement(e,t),t.bind&&this.bindElements(e,s);const i=e.attributes;if(i)for(let e=i.length,t=0;t<e;t++)s._setAttribute(i[t].name,i[t].value);if(this._isViewElementWithRawContent(s,t))return s._setCustomProperty("$rawContent",e.innerHTML),this._isBlockViewElement(s)||o.push(s),s;if((0,a.C3)(e))return s._setCustomProperty("$rawContent",e.data),s}yield s;const i=[];if(!1!==t.withChildren)for(const o of this.domChildrenToView(e,t,i))s._appendChild(o);if(this._isInlineObjectElement(s))o.push(s);else for(const e of i)o.push(e)}}_processDomInlineNodes(e,t,o){if(!t.length)return;if(e&&!this.isDocumentFragment(e)&&!this._isBlockDomElement(e))return;let s=!1;for(let e=0;e<t.length;e++){const i=t[e];if(!i.is("$text")){s=!1;continue}let r,n=!1;if(zt(i,this.preElements))r=xt(i.data);else{r=i.data.replace(/[ \n\t\r]{1,}/g," "),n=/[^\S\u00A0]/.test(r.charAt(r.length-1));const a=e>0?t[e-1]:null,c=e+1<t.length?t[e+1]:null,l=!a||a.is("element")&&"br"==a.name||s,d=!c&&!vt(i.data);!1!==o.withChildren&&(l&&(r=r.replace(/^ /,"")),d&&(r=r.replace(/ $/,""))),r=xt(r),r=r.replace(/ \u00A0/g," ");const h=c&&c.is("element")&&"br"!=c.name,u=c&&c.is("$text")&&" "==c.data.charAt(0);(/[ \u00A0]\u00A0$/.test(r)||!c||h||u)&&(r=r.replace(/\u00A0$/," ")),(l||a&&a.is("element")&&"br"!=a.name)&&(r=r.replace(/^\u00A0/," "))}0==r.length&&i.parent?(i._remove(),t.splice(e,1),e--):(i._data=r,s=n)}t.length=0}_processDataFromViewText(e){let t=e.data;if(e.getAncestors().some((e=>this.preElements.includes(e.name))))return t;if(" "==t.charAt(0)){const o=this._getTouchingInlineViewNode(e,!1);!(o&&o.is("$textProxy")&&this._nodeEndsWithSpace(o))&&o||(t=" "+t.substr(1))}if(" "==t.charAt(t.length-1)){const o=this._getTouchingInlineViewNode(e,!0),s=o&&o.is("$textProxy")&&" "==o.data.charAt(0);" "!=t.charAt(t.length-2)&&o&&!s||(t=t.substr(0,t.length-1)+" ")}return t.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(e){if(e.getAncestors().some((e=>this.preElements.includes(e.name))))return!1;const t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_getTouchingInlineViewNode(e,t){const o=new Ve({startPosition:t?Be._createAfter(e):Be._createBefore(e),direction:t?"forward":"backward"});for(const e of o){if(e.item.is("element","br"))return null;if(this._isInlineObjectElement(e.item))return e.item;if(e.item.is("containerElement"))return null;if(e.item.is("$textProxy"))return e.item}return null}_isBlockDomElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isBlockViewElement(e){return e.is("element")&&this.blockElements.includes(e.name)}_isInlineObjectElement(e){return!!e.is("element")&&("br"==e.name||this.inlineObjectElements.includes(e.name)||!!this._inlineObjectElementMatcher.match(e))}_createViewElement(e,t){if((0,a.C3)(e))return new Qe(this.document,"$comment");const o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new Ee(this.document,o)}_isViewElementWithRawContent(e,t){return!1!==t.withChildren&&e.is("element")&&!!this._rawContentElementMatcher.match(e)}_shouldRenameElement(e){const t=e.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(t)}_createReplacementDomElement(e,t){const o=this._domDocument.createElement("span");if(o.setAttribute(Dt,e),t){for(;t.firstChild;)o.appendChild(t.firstChild);for(const e of t.getAttributeNames())o.setAttribute(e,t.getAttribute(e))}return o}}function zt(e,t){return e.getAncestors().some((e=>e.is("element")&&t.includes(e.name)))}function Ft(e,t){let o=e;for(;o;)t(o),o=o.parentElement}function Lt(e,t){const o=e.parentNode;return!!o&&!!o.tagName&&t.includes(o.tagName.toLowerCase())}function Zt(e){"script"===e&&(0,a.KE)("domconverter-unsafe-script-element-detected"),"style"===e&&(0,a.KE)("domconverter-unsafe-style-element-detected")}class Wt extends((0,a.Xu)()){constructor(e){super(),this._isEnabled=!1,this.view=e,this.document=e.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}var $t=o("./node_modules/lodash-es/assignIn.js");class qt{constructor(e,t,o){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,(0,$t.Z)(this,o)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Ht extends Wt{constructor(){super(...arguments),this.useCapture=!1}observe(e){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((t=>{this.listenTo(e,t,((e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)}),{useCapture:this.useCapture})}))}stopObserving(e){this.stopListening(e)}fire(e,t,o){this.isEnabled&&this.document.fire(e,new qt(this.view,t,o))}}class Ut extends Ht{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(e){const t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return(0,a.Cq)(this)}};this.fire(e.type,e,t)}}var Gt=o("./node_modules/lodash-es/debounce.js");class Kt extends Wt{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=(0,Gt.Z)((e=>{this.document.fire("selectionChangeDone",e)}),200)}observe(){const e=this.document;e.on("arrowKey",((t,o)=>{e.selection.isFake&&this.isEnabled&&o.preventDefault()}),{context:"$capture"}),e.on("arrowKey",((t,o)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(o.keyCode)}),{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,o=new Ne(t.getRanges(),{backward:t.isBackward,fake:!1});e!=a.Do.arrowleft&&e!=a.Do.arrowup||o.setTo(o.getFirstPosition()),e!=a.Do.arrowright&&e!=a.Do.arrowdown||o.setTo(o.getLastPosition());const s={oldSelection:t,newSelection:o,domSelection:null};this.document.fire("selectionChange",s),this._fireSelectionChangeDoneDebounced(s)}}const Jt=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Yt=function(e){return this.__data__.has(e)};function Xt(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new V.Z;++t<o;)this.add(e[t])}Xt.prototype.add=Xt.prototype.push=Jt,Xt.prototype.has=Yt;const Qt=Xt;const eo=function(e,t){for(var o=-1,s=null==e?0:e.length;++o<s;)if(t(e[o],o,e))return!0;return!1};const to=function(e,t){return e.has(t)};const oo=function(e,t,o,s,i,r){var n=1&o,a=e.length,c=t.length;if(a!=c&&!(n&&c>a))return!1;var l=r.get(e),d=r.get(t);if(l&&d)return l==t&&d==e;var h=-1,u=!0,p=2&o?new Qt:void 0;for(r.set(e,t),r.set(t,e);++h<a;){var f=e[h],g=t[h];if(s)var m=n?s(g,f,h,t,e,r):s(f,g,h,e,t,r);if(void 0!==m){if(m)continue;u=!1;break}if(p){if(!eo(t,(function(e,t){if(!to(p,t)&&(f===e||i(f,e,o,s,r)))return p.push(t)}))){u=!1;break}}else if(f!==g&&!i(f,g,o,s,r)){u=!1;break}}return r.delete(e),r.delete(t),u};var so=o("./node_modules/lodash-es/_Symbol.js"),io=o("./node_modules/lodash-es/_Uint8Array.js");const ro=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e,s){o[++t]=[s,e]})),o};const no=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e){o[++t]=e})),o};var ao=so.Z?so.Z.prototype:void 0,co=ao?ao.valueOf:void 0;const lo=function(e,t,o,s,i,r,n){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new io.Z(e),new io.Z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,X.Z)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=ro;case"[object Set]":var c=1&s;if(a||(a=no),e.size!=t.size&&!c)return!1;var l=n.get(e);if(l)return l==t;s|=2,n.set(e,t);var d=oo(a(e),a(t),s,i,r,n);return n.delete(e),d;case"[object Symbol]":if(co)return co.call(e)==co.call(t)}return!1};var ho=o("./node_modules/lodash-es/_getAllKeys.js"),uo=Object.prototype.hasOwnProperty;const po=function(e,t,o,s,i,r){var n=1&o,a=(0,ho.Z)(e),c=a.length;if(c!=(0,ho.Z)(t).length&&!n)return!1;for(var l=c;l--;){var d=a[l];if(!(n?d in t:uo.call(t,d)))return!1}var h=r.get(e),u=r.get(t);if(h&&u)return h==t&&u==e;var p=!0;r.set(e,t),r.set(t,e);for(var f=n;++l<c;){var g=e[d=a[l]],m=t[d];if(s)var b=n?s(m,g,d,t,e,r):s(g,m,d,e,t,r);if(!(void 0===b?g===m||i(g,m,o,s,r):b)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var _=e.constructor,k=t.constructor;_==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof k&&k instanceof k||(p=!1)}return r.delete(e),r.delete(t),p};var fo=o("./node_modules/lodash-es/_getTag.js"),go="[object Arguments]",mo="[object Array]",bo="[object Object]",_o=Object.prototype.hasOwnProperty;const ko=function(e,t,o,s,i,r){var n=(0,S.Z)(e),a=(0,S.Z)(t),c=n?mo:(0,fo.Z)(e),l=a?mo:(0,fo.Z)(t),d=(c=c==go?bo:c)==bo,h=(l=l==go?bo:l)==bo,u=c==l;if(u&&(0,le.Z)(e)){if(!(0,le.Z)(t))return!1;n=!0,d=!1}if(u&&!d)return r||(r=new J.Z),n||(0,he.Z)(e)?oo(e,t,o,s,i,r):lo(e,t,c,o,s,i,r);if(!(1&o)){var p=d&&_o.call(e,"__wrapped__"),f=h&&_o.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return r||(r=new J.Z),i(g,m,o,s,r)}}return!!u&&(r||(r=new J.Z),po(e,t,o,s,i,r))};const wo=function e(t,o,s,i,r){return t===o||(null==t||null==o||!(0,ae.Z)(t)&&!(0,ae.Z)(o)?t!=t&&o!=o:ko(t,o,s,i,e,r))};const vo=function(e,t,o){var s=(o="function"==typeof o?o:void 0)?o(e,t):void 0;return void 0===s?wo(e,t,void 0,o):!!s};class yo extends Wt{constructor(e){super(e),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=e.domConverter,this.renderer=e._renderer,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.add(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}stopObserving(e){if(this._domElements.delete(e),this.isEnabled){this._mutationObserver.disconnect();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}}enable(){super.enable();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(0===e.length)return;const t=this.domConverter,o=new Set,s=new Set;for(const o of e){const e=t.mapDomToView(o.target);e&&(e.is("uiElement")||e.is("rawElement")||"childList"!==o.type||this._isBogusBrMutation(o)||s.add(e))}for(const i of e){const e=t.mapDomToView(i.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===i.type){const e=t.findCorrespondingViewText(i.target);e&&!s.has(e.parent)?o.add(e):!e&&vt(i.target)&&s.add(t.mapDomToView(i.target.parentNode))}}let i=!1;for(const e of o)i=!0,this.renderer.markToSync("text",e);for(const e of s){const o=t.mapViewToDom(e),s=Array.from(e.getChildren()),r=Array.from(t.domChildrenToView(o,{withChildren:!1}));vo(s,r,xo)||(i=!0,this.renderer.markToSync("children",e))}i&&this.view.forceRender()}_isBogusBrMutation(e){let t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}function xo(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}class Po extends Ht{constructor(e){super(e),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const t=this.document;t.on("focus",(()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout((()=>{this.flush(),e.change((()=>{}))}),50)})),t.on("blur",((o,s)=>{const i=t.selection.editableElement;null!==i&&i!==s.target||(t.isFocused=!1,this._isFocusChanging=!1,e.change((()=>{})))}))}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(e){this.fire(e.type,e)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Co extends Wt{constructor(e){super(e),this.mutationObserver=e.getObserver(yo),this.focusObserver=e.getObserver(Po),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=(0,Gt.Z)((e=>{this.document.fire("selectionChangeDone",e)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=(0,Gt.Z)((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(e){const t=e.ownerDocument,o=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,t),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(e,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(e,"keydown",o,{priority:"highest",useCapture:!0}),this.listenTo(e,"keyup",o,{priority:"highest",useCapture:!0}),this._documents.has(t)||(this.listenTo(t,"mouseup",o,{priority:"highest",useCapture:!0}),this.listenTo(t,"selectionchange",((e,o)=>{this.document.isComposing&&!a.OB.isAndroid||(this._handleSelectionChange(o,t),this._documentIsSelectingInactivityTimeoutDebounced())})),this._documents.add(t))}stopObserving(e){this.stopListening(e)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(e,t){if(!this.isEnabled)return;const o=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(o.anchorNode))return;this.mutationObserver.flush();const s=this.domConverter.domSelectionToView(o);if(0!=s.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(s)||!this.domConverter.isDomSelectionCorrect(o))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(s))this.view.forceRender();else{const e={oldSelection:this.selection,newSelection:s,domSelection:o};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class To extends Ht{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];const t=this.document;t.on("compositionstart",(()=>{t.isComposing=!0}),{priority:"low"}),t.on("compositionend",(()=>{t.isComposing=!1}),{priority:"low"})}onDomEvent(e){this.fire(e.type,e,{data:e.data})}}class Eo{constructor(e,t={}){this._files=t.cacheFiles?Ao(e):null,this._native=e}get files(){return this._files||(this._files=Ao(this._native)),this._files}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}setDragImage(e,t,o){this._native.setDragImage(e,t,o)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Ao(e){const t=Array.from(e.files||[]),o=Array.from(e.items||[]);return t.length?t:o.filter((e=>"file"===e.kind)).map((e=>e.getAsFile()))}class So extends Ht{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(e){const t=e.getTargetRanges(),o=this.view,s=o.document;let i=null,r=null,n=[];if(e.dataTransfer&&(i=new Eo(e.dataTransfer)),null!==e.data?r=e.data:i&&(r=i.getData("text/plain")),s.selection.isFake)n=Array.from(s.selection.getRanges());else if(t.length)n=t.map((e=>{const t=o.domConverter.domPositionToView(e.startContainer,e.startOffset),s=o.domConverter.domPositionToView(e.endContainer,e.endOffset);return t?o.createRange(t,s):s?o.createRange(s):void 0})).filter((e=>!!e));else if(a.OB.isAndroid){const t=e.target.ownerDocument.defaultView.getSelection();n=Array.from(o.domConverter.domSelectionToView(t).getRanges())}if(a.OB.isAndroid&&"insertCompositionText"==e.inputType&&r&&r.endsWith("\n"))this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:[o.createRange(n[0].end)]});else if("insertText"==e.inputType&&r&&r.includes("\n")){const t=r.split(/\n{1,2}/g);let o=n;for(let r=0;r<t.length;r++){const n=t[r];""!=n&&(this.fire(e.type,e,{data:n,dataTransfer:i,targetRanges:o,inputType:e.inputType,isComposing:e.isComposing}),o=[s.selection.getFirstRange()]),r+1<t.length&&(this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:o}),o=[s.selection.getFirstRange()])}}else this.fire(e.type,e,{data:r,dataTransfer:i,targetRanges:n,inputType:e.inputType,isComposing:e.isComposing})}}class Oo extends Wt{constructor(e){super(e),this.document.on("keydown",((e,t)=>{if(this.isEnabled&&(0,a.dj)(t.keyCode)){const o=new Fe(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(o,t),o.stop.called&&e.stop()}}))}observe(){}stopObserving(){}}class Ro extends Wt{constructor(e){super(e);const t=this.document;t.on("keydown",((e,o)=>{if(!this.isEnabled||o.keyCode!=a.Do.tab||o.ctrlKey)return;const s=new Fe(t,"tab",t.selection.getFirstRange());t.fire(s,o),s.stop.called&&e.stop()}))}observe(){}stopObserving(){}}const jo=function(e){return(0,k.Z)(e,5)};class Mo extends((0,a.Re)()){constructor(e){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 Ue(e),this.domConverter=new Nt(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Et(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new rt(this.document),this.addObserver(yo),this.addObserver(Po),this.addObserver(Co),this.addObserver(Ut),this.addObserver(Kt),this.addObserver(To),this.addObserver(Oo),this.addObserver(So),this.addObserver(Ro),this.document.on("arrowKey",Pt,{priority:"low"}),et(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})),a.OB.isiOS&&this.listenTo(this.document,"blur",((e,t)=>{this.domConverter.mapDomToView(t.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}))}attachDomRoot(e,t="main"){const o=this.document.getRoot(t);o._name=e.tagName.toLowerCase();const s={};for(const{name:t,value:i}of Array.from(e.attributes))s[t]=i,"class"===t?this._writer.addClass(i.split(" "),o):this._writer.setAttribute(t,i,o);this._initialDomRootAttributes.set(e,s);const i=()=>{this._writer.setAttribute("contenteditable",(!o.isReadOnly).toString(),o),o.isReadOnly?this._writer.addClass("ck-read-only",o):this._writer.removeClass("ck-read-only",o)};i(),this.domRoots.set(t,e),this.domConverter.bindElements(e,o),this._renderer.markToSync("children",o),this._renderer.markToSync("attributes",o),this._renderer.domDocuments.add(e.ownerDocument),o.on("change:children",((e,t)=>this._renderer.markToSync("children",t))),o.on("change:attributes",((e,t)=>this._renderer.markToSync("attributes",t))),o.on("change:text",((e,t)=>this._renderer.markToSync("text",t))),o.on("change:isReadOnly",(()=>this.change(i))),o.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const o of this._observers.values())o.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach((({name:e})=>t.removeAttribute(e)));const o=this._initialDomRootAttributes.get(t);for(const e in o)t.setAttribute(e,o[e]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t);for(const e of this._observers.values())e.stopObserving(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(const[e,o]of this.domRoots)t.observe(o,e);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values())e.disable()}enableObservers(){for(const e of this._observers.values())e.enable()}scrollToTheSelection({alignToTop:e,forceScroll:t,viewportOffset:o=20,ancestorOffset:s=20}={}){const i=this.document.selection.getFirstRange();if(!i)return;const r=jo({alignToTop:e,forceScroll:t,viewportOffset:o,ancestorOffset:s});"number"==typeof o&&(o={top:o,bottom:o,left:o,right:o});const n={target:this.domConverter.viewRangeToDom(i),viewportOffset:o,ancestorOffset:s,alignToTop:e,forceScroll:t};this.fire("scrollToTheSelection",n,r),(0,a.mR)(n)}focus(){if(!this.document.isFocused){const e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new a.Bb("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;const t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){a.Bb.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Po).flush(),this.change((()=>{}))}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return Be._createAt(e,t)}createPositionAfter(e){return Be._createAfter(e)}createPositionBefore(e){return Be._createBefore(e)}createRange(e,t){return new Ie(e,t)}createRangeOn(e){return Ie._createOn(e)}createRangeIn(e){return Ie._createIn(e)}createSelection(...e){return new Ne(...e)}_disableRendering(e){this._renderingDisabled=e,0==e&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Vo{is(){throw new Error("is() method is abstract")}}class Bo extends Vo{constructor(e){super(),this.parent=null,this._attrs=(0,a.qL)(e)}get document(){return null}get index(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new a.Bb("model-node-not-found-in-parent",this);return e}get startOffset(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new a.Bb("model-node-not-found-in-parent",this);return e}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}getCommonAncestor(e,t={}){const o=this.getAncestors(t),s=e.getAncestors(t);let i=0;for(;o[i]==s[i]&&o[i];)i++;return 0===i?null:o[i-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),o=e.getPath(),s=(0,a.Rt)(t,o);switch(s){case"prefix":return!0;case"extension":return!1;default:return t[s]<o[s]}}isAfter(e){return this!=e&&(this.root===e.root&&!this.isBefore(e))}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce(((e,t)=>(e[t[0]]=t[1],e)),{})),e}_clone(e){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=(0,a.qL)(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}Bo.prototype.is=function(e){return"node"===e||"model:node"===e};class Io{constructor(e){this._nodes=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((e,t)=>e+t.offsetSize),0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){const t=this._nodes.indexOf(e);return-1==t?null:t}getNodeStartOffset(e){const t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce(((e,t)=>e+t.offsetSize),0)}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;const t=this._nodes[e];if(!t)throw new a.Bb("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const o of this._nodes){if(e>=t&&e<t+o.offsetSize)return this.getNodeIndex(o);t+=o.offsetSize}if(t!=e)throw new a.Bb("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}_insertNodes(e,t){for(const e of t)if(!(e instanceof Bo))throw new a.Bb("model-nodelist-insertnodes-not-node",this);this._nodes=(0,a.x)(this._nodes,Array.from(t),e,0)}_removeNodes(e,t=1){return this._nodes.splice(e,t)}toJSON(){return this._nodes.map((e=>e.toJSON()))}}class Do extends Bo{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const e=super.toJSON();return e.data=this.data,e}_clone(){return new Do(this.data,this.getAttributes())}static fromJSON(e){return new Do(e.data,e.attributes)}}Do.prototype.is=function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e};class No extends Vo{constructor(e,t,o){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new a.Bb("model-textproxy-wrong-offsetintext",this);if(o<0||t+o>e.offsetSize)throw new a.Bb("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+o),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?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 e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}No.prototype.is=function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e};class zo extends Bo{constructor(e,t,o){super(t),this._children=new Io,this.name=e,o&&this._insertChild(0,o)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const o of e)t=t.getChild(t.offsetToIndex(o));return t}findAncestor(e,t={}){let o=t.includeSelf?this:this.parent;for(;o;){if(o.name===e)return o;o=o.parent}return null}toJSON(){const e=super.toJSON();if(e.name=this.name,this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){const t=e?Array.from(this._children).map((e=>e._clone(!0))):void 0;return new zo(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const o=function(e){if("string"==typeof e)return[new Do(e)];(0,a.TW)(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new Do(e):e instanceof No?new Do(e.data,e.getAttributes()):e))}(t);for(const e of o)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,o)}_removeChildren(e,t=1){const o=this._children._removeNodes(e,t);for(const e of o)e.parent=null;return o}static fromJSON(e){let t;if(e.children){t=[];for(const o of e.children)o.name?t.push(zo.fromJSON(o)):t.push(Do.fromJSON(o))}return new zo(e.name,e.attributes,t)}}zo.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e};class Fo{constructor(e){if(!e||!e.boundaries&&!e.startPosition)throw new a.Bb("model-tree-walker-no-start-position",null);const t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new a.Bb("model-tree-walker-unknown-direction",e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,e.startPosition?this._position=e.startPosition.clone():this._position=Zo._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.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(e){let t,o,s,i;do{s=this.position,i=this._visitedParent,({done:t,value:o}=this.next())}while(!t&&e(o));t||(this._position=s,this._visitedParent=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),o=this._visitedParent;if(null===o.parent&&t.offset===o.maxOffset)return{done:!0,value:void 0};if(o===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const s=Wo(t,o),i=s||$o(t,o,s);if(i instanceof zo){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t.path.push(0),this._visitedParent=i;return this._position=t,Lo("elementStart",i,e,t,1)}if(i instanceof Do){let s;if(this.singleCharacters)s=1;else{let e=i.endOffset;this._boundaryEndParent==o&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),s=e-t.offset}const r=t.offset-i.startOffset,n=new No(i,r,s);return t.offset+=s,this._position=t,Lo("text",n,e,t,s)}return t.path.pop(),t.offset++,this._position=t,this._visitedParent=o.parent,this.ignoreElementEnd?this._next():Lo("elementEnd",o,e,t)}_previous(){const e=this.position,t=this.position.clone(),o=this._visitedParent;if(null===o.parent&&0===t.offset)return{done:!0,value:void 0};if(o==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const s=t.parent,i=Wo(t,s),r=i||qo(t,s,i);if(r instanceof zo)return t.offset--,this.shallow?(this._position=t,Lo("elementStart",r,e,t,1)):(t.path.push(r.maxOffset),this._position=t,this._visitedParent=r,this.ignoreElementEnd?this._previous():Lo("elementEnd",r,e,t));if(r instanceof Do){let s;if(this.singleCharacters)s=1;else{let e=r.startOffset;this._boundaryStartParent==o&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),s=t.offset-e}const i=t.offset-r.startOffset,n=new No(r,i-s,s);return t.offset-=s,this._position=t,Lo("text",n,e,t,s)}return t.path.pop(),this._position=t,this._visitedParent=o.parent,Lo("elementStart",o,e,t,1)}}function Lo(e,t,o,s,i){return{done:!1,value:{type:e,item:t,previousPosition:o,nextPosition:s,length:i}}}class Zo extends Vo{constructor(e,t,o="toNone"){if(super(),!e.is("element")&&!e.is("documentFragment"))throw new a.Bb("model-position-root-invalid",e);if(!(t instanceof Array)||0===t.length)throw new a.Bb("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=o}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChild(e.offsetToIndex(this.path[t])),!e)throw new a.Bb("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new a.Bb("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Wo(this,this.parent)}get nodeAfter(){const e=this.parent;return $o(this,e,Wo(this,e))}get nodeBefore(){const e=this.parent;return qo(this,e,Wo(this,e))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(e){if(this.root!=e.root)return"different";const t=(0,a.Rt)(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}getLastMatchingPosition(e,t={}){t.startPosition=this;const o=new Fo(t);return o.skip(e),o.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){const t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];const t=(0,a.Rt)(this.path,e.path),o="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,o)}getCommonAncestor(e){const t=this.getAncestors(),o=e.getAncestors();let s=0;for(;t[s]==o[s]&&t[s];)s++;return 0===s?null:t[s-1]}getShiftedBy(e){const t=this.clone(),o=t.offset+e;return t.offset=o<0?0:o,t}isAfter(e){return"after"==this.compareWith(e)}isBefore(e){return"before"==this.compareWith(e)}isEqual(e){return"same"==this.compareWith(e)}isTouching(e){if(this.root!==e.root)return!1;const t=Math.min(this.path.length,e.path.length);for(let o=0;o<t;o++){const t=this.path[o]-e.path[o];if(t<-1||t>1)return!1;if(1===t)return Ho(e,this,o);if(-1===t)return Ho(this,e,o)}return this.path.length===e.path.length||(this.path.length>e.path.length?Uo(this.path,t):Uo(e.path,t))}hasSameParentAs(e){if(this.root!==e.root)return!1;const t=this.getParentPath(),o=e.getParentPath();return"same"==(0,a.Rt)(t,o)}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=Zo._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){const t=e.movedRange;let o;return t.containsPosition(this)||t.start.isEqual(this)?(o=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(o=o._getTransformedByDeletion(e.deletionPosition,1))):o=this.isEqual(e.deletionPosition)?Zo._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),o}_getTransformedByDeletion(e,t){const o=Zo._createAt(this);if(this.root!=e.root)return o;if("same"==(0,a.Rt)(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;o.offset-=t}}else if("prefix"==(0,a.Rt)(e.getParentPath(),this.getParentPath())){const s=e.path.length-1;if(e.offset<=this.path[s]){if(e.offset+t>this.path[s])return null;o.path[s]-=t}}return o}_getTransformedByInsertion(e,t){const o=Zo._createAt(this);if(this.root!=e.root)return o;if("same"==(0,a.Rt)(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(o.offset+=t);else if("prefix"==(0,a.Rt)(e.getParentPath(),this.getParentPath())){const s=e.path.length-1;e.offset<=this.path[s]&&(o.path[s]+=t)}return o}_getTransformedByMove(e,t,o){if(t=t._getTransformedByDeletion(e,o),e.isEqual(t))return Zo._createAt(this);const s=this._getTransformedByDeletion(e,o);return null===s||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(o).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):s._getTransformedByInsertion(t,o)}_getCombined(e,t){const o=e.path.length-1,s=Zo._createAt(t);return s.stickiness=this.stickiness,s.offset=s.offset+this.path[o]-e.offset,s.path=[...s.path,...this.path.slice(o+1)],s}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(e,t,o="toNone"){if(e instanceof Zo)return new Zo(e.root,e.path,e.stickiness);{const s=e;if("end"==t)t=s.maxOffset;else{if("before"==t)return this._createBefore(s,o);if("after"==t)return this._createAfter(s,o);if(0!==t&&!t)throw new a.Bb("model-createpositionat-offset-required",[this,e])}if(!s.is("element")&&!s.is("documentFragment"))throw new a.Bb("model-position-parent-incorrect",[this,e]);const i=s.getPath();return i.push(t),new this(s.root,i,o)}}static _createAfter(e,t){if(!e.parent)throw new a.Bb("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}static _createBefore(e,t){if(!e.parent)throw new a.Bb("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){const o=new Zo(t.graveyard,e.path);return o.stickiness=e.stickiness,o}if(!t.getRoot(e.root))throw new a.Bb("model-position-fromjson-no-root",t,{rootName:e.root});return new Zo(t.getRoot(e.root),e.path,e.stickiness)}}function Wo(e,t){const o=t.getChild(t.offsetToIndex(e.offset));return o&&o.is("$text")&&o.startOffset<e.offset?o:null}function $o(e,t,o){return null!==o?null:t.getChild(t.offsetToIndex(e.offset))}function qo(e,t,o){return null!==o?null:t.getChild(t.offsetToIndex(e.offset)-1)}function Ho(e,t,o){return o+1!==e.path.length&&(!!Uo(t.path,o+1)&&!!function(e,t){let o=e.parent,s=e.path.length-1,i=0;for(;s>=t;){if(e.path[s]+i!==o.maxOffset)return!1;i=1,s--,o=o.parent}return!0}(e,o+1))}function Uo(e,t){for(;t<e.length;){if(0!==e[t])return!1;t++}return!0}Zo.prototype.is=function(e){return"position"===e||"model:position"===e};class Go extends Vo{constructor(e,t){super(),this.start=Zo._createAt(e),this.end=t?Zo._createAt(t):Zo._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Fo({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const e=this.start.getParentPath(),t=this.end.getParentPath();return"same"==(0,a.Rt)(e,t)}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const o=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),s=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return o&&s}containsItem(e){const t=Zo._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new Go(this.start,e.start)),this.containsPosition(e.end)&&t.push(new Go(e.end,this.end))):t.push(new Go(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,o=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(o=e.end),new Go(t,o)}return null}getJoined(e,t=!1){let o=this.isIntersecting(e);if(o||(o=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!o)return null;let s=this.start,i=this.end;return e.start.isBefore(s)&&(s=e.start),e.end.isAfter(i)&&(i=e.end),new Go(s,i)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,o=Zo._createAt(this.start);let s=o.parent;for(;o.path.length>t+1;){const t=s.maxOffset-o.offset;0!==t&&e.push(new Go(o,o.getShiftedBy(t))),o.path=o.path.slice(0,-1),o.offset++,s=s.parent}for(;o.path.length<=this.end.path.length;){const t=this.end.path[o.path.length-1],s=t-o.offset;0!==s&&e.push(new Go(o,o.getShiftedBy(s))),o.offset=t,o.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new Fo(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new Fo(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new Fo(e);yield t.position;for(const e of t)yield e.nextPosition}getTransformedByOperation(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new Go(this.start,this.end)]}getTransformedByOperations(e){const t=[new Go(this.start,this.end)];for(const o of e)for(let e=0;e<t.length;e++){const s=t[e].getTransformedByOperation(o);t.splice(e,1,...s),e+=s.length-1}for(let e=0;e<t.length;e++){const o=t[e];for(let s=e+1;s<t.length;s++){const e=t[s];(o.containsRange(e)||e.containsRange(o)||o.isEqual(e))&&t.splice(s,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e,t=!1){return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e,t=!1){const o=e.sourcePosition,s=e.howMany,i=e.targetPosition;return this._getTransformedByMove(o,i,s,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let o=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(o=this.end.getShiftedBy(1)),t.root!=o.root&&(o=this.end.getShiftedBy(-1)),new Go(t,o)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new Go(this.start);let t=this.start._getTransformedByMergeOperation(e),o=this.end._getTransformedByMergeOperation(e);return t.root!=o.root&&(o=this.end.getShiftedBy(-1)),t.isAfter(o)?(e.sourcePosition.isBefore(e.targetPosition)?(t=Zo._createAt(o),t.offset=0):(e.deletionPosition.isEqual(t)||(o=e.deletionPosition),t=e.targetPosition),new Go(t,o)):new Go(t,o)}_getTransformedByInsertion(e,t,o=!1){if(o&&this.containsPosition(e))return[new Go(this.start,e),new Go(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const o=new Go(this.start,this.end);return o.start=o.start._getTransformedByInsertion(e,t),o.end=o.end._getTransformedByInsertion(e,t),[o]}}_getTransformedByMove(e,t,o,s=!1){if(this.isCollapsed){const s=this.start._getTransformedByMove(e,t,o);return[new Go(s)]}const i=Go._createFromPositionAndShift(e,o),r=t._getTransformedByDeletion(e,o);if(this.containsPosition(t)&&!s&&(i.containsPosition(this.start)||i.containsPosition(this.end))){const s=this.start._getTransformedByMove(e,t,o),i=this.end._getTransformedByMove(e,t,o);return[new Go(s,i)]}let n;const a=this.getDifference(i);let c=null;const l=this.getIntersection(i);if(1==a.length?c=new Go(a[0].start._getTransformedByDeletion(e,o),a[0].end._getTransformedByDeletion(e,o)):2==a.length&&(c=new Go(this.start,this.end._getTransformedByDeletion(e,o))),n=c?c._getTransformedByInsertion(r,o,null!==l||s):[],l){const e=new Go(l.start._getCombined(i.start,r),l.end._getCombined(i.start,r));2==n.length?n.splice(1,0,e):n.push(e)}return n}_getTransformedByDeletion(e,t){let o=this.start._getTransformedByDeletion(e,t),s=this.end._getTransformedByDeletion(e,t);return null==o&&null==s?null:(null==o&&(o=e),null==s&&(s=e),new Go(o,s))}static _createFromPositionAndShift(e,t){const o=e,s=e.getShiftedBy(t);return t>0?new this(o,s):new this(s,o)}static _createIn(e){return new this(Zo._createAt(e,0),Zo._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(Zo._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new a.Bb("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();const t=e[0];e.sort(((e,t)=>e.start.isAfter(t.start)?1:-1));const o=e.indexOf(t),s=new this(t.start,t.end);if(o>0)for(let t=o-1;e[t].end.isEqual(s.start);t++)s.start=Zo._createAt(e[t].start);for(let t=o+1;t<e.length&&e[t].start.isEqual(s.end);t++)s.end=Zo._createAt(e[t].end);return s}static fromJSON(e,t){return new this(Zo.fromJSON(e.start,t),Zo.fromJSON(e.end,t))}}Go.prototype.is=function(e){return"range"===e||"model:range"===e};class Ko extends((0,a.ln)()){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",((e,t)=>{if(t.viewPosition)return;const o=this._modelToViewMapping.get(t.modelPosition.parent);if(!o)throw new a.Bb("mapping-model-position-view-parent-not-found",this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(o,t.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((e,t)=>{if(t.modelPosition)return;const o=this.findMappedViewAncestor(t.viewPosition),s=this._viewToModelMapping.get(o),i=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,o);t.modelPosition=Zo._createAt(s,i)}),{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){const o=this.toModelElement(e);if(this._elementToMarkerNames.has(e))for(const t of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(t);t.defer?this._deferredBindingRemovals.set(e,e.root):(this._viewToModelMapping.delete(e),this._modelToViewMapping.get(o)==e&&this._modelToViewMapping.delete(o))}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const o=this._markerNameToElements.get(t)||new Set;o.add(e);const s=this._elementToMarkerNames.get(e)||new Set;s.add(t),this._markerNameToElements.set(t,o),this._elementToMarkerNames.set(e,s)}unbindElementFromMarkerName(e,t){const o=this._markerNameToElements.get(t);o&&(o.delete(e),0==o.size&&this._markerNameToElements.delete(t));const s=this._elementToMarkerNames.get(e);s&&(s.delete(t),0==s.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}flushDeferredBindings(){for(const[e,t]of this._deferredBindingRemovals)e.root==t&&this.unbindViewElement(e);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(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new Go(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new Ie(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={}){const o={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",o),o.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const o=new Set;for(const e of t)if(e.is("attributeElement"))for(const t of e.getElementsWithSameId())o.add(t);else o.add(e);return o}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,o){if(o!=e){return this._toModelOffset(e.parent,e.index,o)+this._toModelOffset(e,t,e)}if(e.is("$text"))return t;let s=0;for(let o=0;o<t;o++)s+=this.getModelLength(e.getChild(o));return s}getModelLength(e){if(this._viewToModelLengthCallbacks.get(e.name)){return this._viewToModelLengthCallbacks.get(e.name)(e)}if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;{let t=0;for(const o of e.getChildren())t+=this.getModelLength(o);return t}}findPositionIn(e,t){let o,s=0,i=0,r=0;if(e.is("$text"))return new Be(e,t);for(;i<t;)o=e.getChild(r),s=this.getModelLength(o),i+=s,r++;return i==t?this._moveViewPositionToTextNode(new Be(e,r)):this.findPositionIn(o,t-(i-s))}_moveViewPositionToTextNode(e){const t=e.nodeBefore,o=e.nodeAfter;return t instanceof y?new Be(t,t.data.length):o instanceof y?new Be(o,0):e}}class Jo{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=Yo(t),e instanceof No&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=Yo(t),e instanceof No&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=Yo(t),e instanceof No&&(e=this._getSymbolForTextProxy(e));const o=this._consumable.get(e);if(void 0===o)return null;const s=o.get(t);return void 0===s?null:s}revert(e,t){t=Yo(t),e instanceof No&&(e=this._getSymbolForTextProxy(e));const o=this.test(e,t);return!1===o?(this._consumable.get(e).set(t,!0),!0):!0!==o&&null}verifyAllConsumed(e){const t=[];for(const[o,s]of this._consumable)for(const[i,r]of s){const s=i.split(":")[0];r&&e==s&&t.push({event:i,item:o.name||o.description})}if(t.length)throw new a.Bb("conversion-model-consumable-not-consumed",null,{items:t})}_getSymbolForTextProxy(e){let t=null;const o=this._textProxyRegistry.get(e.startOffset);if(o){const s=o.get(e.endOffset);s&&(t=s.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e)),t}_addSymbolForTextProxy(e){const t=e.startOffset,o=e.endOffset,s=e.parent,i=Symbol("$textProxy:"+e.data);let r,n;return r=this._textProxyRegistry.get(t),r||(r=new Map,this._textProxyRegistry.set(t,r)),n=r.get(o),n||(n=new Map,r.set(o,n)),n.set(s,i),i}}function Yo(e){const t=e.split(":");return"insert"==t[0]?t[0]:"addMarker"==t[0]||"removeMarker"==t[0]?e:t.length>1?t[0]+":"+t[1]:t[0]}var Xo=Object.defineProperty,Qo=Object.defineProperties,es=Object.getOwnPropertyDescriptors,ts=Object.getOwnPropertySymbols,os=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,is=(e,t,o)=>t in e?Xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,rs=(e,t)=>{for(var o in t||(t={}))os.call(t,o)&&is(e,o,t[o]);if(ts)for(var o of ts(t))ss.call(t,o)&&is(e,o,t[o]);return e},ns=(e,t)=>Qo(e,es(t));class as extends((0,a.ln)()){constructor(e){super(),this._conversionApi=rs({dispatcher:this},e),this._firedEventsMap=new WeakMap}convertChanges(e,t,o){const s=this._createConversionApi(o,e.getRefreshedItems());for(const t of e.getMarkersToRemove())this._convertMarkerRemove(t.name,t.range,s);const i=this._reduceChanges(e.getChanges());for(const e of i)"insert"===e.type?this._convertInsert(Go._createFromPositionAndShift(e.position,e.length),s):"reinsert"===e.type?this._convertReinsert(Go._createFromPositionAndShift(e.position,e.length),s):"remove"===e.type?this._convertRemove(e.position,e.length,e.name,s):this._convertAttribute(e.range,e.attributeKey,e.attributeOldValue,e.attributeNewValue,s);s.mapper.flushDeferredBindings();for(const e of s.mapper.flushUnboundMarkerNames()){const o=t.get(e).getRange();this._convertMarkerRemove(e,o,s),this._convertMarkerAdd(e,o,s)}for(const t of e.getMarkersToAdd())this._convertMarkerAdd(t.name,t.range,s);s.consumable.verifyAllConsumed("insert")}convert(e,t,o,s={}){const i=this._createConversionApi(o,void 0,s);this._convertInsert(e,i);for(const[e,o]of t)this._convertMarkerAdd(e,o,i);i.consumable.verifyAllConsumed("insert")}convertSelection(e,t,o){const s=this._createConversionApi(o);this.fire("cleanSelection",{selection:e},s);const i=e.getFirstPosition().root;if(!s.mapper.toViewElement(i))return;const r=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this._addConsumablesForSelection(s.consumable,e,r),this.fire("selection",{selection:e},s),e.isCollapsed){for(const t of r)if(s.consumable.test(e,"addMarker:"+t.name)){const o=t.getRange();if(!cs(e.getFirstPosition(),t,s.mapper))continue;const i={item:e,markerName:t.name,markerRange:o};this.fire(`addMarker:${t.name}`,i,s)}for(const t of e.getAttributeKeys())if(s.consumable.test(e,"attribute:"+t)){const o={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.fire(`attribute:${t}:$text`,o,s)}}}_convertInsert(e,t,o={}){o.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,e);for(const o of Array.from(e.getWalker({shallow:!0})).map(ls))this._testAndFire("insert",o,t)}_convertRemove(e,t,o,s){this.fire(`remove:${o}`,{position:e,length:t},s)}_convertAttribute(e,t,o,s,i){this._addConsumablesForRange(i.consumable,e,`attribute:${t}`);for(const r of e){const e={item:r.item,range:Go._createFromPositionAndShift(r.previousPosition,r.length),attributeKey:t,attributeOldValue:o,attributeNewValue:s};this._testAndFire(`attribute:${t}`,e,i)}}_convertReinsert(e,t){const o=Array.from(e.getWalker({shallow:!0}));this._addConsumablesForInsert(t.consumable,o);for(const e of o.map(ls))this._testAndFire("insert",ns(rs({},e),{reconversion:!0}),t)}_convertMarkerAdd(e,t,o){if("$graveyard"==t.root.rootName)return;const s=`addMarker:${e}`;if(o.consumable.add(t,s),this.fire(s,{markerName:e,markerRange:t},o),o.consumable.consume(t,s)){this._addConsumablesForRange(o.consumable,t,s);for(const i of t.getItems()){if(!o.consumable.test(i,s))continue;const r={item:i,range:Go._createOn(i),markerName:e,markerRange:t};this.fire(s,r,o)}}}_convertMarkerRemove(e,t,o){"$graveyard"!=t.root.rootName&&this.fire(`removeMarker:${e}`,{markerName:e,markerRange:t},o)}_reduceChanges(e){const t={changes:e};return this.fire("reduceChanges",t),t.changes}_addConsumablesForInsert(e,t){for(const o of t){const t=o.item;if(null===e.test(t,"insert")){e.add(t,"insert");for(const o of t.getAttributeKeys())e.add(t,"attribute:"+o)}}return e}_addConsumablesForRange(e,t,o){for(const s of t.getItems())e.add(s,o);return e}_addConsumablesForSelection(e,t,o){e.add(t,"selection");for(const s of o)e.add(t,"addMarker:"+s.name);for(const o of t.getAttributeKeys())e.add(t,"attribute:"+o);return e}_testAndFire(e,t,o){const s=function(e,t){const o=t.item.is("element")?t.item.name:"$text";return`${e}:${o}`}(e,t),i=t.item.is("$textProxy")?o.consumable._getSymbolForTextProxy(t.item):t.item,r=this._firedEventsMap.get(o),n=r.get(i);if(n){if(n.has(s))return;n.add(s)}else r.set(i,new Set([s]));this.fire(s,t,o)}_testAndFireAddAttributes(e,t){const o={item:e,range:Go._createOn(e)};for(const e of o.item.getAttributeKeys())o.attributeKey=e,o.attributeOldValue=null,o.attributeNewValue=o.item.getAttribute(e),this._testAndFire(`attribute:${e}`,o,t)}_createConversionApi(e,t=new Set,o={}){const s=ns(rs({},this._conversionApi),{consumable:new Jo,writer:e,options:o,convertItem:e=>this._convertInsert(Go._createOn(e),s),convertChildren:e=>this._convertInsert(Go._createIn(e),s,{doNotAddConsumables:!0}),convertAttributes:e=>this._testAndFireAddAttributes(e,s),canReuseView:e=>!t.has(s.mapper.toModelElement(e))});return this._firedEventsMap.set(s,new Map),s}}function cs(e,t,o){const s=t.getRange(),i=Array.from(e.getAncestors());i.shift(),i.reverse();return!i.some((e=>{if(s.containsItem(e)){return!!o.toViewElement(e).getCustomProperty("addHighlight")}}))}function ls(e){return{item:e.item,range:Go._createFromPositionAndShift(e.previousPosition,e.length)}}class ds extends((0,a.ln)(Vo)){constructor(...e){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],e.length&&this.setTo(...e)}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let o=!1;for(const s of e._ranges)if(t.isEqual(s)){o=!0;break}if(!o)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new Go(e.start,e.end)}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new Go(e.start,e.end):null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new Go(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(...e){let[t,o,s]=e;if("object"==typeof o&&(s=o,o=void 0),null===t)this._setRanges([]);else if(t instanceof ds)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof Go)this._setRanges([t],!!s&&!!s.backward);else if(t instanceof Zo)this._setRanges([new Go(t)]);else if(t instanceof Bo){const e=!!s&&!!s.backward;let i;if("in"==o)i=Go._createIn(t);else if("on"==o)i=Go._createOn(t);else{if(void 0===o)throw new a.Bb("model-selection-setto-required-second-parameter",[this,t]);i=new Go(Zo._createAt(t,o))}this._setRanges([i],e)}else{if(!(0,a.TW)(t))throw new a.Bb("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,s&&!!s.backward)}}_setRanges(e,t=!1){const o=Array.from(e),s=o.some((t=>{if(!(t instanceof Go))throw new a.Bb("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every((e=>!e.isEqual(t)))}));(o.length!==this._ranges.length||s)&&(this._replaceAllRanges(o),this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0}))}setFocus(e,t){if(null===this.anchor)throw new a.Bb("model-selection-setfocus-no-ranges",[this,e]);const o=Zo._createAt(e,t);if("same"==o.compareWith(this.focus))return;const s=this.anchor;this._ranges.length&&this._popRange(),"before"==o.compareWith(s)?(this._pushRange(new Go(o,s)),this._lastRangeBackward=!0):(this._pushRange(new Go(s,o)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const o=ps(t.start,e);gs(o,t)&&(yield o);for(const o of t.getWalker()){const s=o.item;"elementEnd"==o.type&&us(s,e,t)&&(yield s)}const s=ps(t.end,e);ms(s,t)&&(yield s)}}containsEntireContent(e=this.anchor.root){const t=Zo._createAt(e,0),o=Zo._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&o.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new Go(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new a.Bb("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}_replaceAllRanges(e){this._removeAllRanges();for(const t of e)this._pushRange(t)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function hs(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&!!e.parent)}function us(e,t,o){return hs(e,t)&&fs(e,o)}function ps(e,t){const o=e.parent.root.document.model.schema,s=e.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const r=s.find((e=>!i&&(i=o.isLimit(e),!i&&hs(e,t))));return s.forEach((e=>t.add(e))),r}function fs(e,t){const o=function(e){const t=e.root.document.model.schema;let o=e.parent;for(;o;){if(t.isBlock(o))return o;o=o.parent}}(e);if(!o)return!0;return!t.containsRange(Go._createOn(o),!0)}function gs(e,t){return!!e&&(!(!t.isCollapsed&&!e.isEmpty)||!t.start.isTouching(Zo._createAt(e,e.maxOffset))&&fs(e,t))}function ms(e,t){return!!e&&(!(!t.isCollapsed&&!e.isEmpty)||!t.end.isTouching(Zo._createAt(e,0))&&fs(e,t))}ds.prototype.is=function(e){return"selection"===e||"model:selection"===e};class bs extends((0,a.ln)(Go)){constructor(e,t){super(e,t),_s.call(this)}detach(){this.stopListening()}toRange(){return new Go(this.start,this.end)}static fromRange(e){return new bs(e.start,e.end)}}function _s(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&ks.call(this,o)}),{priority:"low"})}function ks(e){const t=this.getTransformedByOperation(e),o=Go._createFromRanges(t),s=!o.isEqual(this),i=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e);let r=null;if(s){"$graveyard"==o.root.rootName&&(r="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=o.start,this.end=o.end,this.fire("change:range",t,{deletionPosition:r})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:r})}bs.prototype.is=function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e};const ws="selection:";class vs extends((0,a.ln)(Vo)){constructor(e){super(),this._selection=new ys(e),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(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(...e){this._selection.setTo(...e)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return ws+e}static _isStoreAttributeKey(e){return e.startsWith(ws)}}vs.prototype.is=function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e};class ys extends ds{constructor(e){super(),this.markers=new a.FE({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=e.model,this._document=e,this.listenTo(this._model,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&"marker"!=o.type&&"rename"!=o.type&&"noop"!=o.type&&(0==this._ranges.length&&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,t,o,s)=>{this._updateMarker(t,s)})),this.listenTo(this._document,"change",((e,t)=>{!function(e,t){const o=e.document.differ;for(const s of o.getChanges()){if("insert"!=s.type)continue;const o=s.position.parent;s.length===o.maxOffset&&e.enqueueChange(t,(e=>{const t=Array.from(o.getAttributeKeys()).filter((e=>e.startsWith(ws)));for(const s of t)e.removeAttribute(s,o)}))}}(this._model,t)}))}get isCollapsed(){return 0===this._ranges.length?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 e=0;e<this._ranges.length;e++)this._ranges[e].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(...e){super.setTo(...e),this._updateAttributes(!0),this.updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this.updateMarkers()}setAttribute(e,t){if(this._setAttribute(e,t)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}removeAttribute(e){if(this._removeAttribute(e)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}overrideGravity(){const e=(0,a.hQ)();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new a.Bb("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(e){this._observedMarkers.add(e),this.updateMarkers()}_replaceAllRanges(e){this._validateSelectionRanges(e),super._replaceAllRanges(e)}_popRange(){this._ranges.pop().detach()}_pushRange(e){const t=this._prepareRange(e);t&&this._ranges.push(t)}_validateSelectionRanges(e){for(const t of e)if(!this._document._validateSelectionRange(t))throw new a.Bb("document-selection-wrong-position",this,{range:t})}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=bs.fromRange(e);return t.on("change:range",((e,o,s)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=s.deletionPosition;const e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}})),t}updateMarkers(){if(!this._observedMarkers.size)return;const e=[];let t=!1;for(const t of this._model.markers){const o=t.name.split(":",1)[0];if(!this._observedMarkers.has(o))continue;const s=t.getRange();for(const o of this.getRanges())s.containsRange(o,!o.isCollapsed)&&e.push(t)}const o=Array.from(this.markers);for(const o of e)this.markers.has(o)||(this.markers.add(o),t=!0);for(const o of Array.from(this.markers))e.includes(o)||(this.markers.remove(o),t=!0);t&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateMarker(e,t){const o=e.name.split(":",1)[0];if(!this._observedMarkers.has(o))return;let s=!1;const i=Array.from(this.markers),r=this.markers.has(e);if(t){let o=!1;for(const e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){o=!0;break}o&&!r?(this.markers.add(e),s=!0):!o&&r&&(this.markers.remove(e),s=!0)}else r&&(this.markers.remove(e),s=!0);s&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateAttributes(e){const t=(0,a.qL)(this._getSurroundingAttributes()),o=(0,a.qL)(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(const[e,t]of this._attributePriority)"low"==t&&(this._attrs.delete(e),this._attributePriority.delete(e));this._setAttributesTo(t);const s=[];for(const[e,t]of this.getAttributes())o.has(e)&&o.get(e)===t||s.push(e);for(const[e]of o)this.hasAttribute(e)||s.push(e);s.length>0&&this.fire("change:attribute",{attributeKeys:s,directChange:!1})}_setAttribute(e,t,o=!0){const s=o?"normal":"low";if("low"==s&&"normal"==this._attributePriority.get(e))return!1;return super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,s),!0)}_removeAttribute(e,t=!0){const o=t?"normal":"low";return("low"!=o||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,o),!!super.hasAttribute(e)&&(this._attrs.delete(e),!0))}_setAttributesTo(e){const t=new Set;for(const[t,o]of this.getAttributes())e.get(t)!==o&&this._removeAttribute(t,!1);for(const[o,s]of e){this._setAttribute(o,s,!1)&&t.add(o)}return t}*getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())if(t.startsWith(ws)){const o=t.substr(10);yield[o,e.getAttribute(t)]}}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;if("$graveyard"==e.root.rootName)return null;let o=null;if(this.isCollapsed){const s=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(o=xs(s,t)),o||(o=xs(i,t)),!this.isGravityOverridden&&!o){let e=s;for(;e&&!o;)e=e.previousSibling,o=xs(e,t)}if(!o){let e=i;for(;e&&!o;)e=e.nextSibling,o=xs(e,t)}o||(o=this.getStoredAttributes())}else{const e=this.getFirstRange();for(const s of e){if(s.item.is("element")&&t.isObject(s.item)){o=xs(s.item,t);break}if("text"==s.type){o=s.item.getAttributes();break}}}return o}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function xs(e,t){if(!e)return null;if(e instanceof No||e instanceof Do)return e.getAttributes();if(!t.isInline(e))return null;if(!t.isObject(e))return[];const o=[];for(const[s,i]of e.getAttributes())t.checkAttribute("$text",s)&&!1!==t.getAttributeProperties(s).copyFromObject&&o.push([s,i]);return o}class Ps{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}class Cs extends Ps{elementToElement(e){return this.add(function(e){const t=As(e.model),o=Ss(e.view,"container");t.attributes.length&&(t.children=!0);return s=>{s.on(`insert:${t.name}`,function(e,t=Ds){return(o,s,i)=>{if(!t(s.item,i.consumable,{preflight:!0}))return;const r=e(s.item,i,s);if(!r)return;t(s.item,i.consumable);const n=i.mapper.toViewPosition(s.range.start);i.mapper.bindElements(s.item,r),i.writer.insert(n,r),i.convertAttributes(s.item),Bs(r,s.item.getChildren(),i,{reconversion:s.reconversion})}}(o,Vs(t)),{priority:e.converterPriority||"normal"}),(t.children||t.attributes.length)&&s.on("reduceChanges",Ms(t),{priority:"low"})}}(e))}elementToStructure(e){return this.add(function(e){const t=As(e.model),o=Ss(e.view,"container");return t.children=!0,s=>{if(s._conversionApi.schema.checkChild(t.name,"$text"))throw new a.Bb("conversion-element-to-structure-disallowed-text",s,{elementName:t.name});var i,r;s.on(`insert:${t.name}`,(i=o,r=Vs(t),(e,t,o)=>{if(!r(t.item,o.consumable,{preflight:!0}))return;const s=new Map;o.writer._registerSlotFactory(function(e,t,o){return(s,i)=>{const r=s.createContainerElement("$slot");let n=null;if("children"===i)n=Array.from(e.getChildren());else{if("function"!=typeof i)throw new a.Bb("conversion-slot-mode-unknown",o.dispatcher,{modeOrFilter:i});n=Array.from(e.getChildren()).filter((e=>i(e)))}return t.set(r,n),r}}(t.item,s,o));const n=i(t.item,o,t);if(o.writer._clearSlotFactory(),!n)return;!function(e,t,o){const s=Array.from(t.values()).flat(),i=new Set(s);if(i.size!=s.length)throw new a.Bb("conversion-slot-filter-overlap",o.dispatcher,{element:e});if(i.size!=e.childCount)throw new a.Bb("conversion-slot-filter-incomplete",o.dispatcher,{element:e})}(t.item,s,o),r(t.item,o.consumable);const c=o.mapper.toViewPosition(t.range.start);o.mapper.bindElements(t.item,n),o.writer.insert(c,n),o.convertAttributes(t.item),function(e,t,o,s){o.mapper.on("modelToViewPosition",n,{priority:"highest"});let i=null,r=null;for([i,r]of t)Bs(e,r,o,s),o.writer.move(o.writer.createRangeIn(i),o.writer.createPositionBefore(i)),o.writer.remove(i);function n(e,t){const o=t.modelPosition.nodeAfter,s=r.indexOf(o);s<0||(t.viewPosition=t.mapper.findPositionIn(i,s))}o.mapper.off("modelToViewPosition",n)}(n,s,o,{reconversion:t.reconversion})}),{priority:e.converterPriority||"normal"}),s.on("reduceChanges",Ms(t),{priority:"low"})}}(e))}attributeToElement(e){return this.add(function(e){e=jo(e);let t=e.model;"string"==typeof t&&(t={key:t});let o=`attribute:${t.key}`;t.name&&(o+=":"+t.name);if(t.values)for(const o of t.values)e.view[o]=Ss(e.view[o],"attribute");else e.view=Ss(e.view,"attribute");const s=Os(e);return t=>{t.on(o,function(e){return(t,o,s)=>{if(!s.consumable.test(o.item,t.name))return;const i=e(o.attributeOldValue,s,o),r=e(o.attributeNewValue,s,o);if(!i&&!r)return;s.consumable.consume(o.item,t.name);const n=s.writer,a=n.document.selection;if(o.item instanceof ds||o.item instanceof vs)n.wrap(a.getFirstRange(),r);else{let e=s.mapper.toViewRange(o.range);null!==o.attributeOldValue&&i&&(e=n.unwrap(e,i)),null!==o.attributeNewValue&&r&&n.wrap(e,r)}}}(s),{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=jo(e);let t=e.model;"string"==typeof t&&(t={key:t});let o=`attribute:${t.key}`;t.name&&(o+=":"+t.name);if(t.values)for(const o of t.values)e.view[o]=Rs(e.view[o]);else e.view=Rs(e.view);const s=Os(e);return t=>{var i;t.on(o,(i=s,(e,t,o)=>{if(!o.consumable.test(t.item,e.name))return;const s=i(t.attributeOldValue,o,t),r=i(t.attributeNewValue,o,t);if(!s&&!r)return;o.consumable.consume(t.item,e.name);const n=o.mapper.toViewElement(t.item),c=o.writer;if(!n)throw new a.Bb("conversion-attribute-to-attribute-on-text",o.dispatcher,t);if(null!==t.attributeOldValue&&s)if("class"==s.key){const e=(0,a.qo)(s.value);for(const t of e)c.removeClass(t,n)}else if("style"==s.key){const e=Object.keys(s.value);for(const t of e)c.removeStyle(t,n)}else c.removeAttribute(s.key,n);if(null!==t.attributeNewValue&&r)if("class"==r.key){const e=(0,a.qo)(r.value);for(const t of e)c.addClass(t,n)}else if("style"==r.key){const e=Object.keys(r.value);for(const t of e)c.setStyle(t,r.value[t],n)}else c.setAttribute(r.key,r.value,n)}),{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){const t=Ss(e.view,"ui");return o=>{var s;o.on(`addMarker:${e.model}`,(s=t,(e,t,o)=>{t.isOpening=!0;const i=s(t,o);t.isOpening=!1;const r=s(t,o);if(!i||!r)return;const n=t.markerRange;if(n.isCollapsed&&!o.consumable.consume(n,e.name))return;for(const t of n)if(!o.consumable.consume(t.item,e.name))return;const a=o.mapper,c=o.writer;c.insert(a.toViewPosition(n.start),i),o.mapper.bindElementToMarker(i,t.markerName),n.isCollapsed||(c.insert(a.toViewPosition(n.end),r),o.mapper.bindElementToMarker(r,t.markerName)),e.stop()}),{priority:e.converterPriority||"normal"}),o.on(`removeMarker:${e.model}`,((e,t,o)=>{const s=o.mapper.markerNameToElements(t.markerName);if(s){for(const e of s)o.mapper.unbindElementFromMarkerName(e,t.markerName),o.writer.clear(o.writer.createRangeOn(e),e);o.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(e){return t=>{var o;t.on(`addMarker:${e.model}`,(o=e.view,(e,t,s)=>{if(!t.item)return;if(!(t.item instanceof ds||t.item instanceof vs||t.item.is("$textProxy")))return;const i=js(o,t,s);if(!i)return;if(!s.consumable.consume(t.item,e.name))return;const r=s.writer,n=Ts(r,i),a=r.document.selection;if(t.item instanceof ds||t.item instanceof vs)r.wrap(a.getFirstRange(),n);else{const e=s.mapper.toViewRange(t.range),o=r.wrap(e,n);for(const e of o.getItems())if(e.is("attributeElement")&&e.isSimilar(n)){s.mapper.bindElementToMarker(e,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on(`addMarker:${e.model}`,function(e){return(t,o,s)=>{if(!o.item)return;if(!(o.item instanceof zo))return;const i=js(e,o,s);if(!i)return;if(!s.consumable.test(o.item,t.name))return;const r=s.mapper.toViewElement(o.item);if(r&&r.getCustomProperty("addHighlight")){s.consumable.consume(o.item,t.name);for(const e of Go._createIn(o.item))s.consumable.consume(e.item,t.name);r.getCustomProperty("addHighlight")(r,i,s.writer),s.mapper.bindElementToMarker(r,o.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),t.on(`removeMarker:${e.model}`,function(e){return(t,o,s)=>{if(o.markerRange.isCollapsed)return;const i=js(e,o,s);if(!i)return;const r=Ts(s.writer,i),n=s.mapper.markerNameToElements(o.markerName);if(n){for(const e of n)if(s.mapper.unbindElementFromMarkerName(e,o.markerName),e.is("attributeElement"))s.writer.unwrap(s.writer.createRangeOn(e),r);else{e.getCustomProperty("removeHighlight")(e,i.id,s.writer)}s.writer.clearClonedElementsGroup(o.markerName),t.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(e){e=jo(e);const t=e.model;let o=e.view;o||(o=o=>({group:t,name:o.substr(e.model.length+1)}));return s=>{var i;s.on(`addMarker:${t}`,(i=o,(e,t,o)=>{const s=i(t.markerName,o);if(!s)return;const r=t.markerRange;o.consumable.consume(r,e.name)&&(Es(r,!1,o,t,s),Es(r,!0,o,t,s),e.stop())}),{priority:e.converterPriority||"normal"}),s.on(`removeMarker:${t}`,function(e){return(t,o,s)=>{const i=e(o.markerName,s);if(!i)return;const r=s.mapper.markerNameToElements(o.markerName);if(r){for(const e of r)s.mapper.unbindElementFromMarkerName(e,o.markerName),e.is("containerElement")?(n(`data-${i.group}-start-before`,e),n(`data-${i.group}-start-after`,e),n(`data-${i.group}-end-before`,e),n(`data-${i.group}-end-after`,e)):s.writer.clear(s.writer.createRangeOn(e),e);s.writer.clearClonedElementsGroup(o.markerName),t.stop()}function n(e,t){if(t.hasAttribute(e)){const o=new Set(t.getAttribute(e).split(","));o.delete(i.name),0==o.size?s.writer.removeAttribute(e,t):s.writer.setAttribute(e,Array.from(o).join(","),t)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}}function Ts(e,t){const o=e.createAttributeElement("span",t.attributes);return t.classes&&o._addClass(t.classes),"number"==typeof t.priority&&(o._priority=t.priority),o._id=t.id,o}function Es(e,t,o,s,i){const r=t?e.start:e.end,n=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(n||a){let e,r;t&&n||!t&&!a?(e=n,r=!0):(e=a,r=!1);const c=o.mapper.toViewElement(e);if(c)return void function(e,t,o,s,i,r){const n=`data-${r.group}-${t?"start":"end"}-${o?"before":"after"}`,a=e.hasAttribute(n)?e.getAttribute(n).split(","):[];a.unshift(r.name),s.writer.setAttribute(n,a.join(","),e),s.mapper.bindElementToMarker(e,i.markerName)}(c,t,r,o,s,i)}!function(e,t,o,s,i){const r=`${i.group}-${t?"start":"end"}`,n=i.name?{name:i.name}:null,a=o.writer.createUIElement(r,n);o.writer.insert(e,a),o.mapper.bindElementToMarker(a,s.markerName)}(o.mapper.toViewPosition(r),t,o,s,i)}function As(e){return"string"==typeof e&&(e={name:e}),{name:e.name,attributes:e.attributes?(0,a.qo)(e.attributes):[],children:!!e.children}}function Ss(e,t){return"function"==typeof e?e:(o,s)=>function(e,t,o){"string"==typeof e&&(e={name:e});let s;const i=t.writer,r=Object.assign({},e.attributes);if("container"==o)s=i.createContainerElement(e.name,r);else if("attribute"==o){const t={priority:e.priority||Ge.DEFAULT_PRIORITY};s=i.createAttributeElement(e.name,r,t)}else s=i.createUIElement(e.name,r);if(e.styles){const t=Object.keys(e.styles);for(const o of t)i.setStyle(o,e.styles[o],s)}if(e.classes){const t=e.classes;if("string"==typeof t)i.addClass(t,s);else for(const e of t)i.addClass(e,s)}return s}(e,s,t)}function Os(e){return e.model.values?(t,o,s)=>{const i=e.view[t];return i?i(t,o,s):null}:e.view}function Rs(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function js(e,t,o){const s="function"==typeof e?e(t,o):e;return s?(s.priority||(s.priority=10),s.id||(s.id=t.markerName),s):null}function Ms(e){const t=function(e){return(t,o)=>{if(!t.is("element",e.name))return!1;if("attribute"==o.type){if(e.attributes.includes(o.attributeKey))return!0}else if(e.children)return!0;return!1}}(e);return(e,o)=>{const s=[];o.reconvertedElements||(o.reconvertedElements=new Set);for(const e of o.changes){const i="attribute"==e.type?e.range.start.nodeAfter:e.position.parent;if(i&&t(i,e)){if(!o.reconvertedElements.has(i)){o.reconvertedElements.add(i);const e=Zo._createBefore(i);let t=s.length;for(let o=s.length-1;o>=0;o--){const i=s[o],r=("attribute"==i.type?i.range.start:i.position).compareWith(e);if("before"==r||"remove"==i.type&&"same"==r)break;t=o}s.splice(t,0,{type:"remove",name:i.name,position:e,length:1},{type:"reinsert",name:i.name,position:e,length:1})}}else s.push(e)}o.changes=s}}function Vs(e){return(t,o,s={})=>{const i=["insert"];for(const o of e.attributes)t.hasAttribute(o)&&i.push(`attribute:${o}`);return!!i.every((e=>o.test(t,e)))&&(s.preflight||i.forEach((e=>o.consume(t,e))),!0)}}function Bs(e,t,o,s){for(const i of t)Is(e.root,i,o,s)||o.convertItem(i)}function Is(e,t,o,s){const{writer:i,mapper:r}=o;if(!s.reconversion)return!1;const n=r.toViewElement(t);return!(!n||n.root==e)&&(!!o.canReuseView(n)&&(i.move(i.createRangeOn(n),r.toViewPosition(Zo._createBefore(t))),!0))}function Ds(e,t,{preflight:o}={}){return o?t.test(e,"insert"):t.consume(e,"insert")}function Ns(e){const{schema:t,document:o}=e.model;for(const s of o.getRoots())if(s.isEmpty&&!t.checkChild(s,"$text")&&t.checkChild(s,"paragraph"))return e.insertElement("paragraph",s),!0;return!1}function zs(e,t,o){const s=o.createContext(e);return!!o.checkChild(s,"paragraph")&&!!o.checkChild(s.push("paragraph"),t)}function Fs(e,t){const o=t.createElement("paragraph");return t.insert(o,e),t.createPositionAt(o,0)}var Ls=Object.defineProperty,Zs=Object.defineProperties,Ws=Object.getOwnPropertyDescriptors,$s=Object.getOwnPropertySymbols,qs=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable,Us=(e,t,o)=>t in e?Ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class Gs extends Ps{elementToElement(e){return this.add(Ks(e))}elementToAttribute(e){return this.add(function(e){e=jo(e),Xs(e);const t=Qs(e,!1),o=Js(e.view),s=o?`element:${o}`:"element";return o=>{o.on(s,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=jo(e);let t=null;("string"==typeof e.view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});const t=e.view.key;let o;if("class"==t||"style"==t){o={["class"==t?"classes":"styles"]:e.view.value}}else{o={attributes:{[t]:void 0===e.view.value?/[\s\S]*/:e.view.value}}}e.view.name&&(o.name=e.view.name);return e.view=o,t}(e));Xs(e,t);const o=Qs(e,!0);return t=>{t.on("element",o,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(e){const t=function(e){return(t,o)=>{const s="string"==typeof e?e:e(t,o);return o.writer.createElement("$marker",{"data-name":s})}}(e.model);return Ks((o=((e,t)=>{for(var o in t||(t={}))qs.call(t,o)&&Us(e,o,t[o]);if($s)for(var o of $s(t))Hs.call(t,o)&&Us(e,o,t[o]);return e})({},e),s={model:t},Zs(o,Ws(s))));var o,s}(e))}dataToMarker(e){return this.add(function(e){e=jo(e),e.model||(e.model=t=>t?e.view+":"+t:e.view);const t={view:e.view,model:e.model},o=Ys(ei(t,"start")),s=Ys(ei(t,"end"));return i=>{i.on(`element:${e.view}-start`,o,{priority:e.converterPriority||"normal"}),i.on(`element:${e.view}-end`,s,{priority:e.converterPriority||"normal"});const r=a.tA.low,n=a.tA.highest,c=a.tA.get(e.converterPriority)/n;i.on("element",function(e){return(t,o,s)=>{const i=`data-${e.view}`;function r(t,i){for(const r of i){const i=e.model(r,s),n=s.writer.createElement("$marker",{"data-name":i});s.writer.insert(n,t),o.modelCursor.isEqual(t)?o.modelCursor=o.modelCursor.getShiftedBy(1):o.modelCursor=o.modelCursor._getTransformedByInsertion(t,1),o.modelRange=o.modelRange._getTransformedByInsertion(t,1)[0]}}(s.consumable.test(o.viewItem,{attributes:i+"-end-after"})||s.consumable.test(o.viewItem,{attributes:i+"-start-after"})||s.consumable.test(o.viewItem,{attributes:i+"-end-before"})||s.consumable.test(o.viewItem,{attributes:i+"-start-before"}))&&(o.modelRange||Object.assign(o,s.convertChildren(o.viewItem,o.modelCursor)),s.consumable.consume(o.viewItem,{attributes:i+"-end-after"})&&r(o.modelRange.end,o.viewItem.getAttribute(i+"-end-after").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-start-after"})&&r(o.modelRange.end,o.viewItem.getAttribute(i+"-start-after").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-end-before"})&&r(o.modelRange.start,o.viewItem.getAttribute(i+"-end-before").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-start-before"})&&r(o.modelRange.start,o.viewItem.getAttribute(i+"-start-before").split(",")))}}(t),{priority:r+c})}}(e))}}function Ks(e){const t=Ys(e=jo(e)),o=Js(e.view),s=o?`element:${o}`:"element";return o=>{o.on(s,t,{priority:e.converterPriority||"normal"})}}function Js(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function Ys(e){const t=new C(e.view);return(o,s,i)=>{const r=t.match(s.viewItem);if(!r)return;const n=r.match;if(n.name=!0,!i.consumable.test(s.viewItem,n))return;const a=function(e,t,o){return e instanceof Function?e(t,o):o.writer.createElement(e)}(e.model,s.viewItem,i);a&&i.safeInsert(a,s.modelCursor)&&(i.consumable.consume(s.viewItem,n),i.convertChildren(s.viewItem,a),i.updateConversionResult(a,s))}}function Xs(e,t=null){const o=null===t||(e=>e.getAttribute(t)),s="object"!=typeof e.model?e.model:e.model.key,i="object"!=typeof e.model||void 0===e.model.value?o:e.model.value;e.model={key:s,value:i}}function Qs(e,t){const o=new C(e.view);return(s,i,r)=>{if(!i.modelRange&&t)return;const n=o.match(i.viewItem);if(!n)return;if(!function(e,t){const o="function"==typeof e?e(t):e;if("object"==typeof o&&!Js(o))return!1;return!o.classes&&!o.attributes&&!o.styles}(e.view,i.viewItem)?delete n.match.name:n.match.name=!0,!r.consumable.test(i.viewItem,n.match))return;const a=e.model.key,c="function"==typeof e.model.value?e.model.value(i.viewItem,r):e.model.value;if(null===c)return;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor));const l=function(e,t,o,s){let i=!1;for(const r of Array.from(e.getItems({shallow:o})))s.schema.checkAttribute(r,t.key)&&(i=!0,r.hasAttribute(t.key)||s.writer.setAttribute(t.key,t.value,r));return i}(i.modelRange,{key:a,value:c},t,r);l&&(r.consumable.test(i.viewItem,{name:!0})&&(n.match.name=!0),r.consumable.consume(i.viewItem,n.match))}}function ei(e,t){return{view:`${e.view}-${t}`,model:(t,o)=>{const s=t.getAttribute("name"),i=e.model(s,o);return o.writer.createElement("$marker",{"data-name":i})}}}function ti(e){e.document.registerPostFixer((t=>function(e,t){const o=t.document.selection,s=t.schema,i=[];let r=!1;for(const e of o.getRanges()){const t=oi(e,s);t&&!t.isEqual(e)?(i.push(t),r=!0):i.push(e)}r&&e.setSelection(function(e){const t=[...e],o=new Set;let s=1;for(;s<t.length;){const e=t[s],i=t.slice(0,s);for(const[r,n]of i.entries())if(!o.has(r))if(e.isEqual(n))o.add(r);else if(e.isIntersecting(n)){o.add(r),o.add(s);const i=e.getJoined(n);t.push(i)}s++}return t.filter(((e,t)=>!o.has(t)))}(i),{backward:o.isBackward});return!1}(t,e)))}function oi(e,t){return e.isCollapsed?function(e,t){const o=e.start,s=t.getNearestSelectionRange(o);if(!s){const e=o.getAncestors().reverse().find((e=>t.isObject(e)));return e?Go._createOn(e):null}if(!s.isCollapsed)return s;const i=s.start;if(o.isEqual(i))return null;return new Go(i)}(e,t):function(e,t){const{start:o,end:s}=e,i=t.checkChild(o,"$text"),r=t.checkChild(s,"$text"),n=t.getLimitElement(o),a=t.getLimitElement(s);if(n===a){if(i&&r)return null;if(function(e,t,o){const s=e.nodeAfter&&!o.isLimit(e.nodeAfter)||o.checkChild(e,"$text"),i=t.nodeBefore&&!o.isLimit(t.nodeBefore)||o.checkChild(t,"$text");return s||i}(o,s,t)){const e=o.nodeAfter&&t.isSelectable(o.nodeAfter)?null:t.getNearestSelectionRange(o,"forward"),i=s.nodeBefore&&t.isSelectable(s.nodeBefore)?null:t.getNearestSelectionRange(s,"backward"),r=e?e.start:o,n=i?i.end:s;return new Go(r,n)}}const c=n&&!n.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const e=o.nodeAfter&&s.nodeBefore&&o.nodeAfter.parent===s.nodeBefore.parent,i=c&&(!e||!ii(o.nodeAfter,t)),r=l&&(!e||!ii(s.nodeBefore,t));let d=o,h=s;return i&&(d=Zo._createBefore(si(n,t))),r&&(h=Zo._createAfter(si(a,t))),new Go(d,h)}return null}(e,t)}function si(e,t){let o=e,s=o;for(;t.isLimit(s)&&s.parent;)o=s,s=s.parent;return o}function ii(e,t){return e&&t.isSelectable(e)}class ri extends((0,a.Re)()){constructor(e,t){super(),this.model=e,this.view=new Mo(t),this.mapper=new Ko,this.downcastDispatcher=new as({mapper:this.mapper,schema:e.schema});const o=this.model.document,s=o.selection,i=this.model.markers;var r,n,c;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(o,"change",(()=>{this.view.change((e=>{this.downcastDispatcher.convertChanges(o.differ,i,e),this.downcastDispatcher.convertSelection(s,i,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return(o,s)=>{const i=s.newSelection,r=[];for(const e of i.getRanges())r.push(t.toModelRange(e));const n=e.createSelection(r,{backward:i.isBackward});n.isEqual(e.document.selection)||e.change((e=>{e.setSelection(n)}))}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(r=this.mapper,n=this.model.schema,c=this.view,(e,t)=>{if(!c.document.isComposing||a.OB.isAndroid)for(let e=0;e<t.targetRanges.length;e++){const o=t.targetRanges[e],s=r.toModelRange(o),i=oi(s,n);i&&!i.isEqual(s)&&(t.targetRanges[e]=r.toViewRange(i))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",((e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const s=o.writer,i=o.mapper.toViewPosition(t.range.start),r=s.createText(t.item.data);s.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((e,t,o)=>{const s=o.mapper.toViewPosition(t.position),i=t.position.getShiftedBy(t.length),r=o.mapper.toViewPosition(i,{isPhantom:!0}),n=o.writer.createRange(s,r),a=o.writer.remove(n.getTrimmed());for(const e of o.writer.createRangeIn(a).getItems())o.mapper.unbindViewElement(e,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",((e,t,o)=>{const s=o.writer,i=s.document.selection;for(const e of i.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&o.writer.mergeAttributes(e.start);s.setSelection(null)})),this.downcastDispatcher.on("selection",((e,t,o)=>{const s=t.selection;if(s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=[];for(const e of s.getRanges())i.push(o.mapper.toViewRange(e));o.writer.setSelection(i,{backward:s.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((e,t,o)=>{const s=t.selection;if(!s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=o.writer,r=s.getFirstPosition(),n=o.mapper.toViewPosition(r),a=i.breakAttributes(n);i.setSelection(a)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((e=>{if("$graveyard"==e.rootName)return null;const t=new Me(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t}))}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(e){const t="string"==typeof e?e:e.name,o=this.model.markers.get(t);if(!o)throw new a.Bb("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:t});this.model.change((()=>{this.model.markers._refresh(o)}))}reconvertItem(e){this.model.change((()=>{this.model.document.differ._refreshItem(e)}))}}class ni{constructor(){this._consumables=new Map}add(e,t){let o;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?o=this._consumables.get(e):(o=new ci(e),this._consumables.set(e,o)),o.add(t))}test(e,t){const o=this._consumables.get(e);return void 0===o?null:e.is("$text")||e.is("documentFragment")?o:o.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}revert(e,t){const o=this._consumables.get(e);void 0!==o&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):o.revert(t))}static consumablesFromElement(e){const t={element:e,name:!0,attributes:[],classes:[],styles:[]},o=e.getAttributeKeys();for(const e of o)"style"!=e&&"class"!=e&&t.attributes.push(e);const s=e.getClassNames();for(const e of s)t.classes.push(e);const i=e.getStyleNames();for(const e of i)t.styles.push(e);return t}static createFrom(e,t){if(t||(t=new ni),e.is("$text"))return t.add(e),t;e.is("element")&&t.add(e,ni.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e);for(const o of e.getChildren())t=ni.createFrom(o,t);return t}}const ai=["attributes","classes","styles"];class ci{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){e.name&&(this._canConsumeName=!0);for(const t of ai)t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const t of ai)if(t in e){const o=this._test(t,e[t]);if(!0!==o)return o}return!0}consume(e){e.name&&(this._canConsumeName=!1);for(const t of ai)t in e&&this._consume(t,e[t])}revert(e){e.name&&(this._canConsumeName=!0);for(const t of ai)t in e&&this._revert(t,e[t])}_add(e,t){const o=(0,S.Z)(t)?t:[t],s=this._consumables[e];for(const t of o){if("attributes"===e&&("class"===t||"style"===t))throw new a.Bb("viewconsumable-invalid-attribute",this);if(s.set(t,!0),"styles"===e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(t))s.set(e,!0)}}_test(e,t){const o=(0,S.Z)(t)?t:[t],s=this._consumables[e];for(const t of o)if("attributes"!==e||"class"!==t&&"style"!==t){const e=s.get(t);if(void 0===e)return null;if(!e)return!1}else{const e="class"==t?"classes":"styles",o=this._test(e,[...this._consumables[e].keys()]);if(!0!==o)return o}return!0}_consume(e,t){const o=(0,S.Z)(t)?t:[t],s=this._consumables[e];for(const t of o)if("attributes"!==e||"class"!==t&&"style"!==t){if(s.set(t,!1),"styles"==e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(t))s.set(e,!1)}else{const e="class"==t?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){const o=(0,S.Z)(t)?t:[t],s=this._consumables[e];for(const t of o)if("attributes"!==e||"class"!==t&&"style"!==t){!1===s.get(t)&&s.set(t,!0)}else{const e="class"==t?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class li extends((0,a.Re)()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((e,t)=>{t[0]=new di(t[0])}),{priority:"highest"}),this.on("checkChild",((e,t)=>{t[0]=new di(t[0]),t[1]=this.getDefinition(t[1])}),{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new a.Bb("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new a.Bb("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t="string"==typeof e?e:"is"in e&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){const t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){const t=this.getDefinition(e);return!!t&&!(!t.isLimit&&!t.isObject)}isObject(e){const t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}isInline(e){const t=this.getDefinition(e);return!(!t||!t.isInline)}isSelectable(e){const t=this.getDefinition(e);return!!t&&!(!t.isSelectable&&!t.isObject)}isContent(e){const t=this.getDefinition(e);return!!t&&!(!t.isContent&&!t.isObject)}checkChild(e,t){return!!t&&this._checkContextMatch(t,e)}checkAttribute(e,t){const o=this.getDefinition(e.last);return!!o&&o.allowAttributes.includes(t)}checkMerge(e,t){if(e instanceof Zo){const t=e.nodeBefore,o=e.nodeAfter;if(!(t instanceof zo))throw new a.Bb("schema-check-merge-no-element-before",this);if(!(o instanceof zo))throw new a.Bb("schema-check-merge-no-element-after",this);return this.checkMerge(t,o)}for(const o of t.getChildren())if(!this.checkChild(e,o))return!1;return!0}addChildCheck(e){this.on("checkChild",((t,[o,s])=>{if(!s)return;const i=e(o,s);"boolean"==typeof i&&(t.stop(),t.return=i)}),{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",((t,[o,s])=>{const i=e(o,s);"boolean"==typeof i&&(t.stop(),t.return=i)}),{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;if(e instanceof Zo)t=e.parent;else{t=(e instanceof Go?[e]:Array.from(e.getRanges())).reduce(((e,t)=>{const o=t.getCommonAncestor();return e?e.getCommonAncestor(o,{includeSelf:!0}):o}),null)}for(;!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const o=[...e.getFirstPosition().getAncestors(),new Do("",e.getAttributes())];return this.checkAttribute(o,t)}{const o=e.getRanges();for(const e of o)for(const o of e)if(this.checkAttribute(o.item,t))return!0}return!1}*getValidRanges(e,t){e=function*(e){for(const t of e)yield*t.getMinimalFlatRanges()}(e);for(const o of e)yield*this._getValidRangesForRange(o,t)}getNearestSelectionRange(e,t="both"){if("$graveyard"==e.root.rootName)return null;if(this.checkChild(e,"$text"))return new Go(e);let o,s;const i=e.getAncestors().reverse().find((e=>this.isLimit(e)))||e.root;"both"!=t&&"backward"!=t||(o=new Fo({boundaries:Go._createIn(i),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(s=new Fo({boundaries:Go._createIn(i),startPosition:e}));for(const e of function*(e,t){let o=!1;for(;!o;){if(o=!0,e){const t=e.next();t.done||(o=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(o=!1,yield{walker:t,value:e.value})}}}(o,s)){const t=e.walker==o?"elementEnd":"elementStart",s=e.value;if(s.type==t&&this.isObject(s.item))return Go._createOn(s.item);if(this.checkChild(s.nextPosition,"$text"))return new Go(s.nextPosition)}return null}findAllowedParent(e,t){let o=e.parent;for(;o;){if(this.checkChild(o,t))return o;if(this.isLimit(o))return null;o=o.parent}return null}setAllowedAttributes(e,t,o){const s=o.model;for(const[i,r]of Object.entries(t))s.schema.checkAttribute(e,i)&&o.setAttribute(i,r,e)}removeDisallowedAttributes(e,t){for(const o of e)if(o.is("$text"))xi(this,o,t);else{const e=Go._createIn(o).getPositions();for(const o of e){xi(this,o.nodeBefore||o.parent,t)}}}getAttributesWithProperty(e,t,o){const s={};for(const[i,r]of e.getAttributes()){const e=this.getAttributeProperties(i);void 0!==e[t]&&(void 0!==o&&o!==e[t]||(s[i]=r))}return s}createContext(e){return new di(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,o=Object.keys(t);for(const s of o)e[s]=hi(t[s],s);for(const t of o)ui(e,t);for(const t of o)pi(e,t);for(const t of o)fi(e,t);for(const t of o)gi(e,t),mi(e,t);for(const t of o)bi(e,t),_i(e,t),ki(e,t);this._compiledDefinitions=e}_checkContextMatch(e,t,o=t.length-1){const s=t.getItem(o);if(e.allowIn.includes(s.name)){if(0==o)return!0;{const e=this.getDefinition(s);return this._checkContextMatch(e,t,o-1)}}return!1}*_getValidRangesForRange(e,t){let o=e.start,s=e.start;for(const i of e.getItems({shallow:!0}))i.is("element")&&(yield*this._getValidRangesForRange(Go._createIn(i),t)),this.checkAttribute(i,t)||(o.isEqual(s)||(yield new Go(o,s)),o=Zo._createAfter(i)),s=Zo._createAfter(i);o.isEqual(s)||(yield new Go(o,s))}}class di{constructor(e){if(e instanceof di)return e;let t;t="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=t.map(yi)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){const t=new di([e]);return t._items=[...this._items,...t._items],t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map((e=>e.name))}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function hi(e,t){const o={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){for(const o of e){const e=Object.keys(o).filter((e=>e.startsWith("is")));for(const s of e)t[s]=!!o[s]}}(e,o),wi(e,o,"allowIn"),wi(e,o,"allowContentOf"),wi(e,o,"allowWhere"),wi(e,o,"allowAttributes"),wi(e,o,"allowAttributesOf"),wi(e,o,"allowChildren"),wi(e,o,"inheritTypesFrom"),function(e,t){for(const o of e){const e=o.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}(e,o),o}function ui(e,t){const o=e[t];for(const s of o.allowChildren){const o=e[s];o&&o.allowIn.push(t)}o.allowChildren.length=0}function pi(e,t){for(const o of e[t].allowContentOf)if(e[o]){vi(e,o).forEach((e=>{e.allowIn.push(t)}))}delete e[t].allowContentOf}function fi(e,t){for(const o of e[t].allowWhere){const s=e[o];if(s){const o=s.allowIn;e[t].allowIn.push(...o)}}delete e[t].allowWhere}function gi(e,t){for(const o of e[t].allowAttributesOf){const s=e[o];if(s){const o=s.allowAttributes;e[t].allowAttributes.push(...o)}}delete e[t].allowAttributesOf}function mi(e,t){const o=e[t];for(const t of o.inheritTypesFrom){const s=e[t];if(s){const e=Object.keys(s).filter((e=>e.startsWith("is")));for(const t of e)t in o||(o[t]=s[t])}}delete o.inheritTypesFrom}function bi(e,t){const o=e[t],s=o.allowIn.filter((t=>e[t]));o.allowIn=Array.from(new Set(s))}function _i(e,t){const o=e[t];for(const s of o.allowIn){e[s].allowChildren.push(t)}}function ki(e,t){const o=e[t];o.allowAttributes=Array.from(new Set(o.allowAttributes))}function wi(e,t,o){for(const s of e){const e=s[o];"string"==typeof e?t[o].push(e):Array.isArray(e)&&t[o].push(...e)}}function vi(e,t){const o=e[t];return(s=e,Object.keys(s).map((e=>s[e]))).filter((e=>e.allowIn.includes(o.name)));var s}function yi(e){return"string"==typeof e||e.is("documentFragment")?{name:"string"==typeof e?e:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:e.is("element")?e.name:"$text",*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute:t=>e.getAttribute(t)}}function xi(e,t,o){for(const s of t.getAttributeKeys())e.checkAttribute(t,s)||o.removeAttribute(s,t)}var Pi=Object.defineProperty,Ci=Object.defineProperties,Ti=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,Ai=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,Oi=(e,t,o)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class Ri extends((0,a.ln)()){constructor(e){var t;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(t=((e,t)=>{for(var o in t||(t={}))Ai.call(t,o)&&Oi(e,o,t[o]);if(Ei)for(var o of Ei(t))Si.call(t,o)&&Oi(e,o,t[o]);return e})({},e),Ci(t,Ti({consumable:null,writer:null,store:null,convertItem:(e,t)=>this._convertItem(e,t),convertChildren:(e,t)=>this._convertChildren(e,t),safeInsert:(e,t)=>this._safeInsert(e,t),updateConversionResult:(e,t)=>this._updateConversionResult(e,t),splitToAllowedParent:(e,t)=>this._splitToAllowedParent(e,t),getSplitParts:e=>this._getSplitParts(e),keepEmptyElement:e=>this._keepEmptyElement(e)})))}convert(e,t,o=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let o;for(const s of new di(e)){const e={};for(const t of s.getAttributeKeys())e[t]=s.getAttribute(t);const i=t.createElement(s.name,e);o&&t.insert(i,o),o=Zo._createAt(i,0)}return o}(o,t),this.conversionApi.writer=t,this.conversionApi.consumable=ni.createFrom(e),this.conversionApi.store={};const{modelRange:s}=this._convertItem(e,this._modelCursor),i=t.createDocumentFragment();if(s){this._removeEmptyElements();for(const e of Array.from(this._modelCursor.parent.getChildren()))t.append(e,i);i.markers=function(e,t){const o=new Set,s=new Map,i=Go._createIn(e).getItems();for(const e of i)e.is("element","$marker")&&o.add(e);for(const e of o){const o=e.getAttribute("data-name"),i=t.createPositionBefore(e);s.has(o)?s.get(o).end=i.clone():s.set(o,new Go(i.clone())),t.remove(e)}return s}(i,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(e,t){const o={viewItem:e,modelCursor:t,modelRange:null};if(e.is("element")?this.fire(`element:${e.name}`,o,this.conversionApi):e.is("$text")?this.fire("text",o,this.conversionApi):this.fire("documentFragment",o,this.conversionApi),o.modelRange&&!(o.modelRange instanceof Go))throw new a.Bb("view-conversion-dispatcher-incorrect-result",this);return{modelRange:o.modelRange,modelCursor:o.modelCursor}}_convertChildren(e,t){let o=t.is("position")?t:Zo._createAt(t,0);const s=new Go(o);for(const t of Array.from(e.getChildren())){const e=this._convertItem(t,o);e.modelRange instanceof Go&&(s.end=e.modelRange.end,o=e.modelCursor)}return{modelRange:s,modelCursor:o}}_safeInsert(e,t){const o=this._splitToAllowedParent(e,t);return!!o&&(this.conversionApi.writer.insert(e,o.position),!0)}_updateConversionResult(e,t){const o=this._getSplitParts(e),s=this.conversionApi.writer;t.modelRange||(t.modelRange=s.createRange(s.createPositionBefore(e),s.createPositionAfter(o[o.length-1])));const i=this._cursorParents.get(e);t.modelCursor=i?s.createPositionAt(i,0):t.modelRange.end}_splitToAllowedParent(e,t){const{schema:o,writer:s}=this.conversionApi;let i=o.findAllowedParent(t,e);if(i){if(i===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(i)&&(i=null)}if(!i)return zs(t,e,o)?{position:Fs(t,s)}:null;const r=this.conversionApi.writer.split(t,i),n=[];for(const e of r.range.getWalker())if("elementEnd"==e.type)n.push(e.item);else{const t=n.pop(),o=e.item;this._registerSplitPair(t,o)}const a=r.range.end.parent;return this._cursorParents.set(e,a),{position:r.position,cursorParent:a}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const o=this._splitParts.get(e);this._splitParts.set(t,o),o.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_keepEmptyElement(e){this._emptyElementsToKeep.add(e)}_removeEmptyElements(){let e=!1;for(const t of this._splitParts.keys())t.isEmpty&&!this._emptyElementsToKeep.has(t)&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}class ji{getHtml(e){const t=a.global.document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class Mi{constructor(e){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new Nt(e,{renderingMode:"data"}),this.htmlWriter=new ji}toData(e){const t=this.domConverter.viewToDom(e);return this.htmlWriter.getHtml(t)}toView(e){const t=this._toDom(e);return this.domConverter.domToView(t,{skipComments:this.skipComments})}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}_toDom(e){e.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(e=`<body>${e}</body>`);const t=this.domParser.parseFromString(e,"text/html"),o=t.createDocumentFragment(),s=t.body.childNodes;for(;s.length>0;)o.appendChild(s[0]);return o}}class Vi extends((0,a.ln)()){constructor(e,t){super(),this.model=e,this.mapper=new Ko,this.downcastDispatcher=new as({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",((e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const s=o.writer,i=o.mapper.toViewPosition(t.range.start),r=s.createText(t.item.data);s.insert(i,r)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)}),{priority:"lowest"}),this.upcastDispatcher=new Ri({schema:e.schema}),this.viewDocument=new Ue(t),this.stylesProcessor=t,this.htmlProcessor=new Mi(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new rt(this.viewDocument),this.upcastDispatcher.on("text",((e,t,{schema:o,consumable:s,writer:i})=>{let r=t.modelCursor;if(!s.test(t.viewItem))return;if(!o.checkChild(r,"$text")){if(!zs(r,"$text",o))return;if(0==t.viewItem.data.trim().length)return;const e=r.nodeBefore;r=Fs(r,i),e&&e.is("element","$marker")&&(i.move(i.createRangeOn(e),r),r=i.createPositionAfter(e))}s.consume(t.viewItem);const n=i.createText(t.viewItem.data);i.insert(n,r),t.modelRange=i.createRange(r,r.getShiftedBy(n.offsetSize)),t.modelCursor=t.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:s}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=s}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:s}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=s}}),{priority:"lowest"}),(0,a.Re)().prototype.decorate.call(this,"init"),(0,a.Re)().prototype.decorate.call(this,"set"),(0,a.Re)().prototype.decorate.call(this,"get"),(0,a.Re)().prototype.decorate.call(this,"toView"),(0,a.Re)().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},Ns)}),{priority:"lowest"})}get(e={}){const{rootName:t="main",trim:o="empty"}=e;if(!this._checkIfRootsExists([t]))throw new a.Bb("datacontroller-get-non-existent-root",this);const s=this.model.document.getRoot(t);return s.isAttached()||(0,a.KE)("datacontroller-get-detached-root",this),"empty"!==o||this.model.hasContent(s,{ignoreWhitespaces:!0})?this.stringify(s,e):""}stringify(e,t={}){const o=this.toView(e,t);return this.processor.toData(o)}toView(e,t={}){const o=this.viewDocument,s=this._viewWriter;this.mapper.clearBindings();const i=Go._createIn(e),r=new it(o);this.mapper.bindElements(e,r);const n=e.is("documentFragment")?e.markers:function(e){const t=[],o=e.root.document;if(!o)return new Map;const s=Go._createIn(e);for(const e of o.model.markers){const o=e.getRange(),i=o.isCollapsed,r=o.start.isEqual(s.start)||o.end.isEqual(s.end);if(i&&r)t.push([e.name,o]);else{const i=s.getIntersection(o);i&&t.push([e.name,i])}}return t.sort((([e,t],[o,s])=>{if("after"!==t.end.compareWith(s.start))return 1;if("before"!==t.start.compareWith(s.end))return-1;switch(t.start.compareWith(s.start)){case"before":return 1;case"after":return-1;default:switch(t.end.compareWith(s.end)){case"before":return 1;case"after":return-1;default:return o.localeCompare(e)}}})),new Map(t)}(e);return this.downcastDispatcher.convert(i,n,s,t),r}init(e){if(this.model.document.version)throw new a.Bb("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new a.Bb("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(e=>{for(const o of Object.keys(t)){const s=this.model.document.getRoot(o);e.insert(this.parse(t[o],s),s,0)}})),Promise.resolve()}set(e,t={}){let o={};if("string"==typeof e?o.main=e:o=e,!this._checkIfRootsExists(Object.keys(o)))throw new a.Bb("datacontroller-set-non-existent-root",this);this.model.enqueueChange(t.batchType||{},(e=>{e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const t of Object.keys(o)){const s=this.model.document.getRoot(t);e.remove(e.createRangeIn(s)),e.insert(this.parse(o[t],s),s,0)}}))}parse(e,t="$root"){const o=this.processor.toView(e);return this.toModel(o,t)}toModel(e,t="$root"){return this.model.change((o=>this.upcastDispatcher.convert(e,o,t)))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e)if(!this.model.document.getRoot(t))return!1;return!0}}class Bi{constructor(e,t){this._helpers=new Map,this._downcast=(0,a.qo)(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=(0,a.qo)(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const o=this._downcast.includes(t);if(!this._upcast.includes(t)&&!o)throw new a.Bb("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:o})}for(e){if(!this._helpers.has(e))throw new a.Bb("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:o}of Ii(e))this.for("upcast").elementToElement({model:t,view:o,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:o}of Ii(e))this.for("upcast").elementToAttribute({view:o,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:o}of Ii(e))this.for("upcast").attributeToAttribute({view:o,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:o}){if(this._helpers.has(e))throw new a.Bb("conversion-group-exists",this);const s=o?new Cs(t):new Gs(t);this._helpers.set(e,s)}}function*Ii(e){if(e.model.values)for(const t of e.model.values){const o={key:e.model.key,value:t},s=e.view[t],i=e.upcastAlso?e.upcastAlso[t]:void 0;yield*Di(o,s,i)}else yield*Di(e.model,e.view,e.upcastAlso)}function*Di(e,t,o){if(yield{model:e,view:t},o)for(const t of(0,a.qo)(o))yield{model:e,view:t}}class Ni{constructor(e){this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return"Operation"}static fromJSON(e,t){return new this(e.baseVersion)}}function zi(e,t){const o=Zi(t),s=o.reduce(((e,t)=>e+t.offsetSize),0),i=e.parent;$i(e);const r=e.index;return i._insertChild(r,o),Wi(i,r+o.length),Wi(i,r),new Go(e,e.getShiftedBy(s))}function Fi(e){if(!e.isFlat)throw new a.Bb("operation-utils-remove-range-not-flat",this);const t=e.start.parent;$i(e.start),$i(e.end);const o=t._removeChildren(e.start.index,e.end.index-e.start.index);return Wi(t,e.start.index),o}function Li(e,t){if(!e.isFlat)throw new a.Bb("operation-utils-move-range-not-flat",this);const o=Fi(e);return zi(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),o)}function Zi(e){const t=[];!function e(o){if("string"==typeof o)t.push(new Do(o));else if(o instanceof No)t.push(new Do(o.data,o.getAttributes()));else if(o instanceof Bo)t.push(o);else if((0,a.TW)(o))for(const t of o)e(t);else{}}(e);for(let e=1;e<t.length;e++){const o=t[e],s=t[e-1];o instanceof Do&&s instanceof Do&&qi(o,s)&&(t.splice(e-1,2,new Do(s.data+o.data,s.getAttributes())),e--)}return t}function Wi(e,t){const o=e.getChild(t-1),s=e.getChild(t);if(o&&s&&o.is("$text")&&s.is("$text")&&qi(o,s)){const i=new Do(o.data+s.data,o.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,i)}}function $i(e){const t=e.textNode,o=e.parent;if(t){const s=e.offset-t.startOffset,i=t.index;o._removeChildren(i,1);const r=new Do(t.data.substr(0,s),t.getAttributes()),n=new Do(t.data.substr(s),t.getAttributes());o._insertChild(i,[r,n])}}function qi(e,t){const o=e.getAttributes(),s=t.getAttributes();for(const e of o){if(e[1]!==t.getAttribute(e[0]))return!1;s.next()}return s.next().done}class Hi extends Ni{constructor(e,t,o,s){super(s),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=o.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}get affectedSelectable(){return[Go._createFromPositionAndShift(this.sourcePosition,this.howMany),Go._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new Hi(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new Hi(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,o=this.sourcePosition.offset,s=this.targetPosition.offset;if(o+this.howMany>e.maxOffset)throw new a.Bb("move-operation-nodes-do-not-exist",this);if(e===t&&o<s&&s<o+this.howMany)throw new a.Bb("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==(0,a.Rt)(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=o&&this.targetPosition.path[e]<o+this.howMany)throw new a.Bb("move-operation-node-into-itself",this)}}_execute(){Li(Go._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){const o=Zo.fromJSON(e.sourcePosition,t),s=Zo.fromJSON(e.targetPosition,t);return new this(o,e.howMany,s,e.baseVersion)}}class Ui extends Ni{constructor(e,t,o){super(o),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new Io(Zi(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const e=new Io([...this.nodes].map((e=>e._clone(!0)))),t=new Ui(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new Zo(e,[0]);return new Hi(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new a.Bb("insert-operation-position-invalid",this)}_execute(){const e=this.nodes;this.nodes=new Io([...e].map((e=>e._clone(!0)))),zi(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const o=[];for(const t of e.nodes)t.name?o.push(zo.fromJSON(t)):o.push(Do.fromJSON(t));const s=new Ui(Zo.fromJSON(e.position,t),o,e.baseVersion);return s.shouldReceiveAttributes=e.shouldReceiveAttributes,s}}class Gi extends Ni{constructor(e,t,o,s,i){super(i),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=o,this.graveyardPosition=s?s.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new Zo(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Go(this.splitPosition,e)}get affectedSelectable(){const e=[Go._createFromPositionAndShift(this.splitPosition,0),Go._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&e.push(Go._createFromPositionAndShift(this.graveyardPosition,0)),e}clone(){return new Gi(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new Zo(e,[0]);return new Ki(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new a.Bb("split-operation-position-invalid",this);if(!e.parent)throw new a.Bb("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new a.Bb("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new a.Bb("split-operation-graveyard-position-invalid",this)}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)Li(Go._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();zi(this.insertionPosition,t)}Li(new Go(Zo._createAt(e,this.splitPosition.offset),Zo._createAt(e,e.maxOffset)),this.moveTargetPosition)}toJSON(){const e=super.toJSON();return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}static get className(){return"SplitOperation"}static getInsertionPosition(e){const t=e.path.slice(0,-1);return t[t.length-1]++,new Zo(e.root,t,"toPrevious")}static fromJSON(e,t){const o=Zo.fromJSON(e.splitPosition,t),s=Zo.fromJSON(e.insertionPosition,t),i=e.graveyardPosition?Zo.fromJSON(e.graveyardPosition,t):null;return new this(o,e.howMany,s,i,e.baseVersion)}}class Ki extends Ni{constructor(e,t,o,s,i){super(i),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=o.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=s.clone()}get type(){return"merge"}get deletionPosition(){return new Zo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Go(this.sourcePosition,e)}get affectedSelectable(){const e=this.sourcePosition.parent;return[Go._createOn(e),Go._createFromPositionAndShift(this.targetPosition,0),Go._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Ki(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),o=new Zo(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new Gi(e,this.howMany,o,this.graveyardPosition,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new a.Bb("merge-operation-source-position-invalid",this);if(!t.parent)throw new a.Bb("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new a.Bb("merge-operation-how-many-invalid",this)}_execute(){const e=this.sourcePosition.parent;Li(Go._createIn(e),this.targetPosition),Li(Go._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){const o=Zo.fromJSON(e.sourcePosition,t),s=Zo.fromJSON(e.targetPosition,t),i=Zo.fromJSON(e.graveyardPosition,t);return new this(o,e.howMany,s,i,e.baseVersion)}}class Ji extends Ni{constructor(e,t,o,s,i,r){super(r),this.name=e,this.oldRange=t?t.clone():null,this.newRange=o?o.clone():null,this.affectsData=i,this._markers=s}get type(){return"marker"}get affectedSelectable(){const e=[];return this.oldRange&&e.push(this.oldRange.clone()),this.newRange&&(this.oldRange?e.push(...this.newRange.getDifference(this.oldRange)):e.push(this.newRange.clone())),e}clone(){return new Ji(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Ji(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 e=super.toJSON();return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}static get className(){return"MarkerOperation"}static fromJSON(e,t){return new Ji(e.name,e.oldRange?Go.fromJSON(e.oldRange,t):null,e.newRange?Go.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}const Yi=function(e,t){return wo(e,t)};class Xi extends Ni{constructor(e,t,o,s,i){super(i),this.range=e.clone(),this.key=t,this.oldValue=void 0===o?null:o,this.newValue=void 0===s?null:s}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new Xi(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Xi(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const e=super.toJSON();return e.range=this.range.toJSON(),e}_validate(){if(!this.range.isFlat)throw new a.Bb("attribute-operation-range-not-flat",this);for(const e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Yi(e.getAttribute(this.key),this.oldValue))throw new a.Bb("attribute-operation-wrong-old-value",this,{item:e,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&e.hasAttribute(this.key))throw new a.Bb("attribute-operation-attribute-exists",this,{node:e,key:this.key})}}_execute(){Yi(this.oldValue,this.newValue)||function(e,t,o){$i(e.start),$i(e.end);for(const s of e.getItems({shallow:!0})){const e=s.is("$textProxy")?s.textNode:s;null!==o?e._setAttribute(t,o):e._removeAttribute(t),Wi(e.parent,e.index)}Wi(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new Xi(Go.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Qi extends Ni{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new Qi(this.baseVersion)}getReversed(){return new Qi(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class er extends Ni{constructor(e,t,o,s){super(s),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=o}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new er(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new er(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof zo))throw new a.Bb("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new a.Bb("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new er(Zo.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class tr extends Ni{constructor(e,t,o,s,i){super(i),this.root=e,this.key=t,this.oldValue=void 0===o?null:o,this.newValue=void 0===s?null:s}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new tr(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new tr(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new a.Bb("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new a.Bb("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new a.Bb("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new a.Bb("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new tr(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class or extends Ni{constructor(e,t,o,s,i){if(super(i),this.rootName=e,this.elementName=t,this.isAdd=o,this._document=s,!this._document.getRoot(this.rootName)){this._document.createRoot(this.elementName,this.rootName)._isAttached=!1}}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new or(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new or(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){const e=super.toJSON();return delete e._document,e}static get className(){return"RootOperation"}static fromJSON(e,t){return new or(e.rootName,e.elementName,e.isAdd,t,e.baseVersion)}}const sr={};sr[Xi.className]=Xi,sr[Ui.className]=Ui,sr[Ji.className]=Ji,sr[Hi.className]=Hi,sr[Qi.className]=Qi,sr[Ni.className]=Ni,sr[er.className]=er,sr[tr.className]=tr,sr[or.className]=or,sr[Gi.className]=Gi,sr[Ki.className]=Ki;class ir{static fromJSON(e,t){return sr[e.__className].fromJSON(e,t)}}const rr=new Map;function nr(e,t,o){let s=rr.get(e);s||(s=new Map,rr.set(e,s)),s.set(t,o)}function ar(e){return[e]}function cr(e,t,o={}){const s=function(e,t){const o=rr.get(e);return o&&o.has(t)?o.get(t):ar}(e.constructor,t.constructor);try{return s(e=e.clone(),t,o)}catch(e){throw e}}function lr(e,t,o){e=e.slice(),t=t.slice();const s=new dr(o.document,o.useRelations,o.forceWeakRemove);s.setOriginalOperations(e),s.setOriginalOperations(t);const i=s.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:i};const r=new WeakMap;for(const t of e)r.set(t,0);const n={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length};let a=0;for(;a<e.length;){const o=e[a],i=r.get(o);if(i==t.length){a++;continue}const n=t[i],c=cr(o,n,s.getContext(o,n,!0)),l=cr(n,o,s.getContext(n,o,!1));s.updateRelation(o,n),s.setOriginalOperations(c,o),s.setOriginalOperations(l,n);for(const e of c)r.set(e,i+l.length);e.splice(a,1,...c),t.splice(i,1,...l)}if(o.padWithNoOps){const o=e.length-n.originalOperationsACount,s=t.length-n.originalOperationsBCount;ur(e,s-o),ur(t,o-s)}return hr(e,n.nextBaseVersionB),hr(t,n.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:i}}class dr{constructor(e,t,o=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!o,this._relations=new Map}setOriginalOperations(e,t=null){const o=t?this.originalOperations.get(t):null;for(const t of e)this.originalOperations.set(t,o||t)}updateRelation(e,t){if(e instanceof Hi)t instanceof Ki?e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter"):t instanceof Hi&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof Gi){if(t instanceof Ki)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof Hi)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{const o=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.splitPosition)){const s=o.end.offset-e.splitPosition.offset,i=e.splitPosition.offset-o.start.offset;this._setRelation(e,t,{howMany:s,offset:i})}}}else if(e instanceof Ki)t instanceof Ki?(e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement")):t instanceof Gi&&e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource");else if(e instanceof Ji){const o=e.newRange;if(!o)return;if(t instanceof Hi){const s=Go._createFromPositionAndShift(t.sourcePosition,t.howMany),i=s.containsPosition(o.start)||s.start.isEqual(o.start),r=s.containsPosition(o.end)||s.end.isEqual(o.end);!i&&!r||s.containsRange(o)||this._setRelation(e,t,{side:i?"left":"right",path:i?o.start.path.slice():o.end.path.slice()})}else if(t instanceof Ki){const s=o.start.isEqual(t.targetPosition),i=o.start.isEqual(t.deletionPosition),r=o.end.isEqual(t.deletionPosition),n=o.end.isEqual(t.sourcePosition);(s||i||r||n)&&this._setRelation(e,t,{wasInLeftElement:s,wasStartBeforeMergedElement:i,wasEndBeforeMergedElement:r,wasInRightElement:n})}}}getContext(e,t,o){return{aIsStrong:o,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){const t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){const o=this.originalOperations.get(t),s=this._history.getUndoneOperation(o);if(!s)return null;const i=this.originalOperations.get(e),r=this._relations.get(i);return r&&r.get(s)||null}_setRelation(e,t,o){const s=this.originalOperations.get(e),i=this.originalOperations.get(t);let r=this._relations.get(s);r||(r=new Map,this._relations.set(s,r)),r.set(i,o)}}function hr(e,t){for(const o of e)o.baseVersion=t++}function ur(e,t){for(let o=0;o<t;o++)e.push(new Qi(0))}function pr(e,t,o){const s=e.nodes.getNode(0).getAttribute(t);if(s==o)return null;const i=new Go(e.position,e.position.getShiftedBy(e.howMany));return new Xi(i,t,s,o,0)}function fr(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function gr(e,t){const o=[];for(let s=0;s<e.length;s++){const i=e[s],r=new Hi(i.start,i.end.offset-i.start.offset,t,0);o.push(r);for(let t=s+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];t=t._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return o}nr(Xi,Xi,((e,t,o)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){const s=e.range.getDifference(t.range).map((t=>new Xi(t,e.key,e.oldValue,e.newValue,0))),i=e.range.getIntersection(t.range);return i&&o.aIsStrong&&s.push(new Xi(i,t.key,t.newValue,e.newValue,0)),0==s.length?[new Qi(0)]:s}return[e]})),nr(Xi,Ui,((e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){const o=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((t=>new Xi(t,e.key,e.oldValue,e.newValue,e.baseVersion)));if(t.shouldReceiveAttributes){const s=pr(t,e.key,e.oldValue);s&&o.unshift(s)}return o}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),nr(Xi,Ki,((e,t)=>{const o=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&o.push(Go._createFromPositionAndShift(t.graveyardPosition,1));const s=e.range._getTransformedByMergeOperation(t);return s.isCollapsed||o.push(s),o.map((t=>new Xi(t,e.key,e.oldValue,e.newValue,e.baseVersion)))})),nr(Xi,Hi,((e,t)=>function(e,t){const o=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);let s=null,i=[];o.containsRange(e,!0)?s=e:e.start.hasSameParentAs(o.start)?(i=e.getDifference(o),s=e.getIntersection(o)):i=[e];const r=[];for(let e of i){e=e._getTransformedByDeletion(t.sourcePosition,t.howMany);const o=t.getMovedRangeStart(),s=e.start.hasSameParentAs(o),i=e._getTransformedByInsertion(o,t.howMany,s);r.push(...i)}s&&r.push(s._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]);return r}(e.range,t).map((t=>new Xi(t,e.key,e.oldValue,e.newValue,e.baseVersion))))),nr(Xi,Gi,((e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){const o=e.clone();return o.range=new Go(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,o]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),nr(Ui,Xi,((e,t)=>{const o=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){const s=pr(e,t.key,t.newValue);s&&o.push(s)}return o})),nr(Ui,Ui,((e,t,o)=>(e.position.isEqual(t.position)&&o.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]))),nr(Ui,Hi,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),nr(Ui,Gi,((e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e]))),nr(Ui,Ki,((e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e]))),nr(Ji,Ui,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]))),nr(Ji,Ji,((e,t,o)=>{if(e.name==t.name){if(!o.aIsStrong)return[new Qi(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),nr(Ji,Ki,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]))),nr(Ji,Hi,((e,t,o)=>{if(e.oldRange&&(e.oldRange=Go._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(o.abRelation){const s=Go._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==o.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.end=s.end,e.newRange.start.path=o.abRelation.path,[e];if("right"==o.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=s.start,e.newRange.end.path=o.abRelation.path,[e]}e.newRange=Go._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),nr(Ji,Gi,((e,t,o)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(o.abRelation){const s=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&o.abRelation.wasStartBeforeMergedElement?e.newRange.start=Zo._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!o.abRelation.wasInLeftElement&&(e.newRange.start=Zo._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&o.abRelation.wasInRightElement?e.newRange.end=Zo._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&o.abRelation.wasEndBeforeMergedElement?e.newRange.end=Zo._createAt(t.insertionPosition):e.newRange.end=s.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),nr(Ki,Ui,((e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]))),nr(Ki,Ki,((e,t,o)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(o.bWasUndone){const o=t.graveyardPosition.path.slice();return o.push(0),e.sourcePosition=new Zo(t.graveyardPosition.root,o),e.howMany=0,[e]}return[new Qi(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!o.bWasUndone&&"splitAtSource"!=o.abRelation){const s="$graveyard"==e.targetPosition.root.rootName,i="$graveyard"==t.targetPosition.root.rootName;if(i&&!s||!(s&&!i)&&o.aIsStrong){const o=t.targetPosition._getTransformedByMergeOperation(t),s=e.targetPosition._getTransformedByMergeOperation(t);return[new Hi(o,e.howMany,s,0)]}return[new Qi(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&o.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),nr(Ki,Hi,((e,t,o)=>{const s=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!o.bWasUndone&&!o.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&s.containsPosition(e.sourcePosition)?[new Qi(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),nr(Ki,Gi,((e,t,o)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){const s=0!=t.howMany,i=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(s||i||"mergeTargetNotMoved"==o.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==o.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==o.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),nr(Hi,Ui,((e,t)=>{const o=Go._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=o.start,e.howMany=o.end.offset-o.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),nr(Hi,Hi,((e,t,o)=>{const s=Go._createFromPositionAndShift(e.sourcePosition,e.howMany),i=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);let r,n=o.aIsStrong,c=!o.aIsStrong;if("insertBefore"==o.abRelation||"insertAfter"==o.baRelation?c=!0:"insertAfter"!=o.abRelation&&"insertBefore"!=o.baRelation||(c=!1),r=e.targetPosition.isEqual(t.targetPosition)&&c?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),fr(e,t)&&fr(t,e))return[t.getReversed()];if(s.containsPosition(t.targetPosition)&&s.containsRange(i,!0))return s.start=s.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),s.end=s.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),gr([s],r);if(i.containsPosition(e.targetPosition)&&i.containsRange(s,!0))return s.start=s.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),s.end=s.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),gr([s],r);const l=(0,a.Rt)(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return s.start=s.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),s.end=s.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),gr([s],r);"remove"!=e.type||"remove"==t.type||o.aWasUndone||o.forceWeakRemove?"remove"==e.type||"remove"!=t.type||o.bWasUndone||o.forceWeakRemove||(n=!1):n=!0;const d=[],h=s.getDifference(i);for(const e of h){e.start=e.start._getTransformedByDeletion(t.sourcePosition,t.howMany),e.end=e.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const o="same"==(0,a.Rt)(e.start.getParentPath(),t.getMovedRangeStart().getParentPath()),s=e._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,o);d.push(...s)}const u=s.getIntersection(i);return null!==u&&n&&(u.start=u.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),u.end=u.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===d.length?d.push(u):1==d.length?i.start.isBefore(s.start)||i.start.isEqual(s.start)?d.unshift(u):d.push(u):d.splice(1,0,u)),0===d.length?[new Qi(e.baseVersion)]:gr(d,r)})),nr(Hi,Gi,((e,t,o)=>{let s=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=o.abRelation||(s=e.targetPosition._getTransformedBySplitOperation(t));const i=Go._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=s,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){let e=new Go(t.splitPosition,i.end);e=e._getTransformedBySplitOperation(t);return gr([new Go(i.start,t.splitPosition),e],s)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==o.abRelation&&(s=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==o.abRelation&&(s=e.targetPosition);const r=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!o.aWasUndone&&r.push(Go._createFromPositionAndShift(t.insertionPosition,1))}return gr(r,s)})),nr(Hi,Ki,((e,t,o)=>{const s=Go._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&s.containsPosition(t.sourcePosition))if("remove"!=e.type||o.forceWeakRemove){if(1==e.howMany)return o.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Qi(0)]}else if(!o.aWasUndone){const o=[];let s=t.graveyardPosition.clone(),i=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(o.push(new Hi(e.sourcePosition,e.howMany-1,e.targetPosition,0)),s=s._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),i=i._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));const r=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),n=new Hi(s,1,r,0),a=n.getMovedRangeStart().path.slice();a.push(0);const c=new Zo(n.targetPosition.root,a);i=i._getTransformedByMove(s,r,1);const l=new Hi(i,t.howMany,c,0);return o.push(n),o.push(l),o}const i=Go._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=i.start,e.howMany=i.end.offset-i.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),nr(er,Ui,((e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e]))),nr(er,Ki,((e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e]))),nr(er,Hi,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),nr(er,er,((e,t,o)=>{if(e.position.isEqual(t.position)){if(!o.aIsStrong)return[new Qi(0)];e.oldName=t.newName}return[e]})),nr(er,Gi,((e,t)=>{const o=e.position.path,s=t.splitPosition.getParentPath();if("same"==(0,a.Rt)(o,s)&&!t.graveyardPosition){const t=new er(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),nr(tr,tr,((e,t,o)=>{if(e.root===t.root&&e.key===t.key){if(!o.aIsStrong||e.newValue===t.newValue)return[new Qi(0)];e.oldValue=t.newValue}return[e]})),nr(or,or,((e,t)=>e.rootName===t.rootName&&e.isAdd===t.isAdd?[new Qi(0)]:[e])),nr(Gi,Ui,((e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=e.insertionPosition._getTransformedByInsertOperation(t),[e]))),nr(Gi,Ki,((e,t,o)=>{if(!e.graveyardPosition&&!o.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){const o=t.graveyardPosition.path.slice();o.push(0);const s=new Zo(t.graveyardPosition.root,o),i=Gi.getInsertionPosition(new Zo(t.graveyardPosition.root,o)),r=new Gi(s,0,i,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),e.graveyardPosition=r.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[r,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),nr(Gi,Hi,((e,t,o)=>{const s=Go._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){const i=s.start.isEqual(e.graveyardPosition)||s.containsPosition(e.graveyardPosition);if(!o.bWasUndone&&i){const o=e.splitPosition._getTransformedByMoveOperation(t),s=e.graveyardPosition._getTransformedByMoveOperation(t),i=s.path.slice();i.push(0);const r=new Zo(s.root,i);return[new Hi(o,e.howMany,r,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}const i=e.splitPosition.isEqual(t.targetPosition);if(i&&("insertAtSource"==o.baRelation||"splitBefore"==o.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),[e];if(i&&o.abRelation&&o.abRelation.howMany){const{howMany:t,offset:s}=o.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(s),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&s.containsPosition(e.splitPosition)){const o=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=o,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),[e]}return t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),[e]})),nr(Gi,Gi,((e,t,o)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Qi(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Qi(0)];if("splitBefore"==o.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){const s="$graveyard"==e.splitPosition.root.rootName,i="$graveyard"==t.splitPosition.root.rootName;if(i&&!s||!(s&&!i)&&o.aIsStrong){const o=[];return t.howMany&&o.push(new Hi(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&o.push(new Hi(e.splitPosition,e.howMany,e.moveTargetPosition,0)),o}return[new Qi(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==o.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==o.baRelation){const o=t.insertionPosition.path.slice();o.push(0);const s=new Zo(t.insertionPosition.root,o);return[e,new Hi(e.insertionPosition,1,s,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Gi.getInsertionPosition(e.splitPosition),[e]}));class mr extends((0,a.ln)(Zo)){constructor(e,t,o="toNone"){if(super(e,t,o),!this.root.is("rootElement"))throw new a.Bb("model-liveposition-root-not-rootelement",e);br.call(this)}detach(){this.stopListening()}toPosition(){return new Zo(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function br(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&_r.call(this,o)}),{priority:"low"})}function _r(e){const t=this.getTransformedByOperation(e);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}mr.prototype.is=function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e};class kr{constructor(e={}){"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},(0,a.KE)("batch-constructor-deprecated-string-type"));const{isUndoable:t=!0,isLocal:o=!0,isUndo:s=!1,isTyping:i=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=o,this.isUndo=s,this.isTyping=i}get type(){return(0,a.KE)("batch-type-deprecated"),"default"}get baseVersion(){for(const e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}var wr=Object.defineProperty,vr=Object.defineProperties,yr=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Pr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Tr=(e,t,o)=>t in e?wr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Er=(e,t)=>{for(var o in t||(t={}))Pr.call(t,o)&&Tr(e,o,t[o]);if(xr)for(var o of xr(t))Cr.call(t,o)&&Tr(e,o,t[o]);return e};class Ar{constructor(e){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=e}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(e){const t=e;switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const e of t.range.getItems({shallow:!0}))this._isInInsertedElement(e.parent)||this._markAttribute(e);break;case"remove":case"move":case"reinsert":{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;const e=this._isInInsertedElement(t.sourcePosition.parent),o=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),o||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break}case"rename":{if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);const e=Go._createFromPositionAndShift(t.position,1);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}break}case"split":{const e=t.splitPosition.parent;this._isInInsertedElement(e)||this._markRemove(e,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break}case"merge":{const e=t.sourcePosition.parent;this._isInInsertedElement(e.parent)||this._markRemove(e.parent,e.startOffset,1);const o=t.graveyardPosition.parent;this._markInsert(o,t.graveyardPosition.offset,1);const s=t.targetPosition.parent;this._isInInsertedElement(s)||this._markInsert(s,t.targetPosition.offset,e.maxOffset);break}case"detachRoot":case"addRoot":{const e=t.affectedSelectable;if(!e._isLoaded)return;if(e.isAttached()==t.isAdd)return;this._bufferRootStateChange(t.rootName,t.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!t.root._isLoaded)return;const e=t.root.rootName;this._bufferRootAttributeChange(e,t.key,t.oldValue,t.newValue);break}}this._cachedChanges=null}bufferMarkerChange(e,t,o){t.range&&t.range.root.is("rootElement")&&!t.range.root._isLoaded&&(t.range=null),o.range&&o.range.root.is("rootElement")&&!o.range.root._isLoaded&&(o.range=null);let s=this._changedMarkers.get(e);s?s.newMarkerData=o:(s={newMarkerData:o,oldMarkerData:t},this._changedMarkers.set(e,s)),null==s.oldMarkerData.range&&null==o.range&&this._changedMarkers.delete(e)}getMarkersToRemove(){const e=[];for(const[t,o]of this._changedMarkers)null!=o.oldMarkerData.range&&e.push({name:t,range:o.oldMarkerData.range});return e}getMarkersToAdd(){const e=[];for(const[t,o]of this._changedMarkers)null!=o.newMarkerData.range&&e.push({name:t,range:o.newMarkerData.range});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map((([e,t])=>({name:e,data:{oldRange:t.oldMarkerData.range,newRange:t.newMarkerData.range}})))}hasDataChanges(){if(this._changesInElement.size>0)return!0;if(this._changedRoots.size>0)return!0;for(const{newMarkerData:e,oldMarkerData:t}of this._changedMarkers.values()){if(e.affectsData!==t.affectsData)return!0;if(e.affectsData){const o=e.range&&!t.range,s=!e.range&&t.range,i=e.range&&t.range&&!e.range.isEqual(t.range);if(o||s||i)return!0}}return!1}getChanges(e={}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(const e of this._changesInElement.keys()){const o=this._changesInElement.get(e).sort(((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1)),s=this._elementSnapshots.get(e),i=Sr(e.getChildren()),r=Or(s.length,o);let n=0,a=0;for(const o of r)if("i"===o)t.push(this._getInsertDiff(e,n,i[n])),n++;else if("r"===o)t.push(this._getRemoveDiff(e,n,s[a])),a++;else if("a"===o){const o=i[n].attributes,r=s[a].attributes;let c;if("$text"==i[n].name)c=new Go(Zo._createAt(e,n),Zo._createAt(e,n+1));else{const t=e.offsetToIndex(n);c=new Go(Zo._createAt(e,n),Zo._createAt(e.getChild(t),0))}t.push(...this._getAttributesDiff(c,r,o)),n++,a++}else n++,a++}t.sort(((e,t)=>e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1));for(let e=1,o=0;e<t.length;e++){const s=t[o],i=t[e],r="remove"==s.type&&"remove"==i.type&&"$text"==s.name&&"$text"==i.name&&s.position.isEqual(i.position),n="insert"==s.type&&"insert"==i.type&&"$text"==s.name&&"$text"==i.name&&s.position.parent==i.position.parent&&s.position.offset+s.length==i.position.offset,a="attribute"==s.type&&"attribute"==i.type&&s.position.parent==i.position.parent&&s.range.isFlat&&i.range.isFlat&&s.position.offset+s.length==i.position.offset&&s.attributeKey==i.attributeKey&&s.attributeOldValue==i.attributeOldValue&&s.attributeNewValue==i.attributeNewValue;r||n||a?(s.length++,a&&(s.range.end=s.range.end.getShiftedBy(1)),t[e]=null):o=e}t=t.filter((e=>e));for(const e of t)delete e.changeCount,"attribute"==e.type&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t,this._cachedChanges=t.filter(Rr),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map((e=>{const t=Er({},e);return void 0!==t.state&&delete t.attributes,t}))}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(e,t){if(!this._changedRoots.has(e))return void this._changedRoots.set(e,{name:e,state:t?"attached":"detached"});const o=this._changedRoots.get(e);void 0!==o.state?(delete o.state,void 0===o.attributes&&this._changedRoots.delete(e)):o.state=t?"attached":"detached"}_bufferRootAttributeChange(e,t,o,s){const i=this._changedRoots.get(e)||{name:e},r=i.attributes||{};if(r[t]){const e=r[t];s===e.oldValue?delete r[t]:e.newValue=s}else r[t]={oldValue:o,newValue:s};0===Object.entries(r).length?(delete i.attributes,void 0===i.state&&this._changedRoots.delete(e)):(i.attributes=r,this._changedRoots.set(e,i))}_refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize),this._refreshedItems.add(e);const t=Go._createOn(e);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getData();this.bufferMarkerChange(e.name,t,t)}this._cachedChanges=null}_bufferRootLoad(e){if(e.isAttached()){this._bufferRootStateChange(e.rootName,!0),this._markInsert(e,0,e.maxOffset);for(const t of e.getAttributeKeys())this._bufferRootAttributeChange(e.rootName,t,null,e.getAttribute(t));for(const o of this._markerCollection)if(o.getRange().root==e){const e=o.getData();this.bufferMarkerChange(o.name,(t=Er({},e),vr(t,yr({range:null}))),e)}var t}}_markInsert(e,t,o){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const s={type:"insert",offset:t,howMany:o,count:this._changeCount++};this._markChange(e,s)}_markRemove(e,t,o){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const s={type:"remove",offset:t,howMany:o,count:this._changeCount++};this._markChange(e,s),this._removeAllNestedChanges(e,t,o)}_markAttribute(e){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshot(e);const o=this._getChangesForElement(e);this._handleChange(t,o),o.push(t);for(let e=0;e<o.length;e++)o[e].howMany<1&&(o.splice(e,1),e--)}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshot(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Sr(e.getChildren()))}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const o of t){const s=e.offset+e.howMany,i=o.offset+o.howMany;if("insert"==e.type&&("insert"==o.type&&(e.offset<=o.offset?o.offset+=e.howMany:e.offset<i&&(o.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==o.type&&e.offset<o.offset&&(o.offset+=e.howMany),"attribute"==o.type))if(e.offset<=o.offset)o.offset+=e.howMany;else if(e.offset<i){const i=o.howMany;o.howMany=e.offset-o.offset,t.unshift({type:"attribute",offset:s,howMany:i-o.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==o.type)if(s<=o.offset)o.offset-=e.howMany;else if(s<=i)if(e.offset<o.offset){const t=s-o.offset;o.offset=e.offset,o.howMany-=t,e.nodesToHandle-=t}else o.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=o.offset)e.nodesToHandle-=o.howMany,o.howMany=0;else if(e.offset<i){const t=i-e.offset;o.howMany-=t,e.nodesToHandle-=t}if("remove"==o.type&&(s<=o.offset?o.offset-=e.howMany:e.offset<o.offset&&(e.nodesToHandle+=o.howMany,o.howMany=0)),"attribute"==o.type)if(s<=o.offset)o.offset-=e.howMany;else if(e.offset<o.offset){const t=s-o.offset;o.offset=e.offset,o.howMany-=t}else if(e.offset<i)if(s<=i){const s=o.howMany;o.howMany=e.offset-o.offset;const i=s-o.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:i,count:this._changeCount++})}else o.howMany-=i-e.offset}if("attribute"==e.type){if("insert"==o.type)if(e.offset<o.offset&&s>o.offset){if(s>i){const e={type:"attribute",offset:i,howMany:s-i,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=o.offset&&e.offset<i&&(s>i?(e.nodesToHandle=s-i,e.offset=i):e.nodesToHandle=0);if("remove"==o.type&&e.offset<o.offset&&s>o.offset){const i={type:"attribute",offset:o.offset,howMany:s-o.offset,count:this._changeCount++};this._handleChange(i,t),t.push(i),e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==o.type&&(e.offset>=o.offset&&s<=i?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=o.offset&&s>=i&&(o.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,o){return{type:"insert",position:Zo._createAt(e,t),name:o.name,attributes:new Map(o.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(e,t,o){return{type:"remove",position:Zo._createAt(e,t),name:o.name,attributes:new Map(o.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,o){const s=[];o=new Map(o);for(const[i,r]of t){const t=o.has(i)?o.get(i):null;t!==r&&s.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:i,attributeOldValue:r,attributeNewValue:t,changeCount:this._changeCount++}),o.delete(i)}for(const[t,i]of o)s.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return s}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const o=this._changesInElement.get(t),s=e.startOffset;if(o)for(const e of o)if("insert"==e.type&&s>=e.offset&&s<e.offset+e.howMany)return!0;return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,o){const s=new Go(Zo._createAt(e,t),Zo._createAt(e,t+o));for(const e of s.getItems({shallow:!0}))e.is("element")&&(this._elementSnapshots.delete(e),this._changesInElement.delete(e),this._removeAllNestedChanges(e,0,e.maxOffset))}}function Sr(e){const t=[];for(const o of e)if(o.is("$text"))for(let e=0;e<o.data.length;e++)t.push({name:"$text",attributes:new Map(o.getAttributes())});else t.push({name:o.name,attributes:new Map(o.getAttributes())});return t}function Or(e,t){const o=[];let s=0,i=0;for(const e of t){if(e.offset>s){for(let t=0;t<e.offset-s;t++)o.push("e");i+=e.offset-s}if("insert"==e.type){for(let t=0;t<e.howMany;t++)o.push("i");s=e.offset+e.howMany}else if("remove"==e.type){for(let t=0;t<e.howMany;t++)o.push("r");s=e.offset,i+=e.howMany}else o.push(..."a".repeat(e.howMany).split("")),s=e.offset+e.howMany,i+=e.howMany}if(i<e)for(let t=0;t<e-i-s;t++)o.push("e");return o}function Rr(e){const t="position"in e&&"$graveyard"==e.position.root.rootName,o="range"in e&&"$graveyard"==e.range.root.rootName;return!t&&!o}class jr{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(e){this._operations.length&&e>this._version+1&&this._gaps.set(this._version,e),this._version=e}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(e){if(e.baseVersion!==this.version)throw new a.Bb("model-document-history-addoperation-incorrect-version",this,{operation:e,historyVersion:this.version});this._operations.push(e),this._version++,this._baseVersionToOperationIndex.set(e.baseVersion,this._operations.length-1)}getOperations(e,t=this.version){if(!this._operations.length)return[];const o=this._operations[0];void 0===e&&(e=o.baseVersion);let s=t-1;for(const[t,o]of this._gaps)e>t&&e<o&&(e=o),s>t&&s<o&&(s=t-1);if(s<o.baseVersion||e>this.lastOperation.baseVersion)return[];let i=this._baseVersionToOperationIndex.get(e);void 0===i&&(i=0);let r=this._baseVersionToOperationIndex.get(s);return void 0===r&&(r=this._operations.length-1),this._operations.slice(i,r+1)}getOperation(e){const t=this._baseVersionToOperationIndex.get(e);if(void 0!==t)return this._operations[t]}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class Mr extends zo{constructor(e,t,o="main"){super(t),this._isAttached=!0,this._isLoaded=!0,this._document=e,this.rootName=o}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Mr.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e};var Vr=Object.defineProperty,Br=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Dr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Fr=(e,t,o)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Lr=(e,t)=>{for(var o in t||(t={}))Nr.call(t,o)&&Fr(e,o,t[o]);if(Dr)for(var o of Dr(t))zr.call(t,o)&&Fr(e,o,t[o]);return e},Zr=(e,t)=>Br(e,Ir(t));const Wr="$graveyard";class $r extends((0,a.ln)()){constructor(e){super(),this.model=e,this.history=new jr,this.selection=new vs(this),this.roots=new a.FE({idProperty:"rootName"}),this.differ=new Ar(e.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Wr),this.listenTo(e,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&this.differ.bufferOperation(o)}),{priority:"high"}),this.listenTo(e,"applyOperation",((e,t)=>{const o=t[0];o.isDocumentOperation&&this.history.addOperation(o)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(e.markers,"update",((e,t,o,s,i)=>{const r=Zr(Lr({},t.getData()),{range:s});this.differ.bufferMarkerChange(t.name,i,r),null===o&&t.on("change",((e,o)=>{const s=t.getData();this.differ.bufferMarkerChange(t.name,Zr(Lr({},s),{range:o}),s)}))})),this.registerPostFixer((e=>{let t=!1;for(const o of this.roots)o.isAttached()||o.isEmpty||(e.remove(e.createRangeIn(o)),t=!0);for(const o of this.model.markers)o.getRange().root.isAttached()||(e.removeMarker(o),t=!0);return t}))}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(Wr)}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new a.Bb("model-document-createroot-name-exists",this,{name:t});const o=new Mr(this,e,t);return this.roots.add(o),o}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(e=!1){return this.getRoots(e).map((e=>e.rootName))}getRoots(e=!1){return this.roots.filter((t=>t!=this.graveyard&&(e||t.isAttached())&&t._isLoaded))}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=w(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const e=this.getRoots();return e.length?e[0]:this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot(),t=this.model,o=t.schema,s=t.createPositionFromPath(e,[0]);return o.getNearestSelectionRange(s)||t.createRange(s)}_validateSelectionRange(e){return qr(e.start)&&qr(e.end)}_callPostFixers(e){let t=!1;do{for(const o of this._postFixers)if(this.selection.refresh(),t=o(e),t)break}while(t)}}function qr(e){const t=e.textNode;if(t){const o=t.data,s=e.offset-t.startOffset;return!(0,a.to)(o,s)&&!(0,a.pp)(o,s)}return!0}var Hr=Object.defineProperty,Ur=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,Kr=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Xr=(e,t,o)=>t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class Qr extends((0,a.ln)()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){const t=e instanceof en?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,o=!1,s=!1){const i=e instanceof en?e.name:e;if(i.includes(","))throw new a.Bb("markercollection-incorrect-marker-name",this);const r=this._markers.get(i);if(r){const e=r.getData(),n=r.getRange();let a=!1;return n.isEqual(t)||(r._attachLiveRange(bs.fromRange(t)),a=!0),o!=r.managedUsingOperations&&(r._managedUsingOperations=o,a=!0),"boolean"==typeof s&&s!=r.affectsData&&(r._affectsData=s,a=!0),a&&this.fire(`update:${i}`,r,n,t,e),r}const n=bs.fromRange(t),c=new en(i,n,o,s);var l;return this._markers.set(i,c),this.fire(`update:${i}`,c,null,t,(l=((e,t)=>{for(var o in t||(t={}))Jr.call(t,o)&&Xr(e,o,t[o]);if(Kr)for(var o of Kr(t))Yr.call(t,o)&&Xr(e,o,t[o]);return e})({},c.getData()),Ur(l,Gr({range:null})))),c}_remove(e){const t=e instanceof en?e.name:e,o=this._markers.get(t);return!!o&&(this._markers.delete(t),this.fire(`update:${t}`,o,o.getRange(),null,o.getData()),this._destroyMarker(o),!0)}_refresh(e){const t=e instanceof en?e.name:e,o=this._markers.get(t);if(!o)throw new a.Bb("markercollection-refresh-marker-not-exists",this);const s=o.getRange();this.fire(`update:${t}`,o,s,s,o.getData())}*getMarkersAtPosition(e){for(const t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(const t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(const e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}class en extends((0,a.ln)(Vo)){constructor(e,t,o,s){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=o,this._affectsData=s}get managedUsingOperations(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new a.Bb("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}en.prototype.is=function(e){return"marker"===e||"model:marker"===e};class tn extends Ni{constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new a.Bb("detach-operation-on-document-node",this)}_execute(){Fi(Go._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class on extends Vo{constructor(e){super(),this.markers=new Map,this._children=new Io,e&&this._insertChild(0,e)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}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(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const o of e)t=t.getChild(t.offsetToIndex(o));return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}static fromJSON(e){const t=[];for(const o of e)o.name?t.push(zo.fromJSON(o)):t.push(Do.fromJSON(o));return new on(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const o=function(e){if("string"==typeof e)return[new Do(e)];(0,a.TW)(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new Do(e):e instanceof No?new Do(e.data,e.getAttributes()):e))}(t);for(const e of o)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,o)}_removeChildren(e,t=1){const o=this._children._removeNodes(e,t);for(const e of o)e.parent=null;return o}}on.prototype.is=function(e){return"documentFragment"===e||"model:documentFragment"===e};class sn{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new Do(e,t)}createElement(e,t){return new zo(e,t)}createDocumentFragment(){return new on}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,o=0){if(this._assertWriterUsedCorrectly(),e instanceof Do&&""==e.data)return;const s=Zo._createAt(t,o);if(e.parent){if(ln(e.root,s.root))return void this.move(Go._createOn(e),s);if(e.root.document)throw new a.Bb("model-writer-insert-forbidden-move",this);this.remove(e)}const i=s.root.document?s.root.document.version:null,r=new Ui(s,e,i);if(e instanceof Do&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof on)for(const[t,o]of e.markers){const e=Zo._createAt(o.root,0),i={range:new Go(o.start._getCombined(e,s),o.end._getCombined(e,s)),usingOperation:!0,affectsData:!0};this.model.markers.has(t)?this.updateMarker(t,i):this.addMarker(t,i)}}insertText(e,t,o,s){t instanceof on||t instanceof zo||t instanceof Zo?this.insert(this.createText(e),t,o):this.insert(this.createText(e,t),o,s)}insertElement(e,t,o,s){t instanceof on||t instanceof zo||t instanceof Zo?this.insert(this.createElement(e),t,o):this.insert(this.createElement(e,t),o,s)}append(e,t){this.insert(e,t,"end")}appendText(e,t,o){t instanceof on||t instanceof zo?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),o,"end")}appendElement(e,t,o){t instanceof on||t instanceof zo?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),o,"end")}setAttribute(e,t,o){if(this._assertWriterUsedCorrectly(),o instanceof Go){const s=o.getMinimalFlatRanges();for(const o of s)rn(this,e,t,o)}else nn(this,e,t,o)}setAttributes(e,t){for(const[o,s]of(0,a.qL)(e))this.setAttribute(o,s,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof Go){const o=t.getMinimalFlatRanges();for(const t of o)rn(this,e,null,t)}else nn(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=e=>{for(const t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof Go)for(const o of e.getItems())t(o);else t(e)}move(e,t,o){if(this._assertWriterUsedCorrectly(),!(e instanceof Go))throw new a.Bb("writer-move-invalid-range",this);if(!e.isFlat)throw new a.Bb("writer-move-range-not-flat",this);const s=Zo._createAt(t,o);if(s.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!ln(e.root,s.root))throw new a.Bb("writer-move-different-document",this);const i=e.root.document?e.root.document.version:null,r=new Hi(e.start,e.end.offset-e.start.offset,s,i);this.batch.addOperation(r),this.model.applyOperation(r)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof Go?e:Go._createOn(e)).getMinimalFlatRanges().reverse();for(const e of t)this._addOperationForAffectedMarkers("move",e),cn(e.start,e.end.offset-e.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,o=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof zo))throw new a.Bb("writer-merge-no-element-before",this);if(!(o instanceof zo))throw new a.Bb("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,o){return this.model.createPositionFromPath(e,t,o)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(...e){return this.model.createSelection(...e)}_mergeDetached(e){const t=e.nodeBefore,o=e.nodeAfter;this.move(Go._createIn(o),Zo._createAt(t,"end")),this.remove(o)}_merge(e){const t=Zo._createAt(e.nodeBefore,"end"),o=Zo._createAt(e.nodeAfter,0),s=e.root.document.graveyard,i=new Zo(s,[0]),r=e.root.document.version,n=new Ki(o,e.nodeAfter.maxOffset,t,i,r);this.batch.addOperation(n),this.model.applyOperation(n)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof zo))throw new a.Bb("writer-rename-not-element-instance",this);const o=e.root.document?e.root.document.version:null,s=new er(Zo._createBefore(e),e.name,t,o);this.batch.addOperation(s),this.model.applyOperation(s)}split(e,t){this._assertWriterUsedCorrectly();let o,s,i=e.parent;if(!i.parent)throw new a.Bb("writer-split-element-no-parent",this);if(t||(t=i.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new a.Bb("writer-split-invalid-limit-element",this);do{const t=i.root.document?i.root.document.version:null,r=i.maxOffset-e.offset,n=Gi.getInsertionPosition(e),a=new Gi(e,r,n,null,t);this.batch.addOperation(a),this.model.applyOperation(a),o||s||(o=i,s=e.parent.nextSibling),i=(e=this.createPositionAfter(e.parent)).parent}while(i!==t);return{position:e,range:new Go(Zo._createAt(o,"end"),Zo._createAt(s,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new a.Bb("writer-wrap-range-not-flat",this);const o=t instanceof zo?t:new zo(t);if(o.childCount>0)throw new a.Bb("writer-wrap-element-not-empty",this);if(null!==o.parent)throw new a.Bb("writer-wrap-element-attached",this);this.insert(o,e.start);const s=new Go(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(s,Zo._createAt(o,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new a.Bb("writer-unwrap-element-no-parent",this);this.move(Go._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new a.Bb("writer-addmarker-no-usingoperation",this);const o=t.usingOperation,s=t.range,i=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new a.Bb("writer-addmarker-marker-exists",this);if(!s)throw new a.Bb("writer-addmarker-no-range",this);return o?(an(this,e,null,s,i),this.model.markers.get(e)):this.model.markers._set(e,s,o,i)}updateMarker(e,t){this._assertWriterUsedCorrectly();const o="string"==typeof e?e:e.name,s=this.model.markers.get(o);if(!s)throw new a.Bb("writer-updatemarker-marker-not-exists",this);if(!t)return(0,a.KE)("writer-updatemarker-reconvert-using-editingcontroller",{markerName:o}),void this.model.markers._refresh(s);const i="boolean"==typeof t.usingOperation,r="boolean"==typeof t.affectsData,n=r?t.affectsData:s.affectsData;if(!i&&!t.range&&!r)throw new a.Bb("writer-updatemarker-wrong-options",this);const c=s.getRange(),l=t.range?t.range:c;i&&t.usingOperation!==s.managedUsingOperations?t.usingOperation?an(this,o,null,l,n):(an(this,o,c,null,n),this.model.markers._set(o,l,void 0,n)):s.managedUsingOperations?an(this,o,c,l,n):this.model.markers._set(o,l,void 0,n)}removeMarker(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new a.Bb("writer-removemarker-no-marker",this);const o=this.model.markers.get(t);if(!o.managedUsingOperations)return void this.model.markers._remove(t);an(this,t,o.getRange(),null,o.affectsData)}addRoot(e,t="$root"){this._assertWriterUsedCorrectly();const o=this.model.document.getRoot(e);if(o&&o.isAttached())throw new a.Bb("writer-addroot-root-exists",this);const s=this.model.document,i=new or(e,t,!0,s,s.version);return this.batch.addOperation(i),this.model.applyOperation(i),this.model.document.getRoot(e)}detachRoot(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?this.model.document.getRoot(e):e;if(!t||!t.isAttached())throw new a.Bb("writer-detachroot-no-root",this);for(const e of this.model.markers)e.getRange().root===t&&this.removeMarker(e);for(const e of t.getAttributeKeys())this.removeAttribute(e,t);this.remove(this.createRangeIn(t));const o=this.model.document,s=new or(t.rootName,t.name,!1,o,o.version);this.batch.addOperation(s),this.model.applyOperation(s)}setSelection(...e){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...e)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else for(const[t,o]of(0,a.qL)(e))this._setSelectionAttribute(t,o)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(const t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const o=this.model.document.selection;if(o.isCollapsed&&o.anchor.parent.isEmpty){const s=vs._getStoreAttributeKey(e);this.setAttribute(s,t,o.anchor.parent)}o._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const o=vs._getStoreAttributeKey(e);this.removeAttribute(o,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new a.Bb("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(const o of this.model.markers){if(!o.managedUsingOperations)continue;const s=o.getRange();let i=!1;if("move"===e){const e=t;i=e.containsPosition(s.start)||e.start.isEqual(s.start)||e.containsPosition(s.end)||e.end.isEqual(s.end)}else{const e=t,o=e.nodeBefore,r=e.nodeAfter,n=s.start.parent==o&&s.start.isAtEnd,a=s.end.parent==r&&0==s.end.offset,c=s.end.nodeAfter==r,l=s.start.nodeAfter==r;i=n||a||c||l}i&&this.updateMarker(o.name,{range:s})}}}function rn(e,t,o,s){const i=e.model,r=i.document;let n,a,c,l=s.start;for(const e of s.getWalker({shallow:!0}))c=e.item.getAttribute(t),n&&a!=c&&(a!=o&&d(),l=n),n=e.nextPosition,a=c;function d(){const s=new Go(l,n),c=s.root.document?r.version:null,d=new Xi(s,t,a,o,c);e.batch.addOperation(d),i.applyOperation(d)}n instanceof Zo&&n!=l&&a!=o&&d()}function nn(e,t,o,s){const i=e.model,r=i.document,n=s.getAttribute(t);let a,c;if(n!=o){if(s.root===s){const e=s.document?r.version:null;c=new tr(s,t,n,o,e)}else{a=new Go(Zo._createBefore(s),e.createPositionAfter(s));const i=a.root.document?r.version:null;c=new Xi(a,t,n,o,i)}e.batch.addOperation(c),i.applyOperation(c)}}function an(e,t,o,s,i){const r=e.model,n=r.document,a=new Ji(t,o,s,r.markers,!!i,n.version);e.batch.addOperation(a),r.applyOperation(a)}function cn(e,t,o,s){let i;if(e.root.document){const o=s.document,r=new Zo(o.graveyard,[0]);i=new Hi(e,t,r,o.version)}else i=new tn(e,t);o.addOperation(i),s.applyOperation(i)}function ln(e,t){return e===t||e instanceof Mr&&t instanceof Mr}function dn(e,t,o={}){if(t.isCollapsed)return;const s=t.getFirstRange();if("$graveyard"==s.root.rootName)return;const i=e.schema;e.change((e=>{if(!o.doNotResetEntireContent&&function(e,t){const o=e.getLimitElement(t);if(!t.containsEntireContent(o))return!1;const s=t.getFirstRange();if(s.start.parent==s.end.parent)return!1;return e.checkChild(o,"paragraph")}(i,t))return void function(e,t){const o=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(o)),fn(e,e.createPositionAt(o,0),t)}(e,t);const r={};if(!o.doNotAutoparagraph){const e=t.getSelectedElement();e&&Object.assign(r,i.getAttributesWithProperty(e,"copyOnReplace",!0))}const[n,a]=function(e){const t=e.root.document.model,o=e.start;let s=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){const o=function(e){const t=e.parent,o=t.root.document.model.schema,s=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const e of s){if(o.isLimit(e))return null;if(o.isBlock(e))return e}}(s);if(o&&s.isTouching(t.createPositionAt(o,0))){const o=t.createSelection(e);t.modifySelection(o,{direction:"backward"});const i=o.getLastPosition(),r=t.createRange(i,s);t.hasContent(r,{ignoreMarkers:!0})||(s=i)}}return[mr.fromPosition(o,"toPrevious"),mr.fromPosition(s,"toNext")]}(s);n.isTouching(a)||e.remove(e.createRange(n,a)),o.leaveUnmerged||(!function(e,t,o){const s=e.model;if(!pn(e.model.schema,t,o))return;const[i,r]=function(e,t){const o=e.getAncestors(),s=t.getAncestors();let i=0;for(;o[i]&&o[i]==s[i];)i++;return[o[i],s[i]]}(t,o);if(!i||!r)return;!s.hasContent(i,{ignoreMarkers:!0})&&s.hasContent(r,{ignoreMarkers:!0})?un(e,t,o,i.parent):hn(e,t,o,i.parent)}(e,n,a),i.removeDisallowedAttributes(n.parent.getChildren(),e)),gn(e,t,n),!o.doNotAutoparagraph&&function(e,t){const o=e.checkChild(t,"$text"),s=e.checkChild(t,"paragraph");return!o&&s}(i,n)&&fn(e,n,t,r),n.detach(),a.detach()}))}function hn(e,t,o,s){const i=t.parent,r=o.parent;if(i!=s&&r!=s){for(t=e.createPositionAfter(i),(o=e.createPositionBefore(r)).isEqual(t)||e.insert(r,t),e.merge(t);o.parent.isEmpty;){const t=o.parent;o=e.createPositionBefore(t),e.remove(t)}pn(e.model.schema,t,o)&&hn(e,t,o,s)}}function un(e,t,o,s){const i=t.parent,r=o.parent;if(i!=s&&r!=s){for(t=e.createPositionAfter(i),(o=e.createPositionBefore(r)).isEqual(t)||e.insert(i,o);t.parent.isEmpty;){const o=t.parent;t=e.createPositionBefore(o),e.remove(o)}o=e.createPositionBefore(r),function(e,t){const o=t.nodeBefore,s=t.nodeAfter;o.name!=s.name&&e.rename(o,s.name);e.clearAttributes(o),e.setAttributes(Object.fromEntries(s.getAttributes()),o),e.merge(t)}(e,o),pn(e.model.schema,t,o)&&un(e,t,o,s)}}function pn(e,t,o){const s=t.parent,i=o.parent;return s!=i&&(!e.isLimit(s)&&!e.isLimit(i)&&function(e,t,o){const s=new Go(e,t);for(const e of s.getWalker())if(o.isLimit(e.item))return!1;return!0}(t,o,e))}function fn(e,t,o,s={}){const i=e.createElement("paragraph");e.model.schema.setAllowedAttributes(i,s,e),e.insert(i,t),gn(e,o,e.createPositionAt(i,0))}function gn(e,t,o){t instanceof vs?e.setSelection(o):t.setTo(o)}function mn(e,t){const o=[];Array.from(e.getItems({direction:"backward"})).map((e=>t.createRangeOn(e))).filter((t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end)))).forEach((e=>{o.push(e.start.parent),t.remove(e)})),o.forEach((e=>{let o=e;for(;o.parent&&o.isEmpty;){const e=t.createRangeOn(o);o=o.parent,t.remove(e)}}))}class bn{constructor(e,t,o){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=e,this.writer=t,this.position=o,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0)}handleNodes(e){for(const t of Array.from(e))this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(e){const t=this.writer.createPositionAfter(this._lastNode),o=this.writer.createPositionAfter(e);if(o.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new a.Bb("insertcontent-invalid-insertion-position",this);this.position=o,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Go._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Go(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){if(this.schema.isObject(e))return void this._handleObject(e);let t=this._checkAndAutoParagraphToAllowedPosition(e);t||(t=this._checkAndSplitToAllowedPosition(e),t)?(this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this._handleDisallowedNode(e)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const e=mr.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=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}_handleObject(e){this._checkAndSplitToAllowedPosition(e)?this._appendToFragment(e):this._tryAutoparagraphing(e)}_handleDisallowedNode(e){e.is("element")?this.handleNodes(e.getChildren()):this._tryAutoparagraphing(e)}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new a.Bb("insertcontent-wrong-position",this,{node:e,position:this.position});this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=e:this._nodeToSelect=null,this._filterAttributesOf.push(e)}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=mr.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=mr.fromPosition(e,"toNext"))}_mergeOnLeft(){const e=this._firstNode;if(!(e instanceof zo))return;if(!this._canMergeLeft(e))return;const t=mr._createBefore(e);t.stickiness="toNext";const o=mr.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=mr._createAt(t.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=mr._createAt(t.nodeBefore,"end","toNext")),this.position=o.toPosition(),o.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_mergeOnRight(){const e=this._lastNode;if(!(e instanceof zo))return;if(!this._canMergeRight(e))return;const t=mr._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new a.Bb("insertcontent-invalid-insertion-position",this);this.position=Zo._createAt(t.nodeBefore,"end");const o=mr.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=mr._createAt(t.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=mr._createAt(t.nodeBefore,0,"toPrevious")),this.position=o.toPosition(),o.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_canMergeLeft(e){const t=e.previousSibling;return t instanceof zo&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){const t=e.nextSibling;return t instanceof zo&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_tryAutoparagraphing(e){const t=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,t)&&this.schema.checkChild(t,e)&&(t._appendChild(e),this._handleNode(t))}_checkAndAutoParagraphToAllowedPosition(e){if(this.schema.checkChild(this.position.parent,e))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",e))return!1;this._insertPartialFragment();const t=this.writer.createElement("paragraph");return this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0),!0}_checkAndSplitToAllowedPosition(e){const t=this._getAllowedIn(this.position.parent,e);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;)if(this.position.isAtStart){const e=this.position.parent;this.position=this.writer.createPositionBefore(e),e.isEmpty&&e.parent===t&&this.writer.remove(e)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const e=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=e,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(e,t){return this.schema.checkChild(e,t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}}function _n(e,t,o="auto"){const s=e.getSelectedElement();if(s&&t.schema.isObject(s)&&!t.schema.isInline(s))return"before"==o||"after"==o?t.createRange(t.createPositionAt(s,o)):t.createRangeOn(s);const i=(0,a.Ps)(e.getSelectedBlocks());if(!i)return t.createRange(e.focus);if(i.isEmpty)return t.createRange(t.createPositionAt(i,0));const r=t.createPositionAfter(i);return e.focus.isTouching(r)?t.createRange(r):t.createRange(t.createPositionBefore(i))}function kn(e,t,o,s={}){if(!e.schema.isObject(t))throw new a.Bb("insertobject-element-not-an-object",e,{object:t});const i=o||e.document.selection;let r=i;s.findOptimalPosition&&e.schema.isBlock(t)&&(r=e.createSelection(_n(i,e,s.findOptimalPosition)));const n=(0,a.Ps)(i.getSelectedBlocks()),c={};return n&&Object.assign(c,e.schema.getAttributesWithProperty(n,"copyOnReplace",!0)),e.change((o=>{r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0});let i=t;const n=r.anchor.parent;!e.schema.checkChild(n,t)&&e.schema.checkChild(n,"paragraph")&&e.schema.checkChild("paragraph",t)&&(i=o.createElement("paragraph"),o.insert(t,i)),e.schema.setAllowedAttributes(i,c,o);const l=e.insertContent(i,r);return l.isCollapsed||s.setSelection&&function(e,t,o,s){const i=e.model;if("on"==o)return void e.setSelection(t,"on");if("after"!=o)throw new a.Bb("insertobject-invalid-place-parameter-value",i);let r=t.nextSibling;if(i.schema.isInline(t))return void e.setSelection(t,"after");const n=r&&i.schema.checkChild(r,"$text");!n&&i.schema.checkChild(t.parent,"paragraph")&&(r=e.createElement("paragraph"),i.schema.setAllowedAttributes(r,s,e),i.insertContent(r,e.createPositionAfter(t)));r&&e.setSelection(r,0)}(o,t,s.setSelection,c),l}))}const wn=' ,.?!:;"-()';function vn(e,t){const{isForward:o,walker:s,unit:i,schema:r,treatEmojiAsSingleUnit:n}=e,{type:c,item:l,nextPosition:d}=t;if("text"==c)return"word"===e.unit?function(e,t){let o=e.position.textNode;o||(o=t?e.position.nodeAfter:e.position.nodeBefore);for(;o&&o.is("$text");){const s=e.position.offset-o.startOffset;if(Pn(o,s,t))o=t?e.position.nodeAfter:e.position.nodeBefore;else{if(xn(o.data,s,t))break;e.next()}}return e.position}(s,o):function(e,t,o){const s=e.position.textNode;if(s){const i=s.data;let r=e.position.offset-s.startOffset;for(;(0,a.to)(i,r)||"character"==t&&(0,a.pp)(i,r)||o&&(0,a.YK)(i,r);)e.next(),r=e.position.offset-s.startOffset}return e.position}(s,i,n);if(c==(o?"elementStart":"elementEnd")){if(r.isSelectable(l))return Zo._createAt(l,o?"after":"before");if(r.checkChild(d,"$text"))return d}else{if(r.isLimit(l))return void s.skip((()=>!0));if(r.checkChild(d,"$text"))return d}}function yn(e,t){const o=e.root,s=Zo._createAt(o,t?"end":0);return t?new Go(e,s):new Go(s,e)}function xn(e,t,o){const s=t+(o?0:-1);return wn.includes(e.charAt(s))}function Pn(e,t,o){return t===(o?e.offsetSize:0)}class Cn extends((0,a.Re)()){constructor(){super(),this.markers=new Qr,this.document=new $r(this),this.schema=new li,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((e=>this.decorate(e))),this.on("applyOperation",((e,t)=>{t[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(((e,t)=>{if("$marker"===t.name)return!0})),ti(this),this.document.registerPostFixer(Ns),this.on("insertContent",((e,[t,o])=>{e.return=function(e,t,o){return e.change((s=>{const i=o||e.document.selection;i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0});const r=new bn(e,s,i.anchor),n=[];let a;if(t.is("documentFragment")){if(t.markers.size){const e=[];for(const[o,s]of t.markers){const{start:t,end:i}=s,r=t.isEqual(i);e.push({position:t,name:o,isCollapsed:r},{position:i,name:o,isCollapsed:r})}e.sort((({position:e},{position:t})=>e.isBefore(t)?1:-1));for(const{position:o,name:i,isCollapsed:r}of e){let e=null,a=null;const c=o.parent===t&&o.isAtStart,l=o.parent===t&&o.isAtEnd;c||l?r&&(a=c?"start":"end"):(e=s.createElement("$marker"),s.insert(e,o)),n.push({name:i,element:e,collapsed:a})}}a=t.getChildren()}else a=[t];r.handleNodes(a);let c=r.getSelectionRange();if(t.is("documentFragment")&&n.length){const e=c?bs.fromRange(c):null,t={};for(let e=n.length-1;e>=0;e--){const{name:o,element:i,collapsed:a}=n[e],c=!t[o];if(c&&(t[o]=[]),i){const e=s.createPositionAt(i,"before");t[o].push(e),s.remove(i)}else{const e=r.getAffectedRange();if(!e){a&&t[o].push(r.position);continue}a?t[o].push(e[a]):t[o].push(c?e.start:e.end)}}for(const[e,[o,i]]of Object.entries(t))o&&i&&o.root===i.root&&s.addMarker(e,{usingOperation:!0,affectsData:!0,range:new Go(o,i)});e&&(c=e.toRange(),e.detach())}c&&(i instanceof vs?s.setSelection(c):i.setTo(c));const l=r.getAffectedRange()||e.createRange(i.anchor);return r.destroy(),l}))}(this,t,o)})),this.on("insertObject",((e,[t,o,s])=>{e.return=kn(this,t,o,s)})),this.on("canEditAt",(e=>{const t=!this.document.isReadOnly;e.return=t,t||e.stop()}))}change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new kr,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){a.Bb.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{e?"function"==typeof e?(t=e,e=new kr):e instanceof kr||(e=new kr(e)):e=new kr,this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){a.Bb.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,o,...s){const i=Tn(t,o);return this.fire("insertContent",[e,i,o,...s])}insertObject(e,t,o,s,...i){const r=Tn(t,o);return this.fire("insertObject",[e,r,s,s,...i])}deleteContent(e,t){dn(this,e,t)}modifySelection(e,t){!function(e,t,o={}){const s=e.schema,i="backward"!=o.direction,r=o.unit?o.unit:"character",n=!!o.treatEmojiAsSingleUnit,a=t.focus,c=new Fo({boundaries:yn(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),l={walker:c,schema:s,isForward:i,unit:r,treatEmojiAsSingleUnit:n};let d;for(;d=c.next();){if(d.done)return;const o=vn(l,d.value);if(o)return void(t instanceof vs?e.change((e=>{e.setSelectionFocus(o)})):t.setFocus(o))}}(this,e,t)}getSelectedContent(e){return function(e,t){return e.change((e=>{const o=e.createDocumentFragment(),s=t.getFirstRange();if(!s||s.isCollapsed)return o;const i=s.start.root,r=s.start.getCommonPath(s.end),n=i.getNodeByPath(r);let a;a=s.start.parent==s.end.parent?s:e.createRange(e.createPositionAt(n,s.start.path[r.length]),e.createPositionAt(n,s.end.path[r.length]+1));const c=a.end.offset-a.start.offset;for(const t of a.getItems({shallow:!0}))t.is("$textProxy")?e.appendText(t.data,t.getAttributes(),o):e.append(e.cloneElement(t,!0),o);if(a!=s){const t=s._getTransformedByMove(a.start,e.createPositionAt(o,0),c)[0],i=e.createRange(e.createPositionAt(o,0),t.start);mn(e.createRange(t.end,e.createPositionAt(o,"end")),e),mn(i,e)}return o}))}(this,e)}hasContent(e,t={}){const o=e instanceof Go?e:Go._createIn(e);if(o.isCollapsed)return!1;const{ignoreWhitespaces:s=!1,ignoreMarkers:i=!1}=t;if(!i)for(const e of this.markers.getMarkersIntersectingRange(o))if(e.affectsData)return!0;for(const e of o.getItems())if(this.schema.isContent(e)){if(!e.is("$textProxy"))return!0;if(!s)return!0;if(-1!==e.data.search(/\S/))return!0}return!1}canEditAt(e){const t=Tn(e);return this.fire("canEditAt",[t])}createPositionFromPath(e,t,o){return new Zo(e,t,o)}createPositionAt(e,t){return Zo._createAt(e,t)}createPositionAfter(e){return Zo._createAfter(e)}createPositionBefore(e){return Zo._createBefore(e)}createRange(e,t){return new Go(e,t)}createRangeIn(e){return Go._createIn(e)}createRangeOn(e){return Go._createOn(e)}createSelection(...e){return new ds(...e)}createBatch(e){return new kr(e)}createOperationFromJSON(e){return ir.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const e=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const t=this._pendingChanges[0].batch;this._currentWriter=new sn(this,t);const o=this._pendingChanges[0].callback(this._currentWriter);e.push(o),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return e}}function Tn(e,t){if(e)return e instanceof ds||e instanceof vs?e:e instanceof Bo?t||0===t?new ds(e,t):e.is("rootElement")?new ds(e,"in"):new ds(e,"on"):new ds(e)}class En extends Ht{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}class An extends Ht{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}class Sn{constructor(e){this.document=e}createDocumentFragment(e){return new it(this.document,e)}createElement(e,t,o){return new Ee(this.document,e,t,o)}createText(e){return new y(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,o){return o._insertChild(e,t)}removeChildren(e,t,o){return o._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const o=e.parent;if(o){const s=o.getChildIndex(e);return this.removeChildren(s,1,o),this.insertChild(s,t,o),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const o=t.getChildIndex(e);this.remove(e),this.insertChild(o,e.getChildren(),t)}}rename(e,t){const o=new Ee(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,o)?o:null}setAttribute(e,t,o){o._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,o){(0,P.Z)(e)&&void 0===o?t._setStyle(e):o._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,o){o._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return Be._createAt(e,t)}createPositionAfter(e){return Be._createAfter(e)}createPositionBefore(e){return Be._createBefore(e)}createRange(e,t){return new Ie(e,t)}createRangeOn(e){return Ie._createOn(e)}createRangeIn(e){return Ie._createIn(e)}createSelection(...e){return new Ne(...e)}}const On=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Rn=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,jn=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Mn=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,Vn=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Bn=/\w+\((?:[^()]|\([^()]*\))*\)|\S+/gi,In=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function Dn(e){return e.startsWith("#")?On.test(e):e.startsWith("rgb")?Rn.test(e)||jn.test(e):e.startsWith("hsl")?Mn.test(e)||Vn.test(e):In.has(e.toLowerCase())}const Nn=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function zn(e){return Nn.includes(e)}const Fn=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function Ln(e){return Fn.test(e)}const Zn=/^[+-]?[0-9]*([.][0-9]+)?%$/;function Wn(e){return Zn.test(e)}const $n=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function qn(e){return $n.includes(e)}const Hn=["center","top","bottom","left","right"];function Un(e){return Hn.includes(e)}const Gn=["fixed","scroll","local"];function Kn(e){return Gn.includes(e)}const Jn=/^url\(/;function Yn(e){return Jn.test(e)}function Xn(e=""){if(""===e)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const t=oa(e),o=t[0],s=t[2]||o,i=t[1]||o;return{top:o,bottom:s,right:i,left:t[3]||i}}function Qn(e){return t=>{const{top:o,right:s,bottom:i,left:r}=t,n=[];return[o,s,r,i].every((e=>!!e))?n.push([e,ea(t)]):(o&&n.push([e+"-top",o]),s&&n.push([e+"-right",s]),i&&n.push([e+"-bottom",i]),r&&n.push([e+"-left",r])),n}}function ea({top:e,right:t,bottom:o,left:s}){const i=[];return s!==t?i.push(e,t,o,s):o!==e?i.push(e,t,o):t!==e?i.push(e,t):i.push(e),i.join(" ")}function ta(e){return t=>({path:e,value:Xn(t)})}function oa(e){const t=e.matchAll(Bn);return Array.from(t).map((e=>e[0]))}function sa(e){e.setNormalizer("background",(e=>{const t={},o=oa(e);for(const e of o)qn(e)?(t.repeat=t.repeat||[],t.repeat.push(e)):Un(e)?(t.position=t.position||[],t.position.push(e)):Kn(e)?t.attachment=e:Dn(e)?t.color=e:Yn(e)&&(t.image=e);return{path:"background",value:t}})),e.setNormalizer("background-color",(e=>({path:"background.color",value:e}))),e.setReducer("background",(e=>{const t=[];return t.push(["background-color",e.color]),t})),e.setStyleRelation("background",["background-color"])}function ia(e){e.setNormalizer("border",(e=>{const{color:t,style:o,width:s}=ha(e);return{path:"border",value:{color:Xn(t),style:Xn(o),width:Xn(s)}}})),e.setNormalizer("border-top",ra("top")),e.setNormalizer("border-right",ra("right")),e.setNormalizer("border-bottom",ra("bottom")),e.setNormalizer("border-left",ra("left")),e.setNormalizer("border-color",na("color")),e.setNormalizer("border-width",na("width")),e.setNormalizer("border-style",na("style")),e.setNormalizer("border-top-color",ca("color","top")),e.setNormalizer("border-top-style",ca("style","top")),e.setNormalizer("border-top-width",ca("width","top")),e.setNormalizer("border-right-color",ca("color","right")),e.setNormalizer("border-right-style",ca("style","right")),e.setNormalizer("border-right-width",ca("width","right")),e.setNormalizer("border-bottom-color",ca("color","bottom")),e.setNormalizer("border-bottom-style",ca("style","bottom")),e.setNormalizer("border-bottom-width",ca("width","bottom")),e.setNormalizer("border-left-color",ca("color","left")),e.setNormalizer("border-left-style",ca("style","left")),e.setNormalizer("border-left-width",ca("width","left")),e.setExtractor("border-top",la("top")),e.setExtractor("border-right",la("right")),e.setExtractor("border-bottom",la("bottom")),e.setExtractor("border-left",la("left")),e.setExtractor("border-top-color","border.color.top"),e.setExtractor("border-right-color","border.color.right"),e.setExtractor("border-bottom-color","border.color.bottom"),e.setExtractor("border-left-color","border.color.left"),e.setExtractor("border-top-width","border.width.top"),e.setExtractor("border-right-width","border.width.right"),e.setExtractor("border-bottom-width","border.width.bottom"),e.setExtractor("border-left-width","border.width.left"),e.setExtractor("border-top-style","border.style.top"),e.setExtractor("border-right-style","border.style.right"),e.setExtractor("border-bottom-style","border.style.bottom"),e.setExtractor("border-left-style","border.style.left"),e.setReducer("border-color",Qn("border-color")),e.setReducer("border-style",Qn("border-style")),e.setReducer("border-width",Qn("border-width")),e.setReducer("border-top",ua("top")),e.setReducer("border-right",ua("right")),e.setReducer("border-bottom",ua("bottom")),e.setReducer("border-left",ua("left")),e.setReducer("border",function(){return t=>{const o=da(t,"top"),s=da(t,"right"),i=da(t,"bottom"),r=da(t,"left"),n=[o,s,i,r],a={width:e(n,"width"),style:e(n,"style"),color:e(n,"color")},c=pa(a,"all");if(c.length)return c;return[...Object.entries(a).reduce(((e,[t,o])=>(o&&(e.push([`border-${t}`,o]),n.forEach((e=>delete e[t]))),e)),[]),...pa(o,"top"),...pa(s,"right"),...pa(i,"bottom"),...pa(r,"left")]};function e(e,t){return e.map((e=>e[t])).reduce(((e,t)=>e==t?e:null))}}()),e.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),e.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),e.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),e.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),e.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),e.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),e.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),e.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function ra(e){return t=>{const{color:o,style:s,width:i}=ha(t),r={};return void 0!==o&&(r.color={[e]:o}),void 0!==s&&(r.style={[e]:s}),void 0!==i&&(r.width={[e]:i}),{path:"border",value:r}}}function na(e){return t=>({path:"border",value:aa(t,e)})}function aa(e,t){return{[t]:Xn(e)}}function ca(e,t){return o=>({path:"border",value:{[e]:{[t]:o}}})}function la(e){return(t,o)=>{if(o.border)return da(o.border,e)}}function da(e,t){const o={};return e.width&&e.width[t]&&(o.width=e.width[t]),e.style&&e.style[t]&&(o.style=e.style[t]),e.color&&e.color[t]&&(o.color=e.color[t]),o}function ha(e){const t={},o=oa(e);for(const e of o)Ln(e)||/thin|medium|thick/.test(e)?t.width=e:zn(e)?t.style=e:t.color=e;return t}function ua(e){return t=>pa(t,e)}function pa(e,t){const o=[];if(e&&e.width&&o.push("width"),e&&e.style&&o.push("style"),e&&e.color&&o.push("color"),3==o.length){const s=o.map((t=>e[t])).join(" ");return["all"==t?["border",s]:[`border-${t}`,s]]}return"all"==t?[]:o.map((o=>[`border-${t}-${o}`,e[o]]))}function fa(e){e.setNormalizer("margin",ta("margin")),e.setNormalizer("margin-top",(e=>({path:"margin.top",value:e}))),e.setNormalizer("margin-right",(e=>({path:"margin.right",value:e}))),e.setNormalizer("margin-bottom",(e=>({path:"margin.bottom",value:e}))),e.setNormalizer("margin-left",(e=>({path:"margin.left",value:e}))),e.setReducer("margin",Qn("margin")),e.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function ga(e){e.setNormalizer("padding",ta("padding")),e.setNormalizer("padding-top",(e=>({path:"padding.top",value:e}))),e.setNormalizer("padding-right",(e=>({path:"padding.right",value:e}))),e.setNormalizer("padding-bottom",(e=>({path:"padding.bottom",value:e}))),e.setNormalizer("padding-left",(e=>({path:"padding.left",value:e}))),e.setReducer("padding",Qn("padding")),e.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}},"./packages/ckeditor5-enter/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{C:()=>h,G:()=>g});var s=o("./packages/ckeditor5-core/src/index.ts");function*i(e,t){for(const o of t)o&&e.getAttributeProperties(o[0]).copyOnEnter&&(yield o)}class r extends s.mY{execute(){this.editor.model.change((e=>{this.enterBlock(e),this.fire("afterExecute",{writer:e})}))}enterBlock(e){const t=this.editor.model,o=t.document.selection,s=t.schema,r=o.isCollapsed,a=o.getFirstRange(),c=a.start.parent,l=a.end.parent;if(s.isLimit(c)||s.isLimit(l))return r||c!=l||t.deleteContent(o),!1;if(r){const t=i(e.model.schema,o.getAttributes());return n(e,a.start),e.setSelectionAttribute(t),!0}{const s=!(a.start.isAtStart&&a.end.isAtEnd),i=c==l;if(t.deleteContent(o,{leaveUnmerged:s}),s){if(i)return n(e,o.focus),!0;e.setSelection(l,0)}}return!1}}function n(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var a=o("./packages/ckeditor5-engine/src/index.ts"),c=o("./packages/ckeditor5-utils/src/index.ts");const l={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class d extends a.Qj{constructor(e){super(e);const t=this.document;let o=!1;t.on("keydown",((e,t)=>{o=t.shiftKey})),t.on("beforeinput",((s,i)=>{if(!this.isEnabled)return;let r=i.inputType;c.OB.isSafari&&o&&"insertParagraph"==r&&(r="insertLineBreak");const n=i.domEvent,d=l[r];if(!d)return;const h=new a.r7(t,"enter",i.targetRanges[0]);t.fire(h,new a.dK(e,n,{isSoft:d.isSoft})),h.stop.called&&s.stop()}))}observe(){}stopObserving(){}}class h extends s.Sy{static get pluginName(){return"Enter"}init(){const e=this.editor,t=e.editing.view,o=t.document;t.addObserver(d),e.commands.add("enter",new r(e)),this.listenTo(o,"enter",((s,i)=>{o.isComposing||i.preventDefault(),i.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}class u extends s.mY{execute(){const e=this.editor.model,t=e.document;e.change((o=>{!function(e,t,o){const s=o.isCollapsed,r=o.getFirstRange(),n=r.start.parent,a=r.end.parent,c=n==a;if(s){const s=i(e.schema,o.getAttributes());p(e,t,r.end),t.removeSelectionAttribute(o.getAttributeKeys()),t.setSelectionAttribute(s)}else{const s=!(r.start.isAtStart&&r.end.isAtEnd);e.deleteContent(o,{leaveUnmerged:s}),c?p(e,t,o.focus):s&&t.setSelection(a,0)}}(e,o,t.selection),this.fire("afterExecute",{writer:o})}))}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;const o=t.anchor;if(!o||!e.checkChild(o,"softBreak"))return!1;const s=t.getFirstRange(),i=s.start.parent,r=s.end.parent;if((f(i,e)||f(r,e))&&i!==r)return!1;return!0}(e.schema,t.selection)}}function p(e,t,o){const s=t.createElement("softBreak");e.insertContent(s,o),t.setSelection(s,"after")}function f(e,t){return!e.is("rootElement")&&(t.isLimit(e)||f(e.parent,t))}class g extends s.Sy{static get pluginName(){return"ShiftEnter"}init(){const e=this.editor,t=e.model.schema,o=e.conversion,s=e.editing.view,i=s.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),o.for("upcast").elementToElement({model:"softBreak",view:"br"}),o.for("downcast").elementToElement({model:"softBreak",view:(e,{writer:t})=>t.createEmptyElement("br")}),s.addObserver(d),e.commands.add("shiftEnter",new u(e)),this.listenTo(i,"enter",((t,o)=>{i.isComposing||o.preventDefault(),o.isSoft&&(e.execute("shiftEnter"),s.scrollToTheSelection())}),{priority:"low"})}}},"./packages/ckeditor5-typing/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{HG:()=>k,II:()=>d,BT:()=>n,cL:()=>V,uL:()=>y,mh:()=>x,Mq:()=>w,VD:()=>z,r9:()=>F,Up:()=>v,Im:()=>L});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class r{constructor(e,t=20){this._batch=null,this.model=e,this._size=0,this.limit=t,this._isLocked=!1,this._changeCallback=(e,t)=>{t.isLocal&&t.isUndoable&&t!==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(e){this._size+=e,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(e=!1){this.isLocked&&!e||(this._batch=null,this._size=0)}}class n extends s.mY{constructor(e,t){super(e),this._buffer=new r(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,o=t.document,s=e.text||"",i=s.length;let r=o.selection;if(e.selection?r=e.selection:e.range&&(r=t.createSelection(e.range)),!t.canEditAt(r))return;const n=e.resultRange;t.enqueueChange(this._buffer.batch,(e=>{this._buffer.lock();const a=Array.from(o.selection.getAttributes());t.deleteContent(r),s&&t.insertContent(e.createText(s,a),r),n?e.setSelection(n):r.is("documentSelection")||e.setSelection(r),this._buffer.unlock(),this._buffer.input(i)}))}}var a=o("./packages/ckeditor5-engine/src/index.ts");const c=["insertText","insertReplacementText"];class l extends a.Qj{constructor(e){super(e),this.focusObserver=e.getObserver(a.DX),i.OB.isAndroid&&c.push("insertCompositionText");const t=e.document;t.on("beforeinput",((o,s)=>{if(!this.isEnabled)return;const{data:r,targetRanges:n,inputType:l,domEvent:d}=s;if(!c.includes(l))return;this.focusObserver.flush();const h=new i.M3(t,"insertText");t.fire(h,new a.dK(e,d,{text:r,selection:e.createSelection(n)})),h.stop.called&&o.stop()})),t.on("compositionend",((o,{data:s,domEvent:r})=>{this.isEnabled&&!i.OB.isAndroid&&s&&t.fire("insertText",new a.dK(e,r,{text:s,selection:t.selection}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class d extends s.Sy{static get pluginName(){return"Input"}init(){const e=this.editor,t=e.model,o=e.editing.view,s=t.document.selection;o.addObserver(l);const r=new n(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",r),e.commands.add("input",r),this.listenTo(o.document,"insertText",((s,r)=>{o.document.isComposing||r.preventDefault();const{text:n,selection:a,resultRange:c}=r,l=Array.from(a.getRanges()).map((t=>e.editing.mapper.toModelRange(t)));let d=n;if(i.OB.isAndroid){const e=Array.from(l[0].getItems()).reduce(((e,t)=>e+(t.is("$textProxy")?t.data:"")),"");e&&(e.length<=d.length?d.startsWith(e)&&(d=d.substring(e.length),l[0].start=l[0].start.getShiftedBy(e.length)):e.startsWith(d)&&(l[0].start=l[0].start.getShiftedBy(d.length),d=""))}const h={text:d,selection:t.createSelection(l)};c&&(h.resultRange=e.editing.mapper.toModelRange(c)),e.execute("insertText",h),o.scrollToTheSelection()})),i.OB.isAndroid?this.listenTo(o.document,"keydown",((e,i)=>{!s.isCollapsed&&229==i.keyCode&&o.document.isComposing&&h(t,r)})):this.listenTo(o.document,"compositionstart",(()=>{s.isCollapsed||h(t,r)}))}}function h(e,t){if(!t.isEnabled)return;const o=t.buffer;o.lock(),e.enqueueChange(o.batch,(()=>{e.deleteContent(e.document.selection)})),o.unlock()}class u extends s.mY{constructor(e,t){super(e),this.direction=t,this._buffer=new r(e.model,e.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,o=t.document;t.enqueueChange(this._buffer.batch,(s=>{this._buffer.lock();const r=s.createSelection(e.selection||o.selection);if(!t.canEditAt(r))return;const n=e.sequence||1,a=r.isCollapsed;if(r.isCollapsed&&t.modifySelection(r,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(n))return void this._replaceEntireContentWithParagraph(s);if(this._shouldReplaceFirstBlockWithParagraph(r,n))return void this.editor.execute("paragraph",{selection:r});if(r.isCollapsed)return;let c=0;r.getFirstRange().getMinimalFlatRanges().forEach((e=>{c+=(0,i.QX)(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),t.deleteContent(r,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(c),s.setSelection(r),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,o=t.document.selection,s=t.schema.getLimitElement(o);if(!(o.isCollapsed&&o.containsEntireContent(s)))return!1;if(!t.schema.checkChild(s,"paragraph"))return!1;const i=s.getChild(0);return!i||!i.is("element","paragraph")}_replaceEntireContentWithParagraph(e){const t=this.editor.model,o=t.document.selection,s=t.schema.getLimitElement(o),i=e.createElement("paragraph");e.remove(e.createRangeIn(s)),e.insert(i,s),e.setSelection(i,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const o=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;const s=e.getFirstPosition(),i=o.schema.getLimitElement(s),r=i.getChild(0);return s.parent==r&&(!!e.containsEntireContent(r)&&(!!o.schema.checkChild(i,"paragraph")&&"paragraph"!=r.name))}}const p="word",f="selection",g="backward",m="forward",b={deleteContent:{unit:f,direction:g},deleteContentBackward:{unit:"codePoint",direction:g},deleteWordBackward:{unit:p,direction:g},deleteHardLineBackward:{unit:f,direction:g},deleteSoftLineBackward:{unit:f,direction:g},deleteContentForward:{unit:"character",direction:m},deleteWordForward:{unit:p,direction:m},deleteHardLineForward:{unit:f,direction:m},deleteSoftLineForward:{unit:f,direction:m}};class _ extends a.Qj{constructor(e){super(e);const t=e.document;let o=0;t.on("keydown",(()=>{o++})),t.on("keyup",(()=>{o=0})),t.on("beforeinput",((s,r)=>{if(!this.isEnabled)return;const{targetRanges:n,domEvent:c,inputType:l}=r,d=b[l];if(!d)return;const h={direction:d.direction,unit:d.unit,sequence:o};h.unit==f&&(h.selectionToRemove=e.createSelection(n[0])),"deleteContentBackward"===l&&(i.OB.isAndroid&&(h.sequence=1),function(e){if(1!=e.length||e[0].isCollapsed)return!1;const t=e[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let o=0;for(const{nextPosition:e}of t){if(e.parent.is("$text")){const t=e.parent.data,s=e.offset;if((0,i.to)(t,s)||(0,i.pp)(t,s)||(0,i.YK)(t,s))continue;o++}else o++;if(o>1)return!0}return!1}(n)&&(h.unit=f,h.selectionToRemove=e.createSelection(n)));const u=new a.r7(t,"delete",n[0]);t.fire(u,new a.dK(e,c,h)),u.stop.called&&s.stop()})),i.OB.isBlink&&function(e){const t=e.view,o=t.document;let s=null,r=!1;function n(e){return e==i.Do.backspace||e==i.Do.delete}function c(e){return e==i.Do.backspace?g:m}o.on("keydown",((e,{keyCode:t})=>{s=t,r=!1})),o.on("keyup",((i,{keyCode:l,domEvent:d})=>{const h=o.selection,u=e.isEnabled&&l==s&&n(l)&&!h.isCollapsed&&!r;if(s=null,u){const e=h.getFirstRange(),s=new a.r7(o,"delete",e),i={unit:f,direction:c(l),selectionToRemove:h};o.fire(s,new a.dK(t,d,i))}})),o.on("beforeinput",((e,{inputType:t})=>{const o=b[t];n(s)&&o&&o.direction==c(s)&&(r=!0)}),{priority:"high"}),o.on("beforeinput",((e,{inputType:t,data:o})=>{s==i.Do.delete&&"insertText"==t&&""==o&&e.stop()}),{priority:"high"})}(this)}observe(){}stopObserving(){}}class k extends s.Sy{static get pluginName(){return"Delete"}init(){const e=this.editor,t=e.editing.view,o=t.document,s=e.model.document;t.addObserver(_),this._undoOnBackspace=!1;const i=new u(e,"forward");e.commands.add("deleteForward",i),e.commands.add("forwardDelete",i),e.commands.add("delete",new u(e,"backward")),this.listenTo(o,"delete",((s,i)=>{o.isComposing||i.preventDefault();const{direction:r,sequence:n,selectionToRemove:a,unit:c}=i,l="forward"===r?"deleteForward":"delete",d={sequence:n};if("selection"==c){const t=Array.from(a.getRanges()).map((t=>e.editing.mapper.toModelRange(t)));d.selection=e.model.createSelection(t)}else d.unit=c;e.execute(l,d),t.scrollToTheSelection()}),{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(o,"delete",((t,o)=>{this._undoOnBackspace&&"backward"==o.direction&&1==o.sequence&&"codePoint"==o.unit&&(this._undoOnBackspace=!1,e.execute("undo"),o.preventDefault(),t.stop())}),{context:"$capture"}),this.listenTo(s,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class w extends s.Sy{static get requires(){return[d,k]}static get pluginName(){return"Typing"}}function v(e,t){let o=e.start;return{text:Array.from(e.getWalker({ignoreElementEnd:!1})).reduce(((e,{item:s})=>s.is("$text")||s.is("$textProxy")?e+s.data:(o=t.createPositionAfter(s),"")),""),range:t.createRange(o,e.end)}}class y extends((0,i.Re)()){constructor(e,t){super(),this.model=e,this.testCallback=t,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))})),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",((t,{directChange:o})=>{o&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))})),this.listenTo(e,"change:data",((e,t)=>{!t.isUndo&&t.isLocal&&this._evaluateTextBeforeSelection("data",{batch:t})}))}_evaluateTextBeforeSelection(e,t={}){const o=this.model,s=o.document.selection,i=o.createRange(o.createPositionAt(s.focus.parent,0),s.focus),{text:r,range:n}=v(i,o),a=this.testCallback(r);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const o=Object.assign(t,{text:r,range:n});"object"==typeof a&&Object.assign(o,a),this.fire(`matched:${e}`,o)}}}class x extends s.Sy{constructor(e){super(e),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const e=this.editor,t=e.model,o=e.editing.view,s=e.locale,r=t.document.selection;this.listenTo(o.document,"arrowKey",((e,t)=>{if(!r.isCollapsed)return;if(t.shiftKey||t.altKey||t.ctrlKey)return;const o=t.keyCode==i.Do.arrowright,n=t.keyCode==i.Do.arrowleft;if(!o&&!n)return;const a=s.contentLanguageDirection;let c=!1;c="ltr"===a&&o||"rtl"===a&&n?this._handleForwardMovement(t):this._handleBackwardMovement(t),!0===c&&e.stop()}),{context:"$text",priority:"highest"}),this.listenTo(r,"change:range",((e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&S(r.getFirstPosition(),this.attributes)||this._restoreGravity())})),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,o=this.editor.model,s=o.document.selection,i=s.getFirstPosition();return!this._isGravityOverridden&&((!i.isAtStart||!P(s,t))&&(!!S(i,t)&&(E(e),P(s,t)&&S(i,t,!0)?T(o,t):this._overrideGravity(),!0)))}_handleBackwardMovement(e){const t=this.attributes,o=this.editor.model,s=o.document.selection,i=s.getFirstPosition();return this._isGravityOverridden?(E(e),this._restoreGravity(),S(i,t,!0)?T(o,t):C(o,t,i),!0):i.isAtStart?!!P(s,t)&&(E(e),C(o,t,i),!0):!P(s,t)&&S(i,t,!0)?(E(e),C(o,t,i),!0):!!A(i,t)&&(i.isAtEnd&&!P(s,t)&&S(i,t)?(E(e),C(o,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const e=this.editor,t=e.model,o=t.document.selection,s=e.editing.view.document;e.editing.view.addObserver(a.dM);let i=!1;this.listenTo(s,"mousedown",(()=>{i=!0})),this.listenTo(s,"selectionChange",(()=>{const e=this.attributes;if(!i)return;if(i=!1,!o.isCollapsed)return;if(!P(o,e))return;const s=o.getFirstPosition();S(s,e)&&(s.isAtStart||S(s,e,!0)?T(t,e):this._isGravityOverridden||this._overrideGravity())}))}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection,o=this.attributes;this.listenTo(e,"insertContent",(()=>{const s=t.getFirstPosition();P(t,o)&&S(s,o)&&T(e,o)}),{priority:"low"})}_handleDeleteContentAfterNode(){const e=this.editor,t=e.model,o=t.document.selection,s=e.editing.view;let i=!1,r=!1;this.listenTo(s.document,"delete",((e,t)=>{i="backward"===t.direction}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{if(!i)return;const e=o.getFirstPosition();r=P(o,this.attributes)&&!A(e,this.attributes)}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{i&&(i=!1,r||e.model.enqueueChange((()=>{const e=o.getFirstPosition();P(o,this.attributes)&&S(e,this.attributes)&&(e.isAtStart||S(e,this.attributes,!0)?T(t,this.attributes):this._isGravityOverridden||this._overrideGravity())})))}),{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((e=>e.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function P(e,t){for(const o of t)if(e.hasAttribute(o))return!0;return!1}function C(e,t,o){const s=o.nodeBefore;e.change((o=>{if(s){const t=[],i=e.schema.isObject(s)&&e.schema.isInline(s);for(const[o,r]of s.getAttributes())!e.schema.checkAttribute("$text",o)||i&&!1===e.schema.getAttributeProperties(o).copyFromObject||t.push([o,r]);o.setSelectionAttribute(t)}else o.removeSelectionAttribute(t)}))}function T(e,t){e.change((e=>{e.removeSelectionAttribute(t)}))}function E(e){e.preventDefault()}function A(e,t){return S(e.getShiftedBy(-1),t)}function S(e,t,o=!1){const{nodeBefore:s,nodeAfter:i}=e;for(const e of t){const t=s?s.getAttribute(e):void 0,r=i?i.getAttribute(e):void 0;if((!o||void 0!==t&&void 0!==r)&&r!==t)return!0}return!1}var O=o("./node_modules/lodash-es/escapeRegExp.js");const R={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:N('"'),to:[null,"“",null,"â€"]},quotesSecondary:{from:N("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:N("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:N('"'),to:[null,"“",null,"â€"]},quotesPrimaryPl:{from:N('"'),to:[null,"„",null,"â€"]},quotesSecondaryPl:{from:N("'"),to:[null,"‚",null,"’"]}},j={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},M=["symbols","mathematical","typography","quotes"];class V extends s.Sy{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(e){super(e),e.config.define("typing",{transformations:{include:M}})}init(){const e=this.editor.model.document.selection;e.on("change:range",(()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}_enableTransformationWatchers(){const e=this.editor,t=e.model,o=e.plugins.get("Delete"),s=function(e){const t=e.extra||[],o=e.remove||[],s=e=>!o.includes(e);return function(e){const t=new Set;for(const o of e)if("string"==typeof o&&j[o])for(const e of j[o])t.add(e);else t.add(o);return Array.from(t)}(e.include.concat(t).filter(s)).filter(s).map((e=>"string"==typeof e&&R[e]?R[e]:e)).filter((e=>"object"==typeof e)).map((e=>({from:B(e.from),to:I(e.to)})))}(e.config.get("typing.transformations")),i=new y(e.model,(e=>{for(const t of s){if(t.from.test(e))return{normalizedTransformation:t}}}));i.on("matched:data",((e,s)=>{if(!s.batch.isTyping)return;const{from:i,to:r}=s.normalizedTransformation,n=i.exec(s.text),a=r(n.slice(1)),c=s.range;let l=n.index;t.enqueueChange((e=>{for(let o=1;o<n.length;o++){const s=n[o],i=a[o-1];if(null==i){l+=s.length;continue}const r=c.start.getShiftedBy(l),d=t.createRange(r,r.getShiftedBy(s.length)),h=D(r);t.insertContent(e.createText(i,h),d),l+=i.length}t.enqueueChange((()=>{o.requestUndoOnBackspace()}))}))})),i.bind("isEnabled").to(this)}}function B(e){return"string"==typeof e?new RegExp(`(${(0,O.Z)(e)})$`):e}function I(e){return"string"==typeof e?()=>[e]:e instanceof Array?()=>e:e}function D(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function N(e){return new RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function z(e,t,o,s){return s.createRange(F(e,t,o,!0,s),F(e,t,o,!1,s))}function F(e,t,o,s,i){let r=e.textNode||(s?e.nodeBefore:e.nodeAfter),n=null;for(;r&&r.getAttribute(t)==o;)n=r,r=s?r.previousSibling:r.nextSibling;return n?i.createPositionAt(n,s?"before":"after"):e}function L(e,t,o,s){const i=e.editing.view,r=new Set;i.document.registerPostFixer((i=>{const n=e.model.document.selection;let a=!1;if(n.hasAttribute(t)){const c=z(n.getFirstPosition(),t,n.getAttribute(t),e.model),l=e.editing.mapper.toViewRange(c);for(const e of l.getItems())e.is("element",o)&&!e.hasClass(s)&&(i.addClass(s,e),r.add(e),a=!0)}return a})),e.conversion.for("editingDowncast").add((e=>{function t(){i.change((e=>{for(const t of r.values())e.removeClass(s,t),r.delete(t)}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}},"./packages/ckeditor5-ui/src/index.ts":(e,t,o)=>{"use strict";function s({emitter:e,activator:t,callback:o,contextElements:s}){e.listenTo(document,"mousedown",((e,i)=>{if(!t())return;const r="function"==typeof i.composedPath?i.composedPath():[],n="function"==typeof s?s():s;for(const e of n)if(e.contains(i.target)||r.includes(e))return;o()}))}function i(e){const t=e;t.set("_isCssTransitionsDisabled",!1),t.disableCssTransitions=()=>{t._isCssTransitionsDisabled=!0},t.enableCssTransitions=()=>{t._isCssTransitionsDisabled=!1},t.extendTemplate({attributes:{class:[t.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function r(e){return class extends e{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...e){super(...e),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function n({view:e}){e.listenTo(e.element,"submit",((t,o)=>{o.preventDefault(),e.fire("submit")}),{useCapture:!0})}function a({keystrokeHandler:e,focusTracker:t,gridItems:o,numberOfColumns:s,uiLanguageDirection:i}){const r="number"==typeof s?()=>s:s;function n(e){return s=>{const i=o.find((e=>e.element===t.focusedElement)),r=o.getIndex(i),n=e(r,o);o.get(n).focus(),s.stopPropagation(),s.preventDefault()}}function a(e,t){return e===t-1?0:e+1}function c(e,t){return 0===e?t-1:e-1}e.set("arrowright",n(((e,t)=>"rtl"===i?c(e,t.length):a(e,t.length)))),e.set("arrowleft",n(((e,t)=>"rtl"===i?a(e,t.length):c(e,t.length)))),e.set("arrowup",n(((e,t)=>{let o=e-r();return o<0&&(o=e+r()*Math.floor(t.length/r()),o>t.length-1&&(o-=r())),o}))),e.set("arrowdown",n(((e,t)=>{let o=e+r();return o>t.length-1&&(o=e%r()),o})))}o.d(t,{cH:()=>si,no:()=>Io,Jf:()=>vi,ee:()=>Ei,BK:()=>N,py:()=>ws,UR:()=>W,r5:()=>H,p2:()=>mi,J6:()=>oe,J2:()=>eo,MI:()=>wo,_9:()=>Q,_Y:()=>vo,WB:()=>Bs,RX:()=>r,J0:()=>je,G2:()=>Te,_n:()=>Oe,S8:()=>gs,fF:()=>ks,LR:()=>ri(),I0:()=>Me,Gp:()=>Cs,yd:()=>pi,mO:()=>Z,VY:()=>Ts,r1:()=>ys,Xs:()=>ve,pq:()=>we,Em:()=>ke,Dn:()=>ue,KP:()=>ge,YK:()=>tt,dn:()=>Qe,Bv:()=>it,Hn:()=>Ss,P_:()=>Es,$W:()=>Ws,ZU:()=>Qs,RO:()=>ki,Rm:()=>at,lp:()=>Ls,BM:()=>K,YS:()=>b,nC:()=>Pe,qR:()=>Ie,$y:()=>Be,jB:()=>Ke,gE:()=>Wo,G7:()=>f,vX:()=>l,IJ:()=>a,Pm:()=>gt,up:()=>pt,eC:()=>s,t9:()=>ut,FH:()=>yt,sh:()=>wt,R:()=>kt,s$:()=>vt,Mh:()=>bt,k6:()=>J,ci:()=>Ai,fe:()=>i,S1:()=>Y,jY:()=>X,iw:()=>We,GI:()=>n});var c=o("./packages/ckeditor5-utils/src/index.ts");class l extends c.FE{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",((e,t,o)=>{this._renderViewIntoCollectionParent(t,o)})),this.on("remove",((e,t)=>{t.element&&this._parentElement&&t.element.remove()})),this._parentElement=null}destroy(){this.map((e=>e.destroy()))}setParent(e){this._parentElement=e;for(const e of this)this._renderViewIntoCollectionParent(e)}delegate(...e){if(!e.length||!e.every((e=>"string"==typeof e)))throw new c.Bb("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const o of this)for(const s of e)o.delegate(s).to(t);this.on("add",((o,s)=>{for(const o of e)s.delegate(o).to(t)})),this.on("remove",((o,s)=>{for(const o of e)s.stopDelegating(o,t)}))}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}}var d=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),h=o.n(d),u=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/globals/globals.css"),p={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(u.Z,p);u.Z.locals;class f extends((0,c.Xu)((0,c.Re)())){constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new c.FE,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((t,o)=>{o.locale=e,o.t=e&&e.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=b.bind(this,this)}createCollection(e){const t=new l(e);return this._viewCollections.add(t),t}registerChild(e){(0,c.TW)(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){(0,c.TW)(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new b(e)}extendTemplate(e){b.extend(this.template,e)}render(){if(this.isRendered)throw new c.Bb("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((e=>e.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}var g=o("./node_modules/lodash-es/cloneDeepWith.js"),m=o("./node_modules/lodash-es/isObject.js");class b extends((0,c.ln)()){constructor(e){super(),Object.assign(this,E(T(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new c.Bb("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const o of t.children)M(o)?yield o:V(o)&&(yield*e(o))}(this)}static bind(e,t){return{to:(o,s)=>new k({eventNameOrFunction:o,attribute:o,observable:e,emitter:t,callback:s}),if:(o,s,i)=>new w({observable:e,emitter:t,attribute:o,valueIfTrue:s,callback:i})}}static extend(e,t){if(e._isRendered)throw new c.Bb("template-extend-render",[this,e]);R(e,E(T(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new c.Bb("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),v(this.text)?this._bindToObservable({schema:this.text,updater:x(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,o=e.revertData;for(const s in this.attributes){const i=t.getAttribute(s),r=this.attributes[s];o&&(o.attributes[s]=i);const n=I(r)?r[0].ns:null;if(v(r)){const a=I(r)?r[0].value:r;o&&D(s)&&a.unshift(i),this._bindToObservable({schema:a,updater:P(t,s,n),data:e})}else if("style"==s&&"string"!=typeof r[0])this._renderStyleAttribute(r[0],e);else{o&&i&&D(s)&&r.unshift(i);const e=r.map((e=>e&&e.value||e)).reduce(((e,t)=>e.concat(t)),[]).reduce(S,"");j(e)||t.setAttributeNS(n,s,e)}}}_renderStyleAttribute(e,t){const o=t.node;for(const s in e){const i=e[s];v(i)?this._bindToObservable({schema:[i],updater:C(o,s),data:t}):o.style[s]=i}}_renderElementChildren(e){const t=e.node,o=e.intoFragment?document.createDocumentFragment():t,s=e.isApplying;let i=0;for(const r of this.children)if(B(r)){if(!s){r.setParent(t);for(const e of r)o.appendChild(e.element)}}else if(M(r))s||(r.isRendered||r.render(),o.appendChild(r.element));else if((0,c.UG)(r))o.appendChild(r);else if(s){const t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),r._renderNode({intoFragment:!1,node:o.childNodes[i++],isApplying:!0,revertData:t})}else o.appendChild(r.render());e.intoFragment&&t.appendChild(o)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const o=this.eventListeners[t].map((o=>{const[s,i]=t.split("@");return o.activateDomEventListener(s,i,e)}));e.revertData&&e.revertData.bindings.push(o)}}_bindToObservable({schema:e,updater:t,data:o}){const s=o.revertData;y(e,t,o);const i=e.filter((e=>!j(e))).filter((e=>e.observable)).map((s=>s.activateAttributeListener(e,t,o)));s&&s.bindings.push(i)}_revertTemplateFromNode(e,t){for(const e of t.bindings)for(const t of e)t();if(t.text)return void(e.textContent=t.text);const o=e;for(const e in t.attributes){const s=t.attributes[e];null===s?o.removeAttribute(e):o.setAttribute(e,s)}for(let e=0;e<t.children.length;++e)this._revertTemplateFromNode(o.childNodes[e],t.children[e])}}class _{constructor(e){this.attribute=e.attribute,this.observable=e.observable,this.emitter=e.emitter,this.callback=e.callback}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,o){const s=()=>y(e,t,o);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,s),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,s)}}}class k extends _{constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,o){const s=(e,o)=>{t&&!o.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(o):this.observable.fire(this.eventNameOrFunction,o))};return this.emitter.listenTo(o.node,e,s),()=>{this.emitter.stopListening(o.node,e,s)}}}class w extends _{constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){return!j(super.getValue(e))&&(this.valueIfTrue||!0)}}function v(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(v):e instanceof _)}function y(e,t,{node:o}){const s=function(e,t){return e.map((e=>e instanceof _?e.getValue(t):e))}(e,o);let i;i=1==e.length&&e[0]instanceof w?s[0]:s.reduce(S,""),j(i)?t.remove():t.set(i)}function x(e){return{set(t){e.textContent=t},remove(){e.textContent=""}}}function P(e,t,o){return{set(s){e.setAttributeNS(o,t,s)},remove(){e.removeAttributeNS(o,t)}}}function C(e,t){return{set(o){e.style[t]=o},remove(){e.style[t]=null}}}function T(e){return(0,g.Z)(e,(e=>{if(e&&(e instanceof _||V(e)||M(e)||B(e)))return e}))}function E(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=(0,c.qo)(e.text)}(e),e.on&&(e.eventListeners=function(e){for(const t in e)A(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(const t in e)e[t].value&&(e[t].value=(0,c.qo)(e[t].value)),A(e,t)}(e.attributes);const t=[];if(e.children)if(B(e.children))t.push(e.children);else for(const o of e.children)V(o)||M(o)||(0,c.UG)(o)?t.push(o):t.push(new b(o));e.children=t}return e}function A(e,t){e[t]=(0,c.qo)(e[t])}function S(e,t){return j(t)?e:j(e)?t:`${e} ${t}`}function O(e,t){for(const o in t)e[o]?e[o].push(...t[o]):e[o]=t[o]}function R(e,t){if(t.attributes&&(e.attributes||(e.attributes={}),O(e.attributes,t.attributes)),t.eventListeners&&(e.eventListeners||(e.eventListeners={}),O(e.eventListeners,t.eventListeners)),t.text&&e.text.push(...t.text),t.children&&t.children.length){if(e.children.length!=t.children.length)throw new c.Bb("ui-template-extend-children-mismatch",e);let o=0;for(const s of t.children)R(e.children[o++],s)}}function j(e){return!e&&0!==e}function M(e){return e instanceof f}function V(e){return e instanceof b}function B(e){return e instanceof l}function I(e){return(0,m.Z)(e[0])&&e[0].ns}function D(e){return"class"==e||"style"==e}class N extends l{constructor(e,t=[]){super(t),this.locale=e}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new b({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=(0,c.az)(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}var z=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/icon/icon.css"),F={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(z.Z,F);z.Z.locals;const L=class extends f{constructor(){super();const e=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",e.if("isVisible","ck-hidden",(e=>!e)),"ck-reset_all-excluded",e.if("isColorInherited","ck-icon_inherit-color")],viewBox:e.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"),t=e.getAttribute("viewBox");t&&(this.viewBox=t);for(const{name:t,value:o}of Array.from(e.attributes))L.presentationalAttributeNames.includes(t)&&this.element.setAttribute(t,o);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((e=>{e.style.fill=this.fillColor}))}};let Z=L;Z.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 W extends f{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:e.to("style"),id:e.to("id")},children:[{text:e.to("text")}]})}}var $=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/button.css"),q={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()($.Z,q);$.Z.locals;class H extends f{constructor(e,t=new W){super(e),this._focusDelayed=null;const o=this.bindTemplate,s=(0,c.hQ)();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${s}`),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(t),this.iconView=new Z,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 i={tag:"button",attributes:{class:["ck","ck-button",o.to("class"),o.if("isEnabled","ck-disabled",(e=>!e)),o.if("isVisible","ck-hidden",(e=>!e)),o.to("isOn",(e=>e?"ck-on":"ck-off")),o.if("withText","ck-button_with-text"),o.if("withKeystroke","ck-button_with-keystroke")],role:o.to("role"),type:o.to("type",(e=>e||"button")),tabindex:o.to("tabindex"),"aria-label":o.to("ariaLabel"),"aria-labelledby":o.to("ariaLabelledBy"),"aria-disabled":o.if("isEnabled",!0,(e=>!e)),"aria-pressed":o.to("isOn",(e=>!!this.isToggleable&&String(!!e))),"data-cke-tooltip-text":o.to("_tooltipString"),"data-cke-tooltip-position":o.to("tooltipPosition")},children:this.children,on:{click:o.to((e=>{this.isEnabled?this.fire("execute"):e.preventDefault()}))}};c.OB.isSafari&&(this._focusDelayed||(this._focusDelayed=(0,c.gw)((()=>this.focus()),0)),i.on.mousedown=o.to((()=>{this._focusDelayed()})),i.on.mouseup=o.to((()=>{this._focusDelayed.cancel()}))),this.setTemplate(i)}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(e){return e.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),e}_createKeystrokeView(){const e=new f;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(e=>(0,c.XU)(e)))}]}),e}_getTooltipString(e,t,o){return e?"string"==typeof e?e:(o&&(o=(0,c.XU)(o)),e instanceof Function?e(t,o):`${t}${o?` (${o})`:""}`):""}}var U=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/button/switchbutton.css"),G={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(U.Z,G);U.Z.locals;class K extends H{constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const e=new f;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}function J(e,t){const o=e.t,s={Black:o("Black"),"Dim grey":o("Dim grey"),Grey:o("Grey"),"Light grey":o("Light grey"),White:o("White"),Red:o("Red"),Orange:o("Orange"),Yellow:o("Yellow"),"Light green":o("Light green"),Green:o("Green"),Aquamarine:o("Aquamarine"),Turquoise:o("Turquoise"),"Light blue":o("Light blue"),Blue:o("Blue"),Purple:o("Purple")};return t.map((e=>{const t=s[e.label];return t&&t!=e.label&&(e.label=t),e}))}function Y(e){return e.map(X).filter((e=>!!e))}function X(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:`${e.color}`}}}}class Q extends H{constructor(e){super(e);const t=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',this.extendTemplate({attributes:{style:{backgroundColor:t.to("color")},class:["ck","ck-color-grid__tile",t.if("hasBorder","ck-color-selector__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var ee=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorgrid/colorgrid.css"),te={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ee.Z,te);ee.Z.locals;class oe extends f{constructor(e,t){super(e);const o=t&&t.colorDefinitions?t.colorDefinitions:[];this.columns=t&&t.columns?t.columns:5;const s={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this.items.on("add",((e,t)=>{t.isOn=t.color===this.selectedColor})),o.forEach((e=>{const t=new Q;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",(()=>{this.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})})),this.items.add(t)})),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:s}}),this.on("change:selectedColor",((e,t,o)=>{for(const e of this.items)e.isOn=e.color===o}))}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",((e,t)=>{this.focusTracker.add(t.element)})),this.items.on("remove",((e,t)=>{this.focusTracker.remove(t.element)})),this.keystrokes.listenTo(this.element),a({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var se=o("./node_modules/color-name/index.js");const ie=function(e){var t,o,s=[],i=1;if("string"==typeof e)if(se[e])s=se[e].slice(),o="rgb";else if("transparent"===e)i=0,o="rgb",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var r=e.slice(1);i=1,(c=r.length)<=4?(s=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],4===c&&(i=parseInt(r[3]+r[3],16)/255)):(s=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],8===c&&(i=parseInt(r[6]+r[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),o="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var n=t[1],a="rgb"===n;o=r=n.replace(/a$/,"");var c="cmyk"===r?4:"gray"===r?1:3;s=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===c?parseFloat(e)/100:"rgb"===r?255*parseFloat(e)/100:parseFloat(e);if("h"===r[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==re[e])return re[e]}return parseFloat(e)})),n===r&&s.push(1),i=a||void 0===s[c]?1:s[c],s=s.slice(0,c)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(s=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),o=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(s=[e[0],e[1],e[2]],o="rgb",i=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(o="rgb",s=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(o="hsl",s=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(i/=100)):(o="rgb",s=[e>>>16,(65280&e)>>>8,255&e]);return{space:o,values:s,alpha:i}};var re={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};var ne=o("./node_modules/color-convert/index.js");function ae(e,t){if(!e)return"";const o=ce(e);if(!o)return"";if(o.space===t)return e;if(s=o,!Object.keys(ne).includes(s.space))return"";var s;const i=ne[o.space][t];if(!i)return"";return function(e,t){switch(t){case"hex":return`#${e}`;case"rgb":return`rgb( ${e[0]}, ${e[1]}, ${e[2]} )`;case"hsl":return`hsl( ${e[0]}, ${e[1]}%, ${e[2]}% )`;case"hwb":return`hwb( ${e[0]}, ${e[1]}, ${e[2]} )`;case"lab":return`lab( ${e[0]}% ${e[1]} ${e[2]} )`;case"lch":return`lch( ${e[0]}% ${e[1]} ${e[2]} )`;default:return""}}(i("hex"===o.space?o.hexValue:o.values),t)}function ce(e){if(e.startsWith("#")){const t=ie(e);return{space:"hex",values:t.values,hexValue:e,alpha:t.alpha}}const t=ie(e);return t.space?t:null}var le=o("./node_modules/lodash-es/debounce.js"),de=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/label/label.css"),he={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(de.Z,he);de.Z.locals;class ue extends f{constructor(e){super(e),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${(0,c.hQ)()}`;const t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}var pe=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css"),fe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(pe.Z,fe);pe.Z.locals;class ge extends f{constructor(e,t){super(e);const o=`ck-labeled-field-view-${(0,c.hQ)()}`,s=`ck-labeled-field-view-status-${(0,c.hQ)()}`;this.fieldView=t(this,o,s),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(o),this.statusView=this._createStatusView(s),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",((e,t)=>e||t));const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",i.to("class"),i.if("isEnabled","ck-disabled",(e=>!e)),i.if("isEmpty","ck-labeled-field-view_empty"),i.if("isFocused","ck-labeled-field-view_focused"),i.if("placeholder","ck-labeled-field-view_placeholder"),i.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(e){const t=new ue(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new f(this.locale),o=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",o.if("errorText","ck-labeled-field-view__status_error"),o.if("_statusText","ck-hidden",(e=>!e))],id:e,role:o.if("errorText","alert")},children:[{text:o.to("_statusText")}]}),t}focus(e){this.fieldView.focus(e)}}class me extends f{constructor(e){super(e),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 c.Rh,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById")},on:{input:t.to(((...e)=>{this.fire("input",...e),this._updateIsEmpty()})),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((e,t,o)=>{this._setDomElementValue(o),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=!this.element.value}_setDomElementValue(e){this.element.value=e||0===e?e:""}}var be=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/input/input.css"),_e={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(be.Z,_e);be.Z.locals;class ke extends me{constructor(e){super(e),this.set("inputMode","text");const t=this.bindTemplate;this.extendTemplate({attributes:{inputmode:t.to("inputMode")}})}}class we extends ke{constructor(e){super(e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class ve extends ke{constructor(e,{min:t,max:o,step:s}={}){super(e);const i=this.bindTemplate;this.set("min",t),this.set("max",o),this.set("step",s),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:i.to("min"),max:i.to("max"),step:i.to("step")}})}}var ye=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/textarea/textarea.css"),xe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ye.Z,xe);ye.Z.locals;class Pe extends me{constructor(e){super(e);const t=(0,c.nn)("px");this.set("minRows",2),this.set("maxRows",5),this.set("_height",null),this.set("resize","none"),this.on("change:minRows",this._validateMinMaxRows.bind(this)),this.on("change:maxRows",this._validateMinMaxRows.bind(this));const o=this.bindTemplate;this.template.tag="textarea",this.extendTemplate({attributes:{class:["ck-textarea"],style:{height:o.to("_height",(e=>e?t(e):null)),resize:o.to("resize")},rows:o.to("minRows")}})}render(){super.render(),this.on("input",(()=>{this._updateAutoGrowHeight(!0),this.fire("update")})),this.on("change:value",(()=>{c.global.window.requestAnimationFrame((()=>{(0,c.pn)(this.element)&&(this._updateAutoGrowHeight(),this.fire("update"))}))}))}reset(){super.reset(),this._updateAutoGrowHeight(),this.fire("update")}_updateAutoGrowHeight(e){const t=this.element,o=Ce(t,"1"),s=Ce(t,t.value),i=o.ownerDocument.defaultView.getComputedStyle(o),r=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),n=(0,c.lo)(o),a=parseFloat(i.lineHeight),l=n.top+n.bottom,d=new c.UL(o).height,h=Math.round((s.scrollHeight-r)/a),u=this.maxRows*a+r+l,p=1===h?d:this.minRows*a+r+l;this._height=Math.min(Math.max(Math.max(h,this.minRows)*a+r+l,p),u),e&&(t.scrollTop=t.scrollHeight),o.remove(),s.remove()}_validateMinMaxRows(){if(this.minRows>this.maxRows)throw new c.Bb("ui-textarea-view-min-rows-greater-than-max-rows",{textareaView:this,minRows:this.minRows,maxRows:this.maxRows})}}function Ce(e,t){const o=e.cloneNode();return o.style.position="absolute",o.style.top="-99999px",o.style.left="-99999px",o.style.height="auto",o.style.overflow="hidden",o.style.width=e.ownerDocument.defaultView.getComputedStyle(e).width,o.tabIndex=-1,o.rows=1,o.value=t,e.parentNode.insertBefore(o,e),o}class Te extends f{constructor(e){super(e);const t=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",t.to("position",(e=>`ck-dropdown__panel_${e}`)),t.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:t.to((e=>{"input"!==e.target.tagName.toLocaleLowerCase()&&e.preventDefault()}))}})}focus(){if(this.children.length){const e=this.children.first;"function"==typeof e.focus?e.focus():(0,c.KE)("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}var Ee=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/dropdown.css"),Ae={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Ee.Z,Ae);Ee.Z.locals;const Se=class extends f{constructor(e,t,o){super(e);const s=this.bindTemplate;this.buttonView=t,this.panelView=o,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 c.VD,this.focusTracker=new c.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",s.to("class"),s.if("isEnabled","ck-disabled",(e=>!e))],id:s.to("id"),"aria-describedby":s.to("ariaDescribedById")},children:[t,o]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":s.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,t,o)=>{if(o)if("auto"===this.panelPosition){const e=Se._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=e?e.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition})),this.keystrokes.listenTo(this.element);const e=(e,t)=>{this.isOpen&&(this.isOpen=!1,t())};this.keystrokes.set("arrowdown",((e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())})),this.keystrokes.set("arrowright",((e,t)=>{this.isOpen&&t()})),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:e,north:t,southEast:o,southWest:s,northEast:i,northWest:r,southMiddleEast:n,southMiddleWest:a,northMiddleEast:c,northMiddleWest:l}=Se.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[o,s,n,a,e,i,r,c,l,t]:[s,o,a,n,e,r,i,l,c,t]}};let Oe=Se;Oe.defaultPanelPositions={south:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/2,name:"s"}),southEast:e=>({top:e.bottom,left:e.left,name:"se"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:"sw"}),southMiddleEast:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/4,name:"sme"}),southMiddleWest:(e,t)=>({top:e.bottom,left:e.left-3*(t.width-e.width)/4,name:"smw"}),north:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:"n"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:"ne"}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}),northMiddleEast:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:"nme"}),northMiddleWest:(e,t)=>({top:e.top-t.height,left:e.left-3*(t.width-e.width)/4,name:"nmw"})},Oe._getOptimalPosition=c.xZ;const Re='<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 je extends H{constructor(e){super(e),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 e=new Z;return e.content=Re,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}class Me extends((0,c.ln)()){constructor(e){if(super(),this.focusables=e.focusables,this.focusTracker=e.focusTracker,this.keystrokeHandler=e.keystrokeHandler,this.actions=e.actions,e.actions&&e.keystrokeHandler)for(const t in e.actions){let o=e.actions[t];"string"==typeof o&&(o=[o]);for(const s of o)e.keystrokeHandler.set(s,((e,o)=>{this[t](),o()}))}this.on("forwardCycle",(()=>this.focusFirst()),{priority:"low"}),this.on("backwardCycle",(()=>this.focusLast()),{priority:"low"})}get first(){return this.focusables.find(Ve)||null}get last(){return this.focusables.filter(Ve).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((t,o)=>{const s=t.element===this.focusTracker.focusedElement;return s&&(e=o),s})),e)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const e=this.next;e&&this.focusables.getIndex(e)===this.current||(e===this.first?this.fire("forwardCycle"):this._focus(e,1))}focusPrevious(){const e=this.previous;e&&this.focusables.getIndex(e)===this.current||(e===this.last?this.fire("backwardCycle"):this._focus(e,-1))}_focus(e,t){e&&e.focus(t)}_getFocusableItem(e){const t=this.current,o=this.focusables.length;if(!o)return null;if(null===t)return this[1===e?"first":"last"];let s=(t+o+e)%o;do{const t=this.focusables.get(s);if(Ve(t))return t;s=(s+o+e)%o}while(s!==t);return null}}function Ve(e){return!(!("focus"in e)||!(0,c.pn)(e.element))}class Be extends f{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Ie extends f{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var De=Object.defineProperty,Ne=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Le=(e,t,o)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ze=(e,t)=>{for(var o in t||(t={}))ze.call(t,o)&&Le(e,o,t[o]);if(Ne)for(var o of Ne(t))Fe.call(t,o)&&Le(e,o,t[o]);return e};function We(e){if(Array.isArray(e))return{items:e,removeItems:[]};const t={items:[],removeItems:[]};return e?Ze(Ze({},t),e):t}var $e=o("./packages/ckeditor5-core/src/index.ts"),qe=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/toolbar.css"),He={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(qe.Z,He);qe.Z.locals;const{threeVerticalDots:Ue}=$e.icons,Ge={alignLeft:$e.icons.alignLeft,bold:$e.icons.bold,importExport:$e.icons.importExport,paragraph:$e.icons.paragraph,plus:$e.icons.plus,text:$e.icons.text,threeVerticalDots:$e.icons.threeVerticalDots,pilcrow:$e.icons.pilcrow,dragIndicator:$e.icons.dragIndicator};class Ke extends f{constructor(e,t){super(e);const o=this.bindTemplate,s=this.t;this.options=t||{},this.set("ariaLabel",s("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Je(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const i="rtl"===e.uiLanguageDirection;this._focusCycler=new Me({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[i?"arrowright":"arrowleft","arrowup"],focusNext:[i?"arrowleft":"arrowright","arrowdown"]}});const r=["ck","ck-toolbar",o.to("class"),o.if("isCompact","ck-toolbar_compact")];var n;this.options.shouldGroupWhenFull&&this.options.isFloating&&r.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:r,role:"toolbar","aria-label":o.to("ariaLabel"),style:{maxWidth:o.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(n=this,n.bindTemplate.to((e=>{e.target===n.element&&e.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new Xe(this):new Ye(this)}render(){super.render(),this.focusTracker.add(this.element);for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",((e,t)=>{this.focusTracker.add(t.element)})),this.items.on("remove",((e,t)=>{this.focusTracker.remove(t.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(e,t,o){this.items.addMany(this._buildItemsFromConfig(e,t,o))}_buildItemsFromConfig(e,t,o){const s=We(e),i=o||s.removeItems;return this._cleanItemsConfiguration(s.items,t,i).map((e=>(0,m.Z)(e)?this._createNestedToolbarDropdown(e,t,i):"|"===e?new Be:"-"===e?new Ie:t.create(e))).filter((e=>!!e))}_cleanItemsConfiguration(e,t,o){const s=e.filter(((e,s,i)=>"|"===e||-1===o.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||((0,c.KE)("toolbarview-line-break-ignored-when-grouping-items",i),!1):!(!(0,m.Z)(e)&&!t.has(e))||((0,c.KE)("toolbarview-item-unavailable",{item:e}),!1))));return this._cleanSeparatorsAndLineBreaks(s)}_cleanSeparatorsAndLineBreaks(e){const t=e=>"-"!==e&&"|"!==e,o=e.length,s=e.findIndex(t);if(-1===s)return[];const i=o-e.slice().reverse().findIndex(t);return e.slice(s,i).filter(((e,o,s)=>{if(t(e))return!0;return!(o>0&&s[o-1]===e)}))}_createNestedToolbarDropdown(e,t,o){let{label:s,icon:i,items:r,tooltip:n=!0,withText:a=!1}=e;if(r=this._cleanItemsConfiguration(r,t,o),!r.length)return null;const l=ut(this.locale);return s||(0,c.KE)("toolbarview-nested-toolbar-dropdown-missing-label",e),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:s,tooltip:n,withText:!!a}),!1!==i?l.buttonView.icon=Ge[i]||i||Ue:l.buttonView.withText=!0,pt(l,(()=>l.toolbarView._buildItemsFromConfig(r,t,o))),l}}class Je extends f{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Ye{constructor(e){const t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using((e=>e)),e.focusables.bindTo(e.items).using((e=>e)),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Xe{constructor(e){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),e.itemsView.children.bindTo(this.ungroupedItems).using((e=>e)),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),e.children.on("change",this._updateFocusCycleableItems.bind(this)),e.items.on("change",((e,t)=>{const o=t.index,s=Array.from(t.added);for(const e of t.removed)o>=this.ungroupedItems.length?this.groupedItems.remove(e):this.ungroupedItems.remove(e);for(let e=o;e<o+s.length;e++){const t=s[e-o];e>this.ungroupedItems.length?this.groupedItems.add(t,e-this.ungroupedItems.length):this.ungroupedItems.add(t,e)}this._updateGrouping()})),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!(0,c.pn)(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const e=this.groupedItems.length;let t;for(;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,o=new c.UL(e.lastChild),s=new c.UL(e);if(!this.cachedPadding){const o=c.global.window.getComputedStyle(e),s="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(o[s])}return"ltr"===t?o.right>s.right-this.cachedPadding:o.left<s.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new c.do(this.viewElement,(t=>{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Be),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 e=this.viewLocale,t=e.t,o=ut(e);return o.class="ck-toolbar__grouped-dropdown",o.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",pt(o,this.groupedItems),o.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:Ue}),o}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((e=>{this.viewFocusables.add(e)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class Qe extends f{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",t.if("isVisible","ck-hidden",(e=>!e))],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class et extends f{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class tt extends f{constructor(e,t=new ue){super(e);const o=this.bindTemplate,s=new it(e);this.set({label:"",isVisible:!0}),this.labelView=t,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,s]),s.set({role:"group",ariaLabelledBy:t.id}),s.focusTracker.destroy(),s.keystrokes.destroy(),this.items=s.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",o.if("isVisible","ck-hidden",(e=>!e))]},children:this.children})}focus(){if(this.items){const e=this.items.find((e=>!(e instanceof et)));e&&e.focus()}}}var ot=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/list/list.css"),st={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ot.Z,st);ot.Z.locals;class it extends f{constructor(e){super(e),this._listItemGroupToChangeListeners=new WeakMap;const t=this.bindTemplate;this.focusables=new l,this.items=this.createCollection(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this._focusCycler=new Me({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:t.to("role"),"aria-label":t.to("ariaLabel"),"aria-labelledby":t.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const e of this.items)e instanceof tt?this._registerFocusableItemsGroup(e):e instanceof Qe&&this._registerFocusableListItem(e);this.items.on("change",((e,t)=>{for(const e of t.removed)e instanceof tt?this._deregisterFocusableItemsGroup(e):this._deregisterFocusableListItem(e);for(const e of Array.from(t.added).reverse())e instanceof tt?this._registerFocusableItemsGroup(e,t.index):this._registerFocusableListItem(e,t.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(e,t){this.focusTracker.add(e.element),this.focusables.add(e,t)}_deregisterFocusableListItem(e){this.focusTracker.remove(e.element),this.focusables.remove(e)}_getOnGroupItemsChangeCallback(e){return(t,o)=>{for(const e of o.removed)this._deregisterFocusableListItem(e);for(const t of Array.from(o.added).reverse())this._registerFocusableListItem(t,this.items.getIndex(e)+o.index)}}_registerFocusableItemsGroup(e,t){Array.from(e.items).forEach(((e,o)=>{const s=void 0!==t?t+o:void 0;this._registerFocusableListItem(e,s)}));const o=this._getOnGroupItemsChangeCallback(e);this._listItemGroupToChangeListeners.set(e,o),e.items.on("change",o)}_deregisterFocusableItemsGroup(e){for(const t of e.items)this._deregisterFocusableListItem(t);e.items.off("change",this._listItemGroupToChangeListeners.get(e)),this._listItemGroupToChangeListeners.delete(e)}}var rt=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/splitbutton.css"),nt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(rt.Z,nt);rt.Z.locals;class at extends f{constructor(e,t){super(e);const o=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(t),this.arrowView=this._createArrowView(),this.keystrokes=new c.VD,this.focusTracker=new c.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",o.to("class"),o.if("isVisible","ck-hidden",(e=>!e)),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",((e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())})),this.keystrokes.set("arrowleft",((e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(e){const t=e||new H;return e||t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t}_createArrowView(){const e=new H,t=e.bindTemplate;return e.icon=Re,e.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":t.to("isOn"),"aria-haspopup":!0,"aria-expanded":t.to("isOn",(e=>String(e)))}}),e.bind("isEnabled").to(this),e.bind("label").to(this),e.bind("tooltip").to(this),e.delegate("execute").to(this,"open"),e}}var ct=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css"),lt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ct.Z,lt);ct.Z.locals;var dt=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/dropdown/listdropdown.css"),ht={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(dt.Z,ht);dt.Z.locals;function ut(e,t=je){const o="function"==typeof t?new t(e):t,i=new Te(e),r=new Oe(e,o,i);return o.bind("isEnabled").to(r),o instanceof at?o.arrowView.bind("isOn").to(r,"isOpen"):o.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",(()=>{s({emitter:e,activator:()=>e.isOpen,callback:()=>{e.isOpen=!1},contextElements:()=>[e.element,...e.focusTracker._elements]})}))})(e),function(e){e.on("execute",(t=>{t.source instanceof K||(e.isOpen=!1)}))}(e),function(e){e.focusTracker.on("change:isFocused",((t,o,s)=>{e.isOpen&&!s&&(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",((t,o)=>{e.isOpen&&(e.panelView.focus(),o())})),e.keystrokes.set("arrowup",((t,o)=>{e.isOpen&&(e.panelView.focusLast(),o())}))}(e),function(e){e.on("change:isOpen",((t,o,s)=>{if(s)return;const i=e.panelView.element;i&&i.contains(c.global.document.activeElement)&&e.buttonView.focus()}))}(e),function(e){e.on("change:isOpen",((t,o,s)=>{s&&e.panelView.focus()}),{priority:"low"})}(e)}(r),r}function pt(e,t,o={}){e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.isOpen?ft(e,t,o):e.once("change:isOpen",(()=>ft(e,t,o)),{priority:"highest"}),o.enableActiveItemFocusOnDropdownOpen&&bt(e,(()=>e.toolbarView.items.find((e=>e.isOn))))}function ft(e,t,o){const s=e.locale,i=s.t,r=e.toolbarView=new Ke(s),n="function"==typeof t?t():t;r.ariaLabel=o.ariaLabel||i("Dropdown toolbar"),o.maxWidth&&(r.maxWidth=o.maxWidth),o.class&&(r.class=o.class),o.isCompact&&(r.isCompact=o.isCompact),o.isVertical&&(r.isVertical=!0),n instanceof l?r.items.bindTo(n).using((e=>e)):r.items.addMany(n),e.panelView.children.add(r),r.items.delegate("execute").to(e)}function gt(e,t,o={}){e.isOpen?mt(e,t,o):e.once("change:isOpen",(()=>mt(e,t,o)),{priority:"highest"}),bt(e,(()=>e.listView.items.find((e=>e instanceof Qe&&e.children.first.isOn))))}function mt(e,t,o){const s=e.locale,i=e.listView=new it(s),r="function"==typeof t?t():t;i.ariaLabel=o.ariaLabel,i.role=o.role,_t(e,i.items,r,s),e.panelView.children.add(i),i.items.delegate("execute").to(e)}function bt(e,t){e.on("change:isOpen",(()=>{if(!e.isOpen)return;const o=t();o&&("function"==typeof o.focus?o.focus():(0,c.KE)("ui-dropdown-focus-child-on-open-child-missing-focus",{view:o}))}),{priority:c.tA.low-10})}function _t(e,t,o,s){t.bindTo(o).using((t=>{if("separator"===t.type)return new et(s);if("group"===t.type){const o=new tt(s);return o.set({label:t.label}),_t(e,o.items,t.items,s),o.items.delegate("execute").to(e),o}if("button"===t.type||"switchbutton"===t.type){const e=new Qe(s);let o;return"button"===t.type?(o=new H(s),o.extendTemplate({attributes:{"aria-checked":o.bindTemplate.to("isOn")}})):o=new K(s),o.bind(...Object.keys(t.model)).to(t.model),o.delegate("execute").to(e),e.children.add(o),e}return null}))}const kt=(e,t,o)=>{const s=new we(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),s.bind("hasError").to(e,"errorText",(e=>!!e)),s.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(s),s},wt=(e,t,o)=>{const s=new ve(e.locale);return s.set({id:t,ariaDescribedById:o,inputMode:"numeric"}),s.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),s.bind("hasError").to(e,"errorText",(e=>!!e)),s.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(s),s},vt=(e,t,o)=>{const s=new Pe(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),s.bind("hasError").to(e,"errorText",(e=>!!e)),s.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(s),s},yt=(e,t,o)=>{const s=ut(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isEnabled").to(e),s},xt=(e,t=0,o=1)=>e>o?o:e<t?t:e,Pt=(e,t=0,o=Math.pow(10,t))=>Math.round(o*e)/o,Ct=(Math.PI,e=>("#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Pt(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?Pt(parseInt(e.substring(6,8),16)/255,2):1})),Tt=({h:e,s:t,v:o,a:s})=>{const i=(200-t)*o/100;return{h:Pt(e),s:Pt(i>0&&i<200?t*o/100/(i<=100?i:200-i)*100:0),l:Pt(i/2),a:Pt(s,2)}},Et=e=>{const{h:t,s:o,l:s}=Tt(e);return`hsl(${t}, ${o}%, ${s}%)`},At=({h:e,s:t,v:o,a:s})=>{e=e/360*6,t/=100,o/=100;const i=Math.floor(e),r=o*(1-t),n=o*(1-(e-i)*t),a=o*(1-(1-e+i)*t),c=i%6;return{r:Pt(255*[o,n,r,r,a,o][c]),g:Pt(255*[a,o,o,n,r,r][c]),b:Pt(255*[r,r,a,o,o,n][c]),a:Pt(s,2)}},St=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},Ot=({r:e,g:t,b:o,a:s})=>{const i=s<1?St(Pt(255*s)):"";return"#"+St(e)+St(t)+St(o)+i},Rt=({r:e,g:t,b:o,a:s})=>{const i=Math.max(e,t,o),r=i-Math.min(e,t,o),n=r?i===e?(t-o)/r:i===t?2+(o-e)/r:4+(e-t)/r:0;return{h:Pt(60*(n<0?n+6:n)),s:Pt(i?r/i*100:0),v:Pt(i/255*100),a:s}},jt=(e,t)=>{if(e===t)return!0;for(const o in e)if(e[o]!==t[o])return!1;return!0},Mt={},Vt=e=>{let t=Mt[e];return t||(t=document.createElement("template"),t.innerHTML=e,Mt[e]=t),t},Bt=(e,t,o)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:o}))};let It=!1;const Dt=e=>"touches"in e,Nt=(e,t)=>{const o=Dt(t)?t.touches[0]:t,s=e.el.getBoundingClientRect();Bt(e.el,"move",e.getMove({x:xt((o.pageX-(s.left+window.pageXOffset))/s.width),y:xt((o.pageY-(s.top+window.pageYOffset))/s.height)}))};class zt{constructor(e,t,o,s){const i=Vt(`<div role="slider" tabindex="0" part="${t}" ${o}><div part="${t}-pointer"></div></div>`);e.appendChild(i.content.cloneNode(!0));const r=e.querySelector(`[part=${t}]`);r.addEventListener("mousedown",this),r.addEventListener("touchstart",this),r.addEventListener("keydown",this),this.el=r,this.xy=s,this.nodes=[r.firstChild,r]}set dragging(e){const t=e?document.addEventListener:document.removeEventListener;t(It?"touchmove":"mousemove",this),t(It?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!(e=>!(It&&!Dt(e)||(It||(It=Dt(e)),0)))(e)||!It&&0!=e.button)return;this.el.focus(),Nt(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),Nt(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((e,t)=>{const o=t.keyCode;o>40||e.xy&&o<37||o<33||(t.preventDefault(),Bt(e.el,"move",e.getMove({x:39===o?.01:37===o?-.01:34===o?.05:33===o?-.05:35===o?1:36===o?-1:0,y:40===o?.01:38===o?-.01:0},!0)))})(this,e)}}style(e){e.forEach(((e,t)=>{for(const o in e)this.nodes[t].style.setProperty(o,e[o])}))}}class Ft extends zt{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:e/360*100+"%",color:Et({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Pt(e)}`)}getMove(e,t){return{h:t?xt(this.h+360*e.x,0,360):360*e.x}}}class Lt extends zt{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:100-e.v+"%",left:`${e.s}%`,color:Et(e)},{"background-color":Et({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Pt(e.s)}%, Brightness ${Pt(e.v)}%`)}getMove(e,t){return{s:t?xt(this.hsva.s+100*e.x,0,100):100*e.x,v:t?xt(this.hsva.v-100*e.y,0,100):Math.round(100-100*e.y)}}}const Zt=Symbol("same"),Wt=Symbol("color"),$t=Symbol("hsva"),qt=Symbol("update"),Ht=Symbol("parts"),Ut=Symbol("css"),Gt=Symbol("sliders");class Kt extends HTMLElement{static get observedAttributes(){return["color"]}get[Ut](){return[':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)}',"[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}","[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}"]}get[Gt](){return[Lt,Ft]}get color(){return this[Wt]}set color(e){if(!this[Zt](e)){const t=this.colorModel.toHsva(e);this[qt](t),this[Wt]=e}}constructor(){super();const e=Vt(`<style>${this[Ut].join("")}</style>`),t=this.attachShadow({mode:"open"});t.appendChild(e.content.cloneNode(!0)),t.addEventListener("move",this),this[Ht]=this[Gt].map((e=>new e(t)))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,t,o){const s=this.colorModel.fromAttr(o);this[Zt](s)||(this.color=s)}handleEvent(e){const t=this[$t],o={...t,...e.detail};let s;this[qt](o),jt(o,t)||this[Zt](s=this.colorModel.fromHsva(o))||(this[Wt]=s,Bt(this,"color-changed",{value:s}))}[Zt](e){return this.color&&this.colorModel.equal(e,this.color)}[qt](e){this[$t]=e,this[Ht].forEach((t=>t.update(e)))}}const Jt={defaultColor:"#000",toHsva:e=>Rt(Ct(e)),fromHsva:({h:e,s:t,v:o})=>Ot(At({h:e,s:t,v:o,a:1})),equal:(e,t)=>e.toLowerCase()===t.toLowerCase()||jt(Ct(e),Ct(t)),fromAttr:e=>e};class Yt extends Kt{get colorModel(){return Jt}}customElements.define("hex-color-picker",class extends Yt{});var Xt=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorpicker/colorpicker.css"),Qt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Xt.Z,Qt);Xt.Z.locals;class eo extends f{constructor(e,t={}){super(e),this.set({color:"",_hexColor:""}),this.hexInputRow=this._createInputRow();const o=this.createCollection();t.hideInput||o.add(this.hexInputRow),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker"],tabindex:-1},children:o}),this._config=t,this._debounceColorPickerEvent=(0,le.Z)((e=>{this.set("color",e),this.fire("colorSelected",{color:this.color})}),150,{leading:!0}),this.on("set:color",((e,t,o)=>{e.return=ae(o,this._config.format||"hsl")})),this.on("change:color",(()=>{this._hexColor=to(this.color)})),this.on("change:_hexColor",(()=>{document.activeElement!==this.picker&&this.picker.setAttribute("color",this._hexColor),to(this.color)!=to(this._hexColor)&&(this.color=this._hexColor)}))}render(){if(super.render(),this.picker=c.global.document.createElement("hex-color-picker"),this.picker.setAttribute("class","hex-color-picker"),this.picker.setAttribute("tabindex","-1"),this._createSlidersView(),this.element){this.hexInputRow.element?this.element.insertBefore(this.picker,this.hexInputRow.element):this.element.appendChild(this.picker);const e=document.createElement("style");e.textContent='[role="slider"]:focus [part$="pointer"] {border: 1px solid #fff;outline: 1px solid var(--ck-color-focus-border);box-shadow: 0 0 0 2px #fff;}',this.picker.shadowRoot.appendChild(e)}this.picker.addEventListener("color-changed",(e=>{const t=e.detail.value;this._debounceColorPickerEvent(t)}))}focus(){if(!this._config.hideInput&&(c.OB.isGecko||c.OB.isiOS||c.OB.isSafari)){this.hexInputRow.children.get(1).focus()}this.slidersView.first.focus()}_createSlidersView(){const e=[...this.picker.shadowRoot.children].filter((e=>"slider"===e.getAttribute("role"))).map((e=>new oo(e)));this.slidersView=this.createCollection(),e.forEach((e=>{this.slidersView.add(e)}))}_createInputRow(){const e=new so,t=this._createColorInput();return new io(this.locale,[e,t])}_createColorInput(){const e=new ge(this.locale,kt),{t}=this.locale;return e.set({label:t("HEX"),class:"color-picker-hex-input"}),e.fieldView.bind("value").to(this,"_hexColor",(t=>e.isFocused?e.fieldView.value:t.startsWith("#")?t.substring(1):t)),e.fieldView.on("input",(()=>{const t=e.fieldView.element.value;if(t){const e=t.trim(),o=e.startsWith("#")?e.substring(1):e;[3,4,6,8].includes(o.length)&&/(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})/.test(o)&&this._debounceColorPickerEvent("#"+o)}})),e}}function to(e){let t=function(e){if(!e)return"";const t=ce(e);return t?"hex"===t.space?t.hexValue:ae(e,"hex"):"#000"}(e);return t||(t="#000"),4===t.length&&(t="#"+[t[1],t[1],t[2],t[2],t[3],t[3]].join("")),t.toLowerCase()}class oo extends f{constructor(e){super(),this.element=e}focus(){this.element.focus()}}class so extends f{constructor(e){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__hash-view"]},children:"#"})}}class io extends f{constructor(e,t){super(e),this.children=this.createCollection(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__row"]},children:this.children})}}class ro extends((0,c.Re)(c.FE)){constructor(e){super(e),this.set("isEmpty",!0),this.on("change",(()=>{this.set("isEmpty",0===this.length)}))}add(e,t){return this.find((t=>t.color===e.color))?this:super.add(e,t)}hasColor(e){return!!this.find((t=>t.color===e))}}var no=o("./packages/ckeditor5-core/theme/icons/eraser.svg");const ao='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.209 18.717A8.5 8.5 0 1 1 18.686 9.6h-.008l.002.12a3 3 0 0 1-2.866 2.997h-.268l-.046-.002v.002h-4.791a2 2 0 1 0 0 4 1 1 0 1 1-.128 1.992 8.665 8.665 0 0 1-.372.008Zm-3.918-7.01a1.25 1.25 0 1 0-2.415-.648 1.25 1.25 0 0 0 2.415.647ZM5.723 8.18a1.25 1.25 0 1 0 .647-2.414 1.25 1.25 0 0 0-.647 2.414ZM9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Zm4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Z"/></svg>';class co extends f{constructor(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:r,colorPickerLabel:n,focusTracker:a,focusables:c}){super(e);const l=this.bindTemplate;this.set("isVisible",!0),this.focusTracker=a,this.items=this.createCollection(),this.colorDefinitions=t,this.columns=o,this.documentColors=new ro,this.documentColorsCount=r,this._focusables=c,this._removeButtonLabel=s,this._colorPickerLabel=n,this._documentColorsLabel=i,this.setTemplate({tag:"div",attributes:{class:["ck-color-grids-fragment",l.if("isVisible","ck-hidden",(e=>!e))]},children:this.items}),this.removeColorButtonView=this._createRemoveColorButton(),this.items.add(this.removeColorButtonView)}updateDocumentColors(e,t){const o=e.document,s=this.documentColorsCount;this.documentColors.clear();for(const i of o.getRoots()){const o=e.createRangeIn(i);for(const e of o.getItems())if(e.is("$textProxy")&&e.hasAttribute(t)&&(this._addColorToDocumentColors(e.getAttribute(t)),this.documentColors.length>=s))return}}updateSelectedColors(){const e=this.documentColorsGrid,t=this.staticColorsGrid,o=this.selectedColor;t.selectedColor=o,e&&(e.selectedColor=o)}render(){if(super.render(),this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount){const e=b.bind(this.documentColors,this.documentColors),t=new ue(this.locale);t.text=this._documentColorsLabel,t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]}}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}this._createColorPickerButton(),this._addColorSelectorElementsToFocusTracker(),this.focus()}focus(){this.removeColorButtonView.focus()}destroy(){super.destroy()}addColorPickerButton(){this.colorPickerButtonView&&(this.items.add(this.colorPickerButtonView),this.focusTracker.add(this.colorPickerButtonView.element),this._focusables.add(this.colorPickerButtonView))}_addColorSelectorElementsToFocusTracker(){this.focusTracker.add(this.removeColorButtonView.element),this._focusables.add(this.removeColorButtonView),this.staticColorsGrid&&(this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid)),this.documentColorsGrid&&(this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid))}_createColorPickerButton(){this.colorPickerButtonView=new H,this.colorPickerButtonView.set({label:this._colorPickerLabel,withText:!0,icon:ao,class:"ck-color-selector__color-picker"}),this.colorPickerButtonView.on("execute",(()=>{this.fire("colorPicker:show")}))}_createRemoveColorButton(){const e=new H;return e.set({withText:!0,icon:no.Z,label:this._removeButtonLabel}),e.class="ck-color-selector__remove-color",e.on("execute",(()=>{this.fire("execute",{value:null,source:"removeColorButton"})})),e.render(),e}_createStaticColorsGrid(){const e=new oe(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.on("execute",((e,t)=>{this.fire("execute",{value:t.value,source:"staticColorsGrid"})})),e}_createDocumentColorsGrid(){const e=b.bind(this.documentColors,this.documentColors),t=new oe(this.locale,{columns:this.columns});return t.extendTemplate({attributes:{class:e.if("isEmpty","ck-hidden")}}),t.items.bindTo(this.documentColors).using((e=>{const t=new Q;return t.set({color:e.color,hasBorder:e.options&&e.options.hasBorder}),e.label&&t.set({label:e.label,tooltip:!0}),t.on("execute",(()=>{this.fire("execute",{value:e.color,source:"documentColorsGrid"})})),t})),this.documentColors.on("change:isEmpty",((e,o,s)=>{s&&(t.selectedColor=null)})),t}_addColorToDocumentColors(e){const t=this.colorDefinitions.find((t=>t.color===e));t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}var lo=o("./packages/ckeditor5-core/theme/icons/check.svg"),ho=o("./packages/ckeditor5-core/theme/icons/cancel.svg"),uo=Object.defineProperty,po=Object.getOwnPropertySymbols,fo=Object.prototype.hasOwnProperty,go=Object.prototype.propertyIsEnumerable,mo=(e,t,o)=>t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class bo extends f{constructor(e,{focusTracker:t,focusables:o,keystrokes:s,colorPickerViewConfig:i}){super(e),this.items=this.createCollection(),this.focusTracker=t,this.keystrokes=s,this.set("isVisible",!1),this.set("selectedColor",void 0),this._focusables=o,this._colorPickerViewConfig=i;const r=this.bindTemplate,{saveButtonView:n,cancelButtonView:a}=this._createActionButtons();this.saveButtonView=n,this.cancelButtonView=a,this.actionBarView=this._createActionBarView({saveButtonView:n,cancelButtonView:a}),this.setTemplate({tag:"div",attributes:{class:["ck-color-picker-fragment",r.if("isVisible","ck-hidden",(e=>!e))]},children:this.items})}render(){super.render();const e=new eo(this.locale,((e,t)=>{for(var o in t||(t={}))fo.call(t,o)&&mo(e,o,t[o]);if(po)for(var o of po(t))go.call(t,o)&&mo(e,o,t[o]);return e})({},this._colorPickerViewConfig));this.colorPickerView=e,this.colorPickerView.render(),this.selectedColor&&(e.color=this.selectedColor),this.listenTo(this,"change:selectedColor",((t,o,s)=>{e.color=s})),this.items.add(this.colorPickerView),this.items.add(this.actionBarView),this._addColorPickersElementsToFocusTracker(),this._stopPropagationOnArrowsKeys(),this._executeOnEnterPress(),this._executeUponColorChange()}destroy(){super.destroy()}focus(){this.colorPickerView.focus()}_executeOnEnterPress(){this.keystrokes.set("enter",(e=>{this.isVisible&&this.focusTracker.focusedElement!==this.cancelButtonView.element&&(this.fire("execute",{value:this.selectedColor}),e.stopPropagation(),e.preventDefault())}))}_stopPropagationOnArrowsKeys(){const e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}_addColorPickersElementsToFocusTracker(){for(const e of this.colorPickerView.slidersView)this.focusTracker.add(e.element),this._focusables.add(e);const e=this.colorPickerView.hexInputRow.children.get(1);e.element&&(this.focusTracker.add(e.element),this._focusables.add(e)),this.focusTracker.add(this.saveButtonView.element),this._focusables.add(this.saveButtonView),this.focusTracker.add(this.cancelButtonView.element),this._focusables.add(this.cancelButtonView)}_createActionBarView({saveButtonView:e,cancelButtonView:t}){const o=new f,s=this.createCollection();return s.add(e),s.add(t),o.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector_action-bar"]},children:s}),o}_createActionButtons(){const e=this.locale,t=e.t,o=new H(e),s=new H(e);return o.set({icon:lo.Z,class:"ck-button-save",type:"button",withText:!1,label:t("Accept")}),s.set({icon:ho.Z,class:"ck-button-cancel",type:"button",withText:!1,label:t("Cancel")}),o.on("execute",(()=>{this.fire("execute",{source:"colorPickerSaveButton",value:this.selectedColor})})),s.on("execute",(()=>{this.fire("colorPicker:cancel")})),{saveButtonView:o,cancelButtonView:s}}_executeUponColorChange(){this.colorPickerView.on("colorSelected",((e,t)=>{this.fire("execute",{value:t.color,source:"colorPicker"}),this.set("selectedColor",t.color)}))}}var _o=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/colorselector/colorselector.css"),ko={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(_o.Z,ko);_o.Z.locals;class wo extends f{constructor(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:r,colorPickerLabel:n,colorPickerViewConfig:a}){super(e),this.items=this.createCollection(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this._focusables=new l,this._colorPickerViewConfig=a,this._focusCycler=new Me({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.colorGridsFragmentView=new co(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:r,colorPickerLabel:n,focusTracker:this.focusTracker,focusables:this._focusables}),this.colorPickerFragmentView=new bo(e,{focusables:this._focusables,focusTracker:this.focusTracker,keystrokes:this.keystrokes,colorPickerViewConfig:a}),this.set("_isColorGridsFragmentVisible",!0),this.set("_isColorPickerFragmentVisible",!1),this.set("selectedColor",void 0),this.colorGridsFragmentView.bind("isVisible").to(this,"_isColorGridsFragmentVisible"),this.colorPickerFragmentView.bind("isVisible").to(this,"_isColorPickerFragmentVisible"),this.on("change:selectedColor",((e,t,o)=>{this.colorGridsFragmentView.set("selectedColor",o),this.colorPickerFragmentView.set("selectedColor",o)})),this.colorGridsFragmentView.on("change:selectedColor",((e,t,o)=>{this.set("selectedColor",o)})),this.colorPickerFragmentView.on("change:selectedColor",((e,t,o)=>{this.set("selectedColor",o)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector"]},children:this.items})}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendUI(){this._appendColorGridsFragment(),this._colorPickerViewConfig&&this._appendColorPickerFragment()}showColorPickerFragment(){this.colorPickerFragmentView.colorPickerView&&!this._isColorPickerFragmentVisible&&(this._isColorPickerFragmentVisible=!0,this.colorPickerFragmentView.focus(),this._isColorGridsFragmentVisible=!1)}showColorGridsFragment(){this._isColorGridsFragmentVisible||(this._isColorGridsFragmentVisible=!0,this.colorGridsFragmentView.focus(),this._isColorPickerFragmentVisible=!1)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}updateDocumentColors(e,t){this.colorGridsFragmentView.updateDocumentColors(e,t)}updateSelectedColors(){this.colorGridsFragmentView.updateSelectedColors()}_appendColorGridsFragment(){this.items.length||(this.items.add(this.colorGridsFragmentView),this.colorGridsFragmentView.delegate("execute").to(this),this.colorGridsFragmentView.delegate("colorPicker:show").to(this))}_appendColorPickerFragment(){2!==this.items.length&&(this.items.add(this.colorPickerFragmentView),this.colorGridsFragmentView.colorPickerButtonView&&this.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{this.showColorPickerFragment()})),this.colorGridsFragmentView.addColorPickerButton(),this.colorPickerFragmentView.delegate("execute").to(this),this.colorPickerFragmentView.delegate("colorPicker:cancel").to(this))}}class vo{constructor(e){this._components=new Map,this.editor=e}*names(){for(const e of this._components.values())yield e.originalName}add(e,t){this._components.set(yo(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new c.Bb("componentfactory-item-missing",this,{name:e});return this._components.get(yo(e)).callback(this.editor.locale)}has(e){return this._components.has(yo(e))}}function yo(e){return String(e).toLowerCase()}var xo=o("./node_modules/lodash-es/isElement.js"),Po=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonpanel.css"),Co={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Po.Z,Co);Po.Z.locals;var To=Object.defineProperty,Eo=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,Oo=(e,t,o)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ro=(e,t)=>{for(var o in t||(t={}))Ao.call(t,o)&&Oo(e,o,t[o]);if(Eo)for(var o of Eo(t))So.call(t,o)&&Oo(e,o,t[o]);return e};const jo=(0,c.nn)("px"),Mo=c.global.document.body,Vo={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},Bo=class extends f{constructor(e){super(e);const t=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",t.to("position",(e=>`ck-balloon-panel_${e}`)),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",jo),left:t.to("left",jo)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){this.show();const t=Bo.defaultPositions,o=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:Mo,fitInViewport:!0},e),s=Bo._getOptimalPosition(o)||Vo,i=parseInt(s.left),r=parseInt(s.top),n=s.name,a=s.config||{},{withArrow:c=!0}=a;this.top=r,this.left=i,this.position=n,this.withArrow=c}pin(e){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this._startPinning(e),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(e){this.attachTo(e);const t=Do(e.target),o=e.limiter?Do(e.limiter):Mo;this.listenTo(c.global.document,"scroll",((s,i)=>{const r=i.target,n=t&&r.contains(t),a=o&&r.contains(o);!n&&!a&&t&&o||this.attachTo(e)}),{useCapture:!0}),this.listenTo(c.global.window,"resize",(()=>{this.attachTo(e)}))}_stopPinning(){this.stopListening(c.global.document,"scroll"),this.stopListening(c.global.window,"resize")}};let Io=Bo;function Do(e){return(0,xo.Z)(e)?e:(0,c.bR)(e)?e.commonAncestorContainer:"function"==typeof e?Do(e()):null}function No(e={}){const{sideOffset:t=Io.arrowSideOffset,heightOffset:o=Io.arrowHeightOffset,stickyVerticalOffset:s=Io.stickyVerticalOffset,config:i}=e;return{northWestArrowSouthWest:(e,o)=>Ro({top:r(e,o),left:e.left-t,name:"arrow_sw"},i&&{config:i}),northWestArrowSouthMiddleWest:(e,o)=>Ro({top:r(e,o),left:e.left-.25*o.width-t,name:"arrow_smw"},i&&{config:i}),northWestArrowSouth:(e,t)=>Ro({top:r(e,t),left:e.left-t.width/2,name:"arrow_s"},i&&{config:i}),northWestArrowSouthMiddleEast:(e,o)=>Ro({top:r(e,o),left:e.left-.75*o.width+t,name:"arrow_sme"},i&&{config:i}),northWestArrowSouthEast:(e,o)=>Ro({top:r(e,o),left:e.left-o.width+t,name:"arrow_se"},i&&{config:i}),northArrowSouthWest:(e,o)=>Ro({top:r(e,o),left:e.left+e.width/2-t,name:"arrow_sw"},i&&{config:i}),northArrowSouthMiddleWest:(e,o)=>Ro({top:r(e,o),left:e.left+e.width/2-.25*o.width-t,name:"arrow_smw"},i&&{config:i}),northArrowSouth:(e,t)=>Ro({top:r(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"},i&&{config:i}),northArrowSouthMiddleEast:(e,o)=>Ro({top:r(e,o),left:e.left+e.width/2-.75*o.width+t,name:"arrow_sme"},i&&{config:i}),northArrowSouthEast:(e,o)=>Ro({top:r(e,o),left:e.left+e.width/2-o.width+t,name:"arrow_se"},i&&{config:i}),northEastArrowSouthWest:(e,o)=>Ro({top:r(e,o),left:e.right-t,name:"arrow_sw"},i&&{config:i}),northEastArrowSouthMiddleWest:(e,o)=>Ro({top:r(e,o),left:e.right-.25*o.width-t,name:"arrow_smw"},i&&{config:i}),northEastArrowSouth:(e,t)=>Ro({top:r(e,t),left:e.right-t.width/2,name:"arrow_s"},i&&{config:i}),northEastArrowSouthMiddleEast:(e,o)=>Ro({top:r(e,o),left:e.right-.75*o.width+t,name:"arrow_sme"},i&&{config:i}),northEastArrowSouthEast:(e,o)=>Ro({top:r(e,o),left:e.right-o.width+t,name:"arrow_se"},i&&{config:i}),southWestArrowNorthWest:e=>Ro({top:n(e),left:e.left-t,name:"arrow_nw"},i&&{config:i}),southWestArrowNorthMiddleWest:(e,o)=>Ro({top:n(e),left:e.left-.25*o.width-t,name:"arrow_nmw"},i&&{config:i}),southWestArrowNorth:(e,t)=>Ro({top:n(e),left:e.left-t.width/2,name:"arrow_n"},i&&{config:i}),southWestArrowNorthMiddleEast:(e,o)=>Ro({top:n(e),left:e.left-.75*o.width+t,name:"arrow_nme"},i&&{config:i}),southWestArrowNorthEast:(e,o)=>Ro({top:n(e),left:e.left-o.width+t,name:"arrow_ne"},i&&{config:i}),southArrowNorthWest:e=>Ro({top:n(e),left:e.left+e.width/2-t,name:"arrow_nw"},i&&{config:i}),southArrowNorthMiddleWest:(e,o)=>Ro({top:n(e),left:e.left+e.width/2-.25*o.width-t,name:"arrow_nmw"},i&&{config:i}),southArrowNorth:(e,t)=>Ro({top:n(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"},i&&{config:i}),southArrowNorthMiddleEast:(e,o)=>Ro({top:n(e),left:e.left+e.width/2-.75*o.width+t,name:"arrow_nme"},i&&{config:i}),southArrowNorthEast:(e,o)=>Ro({top:n(e),left:e.left+e.width/2-o.width+t,name:"arrow_ne"},i&&{config:i}),southEastArrowNorthWest:e=>Ro({top:n(e),left:e.right-t,name:"arrow_nw"},i&&{config:i}),southEastArrowNorthMiddleWest:(e,o)=>Ro({top:n(e),left:e.right-.25*o.width-t,name:"arrow_nmw"},i&&{config:i}),southEastArrowNorth:(e,t)=>Ro({top:n(e),left:e.right-t.width/2,name:"arrow_n"},i&&{config:i}),southEastArrowNorthMiddleEast:(e,o)=>Ro({top:n(e),left:e.right-.75*o.width+t,name:"arrow_nme"},i&&{config:i}),southEastArrowNorthEast:(e,o)=>Ro({top:n(e),left:e.right-o.width+t,name:"arrow_ne"},i&&{config:i}),westArrowEast:(e,t)=>Ro({top:e.top+e.height/2-t.height/2,left:e.left-t.width-o,name:"arrow_e"},i&&{config:i}),eastArrowWest:(e,t)=>Ro({top:e.top+e.height/2-t.height/2,left:e.right+o,name:"arrow_w"},i&&{config:i}),viewportStickyNorth:(e,t,o,r)=>{const n=r||o;return e.getIntersection(n)?n.height-e.height>s?null:{top:n.top+s,left:e.left+e.width/2-t.width/2,name:"arrowless",config:Ro({withArrow:!1},i)}:null}};function r(e,t){return e.top-t.height-o}function n(e){return e.bottom+o}}Io.arrowSideOffset=25,Io.arrowHeightOffset=10,Io.stickyVerticalOffset=20,Io._getOptimalPosition=c.xZ,Io.defaultPositions=No();var zo=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/tooltip/tooltip.css"),Fo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(zo.Z,Fo);zo.Z.locals;const Lo="ck-tooltip",Zo=class extends((0,c.Xu)()){constructor(e){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,Zo._editors.add(e),Zo._instance)return Zo._instance;Zo._instance=this,this.tooltipTextView=new f(e.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 Io(e.locale),this.balloonPanelView.class=Lo,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=(0,le.Z)(this._pinTooltip,600),this.listenTo(c.global.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(c.global.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(c.global.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(c.global.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(c.global.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(e){const t=e.ui.view&&e.ui.view.body;Zo._editors.delete(e),this.stopListening(e.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),Zo._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Zo._instance=null)}static getPositioningFunctions(e){const t=Zo.defaultBalloonPositions;return{s:[t.southArrowNorth,t.southArrowNorthEast,t.southArrowNorthWest],n:[t.northArrowSouth],e:[t.eastArrowWest],w:[t.westArrowEast],sw:[t.southArrowNorthEast],se:[t.southArrowNorthWest]}[e]}_onEnterOrFocus(e,{target:t}){const o=$o(t);var s;o&&(o!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(o,{text:(s=o).dataset.ckeTooltipText,position:s.dataset.ckeTooltipPosition||"s",cssClass:s.dataset.ckeTooltipClass||""})))}_onLeaveOrBlur(e,{target:t,relatedTarget:o}){if("mouseleave"===e.name){if(!(0,xo.Z)(t))return;if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;const e=$o(t),s=$o(o);e&&e!==s&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(e,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(e,{text:t,position:o,cssClass:s}){const i=(0,c.Ps)(Zo._editors.values()).ui.view.body;i.has(this.balloonPanelView)||i.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.pin({target:e,positions:Zo.getPositioningFunctions(o)}),this._resizeObserver=new c.do(e,(()=>{(0,c.pn)(e)||this._unpinTooltip()})),this.balloonPanelView.class=[Lo,s].filter((e=>e)).join(" ");for(const e of Zo._editors)this.listenTo(e.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=e,this._currentTooltipPosition=o}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const e of Zo._editors)this.stopListening(e.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){(0,c.pn)(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Zo.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let Wo=Zo;function $o(e){return(0,xo.Z)(e)?e.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}Wo.defaultBalloonPositions=No({heightOffset:5,sideOffset:13}),Wo._editors=new Set,Wo._instance=null;var qo=o("./node_modules/lodash-es/throttle.js");var Ho=Object.defineProperty,Uo=Object.getOwnPropertySymbols,Go=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable,Jo=(e,t,o)=>t in e?Ho(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Yo=(e,t)=>{for(var o in t||(t={}))Go.call(t,o)&&Jo(e,o,t[o]);if(Uo)for(var o of Uo(t))Ko.call(t,o)&&Jo(e,o,t[o]);return e};const Xo=50,Qo=350,es="Powered by";class ts extends((0,c.Xu)()){constructor(e){super(),this.editor=e,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=(0,qo.Z)(this._showBalloon.bind(this),50,{leading:!0}),e.on("ready",this._handleEditorReady.bind(this))}destroy(){const e=this._balloonView;e&&(e.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const e=this.editor;(!!e.config.get("ui.poweredBy.forceVisible")||"VALID"!==(0,c.Tx)(e.config.get("licenseKey")))&&e.ui.view&&(e.ui.focusTracker.on("change:isFocused",((e,t,o)=>{this._updateLastFocusedEditableElement(),o?this._showBalloon():this._hideBalloon()})),e.ui.focusTracker.on("change:focusedElement",((e,t,o)=>{this._updateLastFocusedEditableElement(),o&&this._showBalloon()})),e.ui.on("update",(()=>{this._showBalloonThrottled()})))}_createBalloonView(){const e=this.editor,t=this._balloonView=new Io,o=is(e),s=new os(e.locale,o.label);t.content.add(s),t.set({class:"ck-powered-by-balloon"}),e.ui.view.body.add(t),e.ui.focusTracker.add(t.element),this._balloonView=t}_showBalloon(){if(!this._lastFocusedEditableElement)return;const e=function(e,t){const o=is(e),s="right"===o.side?function(e,t){return ss(e,t,((e,o)=>e.left+e.width-o.width-t.horizontalOffset))}(t,o):function(e,t){return ss(e,t,(e=>e.left+t.horizontalOffset))}(t,o);return{target:t,positions:[s]}}(this.editor,this._lastFocusedEditableElement);e&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(e))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const e=this.editor,t=e.ui.focusTracker.isFocused,o=e.ui.focusTracker.focusedElement;if(!t||!o)return void(this._lastFocusedEditableElement=null);const s=Array.from(e.ui.getEditableElementsNames()).map((t=>e.ui.getEditableElement(t)));s.includes(o)?this._lastFocusedEditableElement=o:this._lastFocusedEditableElement=s[0]}}class os extends f{constructor(e,t){super(e);const o=new Z,s=this.bindTemplate;o.set({content:'<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>\n',isColorInherited:!1}),o.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),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:[...t?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[t]}]:[],o],on:{dragstart:s.to((e=>e.preventDefault()))}}]})}}function ss(e,t,o){return(s,i)=>{const r=new c.UL(e);if(r.width<Qo||r.height<Xo)return null;let n;n="inside"===t.position?r.bottom-i.height:r.bottom-i.height/2,n-=t.verticalOffset;const a=o(r,i),l=s.clone().moveTo(a,n).getIntersection(i.clone().moveTo(a,n)).getVisible();return!l||l.getArea()<i.getArea()?null:{top:n,left:a,name:`position_${t.position}-side_${t.side}`,config:{withArrow:!1}}}}function is(e){const t=e.config.get("ui.poweredBy"),o=t&&t.position||"border";return Yo({position:o,label:es,verticalOffset:"inside"===o?5:0,horizontalOffset:5,side:"ltr"===e.locale.contentLanguageDirection?"right":"left"},t)}var rs=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"),ns={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(rs.Z,ns);rs.Z.locals;class as{constructor(e){this.editor=e}announce(e,t,o="polite"){const s=this.editor;this.view||(this.view=new cs(s.locale),s.ui.view.body.add(this.view));let i=this.view.regionViews.find((t=>t.regionName===e));i||(i=new ls(this.view.locale),this.view.regionViews.add(i)),i.set({regionName:e,text:t,politeness:o})}}class cs extends f{constructor(e){super(e),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class ls extends f{constructor(e){super(e);const t=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness","polite"),this.setTemplate({tag:"div",attributes:{role:"region","data-region":t.to("regionName"),"aria-live":t.to("politeness")},children:[{text:t.to("text")}]})}}var ds=Object.defineProperty,hs=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable,fs=(e,t,o)=>t in e?ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class gs extends((0,c.Re)()){constructor(e){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const t=e.editing.view;this.editor=e,this.componentFactory=new vo(e),this.focusTracker=new c.Rh,this.tooltipManager=new Wo(e),this.poweredBy=new ts(e),this.ariaLiveAnnouncer=new as(e),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",(()=>{this.isReady=!0})),this.listenTo(t.document,"layoutChanged",this.update.bind(this)),this.listenTo(t,"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 e of this._editableElementsMap.values())e.ckeditorInstance=null,this.editor.keystrokes.stopListening(e);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor),this.focusTracker.add(t);const o=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?o():this.once("ready",o)}removeEditableElement(e){const t=this._editableElementsMap.get(e);t&&(this._editableElementsMap.delete(e),this.editor.keystrokes.stopListening(t),this.focusTracker.remove(t),t.ckeditorInstance=null)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(e,t={}){e.isRendered?(this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)):e.once("render",(()=>{this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)})),this._focusableToolbarDefinitions.push({toolbarView:e,options:t})}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 e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;const o=e.config.get("toolbar.viewportTopOffset");return o?(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:o}):{top:0}}_initFocusTracking(){const e=this.editor,t=e.editing.view;let o,s;e.keystrokes.set("Alt+F10",((e,i)=>{const r=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(r)&&!Array.from(t.domRoots.values()).includes(r)&&(o=r);const n=this._getCurrentFocusedToolbarDefinition();n&&s||(s=this._getFocusableCandidateToolbarDefinitions());for(let e=0;e<s.length;e++){const e=s.shift();if(s.push(e),e!==n&&this._focusFocusableCandidateToolbar(e)){n&&n.options.afterBlur&&n.options.afterBlur();break}}i()})),e.keystrokes.set("Esc",((t,s)=>{const i=this._getCurrentFocusedToolbarDefinition();i&&(o?(o.focus(),o=null):e.editing.view.focus(),i.options.afterBlur&&i.options.afterBlur(),s())}))}_getFocusableCandidateToolbarDefinitions(){const e=[];for(const t of this._focusableToolbarDefinitions){const{toolbarView:o,options:s}=t;((0,c.pn)(o.element)||s.beforeFocus)&&e.push(t)}return e.sort(((e,t)=>ms(e)-ms(t))),e}_getCurrentFocusedToolbarDefinition(){for(const e of this._focusableToolbarDefinitions)if(e.toolbarView.element&&e.toolbarView.element.contains(this.focusTracker.focusedElement))return e;return null}_focusFocusableCandidateToolbar(e){const{toolbarView:t,options:{beforeFocus:o}}=e;return o&&o(),!!(0,c.pn)(t.element)&&(t.focus(),!0)}_handleScrollToTheSelection(e,t){const o=((e,t)=>{for(var o in t||(t={}))us.call(t,o)&&fs(e,o,t[o]);if(hs)for(var o of hs(t))ps.call(t,o)&&fs(e,o,t[o]);return e})({top:0,bottom:0,left:0,right:0},this.viewportOffset);t.viewportOffset.top+=o.top,t.viewportOffset.bottom+=o.bottom,t.viewportOffset.left+=o.left,t.viewportOffset.right+=o.right}}function ms(e){const{toolbarView:t,options:o}=e;let s=10;return(0,c.pn)(t.element)&&s--,o.isContextual&&s--,s}var bs=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/editorui/editorui.css"),_s={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(bs.Z,_s);bs.Z.locals;class ks extends f{constructor(e){super(e),this.body=new N(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class ws extends ks{constructor(e){super(e),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:e.uiLanguageDirection,lang:e.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 e=this.t,t=new ue;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class vs extends f{constructor(e,t,o){super(e),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=o,this._hasExternalElement=!!this._editableElement,this._editingView=t}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 e=this._editingView;function t(t){e.change((o=>{const s=e.document.getRoot(t.name);o.addClass(t.isFocused?"ck-focused":"ck-blurred",s),o.removeClass(t.isFocused?"ck-blurred":"ck-focused",s)}))}e.isRenderingInProgress?function o(s){e.once("change:isRenderingInProgress",((e,i,r)=>{r?o(s):t(s)}))}(this):t(this)}}class ys extends vs{constructor(e,t,o,s={}){super(e,t,o);const i=e.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=s.label||(()=>i("Editor editing area: %0",this.name))}render(){super.render();const e=this._editingView;e.change((t=>{const o=e.document.getRoot(this.name);t.setAttribute("aria-label",this._generateLabel(this),o)}))}}var xs=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/formheader/formheader.css"),Ps={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(xs.Z,Ps);xs.Z.locals;class Cs extends f{constructor(e,t={}){super(e);const o=this.bindTemplate;this.set("label",t.label||""),this.set("class",t.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",o.to("class")]},children:this.children}),t.icon&&(this.iconView=new Z,this.iconView.content=t.icon,this.children.add(this.iconView));const s=new f(e);s.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"]},children:[{text:o.to("label")}]}),this.children.add(s)}}class Ts extends f{constructor(e){super(e);const t=this.bindTemplate;this.setTemplate({tag:"iframe",attributes:{class:["ck","ck-reset_all"],sandbox:"allow-same-origin allow-scripts"},on:{load:t.to("loaded")}})}render(){return new Promise((e=>(this.on("loaded",e),super.render())))}}class Es extends $e.eO{static get pluginName(){return"Notification"}init(){this.on("show:warning",((e,t)=>{window.alert(t.message)}),{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){const t=e.namespace?`show:${e.type}:${e.namespace}`:`show:${e.type}`;this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}var As=o("./node_modules/lodash-es/assignIn.js");class Ss extends((0,c.Re)()){constructor(e,t){super(),t&&(0,As.Z)(this,t),e&&this.set(e)}}var Os=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/balloonrotator.css"),Rs={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Os.Z,Rs);Os.Z.locals;var js=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/fakepanel.css"),Ms={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(js.Z,Ms);js.Z.locals;const Vs=(0,c.nn)("px");class Bs extends $e.Sy{constructor(e){super(e),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,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}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(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this._view||this._createPanelView(),this.hasView(e.view))throw new c.Bb("contextualballoon-add-view-exist",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const o=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),o.set(e.view,e),this._viewToStack.set(e.view,o),o===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new c.Bb("contextualballoon-remove-view-not-exist",[this,e]);const t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new c.Bb("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}_createPanelView(){this._view=new Io(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(e){return Array.from(this._idToStack.entries()).find((t=>t[1]===e))[0]}_showNextStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){const e=new Is(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((e,t)=>!t&&e>1)),e.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((e,o)=>{if(o<2)return"";const s=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[s,o])})),e.buttonNextView.on("execute",(()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),e.buttonPrevView.on("execute",(()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),e}_createFakePanelsView(){const e=new Ds(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((e,t)=>!t&&e>=2?Math.min(e-1,2):0)),e.listenTo(this.view,"change:top",(()=>e.updatePosition())),e.listenTo(this.view,"change:left",(()=>e.updatePosition())),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:o=!0,singleViewMode:s=!1}){this.view.class=t,this.view.withArrow=o,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}}class Is extends f{constructor(e){super(e);const t=e.t,o=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new c.Rh,this.buttonPrevView=this._createButtonView(t("Previous"),'<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>'),this.buttonNextView=this._createButtonView(t("Next"),'<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>'),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",o.to("isNavigationVisible",(e=>e?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.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(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const o=new H(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o}}class Ds extends f{constructor(e,t){super(e);const o=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=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(e=>e?"":"ck-hidden"))],style:{top:o.to("top",Vs),left:o.to("left",Vs),width:o.to("width",Vs),height:o.to("height",Vs)}},children:this.content}),this.on("change:numberOfPanels",((e,t,o,s)=>{o>s?this._addPanels(o-s):this._removePanels(s-o),this.updatePosition()}))}_addPanels(e){for(;e--;){const e=new f;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:o,height:s}=new c.UL(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:o,height:s})}}}var Ns=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/panel/stickypanel.css"),zs={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Ns.Z,zs);Ns.Z.locals;const Fs=(0,c.nn)("px");class Ls extends f{constructor(e){super(e);const t=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 b({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",(e=>e?"block":"none")),height:t.to("isSticky",(e=>e?Fs(this._contentPanelRect.height):null))}}}).render(),this._contentPanel=new b({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",(e=>e?Fs(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:t.to("_stickyTopOffset",(e=>e?Fs(e):e)),bottom:t.to("_stickyBottomOffset",(e=>e?Fs(e):e)),marginLeft:t.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(c.global.document,"scroll",(()=>{this.checkIfShouldBeSticky()}),{useCapture:!0}),this.listenTo(this,"change:isActive",(()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const e=new c.UL(this.limiterElement);let t=e.getVisible();if(t){const e=new c.UL(c.global.window);e.top+=this.viewportTopOffset,e.height-=this.viewportTopOffset,t=t.getIntersection(e)}if(t&&e.top<t.top){const o=t.top;if(o+this._contentPanelRect.height+this.limiterBottomOffset>t.bottom){const o=Math.max(e.bottom-t.bottom,0)+this.limiterBottomOffset;e.bottom-o>e.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(o):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<e.height?this._stickToTopOfAncestors(o):this._unstick()}else this._unstick()}_stickToTopOfAncestors(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=e,this._stickyBottomOffset=null,this._marginLeft=Fs(-c.global.window.scrollX)}_stickToBottomOfLimiter(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=e,this._marginLeft=Fs(-c.global.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new c.UL(this._contentPanel)}}class Zs extends ge{constructor(e,t){const o=e.t,s=Object.assign({},{showResetButton:!0,showIcon:!0,creator:kt},t);super(e,s.creator),this.label=t.label,this._viewConfig=s,this._viewConfig.showIcon&&(this.iconView=new Z,this.iconView.content=$e.icons.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new H(e),this.resetButtonView.set({label:o("Clear"),icon:$e.icons.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",(e=>!e)),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 Ws extends f{constructor(){super();const e=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",e.if("isVisible","ck-hidden",(e=>!e))],tabindex:-1},children:[{tag:"span",children:[{text:[e.to("primaryText")]}]},{tag:"span",children:[{text:[e.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class $s extends f{constructor(e){super(e),this.children=this.createCollection(),this.focusTracker=new c.Rh,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new Me({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const e of this.children)this.focusTracker.add(e.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var qs=o("./node_modules/lodash-es/escapeRegExp.js"),Hs=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/search/search.css"),Us={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(Hs.Z,Us);Hs.Z.locals;var Gs=Object.defineProperty,Ks=Object.getOwnPropertySymbols,Js=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,Xs=(e,t,o)=>t in e?Gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class Qs extends f{constructor(e,t){super(e),this._config=t,this.filteredView=t.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new c.Rh,this.keystrokes=new c.VD,this.resultsView=new $s(e),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),t.infoView&&t.infoView.instance?this.infoView=t.infoView.instance:(this.infoView=new Ws,this._enableDefaultInfoViewBehavior(),this.on("render",(()=>{this.search("")}))),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new Me({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",((e,{resultsCount:t,totalItemsCount:o})=>{this.resultsCount=t,this.totalItemsCount=o})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",t.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const e=e=>e.stopPropagation();for(const e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(e){const t=e?new RegExp((0,qs.Z)(e),"ig"):null,o=this.filteredView.filter(t);this.fire("search",((e,t)=>{for(var o in t||(t={}))Js.call(t,o)&&Xs(e,o,t[o]);if(Ks)for(var o of Ks(t))Ys.call(t,o)&&Xs(e,o,t[o]);return e})({query:e},o))}_createSearchTextQueryView(){const e=new Zs(this.locale,this._config.queryView);return this.listenTo(e.fieldView,"input",(()=>{this.search(e.fieldView.element.value)})),e.on("reset",(()=>this.reset())),e.bind("isEnabled").to(this),e}_enableDefaultInfoViewBehavior(){const e=this.locale.t,t=this.infoView;function o(e,{query:t,resultsCount:o,totalItemsCount:s}){return"function"==typeof e?e(t,o,s):e}this.on("search",((s,i)=>{if(i.resultsCount)t.set({isVisible:!1});else{const s=this._config.infoView&&this._config.infoView.text;let r,n;i.totalItemsCount?s&&s.notFound?(r=s.notFound.primary,n=s.notFound.secondary):(r=e("No results found"),n=""):s&&s.noSearchableItems?(r=s.noSearchableItems.primary,n=s.noSearchableItems.secondary):(r=e("No searchable items"),n=""),t.set({primaryText:o(r,i),secondaryText:o(n,i),isVisible:!0})}}))}}var ei=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/autocomplete/autocomplete.css"),ti={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(ei.Z,ti);ei.Z.locals;const oi=class extends Qs{constructor(e,t){super(e,t),this._config=t;const o=(0,c.nn)("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const s=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[s.if("isVisible","ck-hidden",(e=>!e)),s.to("_position",(e=>`ck-search__results_${e}`))],style:{width:s.to("_width",o)}}}),this.focusTracker.on("change:isFocused",((e,o,s)=>{this._updateResultsVisibility(),s?this.resultsView.element.scrollTop=0:t.resetOnBlur&&this.queryView.reset()})),this.on("search",(()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()})),this.keystrokes.set("esc",((e,t)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,t())})),this.listenTo(c.global.document,"scroll",(()=>{this._updateResultsViewWidthAndPosition()})),this.on("change:isEnabled",(()=>{this._updateResultsVisibility()})),this.filteredView.on("execute",((e,{value:t})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=t,this.resultsView.isVisible=!1})),this.resultsView.on("change:isVisible",(()=>{this._updateResultsViewWidthAndPosition()}))}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new c.UL(this.queryView.fieldView.element).width;const e=oi._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:oi.defaultResultsPositions});this.resultsView._position=e?e.name:"s"}_updateResultsVisibility(){const e=void 0===this._config.queryMinChars?0:this._config.queryMinChars,t=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&t>=e}};let si=oi;si.defaultResultsPositions=[e=>({top:e.bottom,left:e.left,name:"s"}),(e,t)=>({top:e.top-t.height,left:e.left,name:"n"})],si._getOptimalPosition=c.xZ;var ii=o("./packages/ckeditor5-ui/src/search/filteredview.ts"),ri=o.n(ii);const ni=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});var ai=o("./node_modules/lodash-es/toString.js"),ci=/[&<>"']/g,li=RegExp(ci.source);const di=function(e){return(e=(0,ai.Z)(e))&&li.test(e)?e.replace(ci,ni):e};var hi=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"),ui={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(hi.Z,ui);hi.Z.locals;class pi extends f{constructor(){super(),this.set("text",void 0),this.setTemplate({tag:"span",attributes:{class:["ck","ck-highlighted-text"]}}),this.on("render",(()=>{this.on("change:text",(()=>{this._updateInnerHTML(this.text)})),this._updateInnerHTML(this.text)}))}highlightText(e){this._updateInnerHTML(function(e,t){if(!t)return di(e);const o=[];let s=0,i=t.exec(e);for(;null!==i;){const r=i.index;r!==s&&o.push({text:e.substring(s,r),isMatch:!1}),o.push({text:i[0],isMatch:!0}),s=t.lastIndex,i=t.exec(e)}s!==e.length&&o.push({text:e.substring(s),isMatch:!1});return o.map((e=>(e.text=di(e.text),e))).map((e=>e.isMatch?`<mark>${e.text}</mark>`:e.text)).join("")}(this.text||"",e))}_updateInnerHTML(e){this.element.innerHTML=e||""}}var fi=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/collapsible/collapsible.css"),gi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(fi.Z,gi);fi.Z.locals;class mi extends f{constructor(e,t){super(e);const o=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),t&&this.children.addMany(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",o.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:o.if("isCollapsed","hidden"),"aria-labelledby":o.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const e=new H(this.locale),t=e.bindTemplate;return e.set({withText:!0,icon:Re}),e.extendTemplate({attributes:{"aria-expanded":t.to("isOn",(e=>String(e)))}}),e.bind("label").to(this),e.bind("isOn").to(this,"isCollapsed",(e=>!e)),e.on("execute",(()=>{this.isCollapsed=!this.isCollapsed})),e}}var bi=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/spinner/spinner.css"),_i={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(bi.Z,_i);bi.Z.locals;class ki extends f{constructor(){super(),this.set("isVisible",!1);const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-spinner-container",e.if("isVisible","ck-hidden",(e=>!e))]},children:[{tag:"span",attributes:{class:["ck","ck-spinner"]}}]})}}const wi=(0,c.nn)("px");class vi extends $e.Sy{constructor(e){super(e),this._resizeObserver=null,this._balloonConfig=We(e.config.get("balloonToolbar")),this.toolbarView=this._createToolbarView(),this.focusTracker=new c.Rh,e.ui.once("ready",(()=>{this.focusTracker.add(e.ui.getEditableElement()),this.focusTracker.add(this.toolbarView.element)})),e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this.show(!0),afterBlur:()=>this.hide(),isContextual:!0}),this._balloon=e.plugins.get(Bs),this._fireSelectionChangeDebounced=(0,le.Z)((()=>this.fire("_selectionChangeDebounced")),200),this.decorate("show")}static get pluginName(){return"BalloonToolbar"}static get requires(){return[Bs]}init(){const e=this.editor,t=e.model.document.selection;this.listenTo(this.focusTracker,"change:isFocused",((e,t,o)=>{const s=this._balloon.visibleView===this.toolbarView;!o&&s?this.hide():o&&this.show()})),this.listenTo(t,"change:range",((e,o)=>{(o.directChange||t.isCollapsed)&&this.hide(),this._fireSelectionChangeDebounced()})),this.listenTo(this,"_selectionChangeDebounced",(()=>{this.editor.editing.view.document.isFocused&&this.show()})),this._balloonConfig.shouldNotGroupWhenFull||this.listenTo(e,"ready",(()=>{const t=e.ui.view.editable.element;this._resizeObserver=new c.do(t,(e=>{this.toolbarView.maxWidth=wi(.9*e.contentRect.width)}))})),this.listenTo(this.toolbarView,"groupedItemsUpdate",(()=>{this._updatePosition()}))}afterInit(){const e=this.editor.ui.componentFactory;this.toolbarView.fillFromConfig(this._balloonConfig,e)}_createToolbarView(){const e=this.editor.locale.t,t=!this._balloonConfig.shouldNotGroupWhenFull,o=new Ke(this.editor.locale,{shouldGroupWhenFull:t,isFloating:!0});return o.ariaLabel=e("Editor contextual toolbar"),o.render(),o}show(e=!1){const t=this.editor,o=t.model.document.selection,s=t.model.schema;this._balloon.hasView(this.toolbarView)||o.isCollapsed&&!e||function(e,t){if(1===e.rangeCount)return!1;return[...e.getRanges()].every((e=>{const o=e.getContainedElement();return o&&t.isSelectable(o)}))}(o,s)||Array.from(this.toolbarView.items).every((e=>void 0!==e.isEnabled&&!e.isEnabled))||(this.listenTo(this.editor.ui,"update",(()=>{this._updatePosition()})),this._balloon.add({view:this.toolbarView,position:this._getBalloonPositionData(),balloonClassName:"ck-toolbar-container"}))}hide(){this._balloon.hasView(this.toolbarView)&&(this.stopListening(this.editor.ui,"update"),this._balloon.remove(this.toolbarView))}_getBalloonPositionData(){const e=this.editor.editing.view,t=e.document,o=t.selection,s=t.selection.isBackward;return{target:()=>{const t=s?o.getFirstRange():o.getLastRange(),i=c.UL.getDomRangeRects(e.domConverter.viewRangeToDom(t));return s?i[0]:(i.length>1&&0===i[i.length-1].width&&i.pop(),i[i.length-1])},positions:this._getBalloonPositions(s)}}_updatePosition(){this._balloon.updatePosition(this._getBalloonPositionData())}destroy(){super.destroy(),this.stopListening(),this._fireSelectionChangeDebounced.cancel(),this.toolbarView.destroy(),this.focusTracker.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_getBalloonPositions(e){const t=c.OB.isSafari&&c.OB.isiOS?No({heightOffset:Math.max(Io.arrowHeightOffset,Math.round(20/c.global.window.visualViewport.scale))}):Io.defaultPositions;return e?[t.northWestArrowSouth,t.northWestArrowSouthWest,t.northWestArrowSouthEast,t.northWestArrowSouthMiddleEast,t.northWestArrowSouthMiddleWest,t.southWestArrowNorth,t.southWestArrowNorthWest,t.southWestArrowNorthEast,t.southWestArrowNorthMiddleWest,t.southWestArrowNorthMiddleEast]:[t.southEastArrowNorth,t.southEastArrowNorthEast,t.southEastArrowNorthWest,t.southEastArrowNorthMiddleEast,t.southEastArrowNorthMiddleWest,t.northEastArrowSouth,t.northEastArrowSouthEast,t.northEastArrowSouthWest,t.northEastArrowSouthMiddleEast,t.northEastArrowSouthMiddleWest]}}var yi=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css"),xi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};h()(yi.Z,xi);yi.Z.locals;const Pi=(0,c.nn)("px");class Ci extends H{constructor(e){super(e);const t=this.bindTemplate;this.isVisible=!1,this.isToggleable=!0,this.set("top",0),this.set("left",0),this.extendTemplate({attributes:{class:"ck-block-toolbar-button",style:{top:t.to("top",(e=>Pi(e))),left:t.to("left",(e=>Pi(e)))}}})}}const Ti=(0,c.nn)("px");class Ei extends $e.Sy{constructor(e){super(e),this._resizeObserver=null,this._blockToolbarConfig=We(this.editor.config.get("blockToolbar")),this.toolbarView=this._createToolbarView(),this.panelView=this._createPanelView(),this.buttonView=this._createButtonView(),s({emitter:this.panelView,contextElements:[this.panelView.element,this.buttonView.element],activator:()=>this.panelView.isVisible,callback:()=>this._hidePanel()})}static get pluginName(){return"BlockToolbar"}init(){const e=this.editor,t=e.t,o=t("Click to edit block"),s=t("Drag to move"),i=t("Edit block"),r=e.plugins.has("DragDropBlockToolbar"),n=r?`${o}\n${s}`:i;this.buttonView.label=n,r&&(this.buttonView.element.dataset.ckeTooltipClass="ck-tooltip_multi-line"),this.listenTo(e.model.document.selection,"change:range",((e,t)=>{t.directChange&&this._hidePanel()})),this.listenTo(e.ui,"update",(()=>this._updateButton())),this.listenTo(e,"change:isReadOnly",(()=>this._updateButton()),{priority:"low"}),this.listenTo(e.ui.focusTracker,"change:isFocused",(()=>this._updateButton())),this.listenTo(this.buttonView,"change:isVisible",((e,t,o)=>{o?this.buttonView.listenTo(window,"resize",(()=>this._updateButton())):(this.buttonView.stopListening(window,"resize"),this._hidePanel())})),e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this._showPanel(),afterBlur:()=>this._hidePanel()})}afterInit(){this.toolbarView.fillFromConfig(this._blockToolbarConfig,this.editor.ui.componentFactory);for(const e of this.toolbarView.items)e.on("execute",(()=>this._hidePanel(!0)),{priority:"high"})}destroy(){super.destroy(),this.panelView.destroy(),this.buttonView.destroy(),this.toolbarView.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_createToolbarView(){const e=this.editor.locale.t,t=!this._blockToolbarConfig.shouldNotGroupWhenFull,o=new Ke(this.editor.locale,{shouldGroupWhenFull:t,isFloating:!0});return o.ariaLabel=e("Editor block content toolbar"),o}_createPanelView(){const e=this.editor,t=new Io(e.locale);return t.content.add(this.toolbarView),t.class="ck-toolbar-container",e.ui.view.body.add(t),e.ui.focusTracker.add(t.element),this.toolbarView.keystrokes.set("Esc",((e,t)=>{this._hidePanel(!0),t()})),t}_createButtonView(){const e=this.editor,t=e.t,o=new Ci(e.locale),s=this._blockToolbarConfig.icon,i=Ge[s]||s||Ge.dragIndicator;return o.set({label:t("Edit block"),icon:i,withText:!1}),o.bind("isOn").to(this.panelView,"isVisible"),o.bind("tooltip").to(this.panelView,"isVisible",(e=>!e)),this.listenTo(o,"execute",(()=>{this.panelView.isVisible?this._hidePanel(!0):this._showPanel()})),e.ui.view.body.add(o),e.ui.focusTracker.add(o.element),o}_updateButton(){const e=this.editor,t=e.model,o=e.editing.view;if(!e.ui.focusTracker.isFocused)return void this._hideButton();if(!e.model.canEditAt(e.model.document.selection))return void this._hideButton();const s=Array.from(t.document.selection.getSelectedBlocks())[0];if(!s||Array.from(this.toolbarView.items).every((e=>!e.isEnabled)))return void this._hideButton();const i=o.domConverter.mapViewToDom(e.editing.mapper.toViewElement(s));this.buttonView.isVisible=!0,this._setupToolbarResize(),this._attachButtonToElement(i),this.panelView.isVisible&&this._showPanel()}_hideButton(){this.buttonView.isVisible=!1}_showPanel(){if(!this.buttonView.isVisible)return;const e=this.panelView.isVisible;this.panelView.show();const t=this._getSelectedEditableElement();this.toolbarView.maxWidth=this._getToolbarMaxWidth(t),this.panelView.pin({target:this.buttonView.element,limiter:t}),e||this.toolbarView.items.get(0).focus()}_getSelectedEditableElement(){const e=this.editor.model.document.selection.getFirstRange().root.rootName;return this.editor.ui.getEditableElement(e)}_hidePanel(e){this.panelView.isVisible=!1,e&&this.editor.editing.view.focus()}_attachButtonToElement(e){const t=window.getComputedStyle(e),o=new c.UL(this._getSelectedEditableElement()),s=parseInt(t.paddingTop,10),i=parseInt(t.lineHeight,10)||1.2*parseInt(t.fontSize,10),r=new c.UL(this.buttonView.element),n=new c.UL(e);let a;a="ltr"===this.editor.locale.uiLanguageDirection?o.left-r.width:o.right;const l=n.top+s+(i-r.height)/2;r.moveTo(a,l);const d=r.toAbsoluteRect();this.buttonView.top=d.top,this.buttonView.left=d.left}_setupToolbarResize(){const e=this._getSelectedEditableElement();this._blockToolbarConfig.shouldNotGroupWhenFull||(this._resizeObserver&&this._resizeObserver.element!==e&&(this._resizeObserver.destroy(),this._resizeObserver=null),this._resizeObserver||(this._resizeObserver=new c.do(e,(()=>{this.toolbarView.maxWidth=this._getToolbarMaxWidth(e)}))))}_getToolbarMaxWidth(e){const t=new c.UL(e),o=new c.UL(this.buttonView.element),s="rtl"===this.editor.locale.uiLanguageDirection?o.left-t.right+o.width:t.left-o.left;return Ti(t.width+s)}}const Ai={colorPaletteIcon:ao}},"./packages/ckeditor5-ui/src/search/filteredview.ts":()=>{},"./packages/ckeditor5-utils/src/ckeditorerror.ts":(e,t,o)=>{"use strict";o.d(t,{H:()=>n,KE:()=>r,ZP:()=>i});const s="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class i extends Error{constructor(e,t,o){super(function(e,t){const o=new WeakSet,s=(e,t)=>{if("object"==typeof t&&null!==t){if(o.has(t))return`[object ${t.constructor.name}]`;o.add(t)}return t},i=t?` ${JSON.stringify(t,s)}`:"",r=a(e);return e+i+r}(e,o)),this.name="CKEditorError",this.context=t,this.data=o}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const o=new i(e.message,t);throw o.stack=e.stack,o}}function r(e,t){console.warn(...c(e,t))}function n(e,t){console.error(...c(e,t))}function a(e){return`\nRead more: ${s}#error-${e}`}function c(e,t){const o=a(e);return t?[e,t,o]:[e,o]}},"./packages/ckeditor5-utils/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{Bb:()=>w.ZP,FE:()=>mt,De:()=>re,Xu:()=>he,a6:()=>H,ln:()=>C,M3:()=>f,Rh:()=>_t,VD:()=>kt,go:()=>gt,Re:()=>F,UL:()=>Pe,do:()=>Oe,fZ:()=>U,Rt:()=>K,QX:()=>G,az:()=>te,gw:()=>At,Hg:()=>d,Pk:()=>h,OB:()=>r,$J:()=>Ct,HZ:()=>a,wm:()=>me,Ps:()=>bt,dk:()=>be,lo:()=>ke,Cq:()=>rt,yy:()=>_e,XU:()=>at,j9:()=>ut,mA:()=>lt,xZ:()=>Fe,global:()=>ge,cq:()=>Me,ZQ:()=>Ve,VG:()=>_,dj:()=>ct,tO:()=>Ot,C3:()=>Be,Zt:()=>dt,Cb:()=>Rt,pp:()=>Vt,YK:()=>It,to:()=>Mt,TW:()=>J,nA:()=>jt,UG:()=>ce,bR:()=>ve,Gs:()=>we,$b:()=>Ie,pn:()=>De,Do:()=>st,H:()=>w.H,KE:()=>w.KE,CD:()=>u,Zz:()=>nt,tA:()=>b,Dm:()=>k.D,Od:()=>We,XD:()=>Pt,F0:()=>qe,mR:()=>$e,jS:()=>Re,x:()=>Et,qo:()=>pt,qL:()=>wt,nn:()=>je,hQ:()=>m,Tx:()=>St,i8:()=>k.Z,Dc:()=>vt});const s=function(){try{return navigator.userAgent.toLowerCase()}catch(e){return""}}();var i;const r={isMac:n(s),isWindows:(i=s,i.indexOf("windows")>-1),isGecko:function(e){return!!e.match(/gecko\/\d+/)}(s),isSafari:function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(s),isiOS:function(e){return!!e.match(/iphone|ipad/i)||n(e)&&navigator.maxTouchPoints>0}(s),isAndroid:function(e){return e.indexOf("android")>-1}(s),isBlink:function(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}(s),features:{isRegExpUnicodePropertySupported:function(){let e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}()}};function n(e){return e.indexOf("macintosh")>-1}function a(e,t,o,s){o=o||function(e,t){return e===t};const i=Array.isArray(e)?e:Array.prototype.slice.call(e),r=Array.isArray(t)?t:Array.prototype.slice.call(t),n=function(e,t,o){const s=c(e,t,o);if(-1===s)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=l(e,s),r=l(t,s),n=c(i,r,o),a=e.length-n,d=t.length-n;return{firstIndex:s,lastIndexOld:a,lastIndexNew:d}}(i,r,o),a=s?function(e,t){const{firstIndex:o,lastIndexOld:s,lastIndexNew:i}=e;if(-1===o)return Array(t).fill("equal");let r=[];o>0&&(r=r.concat(Array(o).fill("equal")));i-o>0&&(r=r.concat(Array(i-o).fill("insert")));s-o>0&&(r=r.concat(Array(s-o).fill("delete")));i<t&&(r=r.concat(Array(t-i).fill("equal")));return r}(n,r.length):function(e,t){const o=[],{firstIndex:s,lastIndexOld:i,lastIndexNew:r}=t;r-s>0&&o.push({index:s,type:"insert",values:e.slice(s,r)});i-s>0&&o.push({index:s+(r-s),type:"delete",howMany:i-s});return o}(r,n);return a}function c(e,t,o){for(let s=0;s<Math.max(e.length,t.length);s++)if(void 0===e[s]||void 0===t[s]||!o(e[s],t[s]))return s;return-1}function l(e,t){return e.slice(t).reverse()}function d(e,t,o){o=o||function(e,t){return e===t};const s=e.length,i=t.length;if(s>200||i>200||s+i>300)return d.fastDiff(e,t,o,!0);let r,n;if(i<s){const o=e;e=t,t=o,r="delete",n="insert"}else r="insert",n="delete";const a=e.length,c=t.length,l=c-a,h={},u={};function p(s){const i=(void 0!==u[s-1]?u[s-1]:-1)+1,l=void 0!==u[s+1]?u[s+1]:-1,d=i>l?-1:1;h[s+d]&&(h[s]=h[s+d].slice(0)),h[s]||(h[s]=[]),h[s].push(i>l?r:n);let p=Math.max(i,l),f=p-s;for(;f<a&&p<c&&o(e[f],t[p]);)f++,p++,h[s].push("equal");return p}let f,g=0;do{for(f=-g;f<l;f++)u[f]=p(f);for(f=l+g;f>l;f--)u[f]=p(f);u[l]=p(l),g++}while(u[l]!==c);return h[l].slice(1)}function h(e,t){const o=[];let s=0,i=null;return e.forEach((e=>{"equal"==e?(r(),s++):"insert"==e?(i&&"insert"==i.type?i.values.push(t[s]):(r(),i={type:"insert",index:s,values:[t[s]]}),s++):i&&"delete"==i.type?i.howMany++:(r(),i={type:"delete",index:s,howMany:1})})),r(),o;function r(){i&&(o.push(i),i=null)}}function u(e,...t){t.forEach((t=>{const o=Object.getOwnPropertyNames(t),s=Object.getOwnPropertySymbols(t);o.concat(s).forEach((o=>{if(o in e.prototype)return;if("function"==typeof t&&("length"==o||"name"==o||"prototype"==o))return;const s=Object.getOwnPropertyDescriptor(t,o);s.enumerable=!1,Object.defineProperty(e.prototype,o,s)}))}))}d.fastDiff=a;const p=function(){return function e(){e.called=!0}};class f{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=p(),this.off=p()}}const g=new Array(256).fill("").map(((e,t)=>("0"+t.toString(16)).slice(-2)));function m(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0,s=4294967296*Math.random()>>>0;return"e"+g[e>>0&255]+g[e>>8&255]+g[e>>16&255]+g[e>>24&255]+g[t>>0&255]+g[t>>8&255]+g[t>>16&255]+g[t>>24&255]+g[o>>0&255]+g[o>>8&255]+g[o>>16&255]+g[o>>24&255]+g[s>>0&255]+g[s>>8&255]+g[s>>16&255]+g[s>>24&255]}const b={get(e="normal"){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function _(e,t){const o=b.get(t.priority);for(let s=0;s<e.length;s++)if(b.get(e[s].priority)<o)return void e.splice(s,0,t);e.push(t)}var k=o("./packages/ckeditor5-utils/src/version.ts"),w=o("./packages/ckeditor5-utils/src/ckeditorerror.ts");const v=Symbol("listeningTo"),y=Symbol("emitterId"),x=Symbol("delegations"),P=C(Object);function C(e){if(!e)return P;return class extends e{on(e,t,o){this.listenTo(this,e,t,o)}once(e,t,o){let s=!1;this.listenTo(this,e,((e,...o)=>{s||(s=!0,e.off(),t.call(this,e,...o))}),o)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,o,s={}){let i,r;this[v]||(this[v]={});const n=this[v];E(e)||T(e);const a=E(e);(i=n[a])||(i=n[a]={emitter:e,callbacks:{}}),(r=i.callbacks[t])||(r=i.callbacks[t]=[]),r.push(o),function(e,t,o,s,i){t._addEventListener?t._addEventListener(o,s,i):e._addEventListener.call(t,o,s,i)}(this,e,t,o,s)}stopListening(e,t,o){const s=this[v];let i=e&&E(e);const r=s&&i?s[i]:void 0,n=r&&t?r.callbacks[t]:void 0;if(!(!s||e&&!r||t&&!n))if(o){j(this,e,t,o);-1!==n.indexOf(o)&&(1===n.length?delete r.callbacks[t]:j(this,e,t,o))}else if(n){for(;o=n.pop();)j(this,e,t,o);delete r.callbacks[t]}else if(r){for(t in r.callbacks)this.stopListening(e,t);delete s[i]}else{for(i in s)this.stopListening(s[i].emitter);delete this[v]}}fire(e,...t){try{const o=e instanceof f?e:new f(this,e),s=o.name;let i=O(this,s);if(o.path.push(this),i){const e=[o,...t];i=Array.from(i);for(let t=0;t<i.length&&(i[t].callback.apply(this,e),o.off.called&&(delete o.off.called,this._removeEventListener(s,i[t].callback)),!o.stop.called);t++);}const r=this[x];if(r){const e=r.get(s),i=r.get("*");e&&R(e,o,t),i&&R(i,o,t)}return o.return}catch(e){w.ZP.rethrowUnexpectedError(e,this)}}delegate(...e){return{to:(t,o)=>{this[x]||(this[x]=new Map),e.forEach((e=>{const s=this[x].get(e);s?s.set(t,o):this[x].set(e,new Map([[t,o]]))}))}}}stopDelegating(e,t){if(this[x])if(e)if(t){const o=this[x].get(e);o&&o.delete(t)}else this[x].delete(e);else this[x].clear()}_addEventListener(e,t,o){!function(e,t){const o=A(e);if(o[t])return;let s=t,i=null;const r=[];for(;""!==s&&!o[s];)o[s]={callbacks:[],childEvents:[]},r.push(o[s]),i&&o[s].childEvents.push(i),i=s,s=s.substr(0,s.lastIndexOf(":"));if(""!==s){for(const e of r)e.callbacks=o[s].callbacks.slice();o[s].childEvents.push(i)}}(this,e);const s=S(this,e),i={callback:t,priority:b.get(o.priority)};for(const e of s)_(e,i)}_removeEventListener(e,t){const o=S(this,e);for(const e of o)for(let o=0;o<e.length;o++)e[o].callback==t&&(e.splice(o,1),o--)}}}function T(e,t){e[y]||(e[y]=t||m())}function E(e){return e[y]}function A(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function S(e,t){const o=A(e)[t];if(!o)return[];let s=[o.callbacks];for(let t=0;t<o.childEvents.length;t++){const i=S(e,o.childEvents[t]);s=s.concat(i)}return s}function O(e,t){let o;return e._events&&(o=e._events[t])&&o.callbacks.length?o.callbacks:t.indexOf(":")>-1?O(e,t.substr(0,t.lastIndexOf(":"))):null}function R(e,t,o){for(let[s,i]of e){i?"function"==typeof i&&(i=i(t.name)):i=t.name;const e=new f(t.source,i);e.path=[...t.path],s.fire(e,...o)}}function j(e,t,o,s){t._removeEventListener?t._removeEventListener(o,s):e._removeEventListener.call(t,o,s)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{C[e]=P.prototype[e]}));var M=o("./node_modules/lodash-es/isObject.js");const V=Symbol("observableProperties"),B=Symbol("boundObservables"),I=Symbol("boundProperties"),D=Symbol("decoratedMethods"),N=Symbol("decoratedOriginal"),z=F(C());function F(e){if(!e)return z;return class extends e{set(e,t){if((0,M.Z)(e))return void Object.keys(e).forEach((t=>{this.set(t,e[t])}),this);L(this);const o=this[V];if(e in this&&!o.has(e))throw new w.ZP("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>o.get(e),set(t){const s=o.get(e);let i=this.fire(`set:${e}`,e,t,s);void 0===i&&(i=t),s===i&&o.has(e)||(o.set(e,i),this.fire(`change:${e}`,e,i,s))}}),this[e]=t}bind(...e){if(!e.length||!$(e))throw new w.ZP("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new w.ZP("observable-bind-duplicate-properties",this);L(this);const t=this[I];e.forEach((e=>{if(t.has(e))throw new w.ZP("observable-bind-rebind",this)}));const o=new Map;return e.forEach((e=>{const s={property:e,to:[]};t.set(e,s),o.set(e,s)})),{to:Z,toMany:W,_observable:this,_bindProperties:e,_to:[],_bindings:o}}unbind(...e){if(!this[V])return;const t=this[I],o=this[B];if(e.length){if(!$(e))throw new w.ZP("observable-unbind-wrong-properties",this);e.forEach((e=>{const s=t.get(e);s&&(s.to.forEach((([e,t])=>{const i=o.get(e),r=i[t];r.delete(s),r.size||delete i[t],Object.keys(i).length||(o.delete(e),this.stopListening(e,"change"))})),t.delete(e))}))}else o.forEach(((e,t)=>{this.stopListening(t,"change")})),o.clear(),t.clear()}decorate(e){L(this);const t=this[e];if(!t)throw new w.ZP("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,((e,o)=>{e.return=t.apply(this,o)})),this[e]=function(...t){return this.fire(e,t)},this[e][N]=t,this[D]||(this[D]=[]),this[D].push(e)}stopListening(e,t,o){if(!e&&this[D]){for(const e of this[D])this[e]=this[e][N];delete this[D]}super.stopListening(e,t,o)}}}function L(e){e[V]||(Object.defineProperty(e,V,{value:new Map}),Object.defineProperty(e,B,{value:new Map}),Object.defineProperty(e,I,{value:new Map}))}function Z(...e){const t=function(...e){if(!e.length)throw new w.ZP("observable-bind-to-parse-error",null);const t={to:[]};let o;"function"==typeof e[e.length-1]&&(t.callback=e.pop());return e.forEach((e=>{if("string"==typeof e)o.properties.push(e);else{if("object"!=typeof e)throw new w.ZP("observable-bind-to-parse-error",null);o={observable:e,properties:[]},t.to.push(o)}})),t}(...e),o=Array.from(this._bindings.keys()),s=o.length;if(!t.callback&&t.to.length>1)throw new w.ZP("observable-bind-to-no-callback",this);if(s>1&&t.callback)throw new w.ZP("observable-bind-to-extra-callback",this);var i;t.to.forEach((e=>{if(e.properties.length&&e.properties.length!==s)throw new w.ZP("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)})),this._to=t.to,t.callback&&(this._bindings.get(o[0]).callback=t.callback),i=this._observable,this._to.forEach((e=>{const t=i[B];let o;t.get(e.observable)||i.listenTo(e.observable,"change",((s,r)=>{o=t.get(e.observable)[r],o&&o.forEach((e=>{q(i,e.property)}))}))})),function(e){let t;e._bindings.forEach(((o,s)=>{e._to.forEach((i=>{t=i.properties[o.callback?0:e._bindProperties.indexOf(s)],o.to.push([i.observable,t]),function(e,t,o,s){const i=e[B],r=i.get(o),n=r||{};n[s]||(n[s]=new Set);n[s].add(t),r||i.set(o,n)}(e._observable,o,i.observable,t)}))}))}(this),this._bindProperties.forEach((e=>{q(this._observable,e)}))}function W(e,t,o){if(this._bindings.size>1)throw new w.ZP("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){const o=e.map((e=>[e,t]));return Array.prototype.concat.apply([],o)}(e,t),o)}function $(e){return e.every((e=>"string"==typeof e))}function q(e,t){const o=e[I].get(t);let s;o.callback?s=o.callback.apply(e,o.to.map((e=>e[0][e[1]]))):(s=o.to[0],s=s[0][s[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=s:e.set(t,s)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{F[e]=z.prototype[e]}));class H{constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach((({element:e,newElement:t})=>{e.style.display="",t&&t.remove()})),this._replacedElements=[]}}function U(e){let t=new AbortController;function o(...o){return t.abort(),t=new AbortController,e(t.signal,...o)}return o.abort=()=>t.abort(),o}function G(e){let t=0;for(const o of e)t++;return t}function K(e,t){const o=Math.min(e.length,t.length);for(let s=0;s<o;s++)if(e[s]!=t[s])return s;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}function J(e){return!(!e||!e[Symbol.iterator])}var Y=o("./node_modules/lodash-es/_baseGetTag.js"),X=o("./node_modules/lodash-es/isArray.js"),Q=o("./node_modules/lodash-es/isObjectLike.js");const ee=function(e){return"string"==typeof e||!(0,X.Z)(e)&&(0,Q.Z)(e)&&"[object String]"==(0,Y.Z)(e)};function te(e,t,o={},s=[]){const i=o&&o.xmlns,r=i?e.createElementNS(i,t):e.createElement(t);for(const e in o)r.setAttribute(e,o[e]);!ee(s)&&J(s)||(s=[s]);for(let t of s)ee(t)&&(t=e.createTextNode(t)),r.appendChild(t);return r}var oe=o("./node_modules/lodash-es/isPlainObject.js"),se=o("./node_modules/lodash-es/cloneDeepWith.js"),ie=o("./node_modules/lodash-es/isElement.js");class re{constructor(e,t){this._config={},t&&this.define(ne(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,o,s=!1){if((0,oe.Z)(t))return void this._setObjectToTarget(e,t,s);const i=t.split(".");t=i.pop();for(const t of i)(0,oe.Z)(e[t])||(e[t]={}),e=e[t];if((0,oe.Z)(o))return(0,oe.Z)(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,o,s);s&&void 0!==e[t]||(e[t]=o)}_getFromSource(e,t){const o=t.split(".");t=o.pop();for(const t of o){if(!(0,oe.Z)(e[t])){e=null;break}e=e[t]}return e?ne(e[t]):void 0}_setObjectToTarget(e,t,o){Object.keys(t).forEach((s=>{this._setToTarget(e,s,t[s],o)}))}}function ne(e){return(0,se.Z)(e,ae)}function ae(e){return(0,ie.Z)(e)||"function"==typeof e?e:void 0}function ce(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function le(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}const de=he(C());function he(e){if(!e)return de;return class extends e{listenTo(e,t,o,s={}){if(ce(e)||le(e)){const i={capture:!!s.useCapture,passive:!!s.usePassive},r=this._getProxyEmitter(e,i)||new ue(e,i);this.listenTo(r,t,o,s)}else super.listenTo(e,t,o,s)}stopListening(e,t,o){if(ce(e)||le(e)){const s=this._getAllProxyEmitters(e);for(const e of s)this.stopListening(e,t,o)}else super.stopListening(e,t,o)}_getProxyEmitter(e,t){return function(e,t){const o=e[v];return o&&o[t]?o[t].emitter:null}(this,pe(e,t))}_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((t=>this._getProxyEmitter(e,t))).filter((e=>!!e))}}}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{he[e]=de.prototype[e]}));class ue extends(C()){constructor(e,t){super(),T(this,pe(e,t)),this._domNode=e,this._options=t}attach(e){if(this._domListeners&&this._domListeners[e])return;const t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}_addEventListener(e,t,o){this.attach(e),C().prototype._addEventListener.call(this,e,t,o)}_removeEventListener(e,t){C().prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){const t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}}function pe(e,t){let o=function(e){return e["data-ck-expando"]||(e["data-ck-expando"]=m())}(e);for(const e of Object.keys(t).sort())t[e]&&(o+="-"+e);return o}let fe;try{fe={window,document}}catch(e){fe={window:{},document:{}}}const ge=fe;function me(e){let t=e.parentElement;if(!t)return null;for(;"BODY"!=t.tagName;){const e=t.style.overflowY||ge.window.getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)break;if(t=t.parentElement,!t)return null}return t}function be(e){const t=[];let o=e;for(;o&&o.nodeType!=Node.DOCUMENT_NODE;)t.unshift(o),o=o.parentNode;return t}function _e(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}function ke(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function we(e){return"[object Text]"==Object.prototype.toString.call(e)}function ve(e){return"[object Range]"==Object.prototype.toString.apply(e)}function ye(e){return e&&e.parentNode?e.offsetParent===ge.document.body?null:e.offsetParent:null}const xe=["top","right","bottom","left","width","height"];class Pe{constructor(e){const t=ve(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),Ee(e)||t)if(t){const t=Pe.getDomRangeRects(e);Ce(this,Pe.getBoundingRect(t))}else Ce(this,e.getBoundingClientRect());else if(le(e)){const{innerWidth:t,innerHeight:o}=e;Ce(this,{top:0,right:t,bottom:o,left:0,width:t,height:o})}else Ce(this,e)}clone(){return new Pe(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left),width:0,height:0};if(t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0)return null;{const e=new Pe(t);return e._source=this._source,e}}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(Te(e))return t;let o,s=e,i=e.parentNode||e.commonAncestorContainer;for(;i&&!Te(i);){const e="visible"===((r=i)instanceof HTMLElement?r.ownerDocument.defaultView.getComputedStyle(r).overflow:"visible");s instanceof HTMLElement&&"absolute"===Ae(s)&&(o=s);const n=Ae(i);if(e||o&&("relative"===n&&e||"relative"!==n)){s=i,i=i.parentNode;continue}const a=new Pe(i),c=t.getIntersection(a);if(!c)return null;c.getArea()<t.getArea()&&(t=c),s=i,i=i.parentNode}var r;return t}isEqual(e){for(const t of xe)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}toAbsoluteRect(){const{scrollX:e,scrollY:t}=ge.window,o=this.clone().moveBy(e,t);if(Ee(o._source)){const e=ye(o._source);e&&function(e,t){const o=new Pe(t),s=ke(t);let i=0,r=0;i-=o.left,r-=o.top,i+=t.scrollLeft,r+=t.scrollTop,i-=s.left,r-=s.top,e.moveBy(i,r)}(o,e)}return o}excludeScrollbarsAndBorders(){const e=this._source;let t,o,s;if(le(e))t=e.innerWidth-e.document.documentElement.clientWidth,o=e.innerHeight-e.document.documentElement.clientHeight,s=e.getComputedStyle(e.document.documentElement).direction;else{const i=ke(e);t=e.offsetWidth-e.clientWidth-i.left-i.right,o=e.offsetHeight-e.clientHeight-i.top-i.bottom,s=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===s?this.right-=t:this.left+=t,this.height-=o,this.bottom-=o,this}static getDomRangeRects(e){const t=[],o=Array.from(e.getClientRects());if(o.length)for(const e of o)t.push(new Pe(e));else{let o=e.startContainer;we(o)&&(o=o.parentNode);const s=new Pe(o.getBoundingClientRect());s.right=s.left,s.width=0,t.push(s)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let o=0;for(const s of e)o++,t.left=Math.min(t.left,s.left),t.top=Math.min(t.top,s.top),t.right=Math.max(t.right,s.right),t.bottom=Math.max(t.bottom,s.bottom);return 0==o?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new Pe(t))}}function Ce(e,t){for(const o of xe)e[o]=t[o]}function Te(e){return!!Ee(e)&&e===e.ownerDocument.body}function Ee(e){return null!==e&&"object"==typeof e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect}function Ae(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).position:"static"}const Se=class{constructor(e,t){Se._observerInstance||Se._createObserver(),this._element=e,this._callback=t,Se._addElementCallback(e,t),Se._observerInstance.observe(e)}get element(){return this._element}destroy(){Se._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){Se._elementCallbacks||(Se._elementCallbacks=new Map);let o=Se._elementCallbacks.get(e);o||(o=new Set,Se._elementCallbacks.set(e,o)),o.add(t)}static _deleteElementCallback(e,t){const o=Se._getElementCallbacks(e);o&&(o.delete(t),o.size||(Se._elementCallbacks.delete(e),Se._observerInstance.unobserve(e))),Se._elementCallbacks&&!Se._elementCallbacks.size&&(Se._observerInstance=null,Se._elementCallbacks=null)}static _getElementCallbacks(e){return Se._elementCallbacks?Se._elementCallbacks.get(e):null}static _createObserver(){Se._observerInstance=new ge.window.ResizeObserver((e=>{for(const t of e){const e=Se._getElementCallbacks(t.target);if(e)for(const o of e)o(t)}}))}};let Oe=Se;function Re(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function je(e){return t=>t+e}function Me(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function Ve(e,t,o){e.insertBefore(o,e.childNodes[t]||null)}function Be(e){return e&&e.nodeType===Node.COMMENT_NODE}function Ie(e){try{ge.document.createAttribute(e)}catch(e){return!1}return!0}function De(e){return!!(e&&e.getClientRects&&e.getClientRects().length)}Oe._observerInstance=null,Oe._elementCallbacks=null;var Ne=o("./node_modules/lodash-es/isFunction.js"),ze=Math.pow;function Fe({element:e,target:t,positions:o,limiter:s,fitInViewport:i,viewportOffsetConfig:r}){(0,Ne.Z)(t)&&(t=t()),(0,Ne.Z)(s)&&(s=s());const n=ye(e),a=function(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new Pe(ge.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t}(r),c=new Pe(e),l=Le(t,a);let d;if(!l||!a.getIntersection(l))return null;const h={targetRect:l,elementRect:c,positionedElementAncestor:n,viewportRect:a};if(s||i){if(s){const e=Le(s,a);e&&(h.limiterRect=e)}d=function(e,t){const{elementRect:o}=t,s=o.getArea(),i=e.map((e=>new Ze(e,t))).filter((e=>!!e.name));let r=0,n=null;for(const e of i){const{limiterIntersectionArea:t,viewportIntersectionArea:o}=e;if(t===s)return e;const i=ze(o,2)+ze(t,2);i>r&&(r=i,n=e)}return n}(o,h)}else d=new Ze(o[0],h);return d}function Le(e,t){const o=new Pe(e).getVisible();return o?o.getIntersection(t):null}class Ze{constructor(e,t){const o=e(t.targetRect,t.elementRect,t.viewportRect,t.limiterRect);if(!o)return;const{left:s,top:i,name:r,config:n}=o;this.name=r,this.config=n,this._positioningFunctionCoordinates={left:s,top:i},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const e=this._options.limiterRect;return e?e.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return 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._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function We(e){const t=e.parentNode;t&&t.removeChild(e)}function $e({target:e,viewportOffset:t=0,ancestorOffset:o=0,alignToTop:s,forceScroll:i}){const r=Xe(e);let n=r,a=null;for(t=function(e){if("number"==typeof e)return{top:e,bottom:e,left:e,right:e};return e}(t);n;){let c;c=Qe(n==r?e:a),Ue({parent:c,getRect:()=>et(e,n),alignToTop:s,ancestorOffset:o,forceScroll:i});const l=et(e,n);if(He({window:n,rect:l,viewportOffset:t,alignToTop:s,forceScroll:i}),n.parent!=n){if(a=n.frameElement,n=n.parent,!a)return}else n=null}}function qe(e,t,o){Ue({parent:Qe(e),getRect:()=>new Pe(e),ancestorOffset:t,limiterElement:o})}function He({window:e,rect:t,alignToTop:o,forceScroll:s,viewportOffset:i}){const r=t.clone().moveBy(0,i.bottom),n=t.clone().moveBy(0,-i.top),a=new Pe(e).excludeScrollbarsAndBorders(),c=o&&s,l=[n,r].every((e=>a.contains(e)));let{scrollX:d,scrollY:h}=e;const u=d,p=h;c?h-=a.top-t.top+i.top:l||(Ke(n,a)?h-=a.top-t.top+i.top:Ge(r,a)&&(h+=o?t.top-a.top-i.top:t.bottom-a.bottom+i.bottom)),l||(Je(t,a)?d-=a.left-t.left+i.left:Ye(t,a)&&(d+=t.right-a.right+i.right)),d==u&&h===p||e.scrollTo(d,h)}function Ue({parent:e,getRect:t,alignToTop:o,forceScroll:s,ancestorOffset:i=0,limiterElement:r}){const n=Xe(e),a=o&&s;let c,l,d;const h=r||n.document.body;for(;e!=h;)l=t(),c=new Pe(e).excludeScrollbarsAndBorders(),d=c.contains(l),a?e.scrollTop-=c.top-l.top+i:d||(Ke(l,c)?e.scrollTop-=c.top-l.top+i:Ge(l,c)&&(e.scrollTop+=o?l.top-c.top-i:l.bottom-c.bottom+i)),d||(Je(l,c)?e.scrollLeft-=c.left-l.left+i:Ye(l,c)&&(e.scrollLeft+=l.right-c.right+i)),e=e.parentNode}function Ge(e,t){return e.bottom>t.bottom}function Ke(e,t){return e.top<t.top}function Je(e,t){return e.left<t.left}function Ye(e,t){return e.right>t.right}function Xe(e){return ve(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Qe(e){if(ve(e)){let t=e.commonAncestorContainer;return we(t)&&(t=t.parentNode),t}return e.parentNode}function et(e,t){const o=Xe(e),s=new Pe(e);if(o===t)return s;{let e=o;for(;e!=t;){const t=e.frameElement,o=new Pe(t).excludeScrollbarsAndBorders();s.moveBy(o.left,o.top),e=e.parent}}return s}const tt={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},ot={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},st=function(){const e={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++){e[String.fromCharCode(t).toLowerCase()]=t}for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;for(const t of"`-=[];',./\\")e[t]=t.charCodeAt(0);return e}(),it=Object.fromEntries(Object.entries(st).map((([e,t])=>[t,e.charAt(0).toUpperCase()+e.slice(1)])));function rt(e){let t;if("string"==typeof e){if(t=st[e.toLowerCase()],!t)throw new w.ZP("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?st.alt:0)+(e.ctrlKey?st.ctrl:0)+(e.shiftKey?st.shift:0)+(e.metaKey?st.cmd:0);return t}function nt(e){return"string"==typeof e&&(e=function(e){return e.split("+").map((e=>e.trim()))}(e)),e.map((e=>"string"==typeof e?function(e){if(e.endsWith("!"))return rt(e.slice(0,-1));const t=rt(e);return(r.isMac||r.isiOS)&&t==st.ctrl?st.cmd:t}(e):e)).reduce(((e,t)=>t+e),0)}function at(e){let t=nt(e);return Object.entries(r.isMac||r.isiOS?tt:ot).reduce(((e,[o,s])=>(0!=(t&st[o])&&(t&=~st[o],e+=s),e)),"")+(t?it[t]:"")}function ct(e){return e==st.arrowright||e==st.arrowleft||e==st.arrowup||e==st.arrowdown}function lt(e,t){const o="ltr"===t;switch(e){case st.arrowleft:return o?"left":"right";case st.arrowright:return o?"right":"left";case st.arrowup:return"up";case st.arrowdown:return"down"}}function dt(e,t){const o=lt(e,t);return"down"===o||"right"===o}const ht=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function ut(e){return ht.includes(e)?"rtl":"ltr"}function pt(e){return Array.isArray(e)?e:[e]}function ft(e,t,o=1){if("number"!=typeof o)throw new w.ZP("translation-service-quantity-not-a-number",null,{quantity:o});const s=Object.keys(ge.window.CKEDITOR_TRANSLATIONS).length;1===s&&(e=Object.keys(ge.window.CKEDITOR_TRANSLATIONS)[0]);const i=t.id||t.string;if(0===s||!function(e,t){return!!ge.window.CKEDITOR_TRANSLATIONS[e]&&!!ge.window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,i))return 1!==o?t.plural:t.string;const r=ge.window.CKEDITOR_TRANSLATIONS[e].dictionary,n=ge.window.CKEDITOR_TRANSLATIONS[e].getPluralForm||(e=>1===e?0:1),a=r[i];if("string"==typeof a)return a;return a[Number(n(o))]}ge.window.CKEDITOR_TRANSLATIONS||(ge.window.CKEDITOR_TRANSLATIONS={});class gt{constructor({uiLanguage:e="en",contentLanguage:t}={}){this.uiLanguage=e,this.contentLanguage=t||this.uiLanguage,this.uiLanguageDirection=ut(this.uiLanguage),this.contentLanguageDirection=ut(this.contentLanguage),this.t=(e,t)=>this._t(e,t)}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(e,t=[]){t=pt(t),"string"==typeof e&&(e={string:e});const o=!!e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,((e,o)=>o<t.length?t[o]:e))}(ft(this.uiLanguage,e,o),t)}}class mt extends(C()){constructor(e={},t={}){super();const o=J(e);if(o||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],o)for(const t of e)this._items.push(t),this._itemMap.set(this._getItemIdBeforeAdding(t),t)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new w.ZP("collection-add-item-invalid-index",this);let o=0;for(const s of e){const e=this._getItemIdBeforeAdding(s),i=t+o;this._items.splice(i,0,s),this._itemMap.set(e,s),this.fire("add",s,i),o++}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new w.ZP("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if("string"==typeof e)return this._itemMap.has(e);{const t=e[this._idProperty];return t&&this._itemMap.has(t)}}getIndex(e){let t;return t="string"==typeof e?this._itemMap.get(e):e,t?this._items.indexOf(t):-1}remove(e){const[t,o]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:o}),t}map(e,t){return this._items.map(e,t)}forEach(e,t){this._items.forEach(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new w.ZP("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding((t=>new e(t)))},using:e=>{"function"==typeof e?this._setUpBindToBinding(e):this._setUpBindToBinding((t=>t[e]))}}}_setUpBindToBinding(e){const t=this._bindToCollection,o=(o,s,i)=>{const r=t._bindToCollection==this,n=t._bindToInternalToExternalMap.get(s);if(r&&n)this._bindToExternalToInternalMap.set(s,n),this._bindToInternalToExternalMap.set(n,s);else{const o=e(s);if(!o)return void this._skippedIndexesFromExternal.push(i);let r=i;for(const e of this._skippedIndexesFromExternal)i>e&&r--;for(const e of t._skippedIndexesFromExternal)r>=e&&r++;this._bindToExternalToInternalMap.set(s,o),this._bindToInternalToExternalMap.set(o,s),this.add(o,r);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)r<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(const e of t)o(0,e,t.getIndex(e));this.listenTo(t,"add",o),this.listenTo(t,"remove",((e,t,o)=>{const s=this._bindToExternalToInternalMap.get(t);s&&this.remove(s),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((e,t)=>(o<t&&e.push(t-1),o>t&&e.push(t),e)),[])}))}_getItemIdBeforeAdding(e){const t=this._idProperty;let o;if(t in e){if(o=e[t],"string"!=typeof o)throw new w.ZP("collection-add-invalid-id",this);if(this.get(o))throw new w.ZP("collection-add-item-already-exists",this)}else e[t]=o=m();return o}_remove(e){let t,o,s,i=!1;const r=this._idProperty;if("string"==typeof e?(o=e,s=this._itemMap.get(o),i=!s,s&&(t=this._items.indexOf(s))):"number"==typeof e?(t=e,s=this._items[t],i=!s,s&&(o=s[r])):(s=e,o=s[r],t=this._items.indexOf(s),i=-1==t||!this._itemMap.get(o)),i)throw new w.ZP("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(o);const n=this._bindToInternalToExternalMap.get(s);return this._bindToInternalToExternalMap.delete(s),this._bindToExternalToInternalMap.delete(n),this.fire("remove",s,t),[s,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function bt(e){const t=e.next();return t.done?null:t.value}class _t extends(he(F())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(e){if(this._elements.has(e))throw new w.ZP("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(()=>this._focus(e)),{useCapture:!0}),this.listenTo(e,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(e)}remove(e){e===this.focusedElement&&this._blur(),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}class kt{constructor(){this._listener=new(he())}listenTo(e){this._listener.listenTo(e,"keydown",((e,t)=>{this._listener.fire("_keydown:"+rt(t),t)}))}set(e,t,o={}){const s=nt(e),i=o.priority;this._listener.listenTo(this._listener,"_keydown:"+s,((e,o)=>{t(o,(()=>{o.preventDefault(),o.stopPropagation(),e.stop()})),e.return=!0}),{priority:i})}press(e){return!!this._listener.fire("_keydown:"+rt(e),e)}stopListening(e){this._listener.stopListening(e)}destroy(){this.stopListening()}}function wt(e){return J(e)?new Map(e):function(e){const t=new Map;for(const o in e)t.set(o,e[o]);return t}(e)}function vt(e,t={}){return new Promise(((o,s)=>{const i=t.signal||(new AbortController).signal;i.throwIfAborted();const r=setTimeout((function(){i.removeEventListener("abort",n),o()}),e);function n(){clearTimeout(r),s(i.reason)}i.addEventListener("abort",n,{once:!0})}))}var yt=Math.pow,xt=(e,t,o)=>new Promise(((s,i)=>{var r=e=>{try{a(o.next(e))}catch(e){i(e)}},n=e=>{try{a(o.throw(e))}catch(e){i(e)}},a=e=>e.done?s(e.value):Promise.resolve(e.value).then(r,n);a((o=o.apply(e,t)).next())}));function Pt(e){return xt(this,arguments,(function*(e,t={}){const{maxAttempts:o=4,retryDelay:s=Ct(),signal:i=(new AbortController).signal}=t;i.throwIfAborted();for(let t=0;;t++){try{return yield e()}catch(e){if(t+1>=o)throw e}yield vt(s(t),{signal:i})}}))}function Ct(e={}){const{delay:t=1e3,factor:o=2,maxDelay:s=1e4}=e;return e=>Math.min(yt(o,e)*t,s)}const Tt=1e4;function Et(e,t,o,s){if(Math.max(t.length,e.length)>Tt)return e.slice(0,o).concat(t).concat(e.slice(o+s,e.length));{const i=Array.from(e);return i.splice(o,s,...t),i}}function At(e,t){let o;function s(...i){s.cancel(),o=setTimeout((()=>e(...i)),t)}return s.cancel=()=>{clearTimeout(o)},s}function St(e){function t(e){return e.length>=40&&e.length<=255?"VALID":"INVALID"}if(!e)return"INVALID";let o="";try{o=atob(e)}catch(e){return"INVALID"}const s=o.split("-"),i=s[0],r=s[1];if(!r)return t(e);try{atob(r)}catch(o){try{if(atob(i),!atob(i).length)return t(e)}catch(o){return t(e)}}if(i.length<40||i.length>255)return"INVALID";let n="";try{atob(i),n=atob(r)}catch(e){return"INVALID"}if(8!==n.length)return"INVALID";const a=Number(n.substring(0,4)),c=Number(n.substring(4,6))-1,l=Number(n.substring(6,8)),d=new Date(a,c,l);return d<k.D||isNaN(Number(d))?"INVALID":"VALID"}function Ot(e){return!!e&&1==e.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e)}function Rt(e){return!!e&&1==e.length&&/[\ud800-\udbff]/.test(e)}function jt(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}function Mt(e,t){return Rt(e.charAt(t-1))&&jt(e.charAt(t))}function Vt(e,t){return Ot(e.charAt(t))}const Bt=function(){const e=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],t=new RegExp("\\p{Regional_Indicator}{2}","u").source,o="(?:"+e.map((e=>e.source)).join("|")+")";return new RegExp(`${t}|${o}(?:â€${o})*`,"ug")}();function It(e,t){const o=String(e).matchAll(Bt);return Array.from(o).some((e=>e.index<t&&t<e.index+e[0].length))}},"./packages/ckeditor5-utils/src/version.ts":(e,t,o)=>{"use strict";o.d(t,{D:()=>n,Z:()=>r});var s=o("./packages/ckeditor5-utils/src/ckeditorerror.ts");const i="40.2.0",r=i,n=new Date(2023,11,12);if(globalThis.CKEDITOR_VERSION)throw new s.ZP("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=i},"./packages/ckeditor5-widget/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{s4:()=>f,Uo:()=>g,$L:()=>W,WR:()=>ce,e8:()=>q,Ww:()=>D,KT:()=>P,id:()=>y,Qd:()=>m,em:()=>w,l6:()=>v,XC:()=>b,sC:()=>x,$n:()=>C});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-engine/src/index.ts"),r=o("./packages/ckeditor5-typing/src/index.ts"),n=o("./packages/ckeditor5-utils/src/index.ts"),a=o("./packages/ckeditor5-ui/src/index.ts"),c=o("./packages/ckeditor5-enter/src/index.ts");class l extends((0,n.ln)()){constructor(){super(...arguments),this._stack=[]}add(e,t){const o=this._stack,s=o[0];this._insertDescriptor(e);const i=o[0];s===i||d(s,i)||this.fire("change:top",{oldDescriptor:s,newDescriptor:i,writer:t})}remove(e,t){const o=this._stack,s=o[0];this._removeDescriptor(e);const i=o[0];s===i||d(s,i)||this.fire("change:top",{oldDescriptor:s,newDescriptor:i,writer:t})}_insertDescriptor(e){const t=this._stack,o=t.findIndex((t=>t.id===e.id));if(d(e,t[o]))return;o>-1&&t.splice(o,1);let s=0;for(;t[s]&&h(t[s],e);)s++;t.splice(s,0,e)}_removeDescriptor(e){const t=this._stack,o=t.findIndex((t=>t.id===e));o>-1&&t.splice(o,1)}}function d(e,t){return e&&t&&e.priority==t.priority&&u(e.classes)==u(t.classes)}function h(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&u(e.classes)>u(t.classes)}function u(e){return Array.isArray(e)?e.sort().join(","):e}const p='<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>',f="ck-widget",g="ck-widget_selected";function m(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function b(e,t,o={}){if(!e.is("containerElement"))throw new n.Bb("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass(f,e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=T,t.setCustomProperty("widgetLabel",[],e),o.label&&v(e,o.label),o.hasSelectionHandle&&function(e,t){const o=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){const t=this.toDomElement(e),o=new a.mO;return o.set("content",p),o.render(),t.appendChild(o.element),t}));t.insert(t.createPositionAt(e,0),o),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),w(e,t),e}function _(e,t,o){if(t.classes&&o.addClass((0,n.qo)(t.classes),e),t.attributes)for(const s in t.attributes)o.setAttribute(s,t.attributes[s],e)}function k(e,t,o){if(t.classes&&o.removeClass((0,n.qo)(t.classes),e),t.attributes)for(const s in t.attributes)o.removeAttribute(s,e)}function w(e,t,o=_,s=k){const i=new l;i.on("change:top",((t,i)=>{i.oldDescriptor&&s(e,i.oldDescriptor,i.writer),i.newDescriptor&&o(e,i.newDescriptor,i.writer)}));t.setCustomProperty("addHighlight",((e,t,o)=>i.add(t,o)),e),t.setCustomProperty("removeHighlight",((e,t,o)=>i.remove(t,o)),e)}function v(e,t){e.getCustomProperty("widgetLabel").push(t)}function y(e){return e.getCustomProperty("widgetLabel").reduce(((e,t)=>"function"==typeof t?e?e+". "+t():t():e?e+". "+t:t),"")}function x(e,t,o={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("role","textbox",e),o.label&&t.setAttribute("aria-label",o.label,e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",((o,s,i)=>{t.setAttribute("contenteditable",i?"false":"true",e)})),e.on("change:isFocused",((o,s,i)=>{i?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),w(e,t),e}function P(e,t){const o=e.getSelectedElement();if(o){const s=S(e);if(s)return t.createRange(t.createPositionAt(o,s))}return(0,i.KT)(e,t)}function C(e,t){return(o,s)=>{const{mapper:i,viewPosition:r}=s,n=i.findMappedViewAncestor(r);if(!t(n))return;const a=i.toModelElement(n);s.modelPosition=e.createPositionAt(a,r.isAtStart?"before":"after")}}function T(){return null}const E="widget-type-around";function A(e,t,o){return!!e&&m(e)&&!o.isInline(t)}function S(e){return e.getAttribute(E)}var O=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),R=o.n(O),j=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgettypearound.css"),M={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};R()(j.Z,M);j.Z.locals;const V=["before","after"],B=(new DOMParser).parseFromString('<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>',"image/svg+xml").firstChild,I="ck-widget__type-around_disabled";class D extends s.Sy{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[c.C,r.HG]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",((o,s,i)=>{t.change((e=>{for(const o of t.document.roots)i?e.removeClass(I,o):e.addClass(I,o)})),i||e.model.change((e=>{e.removeSelectionAttribute(E)}))})),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(e,t){const o=this.editor,s=o.editing.view,i=o.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);o.execute("insertParagraph",{position:o.model.createPositionAt(e,t),attributes:i}),s.focus(),s.scrollToTheSelection()}_listenToIfEnabled(e,t,o,s){this.listenTo(e,t,((...e)=>{this.isEnabled&&o(...e)}),s)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=S(e);if(!t)return!1;const o=e.getSelectedElement();return this._insertParagraph(o,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,o=e.locale.t,s={before:o("Insert paragraph before block"),after:o("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",((e,i,r)=>{const n=r.mapper.toViewElement(i.item);if(n&&A(n,i.item,t)){!function(e,t,o){const s=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){const o=this.toDomElement(e);return function(e,t){for(const o of V){const s=new a.YS({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${o}`],title:t[o],"aria-hidden":"true"},children:[e.ownerDocument.importNode(B,!0)]});e.appendChild(s.render())}}(o,t),function(e){const t=new a.YS({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(o),o}));e.insert(e.createPositionAt(o,"end"),s)}(r.writer,s,n);n.getCustomProperty("widgetLabel").push((()=>this.isEnabled?o("Press Enter to type after or press Shift + Enter to type before the widget"):""))}}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,o=t.document.selection,s=t.schema,i=e.editing.view;function r(e){return`ck-widget_type-around_show-fake-caret_${e}`}this._listenToIfEnabled(i.document,"arrowKey",((e,t)=>{this._handleArrowKeyPress(e,t)}),{context:[m,"$text"],priority:"high"}),this._listenToIfEnabled(o,"change:range",((t,o)=>{o.directChange&&e.model.change((e=>{e.removeSelectionAttribute(E)}))})),this._listenToIfEnabled(t.document,"change:data",(()=>{const t=o.getSelectedElement();if(t){if(A(e.editing.mapper.toViewElement(t),t,s))return}e.model.change((e=>{e.removeSelectionAttribute(E)}))})),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",((e,t,o)=>{const i=o.writer;if(this._currentFakeCaretModelElement){const e=o.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(i.removeClass(V.map(r),e),this._currentFakeCaretModelElement=null)}const n=t.selection.getSelectedElement();if(!n)return;const a=o.mapper.toViewElement(n);if(!A(a,n,s))return;const c=S(t.selection);c&&(i.addClass(r(c),a),this._currentFakeCaretModelElement=n)})),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",((t,o,s)=>{s||e.model.change((e=>{e.removeSelectionAttribute(E)}))}))}_handleArrowKeyPress(e,t){const o=this.editor,s=o.model,i=s.document.selection,r=s.schema,a=o.editing.view,c=t.keyCode,l=(0,n.Zt)(c,o.locale.contentLanguageDirection),d=a.document.selection.getSelectedElement();let h;A(d,o.editing.mapper.toModelElement(d),r)?h=this._handleArrowKeyPressOnSelectedWidget(l):i.isCollapsed?h=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):t.shiftKey||(h=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),h&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,o=S(t.document.selection);return t.change((t=>{if(!o)return t.setSelectionAttribute(E,e?"after":"before"),!0;if(!(o===(e?"after":"before")))return t.removeSelectionAttribute(E),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,o=t.model,s=o.schema,i=t.plugins.get("Widget"),r=i._getObjectElementNextToSelection(e);return!!A(t.editing.mapper.toViewElement(r),r,s)&&(o.change((t=>{i._setSelectionOverElement(r),t.setSelectionAttribute(E,e?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,o=t.model,s=o.schema,i=t.editing.mapper,r=o.document.selection,n=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!A(i.toViewElement(n),n,s)&&(o.change((t=>{t.setSelection(n,"on"),t.setSelectionAttribute(E,e?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",((o,s)=>{const i=s.domTarget.closest(".ck-widget__type-around__button");if(!i)return;const r=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(i),n=function(e,t){const o=e.closest(".ck-widget");return t.mapDomToView(o)}(i,t.domConverter),a=e.editing.mapper.toModelElement(n);this._insertParagraph(a,r),s.preventDefault(),o.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,o=e.editing.view;this._listenToIfEnabled(o.document,"enter",((o,s)=>{if("atTarget"!=o.eventPhase)return;const i=t.getSelectedElement(),r=e.editing.mapper.toViewElement(i),n=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:A(r,i,n)&&(this._insertParagraph(i,s.isSoft?"before":"after"),a=!0),a&&(s.preventDefault(),o.stop())}),{context:m})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",((t,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=e.selection)}),{priority:"high"}),n.OB.isAndroid?this._listenToIfEnabled(e,"keydown",((e,t)=>{229==t.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()})):this._listenToIfEnabled(e,"compositionstart",(()=>{this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,o=e.model,s=o.schema;this._listenToIfEnabled(t.document,"delete",((t,i)=>{if("atTarget"!=t.eventPhase)return;const r=S(o.document.selection);if(!r)return;const n=i.direction,a=o.document.selection.getSelectedElement(),c="forward"==n;if("before"===r===c)e.execute("delete",{selection:o.createSelection(a,"on")});else{const t=s.getNearestSelectionRange(o.createPositionAt(a,r),n);if(t)if(t.isCollapsed){const i=o.createSelection(t.start);if(o.modifySelection(i,{direction:n}),i.focus.isEqual(t.start)){const e=function(e,t){let o=t;for(const s of t.getAncestors({parentFirst:!0})){if(s.childCount>1||e.isLimit(s))break;o=s}return o}(s,t.start.parent);o.deleteContent(o.createSelection(e,"on"),{doNotAutoparagraph:!0})}else o.change((o=>{o.setSelection(t),e.execute(c?"deleteForward":"delete")}))}else o.change((o=>{o.setSelection(t),e.execute(c?"deleteForward":"delete")}))}i.preventDefault(),t.stop()}),{context:m})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,o=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",((e,[s,i])=>{if(i&&!i.is("documentSelection"))return;const r=S(o);return r?(e.stop(),t.change((e=>{const i=o.getSelectedElement(),n=t.createPositionAt(i,r),a=e.createSelection(n),c=t.insertContent(s,a);return e.setSelection(a),c}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",((e,o)=>{const[,s,i={}]=o;if(s&&!s.is("documentSelection"))return;const r=S(t);r&&(i.findOptimalPosition=r,o[3]=i)}),{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",((e,[o])=>{if(o&&!o.is("documentSelection"))return;S(t)&&e.stop()}),{priority:"high"})}}function N(e){const t=e.model;return(o,s)=>{const i=s.keyCode==n.Do.arrowup,r=s.keyCode==n.Do.arrowdown,a=s.shiftKey,c=t.document.selection;if(!i&&!r)return;const l=r;if(a&&function(e,t){return!e.isCollapsed&&e.isBackward==t}(c,l))return;const d=function(e,t,o){const s=e.model;if(o){const e=t.isCollapsed?t.focus:t.getLastPosition(),o=z(s,e,"forward");if(!o)return null;const i=s.createRange(e,o),r=F(s.schema,i,"backward");return r?s.createRange(e,r):null}{const e=t.isCollapsed?t.focus:t.getFirstPosition(),o=z(s,e,"backward");if(!o)return null;const i=s.createRange(o,e),r=F(s.schema,i,"forward");return r?s.createRange(r,e):null}}(e,c,l);if(d){if(d.isCollapsed){if(c.isCollapsed)return;if(a)return}(d.isCollapsed||function(e,t,o){const s=e.model,i=e.view.domConverter;if(o){const e=s.createSelection(t.start);s.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=s.createRange(e.focus,t.end))}const r=e.mapper.toViewRange(t),a=i.viewRangeToDom(r),c=n.UL.getDomRangeRects(a);let l;for(const e of c)if(void 0!==l){if(Math.round(e.top)>=l)return!1;l=Math.max(l,Math.round(e.bottom))}else l=Math.round(e.bottom);return!0}(e,d,l))&&(t.change((e=>{const o=l?d.end:d.start;if(a){const s=t.createSelection(c.anchor);s.setFocus(o),e.setSelection(s)}else e.setSelection(o)})),o.stop(),s.preventDefault(),s.stopPropagation())}}}function z(e,t,o){const s=e.schema,i=e.createRangeIn(t.root),r="forward"==o?"elementStart":"elementEnd";for(const{previousPosition:e,item:n,type:a}of i.getWalker({startPosition:t,direction:o})){if(s.isLimit(n)&&!s.isInline(n))return e;if(a==r&&s.isBlock(n))return null}return null}function F(e,t,o){const s="backward"==o?t.end:t.start;if(e.checkChild(s,"$text"))return s;for(const{nextPosition:s}of t.getWalker({direction:o}))if(e.checkChild(s,"$text"))return s;return null}var L=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widget.css"),Z={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};R()(L.Z,Z);L.Z.locals;class W extends s.Sy{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[D,r.HG]}init(){const e=this.editor,t=e.editing.view,o=t.document;this.editor.editing.downcastDispatcher.on("selection",((t,o,s)=>{const i=s.writer,r=o.selection;if(r.isCollapsed)return;const n=r.getSelectedElement();if(!n)return;const a=e.editing.mapper.toViewElement(n);m(a)&&s.consumable.consume(r,"selection")&&i.setSelection(i.createRangeOn(a),{fake:!0,label:y(a)})})),this.editor.editing.downcastDispatcher.on("selection",((e,t,o)=>{this._clearPreviouslySelectedWidgets(o.writer);const s=o.writer,i=s.document.selection;let r=null;for(const e of i.getRanges())for(const t of e){const e=t.item;m(e)&&!$(e,r)&&(s.addClass(g,e),this._previouslySelected.add(e),r=e)}}),{priority:"low"}),t.addObserver(i.dM),this.listenTo(o,"mousedown",((...e)=>this._onMousedown(...e))),this.listenTo(o,"arrowKey",((...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)}),{context:[m,"$text"]}),this.listenTo(o,"arrowKey",((...e)=>{this._preventDefaultOnArrowKeyPress(...e)}),{context:"$root"}),this.listenTo(o,"arrowKey",N(this.editor.editing),{context:"$text"}),this.listenTo(o,"delete",((e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())}),{context:"$root"})}_onMousedown(e,t){const o=this.editor,s=o.editing.view,i=s.document;let r=t.target;if(t.domEvent.detail>=3)return void(this._selectBlockContent(r)&&t.preventDefault());if(function(e){let t=e;for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(m(t))return!1;t=t.parent}return!1}(r))return;if(!m(r)&&(r=r.findAncestor(m),!r))return;n.OB.isAndroid&&t.preventDefault(),i.isFocused||s.focus();const a=o.editing.mapper.toModelElement(r);this._setSelectionOverElement(a)}_selectBlockContent(e){const t=this.editor,o=t.model,s=t.editing.mapper,r=o.schema,n=s.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),a=function(e,t){for(const o of e.getAncestors({includeSelf:!0,parentFirst:!0})){if(t.checkChild(o,"$text"))return o;if(t.isLimit(o)&&!t.isObject(o))break}return null}(s.toModelElement(n),o.schema);return!!a&&(o.change((e=>{const t=r.isLimit(a)?null:function(e,t){const o=new i.Po({startPosition:e});for(const{item:e}of o){if(t.isLimit(e)||!e.is("element"))return null;if(t.checkChild(e,"$text"))return e}return null}(e.createPositionAfter(a),r),o=e.createPositionAt(a,0),s=t?e.createPositionAt(t,0):e.createPositionAt(a,"end");e.setSelection(e.createRange(o,s))})),!0)}_handleSelectionChangeOnArrowKeyPress(e,t){const o=t.keyCode,s=this.editor.model,i=s.schema,r=s.document.selection,a=r.getSelectedElement(),c=(0,n.mA)(o,this.editor.locale.contentLanguageDirection),l="down"==c||"right"==c,d="up"==c||"down"==c;if(a&&i.isObject(a)){const o=l?r.getLastPosition():r.getFirstPosition(),n=i.getNearestSelectionRange(o,l?"forward":"backward");return void(n&&(s.change((e=>{e.setSelection(n)})),t.preventDefault(),e.stop()))}if(!r.isCollapsed&&!t.shiftKey){const o=r.getFirstPosition(),n=r.getLastPosition(),a=o.nodeAfter,c=n.nodeBefore;return void((a&&i.isObject(a)||c&&i.isObject(c))&&(s.change((e=>{e.setSelection(l?n:o)})),t.preventDefault(),e.stop()))}if(!r.isCollapsed)return;const h=this._getObjectElementNextToSelection(l);if(h&&i.isObject(h)){if(i.isInline(h)&&d)return;this._setSelectionOverElement(h),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const o=this.editor.model,s=o.schema,i=o.document.selection.getSelectedElement();i&&s.isObject(i)&&(t.preventDefault(),e.stop())}_handleDelete(e){const t=this.editor.model.document.selection;if(!this.editor.model.canEditAt(t))return;if(!t.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);return o?(this.editor.model.change((e=>{let s=t.anchor.parent;for(;s.isEmpty;){const t=s;s=t.parent,e.remove(t)}this._setSelectionOverElement(o)})),!0):void 0}_setSelectionOverElement(e){this.editor.model.change((t=>{t.setSelection(t.createRangeOn(e))}))}_getObjectElementNextToSelection(e){const t=this.editor.model,o=t.schema,s=t.document.selection,i=t.createSelection(s);if(t.modifySelection(i,{direction:e?"forward":"backward"}),i.isEqual(s))return null;const r=e?i.focus.nodeBefore:i.focus.nodeAfter;return r&&o.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(g,t);this._previouslySelected.clear()}}function $(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}class q extends s.Sy{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[a.WB]}static get pluginName(){return"WidgetToolbarRepository"}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",(t=>{(function(e){const t=e.getSelectedElement();return!(!t||!m(t))})(e.editing.view.document.selection)&&t.stop()}),{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(e.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(e.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:o,getRelatedElement:s,balloonClassName:i="ck-toolbar-container"}){if(!o.length)return void(0,n.KE)("widget-toolbar-no-items",{toolbarId:e});const r=this.editor,c=r.t,l=new a.jB(r.locale);if(l.ariaLabel=t||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new n.Bb("widget-toolbar-duplicated",this,{toolbarId:e});const d={view:l,getRelatedElement:s,balloonClassName:i,itemsConfig:o,initialized:!1};r.ui.addToolbar(l,{isContextual:!0,beforeFocus:()=>{const e=s(r.editing.view.document.selection);e&&this._showToolbar(d,e)},afterBlur:()=>{this._hideToolbar(d)}}),this._toolbarDefinitions.set(e,d)}_updateToolbarsVisibility(){let e=0,t=null,o=null;for(const s of this._toolbarDefinitions.values()){const i=s.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&i)if(this.editor.ui.focusTracker.isFocused){const r=i.getAncestors().length;r>e&&(e=r,t=i,o=s)}else this._isToolbarVisible(s)&&this._hideToolbar(s);else this._isToolbarInBalloon(s)&&this._hideToolbar(s)}o&&this._showToolbar(o,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?H(this.editor,t):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:U(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){const t=e.getRelatedElement(this.editor.editing.view.document.selection);H(this.editor,t)}})))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function H(e,t){const o=e.plugins.get("ContextualBalloon"),s=U(e,t);o.updatePosition(s)}function U(e,t){const o=e.editing.view,s=a.no.defaultPositions;return{target:o.domConverter.mapViewToDom(t),positions:[s.northArrowSouth,s.northArrowSouthWest,s.northArrowSouthEast,s.southArrowNorth,s.southArrowNorthWest,s.southArrowNorthEast,s.viewportStickyNorth]}}class G extends((0,n.Re)()){constructor(e){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=e,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(e,t,o){const s=new n.UL(t);this.activeHandlePosition=function(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const o of t)if(e.classList.contains(K(o)))return o}(e),this._referenceCoordinates=function(e,t){const o=new n.UL(e),s=t.split("-"),i={x:"right"==s[1]?o.right:o.left,y:"bottom"==s[0]?o.bottom:o.top};return i.x+=e.ownerDocument.defaultView.scrollX,i.y+=e.ownerDocument.defaultView.scrollY,i}(t,function(e){const t=e.split("-"),o={top:"bottom",bottom:"top",left:"right",right:"left"};return`${o[t[0]]}-${o[t[1]]}`}(this.activeHandlePosition)),this._originalWidth=s.width,this._originalHeight=s.height,this._aspectRatio=s.width/s.height;const i=o.style.width;i&&i.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(i):this._originalWidthPercents=function(e,t){const o=e.parentElement;let s=parseFloat(o.ownerDocument.defaultView.getComputedStyle(o).width);const i=5;let r=0,n=o;for(;isNaN(s);){if(n=n.parentElement,++r>i)return 0;s=parseFloat(o.ownerDocument.defaultView.getComputedStyle(n).width)}return t.width/s*100}(o,s)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function K(e){return`ck-widget__resizer__handle-${e}`}class J extends a.G7{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",(e=>e?`ck-orientation-${e}`:""))],style:{display:e.if("_isVisible","none",(e=>!e))}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",((e,t)=>null!==e&&null!==t)),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",((t,o,s)=>"px"===e.unit?`${t}×${o}`:`${s}%`)),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",((e,t,o)=>t<50||o<50?"above-center":e))}_dismiss(){this.unbind(),this._isVisible=!1}}var Y=Object.defineProperty,X=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,se=(e,t,o)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class ie extends((0,n.Re)()){constructor(e){super(),this._viewResizerWrapper=null,this._options=e,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",((e,t)=>e&&t)),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 e=this,t=this._options.viewElement;this._options.editor.editing.view.change((o=>{const s=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){const o=this.toDomElement(t);return e._appendHandles(o),e._appendSizeUI(o),o}));o.insert(o.createPositionAt(t,"end"),s),o.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=s,this.isVisible||this.hide()})),this.on("change:isVisible",(()=>{this.isVisible?(this.show(),this.redraw()):this.hide()}))}begin(e){this._state=new G(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change((e=>{const o=this._options.unit||"%",s=("%"===o?t.widthPercents:t.width)+o;e.setStyle("width",s,this._options.viewElement)}));const o=this._getHandleHost(),s=new n.UL(o),i=Math.round(s.width),r=Math.round(s.height),a=new n.UL(o);var c;t.width=Math.round(a.width),t.height=Math.round(a.height),this.redraw(s),this.state.update((c=((e,t)=>{for(var o in t||(t={}))te.call(t,o)&&se(e,o,t[o]);if(ee)for(var o of ee(t))oe.call(t,o)&&se(e,o,t[o]);return e})({},t),X(c,Q({handleHostWidth:i,handleHostHeight:r}))))}commit(){const e=this._options.unit||"%",t=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(t)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!((o=t)&&o.ownerDocument&&o.ownerDocument.contains(o)))return;var o;const s=t.parentElement,i=this._getHandleHost(),r=this._viewResizerWrapper,a=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let c;if(s.isSameNode(i)){const t=e||new n.UL(i);c=[t.width+"px",t.height+"px",void 0,void 0]}else c=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];"same"!==(0,n.Rt)(a,c)&&this._options.editor.editing.view.change((e=>{e.setStyle({width:c[0],height:c[1],left:c[2],top:c[3]},r)}))}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.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(e){const t=this.state,o={x:(s=e).pageX,y:s.pageY};var s;const i=!this._options.isCentered||this._options.isCentered(this),r={x:t._referenceCoordinates.x-(o.x+t.originalWidth),y:o.y-t.originalHeight-t._referenceCoordinates.y};i&&t.activeHandlePosition.endsWith("-right")&&(r.x=o.x-(t._referenceCoordinates.x+t.originalWidth)),i&&(r.x*=2);let n=Math.abs(t.originalWidth+r.x),a=Math.abs(t.originalHeight+r.y);return"width"==(n/t.aspectRatio>a?"width":"height")?a=n/t.aspectRatio:n=a*t.aspectRatio,{width:Math.round(n),height:Math.round(a),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*n*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const s of t)e.appendChild(new a.YS({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(o=s,`ck-widget__resizer__handle-${o}`)}}).render());var o}_appendSizeUI(e){this._sizeView=new J,this._sizeView.render(),e.appendChild(this._sizeView.element)}}var re=o("./node_modules/lodash-es/throttle.js"),ne=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-widget/theme/widgetresize.css"),ae={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};R()(ne.Z,ae);ne.Z.locals;class ce extends s.Sy{constructor(){super(...arguments),this._resizers=new Map}static get pluginName(){return"WidgetResize"}init(){const e=this.editor.editing,t=n.global.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(i.dM),this._observer=new((0,n.Xu)()),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=(0,re.Z)((()=>this.redrawSelectedResizer()),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[e,t]of this._resizers)e.isAttached()||(this._resizers.delete(e),t.destroy())}),{priority:"lowest"}),this._observer.listenTo(n.global.window,"resize",this._redrawSelectedResizerThrottled);const o=this.editor.editing.view.document.selection;o.on("change",(()=>{const e=o.getSelectedElement(),t=this.getResizerByViewElement(e)||null;t?this.select(t):this.deselect()}))}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawSelectedResizerThrottled.cancel()}select(e){this.deselect(),this.selectedResizer=e,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(e){const t=new ie(e),o=this.editor.plugins;if(t.attach(),o.has("WidgetToolbarRepository")){const e=o.get("WidgetToolbarRepository");t.on("begin",(()=>{e.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(()=>{e.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(()=>{e.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(e.viewElement,t);const s=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(s)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const o=t.domTarget;ie.isResizeHandle(o)&&(this._activeResizer=this._getResizerByHandle(o)||null,this._activeResizer&&(this._activeResizer.begin(o),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}},"./packages/ckeditor5-core/theme/icons/cancel.svg":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s='<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>'},"./packages/ckeditor5-core/theme/icons/check.svg":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s='<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>'},"./packages/ckeditor5-core/theme/icons/eraser.svg":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s='<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>'},"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":(e,t,o)=>{"use strict";var s,i=function(){return void 0===s&&(s=Boolean(window&&document&&document.all&&!window.atob)),s},r=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),n=[];function a(e){for(var t=-1,o=0;o<n.length;o++)if(n[o].identifier===e){t=o;break}return t}function c(e,t){for(var o={},s=[],i=0;i<e.length;i++){var r=e[i],c=t.base?r[0]+t.base:r[0],l=o[c]||0,d="".concat(c," ").concat(l);o[c]=l+1;var h=a(d),u={css:r[1],media:r[2],sourceMap:r[3]};-1!==h?(n[h].references++,n[h].updater(u)):n.push({identifier:d,updater:m(u,t),references:1}),s.push(d)}return s}function l(e){var t=document.createElement("style"),s=e.attributes||{};if(void 0===s.nonce){var i=o.nc;i&&(s.nonce=i)}if(Object.keys(s).forEach((function(e){t.setAttribute(e,s[e])})),"function"==typeof e.insert)e.insert(t);else{var n=r(e.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(t)}return t}var d,h=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function u(e,t,o,s){var i=o?"":s.media?"@media ".concat(s.media," {").concat(s.css,"}"):s.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var r=document.createTextNode(i),n=e.childNodes;n[t]&&e.removeChild(n[t]),n.length?e.insertBefore(r,n[t]):e.appendChild(r)}}function p(e,t,o){var s=o.css,i=o.media,r=o.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=s;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(s))}}var f=null,g=0;function m(e,t){var o,s,i;if(t.singleton){var r=g++;o=f||(f=l(t)),s=u.bind(null,o,r,!1),i=u.bind(null,o,r,!0)}else o=l(t),s=p.bind(null,o,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return s(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;s(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var o=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var s=0;s<o.length;s++){var i=a(o[s]);n[i].references--}for(var r=c(e,t),l=0;l<o.length;l++){var d=a(o[l]);0===n[d].references&&(n[d].updater(),n.splice(d,1))}o=r}}}},"./src/clipboard.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Clipboard:()=>F,ClipboardPipeline:()=>h,DragDrop:()=>B,DragDropBlockToolbar:()=>O,DragDropTarget:()=>b,PastePlainText:()=>z});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts"),r=o("./packages/ckeditor5-engine/src/index.ts");class n extends r.qZ{constructor(e){super(e),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const t=this.document;function o(e){return(o,s)=>{s.preventDefault();const r=s.dropRange?[s.dropRange]:null,n=new i.M3(t,e);t.fire(n,{dataTransfer:s.dataTransfer,method:o.name,targetRanges:r,target:s.target,domEvent:s.domEvent}),n.stop.called&&s.stopPropagation()}}this.listenTo(t,"paste",o("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",o("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",o("dragging"),{priority:"low"})}onDomEvent(e){const t="clipboardData"in e?e.clipboardData:e.dataTransfer,o="drop"==e.type||"paste"==e.type,s={dataTransfer:new r.tn(t,{cacheFiles:o})};"drop"!=e.type&&"dragover"!=e.type||(s.dropRange=function(e,t){const o=t.target.ownerDocument,s=t.clientX,i=t.clientY;let r;o.caretRangeFromPoint&&o.caretRangeFromPoint(s,i)?r=o.caretRangeFromPoint(s,i):t.rangeParent&&(r=o.createRange(),r.setStart(t.rangeParent,t.rangeOffset),r.collapse(!0));if(r)return e.domConverter.domRangeToView(r);return null}(this.view,e)),this.fire(e.type,e,s)}}const a=["figcaption","li"],c=["ol","ul"];function l(e){if(e.is("$text")||e.is("$textProxy"))return e.data;if(e.is("element","img")&&e.hasAttribute("alt"))return e.getAttribute("alt");if(e.is("element","br"))return"\n";let t="",o=null;for(const s of e.getChildren())t+=d(s,o)+l(s),o=s;return t}function d(e,t){return t?e.is("element","li")&&!e.isEmpty&&e.getChild(0).is("containerElement")||c.includes(e.name)&&c.includes(t.name)?"\n\n":e.is("containerElement")||t.is("containerElement")?a.includes(e.name)||a.includes(t.name)?"\n":"\n\n":"":""}class h extends s.Sy{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(n),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(e,t,o){const s=this.editor.model.getSelectedContent(t);this.fire("outputTransformation",{dataTransfer:e,content:s,method:o})}_setupPasteDrop(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document;this.listenTo(s,"clipboardInput",((t,o)=>{"paste"!=o.method||e.model.canEditAt(e.model.document.selection)||t.stop()}),{priority:"highest"}),this.listenTo(s,"clipboardInput",((e,t)=>{const s=t.dataTransfer;let r;if(t.content)r=t.content;else{let e="";s.getData("text/html")?e=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((e,t)=>1==t.length?" ":t)).replace(/<!--[\s\S]*?-->/g,"")}(s.getData("text/html")):s.getData("text/plain")&&(((n=(n=s.getData("text/plain")).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," ")).includes("</p><p>")||n.includes("<br>"))&&(n=`<p>${n}</p>`),e=n),r=this.editor.data.htmlProcessor.toView(e)}var n;const a=new i.M3(this,"inputTransformation");this.fire(a,{content:r,dataTransfer:s,targetRanges:t.targetRanges,method:t.method}),a.stop.called&&e.stop(),o.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((e,o)=>{if(o.content.isEmpty)return;const s=this.editor.data.toModel(o.content,"$clipboardHolder");0!=s.childCount&&(e.stop(),t.change((()=>{this.fire("contentInsertion",{content:s,method:o.method,dataTransfer:o.dataTransfer,targetRanges:o.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((e,o)=>{o.resultRange=t.insertContent(o.content)}),{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,o=e.editing.view.document,s=(e,o)=>{const s=o.dataTransfer;o.preventDefault(),this._fireOutputTransformationEvent(s,t.selection,e.name)};this.listenTo(o,"copy",s,{priority:"low"}),this.listenTo(o,"cut",((t,o)=>{e.model.canEditAt(e.model.document.selection)?s(t,o):o.preventDefault()}),{priority:"low"}),this.listenTo(this,"outputTransformation",((t,s)=>{const i=e.data.toView(s.content);o.fire("clipboardOutput",{dataTransfer:s.dataTransfer,content:i,method:s.method})}),{priority:"low"}),this.listenTo(o,"clipboardOutput",((o,s)=>{s.content.isEmpty||(s.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(s.content)),s.dataTransfer.setData("text/plain",l(s.content))),"cut"==s.method&&e.model.deleteContent(t.selection)}),{priority:"low"})}}var u=o("./packages/ckeditor5-widget/src/index.ts"),p=o("./packages/ckeditor5-ui/src/index.ts");const f=(0,i.nn)("px");class g extends p.G7{constructor(){super();const e=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",e.if("isVisible","ck-hidden",(e=>!e))],style:{left:e.to("left",(e=>f(e))),top:e.to("top",(e=>f(e))),width:e.to("width",(e=>f(e)))}}})}}var m=o("./node_modules/lodash-es/throttle.js");class b extends s.Sy{constructor(){super(...arguments),this.removeDropMarkerDelayed=(0,i.gw)((()=>this.removeDropMarker()),40),this._updateDropMarkerThrottled=(0,m.Z)((e=>this._updateDropMarker(e)),40),this._reconvertMarkerThrottled=(0,m.Z)((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0),this._dropTargetLineView=new g,this._domEmitter=new((0,i.Xu)()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:e}of this._scrollables.values())e.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(e,t,o,s,i,r){this.removeDropMarkerDelayed.cancel();const n=_(this.editor,e,t,o,s,i,r);if(n)return r&&r.containsRange(n)?this.removeDropMarker():void this._updateDropMarkerThrottled(n)}getFinalDropRange(e,t,o,s,i,r){const n=_(this.editor,e,t,o,s,i,r);return this.removeDropMarker(),n}removeDropMarker(){const e=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,e.markers.has("drop-target")&&e.change((e=>{e.removeMarker("drop-target")}))}_setupDropMarker(){const e=this.editor;e.ui.view.body.add(this._dropTargetLineView),e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:o})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(o);t.markerRange.isCollapsed?this._updateDropTargetLine(t.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){const t=this.editor,o=t.model.markers;t.model.change((t=>{o.has("drop-target")?o.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})}))}_createDropTargetPosition(e){return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){const t=this.toDomElement(e);return t.append("â ",e.createElement("span"),"â "),t}))}_updateDropTargetLine(e){const t=this.editor.editing,o=e.start.nodeBefore,s=e.start.nodeAfter,r=e.start.parent,n=o?t.mapper.toViewElement(o):null,a=n?t.view.domConverter.mapViewToDom(n):null,c=s?t.mapper.toViewElement(s):null,l=c?t.view.domConverter.mapViewToDom(c):null,d=t.mapper.toViewElement(r),h=t.view.domConverter.mapViewToDom(d),u=this._getScrollableRect(d),{scrollX:p,scrollY:f}=i.global.window,g=a?new i.UL(a):null,m=l?new i.UL(l):null,b=new i.UL(h).excludeScrollbarsAndBorders(),_=g?g.bottom:b.top,k=m?m.top:b.bottom,w=i.global.window.getComputedStyle(h),v=_<=k?(_+k)/2:k;if(u.top<v&&v<u.bottom){const e=b.left+parseFloat(w.paddingLeft),t=b.right-parseFloat(w.paddingRight),o=Math.max(e+p,u.left),s=Math.min(t+p,u.right);this._dropTargetLineView.set({isVisible:!0,left:o,top:v+f,width:s-o})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(e){const t=e.root.rootName;let o;if(this._scrollables.has(t))o=this._scrollables.get(t).domElement;else{o=function(e){let t=e;do{t=t.parentElement;const e=i.global.window.getComputedStyle(t).overflowY;if("auto"==e||"scroll"==e)break}while("BODY"!=t.tagName);return t}(this.editor.editing.view.domConverter.mapViewToDom(e)),this._domEmitter.listenTo(o,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const s=new i.do(o,this._reconvertMarkerThrottled);this._scrollables.set(t,{domElement:o,resizeObserver:s})}return new i.UL(o).excludeScrollbarsAndBorders()}}function _(e,t,o,s,i,r,n){const a=e.model,c=e.editing.mapper;let l=y(e,t);for(;l;){if(!r)if(a.schema.checkChild(l,"$text")){if(o){const t=o[0].start,r=c.toModelPosition(t);if(!n||Array.from(n.getItems()).every((e=>a.schema.checkChild(r,e)))){if(a.schema.checkChild(r,"$text"))return a.createRange(r);if(t)return w(e,y(e,t.parent),s,i)}}}else if(a.schema.isInline(l))return w(e,l,s,i);if(a.schema.isBlock(l))return w(e,l,s,i);if(a.schema.checkChild(l,"$block")){const t=Array.from(l.getChildren()).filter((t=>t.is("element")&&!k(e,t)));let o=0,r=t.length;if(0==r)return a.createRange(a.createPositionAt(l,"end"));for(;o<r-1;){const n=Math.floor((o+r)/2);"before"==v(e,t[n],s,i)?r=n:o=n}return w(e,t[o],s,i)}l=l.parent}return null}function k(e,t){const o=e.editing.mapper,s=e.editing.view.domConverter,r=o.toViewElement(t),n=s.mapViewToDom(r);return"none"!=i.global.window.getComputedStyle(n).float}function w(e,t,o,s){const i=e.model;return i.createRange(i.createPositionAt(t,v(e,t,o,s)))}function v(e,t,o,s){const r=e.editing.mapper,n=e.editing.view.domConverter,a=r.toViewElement(t),c=n.mapViewToDom(a),l=new i.UL(c);return e.model.schema.isInline(t)?o<(l.left+l.right)/2?"before":"after":s<(l.top+l.bottom)/2?"before":"after"}function y(e,t){const o=e.editing.mapper,s=e.editing.view,i=o.toModelElement(t);if(i)return i;const r=s.createPositionBefore(t),n=o.findMappedViewAncestor(r);return o.toModelElement(n)}var x=Object.defineProperty,P=Object.defineProperties,C=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,S=(e,t,o)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class O extends s.Sy{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new((0,i.Xu)())}static get pluginName(){return"DragDropBlockToolbar"}init(){const e=this.editor;if(this.listenTo(e,"change:isReadOnly",((e,t,o)=>{o?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")})),i.OB.isAndroid&&this.forceDisabled("noAndroidSupport"),e.plugins.has("BlockToolbar")){const t=e.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(t,"dragstart",((e,t)=>this._handleBlockDragStart(t))),this._domEmitter.listenTo(i.global.document,"dragover",((e,t)=>this._handleBlockDragging(t))),this._domEmitter.listenTo(i.global.document,"drop",((e,t)=>this._handleBlockDragging(t))),this._domEmitter.listenTo(i.global.document,"dragend",(()=>this._handleBlockDragEnd()),{useCapture:!0}),this.isEnabled&&t.setAttribute("draggable","true"),this.on("change:isEnabled",((e,o,s)=>{t.setAttribute("draggable",s?"true":"false")}))}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;const t=this.editor.model,o=t.document.selection,s=this.editor.editing.view,i=Array.from(o.getSelectedBlocks()),r=t.createRange(t.createPositionBefore(i[0]),t.createPositionAfter(i[i.length-1]));t.change((e=>e.setSelection(r))),this._isBlockDragging=!0,s.focus(),s.getObserver(n).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;const t=e.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),o=e.clientY,s=document.elementFromPoint(t,o),i=this.editor.editing.view;var r,a;s&&s.closest(".ck-editor__editable")&&i.getObserver(n).onDomEvent((r=((e,t)=>{for(var o in t||(t={}))E.call(t,o)&&S(e,o,t[o]);if(T)for(var o of T(t))A.call(t,o)&&S(e,o,t[o]);return e})({},e),a={type:e.type,dataTransfer:e.dataTransfer,target:s,clientX:t,clientY:o,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()},P(r,C(a))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var R=o("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),j=o.n(R),M=o("./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./packages/ckeditor5-clipboard/theme/clipboard.css"),V={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};j()(M.Z,V);M.Z.locals;class B extends s.Sy{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=(0,i.gw)((()=>this._clearDraggableAttributes()),40),this._blockMode=!1,this._domEmitter=new((0,i.Xu)())}static get pluginName(){return"DragDrop"}static get requires(){return[h,u.$L,b,O]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,t.addObserver(n),t.addObserver(r.dM),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",((e,t,o)=>{o?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((e,t,o)=>{o||this._finalizeDragging(!1)})),i.OB.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 e=this.editor,t=e.model,o=e.editing.view,s=o.document,r=e.plugins.get(b);this.listenTo(s,"dragstart",((e,o)=>{if(o.target&&o.target.is("editableElement"))return void o.preventDefault();if(this._prepareDraggedRange(o.target),!this._draggedRange)return void o.preventDefault();this._draggingUid=(0,i.hQ)(),o.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",o.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const s=t.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(o.dataTransfer,s,"dragstart");const{dataTransfer:r,domTarget:n,domEvent:a}=o,{clientX:c}=a;this._updatePreview({dataTransfer:r,domTarget:n,clientX:c}),o.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(s,"dragend",((e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)}),{priority:"low"}),this._domEmitter.listenTo(i.global.document,"dragend",(()=>{this._blockMode=!1}),{useCapture:!0}),this.listenTo(s,"dragenter",(()=>{this.isEnabled&&o.focus()})),this.listenTo(s,"dragleave",(()=>{r.removeDropMarkerDelayed()})),this.listenTo(s,"dragging",((e,t)=>{if(!this.isEnabled)return void(t.dataTransfer.dropEffect="none");const{clientX:o,clientY:s}=t.domEvent;r.updateDropMarker(t.target,t.targetRanges,o,s,this._blockMode,this._draggedRange),this._draggedRange||(t.dataTransfer.dropEffect="copy"),i.OB.isGecko||("copy"==t.dataTransfer.effectAllowed?t.dataTransfer.dropEffect="copy":["all","copyMove"].includes(t.dataTransfer.effectAllowed)&&(t.dataTransfer.dropEffect="move")),e.stop()}),{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document,o=e.plugins.get(b);this.listenTo(t,"clipboardInput",((t,s)=>{if("drop"!=s.method)return;const{clientX:i,clientY:r}=s.domEvent,n=o.getFinalDropRange(s.target,s.targetRanges,i,r,this._blockMode,this._draggedRange);if(!n)return this._finalizeDragging(!1),void t.stop();this._draggedRange&&this._draggingUid!=s.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==I(s.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(n,!0))return this._finalizeDragging(!1),void t.stop();s.targetRanges=[e.editing.mapper.toViewRange(n)]}),{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(h);e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o=t.targetRanges.map((e=>this.editor.editing.mapper.toModelRange(e)));this.editor.model.change((e=>e.setSelection(o)))}),{priority:"high"}),e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o="move"==I(t.dataTransfer),s=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(s&&o)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,o=t.document;this.listenTo(o,"mousedown",((s,r)=>{if(i.OB.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let n=D(r.target);if(i.OB.isBlink&&!e.isReadOnly&&!n&&!o.selection.isCollapsed){const e=o.selection.getSelectedElement();e&&(0,u.Qd)(e)||(n=o.selection.editableElement)}n&&(t.change((e=>{e.setAttribute("draggable","true",n)})),this._draggableElement=e.editing.mapper.toModelElement(n))})),this.listenTo(o,"mouseup",(()=>{i.OB.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change((t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_finalizeDragging(e){const t=this.editor,o=t.model;if(t.plugins.get(b).removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop")}this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(e&&this.isEnabled&&o.change((e=>{const t=o.createSelection(this._draggedRange);o.deleteContent(t,{doNotAutoparagraph:!0});const s=t.getFirstPosition().parent;s.isEmpty&&!o.schema.checkChild(s,"$text")&&o.schema.checkChild(s,"paragraph")&&e.insertElement("paragraph",s,0)})),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(e){const t=this.editor,o=t.model,s=o.document.selection,i=e?D(e):null;if(i){const e=t.editing.mapper.toModelElement(i);if(this._draggedRange=r.iE.fromRange(o.createRangeOn(e)),this._blockMode=o.schema.isBlock(e),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}return}if(s.isCollapsed&&!s.getFirstPosition().parent.isEmpty)return;const n=Array.from(s.getSelectedBlocks()),a=s.getFirstRange();if(0==n.length)return void(this._draggedRange=r.iE.fromRange(a));const c=N(o,n);if(n.length>1)this._draggedRange=r.iE.fromRange(c),this._blockMode=!0;else if(1==n.length){const e=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=r.iE.fromRange(e?c:a),this._blockMode=e}o.change((e=>e.setSelection(this._draggedRange.toRange())))}_updatePreview({dataTransfer:e,domTarget:t,clientX:o}){const s=this.editor.editing.view,r=s.document.selection.editableElement,n=s.domConverter.mapViewToDom(r),a=i.global.window.getComputedStyle(n);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=(0,i.az)(i.global.document,"div",{style:"position: fixed; left: -999999px;"}),i.global.document.body.appendChild(this._previewContainer));const c=new i.UL(n);if(n.contains(t))return;const l=parseFloat(a.paddingLeft),d=(0,i.az)(i.global.document,"div");d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-o+l}px`,i.OB.isiOS&&(d.style.backgroundColor="white"),d.innerHTML=e.getData("text/html"),e.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function I(e){return i.OB.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function D(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(u.Qd);if((0,u.Qd)(e))return e;const t=e.findAncestor((e=>(0,u.Qd)(e)||e.is("editableElement")));return(0,u.Qd)(t)?t:null}function N(e,t){const o=t[0],s=t[t.length-1],i=o.getCommonAncestor(s),r=e.createPositionBefore(o),n=e.createPositionAfter(s);if(i&&i.is("element")&&!e.schema.isLimit(i)){const t=e.createRangeOn(i),o=r.isTouching(t.start),s=n.isTouching(t.end);if(o&&s)return N(e,[i])}return e.createRange(r,n)}class z extends s.Sy{static get pluginName(){return"PastePlainText"}static get requires(){return[h]}init(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document,i=t.document.selection;let r=!1;o.addObserver(n),this.listenTo(s,"keydown",((e,t)=>{r=t.shiftKey})),e.plugins.get(h).on("contentInsertion",((e,o)=>{(r||function(e,t){if(e.childCount>1)return!1;const o=e.getChild(0);if(t.isObject(o))return!1;return 0==Array.from(o.getAttributeKeys()).length}(o.content,t.schema))&&t.change((e=>{const s=Array.from(i.getAttributes()).filter((([e])=>t.schema.getAttributeProperties(e).isFormatting));i.isCollapsed||t.deleteContent(i,{doNotAutoparagraph:!0}),s.push(...i.getAttributes());const r=e.createRangeIn(o.content);for(const t of r.getItems())t.is("$textProxy")&&e.setAttributes(s,t)}))}))}}class F extends s.Sy{static get pluginName(){return"Clipboard"}static get requires(){return[h,B,z]}}},"./src/core.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Command:()=>s.mY,Context:()=>s._y,ContextPlugin:()=>s.eO,DataApiMixin:()=>s.W9,Editor:()=>s.ML,ElementApiMixin:()=>s.xK,MultiCommand:()=>s.AJ,PendingActions:()=>s.lR,Plugin:()=>s.Sy,attachToForm:()=>s.P$,icons:()=>s.icons,secureSourceElement:()=>s.Nu});var s=o("./packages/ckeditor5-core/src/index.ts")},"./src/engine.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{AttributeElement:()=>s.kW,AttributeOperation:()=>s.Yy,BubblingEventInfo:()=>s.r7,ClickObserver:()=>s.KU,Conversion:()=>s.uz,DataController:()=>s.Yc,DataTransfer:()=>s.tn,DocumentFragment:()=>s.f4,DocumentSelection:()=>s.uj,DomConverter:()=>s.pG,DomEventData:()=>s.dK,DomEventObserver:()=>s.qZ,DowncastWriter:()=>s.qD,EditingController:()=>s.jH,Element:()=>s.W_,FocusObserver:()=>s.DX,History:()=>s.Ay,HtmlDataProcessor:()=>s.X5,InsertOperation:()=>s.IZ,LivePosition:()=>s.jP,LiveRange:()=>s.iE,MarkerOperation:()=>s.zj,Matcher:()=>s.xO,MergeOperation:()=>s.lB,Model:()=>s.Hn,MouseObserver:()=>s.dM,MoveOperation:()=>s.$z,NoOperation:()=>s.Pk,Observer:()=>s.Qj,OperationFactory:()=>s.Bz,Position:()=>s.Ly,Range:()=>s.e6,RenameOperation:()=>s.sN,Renderer:()=>s.Th,RootAttributeOperation:()=>s._o,RootOperation:()=>s.tF,SplitOperation:()=>s.qh,StylesProcessor:()=>s.A_,TabObserver:()=>s.aY,Text:()=>s.xv,TextProxy:()=>s.R,TreeWalker:()=>s.Po,UpcastWriter:()=>s.yj,View:()=>s.G7,ViewAttributeElement:()=>s.m1,ViewContainerElement:()=>s.By,ViewDocument:()=>s.Ux,ViewDocumentFragment:()=>s.y_,ViewEditableElement:()=>s.W2,ViewElement:()=>s.y9,ViewEmptyElement:()=>s.pc,ViewRawElement:()=>s.wx,ViewRootEditableElement:()=>s.FY,ViewText:()=>s.Xj,ViewTreeWalker:()=>s.rh,ViewUIElement:()=>s.dq,addBackgroundRules:()=>s.QR,addBorderRules:()=>s.sI,addMarginRules:()=>s.vt,addPaddingRules:()=>s.J8,disablePlaceholder:()=>s.DA,enablePlaceholder:()=>s.ID,findOptimalInsertionRange:()=>s.KT,getBoxSidesShorthandValue:()=>s.I8,getBoxSidesValueReducer:()=>s.mq,getBoxSidesValues:()=>s.oz,getFillerOffset:()=>s.YG,getPositionShorthandNormalizer:()=>s.m0,getShorthandValues:()=>s.uT,hidePlaceholder:()=>s.$_,isAttachment:()=>s.SB,isColor:()=>s.D5,isLength:()=>s.G9,isLineStyle:()=>s.IT,isPercentage:()=>s.zz,isPosition:()=>s.WK,isRepeat:()=>s.Zb,isURL:()=>s.PX,needsPlaceholder:()=>s.Q7,showPlaceholder:()=>s.NJ,transformSets:()=>s.Rf});var s=o("./packages/ckeditor5-engine/src/index.ts")},"./src/enter.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Enter:()=>s.C,ShiftEnter:()=>s.G});var s=o("./packages/ckeditor5-enter/src/index.ts")},"./src/paragraph.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Paragraph:()=>l,ParagraphButtonUI:()=>u});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class r extends s.mY{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){const e=this.editor.model,t=e.document,o=(0,i.Ps)(t.selection.getSelectedBlocks());this.value=!!o&&o.is("element","paragraph"),this.isEnabled=!!o&&n(o,e.schema)}execute(e={}){const t=this.editor.model,o=t.document,s=e.selection||o.selection;t.canEditAt(s)&&t.change((e=>{const o=s.getSelectedBlocks();for(const s of o)!s.is("element","paragraph")&&n(s,t.schema)&&e.rename(s,"paragraph")}))}}function n(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class a extends s.mY{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){const t=this.editor.model,o=e.attributes;let s=e.position;t.canEditAt(s)&&t.change((e=>{if(s=this._findPositionToInsertParagraph(s,e),!s)return;const i=e.createElement("paragraph");o&&t.schema.setAllowedAttributes(i,o,e),t.insertContent(i,s),e.setSelection(i,"in")}))}_findPositionToInsertParagraph(e,t){const o=this.editor.model;if(o.schema.checkChild(e,"paragraph"))return e;const s=o.schema.findAllowedParent(e,"paragraph");if(!s)return null;const i=e.parent,r=o.schema.checkChild(i,"$text");return i.isEmpty||r&&e.isAtEnd?o.createPositionAfter(i):!i.isEmpty&&r&&e.isAtStart?o.createPositionBefore(i):t.split(e,s).position}}const c=class extends s.Sy{static get pluginName(){return"Paragraph"}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new r(e)),e.commands.add("insertParagraph",new a(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>c.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let l=c;l.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var d=o("./packages/ckeditor5-ui/src/index.ts");const h=s.icons.paragraph;class u extends s.Sy{static get requires(){return[l]}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("paragraph",(o=>{const s=new d.r5(o),i=e.commands.get("paragraph");return s.label=t("Paragraph"),s.icon=h,s.tooltip=!0,s.isToggleable=!0,s.bind("isEnabled").to(i),s.bind("isOn").to(i,"value"),s.on("execute",(()=>{e.execute("paragraph")})),s}))}}},"./src/select-all.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{SelectAll:()=>h,SelectAllEditing:()=>c,SelectAllUI:()=>d});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class r extends s.mY{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let o=e.schema.getLimitElement(t);if(t.containsEntireContent(o)||!n(e.schema,o))do{if(o=o.parent,!o)return}while(!n(e.schema,o));e.change((e=>{e.setSelection(o,"in")}))}}function n(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const a=(0,i.Zz)("Ctrl+A");class c extends s.Sy{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new r(e)),this.listenTo(t,"keydown",((t,o)=>{(0,i.Cq)(o)===a&&(e.execute("selectAll"),o.preventDefault())}))}}var l=o("./packages/ckeditor5-ui/src/index.ts");class d extends s.Sy{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",(t=>{const o=e.commands.get("selectAll"),s=new l.r5(t),i=t.t;return s.set({label:i("Select all"),icon:'<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>',keystroke:"Ctrl+A",tooltip:!0}),s.bind("isEnabled").to(o,"isEnabled"),this.listenTo(s,"execute",(()=>{e.execute("selectAll"),e.editing.view.focus()})),s}))}}class h extends s.Sy{static get requires(){return[c,d]}static get pluginName(){return"SelectAll"}}},"./src/typing.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Delete:()=>s.HG,Input:()=>s.II,InsertTextCommand:()=>s.BT,TextTransformation:()=>s.cL,TextWatcher:()=>s.uL,TwoStepCaretMovement:()=>s.mh,Typing:()=>s.Mq,findAttributeRange:()=>s.VD,findAttributeRangeBound:()=>s.r9,getLastTextLine:()=>s.Up,inlineHighlight:()=>s.Im});var s=o("./packages/ckeditor5-typing/src/index.ts")},"./src/ui.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{AutocompleteView:()=>s.cH,BalloonPanelView:()=>s.no,BalloonToolbar:()=>s.Jf,BlockToolbar:()=>s.ee,BodyCollection:()=>s.BK,BoxedEditorUIView:()=>s.py,ButtonLabelView:()=>s.UR,ButtonView:()=>s.r5,CollapsibleView:()=>s.p2,ColorGridView:()=>s.J6,ColorPickerView:()=>s.J2,ColorSelectorView:()=>s.MI,ColorTileView:()=>s._9,ComponentFactory:()=>s._Y,ContextualBalloon:()=>s.WB,CssTransitionDisablerMixin:()=>s.RX,DropdownButtonView:()=>s.J0,DropdownPanelView:()=>s.G2,DropdownView:()=>s._n,EditorUI:()=>s.S8,EditorUIView:()=>s.fF,FilteredView:()=>s.LR,FocusCycler:()=>s.I0,FormHeaderView:()=>s.Gp,HighlightedTextView:()=>s.yd,IconView:()=>s.mO,IframeView:()=>s.VY,InlineEditableUIView:()=>s.r1,InputNumberView:()=>s.Xs,InputTextView:()=>s.pq,InputView:()=>s.Em,LabelView:()=>s.Dn,LabeledFieldView:()=>s.KP,ListItemGroupView:()=>s.YK,ListItemView:()=>s.dn,ListView:()=>s.Bv,Model:()=>s.Hn,Notification:()=>s.P_,SearchInfoView:()=>s.$W,SearchTextView:()=>s.ZU,SpinnerView:()=>s.RO,SplitButtonView:()=>s.Rm,StickyPanelView:()=>s.lp,SwitchButtonView:()=>s.BM,Template:()=>s.YS,TextareaView:()=>s.nC,ToolbarLineBreakView:()=>s.qR,ToolbarSeparatorView:()=>s.$y,ToolbarView:()=>s.jB,TooltipManager:()=>s.gE,View:()=>s.G7,ViewCollection:()=>s.vX,addKeyboardHandlingForGrid:()=>s.IJ,addListToDropdown:()=>s.Pm,addToolbarToDropdown:()=>s.up,clickOutsideHandler:()=>s.eC,createDropdown:()=>s.t9,createLabeledDropdown:()=>s.FH,createLabeledInputNumber:()=>s.sh,createLabeledInputText:()=>s.R,createLabeledTextarea:()=>s.s$,focusChildOnDropdownOpen:()=>s.Mh,getLocalizedColorOptions:()=>s.k6,icons:()=>s.ci,injectCssTransitionDisabler:()=>s.fe,normalizeColorOptions:()=>s.S1,normalizeSingleColorDefinition:()=>s.jY,normalizeToolbarConfig:()=>s.iw,submitHandler:()=>s.GI});var s=o("./packages/ckeditor5-ui/src/index.ts")},"./src/undo.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Undo:()=>w,UndoEditing:()=>g,UndoUI:()=>k});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-engine/src/index.ts"),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,l=(e,t,o)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class d extends s.mY{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(e.data,"set",((e,t)=>{t[1]=((e,t)=>{for(var o in t||(t={}))a.call(t,o)&&l(e,o,t[o]);if(n)for(var o of n(t))c.call(t,o)&&l(e,o,t[o]);return e})({},t[1]);const o=t[1];o.batchType||(o.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(e.data,"set",((e,t)=>{t[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(e){const t=this.editor.model.document.selection,o={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,o){const s=this.editor.model,i=s.document,r=[],n=e.map((e=>e.getTransformedByOperations(o))),a=n.flat();for(const e of n){const t=e.filter((e=>e.root!=i.graveyard)).filter((e=>!u(e,a)));t.length&&(h(t),r.push(t[0]))}r.length&&s.change((e=>{e.setSelection(r,{backward:t})}))}_undo(e,t){const o=this.editor.model,s=o.document;this._createdBatches.add(t);const r=e.operations.slice().filter((e=>e.isDocumentOperation));r.reverse();for(const e of r){const r=e.baseVersion+1,n=Array.from(s.history.getOperations(r)),a=(0,i.Rf)([e.getReversed()],n,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let r of a){const n=r.affectedSelectable;n&&!o.canEditAt(n)&&(r=new i.Pk(r.baseVersion)),t.addOperation(r),o.applyOperation(r),s.history.setOperationAsUndone(e,r)}}}}function h(e){e.sort(((e,t)=>e.start.isBefore(t.start)?-1:1));for(let t=1;t<e.length;t++){const o=e[t-1].getJoined(e[t],!0);o&&(t--,e.splice(t,2,o))}}function u(e,t){return t.some((t=>t!==e&&t.containsRange(e,!0)))}class p extends d{execute(e=null){const t=e?this._stack.findIndex((t=>t.batch==e)):this._stack.length-1,o=this._stack.splice(t,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,(()=>{this._undo(o.batch,s);const e=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,e)})),this.fire("revert",o.batch,s),this.refresh()}}class f extends d{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,(()=>{const o=e.batch.operations[e.batch.operations.length-1].baseVersion+1,s=this.editor.model.document.history.getOperations(o);this._restoreSelection(e.selection.ranges,e.selection.isBackward,s),this._undo(e.batch,t)})),this.refresh()}}class g extends s.Sy{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const e=this.editor;this._undoCommand=new p(e),this._redoCommand=new f(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",((e,t)=>{const o=t[0];if(!o.isDocumentOperation)return;const s=o.batch,i=this._redoCommand.createdBatches.has(s),r=this._undoCommand.createdBatches.has(s);this._batchRegistry.has(s)||(this._batchRegistry.add(s),s.isUndoable&&(i?this._undoCommand.addBatch(s):r||(this._undoCommand.addBatch(s),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((e,t,o)=>{this._redoCommand.addBatch(o)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}var m=o("./packages/ckeditor5-ui/src/index.ts");const b='<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>',_='<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 k extends s.Sy{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,o=e.t,s="ltr"==t.uiLanguageDirection?b:_,i="ltr"==t.uiLanguageDirection?_:b;this._addButton("undo",o("Undo"),"CTRL+Z",s),this._addButton("redo",o("Redo"),"CTRL+Y",i)}_addButton(e,t,o,s){const i=this.editor;i.ui.componentFactory.add(e,(r=>{const n=i.commands.get(e),a=new m.r5(r);return a.set({label:t,icon:s,keystroke:o,tooltip:!0}),a.bind("isEnabled").to(n,"isEnabled"),this.listenTo(a,"execute",(()=>{i.execute(e),i.editing.view.focus()})),a}))}}class w extends s.Sy{static get requires(){return[g,k]}static get pluginName(){return"Undo"}}},"./src/upload.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Base64UploadAdapter:()=>h,FileDialogButtonView:()=>l,FileRepository:()=>n,SimpleUploadAdapter:()=>w});var s=o("./packages/ckeditor5-core/src/index.ts"),i=o("./packages/ckeditor5-utils/src/index.ts");class r extends((0,i.Re)()){constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise(((o,s)=>{t.onload=()=>{const e=t.result;this._data=e,o(e)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)}))}abort(){this._reader.abort()}}class n extends s.Sy{constructor(){super(...arguments),this.loaders=new i.FE,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[s.lR]}init(){this.loaders.on("change",(()=>this._updatePendingAction())),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0))}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return(0,i.KE)("filerepository-no-upload-adapter"),null;const t=new a(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then((e=>{this._loadersMap.set(e,t)})).catch((()=>{})),t.on("change:uploaded",(()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e})),t.on("change:uploadTotal",(()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e})),t}destroyLoader(e){const t=e instanceof a?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach(((e,o)=>{e===t&&this._loadersMap.delete(o)}))}_updatePendingAction(){const e=this.editor.plugins.get(s.lR);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,o=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(o(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",o)}}else e.remove(this._pendingAction),this._pendingAction=null}}class a extends((0,i.Re)()){constructor(e,t){super(),this.id=(0,i.hQ)(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new r,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((e=>this._filePromiseWrapper?e:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new i.Bb("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((e=>this._reader.read(e))).then((e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e})).catch((e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e}))}upload(){if("idle"!=this.status)throw new i.Bb("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((e=>(this.uploadResponse=e,this.status="idle",e))).catch((e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e}))}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&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(e){const t={};return t.promise=new Promise(((o,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then((e=>{t.isFulfilled=!0,o(e)})).catch((e=>{t.isFulfilled=!0,s(e)}))})),t}}var c=o("./packages/ckeditor5-ui/src/index.ts");class l extends c.r5{constructor(e){super(e),this.buttonView=this,this._fileInputView=new d(e),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 d extends c.G7{constructor(e){super(e),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}class h extends s.Sy{static get requires(){return[n]}static get pluginName(){return"Base64UploadAdapter"}init(){this.editor.plugins.get(n).createUploadAdapter=e=>new u(e)}}class u{constructor(e){this.loader=e}upload(){return new Promise(((e,t)=>{const o=this.reader=new window.FileReader;o.addEventListener("load",(()=>{e({default:o.result})})),o.addEventListener("error",(e=>{t(e)})),o.addEventListener("abort",(()=>{t()})),this.loader.file.then((e=>{o.readAsDataURL(e)}))}))}abort(){this.reader.abort()}}var p=Object.defineProperty,f=Object.defineProperties,g=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,k=(e,t,o)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;class w extends s.Sy{static get requires(){return[n]}static get pluginName(){return"SimpleUploadAdapter"}init(){const e=this.editor.config.get("simpleUpload");e&&(e.uploadUrl?this.editor.plugins.get(n).createUploadAdapter=t=>new v(t,e):(0,i.KE)("simple-upload-adapter-missing-uploadurl"))}}class v{constructor(e,t){this.loader=e,this.options=t}upload(){return this.loader.file.then((e=>new Promise(((t,o)=>{this._initRequest(),this._initListeners(t,o,e),this._sendRequest(e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.options.uploadUrl,!0),e.responseType="json"}_initListeners(e,t,o){const s=this.xhr,i=this.loader,r=`Couldn't upload file: ${o.name}.`;s.addEventListener("error",(()=>t(r))),s.addEventListener("abort",(()=>t())),s.addEventListener("load",(()=>{const o=s.response;if(!o||o.error)return t(o&&o.error&&o.error.message?o.error.message:r);const i=o.url?{default:o.url}:o.urls;var n;e((n=((e,t)=>{for(var o in t||(t={}))b.call(t,o)&&k(e,o,t[o]);if(m)for(var o of m(t))_.call(t,o)&&k(e,o,t[o]);return e})({},o),f(n,g({urls:i}))))})),s.upload&&s.upload.addEventListener("progress",(e=>{e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}_sendRequest(e){const t=this.options.headers||{},o=this.options.withCredentials||!1;for(const e of Object.keys(t))this.xhr.setRequestHeader(e,t[e]);this.xhr.withCredentials=o;const s=new FormData;s.append("upload",e),this.xhr.send(s)}}},"./src/utils.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{CKEditorError:()=>s.Bb,Collection:()=>s.FE,Config:()=>s.De,DomEmitterMixin:()=>s.Xu,ElementReplacer:()=>s.a6,EmitterMixin:()=>s.ln,EventInfo:()=>s.M3,FocusTracker:()=>s.Rh,KeystrokeHandler:()=>s.VD,Locale:()=>s.go,ObservableMixin:()=>s.Re,Rect:()=>s.UL,ResizeObserver:()=>s.do,abortableDebounce:()=>s.fZ,compareArrays:()=>s.Rt,count:()=>s.QX,createElement:()=>s.az,delay:()=>s.gw,diff:()=>s.Hg,diffToChanges:()=>s.Pk,env:()=>s.OB,exponentialDelay:()=>s.$J,fastDiff:()=>s.HZ,findClosestScrollableAncestor:()=>s.wm,first:()=>s.Ps,getAncestors:()=>s.dk,getBorderWidths:()=>s.lo,getCode:()=>s.Cq,getDataFromElement:()=>s.yy,getEnvKeystrokeText:()=>s.XU,getLanguageDirection:()=>s.j9,getLocalizedArrowKeyCodeDirection:()=>s.mA,getOptimalPosition:()=>s.xZ,global:()=>s.global,indexOf:()=>s.cq,insertAt:()=>s.ZQ,insertToPriorityArray:()=>s.VG,isArrowKeyCode:()=>s.dj,isCombiningMark:()=>s.tO,isComment:()=>s.C3,isForwardArrowKeyCode:()=>s.Zt,isHighSurrogateHalf:()=>s.Cb,isInsideCombinedSymbol:()=>s.pp,isInsideEmojiSequence:()=>s.YK,isInsideSurrogatePair:()=>s.to,isIterable:()=>s.TW,isLowSurrogateHalf:()=>s.nA,isNode:()=>s.UG,isRange:()=>s.bR,isText:()=>s.Gs,isValidAttributeName:()=>s.$b,isVisible:()=>s.pn,keyCodes:()=>s.Do,logError:()=>s.H,logWarning:()=>s.KE,mix:()=>s.CD,parseKeystroke:()=>s.Zz,priorities:()=>s.tA,releaseDate:()=>s.Dm,remove:()=>s.Od,retry:()=>s.XD,scrollAncestorsToShowTarget:()=>s.F0,scrollViewportToShowTarget:()=>s.mR,setDataInElement:()=>s.jS,spliceArray:()=>s.x,toArray:()=>s.qo,toMap:()=>s.qL,toUnit:()=>s.nn,uid:()=>s.hQ,verifyLicense:()=>s.Tx,version:()=>s.i8,wait:()=>s.Dc});var s=o("./packages/ckeditor5-utils/src/index.ts")},"./src/watchdog.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{ContextWatchdog:()=>v,EditorWatchdog:()=>_,Watchdog:()=>s});class s{constructor(e){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof e.crashNumberLimit?e.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof e.minimumNonErrorTimePeriod?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const t="error"in e?e.error:e.reason;t instanceof Error&&this._handleError(t,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(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter((e=>e!==t))}_fire(e,...t){const o=this._listeners[e]||[];for(const e of o)e.apply(this,[null,...t])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t instanceof ErrorEvent?t.filename:void 0,lineno:t instanceof ErrorEvent?t.lineno:void 0,colno:t instanceof ErrorEvent?t.colno:void 0,date:this._now()});const o=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:o}),o?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(e){return e.is&&e.is("CKEditorError")&&void 0!==e.context&&null!==e.context&&"ready"===this.state&&this._isErrorComingFromThisItem(e)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function i(e,t=new Set){const o=[e],s=new Set;let i=0;for(;o.length>i;){const e=o[i++];if(!s.has(e)&&r(e)&&!t.has(e))if(s.add(e),Symbol.iterator in e)try{for(const t of e)o.push(t)}catch(e){}else for(const t in e)"defaultValue"!==t&&o.push(e[t])}return s}function r(e){const t=Object.prototype.toString.call(e),o=typeof e;return!("number"===o||"boolean"===o||"string"===o||"symbol"===o||"function"===o||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e._watchdogExcluded||e instanceof EventTarget||e instanceof Event)}function n(e,t,o=new Set){if(e===t&&("object"==typeof(s=e)&&null!==s))return!0;var s;const r=i(e,o),n=i(t,o);for(const e of r)if(n.has(e))return!0;return!1}var a=o("./node_modules/lodash-es/throttle.js"),c=o("./node_modules/lodash-es/isElement.js"),l=o("./node_modules/lodash-es/cloneDeepWith.js"),d=Object.defineProperty,h=Object.defineProperties,u=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(e,t,o)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))f.call(t,o)&&m(e,o,t[o]);if(p)for(var o of p(t))g.call(t,o)&&m(e,o,t[o]);return e};class _ extends s{constructor(e,t={}){super(t),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=(0,a.Z)(this._save.bind(this),"number"==typeof t.saveInterval?t.saveInterval:5e3),e&&(this._creator=(t,o)=>e.create(t,o)),this._destructor=e=>e.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((e=>{console.error("An error happened during the editor destroying.",e)})).then((()=>{const e={},t=[],o=this._config.rootsAttributes||{},s={};for(const[i,r]of Object.entries(this._data.roots))r.isLoaded?(e[i]="",s[i]=o[i]||{}):t.push(i);const i=(r=b({},this._config),n={extraPlugins:this._config.extraPlugins||[],lazyRoots:t,rootsAttributes:s,_watchdogInitialData:this._data},h(r,u(n)));var r,n;return delete i.initialData,i.extraPlugins.push(k),this._initUsingData?this.create(e,i,i.context):(0,c.Z)(this._elementOrData)?this.create(this._elementOrData,i,i.context):this.create(this._editables,i,i.context)})).then((()=>{this._fire("restart")}))}create(e=this._elementOrData,t=this._config,o){return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=e,this._initUsingData="string"==typeof e||Object.keys(e).length>0&&"string"==typeof Object.values(e)[0],this._config=this._cloneEditorConfiguration(t)||{},this._config.context=o,this._creator(e,this._config)))).then((e=>{this._editor=e,e.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=e.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 e=this._editor;return this._editor=null,e.model.document.off("change:data",this._throttledSave),this._destructor(e)}))}_save(){const e=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=e}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(e){this._excludedProps=e}_getData(){const e=this._editor,t=e.model.document.roots.filter((e=>e.isAttached()&&"$graveyard"!=e.rootName)),{plugins:o}=e,s=o.has("CommentsRepository")&&o.get("CommentsRepository"),i=o.has("TrackChanges")&&o.get("TrackChanges"),r={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};t.forEach((e=>{r.roots[e.rootName]={content:JSON.stringify(Array.from(e.getChildren())),attributes:JSON.stringify(Array.from(e.getAttributes())),isLoaded:e._isLoaded}}));for(const t of e.model.markers)t._affectsData&&(r.markers[t.name]={rangeJSON:t.getRange().toJSON(),usingOperation:t._managedUsingOperations,affectsData:t._affectsData});return s&&(r.commentThreads=JSON.stringify(s.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),i&&(r.suggestions=JSON.stringify(i.getSuggestions({toJSON:!0,skipNotAttached:!0}))),r}_getEditables(){const e={};for(const t of this.editor.model.document.getRootNames()){const o=this.editor.ui.getEditableElement(t);o&&(e[t]=o)}return e}_isErrorComingFromThisItem(e){return n(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return(0,l.Z)(e,((e,t)=>(0,c.Z)(e)||"context"===t?e:void 0))}}class k{constructor(e){this.editor=e,this._data=e.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",(e=>{e.stop(),this.editor.model.enqueueChange({isUndoable:!1},(e=>{this._restoreCollaborationData(),this._restoreEditorData(e)})),this.editor.data.fire("ready")}),{priority:999})}_createNode(e,t){if("name"in t){const o=e.createElement(t.name,t.attributes);if(t.children)for(const s of t.children)o._appendChild(this._createNode(e,s));return o}return e.createText(t.data,t.attributes)}_restoreEditorData(e){const t=this.editor;Object.entries(this._data.roots).forEach((([o,{content:s,attributes:i}])=>{const r=JSON.parse(s),n=JSON.parse(i),a=t.model.document.getRoot(o);for(const[t,o]of n)e.setAttribute(t,o,a);for(const t of r){const o=this._createNode(e,t);e.insert(o,a,"end")}})),Object.entries(this._data.markers).forEach((([o,s])=>{const{document:i}=t.model,r=s,{rangeJSON:{start:n,end:a}}=r,c=((e,t)=>{var o={};for(var s in e)f.call(e,s)&&t.indexOf(s)<0&&(o[s]=e[s]);if(null!=e&&p)for(var s of p(e))t.indexOf(s)<0&&g.call(e,s)&&(o[s]=e[s]);return o})(r,["rangeJSON"]),l=i.getRoot(n.root),d=e.createPositionFromPath(l,n.path,n.stickiness),h=e.createPositionFromPath(l,a.path,a.stickiness),u=e.createRange(d,h);e.addMarker(o,b({range:u},c))}))}_restoreCollaborationData(){const e=JSON.parse(this._data.commentThreads),t=JSON.parse(this._data.suggestions);e.forEach((e=>{const t=this.editor.config.get("collaboration.channelId"),o=this.editor.plugins.get("CommentsRepository");if(o.hasCommentThread(e.threadId)){o.getCommentThread(e.threadId).remove()}o.addCommentThread(b({channelId:t},e))})),t.forEach((e=>{const t=this.editor.plugins.get("TrackChangesEditing");if(t.hasSuggestion(e.id)){t.getSuggestion(e.id).attributes=e.attributes}else t.addSuggestionData(e)}))}}const w=Symbol("MainQueueId");class v extends s{constructor(e,t={}){super(t),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new y,this._watchdogConfig=t,this._creator=t=>e.create(t),this._destructor=e=>e.destroy(),this._actionQueues.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}get context(){return this._context}create(e={}){return this._actionQueues.enqueue(w,(()=>(this._contextConfig=e,this._create())))}getItem(e){return this._getWatchdog(e)._item}getItemState(e){return this._getWatchdog(e).state}add(e){const t=x(e);return Promise.all(t.map((e=>this._actionQueues.enqueue(e.id,(()=>{if("destroyed"===this.state)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 t;if(this._watchdogs.has(e.id))throw new Error(`Item with the given id is already added: '${e.id}'.`);if("editor"===e.type)return t=new _(null,this._watchdogConfig),t.setCreator(e.creator),t._setExcludedProperties(this._contextProps),e.destructor&&t.setDestructor(e.destructor),this._watchdogs.set(e.id,t),t.on("error",((o,{error:s,causesRestart:i})=>{this._fire("itemError",{itemId:e.id,error:s}),i&&this._actionQueues.enqueue(e.id,(()=>new Promise((o=>{const s=()=>{t.off("restart",s),this._fire("itemRestart",{itemId:e.id}),o()};t.on("restart",s)}))))})),t.create(e.sourceElementOrData,e.config,this._context);throw new Error(`Not supported item type: '${e.type}'.`)})))))}remove(e){const t=x(e);return Promise.all(t.map((e=>this._actionQueues.enqueue(e,(()=>{const t=this._getWatchdog(e);return this._watchdogs.delete(e),t.destroy()})))))}destroy(){return this._actionQueues.enqueue(w,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(w,(()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((e=>{console.error("An error happened during destroying the context or items.",e)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((e=>(this._context=e,this._contextProps=i(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 e=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((e=>e.destroy()))).then((()=>this._destructor(e)))}))}_getWatchdog(e){const t=this._watchdogs.get(e);if(!t)throw new Error(`Item with the given id was not registered: ${e}.`);return t}_isErrorComingFromThisItem(e){for(const t of this._watchdogs.values())if(t._isErrorComingFromThisItem(e))return!1;return n(this._context,e.context)}}class y{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e,t){const o=e===w;this._activeActions++,this._queues.get(e)||this._queues.set(e,Promise.resolve());const s=(o?Promise.all(this._queues.values()):Promise.all([this._queues.get(w),this._queues.get(e)])).then(t),i=s.catch((()=>{}));return this._queues.set(e,i),s.finally((()=>{this._activeActions--,this._queues.get(e)===i&&0===this._activeActions&&this._onEmptyCallbacks.forEach((e=>e()))}))}}function x(e){return Array.isArray(e)?e:[e]}},"./src/widget.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{WIDGET_CLASS_NAME:()=>s.s4,WIDGET_SELECTED_CLASS_NAME:()=>s.Uo,Widget:()=>s.$L,WidgetResize:()=>s.WR,WidgetToolbarRepository:()=>s.e8,WidgetTypeAround:()=>s.Ww,findOptimalInsertionRange:()=>s.KT,getLabel:()=>s.id,isWidget:()=>s.Qd,setHighlightHandling:()=>s.em,setLabel:()=>s.l6,toWidget:()=>s.XC,toWidgetEditable:()=>s.sC,viewToModelPositionOutsideModelElement:()=>s.$n});var s=o("./packages/ckeditor5-widget/src/index.ts")},"?7cdd":(e,t,o)=>{e.exports=o},"./node_modules/lodash-es/_ListCache.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});const s=function(){this.__data__=[],this.size=0};var i=o("./node_modules/lodash-es/eq.js");const r=function(e,t){for(var o=e.length;o--;)if((0,i.Z)(e[o][0],t))return o;return-1};var n=Array.prototype.splice;const a=function(e){var t=this.__data__,o=r(t,e);return!(o<0)&&(o==t.length-1?t.pop():n.call(t,o,1),--this.size,!0)};const c=function(e){var t=this.__data__,o=r(t,e);return o<0?void 0:t[o][1]};const l=function(e){return r(this.__data__,e)>-1};const d=function(e,t){var o=this.__data__,s=r(o,e);return s<0?(++this.size,o.push([e,t])):o[s][1]=t,this};function h(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}h.prototype.clear=s,h.prototype.delete=a,h.prototype.get=c,h.prototype.has=l,h.prototype.set=d;const u=h},"./node_modules/lodash-es/_Map.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_getNative.js"),i=o("./node_modules/lodash-es/_root.js");const r=(0,s.Z)(i.Z,"Map")},"./node_modules/lodash-es/_MapCache.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>x});const s=(0,o("./node_modules/lodash-es/_getNative.js").Z)(Object,"create");const i=function(){this.__data__=s?s(null):{},this.size=0};const r=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var n=Object.prototype.hasOwnProperty;const a=function(e){var t=this.__data__;if(s){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return n.call(t,e)?t[e]:void 0};var c=Object.prototype.hasOwnProperty;const l=function(e){var t=this.__data__;return s?void 0!==t[e]:c.call(t,e)};const d=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this};function h(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}h.prototype.clear=i,h.prototype.delete=r,h.prototype.get=a,h.prototype.has=l,h.prototype.set=d;const u=h;var p=o("./node_modules/lodash-es/_ListCache.js"),f=o("./node_modules/lodash-es/_Map.js");const g=function(){this.size=0,this.__data__={hash:new u,map:new(f.Z||p.Z),string:new u}};const m=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const b=function(e,t){var o=e.__data__;return m(t)?o["string"==typeof t?"string":"hash"]:o.map};const _=function(e){var t=b(this,e).delete(e);return this.size-=t?1:0,t};const k=function(e){return b(this,e).get(e)};const w=function(e){return b(this,e).has(e)};const v=function(e,t){var o=b(this,e),s=o.size;return o.set(e,t),this.size+=o.size==s?0:1,this};function y(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var s=e[t];this.set(s[0],s[1])}}y.prototype.clear=g,y.prototype.delete=_,y.prototype.get=k,y.prototype.has=w,y.prototype.set=v;const x=y},"./node_modules/lodash-es/_Stack.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});var s=o("./node_modules/lodash-es/_ListCache.js");const i=function(){this.__data__=new s.Z,this.size=0};const r=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o};const n=function(e){return this.__data__.get(e)};const a=function(e){return this.__data__.has(e)};var c=o("./node_modules/lodash-es/_Map.js"),l=o("./node_modules/lodash-es/_MapCache.js");const d=function(e,t){var o=this.__data__;if(o instanceof s.Z){var i=o.__data__;if(!c.Z||i.length<199)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new l.Z(i)}return o.set(e,t),this.size=o.size,this};function h(e){var t=this.__data__=new s.Z(e);this.size=t.size}h.prototype.clear=i,h.prototype.delete=r,h.prototype.get=n,h.prototype.has=a,h.prototype.set=d;const u=h},"./node_modules/lodash-es/_Symbol.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=o("./node_modules/lodash-es/_root.js").Z.Symbol},"./node_modules/lodash-es/_Uint8Array.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=o("./node_modules/lodash-es/_root.js").Z.Uint8Array},"./node_modules/lodash-es/_arrayLikeKeys.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});const s=function(e,t){for(var o=-1,s=Array(e);++o<e;)s[o]=t(o);return s};var i=o("./node_modules/lodash-es/isArguments.js"),r=o("./node_modules/lodash-es/isArray.js"),n=o("./node_modules/lodash-es/isBuffer.js"),a=o("./node_modules/lodash-es/_isIndex.js"),c=o("./node_modules/lodash-es/isTypedArray.js"),l=Object.prototype.hasOwnProperty;const d=function(e,t){var o=(0,r.Z)(e),d=!o&&(0,i.Z)(e),h=!o&&!d&&(0,n.Z)(e),u=!o&&!d&&!h&&(0,c.Z)(e),p=o||d||h||u,f=p?s(e.length,String):[],g=f.length;for(var m in e)!t&&!l.call(e,m)||p&&("length"==m||h&&("offset"==m||"parent"==m)||u&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,a.Z)(m,g))||f.push(m);return f}},"./node_modules/lodash-es/_arrayPush.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e,t){for(var o=-1,s=t.length,i=e.length;++o<s;)e[i+o]=t[o];return e}},"./node_modules/lodash-es/_assignValue.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o("./node_modules/lodash-es/_baseAssignValue.js"),i=o("./node_modules/lodash-es/eq.js"),r=Object.prototype.hasOwnProperty;const n=function(e,t,o){var n=e[t];r.call(e,t)&&(0,i.Z)(n,o)&&(void 0!==o||t in e)||(0,s.Z)(e,t,o)}},"./node_modules/lodash-es/_baseAssignValue.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_defineProperty.js");const i=function(e,t,o){"__proto__"==t&&s.Z?(0,s.Z)(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}},"./node_modules/lodash-es/_baseClone.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>Q});var s=o("./node_modules/lodash-es/_Stack.js");const i=function(e,t){for(var o=-1,s=null==e?0:e.length;++o<s&&!1!==t(e[o],o,e););return e};var r=o("./node_modules/lodash-es/_assignValue.js"),n=o("./node_modules/lodash-es/_copyObject.js"),a=o("./node_modules/lodash-es/keys.js");const c=function(e,t){return e&&(0,n.Z)(t,(0,a.Z)(t),e)};var l=o("./node_modules/lodash-es/keysIn.js");const d=function(e,t){return e&&(0,n.Z)(t,(0,l.Z)(t),e)};var h=o("./node_modules/lodash-es/_cloneBuffer.js"),u=o("./node_modules/lodash-es/_copyArray.js"),p=o("./node_modules/lodash-es/_getSymbols.js");const f=function(e,t){return(0,n.Z)(e,(0,p.Z)(e),t)};var g=o("./node_modules/lodash-es/_arrayPush.js"),m=o("./node_modules/lodash-es/_getPrototype.js"),b=o("./node_modules/lodash-es/stubArray.js");const _=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,g.Z)(t,(0,p.Z)(e)),e=(0,m.Z)(e);return t}:b.Z;const k=function(e,t){return(0,n.Z)(e,_(e),t)};var w=o("./node_modules/lodash-es/_getAllKeys.js"),v=o("./node_modules/lodash-es/_baseGetAllKeys.js");const y=function(e){return(0,v.Z)(e,l.Z,_)};var x=o("./node_modules/lodash-es/_getTag.js"),P=Object.prototype.hasOwnProperty;const C=function(e){var t=e.length,o=new e.constructor(t);return t&&"string"==typeof e[0]&&P.call(e,"index")&&(o.index=e.index,o.input=e.input),o};var T=o("./node_modules/lodash-es/_cloneArrayBuffer.js");const E=function(e,t){var o=t?(0,T.Z)(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)};var A=/\w*$/;const S=function(e){var t=new e.constructor(e.source,A.exec(e));return t.lastIndex=e.lastIndex,t};var O=o("./node_modules/lodash-es/_Symbol.js"),R=O.Z?O.Z.prototype:void 0,j=R?R.valueOf:void 0;const M=function(e){return j?Object(j.call(e)):{}};var V=o("./node_modules/lodash-es/_cloneTypedArray.js");const B=function(e,t,o){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,T.Z)(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return E(e,o);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,V.Z)(e,o);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return S(e);case"[object Symbol]":return M(e)}};var I=o("./node_modules/lodash-es/_initCloneObject.js"),D=o("./node_modules/lodash-es/isArray.js"),N=o("./node_modules/lodash-es/isBuffer.js"),z=o("./node_modules/lodash-es/isObjectLike.js");const F=function(e){return(0,z.Z)(e)&&"[object Map]"==(0,x.Z)(e)};var L=o("./node_modules/lodash-es/_baseUnary.js"),Z=o("./node_modules/lodash-es/_nodeUtil.js"),W=Z.Z&&Z.Z.isMap;const $=W?(0,L.Z)(W):F;var q=o("./node_modules/lodash-es/isObject.js");const H=function(e){return(0,z.Z)(e)&&"[object Set]"==(0,x.Z)(e)};var U=Z.Z&&Z.Z.isSet;const G=U?(0,L.Z)(U):H;var K="[object Arguments]",J="[object Function]",Y="[object Object]",X={};X[K]=X["[object Array]"]=X["[object ArrayBuffer]"]=X["[object DataView]"]=X["[object Boolean]"]=X["[object Date]"]=X["[object Float32Array]"]=X["[object Float64Array]"]=X["[object Int8Array]"]=X["[object Int16Array]"]=X["[object Int32Array]"]=X["[object Map]"]=X["[object Number]"]=X[Y]=X["[object RegExp]"]=X["[object Set]"]=X["[object String]"]=X["[object Symbol]"]=X["[object Uint8Array]"]=X["[object Uint8ClampedArray]"]=X["[object Uint16Array]"]=X["[object Uint32Array]"]=!0,X["[object Error]"]=X[J]=X["[object WeakMap]"]=!1;const Q=function e(t,o,n,p,g,m){var b,_=1&o,v=2&o,P=4&o;if(n&&(b=g?n(t,p,g,m):n(t)),void 0!==b)return b;if(!(0,q.Z)(t))return t;var T=(0,D.Z)(t);if(T){if(b=C(t),!_)return(0,u.Z)(t,b)}else{var E=(0,x.Z)(t),A=E==J||"[object GeneratorFunction]"==E;if((0,N.Z)(t))return(0,h.Z)(t,_);if(E==Y||E==K||A&&!g){if(b=v||A?{}:(0,I.Z)(t),!_)return v?k(t,d(b,t)):f(t,c(b,t))}else{if(!X[E])return g?t:{};b=B(t,E,_)}}m||(m=new s.Z);var S=m.get(t);if(S)return S;m.set(t,b),G(t)?t.forEach((function(s){b.add(e(s,o,n,s,t,m))})):$(t)&&t.forEach((function(s,i){b.set(i,e(s,o,n,i,t,m))}));var O=P?v?y:w.Z:v?l.Z:a.Z,R=T?void 0:O(t);return i(R||t,(function(s,i){R&&(s=t[i=s]),(0,r.Z)(b,i,e(s,o,n,i,t,m))})),b}},"./node_modules/lodash-es/_baseGetAllKeys.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_arrayPush.js"),i=o("./node_modules/lodash-es/isArray.js");const r=function(e,t,o){var r=t(e);return(0,i.Z)(e)?r:(0,s.Z)(r,o(e))}},"./node_modules/lodash-es/_baseGetTag.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});var s=o("./node_modules/lodash-es/_Symbol.js"),i=Object.prototype,r=i.hasOwnProperty,n=i.toString,a=s.Z?s.Z.toStringTag:void 0;const c=function(e){var t=r.call(e,a),o=e[a];try{e[a]=void 0;var s=!0}catch(e){}var i=n.call(e);return s&&(t?e[a]=o:delete e[a]),i};var l=Object.prototype.toString;const d=function(e){return l.call(e)};var h=s.Z?s.Z.toStringTag:void 0;const u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":h&&h in Object(e)?c(e):d(e)}},"./node_modules/lodash-es/_baseUnary.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e){return function(t){return e(t)}}},"./node_modules/lodash-es/_cloneArrayBuffer.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_Uint8Array.js");const i=function(e){var t=new e.constructor(e.byteLength);return new s.Z(t).set(new s.Z(e)),t}},"./node_modules/lodash-es/_cloneBuffer.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var s=o("./node_modules/lodash-es/_root.js"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=i&&"object"==typeof module&&module&&!module.nodeType&&module,n=r&&r.exports===i?s.Z.Buffer:void 0,a=n?n.allocUnsafe:void 0;const c=function(e,t){if(t)return e.slice();var o=e.length,s=a?a(o):new e.constructor(o);return e.copy(s),s}},"./node_modules/lodash-es/_cloneTypedArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_cloneArrayBuffer.js");const i=function(e,t){var o=t?(0,s.Z)(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}},"./node_modules/lodash-es/_copyArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e,t){var o=-1,s=e.length;for(t||(t=Array(s));++o<s;)t[o]=e[o];return t}},"./node_modules/lodash-es/_copyObject.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_assignValue.js"),i=o("./node_modules/lodash-es/_baseAssignValue.js");const r=function(e,t,o,r){var n=!o;o||(o={});for(var a=-1,c=t.length;++a<c;){var l=t[a],d=r?r(o[l],e[l],l,o,e):void 0;void 0===d&&(d=e[l]),n?(0,i.Z)(o,l,d):(0,s.Z)(o,l,d)}return o}},"./node_modules/lodash-es/_createAssigner.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>_});const s=function(e){return e};const i=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)};var r=Math.max;const n=function(e,t,o){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,n=-1,a=r(s.length-t,0),c=Array(a);++n<a;)c[n]=s[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=s[n];return l[t]=o(c),i(e,this,l)}};const a=function(e){return function(){return e}};var c=o("./node_modules/lodash-es/_defineProperty.js");const l=c.Z?function(e,t){return(0,c.Z)(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:s;var d=Date.now;const h=function(e){var t=0,o=0;return function(){var s=d(),i=16-(s-o);if(o=s,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(l);const u=function(e,t){return h(n(e,t,s),e+"")};var p=o("./node_modules/lodash-es/eq.js"),f=o("./node_modules/lodash-es/isArrayLike.js"),g=o("./node_modules/lodash-es/_isIndex.js"),m=o("./node_modules/lodash-es/isObject.js");const b=function(e,t,o){if(!(0,m.Z)(o))return!1;var s=typeof t;return!!("number"==s?(0,f.Z)(o)&&(0,g.Z)(t,o.length):"string"==s&&t in o)&&(0,p.Z)(o[t],e)};const _=function(e){return u((function(t,o){var s=-1,i=o.length,r=i>1?o[i-1]:void 0,n=i>2?o[2]:void 0;for(r=e.length>3&&"function"==typeof r?(i--,r):void 0,n&&b(o[0],o[1],n)&&(r=i<3?void 0:r,i=1),t=Object(t);++s<i;){var a=o[s];a&&e(t,a,s,r)}return t}))}},"./node_modules/lodash-es/_defineProperty.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_getNative.js");const i=function(){try{var e=(0,s.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},"./node_modules/lodash-es/_freeGlobal.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s="object"==typeof global&&global&&global.Object===Object&&global},"./node_modules/lodash-es/_getAllKeys.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o("./node_modules/lodash-es/_baseGetAllKeys.js"),i=o("./node_modules/lodash-es/_getSymbols.js"),r=o("./node_modules/lodash-es/keys.js");const n=function(e){return(0,s.Z)(e,r.Z,i.Z)}},"./node_modules/lodash-es/_getNative.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>_});var s=o("./node_modules/lodash-es/isFunction.js");const i=o("./node_modules/lodash-es/_root.js").Z["__core-js_shared__"];var r,n=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";const a=function(e){return!!n&&n in e};var c=o("./node_modules/lodash-es/isObject.js"),l=o("./node_modules/lodash-es/_toSource.js"),d=/^\[object .+?Constructor\]$/,h=Function.prototype,u=Object.prototype,p=h.toString,f=u.hasOwnProperty,g=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,c.Z)(e)||a(e))&&((0,s.Z)(e)?g:d).test((0,l.Z)(e))};const b=function(e,t){return null==e?void 0:e[t]};const _=function(e,t){var o=b(e,t);return m(o)?o:void 0}},"./node_modules/lodash-es/_getPrototype.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=(0,o("./node_modules/lodash-es/_overArg.js").Z)(Object.getPrototypeOf,Object)},"./node_modules/lodash-es/_getSymbols.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});const s=function(e,t){for(var o=-1,s=null==e?0:e.length,i=0,r=[];++o<s;){var n=e[o];t(n,o,e)&&(r[i++]=n)}return r};var i=o("./node_modules/lodash-es/stubArray.js"),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;const a=n?function(e){return null==e?[]:(e=Object(e),s(n(e),(function(t){return r.call(e,t)})))}:i.Z},"./node_modules/lodash-es/_getTag.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>x});var s=o("./node_modules/lodash-es/_getNative.js"),i=o("./node_modules/lodash-es/_root.js");const r=(0,s.Z)(i.Z,"DataView");var n=o("./node_modules/lodash-es/_Map.js");const a=(0,s.Z)(i.Z,"Promise");const c=(0,s.Z)(i.Z,"Set");const l=(0,s.Z)(i.Z,"WeakMap");var d=o("./node_modules/lodash-es/_baseGetTag.js"),h=o("./node_modules/lodash-es/_toSource.js"),u="[object Map]",p="[object Promise]",f="[object Set]",g="[object WeakMap]",m="[object DataView]",b=(0,h.Z)(r),_=(0,h.Z)(n.Z),k=(0,h.Z)(a),w=(0,h.Z)(c),v=(0,h.Z)(l),y=d.Z;(r&&y(new r(new ArrayBuffer(1)))!=m||n.Z&&y(new n.Z)!=u||a&&y(a.resolve())!=p||c&&y(new c)!=f||l&&y(new l)!=g)&&(y=function(e){var t=(0,d.Z)(e),o="[object Object]"==t?e.constructor:void 0,s=o?(0,h.Z)(o):"";if(s)switch(s){case b:return m;case _:return u;case k:return p;case w:return f;case v:return g}return t});const x=y},"./node_modules/lodash-es/_initCloneObject.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var s=o("./node_modules/lodash-es/isObject.js"),i=Object.create;const r=function(){function e(){}return function(t){if(!(0,s.Z)(t))return{};if(i)return i(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();var n=o("./node_modules/lodash-es/_getPrototype.js"),a=o("./node_modules/lodash-es/_isPrototype.js");const c=function(e){return"function"!=typeof e.constructor||(0,a.Z)(e)?{}:r((0,n.Z)(e))}},"./node_modules/lodash-es/_isIndex.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=/^(?:0|[1-9]\d*)$/;const i=function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&s.test(e))&&e>-1&&e%1==0&&e<t}},"./node_modules/lodash-es/_isPrototype.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=Object.prototype;const i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||s)}},"./node_modules/lodash-es/_nodeUtil.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var s=o("./node_modules/lodash-es/_freeGlobal.js"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=i&&"object"==typeof module&&module&&!module.nodeType&&module,n=r&&r.exports===i&&s.Z.process;const a=function(){try{var e=r&&r.require&&r.require("util").types;return e||n&&n.binding&&n.binding("util")}catch(e){}}()},"./node_modules/lodash-es/_overArg.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e,t){return function(o){return e(t(o))}}},"./node_modules/lodash-es/_root.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_freeGlobal.js"),i="object"==typeof self&&self&&self.Object===Object&&self;const r=s.Z||i||Function("return this")()},"./node_modules/lodash-es/_toSource.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=Function.prototype.toString;const i=function(e){if(null!=e){try{return s.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash-es/assignIn.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o("./node_modules/lodash-es/_copyObject.js"),i=o("./node_modules/lodash-es/_createAssigner.js"),r=o("./node_modules/lodash-es/keysIn.js");const n=(0,i.Z)((function(e,t){(0,s.Z)(t,(0,r.Z)(t),e)}))},"./node_modules/lodash-es/cloneDeepWith.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var s=o("./node_modules/lodash-es/_baseClone.js");const i=function(e,t){return t="function"==typeof t?t:void 0,(0,s.Z)(e,5,t)}},"./node_modules/lodash-es/debounce.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>_});var s=o("./node_modules/lodash-es/isObject.js"),i=o("./node_modules/lodash-es/_root.js");const r=function(){return i.Z.Date.now()};var n=/\s/;const a=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t};var c=/^\s+/;const l=function(e){return e?e.slice(0,a(e)+1).replace(c,""):e};var d=o("./node_modules/lodash-es/isSymbol.js"),h=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt;const g=function(e){if("number"==typeof e)return e;if((0,d.Z)(e))return NaN;if((0,s.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,s.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var o=u.test(e);return o||p.test(e)?f(e.slice(2),o?2:8):h.test(e)?NaN:+e};var m=Math.max,b=Math.min;const _=function(e,t,o){var i,n,a,c,l,d,h=0,u=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var o=i,s=n;return i=n=void 0,h=t,c=e.apply(s,o)}function k(e){var o=e-d;return void 0===d||o>=t||o<0||p&&e-h>=a}function w(){var e=r();if(k(e))return v(e);l=setTimeout(w,function(e){var o=t-(e-d);return p?b(o,a-(e-h)):o}(e))}function v(e){return l=void 0,f&&i?_(e):(i=n=void 0,c)}function y(){var e=r(),o=k(e);if(i=arguments,n=this,d=e,o){if(void 0===l)return function(e){return h=e,l=setTimeout(w,t),u?_(e):c}(d);if(p)return clearTimeout(l),l=setTimeout(w,t),_(d)}return void 0===l&&(l=setTimeout(w,t)),c}return t=g(t)||0,(0,s.Z)(o)&&(u=!!o.leading,a=(p="maxWait"in o)?m(g(o.maxWait)||0,t):a,f="trailing"in o?!!o.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),h=0,i=d=n=l=void 0},y.flush=function(){return void 0===l?c:v(r())},y}},"./node_modules/lodash-es/eq.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e,t){return e===t||e!=e&&t!=t}},"./node_modules/lodash-es/escapeRegExp.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var s=o("./node_modules/lodash-es/toString.js"),i=/[\\^$.*+?()[\]{}|]/g,r=RegExp(i.source);const n=function(e){return(e=(0,s.Z)(e))&&r.test(e)?e.replace(i,"\\$&"):e}},"./node_modules/lodash-es/isArguments.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObjectLike.js");const r=function(e){return(0,i.Z)(e)&&"[object Arguments]"==(0,s.Z)(e)};var n=Object.prototype,a=n.hasOwnProperty,c=n.propertyIsEnumerable;const l=r(function(){return arguments}())?r:function(e){return(0,i.Z)(e)&&a.call(e,"callee")&&!c.call(e,"callee")}},"./node_modules/lodash-es/isArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=Array.isArray},"./node_modules/lodash-es/isArrayLike.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/isFunction.js"),i=o("./node_modules/lodash-es/isLength.js");const r=function(e){return null!=e&&(0,i.Z)(e.length)&&!(0,s.Z)(e)}},"./node_modules/lodash-es/isBuffer.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>c});var s=o("./node_modules/lodash-es/_root.js");const i=function(){return!1};var r="object"==typeof exports&&exports&&!exports.nodeType&&exports,n=r&&"object"==typeof module&&module&&!module.nodeType&&module,a=n&&n.exports===r?s.Z.Buffer:void 0;const c=(a?a.isBuffer:void 0)||i},"./node_modules/lodash-es/isElement.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/isObjectLike.js"),i=o("./node_modules/lodash-es/isPlainObject.js");const r=function(e){return(0,s.Z)(e)&&1===e.nodeType&&!(0,i.Z)(e)}},"./node_modules/lodash-es/isFunction.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObject.js");const r=function(e){if(!(0,i.Z)(e))return!1;var t=(0,s.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash-es/isLength.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./node_modules/lodash-es/isObject.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash-es/isObjectLike.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash-es/isPlainObject.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>h});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/_getPrototype.js"),r=o("./node_modules/lodash-es/isObjectLike.js"),n=Function.prototype,a=Object.prototype,c=n.toString,l=a.hasOwnProperty,d=c.call(Object);const h=function(e){if(!(0,r.Z)(e)||"[object Object]"!=(0,s.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var o=l.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&c.call(o)==d}},"./node_modules/lodash-es/isSymbol.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isObjectLike.js");const r=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,s.Z)(e)}},"./node_modules/lodash-es/isTypedArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>h});var s=o("./node_modules/lodash-es/_baseGetTag.js"),i=o("./node_modules/lodash-es/isLength.js"),r=o("./node_modules/lodash-es/isObjectLike.js"),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1;const a=function(e){return(0,r.Z)(e)&&(0,i.Z)(e.length)&&!!n[(0,s.Z)(e)]};var c=o("./node_modules/lodash-es/_baseUnary.js"),l=o("./node_modules/lodash-es/_nodeUtil.js"),d=l.Z&&l.Z.isTypedArray;const h=d?(0,c.Z)(d):a},"./node_modules/lodash-es/keys.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>l});var s=o("./node_modules/lodash-es/_arrayLikeKeys.js"),i=o("./node_modules/lodash-es/_isPrototype.js");const r=(0,o("./node_modules/lodash-es/_overArg.js").Z)(Object.keys,Object);var n=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,i.Z)(e))return r(e);var t=[];for(var o in Object(e))n.call(e,o)&&"constructor"!=o&&t.push(o);return t};var c=o("./node_modules/lodash-es/isArrayLike.js");const l=function(e){return(0,c.Z)(e)?(0,s.Z)(e):a(e)}},"./node_modules/lodash-es/keysIn.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var s=o("./node_modules/lodash-es/_arrayLikeKeys.js"),i=o("./node_modules/lodash-es/isObject.js"),r=o("./node_modules/lodash-es/_isPrototype.js");const n=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t};var a=Object.prototype.hasOwnProperty;const c=function(e){if(!(0,i.Z)(e))return n(e);var t=(0,r.Z)(e),o=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&o.push(s);return o};var l=o("./node_modules/lodash-es/isArrayLike.js");const d=function(e){return(0,l.Z)(e)?(0,s.Z)(e,!0):c(e)}},"./node_modules/lodash-es/stubArray.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});const s=function(){return[]}},"./node_modules/lodash-es/throttle.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});var s=o("./node_modules/lodash-es/debounce.js"),i=o("./node_modules/lodash-es/isObject.js");const r=function(e,t,o){var r=!0,n=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return(0,i.Z)(o)&&(r="leading"in o?!!o.leading:r,n="trailing"in o?!!o.trailing:n),(0,s.Z)(e,t,{leading:r,maxWait:t,trailing:n})}},"./node_modules/lodash-es/toString.js":(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var s=o("./node_modules/lodash-es/_Symbol.js");const i=function(e,t){for(var o=-1,s=null==e?0:e.length,i=Array(s);++o<s;)i[o]=t(e[o],o,e);return i};var r=o("./node_modules/lodash-es/isArray.js"),n=o("./node_modules/lodash-es/isSymbol.js"),a=s.Z?s.Z.prototype:void 0,c=a?a.toString:void 0;const l=function e(t){if("string"==typeof t)return t;if((0,r.Z)(t))return i(t,e)+"";if((0,n.Z)(t))return c?c.call(t):"";var o=t+"";return"0"==o&&1/t==-Infinity?"-0":o};const d=function(e){return null==e?"":l(e)}}},t={};function o(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={id:s,exports:{}};return e[s](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var s=o("?7cdd");(window.CKEditor5=window.CKEditor5||{}).dll=s})(),function(e){e.CKEditor5=e.CKEditor5||{};const t=["utils","core","engine","ui","clipboard","enter","paragraph","select-all","typing","undo","upload","widget","watchdog"];for(const o of t){const t=o.replace(/-([a-z])/g,((e,t)=>t.toUpperCase()));e.CKEditor5[t]=e.CKEditor5.dll(`./src/${o}.js`)}}(window); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/af.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/af.js index d0f2882fb78e..103541029804 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/af.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/af.js @@ -1 +1 @@ -!function(e){const o=e.af=e.af||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 van %1",Cancel:"Kanselleer","Cannot upload file:":"Lêer nie opgelaai nie:",Clear:"","Remove color":"Verwyder kleur","Restore default":"Herstel verstek","Rich Text Editor. Editing area: %0":"",Save:"Stoor","Show more items":"Wys meer items"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.af=e.af||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 van %1",Cancel:"Kanselleer","Cannot upload file:":"Lêer nie opgelaai nie:",Clear:"","Insert image with file manager":"","Insert with file manager":"","Remove color":"Verwyder kleur","Replace image with file manager":"","Replace with file manager":"","Restore default":"Herstel verstek","Rich Text Editor. Editing area: %0":"",Save:"Stoor","Show more items":"Wys meer items"}),a.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ar.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ar.js index 62698edec000..2058233bb754 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ar.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ar.js @@ -1 +1 @@ -!function(e){const t=e.ar=e.ar||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 من %1",Accept:"قبول",Aquamarine:"أخضر زبرجد",Black:"أسود",Blue:"أزرق",Cancel:"إلغاء","Cannot upload file:":"لا يمكن رÙع الملÙ:",Clear:"مسØ","Click to edit block":"انقر لتØرير الوØدة التجميعية","Dim grey":"رمادي خاÙت","Drag to move":"اسØب للنقل","Dropdown toolbar":"شريط أدوات القائمة المنسدلة","Edit block":"كتلة التØرير","Editor block content toolbar":"شريط المØرر لأدوات كتلة المØتوى","Editor contextual toolbar":"شريط المØرر للأدوات السياقية","Editor editing area: %0":"منطقة تØرير المØرر: %0","Editor toolbar":"شريط أدوات المØرر",Green:"أخضر",Grey:"رمادي",HEX:"لون سداسي عشري","Insert paragraph after block":"إدراج Ùقرة بعد الكتلة","Insert paragraph before block":"إدراج Ùقرة قبل الكتلة","Light blue":"أزرق ÙاتØ","Light green":"أخضر ÙاتØ","Light grey":"رمادي ÙاتØ",Next:"التالي","No results found":"لم يتم العثور على نتائج","No searchable items":"لا توجد عناصر قابلة للبØØ« متاØØ©",Orange:"برتقالي","Press Enter to type after or press Shift + Enter to type before the widget":"اضغط على Enter للكتابة بعد ذلك أو اضغط على Shift + Enter للكتابة قبل الأداة",Previous:"السابق",Purple:"أرجواني",Red:"Ø£Øمر",Redo:"إعادة","Remove color":"إزالة اللون","Restore default":"استعادة الاÙتراضي","Rich Text Editor":"معالج نصوص","Rich Text Editor. Editing area: %0":"Ù…Øرر النصوص المنسّقة. منطقة التØرير: %0",Save:"ØÙظ","Select all":"تØديد الكل","Show more items":"عرض المزيد من العناصر",Turquoise:"Ùيروزي",Undo:"تراجع","Upload in progress":"جاري الرÙع",White:"أبيض","Widget toolbar":"شريط أدوات الواجهة",Yellow:"أصÙر"}),t.getPluralForm=function(e){return 0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.ar=e.ar||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 من %1",Accept:"قبول",Aquamarine:"أخضر زبرجد",Black:"أسود",Blue:"أزرق",Cancel:"إلغاء","Cannot upload file:":"لا يمكن رÙع الملÙ:",Clear:"مسØ","Click to edit block":"انقر لتØرير الوØدة التجميعية","Dim grey":"رمادي خاÙت","Drag to move":"اسØب للنقل","Dropdown toolbar":"شريط أدوات القائمة المنسدلة","Edit block":"كتلة التØرير","Editor block content toolbar":"شريط المØرر لأدوات كتلة المØتوى","Editor contextual toolbar":"شريط المØرر للأدوات السياقية","Editor editing area: %0":"منطقة تØرير المØرر: %0","Editor toolbar":"شريط أدوات المØرر",Green:"أخضر",Grey:"رمادي",HEX:"لون سداسي عشري","Insert image with file manager":"إدراج صورة مع مدير الملÙات","Insert paragraph after block":"إدراج Ùقرة بعد الكتلة","Insert paragraph before block":"إدراج Ùقرة قبل الكتلة","Insert with file manager":"إدخال مع مدير الملÙات","Light blue":"أزرق ÙاتØ","Light green":"أخضر ÙاتØ","Light grey":"رمادي ÙاتØ",Next:"التالي","No results found":"لم يتم العثور على نتائج","No searchable items":"لا توجد عناصر قابلة للبØØ« متاØØ©",Orange:"برتقالي","Press Enter to type after or press Shift + Enter to type before the widget":"اضغط على Enter للكتابة بعد ذلك أو اضغط على Shift + Enter للكتابة قبل الأداة",Previous:"السابق",Purple:"أرجواني",Red:"Ø£Øمر",Redo:"إعادة","Remove color":"إزالة اللون","Replace image with file manager":"استبدال الصورة بمدير الملÙات","Replace with file manager":"استبدال بمدير الملÙات","Restore default":"استعادة الاÙتراضي","Rich Text Editor":"معالج نصوص","Rich Text Editor. Editing area: %0":"Ù…Øرر النصوص المنسّقة. منطقة التØرير: %0",Save:"ØÙظ","Select all":"تØديد الكل","Show more items":"عرض المزيد من العناصر",Turquoise:"Ùيروزي",Undo:"تراجع","Upload in progress":"جاري الرÙع",White:"أبيض","Widget toolbar":"شريط أدوات الواجهة",Yellow:"أصÙر"}),t.getPluralForm=function(e){return 0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ast.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ast.js index 0ad33d49323c..337853517ad6 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ast.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ast.js @@ -1 +1 @@ -!function(e){const o=e.ast=e.ast||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Encaboxar","Cannot upload file:":"",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"Refacer","Remove color":"","Restore default":"","Rich Text Editor":"Editor de testu arriquecÃu","Rich Text Editor. Editing area: %0":"",Save:"Guardar","Show more items":"",Turquoise:"",Undo:"Desfacer",White:"",Yellow:""}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.ast=e.ast||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Encaboxar","Cannot upload file:":"",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"Refacer","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Editor de testu arriquecÃu","Rich Text Editor. Editing area: %0":"",Save:"Guardar","Show more items":"",Turquoise:"",Undo:"Desfacer",White:"",Yellow:""}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/az.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/az.js index 9ec49b2b0021..d632faa8b85b 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/az.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/az.js @@ -1 +1 @@ -!function(e){const t=e.az=e.az||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%1-dÉ™n %0",Accept:"",Aquamarine:"Akvamarin",Black:"Qara",Blue:"Mavi",Cancel:"Ä°mtina et","Cannot upload file:":"Fayl yüklÉ™nÉ™ bilmir",Clear:"","Click to edit block":"","Dim grey":"Tünd boz","Drag to move":"","Dropdown toolbar":"Açılan paneli","Edit block":"RedaktÉ™ etmÉ™k bloku","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"Redaktorun paneli",Green:"Yaşıl",Grey:"Boz",HEX:"","Insert paragraph after block":"","Insert paragraph before block":"","Light blue":"Açıq mavi","Light green":"Açıq yaşıl","Light grey":"Açıq boz",Next:"NövbÉ™ti","No results found":"","No searchable items":"",Orange:"Narıncı","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"ÆvvÉ™lki",Purple:"BÉ™növÅŸÉ™yi",Red:"Qırmızı",Redo:"TÉ™krar et","Remove color":"RÉ™ngi ləğv et","Restore default":"","Rich Text Editor":"Rich Text Redaktoru","Rich Text Editor. Editing area: %0":"",Save:"Yadda saxla","Show more items":"Daha çox əşyanı göstÉ™rin",Turquoise:"FiruzÉ™yi",Undo:"Ä°mtina et","Upload in progress":"YüklÉ™nir",White:"AÄŸ","Widget toolbar":"Vidgetin paneli",Yellow:"Sarı"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.az=e.az||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%1-dÉ™n %0",Accept:"",Aquamarine:"Akvamarin",Black:"Qara",Blue:"Mavi",Cancel:"Ä°mtina et","Cannot upload file:":"Fayl yüklÉ™nÉ™ bilmir",Clear:"","Click to edit block":"","Dim grey":"Tünd boz","Drag to move":"","Dropdown toolbar":"Açılan paneli","Edit block":"RedaktÉ™ etmÉ™k bloku","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"Redaktorun paneli",Green:"Yaşıl",Grey:"Boz",HEX:"","Insert image with file manager":"","Insert paragraph after block":"","Insert paragraph before block":"","Insert with file manager":"","Light blue":"Açıq mavi","Light green":"Açıq yaşıl","Light grey":"Açıq boz",Next:"NövbÉ™ti","No results found":"","No searchable items":"",Orange:"Narıncı","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"ÆvvÉ™lki",Purple:"BÉ™növÅŸÉ™yi",Red:"Qırmızı",Redo:"TÉ™krar et","Remove color":"RÉ™ngi ləğv et","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Rich Text Redaktoru","Rich Text Editor. Editing area: %0":"",Save:"Yadda saxla","Show more items":"Daha çox əşyanı göstÉ™rin",Turquoise:"FiruzÉ™yi",Undo:"Ä°mtina et","Upload in progress":"YüklÉ™nir",White:"AÄŸ","Widget toolbar":"Vidgetin paneli",Yellow:"Sarı"}),a.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bg.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bg.js index d2406cbeecce..6ecb60d7fecd 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bg.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bg.js @@ -1 +1 @@ -!function(e){const t=e.bg=e.bg||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 от %1",Accept:"Приемане",Aquamarine:"Ðквамарин",Black:"Черен",Blue:"Син",Cancel:"Отказ","Cannot upload file:":"Ðе може да качи файл:",Clear:"ИзчиÑти","Click to edit block":"Кликнете, за да редактирате блок","Dim grey":"Тъмно Ñив","Drag to move":"Плъзнете за премеÑтване","Dropdown toolbar":"Лента Ñ Ð¿Ð°Ð´Ð°Ñ‰Ð¾ меню","Edit block":"Редактирай блок","Editor block content toolbar":"Лента Ñ Ð¸Ð½Ñтрументи за блокиране на Ñъдържанието на редактора","Editor contextual toolbar":"КонтекÑтна лента Ñ Ð¸Ð½Ñтрументи на редактора","Editor editing area: %0":"Зона за редактиране на редактора: %0","Editor toolbar":"Лента за редакциÑ",Green:"Зелен",Grey:"Сив",HEX:"ÐЕХ","Insert paragraph after block":"Въведи параграф Ñлед блока","Insert paragraph before block":"Въведи параграф преди блока","Light blue":"Светло Ñин","Light green":"Светло зелен","Light grey":"Светло Ñив",Next:"Следващ","No results found":"ÐÑма намерени резултати","No searchable items":"ÐÑма елементи за Ñ‚ÑŠÑ€Ñене",Orange:"Оранжев","Press Enter to type after or press Shift + Enter to type before the widget":"ÐатиÑнете Enter за въвеждане или натиÑнете Shift + Enter за въвеждане преди Ð¸Ð·Ð¿ÑŠÐ»Ð½Ð¸Ð¼Ð¸Ñ Ð¼Ð¾Ð´ÑƒÐ»",Previous:"Предишен",Purple:"Лилав",Red:"Червен",Redo:"Повтори","Remove color":"Премахни цвÑÑ‚","Restore default":"ВъзÑтанови първоначалните наÑтройки","Rich Text Editor":"Богат текÑтов редактор","Rich Text Editor. Editing area: %0":"Rich Text Editor. Зона за редактиране: %0",Save:"Запазване","Select all":"Избери вÑички","Show more items":"Покажи повече единици",Turquoise:"Тюркоазен",Undo:"Отмени","Upload in progress":"Качването е в процеÑ",White:"БÑл","Widget toolbar":"Лента Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰Ð½Ð¸ ÑредÑтва",Yellow:"Жълт"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.bg=e.bg||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 от %1",Accept:"Приемане",Aquamarine:"Ðквамарин",Black:"Черен",Blue:"Син",Cancel:"Отказ","Cannot upload file:":"Ðе може да качи файл:",Clear:"ИзчиÑти","Click to edit block":"Кликнете, за да редактирате блок","Dim grey":"Тъмно Ñив","Drag to move":"Плъзнете за премеÑтване","Dropdown toolbar":"Лента Ñ Ð¿Ð°Ð´Ð°Ñ‰Ð¾ меню","Edit block":"Редактирай блок","Editor block content toolbar":"Лента Ñ Ð¸Ð½Ñтрументи за блокиране на Ñъдържанието на редактора","Editor contextual toolbar":"КонтекÑтна лента Ñ Ð¸Ð½Ñтрументи на редактора","Editor editing area: %0":"Зона за редактиране на редактора: %0","Editor toolbar":"Лента за редакциÑ",Green:"Зелен",Grey:"Сив",HEX:"ÐЕХ","Insert image with file manager":"Вмъкнете изображение Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð¸Ñ Ð¼ÐµÐ½Ð¸Ð´Ð¶ÑŠÑ€","Insert paragraph after block":"Въведи параграф Ñлед блока","Insert paragraph before block":"Въведи параграф преди блока","Insert with file manager":"Вмъкване Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð¸Ñ Ð¼ÐµÐ½Ð¸Ð´Ð¶ÑŠÑ€","Light blue":"Светло Ñин","Light green":"Светло зелен","Light grey":"Светло Ñив",Next:"Следващ","No results found":"ÐÑма намерени резултати","No searchable items":"ÐÑма елементи за Ñ‚ÑŠÑ€Ñене",Orange:"Оранжев","Press Enter to type after or press Shift + Enter to type before the widget":"ÐатиÑнете Enter за въвеждане или натиÑнете Shift + Enter за въвеждане преди Ð¸Ð·Ð¿ÑŠÐ»Ð½Ð¸Ð¼Ð¸Ñ Ð¼Ð¾Ð´ÑƒÐ»",Previous:"Предишен",Purple:"Лилав",Red:"Червен",Redo:"Повтори","Remove color":"Премахни цвÑÑ‚","Replace image with file manager":"Заменете изображението Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð¸Ñ Ð¼ÐµÐ½Ð¸Ð´Ð¶ÑŠÑ€","Replace with file manager":"Заменете Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð¸Ñ Ð¼ÐµÐ½Ð¸Ð´Ð¶ÑŠÑ€","Restore default":"ВъзÑтанови първоначалните наÑтройки","Rich Text Editor":"Богат текÑтов редактор","Rich Text Editor. Editing area: %0":"Rich Text Editor. Зона за редактиране: %0",Save:"Запазване","Select all":"Избери вÑички","Show more items":"Покажи повече единици",Turquoise:"Тюркоазен",Undo:"Отмени","Upload in progress":"Качването е в процеÑ",White:"БÑл","Widget toolbar":"Лента Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰Ð½Ð¸ ÑредÑтва",Yellow:"Жълт"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bn.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bn.js index 21b9309d3548..6b253530b925 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bn.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bn.js @@ -1 +1 @@ -!function(e){const o=e.bn=e.bn||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 à¦à¦° %1",Accept:"গà§à¦°à¦¹à¦£ করà§à¦¨",Aquamarine:"ফেকাশে সবà§à¦œà¦¬à¦°à§à¦£",Black:"কালো",Blue:"নীল ",Cancel:"বাতিল করà§à¦¨","Cannot upload file:":"ফাইল আপলোড করা যাবে নাঃ",Clear:"পরিষà§à¦•à¦¾à¦° করà§à¦¨","Click to edit block":"বà§à¦²à¦• à¦à¦¡à¦¿à¦Ÿ করতে কà§à¦²à¦¿à¦• করà§à¦¨","Dim grey":"আবছা ধূসর","Drag to move":"সরানোর জনà§à¦¯ টেনে আনà§à¦¨","Dropdown toolbar":"ডà§à¦°à¦ªà¦¡à¦¾à¦‰à¦¨ টà§à¦²à¦¬à¦¾à¦°","Edit block":"à¦à¦¡à¦¿à¦Ÿ বà§à¦²à¦•","Editor block content toolbar":"সমà§à¦ªà¦¾à¦¦à¦• বà§à¦²à¦• কনà§à¦Ÿà§‡à¦¨à§à¦Ÿ টà§à¦²à¦¬à¦¾à¦°","Editor contextual toolbar":"সমà§à¦ªà¦¾à¦¦à¦• পà§à¦°à¦¾à¦¸à¦™à§à¦—িক টà§à¦²à¦¬à¦¾à¦°","Editor editing area: %0":"সমà§à¦ªà¦¾à¦¦à¦• সমà§à¦ªà¦¾à¦¦à¦¨à¦¾à¦° কà§à¦·à§‡à¦¤à§à¦°: %0","Editor toolbar":"সমà§à¦ªà¦¾à¦¦à¦• টà§à¦²à¦¬à¦¾à¦°",Green:"সবà§à¦œ",Grey:"ধূসর",HEX:"HEX","Insert paragraph after block":"বà§à¦²à¦•à§‡à¦° পর অনà§à¦šà§à¦›à§‡à¦¦ ঢোকান","Insert paragraph before block":"বà§à¦²à¦• করার আগে অনà§à¦šà§à¦›à§‡à¦¦ ঢোকান","Light blue":"হালকা নীল","Light green":"হালকা সবà§à¦œ","Light grey":"হালকা ধূসর",Next:"পরবরà§à¦¤à§€","No results found":"কোন ফলাফল পাওয়া যায়নি","No searchable items":"কোনো অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨à¦¯à§‹à¦—à§à¦¯ আইটেম নেই",Orange:"কমলা","Press Enter to type after or press Shift + Enter to type before the widget":"পরে টাইপ করতে à¦à¦¨à§à¦Ÿà¦¾à¦° চাপà§à¦¨ বা উইজেটের আগে টাইপ করতে Shift + à¦à¦¨à§à¦Ÿà¦¾à¦° চাপà§à¦¨",Previous:"পূরà§à¦¬à¦¬à¦°à§à¦¤à§€",Purple:"বেগà§à¦¨à¦¿",Red:"লাল",Redo:"রেডো","Remove color":"রং মà§à¦›à§‡ ফেলà§à¦¨","Restore default":"পূরà§à¦¬à¦¾à¦¬à¦¸à§à¦¥à¦¾à¦¯à¦¼ ফিরিয়ে আনà§à¦¨","Rich Text Editor":"রিচ টেকà§à¦¸à¦Ÿ à¦à¦¡à¦¿à¦Ÿà¦°","Rich Text Editor. Editing area: %0":"রিচ টেকà§à¦¸à¦Ÿ à¦à¦¡à¦¿à¦Ÿà¦°à¥¤ সমà§à¦ªà¦¾à¦¦à¦¨à¦¾à¦° কà§à¦·à§‡à¦¤à§à¦°: %0",Save:"সংরকà§à¦·à¦£ করà§à¦¨","Select all":"সব নিরà§à¦¬à¦¾à¦šà¦¨ করà§à¦¨","Show more items":"আরও আইটেম দেখান",Turquoise:"ফিরোজা",Undo:"পূরà§à¦¬à¦¾à¦¬à¦¸à§à¦¥à¦¾à¦¯à¦¼ ফেরান","Upload in progress":"আপলোড চলছে",White:"সাদা","Widget toolbar":"উইজেট টà§à¦²à¦¬à¦¾à¦°",Yellow:"হলà§à¦¦ "}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.bn=e.bn||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 à¦à¦° %1",Accept:"গà§à¦°à¦¹à¦£ করà§à¦¨",Aquamarine:"ফেকাশে সবà§à¦œà¦¬à¦°à§à¦£",Black:"কালো",Blue:"নীল ",Cancel:"বাতিল করà§à¦¨","Cannot upload file:":"ফাইল আপলোড করা যাবে নাঃ",Clear:"পরিষà§à¦•à¦¾à¦° করà§à¦¨","Click to edit block":"বà§à¦²à¦• à¦à¦¡à¦¿à¦Ÿ করতে কà§à¦²à¦¿à¦• করà§à¦¨","Dim grey":"আবছা ধূসর","Drag to move":"সরানোর জনà§à¦¯ টেনে আনà§à¦¨","Dropdown toolbar":"ডà§à¦°à¦ªà¦¡à¦¾à¦‰à¦¨ টà§à¦²à¦¬à¦¾à¦°","Edit block":"à¦à¦¡à¦¿à¦Ÿ বà§à¦²à¦•","Editor block content toolbar":"সমà§à¦ªà¦¾à¦¦à¦• বà§à¦²à¦• কনà§à¦Ÿà§‡à¦¨à§à¦Ÿ টà§à¦²à¦¬à¦¾à¦°","Editor contextual toolbar":"সমà§à¦ªà¦¾à¦¦à¦• পà§à¦°à¦¾à¦¸à¦™à§à¦—িক টà§à¦²à¦¬à¦¾à¦°","Editor editing area: %0":"সমà§à¦ªà¦¾à¦¦à¦• সমà§à¦ªà¦¾à¦¦à¦¨à¦¾à¦° কà§à¦·à§‡à¦¤à§à¦°: %0","Editor toolbar":"সমà§à¦ªà¦¾à¦¦à¦• টà§à¦²à¦¬à¦¾à¦°",Green:"সবà§à¦œ",Grey:"ধূসর",HEX:"HEX","Insert image with file manager":"ফাইল মà§à¦¯à¦¾à¦¨à§‡à¦œà¦¾à¦° দিয়ে ছবি পà§à¦°à¦¬à§‡à¦¶ করান","Insert paragraph after block":"বà§à¦²à¦•à§‡à¦° পর অনà§à¦šà§à¦›à§‡à¦¦ ঢোকান","Insert paragraph before block":"বà§à¦²à¦• করার আগে অনà§à¦šà§à¦›à§‡à¦¦ ঢোকান","Insert with file manager":"ফাইল মà§à¦¯à¦¾à¦¨à§‡à¦œà¦¾à¦° দিয়ে পà§à¦°à¦¬à§‡à¦¶ করান","Light blue":"হালকা নীল","Light green":"হালকা সবà§à¦œ","Light grey":"হালকা ধূসর",Next:"পরবরà§à¦¤à§€","No results found":"কোন ফলাফল পাওয়া যায়নি","No searchable items":"কোনো অনà§à¦¸à¦¨à§à¦§à¦¾à¦¨à¦¯à§‹à¦—à§à¦¯ আইটেম নেই",Orange:"কমলা","Press Enter to type after or press Shift + Enter to type before the widget":"পরে টাইপ করতে à¦à¦¨à§à¦Ÿà¦¾à¦° চাপà§à¦¨ বা উইজেটের আগে টাইপ করতে Shift + à¦à¦¨à§à¦Ÿà¦¾à¦° চাপà§à¦¨",Previous:"পূরà§à¦¬à¦¬à¦°à§à¦¤à§€",Purple:"বেগà§à¦¨à¦¿",Red:"লাল",Redo:"রেডো","Remove color":"রং মà§à¦›à§‡ ফেলà§à¦¨","Replace image with file manager":"ফাইল মà§à¦¯à¦¾à¦¨à§‡à¦œà¦¾à¦° দিয়ে ছবি পà§à¦°à¦¤à¦¿à¦¸à§à¦¥à¦¾à¦ªà¦¨ করà§à¦¨","Replace with file manager":"ফাইল মà§à¦¯à¦¾à¦¨à§‡à¦œà¦¾à¦° দিয়ে পà§à¦°à¦¤à¦¿à¦¸à§à¦¥à¦¾à¦ªà¦¨ করà§à¦¨","Restore default":"পূরà§à¦¬à¦¾à¦¬à¦¸à§à¦¥à¦¾à¦¯à¦¼ ফিরিয়ে আনà§à¦¨","Rich Text Editor":"রিচ টেকà§à¦¸à¦Ÿ à¦à¦¡à¦¿à¦Ÿà¦°","Rich Text Editor. Editing area: %0":"রিচ টেকà§à¦¸à¦Ÿ à¦à¦¡à¦¿à¦Ÿà¦°à¥¤ সমà§à¦ªà¦¾à¦¦à¦¨à¦¾à¦° কà§à¦·à§‡à¦¤à§à¦°: %0",Save:"সংরকà§à¦·à¦£ করà§à¦¨","Select all":"সব নিরà§à¦¬à¦¾à¦šà¦¨ করà§à¦¨","Show more items":"আরও আইটেম দেখান",Turquoise:"ফিরোজা",Undo:"পূরà§à¦¬à¦¾à¦¬à¦¸à§à¦¥à¦¾à¦¯à¦¼ ফেরান","Upload in progress":"আপলোড চলছে",White:"সাদা","Widget toolbar":"উইজেট টà§à¦²à¦¬à¦¾à¦°",Yellow:"হলà§à¦¦ "}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bs.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bs.js index f5d3c4f2624d..bca9f55e0c67 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bs.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/bs.js @@ -1 +1 @@ -!function(i){const o=i.bs=i.bs||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 od %1",Cancel:"PoniÅ¡ti","Cannot upload file:":"Nije moguće uÄitati fajl:",Clear:"","Remove color":"Ukloni boju","Restore default":"Vrati na zadano","Rich Text Editor. Editing area: %0":"",Save:"SaÄuvaj","Show more items":"Prikaži viÅ¡e stavki"}),o.getPluralForm=function(i){return i%10==1&&i%100!=11?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(i){const e=i.bs=i.bs||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 od %1",Cancel:"PoniÅ¡ti","Cannot upload file:":"Nije moguće uÄitati fajl:",Clear:"","Insert image with file manager":"","Insert with file manager":"","Remove color":"Ukloni boju","Replace image with file manager":"","Replace with file manager":"","Restore default":"Vrati na zadano","Rich Text Editor. Editing area: %0":"",Save:"SaÄuvaj","Show more items":"Prikaži viÅ¡e stavki"}),e.getPluralForm=function(i){return i%10==1&&i%100!=11?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ca.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ca.js index c47498af477f..825de185dd37 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ca.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ca.js @@ -1 +1 @@ -!function(e){const r=e.ca=e.ca||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Accepta",Aquamarine:"Aiguamarina",Black:"Negre",Blue:"Blau",Cancel:"Cancel·lar","Cannot upload file:":"No es pot pujar l'arxiu:",Clear:"Esborra","Click to edit block":"Fes clic per editar el bloc","Dim grey":"Gris fosc","Drag to move":"Arrossega per moure","Dropdown toolbar":"Barra d'eines desplegable","Edit block":"Editar bloc","Editor block content toolbar":"Barra d'eines de contingut del bloc de l'editor","Editor contextual toolbar":"Barra d'eines contextual de l'editor","Editor editing area: %0":"Àrea d'edició d'editor: %0","Editor toolbar":"Barra d'eines de l'editor",Green:"Verd",Grey:"Gris",HEX:"HEX","Insert paragraph after block":"Inserir un parà graf després del bloc","Insert paragraph before block":"Inserir un parà graf abans del bloc","Light blue":"Blau clar","Light green":"Verd clar","Light grey":"Gris clar",Next:"Següent","No results found":"Sense resultats","No searchable items":"No hi ha elements de cerca",Orange:"Taronja","Press Enter to type after or press Shift + Enter to type before the widget":"Premeu Retorn per escriure després o premeu Maj + Retorn per escriure abans del giny",Previous:"Anterior",Purple:"Lila",Red:"Vermell",Redo:"Refer","Remove color":"Eliminar el color","Restore default":"Restaurar el valor predeterminat","Rich Text Editor":"Editor de text enriquit","Rich Text Editor. Editing area: %0":"Editor de text enriquit. Àrea d'edició: %0",Save:"Desar","Select all":"Seleccionar-ho tot","Show more items":"Mostrar més elements",Turquoise:"Turquesa",Undo:"Desfer","Upload in progress":"Carrega en curs",White:"Blanc","Widget toolbar":"Barra d'eines de ginys",Yellow:"Groc"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.ca=e.ca||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Accepta",Aquamarine:"Aiguamarina",Black:"Negre",Blue:"Blau",Cancel:"Cancel·lar","Cannot upload file:":"No es pot pujar l'arxiu:",Clear:"Esborra","Click to edit block":"Fes clic per editar el bloc","Dim grey":"Gris fosc","Drag to move":"Arrossega per moure","Dropdown toolbar":"Barra d'eines desplegable","Edit block":"Editar bloc","Editor block content toolbar":"Barra d'eines de contingut del bloc de l'editor","Editor contextual toolbar":"Barra d'eines contextual de l'editor","Editor editing area: %0":"Àrea d'edició d'editor: %0","Editor toolbar":"Barra d'eines de l'editor",Green:"Verd",Grey:"Gris",HEX:"HEX","Insert image with file manager":"Insereix la imatge amb el gestor de fitxers","Insert paragraph after block":"Inserir un parà graf després del bloc","Insert paragraph before block":"Inserir un parà graf abans del bloc","Insert with file manager":"Insereix-ho amb un gestor de fitxers","Light blue":"Blau clar","Light green":"Verd clar","Light grey":"Gris clar",Next:"Següent","No results found":"Sense resultats","No searchable items":"No hi ha elements de cerca",Orange:"Taronja","Press Enter to type after or press Shift + Enter to type before the widget":"Premeu Retorn per escriure després o premeu Maj + Retorn per escriure abans del giny",Previous:"Anterior",Purple:"Lila",Red:"Vermell",Redo:"Refer","Remove color":"Eliminar el color","Replace image with file manager":"Substitueix la imatge amb un gestor de fitxers","Replace with file manager":"Substitueix-ho amb un gestor de fitxers","Restore default":"Restaurar el valor predeterminat","Rich Text Editor":"Editor de text enriquit","Rich Text Editor. Editing area: %0":"Editor de text enriquit. Àrea d'edició: %0",Save:"Desar","Select all":"Seleccionar-ho tot","Show more items":"Mostrar més elements",Turquoise:"Turquesa",Undo:"Desfer","Upload in progress":"Carrega en curs",White:"Blanc","Widget toolbar":"Barra d'eines de ginys",Yellow:"Groc"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/cs.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/cs.js index 590eb9c13cb9..ef41b13eff8e 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/cs.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/cs.js @@ -1 +1 @@ -!function(e){const t=e.cs=e.cs||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 z %1",Accept:"PÅ™ijmout",Aquamarine:"AkvamarÃnová",Black:"ÄŒerná",Blue:"Modrá",Cancel:"ZruÅ¡it","Cannot upload file:":"Soubor nelze nahrát:",Clear:"Smazat","Click to edit block":"KliknutÃm upravÃte blok","Dim grey":"TmavÄ› Å¡edá","Drag to move":"PÅ™esuňte potaženÃm","Dropdown toolbar":"Rozbalovacà panel nástrojů","Edit block":"Upravit blok","Editor block content toolbar":"Panel nástrojů obsahu bloku editoru","Editor contextual toolbar":"Kontextový panel nástrojů editoru","Editor editing area: %0":"EditaÄnà oblast editoru: %0","Editor toolbar":"Panel nástrojů editoru",Green:"Zelená",Grey:"Å edá",HEX:"HEX","Insert paragraph after block":"Vložte odstavec za blok","Insert paragraph before block":"Vložte odstavec pÅ™ed blok","Light blue":"SvÄ›tle modrá","Light green":"SvÄ›tle zelená","Light grey":"SvÄ›tle Å¡edá",Next:"DalÅ¡Ã","No results found":"Nenalezeny žádné výsledky","No searchable items":"Žádné položky k vyhledánÃ",Orange:"Oranžová","Press Enter to type after or press Shift + Enter to type before the widget":"StisknutÃm klávesy Enter můžete psát za widgetem a stisknutÃm Shift + Enter pÅ™ed nÃm",Previous:"PÅ™edchozÃ",Purple:"Fialová",Red:"ÄŒervená",Redo:"Znovu","Remove color":"Odstranit barvu","Restore default":"Obnovit výchozÃ","Rich Text Editor":"Textový editor","Rich Text Editor. Editing area: %0":"EditaÄnà oblast rich text editoru: %0",Save:"Uložit","Select all":"Vybrat vÅ¡e","Show more items":"Zobrazit dalÅ¡Ã položky",Turquoise:"Tyrkysová",Undo:"ZpÄ›t","Upload in progress":"ProbÃhá nahrávánÃ",White:"BÃlá","Widget toolbar":"Panel nástrojů ovládacÃho prvku",Yellow:"Žlutá"}),t.getPluralForm=function(e){return 1==e&&e%1==0?0:e>=2&&e<=4&&e%1==0?1:e%1!=0?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e.cs=e.cs||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 z %1",Accept:"PÅ™ijmout",Aquamarine:"AkvamarÃnová",Black:"ÄŒerná",Blue:"Modrá",Cancel:"ZruÅ¡it","Cannot upload file:":"Soubor nelze nahrát:",Clear:"Smazat","Click to edit block":"KliknutÃm upravÃte blok","Dim grey":"TmavÄ› Å¡edá","Drag to move":"PÅ™esuňte potaženÃm","Dropdown toolbar":"Rozbalovacà panel nástrojů","Edit block":"Upravit blok","Editor block content toolbar":"Panel nástrojů obsahu bloku editoru","Editor contextual toolbar":"Kontextový panel nástrojů editoru","Editor editing area: %0":"EditaÄnà oblast editoru: %0","Editor toolbar":"Panel nástrojů editoru",Green:"Zelená",Grey:"Å edá",HEX:"HEX","Insert image with file manager":"Vložit obrázek pomocà správce souborů","Insert paragraph after block":"Vložte odstavec za blok","Insert paragraph before block":"Vložte odstavec pÅ™ed blok","Insert with file manager":"Vložit pomocà správce souborů","Light blue":"SvÄ›tle modrá","Light green":"SvÄ›tle zelená","Light grey":"SvÄ›tle Å¡edá",Next:"DalÅ¡Ã","No results found":"Nenalezeny žádné výsledky","No searchable items":"Žádné položky k vyhledánÃ",Orange:"Oranžová","Press Enter to type after or press Shift + Enter to type before the widget":"StisknutÃm klávesy Enter můžete psát za widgetem a stisknutÃm Shift + Enter pÅ™ed nÃm",Previous:"PÅ™edchozÃ",Purple:"Fialová",Red:"ÄŒervená",Redo:"Znovu","Remove color":"Odstranit barvu","Replace image with file manager":"Nahradit obrázek pomocà správce souborů","Replace with file manager":"Nahradit pomocà správce souborů","Restore default":"Obnovit výchozÃ","Rich Text Editor":"Textový editor","Rich Text Editor. Editing area: %0":"EditaÄnà oblast rich text editoru: %0",Save:"Uložit","Select all":"Vybrat vÅ¡e","Show more items":"Zobrazit dalÅ¡Ã položky",Turquoise:"Tyrkysová",Undo:"ZpÄ›t","Upload in progress":"ProbÃhá nahrávánÃ",White:"BÃlá","Widget toolbar":"Panel nástrojů ovládacÃho prvku",Yellow:"Žlutá"}),o.getPluralForm=function(e){return 1==e&&e%1==0?0:e>=2&&e<=4&&e%1==0?1:e%1!=0?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/da.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/da.js index fffe40da4197..a794b94b3bef 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/da.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/da.js @@ -1 +1 @@ -!function(e){const r=e.da=e.da||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 af %1",Accept:"Accepter",Aquamarine:"MarineblÃ¥",Black:"Sort",Blue:"BlÃ¥",Cancel:"Annullér","Cannot upload file:":"Kan ikke uploade fil:",Clear:"Ryd","Click to edit block":"Klik for at redigere blok","Dim grey":"Dunkel grÃ¥","Drag to move":"Træk for at flytte","Dropdown toolbar":"Dropdown værktøjslinje","Edit block":"Redigér blok","Editor block content toolbar":"Redigeringskasse indholdsværktøjslinje","Editor contextual toolbar":"Kontekstuel værktøjslinje til redigeringsprogram","Editor editing area: %0":"RedigeringsomrÃ¥de: %0","Editor toolbar":"Editor værktøjslinje",Green:"Grøn",Grey:"GrÃ¥",HEX:"Hex","Insert paragraph after block":"Indsæt paragraf efter blok","Insert paragraph before block":"Indsæt paragraf før blok","Light blue":"Lys blÃ¥","Light green":"Lys grøn","Light grey":"Lys grÃ¥",Next:"Næste","No results found":"Ingen resultater blev fundet","No searchable items":"Ingen søgbare artikler",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Tryk pÃ¥ Enter for at skrive efter, eller tryk pÃ¥ Shift + Enter for at skrive før widgetten",Previous:"Forrige",Purple:"Lilla",Red:"Rød",Redo:"Gentag","Remove color":"Fjern farve","Restore default":"Nulstil","Rich Text Editor":"Wysiwyg editor","Rich Text Editor. Editing area: %0":"Rich text redigering. RedigeringsomrÃ¥de: %0",Save:"Gem","Select all":"Vælg alt","Show more items":"Vis flere emner",Turquoise:"Turkis",Undo:"Fortryd","Upload in progress":"Upload i gang",White:"Hvid","Widget toolbar":"Widget værktøjslinje",Yellow:"Gyl"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.da=e.da||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 af %1",Accept:"Accepter",Aquamarine:"MarineblÃ¥",Black:"Sort",Blue:"BlÃ¥",Cancel:"Annullér","Cannot upload file:":"Kan ikke uploade fil:",Clear:"Ryd","Click to edit block":"Klik for at redigere blok","Dim grey":"Dunkel grÃ¥","Drag to move":"Træk for at flytte","Dropdown toolbar":"Dropdown værktøjslinje","Edit block":"Redigér blok","Editor block content toolbar":"Redigeringskasse indholdsværktøjslinje","Editor contextual toolbar":"Kontekstuel værktøjslinje til redigeringsprogram","Editor editing area: %0":"RedigeringsomrÃ¥de: %0","Editor toolbar":"Editor værktøjslinje",Green:"Grøn",Grey:"GrÃ¥",HEX:"Hex","Insert image with file manager":"Indsæt billede med filhÃ¥ndtering","Insert paragraph after block":"Indsæt paragraf efter blok","Insert paragraph before block":"Indsæt paragraf før blok","Insert with file manager":"Indsæt med filhÃ¥ndtering","Light blue":"Lys blÃ¥","Light green":"Lys grøn","Light grey":"Lys grÃ¥",Next:"Næste","No results found":"Ingen resultater blev fundet","No searchable items":"Ingen søgbare artikler",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Tryk pÃ¥ Enter for at skrive efter, eller tryk pÃ¥ Shift + Enter for at skrive før widgetten",Previous:"Forrige",Purple:"Lilla",Red:"Rød",Redo:"Gentag","Remove color":"Fjern farve","Replace image with file manager":"Udskift billede med filhÃ¥ndtering","Replace with file manager":"Udskift med filhÃ¥ndtering","Restore default":"Nulstil","Rich Text Editor":"Wysiwyg editor","Rich Text Editor. Editing area: %0":"Rich text redigering. RedigeringsomrÃ¥de: %0",Save:"Gem","Select all":"Vælg alt","Show more items":"Vis flere emner",Turquoise:"Turkis",Undo:"Fortryd","Upload in progress":"Upload i gang",White:"Hvid","Widget toolbar":"Widget værktøjslinje",Yellow:"Gyl"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/de-ch.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/de-ch.js index 5b37a14a0877..a5be0061ffbd 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/de-ch.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/de-ch.js @@ -1 +1 @@ -!function(e){const t=e["de-ch"]=e["de-ch"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Abbrechen","Cannot upload file:":"Datei kann nicht hochgeladen werden:",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Insert paragraph after block":"Absatz nach Block einfügen","Insert paragraph before block":"Absatz vor Block einfügen","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"",Purple:"",Red:"",Redo:"Wiederherstellen","Remove color":"Farbe entfernen","Restore default":"","Rich Text Editor":"Rich-Text-Edito","Rich Text Editor. Editing area: %0":"",Save:"Speichern","Select all":"Alles auswählen","Show more items":"",Turquoise:"",Undo:"Rückgängig","Upload in progress":"Upload läuft",White:"","Widget toolbar":"Widget Werkzeugleiste",Yellow:""}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e["de-ch"]=e["de-ch"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Abbrechen","Cannot upload file:":"Datei kann nicht hochgeladen werden:",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Insert image with file manager":"","Insert paragraph after block":"Absatz nach Block einfügen","Insert paragraph before block":"Absatz vor Block einfügen","Insert with file manager":"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"",Purple:"",Red:"",Redo:"Wiederherstellen","Remove color":"Farbe entfernen","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Rich-Text-Edito","Rich Text Editor. Editing area: %0":"",Save:"Speichern","Select all":"Alles auswählen","Show more items":"",Turquoise:"",Undo:"Rückgängig","Upload in progress":"Upload läuft",White:"","Widget toolbar":"Widget Werkzeugleiste",Yellow:""}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/de.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/de.js index e0eed8810da5..1e2c855d45fc 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/de.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/de.js @@ -1 +1 @@ -!function(e){const r=e.de=e.de||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 von %1",Accept:"Akzeptieren",Aquamarine:"Aquamarinblau",Black:"Schwarz",Blue:"Blau",Cancel:"Abbrechen","Cannot upload file:":"Die Datei kann nicht hochgeladen werden:",Clear:"Löschen","Click to edit block":"Zum Bearbeiten des Blocks klicken","Dim grey":"Dunkelgrau","Drag to move":"Zum Verschieben ziehen","Dropdown toolbar":"Dropdown-Liste Werkzeugleiste","Edit block":"Absatz bearbeiten","Editor block content toolbar":"Editor Blockinhalt-Toolbar","Editor contextual toolbar":"Editor kontextuelle Toolbar","Editor editing area: %0":"Bearbeitungsbereich des Editors: %0","Editor toolbar":"Editor Werkzeugleiste",Green:"Grün",Grey:"Grau",HEX:"HEX","Insert paragraph after block":"Absatz nach Block einfügen","Insert paragraph before block":"Absatz vor Block einfügen","Light blue":"Hellblau","Light green":"Hellgrün","Light grey":"Hellgrau",Next:"Nächste","No results found":"Keine Ergebnisse gefunden","No searchable items":"Keine durchsuchbaren Elemente",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Drücken Sie die Eingabetaste, um nach dem Widget zu tippen oder Shift + Eingabetaste, um vor dem Widget zu tippen.",Previous:"vorherige",Purple:"Violett",Red:"Rot",Redo:"Wiederherstellen","Remove color":"Farbe entfernen","Restore default":"Standard wiederherstellen","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Bearbeitungsbereich: %0",Save:"Speichern","Select all":"Alles auswählen","Show more items":"Mehr anzeigen",Turquoise:"Türkis",Undo:"Rückgängig","Upload in progress":"Upload läuft",White:"Weiß","Widget toolbar":"Widget Werkzeugleiste",Yellow:"Gelb"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.de=e.de||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 von %1",Accept:"Akzeptieren",Aquamarine:"Aquamarinblau",Black:"Schwarz",Blue:"Blau",Cancel:"Abbrechen","Cannot upload file:":"Die Datei kann nicht hochgeladen werden:",Clear:"Löschen","Click to edit block":"Zum Bearbeiten des Blocks klicken","Dim grey":"Dunkelgrau","Drag to move":"Zum Verschieben ziehen","Dropdown toolbar":"Dropdown-Liste Werkzeugleiste","Edit block":"Absatz bearbeiten","Editor block content toolbar":"Editor Blockinhalt-Toolbar","Editor contextual toolbar":"Editor kontextuelle Toolbar","Editor editing area: %0":"Bearbeitungsbereich des Editors: %0","Editor toolbar":"Editor Werkzeugleiste",Green:"Grün",Grey:"Grau",HEX:"HEX","Insert image with file manager":"Bild mit dem Dateimanager einfügen","Insert paragraph after block":"Absatz nach Block einfügen","Insert paragraph before block":"Absatz vor Block einfügen","Insert with file manager":"Mit Dateimanager einfügen","Light blue":"Hellblau","Light green":"Hellgrün","Light grey":"Hellgrau",Next:"Nächste","No results found":"Keine Ergebnisse gefunden","No searchable items":"Keine durchsuchbaren Elemente",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Drücken Sie die Eingabetaste, um nach dem Widget zu tippen oder Shift + Eingabetaste, um vor dem Widget zu tippen.",Previous:"vorherige",Purple:"Violett",Red:"Rot",Redo:"Wiederherstellen","Remove color":"Farbe entfernen","Replace image with file manager":"Bild mittels Dateimanager ersetzen","Replace with file manager":"Mittels Dateimanager ersetzen","Restore default":"Standard wiederherstellen","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Bearbeitungsbereich: %0",Save:"Speichern","Select all":"Alles auswählen","Show more items":"Mehr anzeigen",Turquoise:"Türkis",Undo:"Rückgängig","Upload in progress":"Upload läuft",White:"Weiß","Widget toolbar":"Widget Werkzeugleiste",Yellow:"Gelb"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/el.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/el.js index a12d61e0d586..6574df1fefa9 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/el.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/el.js @@ -1 +1 @@ -!function(e){const t=e.el=e.el||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 από %1",Accept:"Αποδοχή",Aquamarine:"ΑκουαμαÏίνα",Black:"ΜαÏÏο",Blue:"Μπλε",Cancel:"ΑκÏÏωση","Cannot upload file:":"ΑδÏνατη η αποστολή του αÏχείου:",Clear:"ΚαθαÏισμός","Click to edit block":"Κάντε κλικ για να επεξεÏγαστείτε το μπλοκ","Dim grey":"Θολό γκÏι","Drag to move":"ΣÏÏετε για μετακίνηση","Dropdown toolbar":"ΓÏαμμή εÏγαλείων αναδυόμενου μενοÏ","Edit block":"ΕπεξεÏγασία τμήματος","Editor block content toolbar":"ΓÏαμμή εÏγαλείων επεξεÏγασίας πεÏιεχομÎνου αποκλεισμοÏ","Editor contextual toolbar":"ΓÏαμμή εÏγαλείων επεξεÏγασίας συμφÏαζομÎνων","Editor editing area: %0":"ΠεÏιοχή επεξεÏγασίας Ï€ÏογÏάμματος επεξεÏγασίας: %0","Editor toolbar":"ΓÏαμμή εÏγαλείων επεξεÏγαστή",Green:"Î Ïάσινο",Grey:"ΓκÏι",HEX:"Δεκαεξαδική μοÏφή χÏωμάτων","Insert paragraph after block":"Εισαγωγή παÏαγÏάφου μετά το τμήμα","Insert paragraph before block":"Εισαγωγή παÏαγÏάφου Ï€Ïιν το τμήμα","Light blue":"Φωτινό μπλε","Light green":"Φωτινό Ï€Ïάσινο","Light grey":"Φωτινό γκÏι",Next:"Επόμενο","No results found":"Δεν βÏÎθηκαν αποτελÎσματα","No searchable items":"Δεν υπάÏχει δυνατότητα αναζήτησης στοιχείων",Orange:"ΠοÏτοκαλί","Press Enter to type after or press Shift + Enter to type before the widget":"Πατήστε Enter για να πληκτÏολογήσετε μετά ή πατήστε Shift + Enter για να πληκτÏολογήσετε Ï€Ïιν από το γÏαφικό στοιχείο",Previous:"Î ÏοηγοÏμενο",Purple:"ΠοÏφυÏÏŒ",Red:"Κόκκινο",Redo:"Επανάληψη","Remove color":"ΑπομάκÏυνση χÏώματος","Restore default":"ΕπαναφοÏά Ï€Ïοεπιλογής","Rich Text Editor":"ΕπεξεÏγαστής εμπλουτισμÎνου κειμÎνου","Rich Text Editor. Editing area: %0":"Î ÏόγÏαμμα επεξεÏγασίας εμπλουτισμÎνου κειμÎνου. ΠεÏιοχή επεξεÏγασίας: %0",Save:"Αποθήκευση","Select all":"Επιλογή όλων","Show more items":"Î Ïοβολή πεÏισσότεÏων αντικειμÎνων",Turquoise:"ΤιÏκουάζ",Undo:"ΑναίÏεση","Upload in progress":"Αποστολή σε εξÎλιξη",White:"Λευκό","Widget toolbar":"ΓÏαμμή εÏγαλείων γÏÎ±Ï†Î¹ÎºÎ¿Ï ÏƒÏ„Î¿Î¹Ï‡ÎµÎ¯Î¿Ï…",Yellow:"ΚίτÏινο"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.el=e.el||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 από %1",Accept:"Αποδοχή",Aquamarine:"ΑκουαμαÏίνα",Black:"ΜαÏÏο",Blue:"Μπλε",Cancel:"ΑκÏÏωση","Cannot upload file:":"ΑδÏνατη η αποστολή του αÏχείου:",Clear:"ΚαθαÏισμός","Click to edit block":"Κάντε κλικ για να επεξεÏγαστείτε το μπλοκ","Dim grey":"Θολό γκÏι","Drag to move":"ΣÏÏετε για μετακίνηση","Dropdown toolbar":"ΓÏαμμή εÏγαλείων αναδυόμενου μενοÏ","Edit block":"ΕπεξεÏγασία τμήματος","Editor block content toolbar":"ΓÏαμμή εÏγαλείων επεξεÏγασίας πεÏιεχομÎνου αποκλεισμοÏ","Editor contextual toolbar":"ΓÏαμμή εÏγαλείων επεξεÏγασίας συμφÏαζομÎνων","Editor editing area: %0":"ΠεÏιοχή επεξεÏγασίας Ï€ÏογÏάμματος επεξεÏγασίας: %0","Editor toolbar":"ΓÏαμμή εÏγαλείων επεξεÏγαστή",Green:"Î Ïάσινο",Grey:"ΓκÏι",HEX:"Δεκαεξαδική μοÏφή χÏωμάτων","Insert image with file manager":"Εισαγωγή εικόνας με τη διαχείÏιση αÏχείων","Insert paragraph after block":"Εισαγωγή παÏαγÏάφου μετά το τμήμα","Insert paragraph before block":"Εισαγωγή παÏαγÏάφου Ï€Ïιν το τμήμα","Insert with file manager":"Εισαγωγή με τη διαχείÏιση αÏχείων","Light blue":"Φωτινό μπλε","Light green":"Φωτινό Ï€Ïάσινο","Light grey":"Φωτινό γκÏι",Next:"Επόμενο","No results found":"Δεν βÏÎθηκαν αποτελÎσματα","No searchable items":"Δεν υπάÏχει δυνατότητα αναζήτησης στοιχείων",Orange:"ΠοÏτοκαλί","Press Enter to type after or press Shift + Enter to type before the widget":"Πατήστε Enter για να πληκτÏολογήσετε μετά ή πατήστε Shift + Enter για να πληκτÏολογήσετε Ï€Ïιν από το γÏαφικό στοιχείο",Previous:"Î ÏοηγοÏμενο",Purple:"ΠοÏφυÏÏŒ",Red:"Κόκκινο",Redo:"Επανάληψη","Remove color":"ΑπομάκÏυνση χÏώματος","Replace image with file manager":"Αντικατάσταση εικόνας με τη διαχείÏιση αÏχείων","Replace with file manager":"Αντικατάσταση με τη διαχείÏιση αÏχείων","Restore default":"ΕπαναφοÏά Ï€Ïοεπιλογής","Rich Text Editor":"ΕπεξεÏγαστής εμπλουτισμÎνου κειμÎνου","Rich Text Editor. Editing area: %0":"Î ÏόγÏαμμα επεξεÏγασίας εμπλουτισμÎνου κειμÎνου. ΠεÏιοχή επεξεÏγασίας: %0",Save:"Αποθήκευση","Select all":"Επιλογή όλων","Show more items":"Î Ïοβολή πεÏισσότεÏων αντικειμÎνων",Turquoise:"ΤιÏκουάζ",Undo:"ΑναίÏεση","Upload in progress":"Αποστολή σε εξÎλιξη",White:"Λευκό","Widget toolbar":"ΓÏαμμή εÏγαλείων γÏÎ±Ï†Î¹ÎºÎ¿Ï ÏƒÏ„Î¿Î¹Ï‡ÎµÎ¯Î¿Ï…",Yellow:"ΚίτÏινο"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/en-au.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/en-au.js index 04a3b4a1974d..b8b2cdb75d15 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/en-au.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/en-au.js @@ -1 +1 @@ -!function(e){const o=e["en-au"]=e["en-au"]||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"Clear","Click to edit block":"","Dim grey":"Dim grey","Drag to move":"","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar",Green:"Green",Grey:"Grey",HEX:"","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","No results found":"","No searchable items":"",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove colour","Restore default":"Restore default","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Save:"Save","Select all":"Select all","Show more items":"Show more items",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar",Yellow:"Yellow"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e["en-au"]=e["en-au"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"Clear","Click to edit block":"","Dim grey":"Dim grey","Drag to move":"","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar",Green:"Green",Grey:"Grey",HEX:"","Insert image with file manager":"","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert with file manager":"","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","No results found":"","No searchable items":"",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove colour","Replace image with file manager":"","Replace with file manager":"","Restore default":"Restore default","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Save:"Save","Select all":"Select all","Show more items":"Show more items",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar",Yellow:"Yellow"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/en-gb.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/en-gb.js index 400850da72e8..c814a47d6d3c 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/en-gb.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/en-gb.js @@ -1 +1 @@ -!function(e){const o=e["en-gb"]=e["en-gb"]||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"","Click to edit block":"","Dim grey":"Dim grey","Drag to move":"","Dropdown toolbar":"","Edit block":"Edit block","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"Green",Grey:"Grey",HEX:"","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","No results found":"","No searchable items":"",Orange:"Orange",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove colour","Restore default":"","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"",Save:"Save","Show more items":"",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White",Yellow:"Yellow"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e["en-gb"]=e["en-gb"]||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"","Click to edit block":"","Dim grey":"Dim grey","Drag to move":"","Dropdown toolbar":"","Edit block":"Edit block","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"Green",Grey:"Grey",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","No results found":"","No searchable items":"",Orange:"Orange",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove colour","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"",Save:"Save","Show more items":"",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White",Yellow:"Yellow"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/eo.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/eo.js index 50f97fd6095a..98461621f24b 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/eo.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/eo.js @@ -1 +1 @@ -!function(e){const o=e.eo=e.eo||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Nuligi","Cannot upload file:":"",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"Refari","Remove color":"","Restore default":"","Rich Text Editor":"Redaktilo de Riĉa Teksto","Rich Text Editor. Editing area: %0":"",Save:"Konservi","Show more items":"",Turquoise:"",Undo:"Malfari",White:"",Yellow:""}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e.eo=e.eo||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Nuligi","Cannot upload file:":"",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"Refari","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Redaktilo de Riĉa Teksto","Rich Text Editor. Editing area: %0":"",Save:"Konservi","Show more items":"",Turquoise:"",Undo:"Malfari",White:"",Yellow:""}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/es-co.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/es-co.js index f674307aa55e..1e8bbd05af9a 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/es-co.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/es-co.js @@ -1 +1 @@ -!function(e){const o=e["es-co"]=e["es-co"]||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 de %1",Cancel:"Cancelar","Cannot upload file:":"No se pudo cargar el archivo:",Clear:"","Remove color":"Quitar color","Restore default":"Restaurar valores predeterminados","Rich Text Editor. Editing area: %0":"Editor de texto enriquecido. Ãrea de edición: %0",Save:"Guardar","Show more items":"Mostrar más elementos","Upload in progress":"Carga en progreso"}),o.getPluralForm=function(e){return 1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e["es-co"]=e["es-co"]||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 de %1",Cancel:"Cancelar","Cannot upload file:":"No se pudo cargar el archivo:",Clear:"","Insert image with file manager":"","Insert with file manager":"","Remove color":"Quitar color","Replace image with file manager":"","Replace with file manager":"","Restore default":"Restaurar valores predeterminados","Rich Text Editor. Editing area: %0":"Editor de texto enriquecido. Ãrea de edición: %0",Save:"Guardar","Show more items":"Mostrar más elementos","Upload in progress":"Carga en progreso"}),a.getPluralForm=function(e){return 1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/es.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/es.js index b345434c6a72..7911164a86d4 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/es.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/es.js @@ -1 +1 @@ -!function(e){const r=e.es=e.es||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceptar",Aquamarine:"Aguamarina",Black:"Negro",Blue:"Azul",Cancel:"Cancelar","Cannot upload file:":"No se pudo cargar el archivo:",Clear:"Borrar","Click to edit block":"Haz clic para editar el bloque","Dim grey":"Gris Oscuro","Drag to move":"Arrastra para mover","Dropdown toolbar":"Barra de herramientas desplegable","Edit block":"Cuadro de edición","Editor block content toolbar":"Barra de herramientas de contenido del bloque del editor","Editor contextual toolbar":"Barra de herramientas contextual del editor","Editor editing area: %0":"Ãrea de edición del editor: %0","Editor toolbar":"Barra de herramientas de edición",Green:"Verde",Grey:"Gris",HEX:"HEX","Insert paragraph after block":"Insertar párrafo después del bloque","Insert paragraph before block":"Insertar párrafo antes del bloque","Light blue":"Azul Claro","Light green":"Verde Claro","Light grey":"Gris Claro",Next:"Siguiente","No results found":"No se han encontrado resultados","No searchable items":"No hay elementos que buscar",Orange:"Anaranjado","Press Enter to type after or press Shift + Enter to type before the widget":"Pulse Intro para escribir después o pulse Mayús + Intro para escribir antes del «widget».",Previous:"Anterior",Purple:"Morado",Red:"Rojo",Redo:"Rehacer","Remove color":"Quitar color","Restore default":"Restaurar valores predeterminados","Rich Text Editor":"Editor de Texto Enriquecido","Rich Text Editor. Editing area: %0":"Editor de texto enriquecido. Ãrea de edición: %0",Save:"Guardar","Select all":"Seleccionar todo","Show more items":"Mostrar más elementos",Turquoise:"Turquesa",Undo:"Deshacer","Upload in progress":"Subida en progreso",White:"Blanco","Widget toolbar":"Barra de herramientas del widget",Yellow:"Amarillo"}),r.getPluralForm=function(e){return 1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.es=e.es||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceptar",Aquamarine:"Aguamarina",Black:"Negro",Blue:"Azul",Cancel:"Cancelar","Cannot upload file:":"No se pudo cargar el archivo:",Clear:"Borrar","Click to edit block":"Haz clic para editar el bloque","Dim grey":"Gris Oscuro","Drag to move":"Arrastra para mover","Dropdown toolbar":"Barra de herramientas desplegable","Edit block":"Cuadro de edición","Editor block content toolbar":"Barra de herramientas de contenido del bloque del editor","Editor contextual toolbar":"Barra de herramientas contextual del editor","Editor editing area: %0":"Ãrea de edición del editor: %0","Editor toolbar":"Barra de herramientas de edición",Green:"Verde",Grey:"Gris",HEX:"HEX","Insert image with file manager":"Insertar imagen con administrador de archivos","Insert paragraph after block":"Insertar párrafo después del bloque","Insert paragraph before block":"Insertar párrafo antes del bloque","Insert with file manager":"Insertar con administrador de archivos","Light blue":"Azul Claro","Light green":"Verde Claro","Light grey":"Gris Claro",Next:"Siguiente","No results found":"No se han encontrado resultados","No searchable items":"No hay elementos que buscar",Orange:"Anaranjado","Press Enter to type after or press Shift + Enter to type before the widget":"Pulse Intro para escribir después o pulse Mayús + Intro para escribir antes del «widget».",Previous:"Anterior",Purple:"Morado",Red:"Rojo",Redo:"Rehacer","Remove color":"Quitar color","Replace image with file manager":"Reemplazar imagen con administrador de archivos","Replace with file manager":"Reemplazar con administrador de archivos","Restore default":"Restaurar valores predeterminados","Rich Text Editor":"Editor de Texto Enriquecido","Rich Text Editor. Editing area: %0":"Editor de texto enriquecido. Ãrea de edición: %0",Save:"Guardar","Select all":"Seleccionar todo","Show more items":"Mostrar más elementos",Turquoise:"Turquesa",Undo:"Deshacer","Upload in progress":"Subida en progreso",White:"Blanco","Widget toolbar":"Barra de herramientas del widget",Yellow:"Amarillo"}),r.getPluralForm=function(e){return 1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/et.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/et.js index 86dc3dce3ae6..e62d2403228a 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/et.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/et.js @@ -1 +1 @@ -!function(e){const i=e.et=e.et||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"Nõustu",Aquamarine:"Akvamariin",Black:"Must",Blue:"Sinine",Cancel:"Loobu","Cannot upload file:":"Faili ei suudeta üles laadida:",Clear:"Selge","Click to edit block":"Ploki muutmiseks klõpsa","Dim grey":"Tumehall","Drag to move":"Liigutamiseks lohista","Dropdown toolbar":"Avatav tööriistariba","Edit block":"Muuda plokki","Editor block content toolbar":"Redigeerija ploki sisu tööriistariba","Editor contextual toolbar":"Redigeerija kontekstuaalne tööriistariba","Editor editing area: %0":"Redaktori redigeerimisala: %0","Editor toolbar":"Redaktori tööriistariba",Green:"Roheline",Grey:"Hall",HEX:"HEX","Insert paragraph after block":"Sisesta lõik pärast plokki","Insert paragraph before block":"Sisesta lõik enne plokki","Light blue":"Helesinine","Light green":"Heleroheline","Light grey":"Helehall",Next:"Järgmine","No results found":"Tulemusi ei leitud","No searchable items":"Tulemusi pole",Orange:"Oranž","Press Enter to type after or press Shift + Enter to type before the widget":"Vajutage Enter, et tippida pärast, või Shift + Enter, et tippida enne vidinat",Previous:"Eelmine",Purple:"Lilla",Red:"Punane",Redo:"Tee uuesti","Remove color":"Eemalda värv","Restore default":"Taasta algne","Rich Text Editor":"Tekstiredaktor","Rich Text Editor. Editing area: %0":"Rikastekstiredaktor. Redigeerimisala: %0",Save:"Salvesta","Select all":"Vali kõik","Show more items":"Näita veel",Turquoise:"Türkiis",Undo:"Võta tagasi","Upload in progress":"Ãœleslaadimine pooleli",White:"Valge","Widget toolbar":"Vidinate tööriistariba",Yellow:"Kollane"}),i.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.et=e.et||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"Nõustu",Aquamarine:"Akvamariin",Black:"Must",Blue:"Sinine",Cancel:"Loobu","Cannot upload file:":"Faili ei suudeta üles laadida:",Clear:"Selge","Click to edit block":"Ploki muutmiseks klõpsa","Dim grey":"Tumehall","Drag to move":"Liigutamiseks lohista","Dropdown toolbar":"Avatav tööriistariba","Edit block":"Muuda plokki","Editor block content toolbar":"Redigeerija ploki sisu tööriistariba","Editor contextual toolbar":"Redigeerija kontekstuaalne tööriistariba","Editor editing area: %0":"Redaktori redigeerimisala: %0","Editor toolbar":"Redaktori tööriistariba",Green:"Roheline",Grey:"Hall",HEX:"HEX","Insert image with file manager":"Sisesta pilt failihalduriga","Insert paragraph after block":"Sisesta lõik pärast plokki","Insert paragraph before block":"Sisesta lõik enne plokki","Insert with file manager":"Sisesta failihalduriga","Light blue":"Helesinine","Light green":"Heleroheline","Light grey":"Helehall",Next:"Järgmine","No results found":"Tulemusi ei leitud","No searchable items":"Tulemusi pole",Orange:"Oranž","Press Enter to type after or press Shift + Enter to type before the widget":"Vajutage Enter, et tippida pärast, või Shift + Enter, et tippida enne vidinat",Previous:"Eelmine",Purple:"Lilla",Red:"Punane",Redo:"Tee uuesti","Remove color":"Eemalda värv","Replace image with file manager":"Asenda pilt failihalduriga","Replace with file manager":"Asenda failihalduriga","Restore default":"Taasta algne","Rich Text Editor":"Tekstiredaktor","Rich Text Editor. Editing area: %0":"Rikastekstiredaktor. Redigeerimisala: %0",Save:"Salvesta","Select all":"Vali kõik","Show more items":"Näita veel",Turquoise:"Türkiis",Undo:"Võta tagasi","Upload in progress":"Ãœleslaadimine pooleli",White:"Valge","Widget toolbar":"Vidinate tööriistariba",Yellow:"Kollane"}),i.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/eu.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/eu.js index bc893e1864b1..d9424de08b86 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/eu.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/eu.js @@ -1 +1 @@ -!function(e){const o=e.eu=e.eu||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Utzi","Cannot upload file:":"Ezin da fitxategia kargatu:",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"Berregin","Remove color":"","Restore default":"","Rich Text Editor":"Testu aberastuaren editorea","Rich Text Editor. Editing area: %0":"",Save:"Gorde","Show more items":"",Turquoise:"",Undo:"Desegin",White:"",Yellow:""}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.eu=e.eu||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Utzi","Cannot upload file:":"Ezin da fitxategia kargatu:",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"Berregin","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Testu aberastuaren editorea","Rich Text Editor. Editing area: %0":"",Save:"Gorde","Show more items":"",Turquoise:"",Undo:"Desegin",White:"",Yellow:""}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fa.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fa.js index 4a95a7002c02..064c23f77e5c 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fa.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fa.js @@ -1 +1 @@ -!function(e){const o=e.fa=e.fa||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 از %1",Accept:"",Aquamarine:"زمرد کبود",Black:"سیاه",Blue:"آبی",Cancel:"لغو","Cannot upload file:":"Ùایل آپلود نمی‌شود:",Clear:"","Click to edit block":"","Dim grey":"خاکستری تیره","Drag to move":"","Dropdown toolbar":"نوارابزار کشویی","Edit block":"ویرایش قطعه","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"نوارابزار ویرایشگر",Green:"سبز",Grey:"خاکستری",HEX:"","Insert paragraph after block":"درج پاراگرا٠بعد از بلوک","Insert paragraph before block":"درج پاراگرا٠قبل از بلوک","Light blue":"آبی روشن","Light green":"سبز روشن","Light grey":"خاکستری روشن",Next:"بعدی","No results found":"","No searchable items":"",Orange:"نارنجی","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"قبلی",Purple:"بنÙØ´",Red:"قرمز",Redo:"باز انجام","Remove color":"Øذ٠رنگ","Restore default":"بازیابی پیش Ùرض","Rich Text Editor":"ویرایشگر متن غنی","Rich Text Editor. Editing area: %0":"ویرایشگر متن قوی. ویرایش بخش : 0%",Save:"ذخیره","Select all":"انتخاب همه","Show more items":"نمایش گزینه‌های بیشتر",Turquoise:"Ùیروزه ای",Undo:"بازگردانی","Upload in progress":"آپلود در Øال انجام",White:"سÙید","Widget toolbar":"نوار ابزار ویجت",Yellow:"زرد"}),o.getPluralForm=function(e){return e>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.fa=e.fa||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 از %1",Accept:"",Aquamarine:"زمرد کبود",Black:"سیاه",Blue:"آبی",Cancel:"لغو","Cannot upload file:":"Ùایل آپلود نمی‌شود:",Clear:"","Click to edit block":"","Dim grey":"خاکستری تیره","Drag to move":"","Dropdown toolbar":"نوارابزار کشویی","Edit block":"ویرایش قطعه","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"نوارابزار ویرایشگر",Green:"سبز",Grey:"خاکستری",HEX:"","Insert image with file manager":"","Insert paragraph after block":"درج پاراگرا٠بعد از بلوک","Insert paragraph before block":"درج پاراگرا٠قبل از بلوک","Insert with file manager":"","Light blue":"آبی روشن","Light green":"سبز روشن","Light grey":"خاکستری روشن",Next:"بعدی","No results found":"","No searchable items":"",Orange:"نارنجی","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"قبلی",Purple:"بنÙØ´",Red:"قرمز",Redo:"باز انجام","Remove color":"Øذ٠رنگ","Replace image with file manager":"","Replace with file manager":"","Restore default":"بازیابی پیش Ùرض","Rich Text Editor":"ویرایشگر متن غنی","Rich Text Editor. Editing area: %0":"ویرایشگر متن قوی. ویرایش بخش : 0%",Save:"ذخیره","Select all":"انتخاب همه","Show more items":"نمایش گزینه‌های بیشتر",Turquoise:"Ùیروزه ای",Undo:"بازگردانی","Upload in progress":"آپلود در Øال انجام",White:"سÙید","Widget toolbar":"نوار ابزار ویجت",Yellow:"زرد"}),t.getPluralForm=function(e){return e>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fi.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fi.js index d4f84b4020fa..6e4b9156cf53 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fi.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fi.js @@ -1 +1 @@ -!function(a){const e=a.fi=a.fi||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"Hyväksy",Aquamarine:"Akvamariini",Black:"Musta",Blue:"Sininen",Cancel:"Peruuta","Cannot upload file:":"Tiedostoa ei voitu ladata:",Clear:"Tyhjennä","Click to edit block":"Muokkaa lohkoa klikkaamalla","Dim grey":"Vaaleanharmaa","Drag to move":"Siirrä raahamalla","Dropdown toolbar":"Pudotusvalikon työkalupalkki","Edit block":"Muokkaa lohkoa","Editor block content toolbar":"Editorin lohkon sisällön työkalupalkki","Editor contextual toolbar":"Editorin kontekstuaalinen työkalupalkki","Editor editing area: %0":"Editorin muokkausalue: %0","Editor toolbar":"Editorin työkalupalkki",Green:"Vihreä",Grey:"Harmaa",HEX:"HEX","Insert paragraph after block":"Liitä kappale lohkon jälkeen","Insert paragraph before block":"Liitä kappale ennen lohkoa","Light blue":"Vaaleansininen","Light green":"Vaaleanvihreä","Light grey":"Vaaleanharmaa",Next:"Seuraava","No results found":"Tuloksia ei löytynyt","No searchable items":"Ei haettavia nimikkeitä",Orange:"Oranssi","Press Enter to type after or press Shift + Enter to type before the widget":"Paina enter-näppäintä kirjoittaaksesi tai paina shift + enter kirjoittaaksesi ennen widget-sovellusta",Previous:"Edellinen",Purple:"Purppura",Red:"Punainen",Redo:"Tee uudelleen","Remove color":"Poista väri","Restore default":"Palauta oletus","Rich Text Editor":"Rikas tekstieditori","Rich Text Editor. Editing area: %0":"Tekstimuotoilueditori. Muokkausalue: %0",Save:"Tallenna","Select all":"Valitse kaikki","Show more items":"Näytä lisää toimintoja",Turquoise:"Turkoosi",Undo:"Peru","Upload in progress":"Lähetys käynnissä",White:"Valkoinen","Widget toolbar":"Widget-työkalupalkki",Yellow:"Keltainen"}),e.getPluralForm=function(a){return 1!=a}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.fi=a.fi||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"Hyväksy",Aquamarine:"Akvamariini",Black:"Musta",Blue:"Sininen",Cancel:"Peruuta","Cannot upload file:":"Tiedostoa ei voitu ladata:",Clear:"Tyhjennä","Click to edit block":"Muokkaa lohkoa klikkaamalla","Dim grey":"Vaaleanharmaa","Drag to move":"Siirrä raahamalla","Dropdown toolbar":"Pudotusvalikon työkalupalkki","Edit block":"Muokkaa lohkoa","Editor block content toolbar":"Editorin lohkon sisällön työkalupalkki","Editor contextual toolbar":"Editorin kontekstuaalinen työkalupalkki","Editor editing area: %0":"Editorin muokkausalue: %0","Editor toolbar":"Editorin työkalupalkki",Green:"Vihreä",Grey:"Harmaa",HEX:"HEX","Insert image with file manager":"Tuo kuva tiedostonhallinnalla","Insert paragraph after block":"Liitä kappale lohkon jälkeen","Insert paragraph before block":"Liitä kappale ennen lohkoa","Insert with file manager":"Tuo tiedostonhallinnalla","Light blue":"Vaaleansininen","Light green":"Vaaleanvihreä","Light grey":"Vaaleanharmaa",Next:"Seuraava","No results found":"Tuloksia ei löytynyt","No searchable items":"Ei haettavia nimikkeitä",Orange:"Oranssi","Press Enter to type after or press Shift + Enter to type before the widget":"Paina enter-näppäintä kirjoittaaksesi tai paina shift + enter kirjoittaaksesi ennen widget-sovellusta",Previous:"Edellinen",Purple:"Purppura",Red:"Punainen",Redo:"Tee uudelleen","Remove color":"Poista väri","Replace image with file manager":"Korvaa kuva tiedostonhallinnalla","Replace with file manager":"Korvaa tiedostonhallinnalla","Restore default":"Palauta oletus","Rich Text Editor":"Rikas tekstieditori","Rich Text Editor. Editing area: %0":"Tekstimuotoilueditori. Muokkausalue: %0",Save:"Tallenna","Select all":"Valitse kaikki","Show more items":"Näytä lisää toimintoja",Turquoise:"Turkoosi",Undo:"Peru","Upload in progress":"Lähetys käynnissä",White:"Valkoinen","Widget toolbar":"Widget-työkalupalkki",Yellow:"Keltainen"}),e.getPluralForm=function(a){return 1!=a}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fr.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fr.js index 0efe28969f1b..5e5104111259 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fr.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/fr.js @@ -1 +1 @@ -!function(e){const r=e.fr=e.fr||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 sur %1",Accept:"Accepter",Aquamarine:"Bleu vert",Black:"Noir",Blue:"Bleu",Cancel:"Annuler","Cannot upload file:":"Envoi du fichier échoué :",Clear:"Effacer","Click to edit block":"Cliquer pour modifier le bloc","Dim grey":"Gris pâle","Drag to move":"Faire glisser pour déplacer","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit block":"Modifier le bloc","Editor block content toolbar":"Barre d'outils du contenu du bloc éditeur","Editor contextual toolbar":"Barre d'outils contextuelle de l'éditeur","Editor editing area: %0":"Zone d'édition de l'éditeur : %0","Editor toolbar":"Barre d'outils de l'éditeur",Green:"Vert",Grey:"Gris",HEX:"HEX","Insert paragraph after block":"Insérer du texte après ce bloc","Insert paragraph before block":"Insérer du texte avant ce bloc","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Next:"Suivant","No results found":"Aucun résultat trouvé","No searchable items":"Aucun élément consultable",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Appuyez sur la touche Entrée pour taper après ou sur Maj + Entrée pour taper avant le widget.",Previous:"Précedent",Purple:"Violet",Red:"Rouge",Redo:"Restaurer","Remove color":"Enlever la couleur","Restore default":"Restaurer par défaut","Rich Text Editor":"Éditeur de texte enrichi","Rich Text Editor. Editing area: %0":"Éditeur de texte enrichi. Zone d'édition : %0",Save:"Enregistrer","Select all":"Sélectionner tout","Show more items":"Montrer plus d'éléments",Turquoise:"Turquoise",Undo:"Annuler","Upload in progress":"Téléchargement en cours",White:"Blanc","Widget toolbar":"Barre d'outils du widget",Yellow:"Jaune"}),r.getPluralForm=function(e){return 0==e||1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.fr=e.fr||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 sur %1",Accept:"Accepter",Aquamarine:"Bleu vert",Black:"Noir",Blue:"Bleu",Cancel:"Annuler","Cannot upload file:":"Envoi du fichier échoué :",Clear:"Effacer","Click to edit block":"Cliquer pour modifier le bloc","Dim grey":"Gris pâle","Drag to move":"Faire glisser pour déplacer","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit block":"Modifier le bloc","Editor block content toolbar":"Barre d'outils du contenu du bloc éditeur","Editor contextual toolbar":"Barre d'outils contextuelle de l'éditeur","Editor editing area: %0":"Zone d'édition de l'éditeur : %0","Editor toolbar":"Barre d'outils de l'éditeur",Green:"Vert",Grey:"Gris",HEX:"HEX","Insert image with file manager":"Insérer une image avec le gestionnaire de fichiers","Insert paragraph after block":"Insérer du texte après ce bloc","Insert paragraph before block":"Insérer du texte avant ce bloc","Insert with file manager":"Insérer avec le gestionnaire de fichiers","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Next:"Suivant","No results found":"Aucun résultat trouvé","No searchable items":"Aucun élément consultable",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Appuyez sur la touche Entrée pour taper après ou sur Maj + Entrée pour taper avant le widget.",Previous:"Précedent",Purple:"Violet",Red:"Rouge",Redo:"Restaurer","Remove color":"Enlever la couleur","Replace image with file manager":"Remplacer l'image avec le gestionnaire de fichiers","Replace with file manager":"Remplacer avec le gestionnaire de fichiers","Restore default":"Restaurer par défaut","Rich Text Editor":"Éditeur de texte enrichi","Rich Text Editor. Editing area: %0":"Éditeur de texte enrichi. Zone d'édition : %0",Save:"Enregistrer","Select all":"Sélectionner tout","Show more items":"Montrer plus d'éléments",Turquoise:"Turquoise",Undo:"Annuler","Upload in progress":"Téléchargement en cours",White:"Blanc","Widget toolbar":"Barre d'outils du widget",Yellow:"Jaune"}),r.getPluralForm=function(e){return 0==e||1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/gl.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/gl.js index 16819fa22a61..6beb059b2dba 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/gl.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/gl.js @@ -1 +1 @@ -!function(e){const r=e.gl=e.gl||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceptar",Aquamarine:"Augamariña",Black:"Negro",Blue:"Azul",Cancel:"Cancelar","Cannot upload file:":"Non é posÃbel enviar o ficheiro:",Clear:"Limpar","Click to edit block":"","Dim grey":"Gris fume","Drag to move":"","Dropdown toolbar":"Barra de ferramentas despregábel","Edit block":"Editar bloque","Editor block content toolbar":"Barra de ferramentas de contido do bloque do editor","Editor contextual toolbar":"Barra de ferramentas contextual do editor","Editor editing area: %0":"Ãrea de edición do editor: %0","Editor toolbar":"Barra de ferramentas do editor",Green:"Verde",Grey:"Gris",HEX:"HEX","Insert paragraph after block":"Inserir parágrafo após o bloque","Insert paragraph before block":"Inserir parágrafo antes do bloque","Light blue":"Azul claro","Light green":"Verde claro","Light grey":"Gris claro",Next:"Seguinte","No results found":"","No searchable items":"",Orange:"Laranxa","Press Enter to type after or press Shift + Enter to type before the widget":"Prema Intro para escribir após ou prema Maiús + Intro para escribir antes do trebello",Previous:"Anterior",Purple:"Púrpura",Red:"Vermello",Redo:"Refacer","Remove color":"Retirar a cor","Restore default":"Restaurar valores predeterminados","Rich Text Editor":"Editor de texto mellorado","Rich Text Editor. Editing area: %0":"Editor de texto mellorado. Ãrea de edición: %0",Save:"Gardar","Select all":"Seleccionar todo","Show more items":"Amosar máis elementos",Turquoise:"Turquesa",Undo:"Desfacer","Upload in progress":"EnvÃo en proceso",White:"Branco","Widget toolbar":"Barra de ferramentas de trebellos",Yellow:"Amarelo"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.gl=e.gl||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceptar",Aquamarine:"Augamariña",Black:"Negro",Blue:"Azul",Cancel:"Cancelar","Cannot upload file:":"Non é posÃbel enviar o ficheiro:",Clear:"Limpar","Click to edit block":"Prema para editar o bloque","Dim grey":"Gris fume","Drag to move":"Arrastre para mover","Dropdown toolbar":"Barra de ferramentas despregábel","Edit block":"Editar bloque","Editor block content toolbar":"Barra de ferramentas de contido do bloque do editor","Editor contextual toolbar":"Barra de ferramentas contextual do editor","Editor editing area: %0":"Ãrea de edición do editor: %0","Editor toolbar":"Barra de ferramentas do editor",Green:"Verde",Grey:"Gris",HEX:"HEX","Insert image with file manager":"","Insert paragraph after block":"Inserir parágrafo após o bloque","Insert paragraph before block":"Inserir parágrafo antes do bloque","Insert with file manager":"","Light blue":"Azul claro","Light green":"Verde claro","Light grey":"Gris claro",Next:"Seguinte","No results found":"Non se atoparon resultados","No searchable items":"Non hai elementos que se poidan buscar",Orange:"Laranxa","Press Enter to type after or press Shift + Enter to type before the widget":"Prema Intro para escribir após ou prema Maiús + Intro para escribir antes do trebello",Previous:"Anterior",Purple:"Púrpura",Red:"Vermello",Redo:"Refacer","Remove color":"Retirar a cor","Replace image with file manager":"","Replace with file manager":"","Restore default":"Restaurar valores predeterminados","Rich Text Editor":"Editor de texto mellorado","Rich Text Editor. Editing area: %0":"Editor de texto mellorado. Ãrea de edición: %0",Save:"Gardar","Select all":"Seleccionar todo","Show more items":"Amosar máis elementos",Turquoise:"Turquesa",Undo:"Desfacer","Upload in progress":"EnvÃo en proceso",White:"Branco","Widget toolbar":"Barra de ferramentas de trebellos",Yellow:"Amarelo"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/gu.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/gu.js index 2088b6def4e1..8ac9124180c9 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/gu.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/gu.js @@ -1 +1 @@ -!function(o){const e=o.gu=o.gu||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"",Cancel:"","Cannot upload file:":"ફાઇલ અપલોડ ન થઇ શકી",Clear:"","Remove color":"","Restore default":"","Rich Text Editor. Editing area: %0":"",Save:"","Show more items":""}),e.getPluralForm=function(o){return 1!=o}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.gu=e.gu||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"",Cancel:"","Cannot upload file:":"ફાઇલ અપલોડ ન થઇ શકી",Clear:"","Insert image with file manager":"","Insert with file manager":"","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor. Editing area: %0":"",Save:"","Show more items":""}),i.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/he.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/he.js index 712689050ebb..d9345788646b 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/he.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/he.js @@ -1 +1 @@ -!function(e){const t=e.he=e.he||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 מתוך %1",Accept:"קבל",Aquamarine:"ירוק-כחלחל",Black:"שחור",Blue:"כחול",Cancel:"ביטול","Cannot upload file:":"×œ× × ×™×ª×Ÿ להעלות ×ת הקובץ הב×:",Clear:"×œ× ×§×•×ª","Click to edit block":"להקיש לעריכת בלוק","Dim grey":"×פור עמו×","Drag to move":"לגרור כדי להזיז","Dropdown toolbar":"סרגל ×›×œ×™× × ×¤×ª×—","Edit block":"הגדרות בלוק","Editor block content toolbar":"סרגל ×›×œ×™× ×©×œ תוכן בלוק של העורך","Editor contextual toolbar":"סרגל ×›×œ×™× ×”×§×©×¨×™ של העורך","Editor editing area: %0":"×זור עריכה של העורך: %0","Editor toolbar":"סרגל הכלי×",Green:"ירוק",Grey:"×פור",HEX:"HEX","Insert paragraph after block":"הוספת פסקה מתחת","Insert paragraph before block":"הוספת פסקה מעל","Light blue":"כחול בהיר","Light green":"ירוק בהיר","Light grey":"×פור בהיר",Next:"הב×","No results found":"×œ× × ×ž×¦×ו תוצ×ות","No searchable items":"×ין ×¤×¨×™×˜×™× × ×™×ª× ×™× ×œ×—×™×¤×•×©",Orange:"כתו×","Press Enter to type after or press Shift + Enter to type before the widget":"לחץ Enter כדי להקליד ×œ×¤× ×™ היישומון ×ו Shift + Enter כדי להקליד ×חריו",Previous:"הקוד×",Purple:"סגול",Red:"×דו×",Redo:"ביצוע מחדש","Remove color":"מחיקת צבע","Restore default":"שחזור ברירת מחדל","Rich Text Editor":"עורך טקסט עשיר","Rich Text Editor. Editing area: %0":"עורך פורמט טקסט עשיר. ×זור עריכה: %0",Save:"שמירה","Select all":"בחר הכל","Show more items":"הצג ×¤×¨×™×˜×™× × ×•×¡×¤×™×",Turquoise:"טורקיז",Undo:"ביטול","Upload in progress":"העל××” מתבצעת",White:"לבן","Widget toolbar":"סרגל יישומון",Yellow:"צהוב"}),t.getPluralForm=function(e){return 1==e&&e%1==0?0:2==e&&e%1==0?1:e%10==0&&e%1==0&&e>10?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.he=e.he||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 מתוך %1",Accept:"קבל",Aquamarine:"ירוק-כחלחל",Black:"שחור",Blue:"כחול",Cancel:"ביטול","Cannot upload file:":"×œ× × ×™×ª×Ÿ להעלות ×ת הקובץ הב×:",Clear:"×œ× ×§×•×ª","Click to edit block":"להקיש לעריכת בלוק","Dim grey":"×פור עמו×","Drag to move":"לגרור כדי להזיז","Dropdown toolbar":"סרגל ×›×œ×™× × ×¤×ª×—","Edit block":"הגדרות בלוק","Editor block content toolbar":"סרגל ×›×œ×™× ×©×œ תוכן בלוק של העורך","Editor contextual toolbar":"סרגל ×›×œ×™× ×”×§×©×¨×™ של העורך","Editor editing area: %0":"×זור עריכה של העורך: %0","Editor toolbar":"סרגל הכלי×",Green:"ירוק",Grey:"×פור",HEX:"HEX","Insert image with file manager":"הוספת ×ª×ž×•× ×” ×¢× ×ž× ×”×œ הקבצי×","Insert paragraph after block":"הוספת פסקה מתחת","Insert paragraph before block":"הוספת פסקה מעל","Insert with file manager":"הוספה ×¢× ×ž× ×”×œ הקבצי×","Light blue":"כחול בהיר","Light green":"ירוק בהיר","Light grey":"×פור בהיר",Next:"הב×","No results found":"×œ× × ×ž×¦×ו תוצ×ות","No searchable items":"×ין ×¤×¨×™×˜×™× × ×™×ª× ×™× ×œ×—×™×¤×•×©",Orange:"כתו×","Press Enter to type after or press Shift + Enter to type before the widget":"לחץ Enter כדי להקליד ×œ×¤× ×™ היישומון ×ו Shift + Enter כדי להקליד ×חריו",Previous:"הקוד×",Purple:"סגול",Red:"×דו×",Redo:"ביצוע מחדש","Remove color":"מחיקת צבע","Replace image with file manager":"החלפת ×ª×ž×•× ×” ×¢× ×ž× ×”×œ הקבצי×","Replace with file manager":"החלפה ×¢× ×ž× ×”×œ הקבצי×","Restore default":"שחזור ברירת מחדל","Rich Text Editor":"עורך טקסט עשיר","Rich Text Editor. Editing area: %0":"עורך פורמט טקסט עשיר. ×זור עריכה: %0",Save:"שמירה","Select all":"בחר הכל","Show more items":"הצג ×¤×¨×™×˜×™× × ×•×¡×¤×™×",Turquoise:"טורקיז",Undo:"ביטול","Upload in progress":"העל××” מתבצעת",White:"לבן","Widget toolbar":"סרגל יישומון",Yellow:"צהוב"}),t.getPluralForm=function(e){return 1==e&&e%1==0?0:2==e&&e%1==0?1:e%10==0&&e%1==0&&e>10?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hi.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hi.js index 1a550da8ce8d..62a09bbf3da9 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hi.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hi.js @@ -1 +1 @@ -!function(e){const o=e.hi=e.hi||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"सà¥à¤µà¥€à¤•à¤¾à¤° करें",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"साफ़ करें","Click to edit block":"बà¥à¤²à¥‰à¤• à¤à¤¡à¤¿à¤Ÿ करने के लिठकà¥à¤²à¤¿à¤• करें","Dim grey":"Dim grey","Drag to move":"मूव करने के लिठडà¥à¤°à¥ˆà¤— करें","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor block content toolbar":"à¤à¤¡à¥€à¤Ÿà¤° बà¥à¤²à¥‰à¤• कंटेंट टूलबार","Editor contextual toolbar":"à¤à¤¡à¥€à¤Ÿà¤° कॉनà¥à¤Ÿà¥‡à¤•à¥à¤¸à¥à¤Ÿà¥‚अल टूलबार","Editor editing area: %0":"संपादक संपादन कà¥à¤·à¥‡à¤¤à¥à¤°: %0","Editor toolbar":"Editor toolbar",Green:"Green",Grey:"Grey",HEX:"HEX","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","No results found":"कोई रिजलà¥à¤Ÿ नहीं","No searchable items":"कोई खोजने लायक आइटम नहीं",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"विजेट के बाद टाइप करने के लिठà¤à¤‚टर दबाà¤à¤‚ या पहले टाइप करने के लिठशिफà¥à¤Ÿ+à¤à¤‚टर दबाà¤à¤‚",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Restore default":"डिफ़ॉलà¥à¤Ÿ रिसà¥à¤Ÿà¥‹à¤° कर दें","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"रिच टेकà¥à¤¸à¥à¤Ÿ à¤à¤¡à¤¿à¤Ÿà¤°à¥¤ संपादन कà¥à¤·à¥‡à¤¤à¥à¤°: %0",Save:"Save","Select all":"Select all","Show more items":"Show more items",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar",Yellow:"Yellow"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e.hi=e.hi||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"सà¥à¤µà¥€à¤•à¤¾à¤° करें",Aquamarine:"Aquamarine",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"साफ़ करें","Click to edit block":"बà¥à¤²à¥‰à¤• à¤à¤¡à¤¿à¤Ÿ करने के लिठकà¥à¤²à¤¿à¤• करें","Dim grey":"Dim grey","Drag to move":"मूव करने के लिठडà¥à¤°à¥ˆà¤— करें","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor block content toolbar":"à¤à¤¡à¥€à¤Ÿà¤° बà¥à¤²à¥‰à¤• कंटेंट टूलबार","Editor contextual toolbar":"à¤à¤¡à¥€à¤Ÿà¤° कॉनà¥à¤Ÿà¥‡à¤•à¥à¤¸à¥à¤Ÿà¥‚अल टूलबार","Editor editing area: %0":"संपादक संपादन कà¥à¤·à¥‡à¤¤à¥à¤°: %0","Editor toolbar":"Editor toolbar",Green:"Green",Grey:"Grey",HEX:"HEX","Insert image with file manager":"फ़ाइल मैनेजर से इमेज इनà¥à¤¸à¤°à¥à¤Ÿ करें","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert with file manager":"फ़ाइल मैनेजर से इनà¥à¤¸à¤°à¥à¤Ÿ करें","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Next:"Next","No results found":"कोई रिजलà¥à¤Ÿ नहीं","No searchable items":"कोई खोजने लायक आइटम नहीं",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"विजेट के बाद टाइप करने के लिठà¤à¤‚टर दबाà¤à¤‚ या पहले टाइप करने के लिठशिफà¥à¤Ÿ+à¤à¤‚टर दबाà¤à¤‚",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Replace image with file manager":"इमेज को फ़ाइल मैनेजर से बदलें","Replace with file manager":"फ़ाइल मैनेजर से बदलें","Restore default":"डिफ़ॉलà¥à¤Ÿ रिसà¥à¤Ÿà¥‹à¤° कर दें","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"रिच टेकà¥à¤¸à¥à¤Ÿ à¤à¤¡à¤¿à¤Ÿà¤°à¥¤ संपादन कà¥à¤·à¥‡à¤¤à¥à¤°: %0",Save:"Save","Select all":"Select all","Show more items":"Show more items",Turquoise:"Turquoise",Undo:"Undo","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar",Yellow:"Yellow"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hr.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hr.js index 14c659ba4ab1..0fe5a8680314 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hr.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hr.js @@ -1 +1 @@ -!function(a){const e=a.hr=a.hr||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 od %1",Accept:"Prihvati",Aquamarine:"Akvamarin",Black:"Crna",Blue:"Plava",Cancel:"PoniÅ¡ti","Cannot upload file:":"Datoteku nije moguće poslati:",Clear:"ObriÅ¡i","Click to edit block":"","Dim grey":"Tamnosiva","Drag to move":"","Dropdown toolbar":"Traka padajućeg izbornika","Edit block":"Uredi blok","Editor block content toolbar":"Alatna traka sadržaja ureÄ‘ivaÄa blokova","Editor contextual toolbar":"Kontekstualna alatna traka ureÄ‘ivaÄa","Editor editing area: %0":"PodruÄje Editora: %0","Editor toolbar":"Traka ureÄ‘ivaÄa",Green:"Zelena",Grey:"Siva",HEX:"","Insert paragraph after block":"Umetni odlomak poslije bloka","Insert paragraph before block":"Umetni odlomak prije bloka","Light blue":"Svijetloplava","Light green":"Svijetlozelena","Light grey":"Svijetlosiva",Next:"Sljedeći","No results found":"","No searchable items":"",Orange:"NaranÄasta","Press Enter to type after or press Shift + Enter to type before the widget":"Pritisnite Enter za upisivanje nakon ili pritisnite Shift + Enter za upisivanje prije widgeta",Previous:"Prethodni",Purple:"LjubiÄasta",Red:"Crvena",Redo:"Ponovi","Remove color":"Ukloni boju","Restore default":"Vrati tvorniÄke postavke","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"UreÄ‘ivaÄ obogaćenog teksta. PodruÄje za ureÄ‘ivanje: %0",Save:"Snimi","Select all":"Odaberi sve","Show more items":"Prikaži viÅ¡e stavaka",Turquoise:"Tirkizna",Undo:"PoniÅ¡ti","Upload in progress":"Slanje u tijeku",White:"Bijela","Widget toolbar":"Traka sa spravicama",Yellow:"Žuta"}),e.getPluralForm=function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.hr=a.hr||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 od %1",Accept:"Prihvati",Aquamarine:"Akvamarin",Black:"Crna",Blue:"Plava",Cancel:"PoniÅ¡ti","Cannot upload file:":"Datoteku nije moguće poslati:",Clear:"ObriÅ¡i","Click to edit block":"","Dim grey":"Tamnosiva","Drag to move":"","Dropdown toolbar":"Traka padajućeg izbornika","Edit block":"Uredi blok","Editor block content toolbar":"Alatna traka sadržaja ureÄ‘ivaÄa blokova","Editor contextual toolbar":"Kontekstualna alatna traka ureÄ‘ivaÄa","Editor editing area: %0":"PodruÄje Editora: %0","Editor toolbar":"Traka ureÄ‘ivaÄa",Green:"Zelena",Grey:"Siva",HEX:"","Insert image with file manager":"","Insert paragraph after block":"Umetni odlomak poslije bloka","Insert paragraph before block":"Umetni odlomak prije bloka","Insert with file manager":"","Light blue":"Svijetloplava","Light green":"Svijetlozelena","Light grey":"Svijetlosiva",Next:"Sljedeći","No results found":"","No searchable items":"",Orange:"NaranÄasta","Press Enter to type after or press Shift + Enter to type before the widget":"Pritisnite Enter za upisivanje nakon ili pritisnite Shift + Enter za upisivanje prije widgeta",Previous:"Prethodni",Purple:"LjubiÄasta",Red:"Crvena",Redo:"Ponovi","Remove color":"Ukloni boju","Replace image with file manager":"","Replace with file manager":"","Restore default":"Vrati tvorniÄke postavke","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"UreÄ‘ivaÄ obogaćenog teksta. PodruÄje za ureÄ‘ivanje: %0",Save:"Snimi","Select all":"Odaberi sve","Show more items":"Prikaži viÅ¡e stavaka",Turquoise:"Tirkizna",Undo:"PoniÅ¡ti","Upload in progress":"Slanje u tijeku",White:"Bijela","Widget toolbar":"Traka sa spravicama",Yellow:"Žuta"}),e.getPluralForm=function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hu.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hu.js index a953e0b591e9..a2e6102d7963 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hu.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hu.js @@ -1 +1 @@ -!function(e){const t=e.hu=e.hu||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"Elfogad",Aquamarine:"Kékeszöld",Black:"Fekete",Blue:"Kék",Cancel:"Mégsem","Cannot upload file:":"Nem sikerült a fájl feltöltése:",Clear:"Törlés","Click to edit block":"Kattintson a blokk szerkesztéséhez","Dim grey":"Halvány szürke","Drag to move":"Húzza a mozgatáshoz","Dropdown toolbar":"LenyÃló eszköztár","Edit block":"Blokk szerkesztése","Editor block content toolbar":"SzerkesztÅ‘ - tartalomblokk eszköztár","Editor contextual toolbar":"SzerkesztÅ‘ - szövegre vonatkozó eszköztár","Editor editing area: %0":"SzerkesztÅ‘ szerkesztési területe: %0","Editor toolbar":"SzerkesztÅ‘ eszköztár",Green:"Zöld",Grey:"Szürke",HEX:"HEX szÃnkód","Insert paragraph after block":"Bekezdés beszúrása utána","Insert paragraph before block":"Bekezdés beszúrása elé","Light blue":"Világoskék","Light green":"Világoszöld","Light grey":"Világosszürke",Next:"KövetkezÅ‘","No results found":"Nincs találat","No searchable items":"Nincsenek kereshetÅ‘ elemek",Orange:"Narancs","Press Enter to type after or press Shift + Enter to type before the widget":"Az Enter billentyű megnyomásával a widget után, a Shift + Enter kombinációval pedig a widget elÅ‘tt Ãrhatja be a szöveget",Previous:"ElÅ‘zÅ‘",Purple:"Lila",Red:"Piros",Redo:"Újra","Remove color":"SzÃn eltávolÃtása","Restore default":"Alapértelmezés visszaállÃtása","Rich Text Editor":"BÅ‘vÃtett szövegszerkesztÅ‘","Rich Text Editor. Editing area: %0":"Rich text szerkesztÅ‘. Szerkesztési terület: %0",Save:"Mentés","Select all":"Mindet kijelöl","Show more items":"További elemek",Turquoise:"Türkiz",Undo:"Visszavonás","Upload in progress":"A feltöltés folyamatban",White:"Fehér","Widget toolbar":"Widget eszköztár",Yellow:"Sárga"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.hu=e.hu||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"Elfogad",Aquamarine:"Kékeszöld",Black:"Fekete",Blue:"Kék",Cancel:"Mégsem","Cannot upload file:":"Nem sikerült a fájl feltöltése:",Clear:"Törlés","Click to edit block":"Kattintson a blokk szerkesztéséhez","Dim grey":"Halvány szürke","Drag to move":"Húzza a mozgatáshoz","Dropdown toolbar":"LenyÃló eszköztár","Edit block":"Blokk szerkesztése","Editor block content toolbar":"SzerkesztÅ‘ - tartalomblokk eszköztár","Editor contextual toolbar":"SzerkesztÅ‘ - szövegre vonatkozó eszköztár","Editor editing area: %0":"SzerkesztÅ‘ szerkesztési területe: %0","Editor toolbar":"SzerkesztÅ‘ eszköztár",Green:"Zöld",Grey:"Szürke",HEX:"HEX szÃnkód","Insert image with file manager":"Illessze be a képet a fájlkezelÅ‘vel","Insert paragraph after block":"Bekezdés beszúrása utána","Insert paragraph before block":"Bekezdés beszúrása elé","Insert with file manager":"Beillesztés fájlkezelÅ‘vel","Light blue":"Világoskék","Light green":"Világoszöld","Light grey":"Világosszürke",Next:"KövetkezÅ‘","No results found":"Nincs találat","No searchable items":"Nincsenek kereshetÅ‘ elemek",Orange:"Narancs","Press Enter to type after or press Shift + Enter to type before the widget":"Az Enter billentyű megnyomásával a widget után, a Shift + Enter kombinációval pedig a widget elÅ‘tt Ãrhatja be a szöveget",Previous:"ElÅ‘zÅ‘",Purple:"Lila",Red:"Piros",Redo:"Újra","Remove color":"SzÃn eltávolÃtása","Replace image with file manager":"Cserélje ki a képet a fájlkezelÅ‘vel","Replace with file manager":"Kicserélés fájlkezelÅ‘vel","Restore default":"Alapértelmezés visszaállÃtása","Rich Text Editor":"BÅ‘vÃtett szövegszerkesztÅ‘","Rich Text Editor. Editing area: %0":"Rich text szerkesztÅ‘. Szerkesztési terület: %0",Save:"Mentés","Select all":"Mindet kijelöl","Show more items":"További elemek",Turquoise:"Türkiz",Undo:"Visszavonás","Upload in progress":"A feltöltés folyamatban",White:"Fehér","Widget toolbar":"Widget eszköztár",Yellow:"Sárga"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hy.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hy.js index dcbf2de792f8..339335090bb5 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hy.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/hy.js @@ -1 +1 @@ -!function(o){const e=o.hy=o.hy||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"",Cancel:"Õ‰Õ¥Õ²Õ¡Ö€Õ¯Õ¥Õ¬","Cannot upload file:":"",Clear:"","Remove color":"","Restore default":"","Rich Text Editor. Editing area: %0":"",Save:"","Show more items":""}),e.getPluralForm=function(o){return 1!=o}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.hy=e.hy||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"",Cancel:"Õ‰Õ¥Õ²Õ¡Ö€Õ¯Õ¥Õ¬","Cannot upload file:":"",Clear:"","Insert image with file manager":"","Insert with file manager":"","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor. Editing area: %0":"",Save:"","Show more items":""}),i.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/id.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/id.js index 1dbb937476e6..cc87bc4e8e04 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/id.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/id.js @@ -1 +1 @@ -!function(a){const e=a.id=a.id||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 dari %1",Accept:"Setuju",Aquamarine:"Biru laut",Black:"Hitam",Blue:"Biru",Cancel:"Batal","Cannot upload file:":"Tidak dapat mengunggah berkas:",Clear:"Kosongkan","Click to edit block":"Klik untuk mengedit blok","Dim grey":"Kelabu gelap","Drag to move":"Seret untuk memindahkan","Dropdown toolbar":"Alat dropdown","Edit block":"Sunting blok","Editor block content toolbar":"Bilah alat konten blok editor","Editor contextual toolbar":"Bilah alat kontekstual editor","Editor editing area: %0":"Area edit editor: %0","Editor toolbar":"Alat editor",Green:"Hijau",Grey:"Kelabu",HEX:"HEX","Insert paragraph after block":"Tambahkan paragraf setelah blok","Insert paragraph before block":"Tambahkan paragraf sebelum blok","Light blue":"Biru terang","Light green":"Hijau terang","Light grey":"Kelabu terang",Next:"Berikutnya","No results found":"Hasil tidak ditemukan","No searchable items":"Tidak ada item yang dapat dicari",Orange:"Jingga","Press Enter to type after or press Shift + Enter to type before the widget":"Tekan Enter untuk mengetik setelah atau tekan Shift + Enter untuk mengetik sebelum widget",Previous:"Sebelumnya",Purple:"Ungu",Red:"Merah",Redo:"Lakukan lagi","Remove color":"Hapus warna","Restore default":"Pulihkan nilai baku","Rich Text Editor":"Editor Teks Kaya","Rich Text Editor. Editing area: %0":"Editor Teks Kaya. Area edit: %0",Save:"Simpan","Select all":"Pilih semua","Show more items":"Tampilkan lebih banyak item",Turquoise:"Turkish",Undo:"Batal","Upload in progress":"Sedang mengunggah",White:"Putih","Widget toolbar":"Alat widget",Yellow:"Kuning"}),e.getPluralForm=function(a){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.id=e.id||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 dari %1",Accept:"Setuju",Aquamarine:"Biru laut",Black:"Hitam",Blue:"Biru",Cancel:"Batal","Cannot upload file:":"Tidak dapat mengunggah berkas:",Clear:"Kosongkan","Click to edit block":"Klik untuk mengedit blok","Dim grey":"Kelabu gelap","Drag to move":"Seret untuk memindahkan","Dropdown toolbar":"Alat dropdown","Edit block":"Sunting blok","Editor block content toolbar":"Bilah alat konten blok editor","Editor contextual toolbar":"Bilah alat kontekstual editor","Editor editing area: %0":"Area edit editor: %0","Editor toolbar":"Alat editor",Green:"Hijau",Grey:"Kelabu",HEX:"HEX","Insert image with file manager":"Sisipkan gambar dengan pengelola file","Insert paragraph after block":"Tambahkan paragraf setelah blok","Insert paragraph before block":"Tambahkan paragraf sebelum blok","Insert with file manager":"Sisipkan dengan pengelola file","Light blue":"Biru terang","Light green":"Hijau terang","Light grey":"Kelabu terang",Next:"Berikutnya","No results found":"Hasil tidak ditemukan","No searchable items":"Tidak ada item yang dapat dicari",Orange:"Jingga","Press Enter to type after or press Shift + Enter to type before the widget":"Tekan Enter untuk mengetik setelah atau tekan Shift + Enter untuk mengetik sebelum widget",Previous:"Sebelumnya",Purple:"Ungu",Red:"Merah",Redo:"Lakukan lagi","Remove color":"Hapus warna","Replace image with file manager":"Ganti gambar dengan pengelola file","Replace with file manager":"Ganti dengan pengelola file","Restore default":"Pulihkan nilai baku","Rich Text Editor":"Editor Teks Kaya","Rich Text Editor. Editing area: %0":"Editor Teks Kaya. Area edit: %0",Save:"Simpan","Select all":"Pilih semua","Show more items":"Tampilkan lebih banyak item",Turquoise:"Turkish",Undo:"Batal","Upload in progress":"Sedang mengunggah",White:"Putih","Widget toolbar":"Alat widget",Yellow:"Kuning"}),a.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/it.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/it.js index 9604d2de4a42..0881249b715e 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/it.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/it.js @@ -1 +1 @@ -!function(e){const r=e.it=e.it||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 di %1",Accept:"Accetta",Aquamarine:"Aquamarina",Black:"Nero",Blue:"Blu",Cancel:"Annulla","Cannot upload file:":"Impossibile caricare il file:",Clear:"Cancella","Click to edit block":"Clicca per modificare il blocco","Dim grey":"Grigio tenue","Drag to move":"Trascina per spostare","Dropdown toolbar":"Barra degli strumenti del menu a discesa","Edit block":"Modifica blocco","Editor block content toolbar":"Barra degli strumenti contestuale dell'editor del blocco","Editor contextual toolbar":"Barra degli strumenti contestuale dell'editor","Editor editing area: %0":"Area di modifica dell'editor: %0","Editor toolbar":"Barra degli strumenti dell'editor",Green:"Verde",Grey:"Grigio",HEX:"HEX","Insert paragraph after block":"Inserisci paragrafo dopo blocco","Insert paragraph before block":"Inserisci paragrafo prima di blocco","Light blue":"Azzurro","Light green":"Verde chiaro","Light grey":"Grigio chiaro",Next:"Avanti","No results found":"Nessun risultato trovato","No searchable items":"Nessun elemento ricercabile",Orange:"Arancio","Press Enter to type after or press Shift + Enter to type before the widget":"Premere Invio per inserire dopo il widget o premere Maiusc + Invio per inserire prima del widget",Previous:"Indietro",Purple:"Porpora",Red:"Rosso",Redo:"Ripristina","Remove color":"Rimuovi colore","Restore default":"Ripristina predefinito","Rich Text Editor":"Editor di testo formattato","Rich Text Editor. Editing area: %0":"Editor Rich Text. Area di modifica: %0",Save:"Salva","Select all":"Seleziona tutto","Show more items":"Mostra più elementi",Turquoise:"Turchese",Undo:"Annulla","Upload in progress":"Caricamento in corso",White:"Bianco","Widget toolbar":"Barra degli strumenti del widget",Yellow:"Giallo"}),r.getPluralForm=function(e){return 1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.it=e.it||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"%0 di %1",Accept:"Accetta",Aquamarine:"Aquamarina",Black:"Nero",Blue:"Blu",Cancel:"Annulla","Cannot upload file:":"Impossibile caricare il file:",Clear:"Cancella","Click to edit block":"Clicca per modificare il blocco","Dim grey":"Grigio tenue","Drag to move":"Trascina per spostare","Dropdown toolbar":"Barra degli strumenti del menu a discesa","Edit block":"Modifica blocco","Editor block content toolbar":"Barra degli strumenti contestuale dell'editor del blocco","Editor contextual toolbar":"Barra degli strumenti contestuale dell'editor","Editor editing area: %0":"Area di modifica dell'editor: %0","Editor toolbar":"Barra degli strumenti dell'editor",Green:"Verde",Grey:"Grigio",HEX:"HEX","Insert image with file manager":"Inserisci l'immagine con il file manager","Insert paragraph after block":"Inserisci paragrafo dopo blocco","Insert paragraph before block":"Inserisci paragrafo prima di blocco","Insert with file manager":"Inserisci con file manager","Light blue":"Azzurro","Light green":"Verde chiaro","Light grey":"Grigio chiaro",Next:"Avanti","No results found":"Nessun risultato trovato","No searchable items":"Nessun elemento ricercabile",Orange:"Arancio","Press Enter to type after or press Shift + Enter to type before the widget":"Premere Invio per inserire dopo il widget o premere Maiusc + Invio per inserire prima del widget",Previous:"Indietro",Purple:"Porpora",Red:"Rosso",Redo:"Ripristina","Remove color":"Rimuovi colore","Replace image with file manager":"Sostituisci l'immagine con il file manager","Replace with file manager":"Sostituisci con file manager","Restore default":"Ripristina predefinito","Rich Text Editor":"Editor di testo formattato","Rich Text Editor. Editing area: %0":"Editor Rich Text. Area di modifica: %0",Save:"Salva","Select all":"Seleziona tutto","Show more items":"Mostra più elementi",Turquoise:"Turchese",Undo:"Annulla","Upload in progress":"Caricamento in corso",White:"Bianco","Widget toolbar":"Barra degli strumenti del widget",Yellow:"Giallo"}),i.getPluralForm=function(e){return 1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ja.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ja.js index 7f12f12031cf..7283b908a77a 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ja.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ja.js @@ -1 +1 @@ -!function(e){const t=e.ja=e.ja||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0/%1",Accept:"åŒæ„ã—ã¾ã™",Aquamarine:"è–„ã„é’ç·‘",Black:"é»’",Blue:"é’",Cancel:"ã‚ャンセル","Cannot upload file:":"ファイルをアップãƒãƒ¼ãƒ‰ã§ãã¾ã›ã‚“:",Clear:"消去","Click to edit block":"クリックã—ã¦ãƒ–ãƒãƒƒã‚¯ã‚’編集ã™ã‚‹","Dim grey":"æš—ã„ç°è‰²","Drag to move":"ドラッグã—ã¦å‹•ã‹ã™","Dropdown toolbar":"ドãƒãƒƒãƒ—ダウンツールãƒãƒ¼","Edit block":"ブãƒãƒƒã‚¯ã‚’編集","Editor block content toolbar":"エディター ブãƒãƒƒã‚¯ コンテンツ ツールãƒãƒ¼","Editor contextual toolbar":"エディター コンテクスト ツールãƒãƒ¼","Editor editing area: %0":"エディタ編集エリア:%0","Editor toolbar":"エディタツールãƒãƒ¼",Green:"ç·‘",Grey:"ç°è‰²",HEX:"HEX","Insert paragraph after block":"ブãƒãƒƒã‚¯ã®å¾Œã«ãƒ‘ラグラフを挿入","Insert paragraph before block":"ブãƒãƒƒã‚¯ã®å‰ã«ãƒ‘ラグラフを挿入","Light blue":"明るã„é’","Light green":"明るã„ç·‘","Light grey":"明るã„ç°è‰²",Next:"次ã¸","No results found":"çµæžœã¯è¦‹ã¤ã‹ã‚Šã¾ã›ã‚“ã§ã—ãŸ","No searchable items":"検索å¯èƒ½ãªã‚¢ã‚¤ãƒ†ãƒ ãŒã‚ã‚Šã¾ã›ã‚“",Orange:"オレンジ","Press Enter to type after or press Shift + Enter to type before the widget":"Enterを押ã—ã¦ã‚¦ã‚£ã‚¸ã‚§ãƒƒãƒˆã®å¾Œã«å…¥åŠ›ã™ã‚‹ã‹ã€Shift + Enterを押ã—ã¦ã‚¦ã‚£ã‚¸ã‚§ãƒƒãƒˆã®å‰ã«å…¥åŠ›ã—ã¦ãã ã•ã„",Previous:"å‰ã¸",Purple:"ç´«",Red:"赤",Redo:"ã‚„ã‚Šç›´ã—","Remove color":"カラーを削除","Restore default":"åˆæœŸå€¤ã«æˆ»ã™","Rich Text Editor":"リッãƒãƒ†ã‚ストエディター","Rich Text Editor. Editing area: %0":"リッãƒãƒ†ã‚ストエディタ。編集エリア:%0",Save:"ä¿å˜","Select all":"ã™ã¹ã¦é¸æŠž","Show more items":"ä»–ã®é …目を表示",Turquoise:"水色",Undo:"å…ƒã«æˆ»ã™","Upload in progress":"アップãƒãƒ¼ãƒ‰ä¸",White:"白","Widget toolbar":"ウィジェットツールãƒãƒ¼",Yellow:"黄"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.ja=e.ja||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0/%1",Accept:"åŒæ„ã—ã¾ã™",Aquamarine:"è–„ã„é’ç·‘",Black:"é»’",Blue:"é’",Cancel:"ã‚ャンセル","Cannot upload file:":"ファイルをアップãƒãƒ¼ãƒ‰ã§ãã¾ã›ã‚“:",Clear:"消去","Click to edit block":"クリックã—ã¦ãƒ–ãƒãƒƒã‚¯ã‚’編集ã™ã‚‹","Dim grey":"æš—ã„ç°è‰²","Drag to move":"ドラッグã—ã¦å‹•ã‹ã™","Dropdown toolbar":"ドãƒãƒƒãƒ—ダウンツールãƒãƒ¼","Edit block":"ブãƒãƒƒã‚¯ã‚’編集","Editor block content toolbar":"エディター ブãƒãƒƒã‚¯ コンテンツ ツールãƒãƒ¼","Editor contextual toolbar":"エディター コンテクスト ツールãƒãƒ¼","Editor editing area: %0":"エディタ編集エリア:%0","Editor toolbar":"エディタツールãƒãƒ¼",Green:"ç·‘",Grey:"ç°è‰²",HEX:"HEX","Insert image with file manager":"ファイルマãƒãƒ¼ã‚¸ãƒ£ã§ç”»åƒã‚’挿入","Insert paragraph after block":"ブãƒãƒƒã‚¯ã®å¾Œã«ãƒ‘ラグラフを挿入","Insert paragraph before block":"ブãƒãƒƒã‚¯ã®å‰ã«ãƒ‘ラグラフを挿入","Insert with file manager":"ファイルマãƒãƒ¼ã‚¸ãƒ£ã§æŒ¿å…¥","Light blue":"明るã„é’","Light green":"明るã„ç·‘","Light grey":"明るã„ç°è‰²",Next:"次ã¸","No results found":"çµæžœã¯è¦‹ã¤ã‹ã‚Šã¾ã›ã‚“ã§ã—ãŸ","No searchable items":"検索å¯èƒ½ãªã‚¢ã‚¤ãƒ†ãƒ ãŒã‚ã‚Šã¾ã›ã‚“",Orange:"オレンジ","Press Enter to type after or press Shift + Enter to type before the widget":"Enterを押ã—ã¦ã‚¦ã‚£ã‚¸ã‚§ãƒƒãƒˆã®å¾Œã«å…¥åŠ›ã™ã‚‹ã‹ã€Shift + Enterを押ã—ã¦ã‚¦ã‚£ã‚¸ã‚§ãƒƒãƒˆã®å‰ã«å…¥åŠ›ã—ã¦ãã ã•ã„",Previous:"å‰ã¸",Purple:"ç´«",Red:"赤",Redo:"ã‚„ã‚Šç›´ã—","Remove color":"カラーを削除","Replace image with file manager":"ファイルマãƒãƒ¼ã‚¸ãƒ£ã§ç”»åƒã‚’ç½®æ›","Replace with file manager":"ファイルマãƒãƒ¼ã‚¸ãƒ£ã§ç½®æ›","Restore default":"åˆæœŸå€¤ã«æˆ»ã™","Rich Text Editor":"リッãƒãƒ†ã‚ストエディター","Rich Text Editor. Editing area: %0":"リッãƒãƒ†ã‚ストエディタ。編集エリア:%0",Save:"ä¿å˜","Select all":"ã™ã¹ã¦é¸æŠž","Show more items":"ä»–ã®é …目を表示",Turquoise:"水色",Undo:"å…ƒã«æˆ»ã™","Upload in progress":"アップãƒãƒ¼ãƒ‰ä¸",White:"白","Widget toolbar":"ウィジェットツールãƒãƒ¼",Yellow:"黄"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/jv.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/jv.js index 7cf4c5c955a0..fd8735abb59f 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/jv.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/jv.js @@ -1 +1 @@ -!function(a){const n=a.jv=a.jv||{};n.dictionary=Object.assign(n.dictionary||{},{"%0 of %1":"%0 saking %1",Cancel:"Batal","Cannot upload file:":"Mboden saged ngirim berkas:",Clear:"","Remove color":"Busek warni","Restore default":"Mangsulaken default","Rich Text Editor. Editing area: %0":"",Save:"Rimat","Show more items":"Tampilaken langkung kathah"}),n.getPluralForm=function(a){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.jv=a.jv||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 saking %1",Cancel:"Batal","Cannot upload file:":"Mboden saged ngirim berkas:",Clear:"","Insert image with file manager":"","Insert with file manager":"","Remove color":"Busek warni","Replace image with file manager":"","Replace with file manager":"","Restore default":"Mangsulaken default","Rich Text Editor. Editing area: %0":"",Save:"Rimat","Show more items":"Tampilaken langkung kathah"}),e.getPluralForm=function(a){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/km.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/km.js index c82aff1628da..162f7d2af5a8 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/km.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/km.js @@ -1 +1 @@ -!function(o){const e=o.km=o.km||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"បោះបង់","Cannot upload file:":"មិនអាច​អាប់ឡូážâ€‹áž¯áž€ážŸáž¶ážšáŸ–",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"ធ្វើ​វិញ","Remove color":"","Restore default":"","Rich Text Editor":"កម្មវិធី​កែសម្រួល​អážáŸ’ážáž”ទ​សម្បូរបែប","Rich Text Editor. Editing area: %0":"",Save:"រក្សាទុ","Show more items":"",Turquoise:"",Undo:"លែង​ធ្វើ​វិញ",White:"",Yellow:""}),e.getPluralForm=function(o){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e.km=e.km||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"បោះបង់","Cannot upload file:":"មិនអាច​អាប់ឡូážâ€‹áž¯áž€ážŸáž¶ážšáŸ–",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"ធ្វើ​វិញ","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"កម្មវិធី​កែសម្រួល​អážáŸ’ážáž”ទ​សម្បូរបែប","Rich Text Editor. Editing area: %0":"",Save:"រក្សាទុ","Show more items":"",Turquoise:"",Undo:"លែង​ធ្វើ​វិញ",White:"",Yellow:""}),o.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/kn.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/kn.js index d56e134acd35..45ac592412b2 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/kn.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/kn.js @@ -1 +1 @@ -!function(o){const e=o.kn=o.kn||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"ರದà³à²¦à³à²®à²¾à²¡à³","Cannot upload file:":"",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"â€à²®à²¤à³à²¤à³† ಮಾಡà³","Remove color":"","Restore default":"","Rich Text Editor":"â€à²¸à²®à³ƒà²¦à³à²§ ಪಠà³à²¯ ಸಂಪಾದಕâ€â€","Rich Text Editor. Editing area: %0":"",Save:"ಉಳಿಸà³","Show more items":"",Turquoise:"",Undo:"â€â€à²°à²¦à³à²¦à³",White:"",Yellow:""}),e.getPluralForm=function(o){return o>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e.kn=e.kn||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"ರದà³à²¦à³à²®à²¾à²¡à³","Cannot upload file:":"",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"â€à²®à²¤à³à²¤à³† ಮಾಡà³","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"â€à²¸à²®à³ƒà²¦à³à²§ ಪಠà³à²¯ ಸಂಪಾದಕâ€â€","Rich Text Editor. Editing area: %0":"",Save:"ಉಳಿಸà³","Show more items":"",Turquoise:"",Undo:"â€â€à²°à²¦à³à²¦à³",White:"",Yellow:""}),o.getPluralForm=function(e){return e>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ko.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ko.js index 9e0b2e1a22ba..f9a671ea3b1f 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ko.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ko.js @@ -1 +1 @@ -!function(e){const o=e.ko=e.ko||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"수ë½",Aquamarine:"ì—°í•œ ì²ë¡ìƒ‰",Black:"ê²€ì€ìƒ‰",Blue:"파랑색",Cancel:"취소","Cannot upload file:":"íŒŒì¼ ì—…ë¡œë“œí• ìˆ˜ ì—†ìŒ: ",Clear:"지우기","Click to edit block":"í´ë¦í•˜ì—¬ ë¸”ë¡ íŽ¸ì§‘","Dim grey":"진한 회색","Drag to move":"드래그하여 ì´ë™","Dropdown toolbar":"ë“œë¡ë‹¤ìš´ 툴바","Edit block":"편집 ì˜ì—","Editor block content toolbar":"편집기 ì˜ì— ë‚´ìš© 툴바","Editor contextual toolbar":"편집기 문맥 툴바","Editor editing area: %0":"편집기 편집 ì˜ì—: %0","Editor toolbar":"편집기 툴바",Green:"ì´ˆë¡ìƒ‰",Grey:"회색",HEX:"HEX","Insert paragraph after block":"ë¸”ë¡ ë’¤ì— ë‹¨ë½ ì‚½ìž…","Insert paragraph before block":"ë¸”ë¡ ì•žì— ë‹¨ë½ ì‚½ìž…","Light blue":"ì—°í•œ 파랑색","Light green":"ì—°í•œ ì´ˆë¡ìƒ‰","Light grey":"ë°ì€ 회색",Next:"다ìŒ","No results found":"ê²°ê³¼ ì°¾ì„ ìˆ˜ ì—†ìŒ","No searchable items":"검색 가능한 í•ëª© ì—†ìŒ",Orange:"주황색","Press Enter to type after or press Shift + Enter to type before the widget":"엔터를 눌러서 ìœ„ì ¯ ë’¤ì— ìž…ë ¥í•˜ê±°ë‚˜ 시프트 + 엔터를 눌러서 ìœ„ì ¯ ì•žì— ìž…ë ¥í•˜ì„¸ìš”",Previous:"ì´ì „",Purple:"ë³´ë¼ìƒ‰",Red:"빨간색",Redo:"다시 실행","Remove color":"색깔 ì œê±°","Restore default":"기본값 ë³µì›","Rich Text Editor":"ì„œì‹ ìžˆëŠ” í…스트 편집기","Rich Text Editor. Editing area: %0":"리치 í…스트 편집기. 편집 ì˜ì—: %0",Save:"ì €ìž¥","Select all":"ì „ì²´ ì„ íƒ","Show more items":"ë”보기",Turquoise:"ì²ë¡ìƒ‰",Undo:"실행 취소","Upload in progress":"업로드 진행 중",White:"í°ìƒ‰","Widget toolbar":"ìœ„ì ¯ 툴바",Yellow:"노랑색"}),o.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.ko=e.ko||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"수ë½",Aquamarine:"ì—°í•œ ì²ë¡ìƒ‰",Black:"ê²€ì€ìƒ‰",Blue:"파랑색",Cancel:"취소","Cannot upload file:":"íŒŒì¼ ì—…ë¡œë“œí• ìˆ˜ ì—†ìŒ: ",Clear:"지우기","Click to edit block":"í´ë¦í•˜ì—¬ ë¸”ë¡ íŽ¸ì§‘","Dim grey":"진한 회색","Drag to move":"드래그하여 ì´ë™","Dropdown toolbar":"ë“œë¡ë‹¤ìš´ 툴바","Edit block":"편집 ì˜ì—","Editor block content toolbar":"편집기 ì˜ì— ë‚´ìš© 툴바","Editor contextual toolbar":"편집기 문맥 툴바","Editor editing area: %0":"편집기 편집 ì˜ì—: %0","Editor toolbar":"편집기 툴바",Green:"ì´ˆë¡ìƒ‰",Grey:"회색",HEX:"HEX","Insert image with file manager":"íŒŒì¼ ê´€ë¦¬ìžë¥¼ 사용하여 ì´ë¯¸ì§€ 삽입","Insert paragraph after block":"ë¸”ë¡ ë’¤ì— ë‹¨ë½ ì‚½ìž…","Insert paragraph before block":"ë¸”ë¡ ì•žì— ë‹¨ë½ ì‚½ìž…","Insert with file manager":"íŒŒì¼ ê´€ë¦¬ìžë¥¼ 사용하여 삽입","Light blue":"ì—°í•œ 파랑색","Light green":"ì—°í•œ ì´ˆë¡ìƒ‰","Light grey":"ë°ì€ 회색",Next:"다ìŒ","No results found":"ê²°ê³¼ ì°¾ì„ ìˆ˜ ì—†ìŒ","No searchable items":"검색 가능한 í•ëª© ì—†ìŒ",Orange:"주황색","Press Enter to type after or press Shift + Enter to type before the widget":"엔터를 눌러서 ìœ„ì ¯ ë’¤ì— ìž…ë ¥í•˜ê±°ë‚˜ 시프트 + 엔터를 눌러서 ìœ„ì ¯ ì•žì— ìž…ë ¥í•˜ì„¸ìš”",Previous:"ì´ì „",Purple:"ë³´ë¼ìƒ‰",Red:"빨간색",Redo:"다시 실행","Remove color":"색깔 ì œê±°","Replace image with file manager":"íŒŒì¼ ê´€ë¦¬ìžë¥¼ 사용하여 ì´ë¯¸ì§€ êµì²´","Replace with file manager":"íŒŒì¼ ê´€ë¦¬ìžë¥¼ 사용하여 êµì²´","Restore default":"기본값 ë³µì›","Rich Text Editor":"ì„œì‹ ìžˆëŠ” í…스트 편집기","Rich Text Editor. Editing area: %0":"리치 í…스트 편집기. 편집 ì˜ì—: %0",Save:"ì €ìž¥","Select all":"ì „ì²´ ì„ íƒ","Show more items":"ë”보기",Turquoise:"ì²ë¡ìƒ‰",Undo:"실행 취소","Upload in progress":"업로드 진행 중",White:"í°ìƒ‰","Widget toolbar":"ìœ„ì ¯ 툴바",Yellow:"노랑색"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ku.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ku.js index 30da4753f6d5..c1478c0e812a 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ku.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ku.js @@ -1 +1 @@ -!function(e){const o=e.ku=e.ku||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 Ù„Û• %1",Accept:"",Aquamarine:"شینی دەریایی",Black:"Ú•Û•Ø´",Blue:"شین",Cancel:"هەڵوەشاندنەوە","Cannot upload file:":"Ù¾Û•Ú•Ú¯Û•Ú©Û• ناتوانرێت باربکرێت:",Clear:"","Click to edit block":"","Dim grey":"ڕەساسی تاریک","Drag to move":"","Dropdown toolbar":"تووڵامرازی لیستەیی","Edit block":"دەستکاری بلۆک","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"تووڵامرازی دەسکاریکەر",Green:"سەوز",Grey:"ڕەساسی",HEX:"","Insert paragraph after block":"","Insert paragraph before block":"","Light blue":"شینی ڕووناک","Light green":"سەوزی ڕووناک","Light grey":"ڕەساسی ڕووناک",Next:"دواتر","No results found":"","No searchable items":"",Orange:"پرتەقاڵی","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"پێشتر",Purple:"مۆر",Red:"سور",Redo:"هەلگەڕاندنەوە","Remove color":"لابردنی Ú•Û•Ù†Ú¯","Restore default":"","Rich Text Editor":"سەرنوسەری دەقی بەپیت","Rich Text Editor. Editing area: %0":"",Save:"پاشکەوتکردن","Show more items":"بڕگەی زیاتر نیشانبدە",Turquoise:"شینی ئاسمانی",Undo:"ÙˆÛ•Ú© خۆی Ù„ÛŽ بکەوە","Upload in progress":"بارکردنەکە Ù„Û• جێبەجێکردن دایە",White:"سپی","Widget toolbar":"تووڵامرازی ویدجێت",Yellow:"زەرد"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.ku=e.ku||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 Ù„Û• %1",Accept:"",Aquamarine:"شینی دەریایی",Black:"Ú•Û•Ø´",Blue:"شین",Cancel:"هەڵوەشاندنەوە","Cannot upload file:":"Ù¾Û•Ú•Ú¯Û•Ú©Û• ناتوانرێت باربکرێت:",Clear:"","Click to edit block":"","Dim grey":"ڕەساسی تاریک","Drag to move":"","Dropdown toolbar":"تووڵامرازی لیستەیی","Edit block":"دەستکاری بلۆک","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"تووڵامرازی دەسکاریکەر",Green:"سەوز",Grey:"ڕەساسی",HEX:"","Insert image with file manager":"","Insert paragraph after block":"","Insert paragraph before block":"","Insert with file manager":"","Light blue":"شینی ڕووناک","Light green":"سەوزی ڕووناک","Light grey":"ڕەساسی ڕووناک",Next:"دواتر","No results found":"","No searchable items":"",Orange:"پرتەقاڵی","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"پێشتر",Purple:"مۆر",Red:"سور",Redo:"هەلگەڕاندنەوە","Remove color":"لابردنی Ú•Û•Ù†Ú¯","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"سەرنوسەری دەقی بەپیت","Rich Text Editor. Editing area: %0":"",Save:"پاشکەوتکردن","Show more items":"بڕگەی زیاتر نیشانبدە",Turquoise:"شینی ئاسمانی",Undo:"ÙˆÛ•Ú© خۆی Ù„ÛŽ بکەوە","Upload in progress":"بارکردنەکە Ù„Û• جێبەجێکردن دایە",White:"سپی","Widget toolbar":"تووڵامرازی ویدجێت",Yellow:"زەرد"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/lt.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/lt.js index 35d064a0b328..fec8ea607ecc 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/lt.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/lt.js @@ -1 +1 @@ -!function(i){const a=i.lt=i.lt||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 iÅ¡ %1",Accept:"Priimti",Aquamarine:"Aquamarine",Black:"Juoda",Blue:"MÄ—lyna",Cancel:"AtÅ¡aukti","Cannot upload file:":"Negalima įkelti failo:",Clear:"IÅ¡valyti","Click to edit block":"SpustelÄ—kite norÄ—dami redaguoti blokÄ…","Dim grey":"PilkÅ¡va","Drag to move":"Vilkite, kad perkeltumÄ—te","Dropdown toolbar":"Ä®rankių juosta pasirenkamajame sÄ…raÅ¡e","Edit block":"Redaguoti blokÄ…","Editor block content toolbar":"Redaktoriaus bloko turinio įrankių juosta","Editor contextual toolbar":"Redaktoriaus kontekstinÄ— įrankių juosta","Editor editing area: %0":"Redaktoriaus redagavimo sritis: %0","Editor toolbar":"Redaktoriaus įrankių juosta",Green:"Žalia",Grey:"Pilka",HEX:"Å eÅ¡ioliktainÄ— reikÅ¡mÄ— (angl. HEX)","Insert paragraph after block":"Ä®kelti pastraipÄ… po bloko","Insert paragraph before block":"Ä®kelti pastraipÄ… prieÅ¡ blokÄ…","Light blue":"Å viesiai mÄ—lyna","Light green":"Å viesiai žalia","Light grey":"Å viesiai pilka",Next:"Kitas","No results found":"Nieko nerasta","No searchable items":"NÄ—ra paieÅ¡kos elementų",Orange:"OranžinÄ—","Press Enter to type after or press Shift + Enter to type before the widget":"Paspauskite Enter, jei norite raÅ¡yti po valdiklio, arba paspauskite Shift + Enter, jei norite raÅ¡yti prieÅ¡ valdiklį.",Previous:"BuvÄ™s",Purple:"VioletinÄ—",Red:"Raudona",Redo:"Pirmyn","Remove color":"PaÅ¡alinti spalvÄ…","Restore default":"Atkurti numatytuosius","Rich Text Editor":"RaiÅ¡kiojo teksto redaktorius","Rich Text Editor. Editing area: %0":"RaiÅ¡kiojo teksto redaktorius. Redagavimo sritis: %0",Save:"IÅ¡saugoti","Select all":"Pasirinkti viskÄ…","Show more items":"Rodyti daugiau elementų",Turquoise:"Turkio",Undo:"Atgal","Upload in progress":"Ä®kelima",White:"Balta","Widget toolbar":"Valdiklių įrankių juosta",Yellow:"Geltona"}),a.getPluralForm=function(i){return i%10==1&&(i%100>19||i%100<11)?0:i%10>=2&&i%10<=9&&(i%100>19||i%100<11)?1:i%1!=0?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(i){const a=i.lt=i.lt||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 iÅ¡ %1",Accept:"Priimti",Aquamarine:"Aquamarine",Black:"Juoda",Blue:"MÄ—lyna",Cancel:"AtÅ¡aukti","Cannot upload file:":"Negalima įkelti failo:",Clear:"IÅ¡valyti","Click to edit block":"SpustelÄ—kite norÄ—dami redaguoti blokÄ…","Dim grey":"PilkÅ¡va","Drag to move":"Vilkite, kad perkeltumÄ—te","Dropdown toolbar":"Ä®rankių juosta pasirenkamajame sÄ…raÅ¡e","Edit block":"Redaguoti blokÄ…","Editor block content toolbar":"Redaktoriaus bloko turinio įrankių juosta","Editor contextual toolbar":"Redaktoriaus kontekstinÄ— įrankių juosta","Editor editing area: %0":"Redaktoriaus redagavimo sritis: %0","Editor toolbar":"Redaktoriaus įrankių juosta",Green:"Žalia",Grey:"Pilka",HEX:"Å eÅ¡ioliktainÄ— reikÅ¡mÄ— (angl. HEX)","Insert image with file manager":"Ä®terpti paveikslÄ—lį naudojant failų tvarkyklÄ™","Insert paragraph after block":"Ä®kelti pastraipÄ… po bloko","Insert paragraph before block":"Ä®kelti pastraipÄ… prieÅ¡ blokÄ…","Insert with file manager":"Ä®terpti naudojant failų tvarkyklÄ™","Light blue":"Å viesiai mÄ—lyna","Light green":"Å viesiai žalia","Light grey":"Å viesiai pilka",Next:"Kitas","No results found":"Nieko nerasta","No searchable items":"NÄ—ra paieÅ¡kos elementų",Orange:"OranžinÄ—","Press Enter to type after or press Shift + Enter to type before the widget":"Paspauskite Enter, jei norite raÅ¡yti po valdiklio, arba paspauskite Shift + Enter, jei norite raÅ¡yti prieÅ¡ valdiklį.",Previous:"BuvÄ™s",Purple:"VioletinÄ—",Red:"Raudona",Redo:"Pirmyn","Remove color":"PaÅ¡alinti spalvÄ…","Replace image with file manager":"Pakeisti paveikslÄ—lį failų tvarkytuve","Replace with file manager":"Pakeisti failų tvarkykle","Restore default":"Atkurti numatytuosius","Rich Text Editor":"RaiÅ¡kiojo teksto redaktorius","Rich Text Editor. Editing area: %0":"RaiÅ¡kiojo teksto redaktorius. Redagavimo sritis: %0",Save:"IÅ¡saugoti","Select all":"Pasirinkti viskÄ…","Show more items":"Rodyti daugiau elementų",Turquoise:"Turkio",Undo:"Atgal","Upload in progress":"Ä®kelima",White:"Balta","Widget toolbar":"Valdiklių įrankių juosta",Yellow:"Geltona"}),a.getPluralForm=function(i){return i%10==1&&(i%100>19||i%100<11)?0:i%10>=2&&i%10<=9&&(i%100>19||i%100<11)?1:i%1!=0?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/lv.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/lv.js index c57583019822..f14634efced4 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/lv.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/lv.js @@ -1 +1 @@ -!function(a){const e=a.lv=a.lv||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 no %1",Accept:"ApstiprinÄt",Aquamarine:"AkvamarÄ«ns",Black:"Melns",Blue:"Zils",Cancel:"Atcelt","Cannot upload file:":"Nevar augÅ¡upielÄdÄ“t failu:",Clear:"NotÄ«rÄ«t","Click to edit block":"NoklikÅ¡Ä·iniet, lai rediģētu sadaļu","Dim grey":"BlÄvi pelÄ“ks","Drag to move":"Velciet, lai pÄrvietotu","Dropdown toolbar":"Papildus izvÄ“lnes rÄ«kjosla","Edit block":"Labot bloku","Editor block content toolbar":"Rediģēšanas bloka satura rÄ«kjosla","Editor contextual toolbar":"Redaktora konteksta rÄ«kjosla","Editor editing area: %0":"Redaktora rediģēšanas zona: %0","Editor toolbar":"Redaktora rÄ«kjosla",Green:"Zaļš",Grey:"PelÄ“ks",HEX:"HEX KrÄsu kods","Insert paragraph after block":"Ievietot paragrÄfu aiz bloka","Insert paragraph before block":"Ievietot paragrÄfu pirms bloka","Light blue":"GaiÅ¡i zils","Light green":"GaiÅ¡i zaļš","Light grey":"GaiÅ¡i pelÄ“ks",Next:"NÄkamÄ","No results found":"Nekas nav atrasts","No searchable items":"Nav meklÄ“jamu vienumu",Orange:"Oranžs","Press Enter to type after or press Shift + Enter to type before the widget":"Nospiediet taustiņu Enter, lai rakstÄ«tu aiz logrÄ«ka, vai nospiediet taustiņu Shift + Enter, lai rakstÄ«tu pirms logrÄ«ka",Previous:"IepriekÅ¡Ä“jÄ",Purple:"Violets",Red:"Sarkans",Redo:"Uz priekÅ¡u","Remove color":"Noņemt krÄsu","Restore default":"Atgriezt noklusÄ“jumu","Rich Text Editor":"BagÄtinÄtais Teksta Redaktors","Rich Text Editor. Editing area: %0":"BagÄtÄ«ga Teksta Redaktors. Rediģēšanas zona: %0",Save:"SaglabÄt","Select all":"IzvÄ“lÄ“ties visu","Show more items":"ParÄdÄ«t vairÄk vienumus",Turquoise:"TirkÄ«za",Undo:"Atsaukt","Upload in progress":"Notiek augÅ¡upielÄde",White:"Balts","Widget toolbar":"SÄ«krÄ«ku rÄ«kjosla",Yellow:"Dzeltens"}),e.getPluralForm=function(a){return a%10==1&&a%100!=11?0:0!=a?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.lv=a.lv||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 no %1",Accept:"ApstiprinÄt",Aquamarine:"AkvamarÄ«ns",Black:"Melns",Blue:"Zils",Cancel:"Atcelt","Cannot upload file:":"Nevar augÅ¡upielÄdÄ“t failu:",Clear:"NotÄ«rÄ«t","Click to edit block":"NoklikÅ¡Ä·iniet, lai rediģētu sadaļu","Dim grey":"BlÄvi pelÄ“ks","Drag to move":"Velciet, lai pÄrvietotu","Dropdown toolbar":"Papildus izvÄ“lnes rÄ«kjosla","Edit block":"Labot bloku","Editor block content toolbar":"Rediģēšanas bloka satura rÄ«kjosla","Editor contextual toolbar":"Redaktora konteksta rÄ«kjosla","Editor editing area: %0":"Redaktora rediģēšanas zona: %0","Editor toolbar":"Redaktora rÄ«kjosla",Green:"Zaļš",Grey:"PelÄ“ks",HEX:"HEX KrÄsu kods","Insert image with file manager":"Ievietojiet attÄ“lu, izmantojot failu pÄrvaldnieku","Insert paragraph after block":"Ievietot paragrÄfu aiz bloka","Insert paragraph before block":"Ievietot paragrÄfu pirms bloka","Insert with file manager":"Ievietot, izmantojot failu pÄrvaldnieku","Light blue":"GaiÅ¡i zils","Light green":"GaiÅ¡i zaļš","Light grey":"GaiÅ¡i pelÄ“ks",Next:"NÄkamÄ","No results found":"Nekas nav atrasts","No searchable items":"Nav meklÄ“jamu vienumu",Orange:"Oranžs","Press Enter to type after or press Shift + Enter to type before the widget":"Nospiediet taustiņu Enter, lai rakstÄ«tu aiz logrÄ«ka, vai nospiediet taustiņu Shift + Enter, lai rakstÄ«tu pirms logrÄ«ka",Previous:"IepriekÅ¡Ä“jÄ",Purple:"Violets",Red:"Sarkans",Redo:"Uz priekÅ¡u","Remove color":"Noņemt krÄsu","Replace image with file manager":"AizstÄt attÄ“lu, izmantojot failu pÄrvaldnieku","Replace with file manager":"AizstÄt, izmantojot failu pÄrvaldnieku","Restore default":"Atgriezt noklusÄ“jumu","Rich Text Editor":"BagÄtinÄtais Teksta Redaktors","Rich Text Editor. Editing area: %0":"BagÄtÄ«ga Teksta Redaktors. Rediģēšanas zona: %0",Save:"SaglabÄt","Select all":"IzvÄ“lÄ“ties visu","Show more items":"ParÄdÄ«t vairÄk vienumus",Turquoise:"TirkÄ«za",Undo:"Atsaukt","Upload in progress":"Notiek augÅ¡upielÄde",White:"Balts","Widget toolbar":"SÄ«krÄ«ku rÄ«kjosla",Yellow:"Dzeltens"}),e.getPluralForm=function(a){return a%10==1&&a%100!=11?0:0!=a?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ms.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ms.js index c20b663b20db..0a831625413d 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ms.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ms.js @@ -1 +1 @@ -!function(a){const e=a.ms=a.ms||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 daripada %1",Accept:"Terima",Aquamarine:"Akuamarin",Black:"Hitam",Blue:"Biru",Cancel:"Batal","Cannot upload file:":"Gagal memuat naik fail",Clear:"Kosongkan","Click to edit block":"Klik untuk menyunting sekatan","Dim grey":"Kelabu malap","Drag to move":"Seret untuk menggerakkan","Dropdown toolbar":"Bar alat capaian tetingkap","Edit block":"Sunting blok","Editor block content toolbar":"Bar alat sekat kandungan editor","Editor contextual toolbar":"Bar alat kontekstual editor","Editor editing area: %0":"Ruang suntingan editor: %0","Editor toolbar":"Bar alat capaian suntingan",Green:"Hijau",Grey:"Kelabu",HEX:"HEX","Insert paragraph after block":"Masukkan perenggan sebelum blok","Insert paragraph before block":"Masukkan perenggan sebelum blok","Light blue":"Biru cerah","Light green":"Hijau cerah","Light grey":"Kelabu cerah",Next:"Seterusnya","No results found":"Tiada keputusan ditemui","No searchable items":"Tiada item untuk dicari",Orange:"Oren","Press Enter to type after or press Shift + Enter to type before the widget":"Tekan Enter untuk menaip selepas atau tekan Shift + Enter untuk menaip sebelum widget",Previous:"Sebelumnya",Purple:"Ungu",Red:"Merah",Redo:"Buat semula","Remove color":"Buang warna","Restore default":"Pulihkan lalai","Rich Text Editor":"Penyunting Teks Kaya","Rich Text Editor. Editing area: %0":"Editor Teks Kaya. Ruang suntingan: %0",Save:"Simpan","Select all":"Pilih seterusnya","Show more items":"Tunjukkan item lain",Turquoise:"Firus",Undo:"Buat asal","Upload in progress":"Muat naik sedang berlangsung",White:"Putih","Widget toolbar":"Bar alat capaian widget",Yellow:"Kuning"}),e.getPluralForm=function(a){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.ms=a.ms||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 daripada %1",Accept:"Terima",Aquamarine:"Akuamarin",Black:"Hitam",Blue:"Biru",Cancel:"Batal","Cannot upload file:":"Gagal memuat naik fail",Clear:"Kosongkan","Click to edit block":"Klik untuk menyunting sekatan","Dim grey":"Kelabu malap","Drag to move":"Seret untuk menggerakkan","Dropdown toolbar":"Bar alat capaian tetingkap","Edit block":"Sunting blok","Editor block content toolbar":"Bar alat sekat kandungan editor","Editor contextual toolbar":"Bar alat kontekstual editor","Editor editing area: %0":"Ruang suntingan editor: %0","Editor toolbar":"Bar alat capaian suntingan",Green:"Hijau",Grey:"Kelabu",HEX:"HEX","Insert image with file manager":"Masukkan imej dengan pengurus fail","Insert paragraph after block":"Masukkan perenggan sebelum blok","Insert paragraph before block":"Masukkan perenggan sebelum blok","Insert with file manager":"Masukkan dengan pengurus fail","Light blue":"Biru cerah","Light green":"Hijau cerah","Light grey":"Kelabu cerah",Next:"Seterusnya","No results found":"Tiada keputusan ditemui","No searchable items":"Tiada item untuk dicari",Orange:"Oren","Press Enter to type after or press Shift + Enter to type before the widget":"Tekan Enter untuk menaip selepas atau tekan Shift + Enter untuk menaip sebelum widget",Previous:"Sebelumnya",Purple:"Ungu",Red:"Merah",Redo:"Buat semula","Remove color":"Buang warna","Replace image with file manager":"Gantikan imej dengan pengurus fail","Replace with file manager":"Gantikan dengan pengurus fail","Restore default":"Pulihkan lalai","Rich Text Editor":"Penyunting Teks Kaya","Rich Text Editor. Editing area: %0":"Editor Teks Kaya. Ruang suntingan: %0",Save:"Simpan","Select all":"Pilih seterusnya","Show more items":"Tunjukkan item lain",Turquoise:"Firus",Undo:"Buat asal","Upload in progress":"Muat naik sedang berlangsung",White:"Putih","Widget toolbar":"Bar alat capaian widget",Yellow:"Kuning"}),e.getPluralForm=function(a){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/nb.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/nb.js index 983dcaac714a..fc7dc1519f11 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/nb.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/nb.js @@ -1 +1 @@ -!function(e){const o=e.nb=e.nb||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Avbryt","Cannot upload file:":"Kan ikke laste opp fil:",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"Gjør om","Remove color":"","Restore default":"","Rich Text Editor":"Rikteksteditor","Rich Text Editor. Editing area: %0":"",Save:"Lagre","Show more items":"",Turquoise:"",Undo:"Angre","Upload in progress":"Opplasting pÃ¥gÃ¥r",White:"",Yellow:""}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e.nb=e.nb||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"",Blue:"",Cancel:"Avbryt","Cannot upload file:":"Kan ikke laste opp fil:",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"",Grey:"",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"","Light green":"","Light grey":"",Next:"","No results found":"","No searchable items":"",Orange:"",Previous:"",Purple:"",Red:"",Redo:"Gjør om","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Rikteksteditor","Rich Text Editor. Editing area: %0":"",Save:"Lagre","Show more items":"",Turquoise:"",Undo:"Angre","Upload in progress":"Opplasting pÃ¥gÃ¥r",White:"",Yellow:""}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ne.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ne.js index 2227afc818a0..8d1a87af93e3 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ne.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ne.js @@ -1 +1 @@ -!function(o){const e=o.ne=o.ne||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 मधà¥à¤¯à¥‡ %1",Accept:"",Aquamarine:"अवà¥à¤•à¤µà¤¾à¤®à¤°à¤¿à¤¨",Black:"कालो",Blue:"निलो",Cancel:"रदà¥à¤¦ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Cannot upload file:":"फाइल अपलोड गरà¥à¤¨ मिलà¥à¤¦à¥ˆà¤¨",Clear:"","Click to edit block":"","Dim grey":"धमिलो खैरो","Drag to move":"","Dropdown toolbar":"","Edit block":"बà¥à¤²à¤• समà¥à¤ªà¤¾à¤¦à¤¨ गरà¥à¤¨","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"हरियो",Grey:"खैरो",HEX:"","Light blue":"हलà¥à¤•à¤¾ निलो","Light green":"हलà¥à¤•à¤¾ हरियो","Light grey":"हलà¥à¤•à¤¾ खैरो",Next:"अरà¥à¤•à¥‹","No results found":"","No searchable items":"",Orange:"सà¥à¤¨à¥à¤¤à¤²à¤¾ रंग",Previous:"अघिलà¥à¤²à¥‹",Purple:"बैंगनी रंग",Red:"रातो",Redo:"रिडà¥","Remove color":"रंग हटाउन","Restore default":"","Rich Text Editor":"धनी पाठसमà¥à¤ªà¤¾à¤¦à¤•","Rich Text Editor. Editing area: %0":"",Save:"सà¥à¤°à¤•à¥à¤·à¤¿à¤¤ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Show more items":"",Turquoise:"तà¥à¤°à¤•à¥‹à¤‡à¤¸",Undo:"पूरà¥à¤µà¤µà¤¤","Upload in progress":"अपलोड हà¥à¤¦à¥ˆà¤›",White:"सेतो",Yellow:"पहेंलो"}),e.getPluralForm=function(o){return 1!=o}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e.ne=e.ne||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 मधà¥à¤¯à¥‡ %1",Accept:"",Aquamarine:"अवà¥à¤•à¤µà¤¾à¤®à¤°à¤¿à¤¨",Black:"कालो",Blue:"निलो",Cancel:"रदà¥à¤¦ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Cannot upload file:":"फाइल अपलोड गरà¥à¤¨ मिलà¥à¤¦à¥ˆà¤¨",Clear:"","Click to edit block":"","Dim grey":"धमिलो खैरो","Drag to move":"","Dropdown toolbar":"","Edit block":"बà¥à¤²à¤• समà¥à¤ªà¤¾à¤¦à¤¨ गरà¥à¤¨","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"हरियो",Grey:"खैरो",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"हलà¥à¤•à¤¾ निलो","Light green":"हलà¥à¤•à¤¾ हरियो","Light grey":"हलà¥à¤•à¤¾ खैरो",Next:"अरà¥à¤•à¥‹","No results found":"","No searchable items":"",Orange:"सà¥à¤¨à¥à¤¤à¤²à¤¾ रंग",Previous:"अघिलà¥à¤²à¥‹",Purple:"बैंगनी रंग",Red:"रातो",Redo:"रिडà¥","Remove color":"रंग हटाउन","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"धनी पाठसमà¥à¤ªà¤¾à¤¦à¤•","Rich Text Editor. Editing area: %0":"",Save:"सà¥à¤°à¤•à¥à¤·à¤¿à¤¤ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Show more items":"",Turquoise:"तà¥à¤°à¤•à¥‹à¤‡à¤¸",Undo:"पूरà¥à¤µà¤µà¤¤","Upload in progress":"अपलोड हà¥à¤¦à¥ˆà¤›",White:"सेतो",Yellow:"पहेंलो"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/nl.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/nl.js index b8f8f6535645..67b74adeea77 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/nl.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/nl.js @@ -1 +1 @@ -!function(e){const r=e.nl=e.nl||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 van %1",Accept:"Accepteren",Aquamarine:"Aquamarijn",Black:"Zwart",Blue:"Blauw",Cancel:"Annuleren","Cannot upload file:":"Kan bestand niet uploaden:",Clear:"Wissen","Click to edit block":"Klik om blok te bewerken","Dim grey":"Gedimd grijs","Drag to move":"Sleep om te verplaatsen","Dropdown toolbar":"Drop-down werkbalk","Edit block":"Blok aanpassen","Editor block content toolbar":"Inhoud werkbalk voor editorblok","Editor contextual toolbar":"Contextuele werkbalk van editor","Editor editing area: %0":"Bewerkingsgebied: %0","Editor toolbar":"Editor welkbalk",Green:"Groen",Grey:"Grijs",HEX:"HEX","Insert paragraph after block":"Voeg paragraaf toe na blok","Insert paragraph before block":"Voeg paragraaf toe voor blok","Light blue":"Lichtblauw","Light green":"Lichtgroen","Light grey":"Lichtgrijs",Next:"Volgende","No results found":"Geen zoekresultaten","No searchable items":"Geen zoekbare items",Orange:"Oranje","Press Enter to type after or press Shift + Enter to type before the widget":"Druk op Enter om na de widget te typen of druk op Shift + Enter om vóór de widget te typen",Previous:"Vorige",Purple:"Paars",Red:"Rood",Redo:"Opnieuw","Remove color":"Verwijder kleur","Restore default":"Standaardinstellingen terugzetten","Rich Text Editor":"Tekstbewerker","Rich Text Editor. Editing area: %0":"Rich Text Editor. Bewerkingsgebied: %0",Save:"Opslaan","Select all":"Selecteer alles","Show more items":"Meer items weergeven",Turquoise:"Turquoise",Undo:"Ongedaan maken","Upload in progress":"Bezig met uploaden",White:"Wit","Widget toolbar":"Widget werkbalk",Yellow:"Geel"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.nl=e.nl||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 van %1",Accept:"Accepteren",Aquamarine:"Aquamarijn",Black:"Zwart",Blue:"Blauw",Cancel:"Annuleren","Cannot upload file:":"Kan bestand niet uploaden:",Clear:"Wissen","Click to edit block":"Klik om blok te bewerken","Dim grey":"Gedimd grijs","Drag to move":"Sleep om te verplaatsen","Dropdown toolbar":"Drop-down werkbalk","Edit block":"Blok aanpassen","Editor block content toolbar":"Inhoud werkbalk voor editorblok","Editor contextual toolbar":"Contextuele werkbalk van editor","Editor editing area: %0":"Bewerkingsgebied: %0","Editor toolbar":"Editor welkbalk",Green:"Groen",Grey:"Grijs",HEX:"HEX","Insert image with file manager":"Afbeelding invoegen met bestandsbeheer","Insert paragraph after block":"Voeg paragraaf toe na blok","Insert paragraph before block":"Voeg paragraaf toe voor blok","Insert with file manager":"Invoegen met bestandsbeheer","Light blue":"Lichtblauw","Light green":"Lichtgroen","Light grey":"Lichtgrijs",Next:"Volgende","No results found":"Geen zoekresultaten","No searchable items":"Geen zoekbare items",Orange:"Oranje","Press Enter to type after or press Shift + Enter to type before the widget":"Druk op Enter om na de widget te typen of druk op Shift + Enter om vóór de widget te typen",Previous:"Vorige",Purple:"Paars",Red:"Rood",Redo:"Opnieuw","Remove color":"Verwijder kleur","Replace image with file manager":"Afbeelding vervangen met bestandsbeheerder","Replace with file manager":"Vervangen met bestandsbeheerder","Restore default":"Standaardinstellingen terugzetten","Rich Text Editor":"Tekstbewerker","Rich Text Editor. Editing area: %0":"Rich Text Editor. Bewerkingsgebied: %0",Save:"Opslaan","Select all":"Selecteer alles","Show more items":"Meer items weergeven",Turquoise:"Turquoise",Undo:"Ongedaan maken","Upload in progress":"Bezig met uploaden",White:"Wit","Widget toolbar":"Widget werkbalk",Yellow:"Geel"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/no.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/no.js index 50aa492963e0..d3d0ba2db78c 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/no.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/no.js @@ -1 +1 @@ -!function(e){const r=e.no=e.no||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 av %1",Accept:"Godta",Aquamarine:"Akvamarin",Black:"Svart",Blue:"BlÃ¥",Cancel:"Avbryt","Cannot upload file:":"Kan ikke laste opp fil:",Clear:"Slett","Click to edit block":"Klikk for Ã¥ redigere blokk","Dim grey":"Svak grÃ¥","Drag to move":"Dra for Ã¥ flytte","Dropdown toolbar":"Verktøylinje for nedtrekksliste","Edit block":"Rediger blokk","Editor block content toolbar":"Verktøylinje for blokkinnhold i redigeringsverktøy","Editor contextual toolbar":"Verktøylinje for kontekst i redigeringsverktøy","Editor editing area: %0":"RedigeringsomrÃ¥de for redigeringsverktøyet: %0","Editor toolbar":"Verktøylinje for redigeringsverktøy",Green:"Grønn",Grey:"GrÃ¥",HEX:"HEX","Insert paragraph after block":"Sett inn paragraf etter blokk","Insert paragraph before block":"Sett inn paragraf foran blokk","Light blue":"LyseblÃ¥","Light green":"Lysegrønn","Light grey":"LysegrÃ¥",Next:"Neste","No results found":"Ingen resultater","No searchable items":"Ingen søkbare elementer",Orange:"Oransje","Press Enter to type after or press Shift + Enter to type before the widget":"Trykk Enter for Ã¥ skrive etter eller trykk Shift + Enter for Ã¥ skrive før widgeten",Previous:"Forrige",Purple:"Lilla",Red:"Rød",Redo:"Gjør om","Remove color":"Fjern farge","Restore default":"Tilbakestill til standard","Rich Text Editor":"Tekstredigeringsverktøy for rik tekst","Rich Text Editor. Editing area: %0":"Redigeringsverktøy for rik tekst. RedigeringsomrÃ¥de: %0",Save:"Lagre","Select all":"Velg alt ","Show more items":"Vis flere elementer",Turquoise:"Turkis",Undo:"Angre","Upload in progress":"Laster opp fil",White:"Hvit","Widget toolbar":"Widget verktøylinje ",Yellow:"Gul"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.no=e.no||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 av %1",Accept:"Godta",Aquamarine:"Akvamarin",Black:"Svart",Blue:"BlÃ¥",Cancel:"Avbryt","Cannot upload file:":"Kan ikke laste opp fil:",Clear:"Slett","Click to edit block":"Klikk for Ã¥ redigere blokk","Dim grey":"Svak grÃ¥","Drag to move":"Dra for Ã¥ flytte","Dropdown toolbar":"Verktøylinje for nedtrekksliste","Edit block":"Rediger blokk","Editor block content toolbar":"Verktøylinje for blokkinnhold i redigeringsverktøy","Editor contextual toolbar":"Verktøylinje for kontekst i redigeringsverktøy","Editor editing area: %0":"RedigeringsomrÃ¥de for redigeringsverktøyet: %0","Editor toolbar":"Verktøylinje for redigeringsverktøy",Green:"Grønn",Grey:"GrÃ¥",HEX:"HEX","Insert image with file manager":"Sett inn bilde med filbehandling","Insert paragraph after block":"Sett inn paragraf etter blokk","Insert paragraph before block":"Sett inn paragraf foran blokk","Insert with file manager":"Sett inn med filbehandling","Light blue":"LyseblÃ¥","Light green":"Lysegrønn","Light grey":"LysegrÃ¥",Next:"Neste","No results found":"Ingen resultater","No searchable items":"Ingen søkbare elementer",Orange:"Oransje","Press Enter to type after or press Shift + Enter to type before the widget":"Trykk Enter for Ã¥ skrive etter eller trykk Shift + Enter for Ã¥ skrive før widgeten",Previous:"Forrige",Purple:"Lilla",Red:"Rød",Redo:"Gjør om","Remove color":"Fjern farge","Replace image with file manager":"Erstatt bilde med filbehandling","Replace with file manager":"Erstatt med filbehandling","Restore default":"Tilbakestill til standard","Rich Text Editor":"Tekstredigeringsverktøy for rik tekst","Rich Text Editor. Editing area: %0":"Redigeringsverktøy for rik tekst. RedigeringsomrÃ¥de: %0",Save:"Lagre","Select all":"Velg alt ","Show more items":"Vis flere elementer",Turquoise:"Turkis",Undo:"Angre","Upload in progress":"Laster opp fil",White:"Hvit","Widget toolbar":"Widget verktøylinje ",Yellow:"Gul"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/oc.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/oc.js index 1a4210de84f1..5cac8b1a44cc 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/oc.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/oc.js @@ -1 +1 @@ -!function(o){const e=o.oc=o.oc||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"",Cancel:"Anullar","Cannot upload file:":"",Clear:"","Remove color":"","Restore default":"","Rich Text Editor. Editing area: %0":"",Save:"Enregistrar","Show more items":""}),e.getPluralForm=function(o){return o>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.oc=e.oc||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"",Cancel:"Anullar","Cannot upload file:":"",Clear:"","Insert image with file manager":"","Insert with file manager":"","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor. Editing area: %0":"",Save:"Enregistrar","Show more items":""}),a.getPluralForm=function(e){return e>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pl.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pl.js index 32dd6b061bd9..8024673d7bf9 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pl.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pl.js @@ -1 +1 @@ -!function(e){const o=e.pl=e.pl||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 z %1",Accept:"Zaakceptuj",Aquamarine:"Akwamaryna",Black:"Czarny",Blue:"Niebieski",Cancel:"Anuluj","Cannot upload file:":"Nie można przesÅ‚ać pliku:",Clear:"Wyczyść","Click to edit block":"Kliknij, aby edytować blok","Dim grey":"Ciemnoszary","Drag to move":"PrzeciÄ…gnij, aby przenieść","Dropdown toolbar":"Rozwijany pasek narzÄ™dzi","Edit block":"Edytuj blok","Editor block content toolbar":"Pasek zadaÅ„ treÅ›ci blokowej edytora","Editor contextual toolbar":"Kontekstowy pasek zadaÅ„ edytora","Editor editing area: %0":"Obszar edycji edytora: %0","Editor toolbar":"Pasek narzÄ™dzi edytora",Green:"Zielony",Grey:"Szary",HEX:"SZESNASTKOWY","Insert paragraph after block":"Wstaw akapit po bloku","Insert paragraph before block":"Wstaw akapit przed blokiem","Light blue":"Jasnoniebieski","Light green":"Jasnozielony","Light grey":"Jasnoszary",Next:"NastÄ™pny","No results found":"Nie znaleziono wyników","No searchable items":"Brak elementów do wyszukania",Orange:"PomaraÅ„czowy","Press Enter to type after or press Shift + Enter to type before the widget":"NaciÅ›nij Enter, aby pisać po widżecie, lub Shift + Enter, aby pisać przed widżetem",Previous:"Poprzedni",Purple:"Purpurowy",Red:"Czerwony",Redo:"Ponów","Remove color":"UsuÅ„ kolor","Restore default":"Przywróć domyÅ›lne","Rich Text Editor":"Edytor tekstu sformatowanego","Rich Text Editor. Editing area: %0":"Edytor tekstu. Obszar edycji: %0",Save:"Zapisz","Select all":"Zaznacz wszystko","Show more items":"Pokaż wiÄ™cej",Turquoise:"Turkusowy",Undo:"Cofnij","Upload in progress":"Trwa przesyÅ‚anie",White:"BiaÅ‚y","Widget toolbar":"Pasek widgetów",Yellow:"Żółty"}),o.getPluralForm=function(e){return 1==e?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:1!=e&&e%10>=0&&e%10<=1||e%10>=5&&e%10<=9||e%100>=12&&e%100<=14?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.pl=e.pl||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 z %1",Accept:"Zaakceptuj",Aquamarine:"Akwamaryna",Black:"Czarny",Blue:"Niebieski",Cancel:"Anuluj","Cannot upload file:":"Nie można przesÅ‚ać pliku:",Clear:"Wyczyść","Click to edit block":"Kliknij, aby edytować blok","Dim grey":"Ciemnoszary","Drag to move":"PrzeciÄ…gnij, aby przenieść","Dropdown toolbar":"Rozwijany pasek narzÄ™dzi","Edit block":"Edytuj blok","Editor block content toolbar":"Pasek zadaÅ„ treÅ›ci blokowej edytora","Editor contextual toolbar":"Kontekstowy pasek zadaÅ„ edytora","Editor editing area: %0":"Obszar edycji edytora: %0","Editor toolbar":"Pasek narzÄ™dzi edytora",Green:"Zielony",Grey:"Szary",HEX:"SZESNASTKOWY","Insert image with file manager":"Wstaw obraz za pomocÄ… menedżera plików","Insert paragraph after block":"Wstaw akapit po bloku","Insert paragraph before block":"Wstaw akapit przed blokiem","Insert with file manager":"Wstaw za pomocÄ… menedżera plików","Light blue":"Jasnoniebieski","Light green":"Jasnozielony","Light grey":"Jasnoszary",Next:"NastÄ™pny","No results found":"Nie znaleziono wyników","No searchable items":"Brak elementów do wyszukania",Orange:"PomaraÅ„czowy","Press Enter to type after or press Shift + Enter to type before the widget":"NaciÅ›nij Enter, aby pisać po widżecie, lub Shift + Enter, aby pisać przed widżetem",Previous:"Poprzedni",Purple:"Purpurowy",Red:"Czerwony",Redo:"Ponów","Remove color":"UsuÅ„ kolor","Replace image with file manager":"ZastÄ…p obraz za pomocÄ… menedżera plików","Replace with file manager":"ZastÄ…p za pomocÄ… menedżera plików","Restore default":"Przywróć domyÅ›lne","Rich Text Editor":"Edytor tekstu sformatowanego","Rich Text Editor. Editing area: %0":"Edytor tekstu. Obszar edycji: %0",Save:"Zapisz","Select all":"Zaznacz wszystko","Show more items":"Pokaż wiÄ™cej",Turquoise:"Turkusowy",Undo:"Cofnij","Upload in progress":"Trwa przesyÅ‚anie",White:"BiaÅ‚y","Widget toolbar":"Pasek widgetów",Yellow:"Żółty"}),a.getPluralForm=function(e){return 1==e?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:1!=e&&e%10>=0&&e%10<=1||e%10>=5&&e%10<=9||e%100>=12&&e%100<=14?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pt-br.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pt-br.js index 1b9858e71a29..4c71c5940696 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pt-br.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pt-br.js @@ -1 +1 @@ -!function(e){const r=e["pt-br"]=e["pt-br"]||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceitar",Aquamarine:"Ãgua-marinha",Black:"Preto",Blue:"Azul",Cancel:"Cancelar","Cannot upload file:":"Não foi possÃvel enviar o arquivo:",Clear:"Limpar","Click to edit block":"Clicar para editar o bloco","Dim grey":"Cinza escuro","Drag to move":"Arrastar para mover","Dropdown toolbar":"Barra de Ferramentas da Lista Suspensa","Edit block":"Editor de bloco","Editor block content toolbar":"Barra de ferramentas de bloco do Editor","Editor contextual toolbar":"Barra de ferramentas contextual do Editor","Editor editing area: %0":"Ãrea de edição do editor: %0","Editor toolbar":"Ferramentas do Editor",Green:"Verde",Grey:"Cinza",HEX:"Hexadecimal","Insert paragraph after block":"Inserir parágrafo após o bloco","Insert paragraph before block":"Inserir parágrafo antes do bloco","Light blue":"Azul claro","Light green":"Verde claro","Light grey":"Cinza claro",Next:"Próximo","No results found":"Nenhum resultado encontrado","No searchable items":"Sem itens pesquisáveis",Orange:"Laranja","Press Enter to type after or press Shift + Enter to type before the widget":"Pressione Enter para digitar depois ou pressione Shift + Enter para digitar antes do widget",Previous:"Anterior",Purple:"Púrpura",Red:"Vermelho",Redo:"Refazer","Remove color":"Remover cor","Restore default":"Restaurar padrão","Rich Text Editor":"Editor de Formatação","Rich Text Editor. Editing area: %0":"Editor de Texto Valioso. Ãrea de edição: %0",Save:"Salvar","Select all":"Selecionar tudo","Show more items":"Exibir mais itens",Turquoise:"Turquesa",Undo:"Desfazer","Upload in progress":"Enviando dados",White:"Branco","Widget toolbar":"Ferramentas de Widgets",Yellow:"Amarelo"}),r.getPluralForm=function(e){return 0==e||1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e["pt-br"]=e["pt-br"]||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceitar",Aquamarine:"Ãgua-marinha",Black:"Preto",Blue:"Azul",Cancel:"Cancelar","Cannot upload file:":"Não foi possÃvel enviar o arquivo:",Clear:"Limpar","Click to edit block":"Clicar para editar o bloco","Dim grey":"Cinza escuro","Drag to move":"Arrastar para mover","Dropdown toolbar":"Barra de Ferramentas da Lista Suspensa","Edit block":"Editor de bloco","Editor block content toolbar":"Barra de ferramentas de bloco do Editor","Editor contextual toolbar":"Barra de ferramentas contextual do Editor","Editor editing area: %0":"Ãrea de edição do editor: %0","Editor toolbar":"Ferramentas do Editor",Green:"Verde",Grey:"Cinza",HEX:"Hexadecimal","Insert image with file manager":"Inserir imagem com o gerenciador de arquivos","Insert paragraph after block":"Inserir parágrafo após o bloco","Insert paragraph before block":"Inserir parágrafo antes do bloco","Insert with file manager":"Inserir com gerenciador de arquivos","Light blue":"Azul claro","Light green":"Verde claro","Light grey":"Cinza claro",Next:"Próximo","No results found":"Nenhum resultado encontrado","No searchable items":"Sem itens pesquisáveis",Orange:"Laranja","Press Enter to type after or press Shift + Enter to type before the widget":"Pressione Enter para digitar depois ou pressione Shift + Enter para digitar antes do widget",Previous:"Anterior",Purple:"Púrpura",Red:"Vermelho",Redo:"Refazer","Remove color":"Remover cor","Replace image with file manager":"Substituir imagem pelo gerenciador de arquivos","Replace with file manager":"Substituir pelo gerenciador de arquivos","Restore default":"Restaurar padrão","Rich Text Editor":"Editor de Formatação","Rich Text Editor. Editing area: %0":"Editor de Texto Valioso. Ãrea de edição: %0",Save:"Salvar","Select all":"Selecionar tudo","Show more items":"Exibir mais itens",Turquoise:"Turquesa",Undo:"Desfazer","Upload in progress":"Enviando dados",White:"Branco","Widget toolbar":"Ferramentas de Widgets",Yellow:"Amarelo"}),r.getPluralForm=function(e){return 0==e||1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pt.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pt.js index 6640534f830d..f7ce6b85f2a0 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pt.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/pt.js @@ -1 +1 @@ -!function(e){const r=e.pt=e.pt||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceitar",Aquamarine:"Verde-azulado",Black:"Preto",Blue:"Azul",Cancel:"Cancelar","Cannot upload file:":"Não foi possÃvel carregar o ficheiro:",Clear:"Limpar","Click to edit block":"Clique para editar o bloco","Dim grey":"Cinzento-escuro","Drag to move":"Arraste para mover","Dropdown toolbar":"Barra de ferramentas do dropdown","Edit block":"Editar bloco","Editor block content toolbar":"Barra de ferramentas de edição do conteúdo de blocos","Editor contextual toolbar":"Barra de ferramentas contextual de edição","Editor editing area: %0":"Ãrea de edição do editor: %0","Editor toolbar":"Barra de ferramentas do editor",Green:"Verde",Grey:"Cinzento",HEX:"HEX","Insert paragraph after block":"Inserir parágrafo após o bloco","Insert paragraph before block":"Inserir parágrafo antes do bloco","Light blue":"Azul-claro","Light green":"Verde-claro","Light grey":"Cinzento-claro",Next:"Seguinte","No results found":"Nenhum resultado encontrado","No searchable items":"Nenhum item pesquisável",Orange:"Laranja","Press Enter to type after or press Shift + Enter to type before the widget":"Prima Enter para escrever depois ou Shift + Enter para escrever antes do widget",Previous:"Anterior",Purple:"Roxo",Red:"Vermelho",Redo:"Refazer","Remove color":"Remover cor","Restore default":"Restaurar predefinição","Rich Text Editor":"Editor de texto avançado","Rich Text Editor. Editing area: %0":"Editor de Texto Formatado. Ãrea de edição: %0",Save:"Guardar","Select all":"Selecionar todos","Show more items":"Mostrar mais itens",Turquoise:"Turquesa",Undo:"Desfazer","Upload in progress":"Carregamento em progresso",White:"Branco","Widget toolbar":"Barra de ferramentas do widget",Yellow:"Amarelo"}),r.getPluralForm=function(e){return 0==e||1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.pt=e.pt||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 de %1",Accept:"Aceitar",Aquamarine:"Verde-azulado",Black:"Preto",Blue:"Azul",Cancel:"Cancelar","Cannot upload file:":"Não foi possÃvel carregar o ficheiro:",Clear:"Limpar","Click to edit block":"Clique para editar o bloco","Dim grey":"Cinzento-escuro","Drag to move":"Arraste para mover","Dropdown toolbar":"Barra de ferramentas do dropdown","Edit block":"Editar bloco","Editor block content toolbar":"Barra de ferramentas de edição do conteúdo de blocos","Editor contextual toolbar":"Barra de ferramentas contextual de edição","Editor editing area: %0":"Ãrea de edição do editor: %0","Editor toolbar":"Barra de ferramentas do editor",Green:"Verde",Grey:"Cinzento",HEX:"HEX","Insert image with file manager":"Inserir imagem com o gestor de ficheiros","Insert paragraph after block":"Inserir parágrafo após o bloco","Insert paragraph before block":"Inserir parágrafo antes do bloco","Insert with file manager":"Inserir com o gestor de ficheiros","Light blue":"Azul-claro","Light green":"Verde-claro","Light grey":"Cinzento-claro",Next:"Seguinte","No results found":"Nenhum resultado encontrado","No searchable items":"Nenhum item pesquisável",Orange:"Laranja","Press Enter to type after or press Shift + Enter to type before the widget":"Prima Enter para escrever depois ou Shift + Enter para escrever antes do widget",Previous:"Anterior",Purple:"Roxo",Red:"Vermelho",Redo:"Refazer","Remove color":"Remover cor","Replace image with file manager":"Substituir imagem com o gestor de ficheiros","Replace with file manager":"Substituir com o gestor de ficheiros","Restore default":"Restaurar predefinição","Rich Text Editor":"Editor de texto avançado","Rich Text Editor. Editing area: %0":"Editor de Texto Formatado. Ãrea de edição: %0",Save:"Guardar","Select all":"Selecionar todos","Show more items":"Mostrar mais itens",Turquoise:"Turquesa",Undo:"Desfazer","Upload in progress":"Carregamento em progresso",White:"Branco","Widget toolbar":"Barra de ferramentas do widget",Yellow:"Amarelo"}),r.getPluralForm=function(e){return 0==e||1==e?0:0!=e&&e%1e6==0?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ro.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ro.js index a825fb60a160..ae380d48ede2 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ro.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ro.js @@ -1 +1 @@ -!function(e){const t=e.ro=e.ro||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 din %1",Accept:"Acceptă",Aquamarine:"Acvamarin",Black:"Negru",Blue:"Albastru",Cancel:"Anulare","Cannot upload file:":"Nu se poate încărca fiÈ™ierul:",Clear:"Ștergere","Click to edit block":"FaceÈ›i clic pentru a edita întreg blocul","Dim grey":"Gri slab","Drag to move":"GlisaÈ›i pentru a muta","Dropdown toolbar":"Bară listă opÈ›iuni","Edit block":"Editează bloc","Editor block content toolbar":"Bară de instrumente editor pentru blocuri de conÈ›inut","Editor contextual toolbar":"Bară contextuală de instrumente editor","Editor editing area: %0":"Zonă editare editor: %0","Editor toolbar":"Bară editor",Green:"Verde",Grey:"Gri",HEX:"HEX","Insert paragraph after block":"Inserează un paragraf după bloc","Insert paragraph before block":"Inserează un paragraf înaintea blocului","Light blue":"Albastru deschis","Light green":"Verde deschis","Light grey":"Gri deschis",Next:"ÃŽnainte","No results found":"Nu au fost găsite rezultate","No searchable items":"Nu există elemente ce pot fi căutate",Orange:"Portocaliu","Press Enter to type after or press Shift + Enter to type before the widget":"ApăsaÈ›i Enter pentru a scrie după widget sau Shift+Enter pentru a scrie înaintea acestuia",Previous:"ÃŽnapoi",Purple:"Violet",Red:"RoÈ™u",Redo:"Revenire","Remove color":"Șterge culoare","Restore default":"Reface la default","Rich Text Editor":"Editor de text","Rich Text Editor. Editing area: %0":"Editor Rich Text. Zonă editare: %0",Save:"Salvare","Select all":"Selectează-le pe toate","Show more items":"Arată mai multe elemente",Turquoise:"Turcoaz",Undo:"Anulare","Upload in progress":"ÃŽncărcare în curs",White:"Alb","Widget toolbar":"Bară widget",Yellow:"Galben"}),t.getPluralForm=function(e){return 1==e?0:e%100>19||e%100==0&&0!=e?2:1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.ro=e.ro||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 din %1",Accept:"Acceptă",Aquamarine:"Acvamarin",Black:"Negru",Blue:"Albastru",Cancel:"Anulare","Cannot upload file:":"Nu se poate încărca fiÈ™ierul:",Clear:"Ștergere","Click to edit block":"FaceÈ›i clic pentru a edita întreg blocul","Dim grey":"Gri slab","Drag to move":"GlisaÈ›i pentru a muta","Dropdown toolbar":"Bară listă opÈ›iuni","Edit block":"Editează bloc","Editor block content toolbar":"Bară de instrumente editor pentru blocuri de conÈ›inut","Editor contextual toolbar":"Bară contextuală de instrumente editor","Editor editing area: %0":"Zonă editare editor: %0","Editor toolbar":"Bară editor",Green:"Verde",Grey:"Gri",HEX:"HEX","Insert image with file manager":"Inserare imagine cu managerul de fiÈ™iere","Insert paragraph after block":"Inserează un paragraf după bloc","Insert paragraph before block":"Inserează un paragraf înaintea blocului","Insert with file manager":"Inserare cu managerul de fiÈ™iere","Light blue":"Albastru deschis","Light green":"Verde deschis","Light grey":"Gri deschis",Next:"ÃŽnainte","No results found":"Nu au fost găsite rezultate","No searchable items":"Nu există elemente ce pot fi căutate",Orange:"Portocaliu","Press Enter to type after or press Shift + Enter to type before the widget":"ApăsaÈ›i Enter pentru a scrie după widget sau Shift+Enter pentru a scrie înaintea acestuia",Previous:"ÃŽnapoi",Purple:"Violet",Red:"RoÈ™u",Redo:"Revenire","Remove color":"Șterge culoare","Replace image with file manager":"ÃŽnlocuire imagine cu managerul de fiÈ™iere","Replace with file manager":"ÃŽnlocuire cu managerul de fiÈ™iere","Restore default":"Reface la default","Rich Text Editor":"Editor de text","Rich Text Editor. Editing area: %0":"Editor Rich Text. Zonă editare: %0",Save:"Salvare","Select all":"Selectează-le pe toate","Show more items":"Arată mai multe elemente",Turquoise:"Turcoaz",Undo:"Anulare","Upload in progress":"ÃŽncărcare în curs",White:"Alb","Widget toolbar":"Bară widget",Yellow:"Galben"}),r.getPluralForm=function(e){return 1==e?0:e%100>19||e%100==0&&0!=e?2:1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ru.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ru.js index 594ca6b33117..c4467e076245 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ru.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ru.js @@ -1 +1 @@ -!function(e){const t=e.ru=e.ru||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 из %1",Accept:"ПринÑÑ‚ÑŒ",Aquamarine:"Ðквамариновый",Black:"Чёрный",Blue:"Синий",Cancel:"Отмена","Cannot upload file:":"Ðевозможно загрузить файл",Clear:"ОчиÑтить","Click to edit block":"Ðажмите, чтобы редактировать блок","Dim grey":"Тёмно-Ñерый","Drag to move":"Перетащить","Dropdown toolbar":"Ð’Ñ‹Ð¿Ð°Ð´Ð°ÑŽÑ‰Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ инÑтрументов","Edit block":"Редактировать блок","Editor block content toolbar":"Панель инÑтрументов редактора","Editor contextual toolbar":"КонтекÑÑ‚ÑƒÐ°Ð»ÑŒÐ½Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ инÑтрументов редактора","Editor editing area: %0":"ОблаÑÑ‚ÑŒ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¾Ñ€Ð°: %0","Editor toolbar":"Панель инÑтрументов редактора",Green:"Зелёный",Grey:"Серый",HEX:"HEX","Insert paragraph after block":"Ð’Ñтавить параграф поÑле блока","Insert paragraph before block":"Ð’Ñтавить параграф перед блоком","Light blue":"Голубой","Light green":"Салатовый","Light grey":"Светло-Ñерый",Next:"Следующий","No results found":"Результаты не найдены","No searchable items":"Ðет Ñлементов Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка",Orange:"Оранжевый","Press Enter to type after or press Shift + Enter to type before the widget":"Ðажмите Enter Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° текÑта поÑле виджета или нажмите Shift + Enter Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° текÑта перед виджетом",Previous:"Предыдущий",Purple:"Фиолетовый",Red:"КраÑный",Redo:"Повторить","Remove color":"Убрать цвет","Restore default":"По умолчанию","Rich Text Editor":"Редактор","Rich Text Editor. Editing area: %0":"Редактор форматированного текÑта. ОблаÑÑ‚ÑŒ редактированиÑ: %0",Save:"Сохранить","Select all":"Выбрать вÑе","Show more items":"Другие инÑтрументы",Turquoise:"Бирюзовый",Undo:"Отменить","Upload in progress":"Идёт загрузка",White:"Белый","Widget toolbar":"Панель инÑтрументов виджета",Yellow:"Жёлтый"}),t.getPluralForm=function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:e%10==0||e%10>=5&&e%10<=9||e%100>=11&&e%100<=14?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.ru=e.ru||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 из %1",Accept:"ПринÑÑ‚ÑŒ",Aquamarine:"Ðквамариновый",Black:"Чёрный",Blue:"Синий",Cancel:"Отмена","Cannot upload file:":"Ðевозможно загрузить файл",Clear:"ОчиÑтить","Click to edit block":"Ðажмите, чтобы редактировать блок","Dim grey":"Тёмно-Ñерый","Drag to move":"Перетащить","Dropdown toolbar":"Ð’Ñ‹Ð¿Ð°Ð´Ð°ÑŽÑ‰Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ инÑтрументов","Edit block":"Редактировать блок","Editor block content toolbar":"Панель инÑтрументов редактора","Editor contextual toolbar":"КонтекÑÑ‚ÑƒÐ°Ð»ÑŒÐ½Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ инÑтрументов редактора","Editor editing area: %0":"ОблаÑÑ‚ÑŒ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¾Ñ€Ð°: %0","Editor toolbar":"Панель инÑтрументов редактора",Green:"Зелёный",Grey:"Серый",HEX:"HEX","Insert image with file manager":"Ð’Ñтавить изображение Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ файлового менеджера","Insert paragraph after block":"Ð’Ñтавить параграф поÑле блока","Insert paragraph before block":"Ð’Ñтавить параграф перед блоком","Insert with file manager":"Ð’Ñтавка Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ файлового менеджера","Light blue":"Голубой","Light green":"Салатовый","Light grey":"Светло-Ñерый",Next:"Следующий","No results found":"Результаты не найдены","No searchable items":"Ðет Ñлементов Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка",Orange:"Оранжевый","Press Enter to type after or press Shift + Enter to type before the widget":"Ðажмите Enter Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° текÑта поÑле виджета или нажмите Shift + Enter Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° текÑта перед виджетом",Previous:"Предыдущий",Purple:"Фиолетовый",Red:"КраÑный",Redo:"Повторить","Remove color":"Убрать цвет","Replace image with file manager":"Заменить изображение Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ файлового менеджера","Replace with file manager":"Заменить Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ файлового менеджера","Restore default":"По умолчанию","Rich Text Editor":"Редактор","Rich Text Editor. Editing area: %0":"Редактор форматированного текÑта. ОблаÑÑ‚ÑŒ редактированиÑ: %0",Save:"Сохранить","Select all":"Выбрать вÑе","Show more items":"Другие инÑтрументы",Turquoise:"Бирюзовый",Undo:"Отменить","Upload in progress":"Идёт загрузка",White:"Белый","Widget toolbar":"Панель инÑтрументов виджета",Yellow:"Жёлтый"}),t.getPluralForm=function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:e%10==0||e%10>=5&&e%10<=9||e%100>=11&&e%100<=14?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/si.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/si.js index 2886a2394e60..098cd5eadeb3 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/si.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/si.js @@ -1 +1 @@ -!function(o){const e=o.si=o.si||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"",Cancel:"","Cannot upload file:":"ගොනුව යà·à·€à¶à·Šà¶šà·à¶½à·“න කළ නොහà·à¶š:",Clear:"",Redo:"නà·à·€à¶ කරන්න","Remove color":"","Restore default":"","Rich Text Editor. Editing area: %0":"",Save:"","Show more items":"",Undo:"අහà·à·ƒà·’ කරන්න"}),e.getPluralForm=function(o){return 1!=o}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.si=e.si||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"",Cancel:"","Cannot upload file:":"ගොනුව යà·à·€à¶à·Šà¶šà·à¶½à·“න කළ නොහà·à¶š:",Clear:"","Insert image with file manager":"","Insert with file manager":"",Redo:"නà·à·€à¶ කරන්න","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor. Editing area: %0":"",Save:"","Show more items":"",Undo:"අහà·à·ƒà·’ කරන්න"}),i.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sk.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sk.js index bb448c401071..cec0dedbd3e4 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sk.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sk.js @@ -1 +1 @@ -!function(e){const o=e.sk=e.sk||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 z %1",Accept:"PotvrdiÅ¥",Aquamarine:"AkvamarÃnová",Black:"ÄŒierna",Blue:"Modrá",Cancel:"ZruÅ¡iÅ¥","Cannot upload file:":"Nie je možné nahraÅ¥ súbor:",Clear:"VyÄistiÅ¥","Click to edit block":"Úprava bloku kliknutÃm","Dim grey":"Tmavosivá","Drag to move":"PotiahnuÅ¥ a presunúť","Dropdown toolbar":"Panel nástrojov roletového menu","Edit block":"UpraviÅ¥ odsek","Editor block content toolbar":"Panel s nástrojmi obsahu bloku editora","Editor contextual toolbar":"Kontextový panel nástrojov editora","Editor editing area: %0":"OblasÅ¥ úprav editora: %0","Editor toolbar":"Panel nástrojov editora",Green:"Zelená",Grey:"Sivá",HEX:"HEX","Insert paragraph after block":"VložiÅ¥ odstavec za blok","Insert paragraph before block":"VložiÅ¥ odstavec pred blok","Light blue":"Bledomodrá","Light green":"Bledozelená","Light grey":"Bledosivá",Next:"ÄŽalÅ¡ie","No results found":"Neboli nájdené žiadne výsledky","No searchable items":"Žiadne vyhľadávateľné položky",Orange:"Oranžová","Press Enter to type after or press Shift + Enter to type before the widget":"StlaÄte Enter, ak chcete pÃsaÅ¥ po miniaplikácii, alebo stlaÄte Shift + Enter, ak chcete pÃsaÅ¥ pred miniaplikáciou",Previous:"Predchádzajúce",Purple:"Fialová",Red:"ÄŒervená",Redo:"Znova","Remove color":"ZruÅ¡iÅ¥ farbu","Restore default":"ObnoviÅ¥ predvolené","Rich Text Editor":"Editor s formátovanÃm","Rich Text Editor. Editing area: %0":"Rich Text Editor. OblasÅ¥ úprav: %0",Save:"UložiÅ¥","Select all":"OznaÄiÅ¥ vÅ¡etko","Show more items":"ZobraziÅ¥ viac položiek",Turquoise:"Tyrkysová",Undo:"Späť","Upload in progress":"Prebieha nahrávanie",White:"Biela","Widget toolbar":"Panel nástrojov ovládacieho prvku",Yellow:"Žltá"}),o.getPluralForm=function(e){return e%1==0&&1==e?0:e%1==0&&e>=2&&e<=4?1:e%1!=0?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(o){const e=o.sk=o.sk||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 z %1",Accept:"PotvrdiÅ¥",Aquamarine:"AkvamarÃnová",Black:"ÄŒierna",Blue:"Modrá",Cancel:"ZruÅ¡iÅ¥","Cannot upload file:":"Nie je možné nahraÅ¥ súbor:",Clear:"VyÄistiÅ¥","Click to edit block":"Úprava bloku kliknutÃm","Dim grey":"Tmavosivá","Drag to move":"PotiahnuÅ¥ a presunúť","Dropdown toolbar":"Panel nástrojov roletového menu","Edit block":"UpraviÅ¥ odsek","Editor block content toolbar":"Panel s nástrojmi obsahu bloku editora","Editor contextual toolbar":"Kontextový panel nástrojov editora","Editor editing area: %0":"OblasÅ¥ úprav editora: %0","Editor toolbar":"Panel nástrojov editora",Green:"Zelená",Grey:"Sivá",HEX:"HEX","Insert image with file manager":"VložiÅ¥ obrázok pomocou správcu súborov","Insert paragraph after block":"VložiÅ¥ odstavec za blok","Insert paragraph before block":"VložiÅ¥ odstavec pred blok","Insert with file manager":"VložiÅ¥ pomocou správcu súborov","Light blue":"Bledomodrá","Light green":"Bledozelená","Light grey":"Bledosivá",Next:"ÄŽalÅ¡ie","No results found":"Neboli nájdené žiadne výsledky","No searchable items":"Žiadne vyhľadávateľné položky",Orange:"Oranžová","Press Enter to type after or press Shift + Enter to type before the widget":"StlaÄte Enter, ak chcete pÃsaÅ¥ po miniaplikácii, alebo stlaÄte Shift + Enter, ak chcete pÃsaÅ¥ pred miniaplikáciou",Previous:"Predchádzajúce",Purple:"Fialová",Red:"ÄŒervená",Redo:"Znova","Remove color":"ZruÅ¡iÅ¥ farbu","Replace image with file manager":"NahradiÅ¥ obrázok pomocou správcu súborov","Replace with file manager":"NahradiÅ¥ správcom súborov","Restore default":"ObnoviÅ¥ predvolené","Rich Text Editor":"Editor s formátovanÃm","Rich Text Editor. Editing area: %0":"Rich Text Editor. OblasÅ¥ úprav: %0",Save:"UložiÅ¥","Select all":"OznaÄiÅ¥ vÅ¡etko","Show more items":"ZobraziÅ¥ viac položiek",Turquoise:"Tyrkysová",Undo:"Späť","Upload in progress":"Prebieha nahrávanie",White:"Biela","Widget toolbar":"Panel nástrojov ovládacieho prvku",Yellow:"Žltá"}),e.getPluralForm=function(o){return o%1==0&&1==o?0:o%1==0&&o>=2&&o<=4?1:o%1!=0?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sl.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sl.js index 07dc248f5b3b..30f723aac77b 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sl.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sl.js @@ -1 +1 @@ -!function(e){const o=e.sl=e.sl||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"Akvamarin",Black:"ÄŒrna",Blue:"Modra",Cancel:"PrekliÄi","Cannot upload file:":"Ni možno naložiti datoteke:",Clear:"","Click to edit block":"","Dim grey":"Temno siva","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"Zelena",Grey:"Siva",HEX:"","Light blue":"Svetlo modra","Light green":"Svetlo zelena","Light grey":"Svetlo siva",Next:"","No results found":"","No searchable items":"",Orange:"Oranžna",Previous:"",Purple:"VijoliÄna",Red:"RdeÄa","Remove color":"Odstrani barvo","Restore default":"","Rich Text Editor":"","Rich Text Editor. Editing area: %0":"",Save:"Shrani","Show more items":"",Turquoise:"Turkizna",White:"Bela",Yellow:"Rumena"}),o.getPluralForm=function(e){return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.sl=e.sl||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"Akvamarin",Black:"ÄŒrna",Blue:"Modra",Cancel:"PrekliÄi","Cannot upload file:":"Ni možno naložiti datoteke:",Clear:"","Click to edit block":"","Dim grey":"Temno siva","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"Zelena",Grey:"Siva",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"Svetlo modra","Light green":"Svetlo zelena","Light grey":"Svetlo siva",Next:"","No results found":"","No searchable items":"",Orange:"Oranžna",Previous:"",Purple:"VijoliÄna",Red:"RdeÄa","Remove color":"Odstrani barvo","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"","Rich Text Editor. Editing area: %0":"",Save:"Shrani","Show more items":"",Turquoise:"Turkizna",White:"Bela",Yellow:"Rumena"}),a.getPluralForm=function(e){return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sq.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sq.js index 9168fe82240b..09e870f53f2b 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sq.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sq.js @@ -1 +1 @@ -!function(e){const r=e.sq=e.sq||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"E zezë",Blue:"E kaltër",Cancel:"Anulo","Cannot upload file:":"Nuk mund të ngarkojë skedën:",Clear:"Pastro","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"Zgjero kokështrirjen","Edit block":"Redakto bllokun","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"Kokështrirja e redaktuesit",Green:"E gjelbër",Grey:"Ngjyrë hiri",HEX:"","Insert paragraph after block":"","Insert paragraph before block":"","Light blue":"","Light green":"","Light grey":"",Next:"E radhës","No results found":"","No searchable items":"",Orange:"Ngjyrë portokalli","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"Paraprake",Purple:"",Red:"E kuqe",Redo:"Ribëj","Remove color":"Largo ngjyrën","Restore default":"","Rich Text Editor":"Redaktues i Tekstit të Pasur","Rich Text Editor. Editing area: %0":"",Save:"Ruaj","Select all":"Përzgjidh të gjitha","Show more items":"",Turquoise:"",Undo:"Rikthe","Upload in progress":"Duke ngarkuar",White:"E bardhë","Widget toolbar":"Kokështrirja e shtesës",Yellow:"E verdhë"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.sq=e.sq||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"",Black:"E zezë",Blue:"E kaltër",Cancel:"Anulo","Cannot upload file:":"Nuk mund të ngarkojë skedën:",Clear:"Pastro","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"Zgjero kokështrirjen","Edit block":"Redakto bllokun","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"Kokështrirja e redaktuesit",Green:"E gjelbër",Grey:"Ngjyrë hiri",HEX:"","Insert image with file manager":"","Insert paragraph after block":"","Insert paragraph before block":"","Insert with file manager":"","Light blue":"","Light green":"","Light grey":"",Next:"E radhës","No results found":"","No searchable items":"",Orange:"Ngjyrë portokalli","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"Paraprake",Purple:"",Red:"E kuqe",Redo:"Ribëj","Remove color":"Largo ngjyrën","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Redaktues i Tekstit të Pasur","Rich Text Editor. Editing area: %0":"",Save:"Ruaj","Select all":"Përzgjidh të gjitha","Show more items":"",Turquoise:"",Undo:"Rikthe","Upload in progress":"Duke ngarkuar",White:"E bardhë","Widget toolbar":"Kokështrirja e shtesës",Yellow:"E verdhë"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sr-latn.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sr-latn.js index 4cc579c72d6b..7a1c3b9e5acd 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sr-latn.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sr-latn.js @@ -1 +1 @@ -!function(a){const e=a["sr-latn"]=a["sr-latn"]||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"",Aquamarine:"Zelenkastoplava",Black:"Crna",Blue:"Plava",Cancel:"Odustani","Cannot upload file:":"Postavljanje fajla je neuspeÅ¡no:",Clear:"","Click to edit block":"","Dim grey":"Bledo siva","Drag to move":"","Dropdown toolbar":"Padajuća traka sa alatkama","Edit block":"Blok ureÄ‘ivaÄ","Editor block content toolbar":"Traka sa alatkama za blokiranje sadržaja ureÄ‘ivaÄa","Editor contextual toolbar":"Kontekstualna traka sa alatkama Editor","Editor editing area: %0":"Oblast za ureÄ‘ivanje urednika: %0","Editor toolbar":"UreÄ‘ivaÄ traka sa alatkama",Green:"Zelena",Grey:"Siva",HEX:"","Insert paragraph after block":"Уметните одломак поÑле блока","Insert paragraph before block":"Уметните одломак пре блока","Light blue":"Svetloplava","Light green":"Svetlo zelena","Light grey":"Svetlo siva",Next:"Sledeći","No results found":"","No searchable items":"",Orange:"Narandžasta","Press Enter to type after or press Shift + Enter to type before the widget":"Pritisnite Enter da kucate posle ili pritisnite Shift + Enter da kucate pre vidžeta",Previous:"Prethodni",Purple:"LjubiÄasta",Red:"Crvena",Redo:"Ponovo","Remove color":"Otkloni boju","Restore default":"Vrati podrazumevano","Rich Text Editor":"ProÅ¡ireni ureÄ‘ivaÄ teksta","Rich Text Editor. Editing area: %0":"UreÄ‘ivaÄ bogatijeg teksta. Prostor za ureÄ‘ivanje: %0",Save:"SaÄuvaj","Select all":"OznaÄi sve","Show more items":"Prikaži joÅ¡ stavki",Turquoise:"Tirkizna",Undo:"PovlaÄenje","Upload in progress":"Postavljanje u toku",White:"Bela","Widget toolbar":"Видгет трака Ñа алаткама",Yellow:"Žuta"}),e.getPluralForm=function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a["sr-latn"]=a["sr-latn"]||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Prihvati",Aquamarine:"Zelenkastoplava",Black:"Crna",Blue:"Plava",Cancel:"Odustani","Cannot upload file:":"Postavljanje fajla je neuspeÅ¡no:",Clear:"ObriÅ¡i","Click to edit block":"Kliknite da biste uredili blok","Dim grey":"Bledo siva","Drag to move":"Prevucite da biste premestili","Dropdown toolbar":"Padajuća traka sa alatkama","Edit block":"Blok ureÄ‘ivaÄ","Editor block content toolbar":"Traka sa alatkama za blokiranje sadržaja ureÄ‘ivaÄa","Editor contextual toolbar":"Kontekstualna traka sa alatkama Editor","Editor editing area: %0":"Oblast za ureÄ‘ivanje urednika: %0","Editor toolbar":"UreÄ‘ivaÄ traka sa alatkama",Green:"Zelena",Grey:"Siva",HEX:"HEX","Insert image with file manager":"","Insert paragraph after block":"Уметните одломак поÑле блока","Insert paragraph before block":"Уметните одломак пре блока","Insert with file manager":"","Light blue":"Svetloplava","Light green":"Svetlo zelena","Light grey":"Svetlo siva",Next:"Sledeći","No results found":"Nije pronaÄ‘en nijedan rezultat","No searchable items":"Nema stavki koje se mogu pretražiti",Orange:"Narandžasta","Press Enter to type after or press Shift + Enter to type before the widget":"Pritisnite Enter da kucate posle ili pritisnite Shift + Enter da kucate pre vidžeta",Previous:"Prethodni",Purple:"LjubiÄasta",Red:"Crvena",Redo:"Ponovo","Remove color":"Otkloni boju","Replace image with file manager":"","Replace with file manager":"","Restore default":"Vrati podrazumevano","Rich Text Editor":"ProÅ¡ireni ureÄ‘ivaÄ teksta","Rich Text Editor. Editing area: %0":"UreÄ‘ivaÄ bogatijeg teksta. Prostor za ureÄ‘ivanje: %0",Save:"SaÄuvaj","Select all":"OznaÄi sve","Show more items":"Prikaži joÅ¡ stavki",Turquoise:"Tirkizna",Undo:"PovlaÄenje","Upload in progress":"Postavljanje u toku",White:"Bela","Widget toolbar":"Видгет трака Ñа алаткама",Yellow:"Žuta"}),e.getPluralForm=function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sr.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sr.js index 067a7306e4f0..546ae4fb9611 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sr.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sr.js @@ -1 +1 @@ -!function(e){const t=e.sr=e.sr||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Prihvati",Aquamarine:"ЗеленкаÑтоплава",Black:"Црна",Blue:"Плава",Cancel:"ОдуÑтани","Cannot upload file:":"ПоÑтављање фајла је неуÑпешно:",Clear:"ObriÅ¡i","Click to edit block":"Kliknite da biste uredili blok","Dim grey":"Бледо Ñива","Drag to move":"Prevucite da biste premestili","Dropdown toolbar":"Падајућа трака Ñа алаткама","Edit block":"Блок уређивач","Editor block content toolbar":"Трака Ñа алаткама за блокирање Ñадржаја уређивача","Editor contextual toolbar":"КонтекÑтуална трака Ñа алаткама Едитор","Editor editing area: %0":"ОблаÑÑ‚ за уређивање уредника: %0","Editor toolbar":"Уређивач трака Ñа алаткама",Green:"Зелена",Grey:"Сива",HEX:"HEX","Insert paragraph after block":"Umetnite odlomak posle bloka","Insert paragraph before block":"Umetnite odlomak pre bloka","Light blue":"Светлоплава","Light green":"Светлозелена","Light grey":"Светло Ñива",Next:"Следећи","No results found":"Nije pronaÄ‘en nijedan rezultat","No searchable items":"Nema stavki koje se mogu pretražiti",Orange:"ÐараџаÑта","Press Enter to type after or press Shift + Enter to type before the widget":"ПритиÑните Ентер да куцате поÑле или притиÑните Схифт + Ентер да куцате пре виџета",Previous:"Претходни",Purple:"ЉубичаÑта",Red:"Црвена",Redo:"Поново","Remove color":"Отклони боју","Restore default":"Врати подразумевано","Rich Text Editor":"Проширен уређивач текÑта","Rich Text Editor. Editing area: %0":"Уређивач обогаћеног текÑта.ПроÑтор за уређивање: %0",Save:"Сачувај","Select all":"Означи Ñве.","Show more items":"Прикажи још Ñтавки",Turquoise:"Тиркизна",Undo:"Повлачење","Upload in progress":"ПоÑтављање у току",White:"Бела","Widget toolbar":"Widget traka sa alatkama",Yellow:"Жута"}),t.getPluralForm=function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.sr=e.sr||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Prihvati",Aquamarine:"ЗеленкаÑтоплава",Black:"Црна",Blue:"Плава",Cancel:"ОдуÑтани","Cannot upload file:":"ПоÑтављање фајла је неуÑпешно:",Clear:"ObriÅ¡i","Click to edit block":"Kliknite da biste uredili blok","Dim grey":"Бледо Ñива","Drag to move":"Prevucite da biste premestili","Dropdown toolbar":"Падајућа трака Ñа алаткама","Edit block":"Блок уређивач","Editor block content toolbar":"Трака Ñа алаткама за блокирање Ñадржаја уређивача","Editor contextual toolbar":"КонтекÑтуална трака Ñа алаткама Едитор","Editor editing area: %0":"ОблаÑÑ‚ за уређивање уредника: %0","Editor toolbar":"Уређивач трака Ñа алаткама",Green:"Зелена",Grey:"Сива",HEX:"HEX","Insert image with file manager":"Ubaci sliku pomoću menadžera datoteka","Insert paragraph after block":"Umetnite odlomak posle bloka","Insert paragraph before block":"Umetnite odlomak pre bloka","Insert with file manager":"Ubaci pomoću menadžera datoteka","Light blue":"Светлоплава","Light green":"Светлозелена","Light grey":"Светло Ñива",Next:"Следећи","No results found":"Nije pronaÄ‘en nijedan rezultat","No searchable items":"Nema stavki koje se mogu pretražiti",Orange:"ÐараџаÑта","Press Enter to type after or press Shift + Enter to type before the widget":"ПритиÑните Ентер да куцате поÑле или притиÑните Схифт + Ентер да куцате пре виџета",Previous:"Претходни",Purple:"ЉубичаÑта",Red:"Црвена",Redo:"Поново","Remove color":"Отклони боју","Replace image with file manager":"Zameni sliku pomoću menadžera datoteka","Replace with file manager":"Zameni pomoću menadžera datoteka","Restore default":"Врати подразумевано","Rich Text Editor":"Проширен уређивач текÑта","Rich Text Editor. Editing area: %0":"Уређивач обогаћеног текÑта.ПроÑтор за уређивање: %0",Save:"Сачувај","Select all":"Означи Ñве.","Show more items":"Прикажи још Ñтавки",Turquoise:"Тиркизна",Undo:"Повлачење","Upload in progress":"ПоÑтављање у току",White:"Бела","Widget toolbar":"Widget traka sa alatkama",Yellow:"Жута"}),t.getPluralForm=function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sv.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sv.js index 35720b58d5ec..7d6f83150a3e 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sv.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/sv.js @@ -1 +1 @@ -!function(e){const r=e.sv=e.sv||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 av %1",Accept:"Acceptera",Aquamarine:"Akvamarin",Black:"Svart",Blue:"BlÃ¥",Cancel:"Avbryt","Cannot upload file:":"Kan inte ladda upp fil:",Clear:"Rensa","Click to edit block":"Klicka för att redigera blocket","Dim grey":"DunkelgrÃ¥","Drag to move":"Dra för att flytta","Dropdown toolbar":"Rullgardinsverktygsfält","Edit block":"Redigera block","Editor block content toolbar":"Verktygsfält vid block av innehÃ¥ll","Editor contextual toolbar":"Ordbehandlarens kontextuella verktygsfält","Editor editing area: %0":"Ordbehandlares redigeringsomrÃ¥de: %0","Editor toolbar":"Redigeringsverktygsfält",Green:"Grön",Grey:"GrÃ¥",HEX:"HEX","Insert paragraph after block":"Infoga stycke efter block","Insert paragraph before block":"Infoga stycke före block","Light blue":"LjusblÃ¥","Light green":"Ljusgrön","Light grey":"LjusgrÃ¥",Next:"Nästa","No results found":"Inga resultat hittades","No searchable items":"Inga sökbara objekt",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Tryck pÃ¥ retur för att skriva efter eller pÃ¥ skift + retur för att skriva före widgeten.",Previous:"FöregÃ¥ende",Purple:"Lila",Red:"Röd",Redo:"Gör om","Remove color":"Ta bort färg","Restore default":"Ã…terställ standard","Rich Text Editor":"Rich Text-editor","Rich Text Editor. Editing area: %0":"RTF-redigerare. RedigeringsomrÃ¥de: %0",Save:"Spara","Select all":"Välj alla","Show more items":"Visa fler objekt",Turquoise:"Turkos",Undo:"Ã…ngra","Upload in progress":"Uppladdning pÃ¥gÃ¥r",White:"Vit","Widget toolbar":"Widgetverktygsfält",Yellow:"Gul"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const r=e.sv=e.sv||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 av %1",Accept:"Acceptera",Aquamarine:"Akvamarin",Black:"Svart",Blue:"BlÃ¥",Cancel:"Avbryt","Cannot upload file:":"Kan inte ladda upp fil:",Clear:"Rensa","Click to edit block":"Klicka för att redigera blocket","Dim grey":"DunkelgrÃ¥","Drag to move":"Dra för att flytta","Dropdown toolbar":"Rullgardinsverktygsfält","Edit block":"Redigera block","Editor block content toolbar":"Verktygsfält vid block av innehÃ¥ll","Editor contextual toolbar":"Ordbehandlarens kontextuella verktygsfält","Editor editing area: %0":"Ordbehandlares redigeringsomrÃ¥de: %0","Editor toolbar":"Redigeringsverktygsfält",Green:"Grön",Grey:"GrÃ¥",HEX:"HEX","Insert image with file manager":"Infoga bild genom filhanteraren","Insert paragraph after block":"Infoga stycke efter block","Insert paragraph before block":"Infoga stycke före block","Insert with file manager":"Infoga genom filhanteraren","Light blue":"LjusblÃ¥","Light green":"Ljusgrön","Light grey":"LjusgrÃ¥",Next:"Nästa","No results found":"Inga resultat hittades","No searchable items":"Inga sökbara objekt",Orange:"Orange","Press Enter to type after or press Shift + Enter to type before the widget":"Tryck pÃ¥ retur för att skriva efter eller pÃ¥ skift + retur för att skriva före widgeten.",Previous:"FöregÃ¥ende",Purple:"Lila",Red:"Röd",Redo:"Gör om","Remove color":"Ta bort färg","Replace image with file manager":"Ersätt bild genom filhanteraren","Replace with file manager":"Ersätt genom filhanteraren","Restore default":"Ã…terställ standard","Rich Text Editor":"Rich Text-editor","Rich Text Editor. Editing area: %0":"RTF-redigerare. RedigeringsomrÃ¥de: %0",Save:"Spara","Select all":"Välj alla","Show more items":"Visa fler objekt",Turquoise:"Turkos",Undo:"Ã…ngra","Upload in progress":"Uppladdning pÃ¥gÃ¥r",White:"Vit","Widget toolbar":"Widgetverktygsfält",Yellow:"Gul"}),r.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/th.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/th.js index bff40e876609..76de8f9d78b3 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/th.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/th.js @@ -1 +1 @@ -!function(e){const t=e.th=e.th||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 จาภ%1",Accept:"ยà¸à¸¡à¸£à¸±à¸š",Aquamarine:"พลà¸à¸¢à¸ªà¸µà¸Ÿà¹‰à¸²",Black:"สีดำ",Blue:"สีน้ำเงิน",Cancel:"ยà¸à¹€à¸¥à¸´à¸","Cannot upload file:":"ไม่สามารถà¸à¸±à¸›à¹‚หลดไฟล์ได้:",Clear:"ล้าง","Click to edit block":"คลิà¸à¹€à¸žà¸·à¹ˆà¸à¹à¸à¹‰à¹„ขบล็à¸à¸","Dim grey":"สีเทาเข้ม","Drag to move":"ลาà¸à¹€à¸žà¸·à¹ˆà¸à¸¢à¹‰à¸²à¸¢","Dropdown toolbar":"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¹à¸šà¸šà¹€à¸¥à¸·à¹ˆà¸à¸™à¸¥à¸‡","Edit block":"à¹à¸à¹‰à¹„ขบล็à¸à¸","Editor block content toolbar":"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¹à¸à¹‰à¹„ขบล็à¸à¸à¹€à¸™à¸·à¹‰à¸à¸«à¸²","Editor contextual toolbar":"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¹à¸à¹‰à¹„ขข้à¸à¸„วาม","Editor editing area: %0":"พื้นที่à¹à¸à¹‰à¹„ขขà¸à¸‡à¸•à¸±à¸§à¹à¸à¹‰à¹„ข: %0","Editor toolbar":"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¹à¸à¹‰à¹„ข",Green:"สีเขียว",Grey:"สีเทา",HEX:"HEX","Insert paragraph after block":"à¹à¸—รà¸à¸¢à¹ˆà¸à¸«à¸™à¹‰à¸²à¸«à¸¥à¸±à¸‡à¸šà¸¥à¹‡à¸à¸","Insert paragraph before block":"à¹à¸—รà¸à¸¢à¹ˆà¸à¸«à¸™à¹‰à¸²à¸à¹ˆà¸à¸™à¸šà¸¥à¹‡à¸à¸","Light blue":"สีฟ้า","Light green":"สีเขียวà¸à¹ˆà¸à¸™","Light grey":"สีเทาà¸à¹ˆà¸à¸™",Next:"ถัดไป","No results found":"ไม่พบผลลัพธ์","No searchable items":"ไม่มีรายà¸à¸²à¸£à¸—ี่สามารถค้นหาได้",Orange:"สีส้ม","Press Enter to type after or press Shift + Enter to type before the widget":"à¸à¸” Enter เพื่à¸à¸žà¸´à¸¡à¸žà¹Œà¸«à¸¥à¸±à¸‡à¸ˆà¸²à¸ หรืà¸à¸à¸” Shift + Enter เพื่à¸à¸žà¸´à¸¡à¸žà¹Œà¸à¹ˆà¸à¸™à¸«à¸™à¹‰à¸²à¸§à¸´à¸”เจ็ต",Previous:"à¸à¹ˆà¸à¸™à¸«à¸™à¹‰à¸²",Purple:"สีม่วง",Red:"สีà¹à¸”ง",Redo:"ทำซ้ำ","Remove color":"ลบสี","Restore default":"คืนค่าเริ่มต้น","Rich Text Editor":"โปรà¹à¸à¸£à¸¡à¹à¸à¹‰à¹„ข Rich Text","Rich Text Editor. Editing area: %0":"ตัวà¹à¸à¹‰à¹„ข Rich Text พื้นที่à¹à¸à¹‰à¹„ข: %0",Save:"บันทึà¸","Select all":"เลืà¸à¸à¸—ั้งหมด","Show more items":"à¹à¸ªà¸”งรายà¸à¸²à¸£à¹€à¸žà¸´à¹ˆà¸¡à¹€à¸•à¸´à¸¡",Turquoise:"สีเขียวขุ่น",Undo:"ย้à¸à¸™à¸à¸¥à¸±à¸š","Upload in progress":"à¸à¸³à¸¥à¸±à¸‡à¸”ำเนินà¸à¸²à¸£à¸à¸±à¸›à¹‚หลด",White:"สีขาว","Widget toolbar":"à¹à¸–มเครื่à¸à¸‡à¸¡à¸·à¸à¸§à¸´à¸”เจ็ต",Yellow:"สีเหลืà¸à¸‡"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.th=e.th||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 จาภ%1",Accept:"ยà¸à¸¡à¸£à¸±à¸š",Aquamarine:"พลà¸à¸¢à¸ªà¸µà¸Ÿà¹‰à¸²",Black:"สีดำ",Blue:"สีน้ำเงิน",Cancel:"ยà¸à¹€à¸¥à¸´à¸","Cannot upload file:":"ไม่สามารถà¸à¸±à¸›à¹‚หลดไฟล์ได้:",Clear:"ล้าง","Click to edit block":"คลิà¸à¹€à¸žà¸·à¹ˆà¸à¹à¸à¹‰à¹„ขบล็à¸à¸","Dim grey":"สีเทาเข้ม","Drag to move":"ลาà¸à¹€à¸žà¸·à¹ˆà¸à¸¢à¹‰à¸²à¸¢","Dropdown toolbar":"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¹à¸šà¸šà¹€à¸¥à¸·à¹ˆà¸à¸™à¸¥à¸‡","Edit block":"à¹à¸à¹‰à¹„ขบล็à¸à¸","Editor block content toolbar":"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¹à¸à¹‰à¹„ขบล็à¸à¸à¹€à¸™à¸·à¹‰à¸à¸«à¸²","Editor contextual toolbar":"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¹à¸à¹‰à¹„ขข้à¸à¸„วาม","Editor editing area: %0":"พื้นที่à¹à¸à¹‰à¹„ขขà¸à¸‡à¸•à¸±à¸§à¹à¸à¹‰à¹„ข: %0","Editor toolbar":"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¹à¸à¹‰à¹„ข",Green:"สีเขียว",Grey:"สีเทา",HEX:"HEX","Insert image with file manager":"à¹à¸—รà¸à¸ าพด้วยตัวจัดà¸à¸²à¸£à¹„ฟล์","Insert paragraph after block":"à¹à¸—รà¸à¸¢à¹ˆà¸à¸«à¸™à¹‰à¸²à¸«à¸¥à¸±à¸‡à¸šà¸¥à¹‡à¸à¸","Insert paragraph before block":"à¹à¸—รà¸à¸¢à¹ˆà¸à¸«à¸™à¹‰à¸²à¸à¹ˆà¸à¸™à¸šà¸¥à¹‡à¸à¸","Insert with file manager":"à¹à¸—รà¸à¸”้วยตัวจัดà¸à¸²à¸£à¹„ฟล์","Light blue":"สีฟ้า","Light green":"สีเขียวà¸à¹ˆà¸à¸™","Light grey":"สีเทาà¸à¹ˆà¸à¸™",Next:"ถัดไป","No results found":"ไม่พบผลลัพธ์","No searchable items":"ไม่มีรายà¸à¸²à¸£à¸—ี่สามารถค้นหาได้",Orange:"สีส้ม","Press Enter to type after or press Shift + Enter to type before the widget":"à¸à¸” Enter เพื่à¸à¸žà¸´à¸¡à¸žà¹Œà¸«à¸¥à¸±à¸‡à¸ˆà¸²à¸ หรืà¸à¸à¸” Shift + Enter เพื่à¸à¸žà¸´à¸¡à¸žà¹Œà¸à¹ˆà¸à¸™à¸«à¸™à¹‰à¸²à¸§à¸´à¸”เจ็ต",Previous:"à¸à¹ˆà¸à¸™à¸«à¸™à¹‰à¸²",Purple:"สีม่วง",Red:"สีà¹à¸”ง",Redo:"ทำซ้ำ","Remove color":"ลบสี","Replace image with file manager":"à¹à¸—นที่ภาพด้วยตัวจัดà¸à¸²à¸£à¹„ฟล์","Replace with file manager":"à¹à¸—นที่ด้วยตัวจัดà¸à¸²à¸£à¹„ฟล์","Restore default":"คืนค่าเริ่มต้น","Rich Text Editor":"โปรà¹à¸à¸£à¸¡à¹à¸à¹‰à¹„ข Rich Text","Rich Text Editor. Editing area: %0":"ตัวà¹à¸à¹‰à¹„ข Rich Text พื้นที่à¹à¸à¹‰à¹„ข: %0",Save:"บันทึà¸","Select all":"เลืà¸à¸à¸—ั้งหมด","Show more items":"à¹à¸ªà¸”งรายà¸à¸²à¸£à¹€à¸žà¸´à¹ˆà¸¡à¹€à¸•à¸´à¸¡",Turquoise:"สีเขียวขุ่น",Undo:"ย้à¸à¸™à¸à¸¥à¸±à¸š","Upload in progress":"à¸à¸³à¸¥à¸±à¸‡à¸”ำเนินà¸à¸²à¸£à¸à¸±à¸›à¹‚หลด",White:"สีขาว","Widget toolbar":"à¹à¸–มเครื่à¸à¸‡à¸¡à¸·à¸à¸§à¸´à¸”เจ็ต",Yellow:"สีเหลืà¸à¸‡"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tk.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tk.js index c01443ac5798..882108a74b23 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tk.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tk.js @@ -1 +1 @@ -!function(a){const e=a.tk=a.tk||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%1-iň %0-i",Accept:"",Aquamarine:"Akuamarin",Black:"Gara",Blue:"Gök",Cancel:"Ãatyr","Cannot upload file:":"Faýl ýükläp bolmady:",Clear:"","Click to edit block":"","Dim grey":"Goýy çal","Drag to move":"","Dropdown toolbar":"Açylýan gurallar paneli","Edit block":"Bloky redaktirläň","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"Redaktor gurallar paneli",Green:"ÃaÅŸyl",Grey:"Çal",HEX:"","Insert paragraph after block":"Blokdan soň abzas goýuň","Insert paragraph before block":"Blokdan öň abzas goýuň","Light blue":"Açyk gök","Light green":"Açyk ýaÅŸyl","Light grey":"Açyk çal",Next:"Indiki","No results found":"","No searchable items":"",Orange:"MämiÅŸi","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"Öňki",Purple:"Gyrmyzy",Red:"Gyzyl",Redo:"Öňe gaýtar","Remove color":"Reňki aýyryň","Restore default":"","Rich Text Editor":"Baý Tekst Redaktory","Rich Text Editor. Editing area: %0":"",Save:"Saklaň","Select all":"Ählisini saýla","Show more items":"Has köp zady görkeziň",Turquoise:"Turkuaz",Undo:"Yza gaýtar","Upload in progress":"Ãüklemek dowam edýär",White:"Ak","Widget toolbar":"Widget gurallar paneli",Yellow:"Sary"}),e.getPluralForm=function(a){return 1!=a}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.tk=e.tk||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%1-iň %0-i",Accept:"",Aquamarine:"Akuamarin",Black:"Gara",Blue:"Gök",Cancel:"Ãatyr","Cannot upload file:":"Faýl ýükläp bolmady:",Clear:"","Click to edit block":"","Dim grey":"Goýy çal","Drag to move":"","Dropdown toolbar":"Açylýan gurallar paneli","Edit block":"Bloky redaktirläň","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"Redaktor gurallar paneli",Green:"ÃaÅŸyl",Grey:"Çal",HEX:"","Insert image with file manager":"","Insert paragraph after block":"Blokdan soň abzas goýuň","Insert paragraph before block":"Blokdan öň abzas goýuň","Insert with file manager":"","Light blue":"Açyk gök","Light green":"Açyk ýaÅŸyl","Light grey":"Açyk çal",Next:"Indiki","No results found":"","No searchable items":"",Orange:"MämiÅŸi","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"Öňki",Purple:"Gyrmyzy",Red:"Gyzyl",Redo:"Öňe gaýtar","Remove color":"Reňki aýyryň","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Baý Tekst Redaktory","Rich Text Editor. Editing area: %0":"",Save:"Saklaň","Select all":"Ählisini saýla","Show more items":"Has köp zady görkeziň",Turquoise:"Turkuaz",Undo:"Yza gaýtar","Upload in progress":"Ãüklemek dowam edýär",White:"Ak","Widget toolbar":"Widget gurallar paneli",Yellow:"Sary"}),a.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tr.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tr.js index f99be9d7d2a3..b5b1c24602ac 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tr.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tr.js @@ -1 +1 @@ -!function(e){const a=e.tr=e.tr||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0/%1",Accept:"Kabul et",Aquamarine:"Su YeÅŸili",Black:"Siyah",Blue:"Mavi",Cancel:"Ä°ptal","Cannot upload file:":"Dosya yüklenemedi:",Clear:"Temizle","Click to edit block":"BloÄŸu düzenlemek için tıkla","Dim grey":"Koyu Gri","Drag to move":"Taşımak için sürükle","Dropdown toolbar":"Açılır araç çubuÄŸu","Edit block":"BloÄŸu Düzenle","Editor block content toolbar":"Düzenleyici engelleme içerik araç çubuÄŸu","Editor contextual toolbar":"Düzenleyici içeriksel araç çubuÄŸu","Editor editing area: %0":"Editör düzenleme alanı: %0","Editor toolbar":"Düzenleme araç çubuÄŸu",Green:"YeÅŸil",Grey:"Gri",HEX:"ONALTILIK","Insert paragraph after block":"Bloktan sonra paragraf ekle","Insert paragraph before block":"Bloktan önce paragraf ekle","Light blue":"Açık Mavi","Light green":"Açık YeÅŸil","Light grey":"Açık Gri",Next:"Sonraki","No results found":"Sonuç bulunamadı","No searchable items":"Aranabilir öge yok",Orange:"Turuncu","Press Enter to type after or press Shift + Enter to type before the widget":"Görsel bileÅŸenden sonra yazmak için Enter'a basın ya da görsel bileÅŸenden önce yazmak için Shift + Enter'a basın",Previous:"Önceki",Purple:"Mor",Red:"Kırmızı",Redo:"Tekrar yap","Remove color":"Rengi Sil","Restore default":"Varsayılanı geri yükle","Rich Text Editor":"Zengin İçerik Editörü","Rich Text Editor. Editing area: %0":"Zengin Metin Editörü.Düzenleme alanı: %0",Save:"Kaydet","Select all":"Hepsini seç","Show more items":"Daha fazla öğe göster",Turquoise:"Turkuaz",Undo:"Geri al","Upload in progress":"Yükleme iÅŸlemi devam ediyor",White:"Beyaz","Widget toolbar":"BileÅŸen araç çubuÄŸu",Yellow:"Sarı"}),a.getPluralForm=function(e){return e>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.tr=e.tr||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"%0/%1",Accept:"Kabul et",Aquamarine:"Su YeÅŸili",Black:"Siyah",Blue:"Mavi",Cancel:"Ä°ptal","Cannot upload file:":"Dosya yüklenemedi:",Clear:"Temizle","Click to edit block":"BloÄŸu düzenlemek için tıkla","Dim grey":"Koyu Gri","Drag to move":"Taşımak için sürükle","Dropdown toolbar":"Açılır araç çubuÄŸu","Edit block":"BloÄŸu Düzenle","Editor block content toolbar":"Düzenleyici engelleme içerik araç çubuÄŸu","Editor contextual toolbar":"Düzenleyici içeriksel araç çubuÄŸu","Editor editing area: %0":"Editör düzenleme alanı: %0","Editor toolbar":"Düzenleme araç çubuÄŸu",Green:"YeÅŸil",Grey:"Gri",HEX:"ONALTILIK","Insert image with file manager":"Dosya yöneticisiyle görüntü ekleyin","Insert paragraph after block":"Bloktan sonra paragraf ekle","Insert paragraph before block":"Bloktan önce paragraf ekle","Insert with file manager":"Dosya yöneticisiyle ekle","Light blue":"Açık Mavi","Light green":"Açık YeÅŸil","Light grey":"Açık Gri",Next:"Sonraki","No results found":"Sonuç bulunamadı","No searchable items":"Aranabilir öge yok",Orange:"Turuncu","Press Enter to type after or press Shift + Enter to type before the widget":"Görsel bileÅŸenden sonra yazmak için Enter'a basın ya da görsel bileÅŸenden önce yazmak için Shift + Enter'a basın",Previous:"Önceki",Purple:"Mor",Red:"Kırmızı",Redo:"Tekrar yap","Remove color":"Rengi Sil","Replace image with file manager":"Resmi dosya yöneticisiyle deÄŸiÅŸtir","Replace with file manager":"Dosya yöneticisiyle deÄŸiÅŸtirin","Restore default":"Varsayılanı geri yükle","Rich Text Editor":"Zengin İçerik Editörü","Rich Text Editor. Editing area: %0":"Zengin Metin Editörü.Düzenleme alanı: %0",Save:"Kaydet","Select all":"Hepsini seç","Show more items":"Daha fazla öğe göster",Turquoise:"Turkuaz",Undo:"Geri al","Upload in progress":"Yükleme iÅŸlemi devam ediyor",White:"Beyaz","Widget toolbar":"BileÅŸen araç çubuÄŸu",Yellow:"Sarı"}),i.getPluralForm=function(e){return e>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tt.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tt.js index c3cb9f677028..3c70e06b24f5 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tt.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/tt.js @@ -1 +1 @@ -!function(o){const e=o.tt=o.tt||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"Ðквамарин",Black:"Кара",Blue:"Зәңгәр",Cancel:"Баш тарт","Cannot upload file:":"",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"Яшел",Grey:"Соры",HEX:"","Light blue":"Ðчык зәңгәр","Light green":"Ðчык Ñшел","Light grey":"Ðчык Ñоры",Next:"","No results found":"","No searchable items":"",Orange:"Кызгылт",Previous:"",Purple:"Шәмәхә",Red:"Кызыл",Redo:"Кабатла","Remove color":"","Restore default":"","Rich Text Editor":"","Rich Text Editor. Editing area: %0":"",Save:"Сакла","Show more items":"",Turquoise:"Фервоз",Undo:"",White:"Ðк",Yellow:"Сары"}),e.getPluralForm=function(o){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.tt=e.tt||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"Ðквамарин",Black:"Кара",Blue:"Зәңгәр",Cancel:"Баш тарт","Cannot upload file:":"",Clear:"","Click to edit block":"","Dim grey":"","Drag to move":"","Dropdown toolbar":"","Edit block":"","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"",Green:"Яшел",Grey:"Соры",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"Ðчык зәңгәр","Light green":"Ðчык Ñшел","Light grey":"Ðчык Ñоры",Next:"","No results found":"","No searchable items":"",Orange:"Кызгылт",Previous:"",Purple:"Шәмәхә",Red:"Кызыл",Redo:"Кабатла","Remove color":"","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"","Rich Text Editor. Editing area: %0":"",Save:"Сакла","Show more items":"",Turquoise:"Фервоз",Undo:"",White:"Ðк",Yellow:"Сары"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ug.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ug.js index 25870a3796ef..6c1d843bad9f 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ug.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ug.js @@ -1 +1 @@ -!function(o){const e=o.ug=o.ug||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"قوشۇل",Aquamarine:"دÛÚىز كۆكى",Black:"قارا",Blue:"ÙƒÛ†Ùƒ",Cancel:"ۋاز ÙƒÛ•Ú†","Cannot upload file:":"يۈكلەشكە بولمايدىغان ھۆججەت:",Clear:"تازىلا","Click to edit block":"Ú†Ûكىلسە بۆلەك تەھرىرلىنىدۇ","Dim grey":"سۇس كۈلرەÚ","Drag to move":"يۆتكەشتە سۆرىلىدۇ","Dropdown toolbar":"سىرىلما قورال بالداق","Edit block":"بۆلەك تەھرىر","Editor block content toolbar":"تەھرىرلىگۈچ بۆلىكى مەزمۇن قورال بالداق","Editor contextual toolbar":"تەھرىرلىگۈچ مەزمۇن قورال بالداق","Editor editing area: %0":"تەھرىرلىگۈچ تەھرىرلەش رايونى: %0","Editor toolbar":"تەھرىرلىگۈچ قورال بالداق",Green:"ÙŠÛشىل",Grey:"كۈلرەÚ",HEX:"","Light blue":"ئوچۇق ÙƒÛ†Ùƒ","Light green":"ئوچۇق ÙŠÛشىل","Light grey":"ئوچۇق كۈلرەÚ",Next:"ÙƒÛيىنكى","No results found":"Ú¾Ûچقانداق نەتىجە تÛپىلمىدى","No searchable items":"ئىزدىگۈدەك تۈر يوق",Orange:"قىزغۇچ سÛرىق",Previous:"ئالدىنقى",Purple:"بىنەپشە",Red:"قىزىل",Redo:"تەكرارلاش","Remove color":"رەÚنى چىقىرىۋەت","Restore default":"ÙƒÛ†Úۈلدىكىگە قايتۇر","Rich Text Editor":"تÛكىست تەھرىرلىگۈچ","Rich Text Editor. Editing area: %0":"مول تÛكىست تەھرىرلىگۈچ. تەھرىرلەش رايونى: %0",Save:"ساقلا","Select all":"ھەممىنى تاللا","Show more items":"تÛخىمۇ ÙƒÛ†Ù¾ تۈرنى كۆرسەت",Turquoise:"",Undo:"ÙŠÛنىۋÛلىش","Upload in progress":"يۈكلىنىۋاتىدۇ",White:"ئاق",Yellow:"سÛرىق"}),e.getPluralForm=function(o){return 1!=o}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const o=e.ug=e.ug||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 / %1",Accept:"قوشۇل",Aquamarine:"دÛÚىز كۆكى",Black:"قارا",Blue:"ÙƒÛ†Ùƒ",Cancel:"ۋاز ÙƒÛ•Ú†","Cannot upload file:":"يۈكلەشكە بولمايدىغان ھۆججەت:",Clear:"تازىلا","Click to edit block":"Ú†Ûكىلسە بۆلەك تەھرىرلىنىدۇ","Dim grey":"سۇس كۈلرەÚ","Drag to move":"يۆتكەشتە سۆرىلىدۇ","Dropdown toolbar":"سىرىلما قورال بالداق","Edit block":"بۆلەك تەھرىر","Editor block content toolbar":"تەھرىرلىگۈچ بۆلىكى مەزمۇن قورال بالداق","Editor contextual toolbar":"تەھرىرلىگۈچ مەزمۇن قورال بالداق","Editor editing area: %0":"تەھرىرلىگۈچ تەھرىرلەش رايونى: %0","Editor toolbar":"تەھرىرلىگۈچ قورال بالداق",Green:"ÙŠÛشىل",Grey:"كۈلرەÚ",HEX:"","Insert image with file manager":"","Insert with file manager":"","Light blue":"ئوچۇق ÙƒÛ†Ùƒ","Light green":"ئوچۇق ÙŠÛشىل","Light grey":"ئوچۇق كۈلرەÚ",Next:"ÙƒÛيىنكى","No results found":"Ú¾Ûچقانداق نەتىجە تÛپىلمىدى","No searchable items":"ئىزدىگۈدەك تۈر يوق",Orange:"قىزغۇچ سÛرىق",Previous:"ئالدىنقى",Purple:"بىنەپشە",Red:"قىزىل",Redo:"تەكرارلاش","Remove color":"رەÚنى چىقىرىۋەت","Replace image with file manager":"","Replace with file manager":"","Restore default":"ÙƒÛ†Úۈلدىكىگە قايتۇر","Rich Text Editor":"تÛكىست تەھرىرلىگۈچ","Rich Text Editor. Editing area: %0":"مول تÛكىست تەھرىرلىگۈچ. تەھرىرلەش رايونى: %0",Save:"ساقلا","Select all":"ھەممىنى تاللا","Show more items":"تÛخىمۇ ÙƒÛ†Ù¾ تۈرنى كۆرسەت",Turquoise:"",Undo:"ÙŠÛنىۋÛلىش","Upload in progress":"يۈكلىنىۋاتىدۇ",White:"ئاق",Yellow:"سÛرىق"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/uk.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/uk.js index ef9e4ac91d6c..d4c5b41dfdd8 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/uk.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/uk.js @@ -1 +1 @@ -!function(e){const t=e.uk=e.uk||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 із %1",Accept:"ПрийнÑти",Aquamarine:"Ðквамариновий",Black:"Чорний",Blue:"Синій",Cancel:"Відміна","Cannot upload file:":"Ðеможливо завантажити файл:",Clear:"ОчиÑтити","Click to edit block":"Клацніть, щоб редагувати блок","Dim grey":"Темно-Ñірий","Drag to move":"ПотÑгніть, щоб переміÑтити","Dropdown toolbar":"Випадаюча панель інÑтрументів","Edit block":"Редагувати блок","Editor block content toolbar":"Панель інÑтрументів вміÑту блоку редактора","Editor contextual toolbar":"КонтекÑтна панель інÑтрументів редактора","Editor editing area: %0":"ОблаÑÑ‚ÑŒ Ñ€ÐµÐ´Ð°Ð³ÑƒÐ²Ð°Ð½Ð½Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¾Ñ€Ð°: %0","Editor toolbar":"Панель інÑтрументів редактора",Green:"Зелений",Grey:"Сірий",HEX:"ШіÑтнадцÑтковий","Insert paragraph after block":"Додати абзац піÑÐ»Ñ Ð±Ð»Ð¾ÐºÐ°","Insert paragraph before block":"Додати абзац перед блоком","Light blue":"Світло-Ñиній","Light green":"Світло-зелений","Light grey":"Світло-Ñірий",Next:"ÐаÑтупний","No results found":"Ðічого не знайдено","No searchable items":"Ðемає шуканих об'єктів",Orange:"Помаранчевий","Press Enter to type after or press Shift + Enter to type before the widget":"ÐатиÑніть Enter, щоб друкувати піÑÐ»Ñ Ð°Ð±Ð¾ натиÑніть Shift + Enter, щоб друкувати перед віджетом",Previous:"Попередній",Purple:"Фіолетовий",Red:"Червоний",Redo:"Повтор","Remove color":"Видалити колір","Restore default":"Відновити за замовчуваннÑм","Rich Text Editor":"Розширений текÑтовий редактор","Rich Text Editor. Editing area: %0":"Редактор Rich Text. ОблаÑÑ‚ÑŒ редагуваннÑ: %0",Save:"Зберегти","Select all":"Вибрати вÑе","Show more items":"Показати більше",Turquoise:"Бірюзовий",Undo:"Відміна","Upload in progress":"ВиконуєтьÑÑ Ð·Ð°Ð²Ð°Ð½Ñ‚Ð°Ð¶ÐµÐ½Ð½Ñ",White:"Білий","Widget toolbar":"Панель інÑтрументів віджетів",Yellow:"Жовтий"}),t.getPluralForm=function(e){return e%1==0&&e%10==1&&e%100!=11?0:e%1==0&&e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:e%1==0&&(e%10==0||e%10>=5&&e%10<=9||e%100>=11&&e%100<=14)?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.uk=e.uk||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 із %1",Accept:"ПрийнÑти",Aquamarine:"Ðквамариновий",Black:"Чорний",Blue:"Синій",Cancel:"Відміна","Cannot upload file:":"Ðеможливо завантажити файл:",Clear:"ОчиÑтити","Click to edit block":"Клацніть, щоб редагувати блок","Dim grey":"Темно-Ñірий","Drag to move":"ПотÑгніть, щоб переміÑтити","Dropdown toolbar":"Випадаюча панель інÑтрументів","Edit block":"Редагувати блок","Editor block content toolbar":"Панель інÑтрументів вміÑту блоку редактора","Editor contextual toolbar":"КонтекÑтна панель інÑтрументів редактора","Editor editing area: %0":"ОблаÑÑ‚ÑŒ Ñ€ÐµÐ´Ð°Ð³ÑƒÐ²Ð°Ð½Ð½Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¾Ñ€Ð°: %0","Editor toolbar":"Панель інÑтрументів редактора",Green:"Зелений",Grey:"Сірий",HEX:"ШіÑтнадцÑтковий","Insert image with file manager":"Ð’Ñтавити Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð·Ð° допомогою файлового менеджера","Insert paragraph after block":"Додати абзац піÑÐ»Ñ Ð±Ð»Ð¾ÐºÐ°","Insert paragraph before block":"Додати абзац перед блоком","Insert with file manager":"Ð’Ñтавити за допомогою файлового менеджера","Light blue":"Світло-Ñиній","Light green":"Світло-зелений","Light grey":"Світло-Ñірий",Next:"ÐаÑтупний","No results found":"Ðічого не знайдено","No searchable items":"Ðемає шуканих об'єктів",Orange:"Помаранчевий","Press Enter to type after or press Shift + Enter to type before the widget":"ÐатиÑніть Enter, щоб друкувати піÑÐ»Ñ Ð°Ð±Ð¾ натиÑніть Shift + Enter, щоб друкувати перед віджетом",Previous:"Попередній",Purple:"Фіолетовий",Red:"Червоний",Redo:"Повтор","Remove color":"Видалити колір","Replace image with file manager":"Замінити Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð·Ð° допомогою файлового менеджера","Replace with file manager":"Замінити за допомогою файлового менеджера","Restore default":"Відновити за замовчуваннÑм","Rich Text Editor":"Розширений текÑтовий редактор","Rich Text Editor. Editing area: %0":"Редактор Rich Text. ОблаÑÑ‚ÑŒ редагуваннÑ: %0",Save:"Зберегти","Select all":"Вибрати вÑе","Show more items":"Показати більше",Turquoise:"Бірюзовий",Undo:"Відміна","Upload in progress":"ВиконуєтьÑÑ Ð·Ð°Ð²Ð°Ð½Ñ‚Ð°Ð¶ÐµÐ½Ð½Ñ",White:"Білий","Widget toolbar":"Панель інÑтрументів віджетів",Yellow:"Жовтий"}),t.getPluralForm=function(e){return e%1==0&&e%10==1&&e%100!=11?0:e%1==0&&e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:e%1==0&&(e%10==0||e%10>=5&&e%10<=9||e%100>=11&&e%100<=14)?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ur.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ur.js index 1714fab233ad..e11f786a4e45 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ur.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/ur.js @@ -1 +1 @@ -!function(e){const o=e.ur=e.ur||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"0% میں سے 1%",Accept:"",Aquamarine:"نیلگوں بلور",Black:"سیاÛ",Blue:"نیلا",Cancel:"منسوخ","Cannot upload file:":"Ùائل اپلوڈ Ù†Ûیں ÛÙˆ سکی:",Clear:"","Click to edit block":"","Dim grey":"پھیکا سرمئی","Drag to move":"","Dropdown toolbar":"Ø¢Ù„Û Ø¬Ø§Øª برائے ÙÛرست ","Edit block":"Ø®Ø§Ù†Û Ú©ÛŒ تدوین","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"Ø±Ù‚Ø¨Û Ø®Ø§Ù†Û‚ ترمیم: 0%","Editor toolbar":"ایڈیٹر Ø¢Ù„Û Ø¬Ø§Øª",Green:"سبز",Grey:"سرمئی",HEX:"","Insert paragraph after block":"پیراگرا٠کے بعد Ú©ÙˆÚˆ Ø®Ø§Ù†Û Ù†ØµØ¨ کریں","Insert paragraph before block":"پیراگرا٠سے Ù¾ÛÙ„Û’ Ú©ÙˆÚˆ Ø®Ø§Ù†Û Ù†ØµØ¨ کریں","Light blue":"Ûلکا نیلا","Light green":"Ûلکا سبز","Light grey":"Ûلکا سرمئی",Next:"اگلا","No results found":"","No searchable items":"",Orange:"نارنجی","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"پچھلا",Purple:"ارغوانی",Red:"سرخ",Redo:"پھر سے کریں","Remove color":"رنگ Øذ٠کریں","Restore default":"Ø·Û’ Ø´Ø¯Û Ø¨Øال","Rich Text Editor":"خانۂ ترمیم","Rich Text Editor. Editing area: %0":"خانۂ ترمیم۔ علاقۂ ترمیم 0%",Save:"Ù…ØÙوظ","Select all":"سب منتخب کریں","Show more items":"مزید مواد Ú©ÛŒ نمائش کریں",Turquoise:"Ùیروزی",Undo:"رد ترمیم","Upload in progress":"آپلوڈ جاری ÛÛ’",White:"سÙید","Widget toolbar":"Ø¢Ù„Û Ø¬Ø§Øª برائے وجٹ",Yellow:"پیلا"}),o.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.ur=e.ur||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"0% میں سے 1%",Accept:"",Aquamarine:"نیلگوں بلور",Black:"سیاÛ",Blue:"نیلا",Cancel:"منسوخ","Cannot upload file:":"Ùائل اپلوڈ Ù†Ûیں ÛÙˆ سکی:",Clear:"","Click to edit block":"","Dim grey":"پھیکا سرمئی","Drag to move":"","Dropdown toolbar":"Ø¢Ù„Û Ø¬Ø§Øª برائے ÙÛرست ","Edit block":"Ø®Ø§Ù†Û Ú©ÛŒ تدوین","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"Ø±Ù‚Ø¨Û Ø®Ø§Ù†Û‚ ترمیم: 0%","Editor toolbar":"ایڈیٹر Ø¢Ù„Û Ø¬Ø§Øª",Green:"سبز",Grey:"سرمئی",HEX:"","Insert image with file manager":"","Insert paragraph after block":"پیراگرا٠کے بعد Ú©ÙˆÚˆ Ø®Ø§Ù†Û Ù†ØµØ¨ کریں","Insert paragraph before block":"پیراگرا٠سے Ù¾ÛÙ„Û’ Ú©ÙˆÚˆ Ø®Ø§Ù†Û Ù†ØµØ¨ کریں","Insert with file manager":"","Light blue":"Ûلکا نیلا","Light green":"Ûلکا سبز","Light grey":"Ûلکا سرمئی",Next:"اگلا","No results found":"","No searchable items":"",Orange:"نارنجی","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"پچھلا",Purple:"ارغوانی",Red:"سرخ",Redo:"پھر سے کریں","Remove color":"رنگ Øذ٠کریں","Replace image with file manager":"","Replace with file manager":"","Restore default":"Ø·Û’ Ø´Ø¯Û Ø¨Øال","Rich Text Editor":"خانۂ ترمیم","Rich Text Editor. Editing area: %0":"خانۂ ترمیم۔ علاقۂ ترمیم 0%",Save:"Ù…ØÙوظ","Select all":"سب منتخب کریں","Show more items":"مزید مواد Ú©ÛŒ نمائش کریں",Turquoise:"Ùیروزی",Undo:"رد ترمیم","Upload in progress":"آپلوڈ جاری ÛÛ’",White:"سÙید","Widget toolbar":"Ø¢Ù„Û Ø¬Ø§Øª برائے وجٹ",Yellow:"پیلا"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/uz.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/uz.js index b357847b8b57..fca2d0c3f655 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/uz.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/uz.js @@ -1 +1 @@ -!function(a){const r=a.uz=a.uz||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"Akuamarin",Black:"Qora",Blue:"Ko'k",Cancel:"Bekor qilish","Cannot upload file:":"",Clear:"O'chirish","Click to edit block":"","Dim grey":"To'q kulrang","Drag to move":"","Dropdown toolbar":"Ochiladigan asboblar paneli","Edit block":"Blokni tahrirlash","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"Tahrirlovchi asboblar paneli",Green:"Yashil",Grey:"Kulrang",HEX:"","Insert paragraph after block":"Ð’blokdan keyin paragraf qo'yish","Insert paragraph before block":"Blokdan oldin paragrafni kiritish","Light blue":"Moviy","Light green":"Och yashil","Light grey":"Och kulrang",Next:"Keyingi","No results found":"","No searchable items":"",Orange:"To'q sariq","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"Oldingi",Purple:"Siyohrang",Red:"Qizil",Redo:"Takrorlash","Remove color":"Rangni olib tashlash","Restore default":"","Rich Text Editor":"Tahrirlovchi","Rich Text Editor. Editing area: %0":"",Save:"Saqlash","Select all":"Hammasini tanlash","Show more items":"",Turquoise:"Turkuaz",Undo:"Bekor qilish","Upload in progress":"Yuklanmoqda",White:"Oq","Widget toolbar":"Vidjet asboblar paneli",Yellow:"Sariq"}),r.getPluralForm=function(a){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.uz=a.uz||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"",Accept:"",Aquamarine:"Akuamarin",Black:"Qora",Blue:"Ko'k",Cancel:"Bekor qilish","Cannot upload file:":"",Clear:"O'chirish","Click to edit block":"","Dim grey":"To'q kulrang","Drag to move":"","Dropdown toolbar":"Ochiladigan asboblar paneli","Edit block":"Blokni tahrirlash","Editor block content toolbar":"","Editor contextual toolbar":"","Editor editing area: %0":"","Editor toolbar":"Tahrirlovchi asboblar paneli",Green:"Yashil",Grey:"Kulrang",HEX:"","Insert image with file manager":"","Insert paragraph after block":"Ð’blokdan keyin paragraf qo'yish","Insert paragraph before block":"Blokdan oldin paragrafni kiritish","Insert with file manager":"","Light blue":"Moviy","Light green":"Och yashil","Light grey":"Och kulrang",Next:"Keyingi","No results found":"","No searchable items":"",Orange:"To'q sariq","Press Enter to type after or press Shift + Enter to type before the widget":"",Previous:"Oldingi",Purple:"Siyohrang",Red:"Qizil",Redo:"Takrorlash","Remove color":"Rangni olib tashlash","Replace image with file manager":"","Replace with file manager":"","Restore default":"","Rich Text Editor":"Tahrirlovchi","Rich Text Editor. Editing area: %0":"",Save:"Saqlash","Select all":"Hammasini tanlash","Show more items":"",Turquoise:"Turkuaz",Undo:"Bekor qilish","Upload in progress":"Yuklanmoqda",White:"Oq","Widget toolbar":"Vidjet asboblar paneli",Yellow:"Sariq"}),e.getPluralForm=function(a){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/vi.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/vi.js index 5314715677bd..86ff52448610 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/vi.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/vi.js @@ -1 +1 @@ -!function(n){const t=n.vi=n.vi||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 đến %1",Accept:"Chấp nháºn",Aquamarine:"Xanh ngá»c biển",Black:"Äen",Blue:"Xanh biển",Cancel:"Hủy","Cannot upload file:":"Không thể tải file:",Clear:"Xóa","Click to edit block":"Nhấp để sá»a khối","Dim grey":"Xám má»","Drag to move":"Kéo để di chuyển","Dropdown toolbar":"Thanh công cụ danh mục","Edit block":"Chỉnh sá»a Ä‘oạn","Editor block content toolbar":"Thanh công cụ chỉnh sá»a khối ná»™i dung","Editor contextual toolbar":"Thanh công cụ chỉnh sá»a theo ngữ cảnh","Editor editing area: %0":"Vùng chỉnh sá»a của trình chỉnh sá»a: %0","Editor toolbar":"Thanh công cụ biên táºp",Green:"Xanh lá",Grey:"Xám",HEX:"HEX","Insert paragraph after block":"Chèn Ä‘oạn sau khối","Insert paragraph before block":"Chèn Ä‘oạn trÆ°á»›c khối","Light blue":"Xanh dÆ°Æ¡ng","Light green":"Xanh lá nhạt","Light grey":"Xám nhạt",Next:"Tiếp theo","No results found":"Không tìm thấy kết quả","No searchable items":"Không có mục nà o tìm kiếm được",Orange:"Cam","Press Enter to type after or press Shift + Enter to type before the widget":"Nhấn Enter để nháºp và o sau hoặc nhấn Shift + Enter để nháºp và o trÆ°á»›c tiện Ãch",Previous:"Quay lại",Purple:"TÃm",Red:"Äá»",Redo:"Tiếp tục","Remove color":"Xóa mà u","Restore default":"Khôi phục giá trị mặc định","Rich Text Editor":"Trình soạn thảo văn bản","Rich Text Editor. Editing area: %0":"Trình chỉnh sá»a Văn bản dạng RTF. Vùng chỉnh sá»a: %0",Save:"LÆ°u","Select all":"Chá»n tất cả","Show more items":"Xem thêm",Turquoise:"Xanh ngá»c bÃch",Undo:"Hoà n tác","Upload in progress":"Äang tải lên",White:"Trắng","Widget toolbar":"Thanh công cụ tiện Ãch",Yellow:"Và ng"}),t.getPluralForm=function(n){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(n){const t=n.vi=n.vi||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 đến %1",Accept:"Chấp nháºn",Aquamarine:"Xanh ngá»c biển",Black:"Äen",Blue:"Xanh biển",Cancel:"Hủy","Cannot upload file:":"Không thể tải file:",Clear:"Xóa","Click to edit block":"Nhấp để sá»a khối","Dim grey":"Xám má»","Drag to move":"Kéo để di chuyển","Dropdown toolbar":"Thanh công cụ danh mục","Edit block":"Chỉnh sá»a Ä‘oạn","Editor block content toolbar":"Thanh công cụ chỉnh sá»a khối ná»™i dung","Editor contextual toolbar":"Thanh công cụ chỉnh sá»a theo ngữ cảnh","Editor editing area: %0":"Vùng chỉnh sá»a của trình chỉnh sá»a: %0","Editor toolbar":"Thanh công cụ biên táºp",Green:"Xanh lá",Grey:"Xám",HEX:"HEX","Insert image with file manager":"Chèn hình ảnh bằng trình quản lý táºp tin","Insert paragraph after block":"Chèn Ä‘oạn sau khối","Insert paragraph before block":"Chèn Ä‘oạn trÆ°á»›c khối","Insert with file manager":"Chèn bằng trình quản lý táºp tin","Light blue":"Xanh dÆ°Æ¡ng","Light green":"Xanh lá nhạt","Light grey":"Xám nhạt",Next:"Tiếp theo","No results found":"Không tìm thấy kết quả","No searchable items":"Không có mục nà o tìm kiếm được",Orange:"Cam","Press Enter to type after or press Shift + Enter to type before the widget":"Nhấn Enter để nháºp và o sau hoặc nhấn Shift + Enter để nháºp và o trÆ°á»›c tiện Ãch",Previous:"Quay lại",Purple:"TÃm",Red:"Äá»",Redo:"Tiếp tục","Remove color":"Xóa mà u","Replace image with file manager":"Thay thế hình ảnh bằng trình quản lý táºp tin","Replace with file manager":"Thay thế bằng trình quản lý táºp tin","Restore default":"Khôi phục giá trị mặc định","Rich Text Editor":"Trình soạn thảo văn bản","Rich Text Editor. Editing area: %0":"Trình chỉnh sá»a Văn bản dạng RTF. Vùng chỉnh sá»a: %0",Save:"LÆ°u","Select all":"Chá»n tất cả","Show more items":"Xem thêm",Turquoise:"Xanh ngá»c bÃch",Undo:"Hoà n tác","Upload in progress":"Äang tải lên",White:"Trắng","Widget toolbar":"Thanh công cụ tiện Ãch",Yellow:"Và ng"}),t.getPluralForm=function(n){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/zh-cn.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/zh-cn.js index 434b493e8374..c7b218611ed6 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/zh-cn.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/zh-cn.js @@ -1 +1 @@ -!function(e){const t=e["zh-cn"]=e["zh-cn"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"第 %0 æ¥ï¼Œå…± %1 æ¥",Accept:"接å—",Aquamarine:"æµ·è“色",Black:"黑色",Blue:"è“色",Cancel:"å–消","Cannot upload file:":"æ— æ³•ä¸Šä¼ çš„æ–‡ä»¶ï¼š",Clear:"清除","Click to edit block":"å•å‡»ä»¥ç¼–辑å—","Dim grey":"æš—ç°è‰²","Drag to move":"拖拽以移动","Dropdown toolbar":"下拉工具æ ","Edit block":"编辑框","Editor block content toolbar":"编辑器å—内容工具æ ","Editor contextual toolbar":"编辑器上下文工具æ ","Editor editing area: %0":"编辑器编辑区域:%0","Editor toolbar":"编辑器工具æ ",Green:"绿色",Grey:"ç°è‰²",HEX:"åå…进制","Insert paragraph after block":"在åŽé¢æ’入段è½","Insert paragraph before block":"在å‰é¢æ’入段è½","Light blue":"æµ…è“色","Light green":"浅绿色","Light grey":"æµ…ç°è‰²",Next:"下一æ¥","No results found":"未找到结果","No searchable items":"没有å¯æœç´¢çš„项目",Orange:"橙色","Press Enter to type after or press Shift + Enter to type before the widget":"按下“Enterâ€é”®ï¼Œåœ¨å°ç»„件åŽè¾“入;按下“Shift+Enterâ€é”®ï¼Œåœ¨å°ç»„件å‰è¾“å…¥",Previous:"上一æ¥",Purple:"紫色",Red:"红色",Redo:"é‡åš","Remove color":"移除颜色","Restore default":"æ¢å¤é»˜è®¤","Rich Text Editor":"富文本编辑器","Rich Text Editor. Editing area: %0":"富文本编辑器。编辑区域:%0",Save:"ä¿å˜","Select all":"全选","Show more items":"显示更多",Turquoise:"é’色",Undo:"撤销","Upload in progress":"æ£åœ¨ä¸Šä¼ ",White:"白色","Widget toolbar":"å°éƒ¨ä»¶å·¥å…·æ ",Yellow:"黄色"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e["zh-cn"]=e["zh-cn"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"第 %0 æ¥ï¼Œå…± %1 æ¥",Accept:"接å—",Aquamarine:"æµ·è“色",Black:"黑色",Blue:"è“色",Cancel:"å–消","Cannot upload file:":"æ— æ³•ä¸Šä¼ çš„æ–‡ä»¶ï¼š",Clear:"清除","Click to edit block":"å•å‡»ä»¥ç¼–辑å—","Dim grey":"æš—ç°è‰²","Drag to move":"拖拽以移动","Dropdown toolbar":"下拉工具æ ","Edit block":"编辑框","Editor block content toolbar":"编辑器å—内容工具æ ","Editor contextual toolbar":"编辑器上下文工具æ ","Editor editing area: %0":"编辑器编辑区域:%0","Editor toolbar":"编辑器工具æ ",Green:"绿色",Grey:"ç°è‰²",HEX:"åå…进制","Insert image with file manager":"使用文件管ç†å™¨æ’入图片","Insert paragraph after block":"在åŽé¢æ’入段è½","Insert paragraph before block":"在å‰é¢æ’入段è½","Insert with file manager":"使用文件管ç†å™¨æ’å…¥","Light blue":"æµ…è“色","Light green":"浅绿色","Light grey":"æµ…ç°è‰²",Next:"下一æ¥","No results found":"未找到结果","No searchable items":"没有å¯æœç´¢çš„项目",Orange:"橙色","Press Enter to type after or press Shift + Enter to type before the widget":"按下“Enterâ€é”®ï¼Œåœ¨å°ç»„件åŽè¾“入;按下“Shift+Enterâ€é”®ï¼Œåœ¨å°ç»„件å‰è¾“å…¥",Previous:"上一æ¥",Purple:"紫色",Red:"红色",Redo:"é‡åš","Remove color":"移除颜色","Replace image with file manager":"使用文件管ç†å™¨æ›¿æ¢å›¾ç‰‡","Replace with file manager":"使用文件管ç†å™¨æ›¿æ¢","Restore default":"æ¢å¤é»˜è®¤","Rich Text Editor":"富文本编辑器","Rich Text Editor. Editing area: %0":"富文本编辑器。编辑区域:%0",Save:"ä¿å˜","Select all":"全选","Show more items":"显示更多",Turquoise:"é’色",Undo:"撤销","Upload in progress":"æ£åœ¨ä¸Šä¼ ",White:"白色","Widget toolbar":"å°éƒ¨ä»¶å·¥å…·æ ",Yellow:"黄色"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/zh.js b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/zh.js index dc07c8dc14c3..5d37eb672de2 100644 --- a/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/zh.js +++ b/core/assets/vendor/ckeditor5/ckeditor5-dll/translations/zh.js @@ -1 +1 @@ -!function(e){const t=e.zh=e.zh||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0/%1",Accept:"接å—",Aquamarine:"æ·ºç¶ è‰²",Black:"黑色",Blue:"è—色",Cancel:"å–消","Cannot upload file:":"無法上傳檔案:",Clear:"清除","Click to edit block":"點擊來編輯å€å¡Š","Dim grey":"æ·¡ç°è‰²","Drag to move":"拖曳來移動","Dropdown toolbar":"下拉é¸å–®","Edit block":"編輯å€å¡Š","Editor block content toolbar":"編輯器å€å¡Šå…§å®¹å·¥å…·åˆ—","Editor contextual toolbar":"編輯器關è¯å¼å·¥å…·åˆ—","Editor editing area: %0":"編輯器編輯å€ï¼š%0","Editor toolbar":"編輯器工具",Green:"ç¶ è‰²",Grey:"ç°è‰²",HEX:"åå…進ä½","Insert paragraph after block":"在這個å€å¡Šå¾Œé¢æ’入一個段è½","Insert paragraph before block":"在這個å€å¡Šå‰é¢æ’入一個段è½","Light blue":"亮è—色","Light green":"äº®ç¶ è‰²","Light grey":"亮ç°è‰²",Next:"下一","No results found":"找ä¸åˆ°çµæžœ","No searchable items":"沒有å¯æœå°‹çš„é …ç›®",Orange:"橘色","Press Enter to type after or press Shift + Enter to type before the widget":"按下 Enter 在å°å·¥å…·å¾Œè¼¸å…¥ï¼Œæˆ–按下 Shift + Enter 在å°å·¥å…·å‰è¼¸å…¥",Previous:"上一",Purple:"紫色",Red:"紅色",Redo:"é‡åš","Remove color":"移除é¡è‰²","Restore default":"é‡è¨è‡³é è¨å€¼","Rich Text Editor":"富文本編輯器","Rich Text Editor. Editing area: %0":"RTF 編輯器。編輯å€ï¼š%0",Save:"儲å˜","Select all":"é¸å–全部","Show more items":"顯示更多",Turquoise:"è—ç¶ è‰²",Undo:"å–消","Upload in progress":"æ£åœ¨ä¸Šå‚³",White:"白色","Widget toolbar":"å°å·¥å…·",Yellow:"黃色"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.zh=e.zh||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0/%1",Accept:"接å—",Aquamarine:"æ·ºç¶ è‰²",Black:"黑色",Blue:"è—色",Cancel:"å–消","Cannot upload file:":"無法上傳檔案:",Clear:"清除","Click to edit block":"點擊來編輯å€å¡Š","Dim grey":"æ·¡ç°è‰²","Drag to move":"拖曳來移動","Dropdown toolbar":"下拉é¸å–®","Edit block":"編輯å€å¡Š","Editor block content toolbar":"編輯器å€å¡Šå…§å®¹å·¥å…·åˆ—","Editor contextual toolbar":"編輯器關è¯å¼å·¥å…·åˆ—","Editor editing area: %0":"編輯器編輯å€ï¼š%0","Editor toolbar":"編輯器工具",Green:"ç¶ è‰²",Grey:"ç°è‰²",HEX:"åå…進ä½","Insert image with file manager":"使用檔案管ç†å“¡æ’入圖片","Insert paragraph after block":"在這個å€å¡Šå¾Œé¢æ’入一個段è½","Insert paragraph before block":"在這個å€å¡Šå‰é¢æ’入一個段è½","Insert with file manager":"使用檔案管ç†å“¡æ’å…¥","Light blue":"亮è—色","Light green":"äº®ç¶ è‰²","Light grey":"亮ç°è‰²",Next:"下一","No results found":"找ä¸åˆ°çµæžœ","No searchable items":"沒有å¯æœå°‹çš„é …ç›®",Orange:"橘色","Press Enter to type after or press Shift + Enter to type before the widget":"按下 Enter 在å°å·¥å…·å¾Œè¼¸å…¥ï¼Œæˆ–按下 Shift + Enter 在å°å·¥å…·å‰è¼¸å…¥",Previous:"上一",Purple:"紫色",Red:"紅色",Redo:"é‡åš","Remove color":"移除é¡è‰²","Replace image with file manager":"使用檔案管ç†å“¡æ›¿æ›åœ–片","Replace with file manager":"使用檔案管ç†å“¡æ›¿æ›","Restore default":"é‡è¨è‡³é è¨å€¼","Rich Text Editor":"富文本編輯器","Rich Text Editor. Editing area: %0":"RTF 編輯器。編輯å€ï¼š%0",Save:"儲å˜","Select all":"é¸å–全部","Show more items":"顯示更多",Turquoise:"è—ç¶ è‰²",Undo:"å–消","Upload in progress":"æ£åœ¨ä¸Šå‚³",White:"白色","Widget toolbar":"å°å·¥å…·",Yellow:"黃色"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/html-support/html-support.js b/core/assets/vendor/ckeditor5/html-support/html-support.js index c6c38103bc42..915ce9fcf3ca 100644 --- a/core/assets/vendor/ckeditor5/html-support/html-support.js +++ b/core/assets/vendor/ckeditor5/html-support/html-support.js @@ -2,4 +2,4 @@ /*! * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. - */(()=>{var t={90:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var o=r(609),n=r.n(o)()((function(t){return t[1]}));n.push([t.id,":root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base);min-width:calc(76px + var(--ck-spacing-standard));padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-object-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);font-style:normal;font-weight:400;left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);position:absolute;top:0;transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}",""]);const i=n},609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,o){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(o)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(n[s]=!0)}for(var l=0;l<t.length;l++){var a=[].concat(t[l]);o&&n[a[0]]||(r&&(a[2]?a[2]="".concat(r," and ").concat(a[2]):a[2]=r),e.push(a))}},e}},62:(t,e,r)=>{"use strict";var o,n=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),s=[];function l(t){for(var e=-1,r=0;r<s.length;r++)if(s[r].identifier===t){e=r;break}return e}function a(t,e){for(var r={},o=[],n=0;n<t.length;n++){var i=t[n],a=e.base?i[0]+e.base:i[0],c=r[a]||0,u="".concat(a," ").concat(c);r[a]=c+1;var m=l(u),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==m?(s[m].references++,s[m].updater(d)):s.push({identifier:u,updater:p(d,e),references:1}),o.push(u)}return o}function c(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var n=r.nc;n&&(o.nonce=n)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var s=i(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,m=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,r,o){var n=r?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=m(e,n);else{var i=document.createTextNode(n),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function f(t,e,r){var o=r.css,n=r.media,i=r.sourceMap;if(n?t.setAttribute("media",n):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var h=null,b=0;function p(t,e){var r,o,n;if(e.singleton){var i=b++;r=h||(h=c(e)),o=d.bind(null,r,i,!1),n=d.bind(null,r,i,!0)}else r=c(e),o=f.bind(null,r,e),n=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else n()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=n());var r=a(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<r.length;o++){var n=l(r[o]);s[n].references--}for(var i=a(t,e),c=0;c<r.length;c++){var u=l(r[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}r=i}}}},704:(t,e,r)=>{t.exports=r(79)("./src/core.js")},492:(t,e,r)=>{t.exports=r(79)("./src/engine.js")},331:(t,e,r)=>{t.exports=r(79)("./src/enter.js")},209:(t,e,r)=>{t.exports=r(79)("./src/utils.js")},995:(t,e,r)=>{t.exports=r(79)("./src/widget.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={id:o,exports:{}};return t[o](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nc=void 0;var o={};(()=>{"use strict";r.r(o),r.d(o,{DataFilter:()=>On,DataSchema:()=>hn,FullPage:()=>vi,GeneralHtmlSupport:()=>hi,HtmlComment:()=>pi,HtmlPageDataProcessor:()=>gi});var t=r(704),e=r(209),n=r(492),i=r(995);const s=function(){this.__data__=[],this.size=0};const l=function(t,e){return t===e||t!=t&&e!=e};const a=function(t,e){for(var r=t.length;r--;)if(l(t[r][0],e))return r;return-1};var c=Array.prototype.splice;const u=function(t){var e=this.__data__,r=a(e,t);return!(r<0)&&(r==e.length-1?e.pop():c.call(e,r,1),--this.size,!0)};const m=function(t){var e=this.__data__,r=a(e,t);return r<0?void 0:e[r][1]};const d=function(t){return a(this.__data__,t)>-1};const f=function(t,e){var r=this.__data__,o=a(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};function h(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}h.prototype.clear=s,h.prototype.delete=u,h.prototype.get=m,h.prototype.has=d,h.prototype.set=f;const b=h;const p=function(){this.__data__=new b,this.size=0};const g=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};const v=function(t){return this.__data__.get(t)};const w=function(t){return this.__data__.has(t)};const y="object"==typeof global&&global&&global.Object===Object&&global;var A="object"==typeof self&&self&&self.Object===Object&&self;const j=y||A||Function("return this")();const E=j.Symbol;var _=Object.prototype,S=_.hasOwnProperty,k=_.toString,O=E?E.toStringTag:void 0;const C=function(t){var e=S.call(t,O),r=t[O];try{t[O]=void 0;var o=!0}catch(t){}var n=k.call(t);return o&&(e?t[O]=r:delete t[O]),n};var x=Object.prototype.toString;const F=function(t){return x.call(t)};var I=E?E.toStringTag:void 0;const P=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":I&&I in Object(t)?C(t):F(t)};const $=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const T=function(t){if(!$(t))return!1;var e=P(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const D=j["__core-js_shared__"];var B,R=(B=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"";const N=function(t){return!!R&&R in t};var M=Function.prototype.toString;const L=function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var V=/^\[object .+?Constructor\]$/,H=Function.prototype,z=Object.prototype,U=H.toString,W=z.hasOwnProperty,q=RegExp("^"+U.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const G=function(t){return!(!$(t)||N(t))&&(T(t)?q:V).test(L(t))};const Z=function(t,e){return null==t?void 0:t[e]};const K=function(t,e){var r=Z(t,e);return G(r)?r:void 0};const Y=K(j,"Map");const J=K(Object,"create");const X=function(){this.__data__=J?J(null):{},this.size=0};const Q=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var tt=Object.prototype.hasOwnProperty;const et=function(t){var e=this.__data__;if(J){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return tt.call(e,t)?e[t]:void 0};var rt=Object.prototype.hasOwnProperty;const ot=function(t){var e=this.__data__;return J?void 0!==e[t]:rt.call(e,t)};const nt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this};function it(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}it.prototype.clear=X,it.prototype.delete=Q,it.prototype.get=et,it.prototype.has=ot,it.prototype.set=nt;const st=it;const lt=function(){this.size=0,this.__data__={hash:new st,map:new(Y||b),string:new st}};const at=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const ct=function(t,e){var r=t.__data__;return at(e)?r["string"==typeof e?"string":"hash"]:r.map};const ut=function(t){var e=ct(this,t).delete(t);return this.size-=e?1:0,e};const mt=function(t){return ct(this,t).get(t)};const dt=function(t){return ct(this,t).has(t)};const ft=function(t,e){var r=ct(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};function ht(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}ht.prototype.clear=lt,ht.prototype.delete=ut,ht.prototype.get=mt,ht.prototype.has=dt,ht.prototype.set=ft;const bt=ht;const pt=function(t,e){var r=this.__data__;if(r instanceof b){var o=r.__data__;if(!Y||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new bt(o)}return r.set(t,e),this.size=r.size,this};function gt(t){var e=this.__data__=new b(t);this.size=e.size}gt.prototype.clear=p,gt.prototype.delete=g,gt.prototype.get=v,gt.prototype.has=w,gt.prototype.set=pt;const vt=gt;const wt=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o&&!1!==e(t[r],r,t););return t};const yt=function(){try{var t=K(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const At=function(t,e,r){"__proto__"==e&&yt?yt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var jt=Object.prototype.hasOwnProperty;const Et=function(t,e,r){var o=t[e];jt.call(t,e)&&l(o,r)&&(void 0!==r||e in t)||At(t,e,r)};const _t=function(t,e,r,o){var n=!r;r||(r={});for(var i=-1,s=e.length;++i<s;){var l=e[i],a=o?o(r[l],t[l],l,r,t):void 0;void 0===a&&(a=t[l]),n?At(r,l,a):Et(r,l,a)}return r};const St=function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o};const kt=function(t){return null!=t&&"object"==typeof t};const Ot=function(t){return kt(t)&&"[object Arguments]"==P(t)};var Ct=Object.prototype,xt=Ct.hasOwnProperty,Ft=Ct.propertyIsEnumerable;const It=Ot(function(){return arguments}())?Ot:function(t){return kt(t)&&xt.call(t,"callee")&&!Ft.call(t,"callee")};const Pt=Array.isArray;const $t=function(){return!1};var Tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Dt=Tt&&"object"==typeof module&&module&&!module.nodeType&&module,Bt=Dt&&Dt.exports===Tt?j.Buffer:void 0;const Rt=(Bt?Bt.isBuffer:void 0)||$t;var Nt=/^(?:0|[1-9]\d*)$/;const Mt=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Nt.test(t))&&t>-1&&t%1==0&&t<e};const Lt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Vt={};Vt["[object Float32Array]"]=Vt["[object Float64Array]"]=Vt["[object Int8Array]"]=Vt["[object Int16Array]"]=Vt["[object Int32Array]"]=Vt["[object Uint8Array]"]=Vt["[object Uint8ClampedArray]"]=Vt["[object Uint16Array]"]=Vt["[object Uint32Array]"]=!0,Vt["[object Arguments]"]=Vt["[object Array]"]=Vt["[object ArrayBuffer]"]=Vt["[object Boolean]"]=Vt["[object DataView]"]=Vt["[object Date]"]=Vt["[object Error]"]=Vt["[object Function]"]=Vt["[object Map]"]=Vt["[object Number]"]=Vt["[object Object]"]=Vt["[object RegExp]"]=Vt["[object Set]"]=Vt["[object String]"]=Vt["[object WeakMap]"]=!1;const Ht=function(t){return kt(t)&&Lt(t.length)&&!!Vt[P(t)]};const zt=function(t){return function(e){return t(e)}};var Ut="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wt=Ut&&"object"==typeof module&&module&&!module.nodeType&&module,qt=Wt&&Wt.exports===Ut&&y.process;const Gt=function(){try{var t=Wt&&Wt.require&&Wt.require("util").types;return t||qt&&qt.binding&&qt.binding("util")}catch(t){}}();var Zt=Gt&&Gt.isTypedArray;const Kt=Zt?zt(Zt):Ht;var Yt=Object.prototype.hasOwnProperty;const Jt=function(t,e){var r=Pt(t),o=!r&&It(t),n=!r&&!o&&Rt(t),i=!r&&!o&&!n&&Kt(t),s=r||o||n||i,l=s?St(t.length,String):[],a=l.length;for(var c in t)!e&&!Yt.call(t,c)||s&&("length"==c||n&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Mt(c,a))||l.push(c);return l};var Xt=Object.prototype;const Qt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Xt)};const te=function(t,e){return function(r){return t(e(r))}};const ee=te(Object.keys,Object);var re=Object.prototype.hasOwnProperty;const oe=function(t){if(!Qt(t))return ee(t);var e=[];for(var r in Object(t))re.call(t,r)&&"constructor"!=r&&e.push(r);return e};const ne=function(t){return null!=t&&Lt(t.length)&&!T(t)};const ie=function(t){return ne(t)?Jt(t):oe(t)};const se=function(t,e){return t&&_t(e,ie(e),t)};const le=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var ae=Object.prototype.hasOwnProperty;const ce=function(t){if(!$(t))return le(t);var e=Qt(t),r=[];for(var o in t)("constructor"!=o||!e&&ae.call(t,o))&&r.push(o);return r};const ue=function(t){return ne(t)?Jt(t,!0):ce(t)};const me=function(t,e){return t&&_t(e,ue(e),t)};var de="object"==typeof exports&&exports&&!exports.nodeType&&exports,fe=de&&"object"==typeof module&&module&&!module.nodeType&&module,he=fe&&fe.exports===de?j.Buffer:void 0,be=he?he.allocUnsafe:void 0;const pe=function(t,e){if(e)return t.slice();var r=t.length,o=be?be(r):new t.constructor(r);return t.copy(o),o};const ge=function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e};const ve=function(t,e){for(var r=-1,o=null==t?0:t.length,n=0,i=[];++r<o;){var s=t[r];e(s,r,t)&&(i[n++]=s)}return i};const we=function(){return[]};var ye=Object.prototype.propertyIsEnumerable,Ae=Object.getOwnPropertySymbols;const je=Ae?function(t){return null==t?[]:(t=Object(t),ve(Ae(t),(function(e){return ye.call(t,e)})))}:we;const Ee=function(t,e){return _t(t,je(t),e)};const _e=function(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t};const Se=te(Object.getPrototypeOf,Object);const ke=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)_e(e,je(t)),t=Se(t);return e}:we;const Oe=function(t,e){return _t(t,ke(t),e)};const Ce=function(t,e,r){var o=e(t);return Pt(t)?o:_e(o,r(t))};const xe=function(t){return Ce(t,ie,je)};const Fe=function(t){return Ce(t,ue,ke)};const Ie=K(j,"DataView");const Pe=K(j,"Promise");const $e=K(j,"Set");const Te=K(j,"WeakMap");var De="[object Map]",Be="[object Promise]",Re="[object Set]",Ne="[object WeakMap]",Me="[object DataView]",Le=L(Ie),Ve=L(Y),He=L(Pe),ze=L($e),Ue=L(Te),We=P;(Ie&&We(new Ie(new ArrayBuffer(1)))!=Me||Y&&We(new Y)!=De||Pe&&We(Pe.resolve())!=Be||$e&&We(new $e)!=Re||Te&&We(new Te)!=Ne)&&(We=function(t){var e=P(t),r="[object Object]"==e?t.constructor:void 0,o=r?L(r):"";if(o)switch(o){case Le:return Me;case Ve:return De;case He:return Be;case ze:return Re;case Ue:return Ne}return e});const qe=We;var Ge=Object.prototype.hasOwnProperty;const Ze=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Ge.call(t,"index")&&(r.index=t.index,r.input=t.input),r};const Ke=j.Uint8Array;const Ye=function(t){var e=new t.constructor(t.byteLength);return new Ke(e).set(new Ke(t)),e};const Je=function(t,e){var r=e?Ye(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)};var Xe=/\w*$/;const Qe=function(t){var e=new t.constructor(t.source,Xe.exec(t));return e.lastIndex=t.lastIndex,e};var tr=E?E.prototype:void 0,er=tr?tr.valueOf:void 0;const rr=function(t){return er?Object(er.call(t)):{}};const or=function(t,e){var r=e?Ye(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};const nr=function(t,e,r){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Ye(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Je(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return or(t,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Qe(t);case"[object Symbol]":return rr(t)}};var ir=Object.create;const sr=function(){function t(){}return function(e){if(!$(e))return{};if(ir)return ir(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const lr=function(t){return"function"!=typeof t.constructor||Qt(t)?{}:sr(Se(t))};const ar=function(t){return kt(t)&&"[object Map]"==qe(t)};var cr=Gt&&Gt.isMap;const ur=cr?zt(cr):ar;const mr=function(t){return kt(t)&&"[object Set]"==qe(t)};var dr=Gt&&Gt.isSet;const fr=dr?zt(dr):mr;var hr="[object Arguments]",br="[object Function]",pr="[object Object]",gr={};gr[hr]=gr["[object Array]"]=gr["[object ArrayBuffer]"]=gr["[object DataView]"]=gr["[object Boolean]"]=gr["[object Date]"]=gr["[object Float32Array]"]=gr["[object Float64Array]"]=gr["[object Int8Array]"]=gr["[object Int16Array]"]=gr["[object Int32Array]"]=gr["[object Map]"]=gr["[object Number]"]=gr[pr]=gr["[object RegExp]"]=gr["[object Set]"]=gr["[object String]"]=gr["[object Symbol]"]=gr["[object Uint8Array]"]=gr["[object Uint8ClampedArray]"]=gr["[object Uint16Array]"]=gr["[object Uint32Array]"]=!0,gr["[object Error]"]=gr[br]=gr["[object WeakMap]"]=!1;const vr=function t(e,r,o,n,i,s){var l,a=1&r,c=2&r,u=4&r;if(o&&(l=i?o(e,n,i,s):o(e)),void 0!==l)return l;if(!$(e))return e;var m=Pt(e);if(m){if(l=Ze(e),!a)return ge(e,l)}else{var d=qe(e),f=d==br||"[object GeneratorFunction]"==d;if(Rt(e))return pe(e,a);if(d==pr||d==hr||f&&!i){if(l=c||f?{}:lr(e),!a)return c?Oe(e,me(l,e)):Ee(e,se(l,e))}else{if(!gr[d])return i?e:{};l=nr(e,d,a)}}s||(s=new vt);var h=s.get(e);if(h)return h;s.set(e,l),fr(e)?e.forEach((function(n){l.add(t(n,r,o,n,e,s))})):ur(e)&&e.forEach((function(n,i){l.set(i,t(n,r,o,i,e,s))}));var b=m?void 0:(u?c?Fe:xe:c?ue:ie)(e);return wt(b||e,(function(n,i){b&&(n=e[i=n]),Et(l,i,t(n,r,o,i,e,s))})),l};const wr=function(t){return vr(t,5)};const yr=function(t,e,r,o){var n=-1,i=null==t?0:t.length;for(o&&i&&(r=t[++n]);++n<i;)r=e(r,t[n],n,t);return r};const Ar=function(t){return function(e){return null==t?void 0:t[e]}}({À:"A",Ã:"A",Â:"A",Ã:"A",Ä:"A",Ã…:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ç:"C",ç:"c",Ã:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",ÃŒ:"I",Ã:"I",ÃŽ:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ã’:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ãœ:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ä€:"A",Ä‚:"A",Ä„:"A",Ä:"a",ă:"a",Ä…:"a",Ć:"C",Ĉ:"C",ÄŠ:"C",ÄŒ:"C",ć:"c",ĉ:"c",Ä‹:"c",Ä:"c",ÄŽ:"D",Ä:"D",Ä:"d",Ä‘:"d",Ä’:"E",Ä”:"E",Ä–:"E",Ę:"E",Äš:"E",Ä“:"e",Ä•:"e",Ä—:"e",Ä™:"e",Ä›:"e",Äœ:"G",Äž:"G",Ä :"G",Ä¢:"G",Ä:"g",ÄŸ:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",Ä°:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å€:"l",Å‚:"l",Ń:"N",Å…:"N",Ň:"N",ÅŠ:"N",Å„:"n",ņ:"n",ň:"n",Å‹:"n",ÅŒ:"O",ÅŽ:"O",Å:"O",Å:"o",Å:"o",Å‘:"o",Å”:"R",Å–:"R",Ř:"R",Å•:"r",Å—:"r",Å™:"r",Åš:"S",Åœ:"S",Åž:"S",Å :"S",Å›:"s",Å:"s",ÅŸ:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Å°:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å’:"Oe",Å“:"oe",ʼn:"'n",Å¿:"s"});const jr=function(t,e){for(var r=-1,o=null==t?0:t.length,n=Array(o);++r<o;)n[r]=e(t[r],r,t);return n};const Er=function(t){return"symbol"==typeof t||kt(t)&&"[object Symbol]"==P(t)};var _r=E?E.prototype:void 0,Sr=_r?_r.toString:void 0;const kr=function t(e){if("string"==typeof e)return e;if(Pt(e))return jr(e,t)+"";if(Er(e))return Sr?Sr.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};const Or=function(t){return null==t?"":kr(t)};var Cr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const Fr=function(t){return(t=Or(t))&&t.replace(Cr,Ar).replace(xr,"")};var Ir=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const Pr=function(t){return t.match(Ir)||[]};var $r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const Tr=function(t){return $r.test(t)};var Dr="\\ud800-\\udfff",Br="\\u2700-\\u27bf",Rr="a-z\\xdf-\\xf6\\xf8-\\xff",Nr="A-Z\\xc0-\\xd6\\xd8-\\xde",Mr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lr="["+Mr+"]",Vr="\\d+",Hr="["+Br+"]",zr="["+Rr+"]",Ur="[^"+Dr+Mr+Vr+Br+Rr+Nr+"]",Wr="(?:\\ud83c[\\udde6-\\uddff]){2}",qr="[\\ud800-\\udbff][\\udc00-\\udfff]",Gr="["+Nr+"]",Zr="(?:"+zr+"|"+Ur+")",Kr="(?:"+Gr+"|"+Ur+")",Yr="(?:['’](?:d|ll|m|re|s|t|ve))?",Jr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Qr="[\\ufe0e\\ufe0f]?",to=Qr+Xr+("(?:\\u200d(?:"+["[^"+Dr+"]",Wr,qr].join("|")+")"+Qr+Xr+")*"),eo="(?:"+[Hr,Wr,qr].join("|")+")"+to,ro=RegExp([Gr+"?"+zr+"+"+Yr+"(?="+[Lr,Gr,"$"].join("|")+")",Kr+"+"+Jr+"(?="+[Lr,Gr+Zr,"$"].join("|")+")",Gr+"?"+Zr+"+"+Yr,Gr+"+"+Jr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vr,eo].join("|"),"g");const oo=function(t){return t.match(ro)||[]};const no=function(t,e,r){return t=Or(t),void 0===(e=r?void 0:e)?Tr(t)?oo(t):Pr(t):t.match(e)||[]};var io=RegExp("['’]","g");const so=function(t){return function(e){return yr(no(Fr(e).replace(io,"")),t,"")}};const lo=function(t,e,r){var o=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(r=r>n?n:r)<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(n);++o<n;)i[o]=t[o+e];return i};const ao=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:lo(t,e,r)};var co=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const uo=function(t){return co.test(t)};const mo=function(t){return t.split("")};var fo="\\ud800-\\udfff",ho="["+fo+"]",bo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",po="\\ud83c[\\udffb-\\udfff]",go="[^"+fo+"]",vo="(?:\\ud83c[\\udde6-\\uddff]){2}",wo="[\\ud800-\\udbff][\\udc00-\\udfff]",yo="(?:"+bo+"|"+po+")"+"?",Ao="[\\ufe0e\\ufe0f]?",jo=Ao+yo+("(?:\\u200d(?:"+[go,vo,wo].join("|")+")"+Ao+yo+")*"),Eo="(?:"+[go+bo+"?",bo,vo,wo,ho].join("|")+")",_o=RegExp(po+"(?="+po+")|"+Eo+jo,"g");const So=function(t){return t.match(_o)||[]};const ko=function(t){return uo(t)?So(t):mo(t)};const Oo=function(t){return function(e){e=Or(e);var r=uo(e)?ko(e):void 0,o=r?r[0]:e.charAt(0),n=r?ao(r,1).join(""):e.slice(1);return o[t]()+n}}("toUpperCase");const Co=so((function(t,e,r){return t+(r?" ":"")+Oo(e)}));function xo(t,e,r,o){e&&function(t,e,r){if(e.attributes)for(const[o]of Object.entries(e.attributes))t.removeAttribute(o,r);if(e.styles)for(const o of Object.keys(e.styles))t.removeStyle(o,r);e.classes&&t.removeClass(e.classes,r)}(t,e,o),r&&Fo(t,r,o)}function Fo(t,e,r){if(e.attributes)for(const[o,n]of Object.entries(e.attributes))t.setAttribute(o,n,r);e.styles&&t.setStyle(e.styles,r),e.classes&&t.addClass(e.classes,r)}function Io(t,e,r,o,n){const i=e.getAttribute(r),s={};for(const t of["attributes","styles","classes"]){if(t!=o){i&&i[t]&&(s[t]=i[t]);continue}if("classes"==o){const e=new Set(i&&i.classes||[]);n(e),e.size&&(s[t]=Array.from(e));continue}const e=new Map(Object.entries(i&&i[t]||{}));n(e),e.size&&(s[t]=Object.fromEntries(e))}Object.keys(s).length?e.is("documentSelection")?t.setSelectionAttribute(r,s):t.setAttribute(r,s,e):i&&(e.is("documentSelection")?t.removeSelectionAttribute(r):t.removeAttribute(r,e))}function Po(t){return`html${e=t,Co(e).replace(/ /g,"")}Attributes`;var e}function $o({model:t}){return(e,r)=>r.writer.createElement(t,{htmlContent:e.getCustomProperty("$rawContent")})}function To(t,{view:e,isInline:r}){const o=t.t;return(t,{writer:n})=>{const s=o("HTML object"),l=Do(e,t,n),a=t.getAttribute(Po(e));n.addClass("html-object-embed__content",l),a&&Fo(n,a,l);const c=n.createContainerElement(r?"span":"div",{class:"html-object-embed","data-html-object-embed-label":s},l);return(0,i.toWidget)(c,n,{label:s})}}function Do(t,e,r){return r.createRawElement(t,null,((t,r)=>{r.setContentOf(t,e.getAttribute("htmlContent"))}))}function Bo({view:t,model:e,allowEmpty:r},o){return e=>{e.on(`element:${t}`,((t,e,i)=>{let s=o.processViewAttributes(e.viewItem,i);if(s||i.consumable.test(e.viewItem,{name:!0})){if(s=s||{},i.consumable.consume(e.viewItem,{name:!0}),e.modelRange||(e=Object.assign(e,i.convertChildren(e.viewItem,e.modelCursor))),r&&e.modelRange.isCollapsed&&Object.keys(s).length){const t=i.writer.createElement("htmlEmptyElement");if(!i.safeInsert(t,e.modelCursor))return;const r=i.getSplitParts(t);return e.modelRange=i.writer.createRange(e.modelRange.start,i.writer.createPositionAfter(r[r.length-1])),i.updateConversionResult(t,e),void n(t,s,i)}for(const t of e.modelRange.getItems())n(t,s,i)}}),{priority:"low"})};function n(t,r,o){if(o.schema.checkAttribute(t,e)){const n=function(t,e){const r=wr(t);let o="attributes";for(o in e)r[o]="classes"==o?Array.from(new Set([...t[o]||[],...e[o]])):{...t[o],...e[o]};return r}(r,t.getAttribute(e)||{});o.writer.setAttribute(e,n,t)}}}function Ro({model:t,view:e},r){return(o,{writer:n,consumable:s})=>{if(!o.hasAttribute(t))return null;const l=n.createContainerElement(e),a=o.getAttribute(t);return s.consume(o,`attribute:${t}`),Fo(n,a,l),l.getFillerOffset=()=>null,r?(0,i.toWidget)(l,n):l}}function No({priority:t,view:e}){return(r,o)=>{if(!r)return;const{writer:n}=o,i=n.createAttributeElement(e,null,{priority:t});return Fo(n,r,i),i}}function Mo({view:t},e){return r=>{r.on(`element:${t}`,((t,r,o)=>{if(!r.modelRange||r.modelRange.isCollapsed)return;const n=e.processViewAttributes(r.viewItem,o);n&&o.writer.setAttribute(Po(r.viewItem.name),n,r.modelRange)}),{priority:"low"})}}function Lo({view:t,model:e}){return r=>{r.on(`attribute:${Po(t)}:${e}`,((t,e,r)=>{if(!r.consumable.consume(e.item,t.name))return;const{attributeOldValue:o,attributeNewValue:n}=e;xo(r.writer,o,n,r.mapper.toViewElement(e.item))}))}}const Vo=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"tableColumnGroup",view:"colgroup"},{model:"tableColumn",view:"col"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:"$text",allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDivDl",view:"div",modelSchema:{allowChildren:["htmlDt","htmlDd"],allowIn:"htmlDl"}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd","htmlDivDl"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],Ho=[{model:"htmlLiAttributes",view:"li",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlOlAttributes",view:"ol",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlUlAttributes",view:"ul",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"table"},{model:"htmlTheadAttributes",view:"thead",appliesToBlock:"table"},{model:"htmlTbodyAttributes",view:"tbody",appliesToBlock:"table"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"imageBlock"},{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref"},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],allowAttributesOf:"$inlineObject",isInline:!0}}];const zo=function(t,e,r){(void 0!==r&&!l(t[e],r)||void 0===r&&!(e in t))&&At(t,e,r)};const Uo=function(t){return function(e,r,o){for(var n=-1,i=Object(e),s=o(e),l=s.length;l--;){var a=s[t?l:++n];if(!1===r(i[a],a,i))break}return e}}();const Wo=function(t){return kt(t)&&ne(t)};var qo=Function.prototype,Go=Object.prototype,Zo=qo.toString,Ko=Go.hasOwnProperty,Yo=Zo.call(Object);const Jo=function(t){if(!kt(t)||"[object Object]"!=P(t))return!1;var e=Se(t);if(null===e)return!0;var r=Ko.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Zo.call(r)==Yo};const Xo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};const Qo=function(t){return _t(t,ue(t))};const tn=function(t,e,r,o,n,i,s){var l=Xo(t,r),a=Xo(e,r),c=s.get(a);if(c)zo(t,r,c);else{var u=i?i(l,a,r+"",t,e,s):void 0,m=void 0===u;if(m){var d=Pt(a),f=!d&&Rt(a),h=!d&&!f&&Kt(a);u=a,d||f||h?Pt(l)?u=l:Wo(l)?u=ge(l):f?(m=!1,u=pe(a,!0)):h?(m=!1,u=or(a,!0)):u=[]:Jo(a)||It(a)?(u=l,It(l)?u=Qo(l):$(l)&&!T(l)||(u=lr(a))):m=!1}m&&(s.set(a,u),n(u,a,o,i,s),s.delete(a)),zo(t,r,u)}};const en=function t(e,r,o,n,i){e!==r&&Uo(r,(function(s,l){if(i||(i=new vt),$(s))tn(e,r,l,o,t,n,i);else{var a=n?n(Xo(e,l),s,l+"",e,r,i):void 0;void 0===a&&(a=s),zo(e,l,a)}}),ue)};const rn=function(t){return t};const on=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var nn=Math.max;const sn=function(t,e,r){return e=nn(void 0===e?t.length-1:e,0),function(){for(var o=arguments,n=-1,i=nn(o.length-e,0),s=Array(i);++n<i;)s[n]=o[e+n];n=-1;for(var l=Array(e+1);++n<e;)l[n]=o[n];return l[e]=r(s),on(t,this,l)}};const ln=function(t){return function(){return t}};const an=yt?function(t,e){return yt(t,"toString",{configurable:!0,enumerable:!1,value:ln(e),writable:!0})}:rn;var cn=Date.now;const un=function(t){var e=0,r=0;return function(){var o=cn(),n=16-(o-r);if(r=o,n>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(an);const mn=function(t,e){return un(sn(t,e,rn),t+"")};const dn=function(t,e,r){if(!$(r))return!1;var o=typeof e;return!!("number"==o?ne(r)&&Mt(e,r.length):"string"==o&&e in r)&&l(r[e],t)};const fn=function(t){return mn((function(e,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(n--,i):void 0,s&&dn(r[0],r[1],s)&&(i=n<3?void 0:i,n=1),e=Object(e);++o<n;){var l=r[o];l&&t(e,l,o,i)}return e}))}((function(t,e,r,o){en(t,e,r,o)}));class hn extends t.Plugin{constructor(){super(...arguments),this._definitions=[]}static get pluginName(){return"DataSchema"}init(){for(const t of Vo)this.registerBlockElement(t);for(const t of Ho)this.registerInlineElement(t)}registerBlockElement(t){this._definitions.push({...t,isBlock:!0})}registerInlineElement(t){this._definitions.push({...t,isInline:!0})}extendBlockElement(t){this._extendDefinition({...t,isBlock:!0})}extendInlineElement(t){this._extendDefinition({...t,isInline:!0})}getDefinitionsForView(t,e=!1){const r=new Set;for(const o of this._getMatchingViewDefinitions(t)){if(e)for(const t of this._getReferences(o.model))r.add(t);r.add(o)}return r}getDefinitionsForModel(t){return this._definitions.filter((e=>e.model==t))}_getMatchingViewDefinitions(t){return this._definitions.filter((e=>e.view&&function(t,e){if("string"==typeof t)return t===e;if(t instanceof RegExp)return t.test(e);return!1}(t,e.view)))}*_getReferences(t){const r=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"],o=this._definitions.filter((e=>e.model==t));for(const{modelSchema:n}of o)if(n)for(const o of r)for(const r of(0,e.toArray)(n[o]||[])){const e=this._definitions.filter((t=>t.model==r));for(const o of e)r!==t&&(yield*this._getReferences(o.model),yield o)}}_extendDefinition(t){const e=Array.from(this._definitions.entries()).filter((([,e])=>e.model==t.model));if(0!=e.length)for(const[r,o]of e)this._definitions[r]=fn({},o,t,((t,e)=>Array.isArray(t)?t.concat(e):void 0));else this._definitions.push(t)}}const bn=function(t,e,r,o){for(var n=t.length,i=r+(o?1:-1);o?i--:++i<n;)if(e(t[i],i,t))return i;return-1};const pn=function(t){return t!=t};const gn=function(t,e,r){for(var o=r-1,n=t.length;++o<n;)if(t[o]===e)return o;return-1};const vn=function(t,e,r){return e==e?gn(t,e,r):bn(t,pn,r)};const wn=function(t,e,r,o){for(var n=r-1,i=t.length;++n<i;)if(o(t[n],e))return n;return-1};var yn=Array.prototype.splice;const An=function(t,e,r,o){var n=o?wn:vn,i=-1,s=e.length,l=t;for(t===e&&(e=ge(e)),r&&(l=jr(t,zt(r)));++i<s;)for(var a=0,c=e[i],u=r?r(c):c;(a=n(l,u,a,o))>-1;)l!==t&&yn.call(l,a,1),yn.call(t,a,1);return t};const jn=mn((function(t,e){return t&&t.length&&e&&e.length?An(t,e):t}));var En=r(62),_n=r.n(En),Sn=r(90),kn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_n()(Sn.Z,kn);Sn.Z.locals;class On extends t.Plugin{constructor(t){super(t),this._dataSchema=t.plugins.get("DataSchema"),this._allowedAttributes=new n.Matcher,this._disallowedAttributes=new n.Matcher,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerCoupledAttributesPostFixer(),this._registerAssociatedHtmlAttributesPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[hn,i.Widget]}loadAllowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,r=Pn(e);this.allowElement(t),r.forEach((t=>this.allowAttributes(t)))}}loadDisallowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,r=Pn(e);0==r.length?this.disallowElement(t):r.forEach((t=>this.disallowAttributes(t)))}}loadAllowedEmptyElementsConfig(t){for(const e of t)this.allowEmptyElement(e)}allowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))this._addAllowedElement(e),this._coupledAttributes=null}disallowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!1))this._disallowedElements.add(e.view)}allowEmptyElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))e.isInline&&this._dataSchema.extendInlineElement({...e,allowEmpty:!0})}allowAttributes(t){this._allowedAttributes.add(t)}disallowAttributes(t){this._disallowedAttributes.add(t)}processViewAttributes(t,e){return Cn(t,e,this._disallowedAttributes),Cn(t,e,this._allowedAttributes)}_addAllowedElement(t){if(!this._allowedElements.has(t)){if(this._allowedElements.add(t),"appliesToBlock"in t&&"string"==typeof t.appliesToBlock)for(const e of this._dataSchema.getDefinitionsForModel(t.appliesToBlock))e.isBlock&&this._addAllowedElement(e);this._dataInitialized&&this.editor.data.once("set",(()=>{this._fireRegisterEvent(t)}),{priority:e.priorities.highest+1})}}_registerElementsAfterInit(){this.editor.data.on("init",(()=>{this._dataInitialized=!0;for(const t of this._allowedElements)this._fireRegisterEvent(t)}),{priority:e.priorities.highest+1})}_registerElementHandlers(){this.on("register",((t,r)=>{const o=this.editor.model.schema;if(r.isObject&&!o.isRegistered(r.model))this._registerObjectElement(r);else if(r.isBlock)this._registerBlockElement(r);else{if(!r.isInline)throw new e.CKEditorError("data-filter-invalid-definition",null,r);this._registerInlineElement(r)}t.stop()}),{priority:"lowest"})}_registerCoupledAttributesPostFixer(){const t=this.editor.model;t.document.registerPostFixer((e=>{const r=t.document.differ.getChanges();let o=!1;const n=this._getCoupledAttributesMap();for(const t of r){if("attribute"!=t.type||null!==t.attributeNewValue)continue;const r=n.get(t.attributeKey);if(r)for(const{item:n}of t.range.getWalker({shallow:!0}))for(const t of r)n.hasAttribute(t)&&(e.removeAttribute(t,n),o=!0)}return o}))}_registerAssociatedHtmlAttributesPostFixer(){const t=this.editor.model;t.document.registerPostFixer((e=>{const r=t.document.differ.getChanges();let o=!1;for(const n of r)if("insert"===n.type&&"$text"!==n.name)for(const r of n.attributes.keys())r.startsWith("html")&&r.endsWith("Attributes")&&(t.schema.checkAttribute(n.name,r)||(e.removeAttribute(r,n.position.nodeAfter),o=!0));return o}))}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const t of this._allowedElements)if(t.coupledAttribute&&t.model){const e=this._coupledAttributes.get(t.coupledAttribute);e?e.push(t.model):this._coupledAttributes.set(t.coupledAttribute,[t.model])}return this._coupledAttributes}_fireRegisterEvent(t){t.view&&this._disallowedElements.has(t.view)||this.fire(t.view?`register:${t.view}`:"register",t)}_registerObjectElement(t){const r=this.editor,o=r.model.schema,n=r.conversion,{view:i,model:s}=t;o.register(s,t.modelSchema),i&&(o.extend(t.model,{allowAttributes:[Po(i),"htmlContent"]}),r.data.registerRawContentMatcher({name:i}),n.for("upcast").elementToElement({view:i,model:$o(t),converterPriority:e.priorities.low+2}),n.for("upcast").add(Mo(t,this)),n.for("editingDowncast").elementToStructure({model:{name:s,attributes:[Po(i)]},view:To(r,t)}),n.for("dataDowncast").elementToElement({model:s,view:(t,{writer:e})=>Do(i,t,e)}),n.for("dataDowncast").add(Lo(t)))}_registerBlockElement(t){const r=this.editor,o=r.model.schema,n=r.conversion,{view:i,model:s}=t;if(!o.isRegistered(t.model)){if(o.register(t.model,t.modelSchema),!i)return;n.for("upcast").elementToElement({model:s,view:i,converterPriority:e.priorities.low+2}),n.for("downcast").elementToElement({model:s,view:i})}i&&(o.extend(t.model,{allowAttributes:Po(i)}),n.for("upcast").add(Mo(t,this)),n.for("downcast").add(Lo(t)))}_registerInlineElement(t){const e=this.editor,r=e.model.schema,o=e.conversion,n=t.model;t.appliesToBlock||(r.extend("$text",{allowAttributes:n}),t.attributeProperties&&r.setAttributeProperties(n,t.attributeProperties),o.for("upcast").add(Bo(t,this)),o.for("downcast").attributeToElement({model:n,view:No(t)}),t.allowEmpty&&(r.setAttributeProperties(n,{copyFromObject:!1}),r.isRegistered("htmlEmptyElement")||r.register("htmlEmptyElement",{inheritAllFrom:"$inlineObject"}),e.data.htmlProcessor.domConverter.registerInlineObjectMatcher((e=>e.name==t.view&&e.isEmpty&&Array.from(e.getAttributeKeys()).length?{name:!0}:null)),o.for("editingDowncast").elementToElement({model:"htmlEmptyElement",view:Ro(t,!0)}),o.for("dataDowncast").elementToElement({model:"htmlEmptyElement",view:Ro(t)})))}}function Cn(t,r,o){const n=function(t,{consumable:e},r){const o=r.matchAll(t)||[],n=[];for(const r of o)xn(e,t,r),delete r.match.name,e.consume(t,r.match),n.push(r);return n}(t,r,o),{attributes:i,styles:s,classes:l}=function(t){const e={attributes:new Set,classes:new Set,styles:new Set};for(const r of t)for(const t in e){(r.match[t]||[]).forEach((r=>e[t].add(r)))}return e}(n),a={};if(i.size)for(const t of i)(0,e.isValidAttributeName)(t)||i.delete(t);return i.size&&(a.attributes=Fn(i,(e=>t.getAttribute(e)))),s.size&&(a.styles=Fn(s,(e=>t.getStyle(e)))),l.size&&(a.classes=Array.from(l)),Object.keys(a).length?a:null}function xn(t,e,r){for(const o of["attributes","classes","styles"]){const n=r.match[o];if(n)for(const r of Array.from(n))t.test(e,{[o]:[r]})||jn(n,r)}}function Fn(t,e){const r={};for(const o of t){void 0!==e(o)&&(r[o]=e(o))}return r}function In(t,e){const{name:r}=t,o=t[e];return Jo(o)?Object.entries(o).map((([t,o])=>({name:r,[e]:{[t]:o}}))):Array.isArray(o)?o.map((t=>({name:r,[e]:[t]}))):[t]}function Pn(t){const{name:e,attributes:r,classes:o,styles:n}=t,i=[];return r&&i.push(...In({name:e,attributes:r},"attributes")),o&&i.push(...In({name:e,classes:o},"classes")),n&&i.push(...In({name:e,styles:n},"styles")),i}class $n extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const t=this.editor.plugins.get(On);t.on("register:pre",((e,r)=>{if("codeBlock"!==r.model)return;const o=this.editor,n=o.model.schema,i=o.conversion;n.extend("codeBlock",{allowAttributes:["htmlPreAttributes","htmlContentAttributes"]}),i.for("upcast").add(function(t){return e=>{e.on("element:code",((e,r,o)=>{const n=r.viewItem,i=n.parent;function s(e,n){const i=t.processViewAttributes(e,o);i&&o.writer.setAttribute(n,i,r.modelRange)}i&&i.is("element","pre")&&(s(i,"htmlPreAttributes"),s(n,"htmlContentAttributes"))}),{priority:"low"})}}(t)),i.for("downcast").add((t=>{t.on("attribute:htmlPreAttributes:codeBlock",((t,e,r)=>{if(!r.consumable.consume(e.item,t.name))return;const{attributeOldValue:o,attributeNewValue:n}=e,i=r.mapper.toViewElement(e.item).parent;xo(r.writer,o,n,i)})),t.on("attribute:htmlContentAttributes:codeBlock",((t,e,r)=>{if(!r.consumable.consume(e.item,t.name))return;const{attributeOldValue:o,attributeNewValue:n}=e,i=r.mapper.toViewElement(e.item);xo(r.writer,o,n,i)}))})),e.stop()}))}}class Tn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(On).on("register",((t,r)=>{const o=r,n=this.editor,i=n.model.schema,s=n.conversion;if(!o.paragraphLikeModel)return;if(i.isRegistered(o.model)||i.isRegistered(o.paragraphLikeModel))return;const l={model:o.paragraphLikeModel,view:o.view};i.register(o.model,o.modelSchema),i.register(l.model,{inheritAllFrom:"$block"}),s.for("upcast").elementToElement({view:o.view,model:(t,{writer:e})=>this._hasBlockContent(t)?e.createElement(o.model):e.createElement(l.model),converterPriority:e.priorities.low+.5}),s.for("downcast").elementToElement({view:o.view,model:o.model}),this._addAttributeConversion(o),s.for("downcast").elementToElement({view:l.view,model:l.model}),this._addAttributeConversion(l),t.stop()}))}_hasBlockContent(t){const e=this.editor.editing.view,r=e.domConverter.blockElements;for(const o of e.createRangeIn(t).getItems())if(o.is("element")&&r.includes(o.name))return!0;return!1}_addAttributeConversion(t){const e=this.editor,r=e.conversion,o=e.plugins.get(On);e.model.schema.extend(t.model,{allowAttributes:Po(t.view)}),r.for("upcast").add(Mo(t,o)),r.for("downcast").add(Lo(t))}}var Dn=r(331);class Bn extends t.Plugin{static get requires(){return[hn,Dn.Enter]}static get pluginName(){return"HeadingElementSupport"}init(){const t=this.editor;if(!t.plugins.has("HeadingEditing"))return;const e=t.config.get("heading.options");this.registerHeadingElements(t,e)}registerHeadingElements(t,e){const r=t.plugins.get(hn),o=[];for(const t of e)"model"in t&&"view"in t&&(r.registerBlockElement({view:t.view,model:t.model}),o.push(t.model));r.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:o}})}}function Rn(t,e,r){const o=t.createRangeOn(e);for(const{item:t}of o.getWalker())if(t.is("element",r))return t}class Nn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"ImageElementSupport"}init(){const t=this.editor;if(!t.plugins.has("ImageInlineEditing")&&!t.plugins.has("ImageBlockEditing"))return;const e=t.model.schema,r=t.conversion,o=t.plugins.get(On);o.on("register:figure",(()=>{r.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,r,o)=>{const n=r.viewItem;if(!r.modelRange||!n.hasClass("image"))return;const i=t.processViewAttributes(n,o);i&&o.writer.setAttribute("htmlFigureAttributes",i,r.modelRange)}),{priority:"low"})}}(o))})),o.on("register:img",((n,i)=>{"imageBlock"!==i.model&&"imageInline"!==i.model||(e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["htmlImgAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["htmlA","htmlImgAttributes"]}),r.for("upcast").add(function(t){return e=>{e.on("element:img",((e,r,o)=>{if(!r.modelRange)return;const n=r.viewItem,i=t.processViewAttributes(n,o);i&&o.writer.setAttribute("htmlImgAttributes",i,r.modelRange)}),{priority:"low"})}}(o)),r.for("downcast").add((t=>{function e(e){t.on(`attribute:${e}:imageInline`,((t,e,r)=>{if(!r.consumable.consume(e.item,t.name))return;const{attributeOldValue:o,attributeNewValue:n}=e,i=r.mapper.toViewElement(e.item);xo(r.writer,o,n,i)}),{priority:"low"})}function r(e,r){t.on(`attribute:${r}:imageBlock`,((t,r,o)=>{if(!o.consumable.test(r.item,t.name))return;const{attributeOldValue:n,attributeNewValue:i}=r,s=o.mapper.toViewElement(r.item),l=Rn(o.writer,s,e);l&&(xo(o.writer,n,i,l),o.consumable.consume(r.item,t.name))}),{priority:"low"}),"a"===e&&t.on("attribute:linkHref:imageBlock",((t,e,r)=>{if(!r.consumable.consume(e.item,"attribute:htmlLinkAttributes:imageBlock"))return;const o=r.mapper.toViewElement(e.item),n=Rn(r.writer,o,"a");Fo(r.writer,e.item.getAttribute("htmlLinkAttributes"),n)}),{priority:"low"})}e("htmlImgAttributes"),r("img","htmlImgAttributes"),r("figure","htmlFigureAttributes"),r("a","htmlLinkAttributes")})),t.plugins.has("LinkImage")&&r.for("upcast").add(function(t,e){const r=e.plugins.get("ImageUtils");return e=>{e.on("element:a",((e,o,n)=>{const i=o.viewItem;if(!r.findViewImgElement(i))return;const s=o.modelCursor.parent;if(!s.is("element","imageBlock"))return;const l=t.processViewAttributes(i,n);l&&n.writer.setAttribute("htmlLinkAttributes",l,s)}),{priority:"low"})}}(o,t)),n.stop())}))}}class Mn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const t=this.editor;if(!t.plugins.has("MediaEmbed")||t.config.get("mediaEmbed.previewsInData"))return;const e=t.model.schema,r=t.conversion,o=this.editor.plugins.get(On),n=this.editor.plugins.get(hn),i=t.config.get("mediaEmbed.elementName");n.registerBlockElement({model:"media",view:i}),o.on("register:figure",(()=>{r.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,r,o)=>{const n=r.viewItem;if(!r.modelRange||!n.hasClass("media"))return;const i=t.processViewAttributes(n,o);i&&o.writer.setAttribute("htmlFigureAttributes",i,r.modelRange)}),{priority:"low"})}}(o))})),o.on(`register:${i}`,((t,n)=>{"media"===n.model&&(e.extend("media",{allowAttributes:[Po(i),"htmlFigureAttributes"]}),r.for("upcast").add(function(t,e){const r=(r,o,n)=>{function i(e,r){const i=t.processViewAttributes(e,n);i&&n.writer.setAttribute(r,i,o.modelRange)}i(o.viewItem,Po(e))};return t=>{t.on(`element:${e}`,r,{priority:"low"})}}(o,i)),r.for("dataDowncast").add(function(t){return e=>{function r(t,r){e.on(`attribute:${r}:media`,((e,r,o)=>{if(!o.consumable.consume(r.item,e.name))return;const{attributeOldValue:n,attributeNewValue:i}=r,s=o.mapper.toViewElement(r.item),l=Rn(o.writer,s,t);xo(o.writer,n,i,l)}))}r(t,Po(t)),r("figure","htmlFigureAttributes")}}(i)),t.stop())}))}}class Ln extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"ScriptElementSupport"}init(){const t=this.editor.plugins.get(On);t.on("register:script",((e,r)=>{const o=this.editor,n=o.model.schema,i=o.conversion;n.register("htmlScript",r.modelSchema),n.extend("htmlScript",{allowAttributes:["htmlScriptAttributes","htmlContent"],isContent:!0}),o.data.registerRawContentMatcher({name:"script"}),i.for("upcast").elementToElement({view:"script",model:$o(r)}),i.for("upcast").add(Mo(r,t)),i.for("downcast").elementToElement({model:"htmlScript",view:(t,{writer:e})=>Do("script",t,e)}),i.for("downcast").add(Lo(r)),e.stop()}))}}class Vn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"TableElementSupport"}init(){const t=this.editor;if(!t.plugins.has("TableEditing"))return;const e=t.model.schema,r=t.conversion,o=t.plugins.get(On),n=t.plugins.get("TableUtils");o.on("register:figure",(()=>{r.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,r,o)=>{const n=r.viewItem;if(!r.modelRange||!n.hasClass("table"))return;const i=t.processViewAttributes(n,o);i&&o.writer.setAttribute("htmlFigureAttributes",i,r.modelRange)}),{priority:"low"})}}(o))})),o.on("register:table",((i,s)=>{"table"===s.model&&(e.extend("table",{allowAttributes:["htmlTableAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),r.for("upcast").add(function(t){return e=>{e.on("element:table",((e,r,o)=>{if(!r.modelRange)return;const n=r.viewItem;i(n,"htmlTableAttributes");for(const t of n.getChildren())t.is("element","thead")&&i(t,"htmlTheadAttributes"),t.is("element","tbody")&&i(t,"htmlTbodyAttributes");function i(e,n){const i=t.processViewAttributes(e,o);i&&o.writer.setAttribute(n,i,r.modelRange)}}),{priority:"low"})}}(o)),r.for("downcast").add((t=>{function e(e,r){t.on(`attribute:${r}:table`,((t,r,o)=>{if(!o.consumable.test(r.item,t.name))return;const n=o.mapper.toViewElement(r.item),i=Rn(o.writer,n,e);i&&(o.consumable.consume(r.item,t.name),xo(o.writer,r.attributeOldValue,r.attributeNewValue,i))}))}e("table","htmlTableAttributes"),e("figure","htmlFigureAttributes"),e("thead","htmlTheadAttributes"),e("tbody","htmlTbodyAttributes")})),t.model.document.registerPostFixer(function(t,e){return r=>{const o=t.document.differ.getChanges();let n=!1;for(const t of o){if("attribute"!=t.type||"headingRows"!=t.attributeKey)continue;const o=t.range.start.nodeAfter,i=o.getAttribute("htmlTheadAttributes"),s=o.getAttribute("htmlTbodyAttributes");i&&!t.attributeNewValue?(r.removeAttribute("htmlTheadAttributes",o),n=!0):s&&t.attributeNewValue==e.getRows(o)&&(r.removeAttribute("htmlTbodyAttributes",o),n=!0)}return n}}(t.model,n)),i.stop())}))}}class Hn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"StyleElementSupport"}init(){const t=this.editor.plugins.get(On);t.on("register:style",((e,r)=>{const o=this.editor,n=o.model.schema,i=o.conversion;n.register("htmlStyle",r.modelSchema),n.extend("htmlStyle",{allowAttributes:["htmlStyleAttributes","htmlContent"],isContent:!0}),o.data.registerRawContentMatcher({name:"style"}),i.for("upcast").elementToElement({view:"style",model:$o(r)}),i.for("upcast").add(Mo(r,t)),i.for("downcast").elementToElement({model:"htmlStyle",view:(t,{writer:e})=>Do("style",t,e)}),i.for("downcast").add(Lo(r)),e.stop()}))}}const zn=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Un=function(t){return this.__data__.has(t)};function Wn(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new bt;++e<r;)this.add(t[e])}Wn.prototype.add=Wn.prototype.push=zn,Wn.prototype.has=Un;const qn=Wn;const Gn=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o;)if(e(t[r],r,t))return!0;return!1};const Zn=function(t,e){return t.has(e)};const Kn=function(t,e,r,o,n,i){var s=1&r,l=t.length,a=e.length;if(l!=a&&!(s&&a>l))return!1;var c=i.get(t),u=i.get(e);if(c&&u)return c==e&&u==t;var m=-1,d=!0,f=2&r?new qn:void 0;for(i.set(t,e),i.set(e,t);++m<l;){var h=t[m],b=e[m];if(o)var p=s?o(b,h,m,e,t,i):o(h,b,m,t,e,i);if(void 0!==p){if(p)continue;d=!1;break}if(f){if(!Gn(e,(function(t,e){if(!Zn(f,e)&&(h===t||n(h,t,r,o,i)))return f.push(e)}))){d=!1;break}}else if(h!==b&&!n(h,b,r,o,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Yn=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,o){r[++e]=[o,t]})),r};const Jn=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var Xn=E?E.prototype:void 0,Qn=Xn?Xn.valueOf:void 0;const ti=function(t,e,r,o,n,i,s){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ke(t),new Ke(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return l(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=Yn;case"[object Set]":var c=1&o;if(a||(a=Jn),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;o|=2,s.set(t,e);var m=Kn(a(t),a(e),o,n,i,s);return s.delete(t),m;case"[object Symbol]":if(Qn)return Qn.call(t)==Qn.call(e)}return!1};var ei=Object.prototype.hasOwnProperty;const ri=function(t,e,r,o,n,i){var s=1&r,l=xe(t),a=l.length;if(a!=xe(e).length&&!s)return!1;for(var c=a;c--;){var u=l[c];if(!(s?u in e:ei.call(e,u)))return!1}var m=i.get(t),d=i.get(e);if(m&&d)return m==e&&d==t;var f=!0;i.set(t,e),i.set(e,t);for(var h=s;++c<a;){var b=t[u=l[c]],p=e[u];if(o)var g=s?o(p,b,u,e,t,i):o(b,p,u,t,e,i);if(!(void 0===g?b===p||n(b,p,r,o,i):g)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(f=!1)}return i.delete(t),i.delete(e),f};var oi="[object Arguments]",ni="[object Array]",ii="[object Object]",si=Object.prototype.hasOwnProperty;const li=function(t,e,r,o,n,i){var s=Pt(t),l=Pt(e),a=s?ni:qe(t),c=l?ni:qe(e),u=(a=a==oi?ii:a)==ii,m=(c=c==oi?ii:c)==ii,d=a==c;if(d&&Rt(t)){if(!Rt(e))return!1;s=!0,u=!1}if(d&&!u)return i||(i=new vt),s||Kt(t)?Kn(t,e,r,o,n,i):ti(t,e,a,r,o,n,i);if(!(1&r)){var f=u&&si.call(t,"__wrapped__"),h=m&&si.call(e,"__wrapped__");if(f||h){var b=f?t.value():t,p=h?e.value():e;return i||(i=new vt),n(b,p,r,o,i)}}return!!d&&(i||(i=new vt),ri(t,e,r,o,n,i))};const ai=function t(e,r,o,n,i){return e===r||(null==e||null==r||!kt(e)&&!kt(r)?e!=e&&r!=r:li(e,r,o,n,t,i))};const ci=function(t,e){return ai(t,e)};class ui extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"DocumentListElementSupport"}init(){const t=this.editor;if(!t.plugins.has("DocumentListEditing"))return;const e=t.model.schema,r=t.conversion,o=t.plugins.get(On),n=t.plugins.get("DocumentListEditing"),i=["ul","ol","li"];n.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast:Fo}),n.registerDowncastStrategy({scope:"list",attributeName:"htmlUlAttributes",setAttributeOnDowncast:Fo}),n.registerDowncastStrategy({scope:"list",attributeName:"htmlOlAttributes",setAttributeOnDowncast:Fo}),o.on("register",((t,n)=>{if(!i.includes(n.view))return;if(t.stop(),e.checkAttribute("$block","htmlLiAttributes"))return;const s=i.map((t=>Po(t)));e.extend("$listItem",{allowAttributes:s}),r.for("upcast").add((t=>{t.on("element:ul",mi("htmlUlAttributes",o),{priority:"low"}),t.on("element:ol",mi("htmlOlAttributes",o),{priority:"low"}),t.on("element:li",mi("htmlLiAttributes",o),{priority:"low"})}))})),n.on("postFixer",((t,{listNodes:e,writer:r})=>{for(const{node:o,previousNodeInList:n}of e)if(n){if(n.getAttribute("listType")==o.getAttribute("listType")){const e=di(n.getAttribute("listType")),i=n.getAttribute(e);!ci(o.getAttribute(e),i)&&r.model.schema.checkAttribute(o,e)&&(r.setAttribute(e,i,o),t.return=!0)}if(n.getAttribute("listItemId")==o.getAttribute("listItemId")){const e=n.getAttribute("htmlLiAttributes");!ci(o.getAttribute("htmlLiAttributes"),e)&&r.model.schema.checkAttribute(o,"htmlLiAttributes")&&(r.setAttribute("htmlLiAttributes",e,o),t.return=!0)}}})),n.on("postFixer",((t,{listNodes:e,writer:r})=>{for(const{node:o}of e){const e=o.getAttribute("listType");"numbered"!==e&&o.getAttribute("htmlOlAttributes")&&(r.removeAttribute("htmlOlAttributes",o),t.return=!0),"numbered"===e&&o.getAttribute("htmlUlAttributes")&&(r.removeAttribute("htmlUlAttributes",o),t.return=!0)}}))}afterInit(){const t=this.editor;if(!t.commands.get("indentList"))return;const e=t.commands.get("indentList");this.listenTo(e,"afterExecute",((e,r)=>{t.model.change((e=>{for(const o of r){const r=di(o.getAttribute("listType"));t.model.schema.checkAttribute(o,r)&&e.setAttribute(r,{},o)}}))}))}}function mi(t,e){return(r,o,n)=>{const i=o.viewItem;o.modelRange||Object.assign(o,n.convertChildren(o.viewItem,o.modelCursor));const s=e.processViewAttributes(i,n);for(const e of o.modelRange.getItems({shallow:!0}))e.hasAttribute("listItemId")&&(e.hasAttribute(t)||n.writer.model.schema.checkAttribute(e,t)&&n.writer.setAttribute(t,s||{},e))}}function di(t){return"numbered"===t?"htmlOlAttributes":"htmlUlAttributes"}class fi extends t.Plugin{static get requires(){return[On,hn]}static get pluginName(){return"CustomElementSupport"}init(){const t=this.editor.plugins.get(On),e=this.editor.plugins.get(hn);t.on("register:$customElement",((r,o)=>{r.stop();const i=this.editor,s=i.model.schema,l=i.conversion,a=i.editing.view.domConverter.unsafeElements,c=i.data.htmlProcessor.domConverter.preElements;s.register(o.model,o.modelSchema),s.extend(o.model,{allowAttributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"],isContent:!0}),l.for("upcast").elementToElement({view:/.*/,model:(r,s)=>{if("$comment"==r.name)return null;if(!function(t){try{document.createElement(t)}catch(t){return!1}return!0}(r.name))return null;if(e.getDefinitionsForView(r.name).size)return null;a.includes(r.name)||a.push(r.name),c.includes(r.name)||c.push(r.name);const l=s.writer.createElement(o.model,{htmlElementName:r.name}),u=t.processViewAttributes(r,s);u&&s.writer.setAttribute("htmlCustomElementAttributes",u,l);const m=new n.UpcastWriter(r.document).createDocumentFragment(r),d=i.data.processor.toData(m);s.writer.setAttribute("htmlContent",d,l);for(const{item:t}of i.editing.view.createRangeIn(r))s.consumable.consume(t,{name:!0});return l},converterPriority:"low"}),l.for("editingDowncast").elementToElement({model:{name:o.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const r=t.getAttribute("htmlElementName"),o=e.createRawElement(r);return t.hasAttribute("htmlCustomElementAttributes")&&Fo(e,t.getAttribute("htmlCustomElementAttributes"),o),o}}),l.for("dataDowncast").elementToElement({model:{name:o.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const r=t.getAttribute("htmlElementName"),o=t.getAttribute("htmlContent"),n=e.createRawElement(r,null,((t,e)=>{e.setContentOf(t,o);const r=t.firstChild;for(r.remove();r.firstChild;)t.appendChild(r.firstChild)}));return t.hasAttribute("htmlCustomElementAttributes")&&Fo(e,t.getAttribute("htmlCustomElementAttributes"),n),n}})}))}}class hi extends t.Plugin{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[On,$n,Tn,Bn,Nn,Mn,Ln,Vn,Hn,ui,fi]}init(){const t=this.editor,e=t.plugins.get(On);e.loadAllowedEmptyElementsConfig(t.config.get("htmlSupport.allowEmpty")||[]),e.loadAllowedConfig(t.config.get("htmlSupport.allow")||[]),e.loadDisallowedConfig(t.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(t){const e=this.editor.plugins.get("DataSchema"),r=Array.from(e.getDefinitionsForView(t,!1)),o=r.find((t=>t.isInline&&!r[0].isObject));return o?o.model:Po(t)}addModelHtmlClass(t,r,o){const n=this.editor.model,i=this.getGhsAttributeNameForElement(t);n.change((t=>{for(const s of bi(n,o,i))Io(t,s,i,"classes",(t=>{for(const o of(0,e.toArray)(r))t.add(o)}))}))}removeModelHtmlClass(t,r,o){const n=this.editor.model,i=this.getGhsAttributeNameForElement(t);n.change((t=>{for(const s of bi(n,o,i))Io(t,s,i,"classes",(t=>{for(const o of(0,e.toArray)(r))t.delete(o)}))}))}setModelHtmlAttributes(t,e,r){const o=this.editor.model,n=this.getGhsAttributeNameForElement(t);o.change((t=>{for(const i of bi(o,r,n))Io(t,i,n,"attributes",(t=>{for(const[r,o]of Object.entries(e))t.set(r,o)}))}))}removeModelHtmlAttributes(t,r,o){const n=this.editor.model,i=this.getGhsAttributeNameForElement(t);n.change((t=>{for(const s of bi(n,o,i))Io(t,s,i,"attributes",(t=>{for(const o of(0,e.toArray)(r))t.delete(o)}))}))}setModelHtmlStyles(t,e,r){const o=this.editor.model,n=this.getGhsAttributeNameForElement(t);o.change((t=>{for(const i of bi(o,r,n))Io(t,i,n,"styles",(t=>{for(const[r,o]of Object.entries(e))t.set(r,o)}))}))}removeModelHtmlStyles(t,r,o){const n=this.editor.model,i=this.getGhsAttributeNameForElement(t);n.change((t=>{for(const s of bi(n,o,i))Io(t,s,i,"styles",(t=>{for(const o of(0,e.toArray)(r))t.delete(o)}))}))}}function*bi(t,e,r){if(e)if(!(Symbol.iterator in e)&&e.is("documentSelection")&&e.isCollapsed)t.schema.checkAttributeInSelection(e,r)&&(yield e);else for(const o of function(t,e,r){return!(Symbol.iterator in e)&&(e.is("node")||e.is("$text")||e.is("$textProxy"))?t.schema.checkAttribute(e,r)?[t.createRangeOn(e)]:[]:t.schema.getValidRanges(t.createSelection(e).getRanges(),r)}(t,e,r))yield*o.getItems({shallow:!0})}class pi extends t.Plugin{static get pluginName(){return"HtmlComment"}init(){const t=this.editor,r=new Map;t.data.processor.skipComments=!1,t.model.schema.addAttributeCheck(((t,e)=>{if(t.endsWith("$root")&&e.startsWith("$comment"))return!0})),t.conversion.for("upcast").elementToMarker({view:"$comment",model:t=>{const o=`$comment:${(0,e.uid)()}`,n=t.getCustomProperty("$rawContent");return r.set(o,n),o}}),t.conversion.for("dataDowncast").markerToElement({model:"$comment",view:(t,{writer:e})=>{let r;for(const e of this.editor.model.document.getRootNames())if(r=this.editor.model.document.getRoot(e),r.hasAttribute(t.markerName))break;const o=t.markerName,n=r.getAttribute(o),i=e.createUIElement("$comment");return e.setCustomProperty("$rawContent",n,i),i}}),t.model.document.registerPostFixer((e=>{let o=!1;const n=t.model.document.differ.getChangedMarkers().filter((t=>t.name.startsWith("$comment:")));for(const t of n){const{oldRange:n,newRange:i}=t.data;if(!n||!i||n.root!=i.root){if(n){const r=n.root;r.hasAttribute(t.name)&&(e.removeAttribute(t.name,r),o=!0)}if(i){const n=i.root;"$graveyard"==n.rootName?(e.removeMarker(t.name),o=!0):n.hasAttribute(t.name)||(e.setAttribute(t.name,r.get(t.name)||"",n),o=!0)}}}return o})),t.data.on("set",(()=>{for(const e of t.model.markers.getMarkersGroup("$comment"))this.removeHtmlComment(e.name)}),{priority:"high"}),t.model.on("deleteContent",((e,[r])=>{for(const e of r.getRanges()){const r=t.model.schema.getLimitElement(e),o=t.model.createPositionAt(r,0),n=t.model.createPositionAt(r,"end");let i;i=o.isTouching(e.start)&&n.isTouching(e.end)?this.getHtmlCommentsInRange(t.model.createRange(o,n)):this.getHtmlCommentsInRange(e,{skipBoundaries:!0});for(const t of i)this.removeHtmlComment(t)}}),{priority:"high"})}createHtmlComment(t,r){const o=(0,e.uid)(),n=this.editor.model,i=n.document.getRoot(t.root.rootName),s=`$comment:${o}`;return n.change((e=>{const o=e.createRange(t);return e.addMarker(s,{usingOperation:!0,affectsData:!0,range:o}),e.setAttribute(s,r,i),s}))}removeHtmlComment(t){const e=this.editor,r=e.model.markers.get(t);return!!r&&(e.model.change((t=>{t.removeMarker(r)})),!0)}getHtmlCommentData(t){const e=this.editor.model.markers.get(t);if(!e)return null;let r="";for(const e of this.editor.model.document.getRoots())if(e.hasAttribute(t)){r=e.getAttribute(t);break}return{content:r,position:e.getStart()}}getHtmlCommentsInRange(t,{skipBoundaries:e=!1}={}){const r=!e;return Array.from(this.editor.model.markers.getMarkersGroup("$comment")).filter((e=>function(t,e){const o=t.getRange().start;return(o.isAfter(e.start)||r&&o.isEqual(e.start))&&(o.isBefore(e.end)||r&&o.isEqual(e.end))}(e,t))).map((t=>t.name))}}class gi extends n.HtmlDataProcessor{toView(t){if(!t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i))return super.toView(t);let e="",r="";t=(t=t.replace(/<!DOCTYPE[^>]*>/i,(t=>(e=t,"")))).replace(/<\?xml\s[^?]*\?>/i,(t=>(r=t,"")));const o=this._toDom(t),i=this.domConverter.domToView(o,{skipComments:this.skipComments}),s=new n.UpcastWriter(i.document);return s.setCustomProperty("$fullPageDocument",o.ownerDocument.documentElement.outerHTML,i),e&&s.setCustomProperty("$fullPageDocType",e,i),r&&s.setCustomProperty("$fullPageXmlDeclaration",r,i),i}toData(t){let e=super.toData(t);const r=t.getCustomProperty("$fullPageDocument"),o=t.getCustomProperty("$fullPageDocType"),n=t.getCustomProperty("$fullPageXmlDeclaration");return r&&(e=r.replace(/<\/body\s*>/,e+"$&"),o&&(e=o+"\n"+e),n&&(e=n+"\n"+e)),e}}class vi extends t.Plugin{static get pluginName(){return"FullPage"}init(){const t=this.editor,e=["$fullPageDocument","$fullPageDocType","$fullPageXmlDeclaration"];t.data.processor=new gi(t.data.viewDocument),t.model.schema.extend("$root",{allowAttributes:e}),t.data.on("toModel",((r,[o])=>{const n=t.model.document.getRoot();t.model.change((t=>{for(const r of e){const e=o.getCustomProperty(r);e&&t.setAttribute(r,e,n)}}))}),{priority:"low"}),t.data.on("toView",((t,[r])=>{if(!r.is("rootElement"))return;const o=r,i=t.return;if(!o.hasAttribute("$fullPageDocument"))return;const s=new n.UpcastWriter(i.document);for(const t of e){const e=o.getAttribute(t);e&&s.setCustomProperty(t,e,i)}}),{priority:"low"}),t.data.on("set",(()=>{const r=t.model.document.getRoot();t.model.change((t=>{for(const o of e)r.hasAttribute(o)&&t.removeAttribute(o,r)}))}),{priority:"high"}),t.data.on("get",((t,e)=>{e[0]||(e[0]={}),e[0].trim=!1}),{priority:"high"})}}})(),(window.CKEditor5=window.CKEditor5||{}).htmlSupport=o})(); \ No newline at end of file + */(()=>{var t={90:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var o=r(609),n=r.n(o)()((function(t){return t[1]}));n.push([t.id,":root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base);min-width:calc(76px + var(--ck-spacing-standard));padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-object-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);font-style:normal;font-weight:400;left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);position:absolute;top:0;transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}",""]);const i=n},609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,o){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(o)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(n[s]=!0)}for(var l=0;l<t.length;l++){var a=[].concat(t[l]);o&&n[a[0]]||(r&&(a[2]?a[2]="".concat(r," and ").concat(a[2]):a[2]=r),e.push(a))}},e}},62:(t,e,r)=>{"use strict";var o,n=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),s=[];function l(t){for(var e=-1,r=0;r<s.length;r++)if(s[r].identifier===t){e=r;break}return e}function a(t,e){for(var r={},o=[],n=0;n<t.length;n++){var i=t[n],a=e.base?i[0]+e.base:i[0],c=r[a]||0,u="".concat(a," ").concat(c);r[a]=c+1;var m=l(u),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==m?(s[m].references++,s[m].updater(d)):s.push({identifier:u,updater:p(d,e),references:1}),o.push(u)}return o}function c(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var n=r.nc;n&&(o.nonce=n)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var s=i(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,m=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,r,o){var n=r?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=m(e,n);else{var i=document.createTextNode(n),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function f(t,e,r){var o=r.css,n=r.media,i=r.sourceMap;if(n?t.setAttribute("media",n):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var h=null,b=0;function p(t,e){var r,o,n;if(e.singleton){var i=b++;r=h||(h=c(e)),o=d.bind(null,r,i,!1),n=d.bind(null,r,i,!0)}else r=c(e),o=f.bind(null,r,e),n=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else n()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=n());var r=a(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<r.length;o++){var n=l(r[o]);s[n].references--}for(var i=a(t,e),c=0;c<r.length;c++){var u=l(r[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}r=i}}}},704:(t,e,r)=>{t.exports=r(79)("./src/core.js")},492:(t,e,r)=>{t.exports=r(79)("./src/engine.js")},331:(t,e,r)=>{t.exports=r(79)("./src/enter.js")},209:(t,e,r)=>{t.exports=r(79)("./src/utils.js")},995:(t,e,r)=>{t.exports=r(79)("./src/widget.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={id:o,exports:{}};return t[o](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nc=void 0;var o={};(()=>{"use strict";r.r(o),r.d(o,{DataFilter:()=>On,DataSchema:()=>hn,FullPage:()=>vi,GeneralHtmlSupport:()=>hi,HtmlComment:()=>pi,HtmlPageDataProcessor:()=>gi});var t=r(704),e=r(209),n=r(492),i=r(995);const s=function(){this.__data__=[],this.size=0};const l=function(t,e){return t===e||t!=t&&e!=e};const a=function(t,e){for(var r=t.length;r--;)if(l(t[r][0],e))return r;return-1};var c=Array.prototype.splice;const u=function(t){var e=this.__data__,r=a(e,t);return!(r<0)&&(r==e.length-1?e.pop():c.call(e,r,1),--this.size,!0)};const m=function(t){var e=this.__data__,r=a(e,t);return r<0?void 0:e[r][1]};const d=function(t){return a(this.__data__,t)>-1};const f=function(t,e){var r=this.__data__,o=a(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};function h(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}h.prototype.clear=s,h.prototype.delete=u,h.prototype.get=m,h.prototype.has=d,h.prototype.set=f;const b=h;const p=function(){this.__data__=new b,this.size=0};const g=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};const v=function(t){return this.__data__.get(t)};const w=function(t){return this.__data__.has(t)};const y="object"==typeof global&&global&&global.Object===Object&&global;var A="object"==typeof self&&self&&self.Object===Object&&self;const j=y||A||Function("return this")();const E=j.Symbol;var _=Object.prototype,S=_.hasOwnProperty,k=_.toString,O=E?E.toStringTag:void 0;const C=function(t){var e=S.call(t,O),r=t[O];try{t[O]=void 0;var o=!0}catch(t){}var n=k.call(t);return o&&(e?t[O]=r:delete t[O]),n};var x=Object.prototype.toString;const F=function(t){return x.call(t)};var I=E?E.toStringTag:void 0;const P=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":I&&I in Object(t)?C(t):F(t)};const $=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const T=function(t){if(!$(t))return!1;var e=P(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const D=j["__core-js_shared__"];var B,R=(B=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"";const N=function(t){return!!R&&R in t};var M=Function.prototype.toString;const L=function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var V=/^\[object .+?Constructor\]$/,H=Function.prototype,z=Object.prototype,U=H.toString,W=z.hasOwnProperty,q=RegExp("^"+U.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const G=function(t){return!(!$(t)||N(t))&&(T(t)?q:V).test(L(t))};const Z=function(t,e){return null==t?void 0:t[e]};const K=function(t,e){var r=Z(t,e);return G(r)?r:void 0};const Y=K(j,"Map");const J=K(Object,"create");const X=function(){this.__data__=J?J(null):{},this.size=0};const Q=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var tt=Object.prototype.hasOwnProperty;const et=function(t){var e=this.__data__;if(J){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return tt.call(e,t)?e[t]:void 0};var rt=Object.prototype.hasOwnProperty;const ot=function(t){var e=this.__data__;return J?void 0!==e[t]:rt.call(e,t)};const nt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this};function it(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}it.prototype.clear=X,it.prototype.delete=Q,it.prototype.get=et,it.prototype.has=ot,it.prototype.set=nt;const st=it;const lt=function(){this.size=0,this.__data__={hash:new st,map:new(Y||b),string:new st}};const at=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const ct=function(t,e){var r=t.__data__;return at(e)?r["string"==typeof e?"string":"hash"]:r.map};const ut=function(t){var e=ct(this,t).delete(t);return this.size-=e?1:0,e};const mt=function(t){return ct(this,t).get(t)};const dt=function(t){return ct(this,t).has(t)};const ft=function(t,e){var r=ct(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};function ht(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}ht.prototype.clear=lt,ht.prototype.delete=ut,ht.prototype.get=mt,ht.prototype.has=dt,ht.prototype.set=ft;const bt=ht;const pt=function(t,e){var r=this.__data__;if(r instanceof b){var o=r.__data__;if(!Y||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new bt(o)}return r.set(t,e),this.size=r.size,this};function gt(t){var e=this.__data__=new b(t);this.size=e.size}gt.prototype.clear=p,gt.prototype.delete=g,gt.prototype.get=v,gt.prototype.has=w,gt.prototype.set=pt;const vt=gt;const wt=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o&&!1!==e(t[r],r,t););return t};const yt=function(){try{var t=K(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const At=function(t,e,r){"__proto__"==e&&yt?yt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var jt=Object.prototype.hasOwnProperty;const Et=function(t,e,r){var o=t[e];jt.call(t,e)&&l(o,r)&&(void 0!==r||e in t)||At(t,e,r)};const _t=function(t,e,r,o){var n=!r;r||(r={});for(var i=-1,s=e.length;++i<s;){var l=e[i],a=o?o(r[l],t[l],l,r,t):void 0;void 0===a&&(a=t[l]),n?At(r,l,a):Et(r,l,a)}return r};const St=function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o};const kt=function(t){return null!=t&&"object"==typeof t};const Ot=function(t){return kt(t)&&"[object Arguments]"==P(t)};var Ct=Object.prototype,xt=Ct.hasOwnProperty,Ft=Ct.propertyIsEnumerable;const It=Ot(function(){return arguments}())?Ot:function(t){return kt(t)&&xt.call(t,"callee")&&!Ft.call(t,"callee")};const Pt=Array.isArray;const $t=function(){return!1};var Tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Dt=Tt&&"object"==typeof module&&module&&!module.nodeType&&module,Bt=Dt&&Dt.exports===Tt?j.Buffer:void 0;const Rt=(Bt?Bt.isBuffer:void 0)||$t;var Nt=/^(?:0|[1-9]\d*)$/;const Mt=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Nt.test(t))&&t>-1&&t%1==0&&t<e};const Lt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Vt={};Vt["[object Float32Array]"]=Vt["[object Float64Array]"]=Vt["[object Int8Array]"]=Vt["[object Int16Array]"]=Vt["[object Int32Array]"]=Vt["[object Uint8Array]"]=Vt["[object Uint8ClampedArray]"]=Vt["[object Uint16Array]"]=Vt["[object Uint32Array]"]=!0,Vt["[object Arguments]"]=Vt["[object Array]"]=Vt["[object ArrayBuffer]"]=Vt["[object Boolean]"]=Vt["[object DataView]"]=Vt["[object Date]"]=Vt["[object Error]"]=Vt["[object Function]"]=Vt["[object Map]"]=Vt["[object Number]"]=Vt["[object Object]"]=Vt["[object RegExp]"]=Vt["[object Set]"]=Vt["[object String]"]=Vt["[object WeakMap]"]=!1;const Ht=function(t){return kt(t)&&Lt(t.length)&&!!Vt[P(t)]};const zt=function(t){return function(e){return t(e)}};var Ut="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wt=Ut&&"object"==typeof module&&module&&!module.nodeType&&module,qt=Wt&&Wt.exports===Ut&&y.process;const Gt=function(){try{var t=Wt&&Wt.require&&Wt.require("util").types;return t||qt&&qt.binding&&qt.binding("util")}catch(t){}}();var Zt=Gt&&Gt.isTypedArray;const Kt=Zt?zt(Zt):Ht;var Yt=Object.prototype.hasOwnProperty;const Jt=function(t,e){var r=Pt(t),o=!r&&It(t),n=!r&&!o&&Rt(t),i=!r&&!o&&!n&&Kt(t),s=r||o||n||i,l=s?St(t.length,String):[],a=l.length;for(var c in t)!e&&!Yt.call(t,c)||s&&("length"==c||n&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Mt(c,a))||l.push(c);return l};var Xt=Object.prototype;const Qt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Xt)};const te=function(t,e){return function(r){return t(e(r))}};const ee=te(Object.keys,Object);var re=Object.prototype.hasOwnProperty;const oe=function(t){if(!Qt(t))return ee(t);var e=[];for(var r in Object(t))re.call(t,r)&&"constructor"!=r&&e.push(r);return e};const ne=function(t){return null!=t&&Lt(t.length)&&!T(t)};const ie=function(t){return ne(t)?Jt(t):oe(t)};const se=function(t,e){return t&&_t(e,ie(e),t)};const le=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var ae=Object.prototype.hasOwnProperty;const ce=function(t){if(!$(t))return le(t);var e=Qt(t),r=[];for(var o in t)("constructor"!=o||!e&&ae.call(t,o))&&r.push(o);return r};const ue=function(t){return ne(t)?Jt(t,!0):ce(t)};const me=function(t,e){return t&&_t(e,ue(e),t)};var de="object"==typeof exports&&exports&&!exports.nodeType&&exports,fe=de&&"object"==typeof module&&module&&!module.nodeType&&module,he=fe&&fe.exports===de?j.Buffer:void 0,be=he?he.allocUnsafe:void 0;const pe=function(t,e){if(e)return t.slice();var r=t.length,o=be?be(r):new t.constructor(r);return t.copy(o),o};const ge=function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e};const ve=function(t,e){for(var r=-1,o=null==t?0:t.length,n=0,i=[];++r<o;){var s=t[r];e(s,r,t)&&(i[n++]=s)}return i};const we=function(){return[]};var ye=Object.prototype.propertyIsEnumerable,Ae=Object.getOwnPropertySymbols;const je=Ae?function(t){return null==t?[]:(t=Object(t),ve(Ae(t),(function(e){return ye.call(t,e)})))}:we;const Ee=function(t,e){return _t(t,je(t),e)};const _e=function(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t};const Se=te(Object.getPrototypeOf,Object);const ke=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)_e(e,je(t)),t=Se(t);return e}:we;const Oe=function(t,e){return _t(t,ke(t),e)};const Ce=function(t,e,r){var o=e(t);return Pt(t)?o:_e(o,r(t))};const xe=function(t){return Ce(t,ie,je)};const Fe=function(t){return Ce(t,ue,ke)};const Ie=K(j,"DataView");const Pe=K(j,"Promise");const $e=K(j,"Set");const Te=K(j,"WeakMap");var De="[object Map]",Be="[object Promise]",Re="[object Set]",Ne="[object WeakMap]",Me="[object DataView]",Le=L(Ie),Ve=L(Y),He=L(Pe),ze=L($e),Ue=L(Te),We=P;(Ie&&We(new Ie(new ArrayBuffer(1)))!=Me||Y&&We(new Y)!=De||Pe&&We(Pe.resolve())!=Be||$e&&We(new $e)!=Re||Te&&We(new Te)!=Ne)&&(We=function(t){var e=P(t),r="[object Object]"==e?t.constructor:void 0,o=r?L(r):"";if(o)switch(o){case Le:return Me;case Ve:return De;case He:return Be;case ze:return Re;case Ue:return Ne}return e});const qe=We;var Ge=Object.prototype.hasOwnProperty;const Ze=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Ge.call(t,"index")&&(r.index=t.index,r.input=t.input),r};const Ke=j.Uint8Array;const Ye=function(t){var e=new t.constructor(t.byteLength);return new Ke(e).set(new Ke(t)),e};const Je=function(t,e){var r=e?Ye(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)};var Xe=/\w*$/;const Qe=function(t){var e=new t.constructor(t.source,Xe.exec(t));return e.lastIndex=t.lastIndex,e};var tr=E?E.prototype:void 0,er=tr?tr.valueOf:void 0;const rr=function(t){return er?Object(er.call(t)):{}};const or=function(t,e){var r=e?Ye(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};const nr=function(t,e,r){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Ye(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Je(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return or(t,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Qe(t);case"[object Symbol]":return rr(t)}};var ir=Object.create;const sr=function(){function t(){}return function(e){if(!$(e))return{};if(ir)return ir(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const lr=function(t){return"function"!=typeof t.constructor||Qt(t)?{}:sr(Se(t))};const ar=function(t){return kt(t)&&"[object Map]"==qe(t)};var cr=Gt&&Gt.isMap;const ur=cr?zt(cr):ar;const mr=function(t){return kt(t)&&"[object Set]"==qe(t)};var dr=Gt&&Gt.isSet;const fr=dr?zt(dr):mr;var hr="[object Arguments]",br="[object Function]",pr="[object Object]",gr={};gr[hr]=gr["[object Array]"]=gr["[object ArrayBuffer]"]=gr["[object DataView]"]=gr["[object Boolean]"]=gr["[object Date]"]=gr["[object Float32Array]"]=gr["[object Float64Array]"]=gr["[object Int8Array]"]=gr["[object Int16Array]"]=gr["[object Int32Array]"]=gr["[object Map]"]=gr["[object Number]"]=gr[pr]=gr["[object RegExp]"]=gr["[object Set]"]=gr["[object String]"]=gr["[object Symbol]"]=gr["[object Uint8Array]"]=gr["[object Uint8ClampedArray]"]=gr["[object Uint16Array]"]=gr["[object Uint32Array]"]=!0,gr["[object Error]"]=gr[br]=gr["[object WeakMap]"]=!1;const vr=function t(e,r,o,n,i,s){var l,a=1&r,c=2&r,u=4&r;if(o&&(l=i?o(e,n,i,s):o(e)),void 0!==l)return l;if(!$(e))return e;var m=Pt(e);if(m){if(l=Ze(e),!a)return ge(e,l)}else{var d=qe(e),f=d==br||"[object GeneratorFunction]"==d;if(Rt(e))return pe(e,a);if(d==pr||d==hr||f&&!i){if(l=c||f?{}:lr(e),!a)return c?Oe(e,me(l,e)):Ee(e,se(l,e))}else{if(!gr[d])return i?e:{};l=nr(e,d,a)}}s||(s=new vt);var h=s.get(e);if(h)return h;s.set(e,l),fr(e)?e.forEach((function(n){l.add(t(n,r,o,n,e,s))})):ur(e)&&e.forEach((function(n,i){l.set(i,t(n,r,o,i,e,s))}));var b=m?void 0:(u?c?Fe:xe:c?ue:ie)(e);return wt(b||e,(function(n,i){b&&(n=e[i=n]),Et(l,i,t(n,r,o,i,e,s))})),l};const wr=function(t){return vr(t,5)};const yr=function(t,e,r,o){var n=-1,i=null==t?0:t.length;for(o&&i&&(r=t[++n]);++n<i;)r=e(r,t[n],n,t);return r};const Ar=function(t){return function(e){return null==t?void 0:t[e]}}({À:"A",Ã:"A",Â:"A",Ã:"A",Ä:"A",Ã…:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ç:"C",ç:"c",Ã:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",ÃŒ:"I",Ã:"I",ÃŽ:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ã’:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ãœ:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ä€:"A",Ä‚:"A",Ä„:"A",Ä:"a",ă:"a",Ä…:"a",Ć:"C",Ĉ:"C",ÄŠ:"C",ÄŒ:"C",ć:"c",ĉ:"c",Ä‹:"c",Ä:"c",ÄŽ:"D",Ä:"D",Ä:"d",Ä‘:"d",Ä’:"E",Ä”:"E",Ä–:"E",Ę:"E",Äš:"E",Ä“:"e",Ä•:"e",Ä—:"e",Ä™:"e",Ä›:"e",Äœ:"G",Äž:"G",Ä :"G",Ä¢:"G",Ä:"g",ÄŸ:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",Ä°:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å€:"l",Å‚:"l",Ń:"N",Å…:"N",Ň:"N",ÅŠ:"N",Å„:"n",ņ:"n",ň:"n",Å‹:"n",ÅŒ:"O",ÅŽ:"O",Å:"O",Å:"o",Å:"o",Å‘:"o",Å”:"R",Å–:"R",Ř:"R",Å•:"r",Å—:"r",Å™:"r",Åš:"S",Åœ:"S",Åž:"S",Å :"S",Å›:"s",Å:"s",ÅŸ:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Å°:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å’:"Oe",Å“:"oe",ʼn:"'n",Å¿:"s"});const jr=function(t,e){for(var r=-1,o=null==t?0:t.length,n=Array(o);++r<o;)n[r]=e(t[r],r,t);return n};const Er=function(t){return"symbol"==typeof t||kt(t)&&"[object Symbol]"==P(t)};var _r=E?E.prototype:void 0,Sr=_r?_r.toString:void 0;const kr=function t(e){if("string"==typeof e)return e;if(Pt(e))return jr(e,t)+"";if(Er(e))return Sr?Sr.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};const Or=function(t){return null==t?"":kr(t)};var Cr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const Fr=function(t){return(t=Or(t))&&t.replace(Cr,Ar).replace(xr,"")};var Ir=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const Pr=function(t){return t.match(Ir)||[]};var $r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const Tr=function(t){return $r.test(t)};var Dr="\\ud800-\\udfff",Br="\\u2700-\\u27bf",Rr="a-z\\xdf-\\xf6\\xf8-\\xff",Nr="A-Z\\xc0-\\xd6\\xd8-\\xde",Mr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lr="["+Mr+"]",Vr="\\d+",Hr="["+Br+"]",zr="["+Rr+"]",Ur="[^"+Dr+Mr+Vr+Br+Rr+Nr+"]",Wr="(?:\\ud83c[\\udde6-\\uddff]){2}",qr="[\\ud800-\\udbff][\\udc00-\\udfff]",Gr="["+Nr+"]",Zr="(?:"+zr+"|"+Ur+")",Kr="(?:"+Gr+"|"+Ur+")",Yr="(?:['’](?:d|ll|m|re|s|t|ve))?",Jr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Qr="[\\ufe0e\\ufe0f]?",to=Qr+Xr+("(?:\\u200d(?:"+["[^"+Dr+"]",Wr,qr].join("|")+")"+Qr+Xr+")*"),eo="(?:"+[Hr,Wr,qr].join("|")+")"+to,ro=RegExp([Gr+"?"+zr+"+"+Yr+"(?="+[Lr,Gr,"$"].join("|")+")",Kr+"+"+Jr+"(?="+[Lr,Gr+Zr,"$"].join("|")+")",Gr+"?"+Zr+"+"+Yr,Gr+"+"+Jr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vr,eo].join("|"),"g");const oo=function(t){return t.match(ro)||[]};const no=function(t,e,r){return t=Or(t),void 0===(e=r?void 0:e)?Tr(t)?oo(t):Pr(t):t.match(e)||[]};var io=RegExp("['’]","g");const so=function(t){return function(e){return yr(no(Fr(e).replace(io,"")),t,"")}};const lo=function(t,e,r){var o=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(r=r>n?n:r)<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(n);++o<n;)i[o]=t[o+e];return i};const ao=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:lo(t,e,r)};var co=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const uo=function(t){return co.test(t)};const mo=function(t){return t.split("")};var fo="\\ud800-\\udfff",ho="["+fo+"]",bo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",po="\\ud83c[\\udffb-\\udfff]",go="[^"+fo+"]",vo="(?:\\ud83c[\\udde6-\\uddff]){2}",wo="[\\ud800-\\udbff][\\udc00-\\udfff]",yo="(?:"+bo+"|"+po+")"+"?",Ao="[\\ufe0e\\ufe0f]?",jo=Ao+yo+("(?:\\u200d(?:"+[go,vo,wo].join("|")+")"+Ao+yo+")*"),Eo="(?:"+[go+bo+"?",bo,vo,wo,ho].join("|")+")",_o=RegExp(po+"(?="+po+")|"+Eo+jo,"g");const So=function(t){return t.match(_o)||[]};const ko=function(t){return uo(t)?So(t):mo(t)};const Oo=function(t){return function(e){e=Or(e);var r=uo(e)?ko(e):void 0,o=r?r[0]:e.charAt(0),n=r?ao(r,1).join(""):e.slice(1);return o[t]()+n}}("toUpperCase");const Co=so((function(t,e,r){return t+(r?" ":"")+Oo(e)}));function xo(t,e,r,o){e&&function(t,e,r){if(e.attributes)for(const[o]of Object.entries(e.attributes))t.removeAttribute(o,r);if(e.styles)for(const o of Object.keys(e.styles))t.removeStyle(o,r);e.classes&&t.removeClass(e.classes,r)}(t,e,o),r&&Fo(t,r,o)}function Fo(t,e,r){if(e.attributes)for(const[o,n]of Object.entries(e.attributes))t.setAttribute(o,n,r);e.styles&&t.setStyle(e.styles,r),e.classes&&t.addClass(e.classes,r)}function Io(t,e,r,o,n){const i=e.getAttribute(r),s={};for(const t of["attributes","styles","classes"]){if(t!=o){i&&i[t]&&(s[t]=i[t]);continue}if("classes"==o){const e=new Set(i&&i.classes||[]);n(e),e.size&&(s[t]=Array.from(e));continue}const e=new Map(Object.entries(i&&i[t]||{}));n(e),e.size&&(s[t]=Object.fromEntries(e))}Object.keys(s).length?e.is("documentSelection")?t.setSelectionAttribute(r,s):t.setAttribute(r,s,e):i&&(e.is("documentSelection")?t.removeSelectionAttribute(r):t.removeAttribute(r,e))}function Po(t){return`html${e=t,Co(e).replace(/ /g,"")}Attributes`;var e}function $o({model:t}){return(e,r)=>r.writer.createElement(t,{htmlContent:e.getCustomProperty("$rawContent")})}function To(t,{view:e,isInline:r}){const o=t.t;return(t,{writer:n})=>{const s=o("HTML object"),l=Do(e,t,n),a=t.getAttribute(Po(e));n.addClass("html-object-embed__content",l),a&&Fo(n,a,l);const c=n.createContainerElement(r?"span":"div",{class:"html-object-embed","data-html-object-embed-label":s},l);return(0,i.toWidget)(c,n,{label:s})}}function Do(t,e,r){return r.createRawElement(t,null,((t,r)=>{r.setContentOf(t,e.getAttribute("htmlContent"))}))}function Bo({view:t,model:e,allowEmpty:r},o){return e=>{e.on(`element:${t}`,((t,e,i)=>{let s=o.processViewAttributes(e.viewItem,i);if(s||i.consumable.test(e.viewItem,{name:!0})){if(s=s||{},i.consumable.consume(e.viewItem,{name:!0}),e.modelRange||(e=Object.assign(e,i.convertChildren(e.viewItem,e.modelCursor))),r&&e.modelRange.isCollapsed&&Object.keys(s).length){const t=i.writer.createElement("htmlEmptyElement");if(!i.safeInsert(t,e.modelCursor))return;const r=i.getSplitParts(t);return e.modelRange=i.writer.createRange(e.modelRange.start,i.writer.createPositionAfter(r[r.length-1])),i.updateConversionResult(t,e),void n(t,s,i)}for(const t of e.modelRange.getItems())n(t,s,i)}}),{priority:"low"})};function n(t,r,o){if(o.schema.checkAttribute(t,e)){const n=function(t,e){const r=wr(t);let o="attributes";for(o in e)r[o]="classes"==o?Array.from(new Set([...t[o]||[],...e[o]])):{...t[o],...e[o]};return r}(r,t.getAttribute(e)||{});o.writer.setAttribute(e,n,t)}}}function Ro({model:t,view:e},r){return(o,{writer:n,consumable:s})=>{if(!o.hasAttribute(t))return null;const l=n.createContainerElement(e),a=o.getAttribute(t);return s.consume(o,`attribute:${t}`),Fo(n,a,l),l.getFillerOffset=()=>null,r?(0,i.toWidget)(l,n):l}}function No({priority:t,view:e}){return(r,o)=>{if(!r)return;const{writer:n}=o,i=n.createAttributeElement(e,null,{priority:t});return Fo(n,r,i),i}}function Mo({view:t},e){return r=>{r.on(`element:${t}`,((t,r,o)=>{if(!r.modelRange||r.modelRange.isCollapsed)return;const n=e.processViewAttributes(r.viewItem,o);n&&o.writer.setAttribute(Po(r.viewItem.name),n,r.modelRange)}),{priority:"low"})}}function Lo({view:t,model:e}){return r=>{r.on(`attribute:${Po(t)}:${e}`,((t,e,r)=>{if(!r.consumable.consume(e.item,t.name))return;const{attributeOldValue:o,attributeNewValue:n}=e;xo(r.writer,o,n,r.mapper.toViewElement(e.item))}))}}const Vo=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"tableColumnGroup",view:"colgroup"},{model:"tableColumn",view:"col"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:"$text",allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDivDl",view:"div",modelSchema:{allowChildren:["htmlDt","htmlDd"],allowIn:"htmlDl"}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd","htmlDivDl"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],Ho=[{model:"htmlLiAttributes",view:"li",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlOlAttributes",view:"ol",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlUlAttributes",view:"ul",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"table"},{model:"htmlTheadAttributes",view:"thead",appliesToBlock:"table"},{model:"htmlTbodyAttributes",view:"tbody",appliesToBlock:"table"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"imageBlock"},{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref"},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],allowAttributesOf:"$inlineObject",isInline:!0}}];const zo=function(t,e,r){(void 0!==r&&!l(t[e],r)||void 0===r&&!(e in t))&&At(t,e,r)};const Uo=function(t){return function(e,r,o){for(var n=-1,i=Object(e),s=o(e),l=s.length;l--;){var a=s[t?l:++n];if(!1===r(i[a],a,i))break}return e}}();const Wo=function(t){return kt(t)&&ne(t)};var qo=Function.prototype,Go=Object.prototype,Zo=qo.toString,Ko=Go.hasOwnProperty,Yo=Zo.call(Object);const Jo=function(t){if(!kt(t)||"[object Object]"!=P(t))return!1;var e=Se(t);if(null===e)return!0;var r=Ko.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Zo.call(r)==Yo};const Xo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};const Qo=function(t){return _t(t,ue(t))};const tn=function(t,e,r,o,n,i,s){var l=Xo(t,r),a=Xo(e,r),c=s.get(a);if(c)zo(t,r,c);else{var u=i?i(l,a,r+"",t,e,s):void 0,m=void 0===u;if(m){var d=Pt(a),f=!d&&Rt(a),h=!d&&!f&&Kt(a);u=a,d||f||h?Pt(l)?u=l:Wo(l)?u=ge(l):f?(m=!1,u=pe(a,!0)):h?(m=!1,u=or(a,!0)):u=[]:Jo(a)||It(a)?(u=l,It(l)?u=Qo(l):$(l)&&!T(l)||(u=lr(a))):m=!1}m&&(s.set(a,u),n(u,a,o,i,s),s.delete(a)),zo(t,r,u)}};const en=function t(e,r,o,n,i){e!==r&&Uo(r,(function(s,l){if(i||(i=new vt),$(s))tn(e,r,l,o,t,n,i);else{var a=n?n(Xo(e,l),s,l+"",e,r,i):void 0;void 0===a&&(a=s),zo(e,l,a)}}),ue)};const rn=function(t){return t};const on=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var nn=Math.max;const sn=function(t,e,r){return e=nn(void 0===e?t.length-1:e,0),function(){for(var o=arguments,n=-1,i=nn(o.length-e,0),s=Array(i);++n<i;)s[n]=o[e+n];n=-1;for(var l=Array(e+1);++n<e;)l[n]=o[n];return l[e]=r(s),on(t,this,l)}};const ln=function(t){return function(){return t}};const an=yt?function(t,e){return yt(t,"toString",{configurable:!0,enumerable:!1,value:ln(e),writable:!0})}:rn;var cn=Date.now;const un=function(t){var e=0,r=0;return function(){var o=cn(),n=16-(o-r);if(r=o,n>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(an);const mn=function(t,e){return un(sn(t,e,rn),t+"")};const dn=function(t,e,r){if(!$(r))return!1;var o=typeof e;return!!("number"==o?ne(r)&&Mt(e,r.length):"string"==o&&e in r)&&l(r[e],t)};const fn=function(t){return mn((function(e,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(n--,i):void 0,s&&dn(r[0],r[1],s)&&(i=n<3?void 0:i,n=1),e=Object(e);++o<n;){var l=r[o];l&&t(e,l,o,i)}return e}))}((function(t,e,r,o){en(t,e,r,o)}));class hn extends t.Plugin{constructor(){super(...arguments),this._definitions=[]}static get pluginName(){return"DataSchema"}init(){for(const t of Vo)this.registerBlockElement(t);for(const t of Ho)this.registerInlineElement(t)}registerBlockElement(t){this._definitions.push({...t,isBlock:!0})}registerInlineElement(t){this._definitions.push({...t,isInline:!0})}extendBlockElement(t){this._extendDefinition({...t,isBlock:!0})}extendInlineElement(t){this._extendDefinition({...t,isInline:!0})}getDefinitionsForView(t,e=!1){const r=new Set;for(const o of this._getMatchingViewDefinitions(t)){if(e)for(const t of this._getReferences(o.model))r.add(t);r.add(o)}return r}getDefinitionsForModel(t){return this._definitions.filter((e=>e.model==t))}_getMatchingViewDefinitions(t){return this._definitions.filter((e=>e.view&&function(t,e){if("string"==typeof t)return t===e;if(t instanceof RegExp)return t.test(e);return!1}(t,e.view)))}*_getReferences(t){const r=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"],o=this._definitions.filter((e=>e.model==t));for(const{modelSchema:n}of o)if(n)for(const o of r)for(const r of(0,e.toArray)(n[o]||[])){const e=this._definitions.filter((t=>t.model==r));for(const o of e)r!==t&&(yield*this._getReferences(o.model),yield o)}}_extendDefinition(t){const e=Array.from(this._definitions.entries()).filter((([,e])=>e.model==t.model));if(0!=e.length)for(const[r,o]of e)this._definitions[r]=fn({},o,t,((t,e)=>Array.isArray(t)?t.concat(e):void 0));else this._definitions.push(t)}}const bn=function(t,e,r,o){for(var n=t.length,i=r+(o?1:-1);o?i--:++i<n;)if(e(t[i],i,t))return i;return-1};const pn=function(t){return t!=t};const gn=function(t,e,r){for(var o=r-1,n=t.length;++o<n;)if(t[o]===e)return o;return-1};const vn=function(t,e,r){return e==e?gn(t,e,r):bn(t,pn,r)};const wn=function(t,e,r,o){for(var n=r-1,i=t.length;++n<i;)if(o(t[n],e))return n;return-1};var yn=Array.prototype.splice;const An=function(t,e,r,o){var n=o?wn:vn,i=-1,s=e.length,l=t;for(t===e&&(e=ge(e)),r&&(l=jr(t,zt(r)));++i<s;)for(var a=0,c=e[i],u=r?r(c):c;(a=n(l,u,a,o))>-1;)l!==t&&yn.call(l,a,1),yn.call(t,a,1);return t};const jn=mn((function(t,e){return t&&t.length&&e&&e.length?An(t,e):t}));var En=r(62),_n=r.n(En),Sn=r(90),kn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_n()(Sn.Z,kn);Sn.Z.locals;class On extends t.Plugin{constructor(t){super(t),this._dataSchema=t.plugins.get("DataSchema"),this._allowedAttributes=new n.Matcher,this._disallowedAttributes=new n.Matcher,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerCoupledAttributesPostFixer(),this._registerAssociatedHtmlAttributesPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[hn,i.Widget]}loadAllowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,r=Pn(e);this.allowElement(t),r.forEach((t=>this.allowAttributes(t)))}}loadDisallowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,r=Pn(e);0==r.length?this.disallowElement(t):r.forEach((t=>this.disallowAttributes(t)))}}loadAllowedEmptyElementsConfig(t){for(const e of t)this.allowEmptyElement(e)}allowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))this._addAllowedElement(e),this._coupledAttributes=null}disallowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!1))this._disallowedElements.add(e.view)}allowEmptyElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))e.isInline&&this._dataSchema.extendInlineElement({...e,allowEmpty:!0})}allowAttributes(t){this._allowedAttributes.add(t)}disallowAttributes(t){this._disallowedAttributes.add(t)}processViewAttributes(t,e){return Cn(t,e,this._disallowedAttributes),Cn(t,e,this._allowedAttributes)}_addAllowedElement(t){if(!this._allowedElements.has(t)){if(this._allowedElements.add(t),"appliesToBlock"in t&&"string"==typeof t.appliesToBlock)for(const e of this._dataSchema.getDefinitionsForModel(t.appliesToBlock))e.isBlock&&this._addAllowedElement(e);this._dataInitialized&&this.editor.data.once("set",(()=>{this._fireRegisterEvent(t)}),{priority:e.priorities.highest+1})}}_registerElementsAfterInit(){this.editor.data.on("init",(()=>{this._dataInitialized=!0;for(const t of this._allowedElements)this._fireRegisterEvent(t)}),{priority:e.priorities.highest+1})}_registerElementHandlers(){this.on("register",((t,r)=>{const o=this.editor.model.schema;if(r.isObject&&!o.isRegistered(r.model))this._registerObjectElement(r);else if(r.isBlock)this._registerBlockElement(r);else{if(!r.isInline)throw new e.CKEditorError("data-filter-invalid-definition",null,r);this._registerInlineElement(r)}t.stop()}),{priority:"lowest"})}_registerCoupledAttributesPostFixer(){const t=this.editor.model,e=t.document.selection;t.document.registerPostFixer((e=>{const r=t.document.differ.getChanges();let o=!1;const n=this._getCoupledAttributesMap();for(const t of r){if("attribute"!=t.type||null!==t.attributeNewValue)continue;const r=n.get(t.attributeKey);if(r)for(const{item:n}of t.range.getWalker({shallow:!0}))for(const t of r)n.hasAttribute(t)&&(e.removeAttribute(t,n),o=!0)}return o})),this.listenTo(e,"change:attribute",((r,{attributeKeys:o})=>{const n=new Set,i=this._getCoupledAttributesMap();for(const t of o){if(e.hasAttribute(t))continue;const r=i.get(t);if(r)for(const t of r)e.hasAttribute(t)&&n.add(t)}0!=n.size&&t.change((t=>{for(const e of n)t.removeSelectionAttribute(e)}))}))}_registerAssociatedHtmlAttributesPostFixer(){const t=this.editor.model;t.document.registerPostFixer((e=>{const r=t.document.differ.getChanges();let o=!1;for(const n of r)if("insert"===n.type&&"$text"!==n.name)for(const r of n.attributes.keys())r.startsWith("html")&&r.endsWith("Attributes")&&(t.schema.checkAttribute(n.name,r)||(e.removeAttribute(r,n.position.nodeAfter),o=!0));return o}))}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const t of this._allowedElements)if(t.coupledAttribute&&t.model){const e=this._coupledAttributes.get(t.coupledAttribute);e?e.push(t.model):this._coupledAttributes.set(t.coupledAttribute,[t.model])}return this._coupledAttributes}_fireRegisterEvent(t){t.view&&this._disallowedElements.has(t.view)||this.fire(t.view?`register:${t.view}`:"register",t)}_registerObjectElement(t){const r=this.editor,o=r.model.schema,n=r.conversion,{view:i,model:s}=t;o.register(s,t.modelSchema),i&&(o.extend(t.model,{allowAttributes:[Po(i),"htmlContent"]}),r.data.registerRawContentMatcher({name:i}),n.for("upcast").elementToElement({view:i,model:$o(t),converterPriority:e.priorities.low+2}),n.for("upcast").add(Mo(t,this)),n.for("editingDowncast").elementToStructure({model:{name:s,attributes:[Po(i)]},view:To(r,t)}),n.for("dataDowncast").elementToElement({model:s,view:(t,{writer:e})=>Do(i,t,e)}),n.for("dataDowncast").add(Lo(t)))}_registerBlockElement(t){const r=this.editor,o=r.model.schema,n=r.conversion,{view:i,model:s}=t;if(!o.isRegistered(t.model)){if(o.register(t.model,t.modelSchema),!i)return;n.for("upcast").elementToElement({model:s,view:i,converterPriority:e.priorities.low+2}),n.for("downcast").elementToElement({model:s,view:i})}i&&(o.extend(t.model,{allowAttributes:Po(i)}),n.for("upcast").add(Mo(t,this)),n.for("downcast").add(Lo(t)))}_registerInlineElement(t){const e=this.editor,r=e.model.schema,o=e.conversion,n=t.model;t.appliesToBlock||(r.extend("$text",{allowAttributes:n}),t.attributeProperties&&r.setAttributeProperties(n,t.attributeProperties),o.for("upcast").add(Bo(t,this)),o.for("downcast").attributeToElement({model:n,view:No(t)}),t.allowEmpty&&(r.setAttributeProperties(n,{copyFromObject:!1}),r.isRegistered("htmlEmptyElement")||r.register("htmlEmptyElement",{inheritAllFrom:"$inlineObject"}),e.data.htmlProcessor.domConverter.registerInlineObjectMatcher((e=>e.name==t.view&&e.isEmpty&&Array.from(e.getAttributeKeys()).length?{name:!0}:null)),o.for("editingDowncast").elementToElement({model:"htmlEmptyElement",view:Ro(t,!0)}),o.for("dataDowncast").elementToElement({model:"htmlEmptyElement",view:Ro(t)})))}}function Cn(t,r,o){const n=function(t,{consumable:e},r){const o=r.matchAll(t)||[],n=[];for(const r of o)xn(e,t,r),delete r.match.name,e.consume(t,r.match),n.push(r);return n}(t,r,o),{attributes:i,styles:s,classes:l}=function(t){const e={attributes:new Set,classes:new Set,styles:new Set};for(const r of t)for(const t in e){(r.match[t]||[]).forEach((r=>e[t].add(r)))}return e}(n),a={};if(i.size)for(const t of i)(0,e.isValidAttributeName)(t)||i.delete(t);return i.size&&(a.attributes=Fn(i,(e=>t.getAttribute(e)))),s.size&&(a.styles=Fn(s,(e=>t.getStyle(e)))),l.size&&(a.classes=Array.from(l)),Object.keys(a).length?a:null}function xn(t,e,r){for(const o of["attributes","classes","styles"]){const n=r.match[o];if(n)for(const r of Array.from(n))t.test(e,{[o]:[r]})||jn(n,r)}}function Fn(t,e){const r={};for(const o of t){void 0!==e(o)&&(r[o]=e(o))}return r}function In(t,e){const{name:r}=t,o=t[e];return Jo(o)?Object.entries(o).map((([t,o])=>({name:r,[e]:{[t]:o}}))):Array.isArray(o)?o.map((t=>({name:r,[e]:[t]}))):[t]}function Pn(t){const{name:e,attributes:r,classes:o,styles:n}=t,i=[];return r&&i.push(...In({name:e,attributes:r},"attributes")),o&&i.push(...In({name:e,classes:o},"classes")),n&&i.push(...In({name:e,styles:n},"styles")),i}class $n extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const t=this.editor.plugins.get(On);t.on("register:pre",((e,r)=>{if("codeBlock"!==r.model)return;const o=this.editor,n=o.model.schema,i=o.conversion;n.extend("codeBlock",{allowAttributes:["htmlPreAttributes","htmlContentAttributes"]}),i.for("upcast").add(function(t){return e=>{e.on("element:code",((e,r,o)=>{const n=r.viewItem,i=n.parent;function s(e,n){const i=t.processViewAttributes(e,o);i&&o.writer.setAttribute(n,i,r.modelRange)}i&&i.is("element","pre")&&(s(i,"htmlPreAttributes"),s(n,"htmlContentAttributes"))}),{priority:"low"})}}(t)),i.for("downcast").add((t=>{t.on("attribute:htmlPreAttributes:codeBlock",((t,e,r)=>{if(!r.consumable.consume(e.item,t.name))return;const{attributeOldValue:o,attributeNewValue:n}=e,i=r.mapper.toViewElement(e.item).parent;xo(r.writer,o,n,i)})),t.on("attribute:htmlContentAttributes:codeBlock",((t,e,r)=>{if(!r.consumable.consume(e.item,t.name))return;const{attributeOldValue:o,attributeNewValue:n}=e,i=r.mapper.toViewElement(e.item);xo(r.writer,o,n,i)}))})),e.stop()}))}}class Tn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(On).on("register",((t,r)=>{const o=r,n=this.editor,i=n.model.schema,s=n.conversion;if(!o.paragraphLikeModel)return;if(i.isRegistered(o.model)||i.isRegistered(o.paragraphLikeModel))return;const l={model:o.paragraphLikeModel,view:o.view};i.register(o.model,o.modelSchema),i.register(l.model,{inheritAllFrom:"$block"}),s.for("upcast").elementToElement({view:o.view,model:(t,{writer:e})=>this._hasBlockContent(t)?e.createElement(o.model):e.createElement(l.model),converterPriority:e.priorities.low+.5}),s.for("downcast").elementToElement({view:o.view,model:o.model}),this._addAttributeConversion(o),s.for("downcast").elementToElement({view:l.view,model:l.model}),this._addAttributeConversion(l),t.stop()}))}_hasBlockContent(t){const e=this.editor.editing.view,r=e.domConverter.blockElements;for(const o of e.createRangeIn(t).getItems())if(o.is("element")&&r.includes(o.name))return!0;return!1}_addAttributeConversion(t){const e=this.editor,r=e.conversion,o=e.plugins.get(On);e.model.schema.extend(t.model,{allowAttributes:Po(t.view)}),r.for("upcast").add(Mo(t,o)),r.for("downcast").add(Lo(t))}}var Dn=r(331);class Bn extends t.Plugin{static get requires(){return[hn,Dn.Enter]}static get pluginName(){return"HeadingElementSupport"}init(){const t=this.editor;if(!t.plugins.has("HeadingEditing"))return;const e=t.config.get("heading.options");this.registerHeadingElements(t,e)}registerHeadingElements(t,e){const r=t.plugins.get(hn),o=[];for(const t of e)"model"in t&&"view"in t&&(r.registerBlockElement({view:t.view,model:t.model}),o.push(t.model));r.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:o}})}}function Rn(t,e,r){const o=t.createRangeOn(e);for(const{item:t}of o.getWalker())if(t.is("element",r))return t}class Nn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"ImageElementSupport"}init(){const t=this.editor;if(!t.plugins.has("ImageInlineEditing")&&!t.plugins.has("ImageBlockEditing"))return;const e=t.model.schema,r=t.conversion,o=t.plugins.get(On);o.on("register:figure",(()=>{r.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,r,o)=>{const n=r.viewItem;if(!r.modelRange||!n.hasClass("image"))return;const i=t.processViewAttributes(n,o);i&&o.writer.setAttribute("htmlFigureAttributes",i,r.modelRange)}),{priority:"low"})}}(o))})),o.on("register:img",((n,i)=>{"imageBlock"!==i.model&&"imageInline"!==i.model||(e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["htmlImgAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["htmlA","htmlImgAttributes"]}),r.for("upcast").add(function(t){return e=>{e.on("element:img",((e,r,o)=>{if(!r.modelRange)return;const n=r.viewItem,i=t.processViewAttributes(n,o);i&&o.writer.setAttribute("htmlImgAttributes",i,r.modelRange)}),{priority:"low"})}}(o)),r.for("downcast").add((t=>{function e(e){t.on(`attribute:${e}:imageInline`,((t,e,r)=>{if(!r.consumable.consume(e.item,t.name))return;const{attributeOldValue:o,attributeNewValue:n}=e,i=r.mapper.toViewElement(e.item);xo(r.writer,o,n,i)}),{priority:"low"})}function r(e,r){t.on(`attribute:${r}:imageBlock`,((t,r,o)=>{if(!o.consumable.test(r.item,t.name))return;const{attributeOldValue:n,attributeNewValue:i}=r,s=o.mapper.toViewElement(r.item),l=Rn(o.writer,s,e);l&&(xo(o.writer,n,i,l),o.consumable.consume(r.item,t.name))}),{priority:"low"}),"a"===e&&t.on("attribute:linkHref:imageBlock",((t,e,r)=>{if(!r.consumable.consume(e.item,"attribute:htmlLinkAttributes:imageBlock"))return;const o=r.mapper.toViewElement(e.item),n=Rn(r.writer,o,"a");Fo(r.writer,e.item.getAttribute("htmlLinkAttributes"),n)}),{priority:"low"})}e("htmlImgAttributes"),r("img","htmlImgAttributes"),r("figure","htmlFigureAttributes"),r("a","htmlLinkAttributes")})),t.plugins.has("LinkImage")&&r.for("upcast").add(function(t,e){const r=e.plugins.get("ImageUtils");return e=>{e.on("element:a",((e,o,n)=>{const i=o.viewItem;if(!r.findViewImgElement(i))return;const s=o.modelCursor.parent;if(!s.is("element","imageBlock"))return;const l=t.processViewAttributes(i,n);l&&n.writer.setAttribute("htmlLinkAttributes",l,s)}),{priority:"low"})}}(o,t)),n.stop())}))}}class Mn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const t=this.editor;if(!t.plugins.has("MediaEmbed")||t.config.get("mediaEmbed.previewsInData"))return;const e=t.model.schema,r=t.conversion,o=this.editor.plugins.get(On),n=this.editor.plugins.get(hn),i=t.config.get("mediaEmbed.elementName");n.registerBlockElement({model:"media",view:i}),o.on("register:figure",(()=>{r.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,r,o)=>{const n=r.viewItem;if(!r.modelRange||!n.hasClass("media"))return;const i=t.processViewAttributes(n,o);i&&o.writer.setAttribute("htmlFigureAttributes",i,r.modelRange)}),{priority:"low"})}}(o))})),o.on(`register:${i}`,((t,n)=>{"media"===n.model&&(e.extend("media",{allowAttributes:[Po(i),"htmlFigureAttributes"]}),r.for("upcast").add(function(t,e){const r=(r,o,n)=>{function i(e,r){const i=t.processViewAttributes(e,n);i&&n.writer.setAttribute(r,i,o.modelRange)}i(o.viewItem,Po(e))};return t=>{t.on(`element:${e}`,r,{priority:"low"})}}(o,i)),r.for("dataDowncast").add(function(t){return e=>{function r(t,r){e.on(`attribute:${r}:media`,((e,r,o)=>{if(!o.consumable.consume(r.item,e.name))return;const{attributeOldValue:n,attributeNewValue:i}=r,s=o.mapper.toViewElement(r.item),l=Rn(o.writer,s,t);xo(o.writer,n,i,l)}))}r(t,Po(t)),r("figure","htmlFigureAttributes")}}(i)),t.stop())}))}}class Ln extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"ScriptElementSupport"}init(){const t=this.editor.plugins.get(On);t.on("register:script",((e,r)=>{const o=this.editor,n=o.model.schema,i=o.conversion;n.register("htmlScript",r.modelSchema),n.extend("htmlScript",{allowAttributes:["htmlScriptAttributes","htmlContent"],isContent:!0}),o.data.registerRawContentMatcher({name:"script"}),i.for("upcast").elementToElement({view:"script",model:$o(r)}),i.for("upcast").add(Mo(r,t)),i.for("downcast").elementToElement({model:"htmlScript",view:(t,{writer:e})=>Do("script",t,e)}),i.for("downcast").add(Lo(r)),e.stop()}))}}class Vn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"TableElementSupport"}init(){const t=this.editor;if(!t.plugins.has("TableEditing"))return;const e=t.model.schema,r=t.conversion,o=t.plugins.get(On),n=t.plugins.get("TableUtils");o.on("register:figure",(()=>{r.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,r,o)=>{const n=r.viewItem;if(!r.modelRange||!n.hasClass("table"))return;const i=t.processViewAttributes(n,o);i&&o.writer.setAttribute("htmlFigureAttributes",i,r.modelRange)}),{priority:"low"})}}(o))})),o.on("register:table",((i,s)=>{"table"===s.model&&(e.extend("table",{allowAttributes:["htmlTableAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),r.for("upcast").add(function(t){return e=>{e.on("element:table",((e,r,o)=>{if(!r.modelRange)return;const n=r.viewItem;i(n,"htmlTableAttributes");for(const t of n.getChildren())t.is("element","thead")&&i(t,"htmlTheadAttributes"),t.is("element","tbody")&&i(t,"htmlTbodyAttributes");function i(e,n){const i=t.processViewAttributes(e,o);i&&o.writer.setAttribute(n,i,r.modelRange)}}),{priority:"low"})}}(o)),r.for("downcast").add((t=>{function e(e,r){t.on(`attribute:${r}:table`,((t,r,o)=>{if(!o.consumable.test(r.item,t.name))return;const n=o.mapper.toViewElement(r.item),i=Rn(o.writer,n,e);i&&(o.consumable.consume(r.item,t.name),xo(o.writer,r.attributeOldValue,r.attributeNewValue,i))}))}e("table","htmlTableAttributes"),e("figure","htmlFigureAttributes"),e("thead","htmlTheadAttributes"),e("tbody","htmlTbodyAttributes")})),t.model.document.registerPostFixer(function(t,e){return r=>{const o=t.document.differ.getChanges();let n=!1;for(const t of o){if("attribute"!=t.type||"headingRows"!=t.attributeKey)continue;const o=t.range.start.nodeAfter,i=o.getAttribute("htmlTheadAttributes"),s=o.getAttribute("htmlTbodyAttributes");i&&!t.attributeNewValue?(r.removeAttribute("htmlTheadAttributes",o),n=!0):s&&t.attributeNewValue==e.getRows(o)&&(r.removeAttribute("htmlTbodyAttributes",o),n=!0)}return n}}(t.model,n)),i.stop())}))}}class Hn extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"StyleElementSupport"}init(){const t=this.editor.plugins.get(On);t.on("register:style",((e,r)=>{const o=this.editor,n=o.model.schema,i=o.conversion;n.register("htmlStyle",r.modelSchema),n.extend("htmlStyle",{allowAttributes:["htmlStyleAttributes","htmlContent"],isContent:!0}),o.data.registerRawContentMatcher({name:"style"}),i.for("upcast").elementToElement({view:"style",model:$o(r)}),i.for("upcast").add(Mo(r,t)),i.for("downcast").elementToElement({model:"htmlStyle",view:(t,{writer:e})=>Do("style",t,e)}),i.for("downcast").add(Lo(r)),e.stop()}))}}const zn=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Un=function(t){return this.__data__.has(t)};function Wn(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new bt;++e<r;)this.add(t[e])}Wn.prototype.add=Wn.prototype.push=zn,Wn.prototype.has=Un;const qn=Wn;const Gn=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o;)if(e(t[r],r,t))return!0;return!1};const Zn=function(t,e){return t.has(e)};const Kn=function(t,e,r,o,n,i){var s=1&r,l=t.length,a=e.length;if(l!=a&&!(s&&a>l))return!1;var c=i.get(t),u=i.get(e);if(c&&u)return c==e&&u==t;var m=-1,d=!0,f=2&r?new qn:void 0;for(i.set(t,e),i.set(e,t);++m<l;){var h=t[m],b=e[m];if(o)var p=s?o(b,h,m,e,t,i):o(h,b,m,t,e,i);if(void 0!==p){if(p)continue;d=!1;break}if(f){if(!Gn(e,(function(t,e){if(!Zn(f,e)&&(h===t||n(h,t,r,o,i)))return f.push(e)}))){d=!1;break}}else if(h!==b&&!n(h,b,r,o,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Yn=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,o){r[++e]=[o,t]})),r};const Jn=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var Xn=E?E.prototype:void 0,Qn=Xn?Xn.valueOf:void 0;const ti=function(t,e,r,o,n,i,s){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ke(t),new Ke(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return l(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=Yn;case"[object Set]":var c=1&o;if(a||(a=Jn),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;o|=2,s.set(t,e);var m=Kn(a(t),a(e),o,n,i,s);return s.delete(t),m;case"[object Symbol]":if(Qn)return Qn.call(t)==Qn.call(e)}return!1};var ei=Object.prototype.hasOwnProperty;const ri=function(t,e,r,o,n,i){var s=1&r,l=xe(t),a=l.length;if(a!=xe(e).length&&!s)return!1;for(var c=a;c--;){var u=l[c];if(!(s?u in e:ei.call(e,u)))return!1}var m=i.get(t),d=i.get(e);if(m&&d)return m==e&&d==t;var f=!0;i.set(t,e),i.set(e,t);for(var h=s;++c<a;){var b=t[u=l[c]],p=e[u];if(o)var g=s?o(p,b,u,e,t,i):o(b,p,u,t,e,i);if(!(void 0===g?b===p||n(b,p,r,o,i):g)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(f=!1)}return i.delete(t),i.delete(e),f};var oi="[object Arguments]",ni="[object Array]",ii="[object Object]",si=Object.prototype.hasOwnProperty;const li=function(t,e,r,o,n,i){var s=Pt(t),l=Pt(e),a=s?ni:qe(t),c=l?ni:qe(e),u=(a=a==oi?ii:a)==ii,m=(c=c==oi?ii:c)==ii,d=a==c;if(d&&Rt(t)){if(!Rt(e))return!1;s=!0,u=!1}if(d&&!u)return i||(i=new vt),s||Kt(t)?Kn(t,e,r,o,n,i):ti(t,e,a,r,o,n,i);if(!(1&r)){var f=u&&si.call(t,"__wrapped__"),h=m&&si.call(e,"__wrapped__");if(f||h){var b=f?t.value():t,p=h?e.value():e;return i||(i=new vt),n(b,p,r,o,i)}}return!!d&&(i||(i=new vt),ri(t,e,r,o,n,i))};const ai=function t(e,r,o,n,i){return e===r||(null==e||null==r||!kt(e)&&!kt(r)?e!=e&&r!=r:li(e,r,o,n,t,i))};const ci=function(t,e){return ai(t,e)};class ui extends t.Plugin{static get requires(){return[On]}static get pluginName(){return"DocumentListElementSupport"}init(){const t=this.editor;if(!t.plugins.has("DocumentListEditing"))return;const e=t.model.schema,r=t.conversion,o=t.plugins.get(On),n=t.plugins.get("DocumentListEditing"),i=["ul","ol","li"];n.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast:Fo}),n.registerDowncastStrategy({scope:"list",attributeName:"htmlUlAttributes",setAttributeOnDowncast:Fo}),n.registerDowncastStrategy({scope:"list",attributeName:"htmlOlAttributes",setAttributeOnDowncast:Fo}),o.on("register",((t,n)=>{if(!i.includes(n.view))return;if(t.stop(),e.checkAttribute("$block","htmlLiAttributes"))return;const s=i.map((t=>Po(t)));e.extend("$listItem",{allowAttributes:s}),r.for("upcast").add((t=>{t.on("element:ul",mi("htmlUlAttributes",o),{priority:"low"}),t.on("element:ol",mi("htmlOlAttributes",o),{priority:"low"}),t.on("element:li",mi("htmlLiAttributes",o),{priority:"low"})}))})),n.on("postFixer",((t,{listNodes:e,writer:r})=>{for(const{node:o,previousNodeInList:n}of e)if(n){if(n.getAttribute("listType")==o.getAttribute("listType")){const e=di(n.getAttribute("listType")),i=n.getAttribute(e);!ci(o.getAttribute(e),i)&&r.model.schema.checkAttribute(o,e)&&(r.setAttribute(e,i,o),t.return=!0)}if(n.getAttribute("listItemId")==o.getAttribute("listItemId")){const e=n.getAttribute("htmlLiAttributes");!ci(o.getAttribute("htmlLiAttributes"),e)&&r.model.schema.checkAttribute(o,"htmlLiAttributes")&&(r.setAttribute("htmlLiAttributes",e,o),t.return=!0)}}})),n.on("postFixer",((t,{listNodes:e,writer:r})=>{for(const{node:o}of e){const e=o.getAttribute("listType");"numbered"!==e&&o.getAttribute("htmlOlAttributes")&&(r.removeAttribute("htmlOlAttributes",o),t.return=!0),"numbered"===e&&o.getAttribute("htmlUlAttributes")&&(r.removeAttribute("htmlUlAttributes",o),t.return=!0)}}))}afterInit(){const t=this.editor;if(!t.commands.get("indentList"))return;const e=t.commands.get("indentList");this.listenTo(e,"afterExecute",((e,r)=>{t.model.change((e=>{for(const o of r){const r=di(o.getAttribute("listType"));t.model.schema.checkAttribute(o,r)&&e.setAttribute(r,{},o)}}))}))}}function mi(t,e){return(r,o,n)=>{const i=o.viewItem;o.modelRange||Object.assign(o,n.convertChildren(o.viewItem,o.modelCursor));const s=e.processViewAttributes(i,n);for(const e of o.modelRange.getItems({shallow:!0}))e.hasAttribute("listItemId")&&(e.hasAttribute(t)||n.writer.model.schema.checkAttribute(e,t)&&n.writer.setAttribute(t,s||{},e))}}function di(t){return"numbered"===t?"htmlOlAttributes":"htmlUlAttributes"}class fi extends t.Plugin{static get requires(){return[On,hn]}static get pluginName(){return"CustomElementSupport"}init(){const t=this.editor.plugins.get(On),e=this.editor.plugins.get(hn);t.on("register:$customElement",((r,o)=>{r.stop();const i=this.editor,s=i.model.schema,l=i.conversion,a=i.editing.view.domConverter.unsafeElements,c=i.data.htmlProcessor.domConverter.preElements;s.register(o.model,o.modelSchema),s.extend(o.model,{allowAttributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"],isContent:!0}),i.data.htmlProcessor.domConverter.registerRawContentMatcher({name:"template"}),l.for("upcast").elementToElement({view:/.*/,model:(r,s)=>{if("$comment"==r.name)return null;if(!function(t){try{document.createElement(t)}catch(t){return!1}return!0}(r.name))return null;if(e.getDefinitionsForView(r.name).size)return null;a.includes(r.name)||a.push(r.name),c.includes(r.name)||c.push(r.name);const l=s.writer.createElement(o.model,{htmlElementName:r.name}),u=t.processViewAttributes(r,s);let m;if(u&&s.writer.setAttribute("htmlCustomElementAttributes",u,l),r.is("element","template")&&r.getCustomProperty("$rawContent"))m=r.getCustomProperty("$rawContent");else{const t=new n.UpcastWriter(r.document).createDocumentFragment(r),e=i.data.htmlProcessor.domConverter.viewToDom(t),o=e.firstChild;for(;o.firstChild;)e.appendChild(o.firstChild);o.remove(),m=i.data.htmlProcessor.htmlWriter.getHtml(e)}s.writer.setAttribute("htmlContent",m,l);for(const{item:t}of i.editing.view.createRangeIn(r))s.consumable.consume(t,{name:!0});return l},converterPriority:"low"}),l.for("editingDowncast").elementToElement({model:{name:o.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const r=t.getAttribute("htmlElementName"),o=e.createRawElement(r);return t.hasAttribute("htmlCustomElementAttributes")&&Fo(e,t.getAttribute("htmlCustomElementAttributes"),o),o}}),l.for("dataDowncast").elementToElement({model:{name:o.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const r=t.getAttribute("htmlElementName"),o=t.getAttribute("htmlContent"),n=e.createRawElement(r,null,((t,e)=>{e.setContentOf(t,o)}));return t.hasAttribute("htmlCustomElementAttributes")&&Fo(e,t.getAttribute("htmlCustomElementAttributes"),n),n}})}))}}class hi extends t.Plugin{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[On,$n,Tn,Bn,Nn,Mn,Ln,Vn,Hn,ui,fi]}init(){const t=this.editor,e=t.plugins.get(On);e.loadAllowedEmptyElementsConfig(t.config.get("htmlSupport.allowEmpty")||[]),e.loadAllowedConfig(t.config.get("htmlSupport.allow")||[]),e.loadDisallowedConfig(t.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(t){const e=this.editor.plugins.get("DataSchema"),r=Array.from(e.getDefinitionsForView(t,!1)),o=r.find((t=>t.isInline&&!r[0].isObject));return o?o.model:Po(t)}addModelHtmlClass(t,r,o){const n=this.editor.model,i=this.getGhsAttributeNameForElement(t);n.change((t=>{for(const s of bi(n,o,i))Io(t,s,i,"classes",(t=>{for(const o of(0,e.toArray)(r))t.add(o)}))}))}removeModelHtmlClass(t,r,o){const n=this.editor.model,i=this.getGhsAttributeNameForElement(t);n.change((t=>{for(const s of bi(n,o,i))Io(t,s,i,"classes",(t=>{for(const o of(0,e.toArray)(r))t.delete(o)}))}))}setModelHtmlAttributes(t,e,r){const o=this.editor.model,n=this.getGhsAttributeNameForElement(t);o.change((t=>{for(const i of bi(o,r,n))Io(t,i,n,"attributes",(t=>{for(const[r,o]of Object.entries(e))t.set(r,o)}))}))}removeModelHtmlAttributes(t,r,o){const n=this.editor.model,i=this.getGhsAttributeNameForElement(t);n.change((t=>{for(const s of bi(n,o,i))Io(t,s,i,"attributes",(t=>{for(const o of(0,e.toArray)(r))t.delete(o)}))}))}setModelHtmlStyles(t,e,r){const o=this.editor.model,n=this.getGhsAttributeNameForElement(t);o.change((t=>{for(const i of bi(o,r,n))Io(t,i,n,"styles",(t=>{for(const[r,o]of Object.entries(e))t.set(r,o)}))}))}removeModelHtmlStyles(t,r,o){const n=this.editor.model,i=this.getGhsAttributeNameForElement(t);n.change((t=>{for(const s of bi(n,o,i))Io(t,s,i,"styles",(t=>{for(const o of(0,e.toArray)(r))t.delete(o)}))}))}}function*bi(t,e,r){if(e)if(!(Symbol.iterator in e)&&e.is("documentSelection")&&e.isCollapsed)t.schema.checkAttributeInSelection(e,r)&&(yield e);else for(const o of function(t,e,r){return!(Symbol.iterator in e)&&(e.is("node")||e.is("$text")||e.is("$textProxy"))?t.schema.checkAttribute(e,r)?[t.createRangeOn(e)]:[]:t.schema.getValidRanges(t.createSelection(e).getRanges(),r)}(t,e,r))yield*o.getItems({shallow:!0})}class pi extends t.Plugin{static get pluginName(){return"HtmlComment"}init(){const t=this.editor,r=new Map;t.data.processor.skipComments=!1,t.model.schema.addAttributeCheck(((t,e)=>{if(t.endsWith("$root")&&e.startsWith("$comment"))return!0})),t.conversion.for("upcast").elementToMarker({view:"$comment",model:t=>{const o=`$comment:${(0,e.uid)()}`,n=t.getCustomProperty("$rawContent");return r.set(o,n),o}}),t.conversion.for("dataDowncast").markerToElement({model:"$comment",view:(t,{writer:e})=>{let r;for(const e of this.editor.model.document.getRootNames())if(r=this.editor.model.document.getRoot(e),r.hasAttribute(t.markerName))break;const o=t.markerName,n=r.getAttribute(o),i=e.createUIElement("$comment");return e.setCustomProperty("$rawContent",n,i),i}}),t.model.document.registerPostFixer((e=>{let o=!1;const n=t.model.document.differ.getChangedMarkers().filter((t=>t.name.startsWith("$comment:")));for(const t of n){const{oldRange:n,newRange:i}=t.data;if(!n||!i||n.root!=i.root){if(n){const r=n.root;r.hasAttribute(t.name)&&(e.removeAttribute(t.name,r),o=!0)}if(i){const n=i.root;"$graveyard"==n.rootName?(e.removeMarker(t.name),o=!0):n.hasAttribute(t.name)||(e.setAttribute(t.name,r.get(t.name)||"",n),o=!0)}}}return o})),t.data.on("set",(()=>{for(const e of t.model.markers.getMarkersGroup("$comment"))this.removeHtmlComment(e.name)}),{priority:"high"}),t.model.on("deleteContent",((e,[r])=>{for(const e of r.getRanges()){const r=t.model.schema.getLimitElement(e),o=t.model.createPositionAt(r,0),n=t.model.createPositionAt(r,"end");let i;i=o.isTouching(e.start)&&n.isTouching(e.end)?this.getHtmlCommentsInRange(t.model.createRange(o,n)):this.getHtmlCommentsInRange(e,{skipBoundaries:!0});for(const t of i)this.removeHtmlComment(t)}}),{priority:"high"})}createHtmlComment(t,r){const o=(0,e.uid)(),n=this.editor.model,i=n.document.getRoot(t.root.rootName),s=`$comment:${o}`;return n.change((e=>{const o=e.createRange(t);return e.addMarker(s,{usingOperation:!0,affectsData:!0,range:o}),e.setAttribute(s,r,i),s}))}removeHtmlComment(t){const e=this.editor,r=e.model.markers.get(t);return!!r&&(e.model.change((t=>{t.removeMarker(r)})),!0)}getHtmlCommentData(t){const e=this.editor.model.markers.get(t);if(!e)return null;let r="";for(const e of this.editor.model.document.getRoots())if(e.hasAttribute(t)){r=e.getAttribute(t);break}return{content:r,position:e.getStart()}}getHtmlCommentsInRange(t,{skipBoundaries:e=!1}={}){const r=!e;return Array.from(this.editor.model.markers.getMarkersGroup("$comment")).filter((e=>function(t,e){const o=t.getRange().start;return(o.isAfter(e.start)||r&&o.isEqual(e.start))&&(o.isBefore(e.end)||r&&o.isEqual(e.end))}(e,t))).map((t=>t.name))}}class gi extends n.HtmlDataProcessor{toView(t){if(!t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i))return super.toView(t);let e="",r="";t=(t=t.replace(/<!DOCTYPE[^>]*>/i,(t=>(e=t,"")))).replace(/<\?xml\s[^?]*\?>/i,(t=>(r=t,"")));const o=this._toDom(t),i=this.domConverter.domToView(o,{skipComments:this.skipComments}),s=new n.UpcastWriter(i.document);return s.setCustomProperty("$fullPageDocument",o.ownerDocument.documentElement.outerHTML,i),e&&s.setCustomProperty("$fullPageDocType",e,i),r&&s.setCustomProperty("$fullPageXmlDeclaration",r,i),i}toData(t){let e=super.toData(t);const r=t.getCustomProperty("$fullPageDocument"),o=t.getCustomProperty("$fullPageDocType"),n=t.getCustomProperty("$fullPageXmlDeclaration");return r&&(e=r.replace(/<\/body\s*>/,e+"$&"),o&&(e=o+"\n"+e),n&&(e=n+"\n"+e)),e}}class vi extends t.Plugin{static get pluginName(){return"FullPage"}init(){const t=this.editor,e=["$fullPageDocument","$fullPageDocType","$fullPageXmlDeclaration"];t.data.processor=new gi(t.data.viewDocument),t.model.schema.extend("$root",{allowAttributes:e}),t.data.on("toModel",((r,[o])=>{const n=t.model.document.getRoot();t.model.change((t=>{for(const r of e){const e=o.getCustomProperty(r);e&&t.setAttribute(r,e,n)}}))}),{priority:"low"}),t.data.on("toView",((t,[r])=>{if(!r.is("rootElement"))return;const o=r,i=t.return;if(!o.hasAttribute("$fullPageDocument"))return;const s=new n.UpcastWriter(i.document);for(const t of e){const e=o.getAttribute(t);e&&s.setCustomProperty(t,e,i)}}),{priority:"low"}),t.data.on("set",(()=>{const r=t.model.document.getRoot();t.model.change((t=>{for(const o of e)r.hasAttribute(o)&&t.removeAttribute(o,r)}))}),{priority:"high"}),t.data.on("get",((t,e)=>{e[0]||(e[0]={}),e[0].trim=!1}),{priority:"high"})}}})(),(window.CKEditor5=window.CKEditor5||{}).htmlSupport=o})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/image.js b/core/assets/vendor/ckeditor5/image/image.js index 32398a910a07..1f08e2d94ab2 100644 --- a/core/assets/vendor/ckeditor5/image/image.js +++ b/core/assets/vendor/ckeditor5/image/image.js @@ -1,5 +1,5 @@ -!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"Break text":"Break text","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line",Insert:"Insert","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Left aligned image":"Left aligned image",Original:"Original","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Wrap text":"Wrap text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), +!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"Break text":"Break text","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line",Insert:"Insert","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Left aligned image":"Left aligned image",Original:"Original","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Wrap text":"Wrap text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), /*! * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. - */(()=>{var e={487:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}}',""]);const a=o},417:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}",""]);const a=o},86:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}}",""]);const a=o},554:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}",""]);const a=o},823:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,".ck.ck-image-insert-form:focus{outline:none}.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-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}",""]);const a=o},390:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}",""]);const a=o},968:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}",""]);const a=o},151:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}",""]);const a=o},651:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}}',""]);const a=o},582:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}}',""]);const a=o},283:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}}",""]);const a=o},915:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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%}}",""]);const a=o},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(o[s]=!0)}for(var r=0;r<e.length;r++){var l=[].concat(e[r]);n&&o[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},t}},62:(e,t,i)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),s=[];function r(e){for(var t=-1,i=0;i<s.length;i++)if(s[i].identifier===e){t=i;break}return t}function l(e,t){for(var i={},n=[],o=0;o<e.length;o++){var a=e[o],l=t.base?a[0]+t.base:a[0],c=i[l]||0,g="".concat(l," ").concat(c);i[l]=c+1;var d=r(g),m={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(s[d].references++,s[d].updater(m)):s.push({identifier:g,updater:f(m,t),references:1}),n.push(g)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=a(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var g,d=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function m(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var a=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function u(e,t,i){var n=i.css,o=i.media,a=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var p=null,h=0;function f(e,t){var i,n,o;if(t.singleton){var a=h++;i=p||(p=c(t)),n=m.bind(null,i,a,!1),o=m.bind(null,i,a,!0)}else i=c(t),n=u.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=r(i[n]);s[o].references--}for(var a=l(e,t),c=0;c<i.length;c++){var g=r(i[c]);0===s[g].references&&(s[g].updater(),s.splice(g,1))}i=a}}}},945:(e,t,i)=>{e.exports=i(79)("./src/clipboard.js")},704:(e,t,i)=>{e.exports=i(79)("./src/core.js")},492:(e,t,i)=>{e.exports=i(79)("./src/engine.js")},181:(e,t,i)=>{e.exports=i(79)("./src/typing.js")},273:(e,t,i)=>{e.exports=i(79)("./src/ui.js")},254:(e,t,i)=>{e.exports=i(79)("./src/undo.js")},448:(e,t,i)=>{e.exports=i(79)("./src/upload.js")},209:(e,t,i)=>{e.exports=i(79)("./src/utils.js")},995:(e,t,i)=>{e.exports=i(79)("./src/widget.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,i),a.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{AutoImage:()=>k,Image:()=>G,ImageBlock:()=>$,ImageBlockEditing:()=>M,ImageCaption:()=>ie,ImageCaptionEditing:()=>X,ImageCaptionUI:()=>Y,ImageCaptionUtils:()=>J,ImageEditing:()=>O,ImageInline:()=>K,ImageInsert:()=>Ue,ImageInsertUI:()=>Ve,ImageInsertViaUrl:()=>ze,ImageResize:()=>Me,ImageResizeButtons:()=>Oe,ImageResizeEditing:()=>Pe,ImageResizeHandles:()=>De,ImageSizeAttributes:()=>L,ImageStyle:()=>ut,ImageStyleEditing:()=>ot,ImageStyleUI:()=>ct,ImageTextAlternative:()=>V,ImageTextAlternativeEditing:()=>I,ImageTextAlternativeUI:()=>B,ImageToolbar:()=>pt,ImageUpload:()=>_e,ImageUploadEditing:()=>ve,ImageUploadProgress:()=>pe,ImageUploadUI:()=>re,ImageUtils:()=>h,PictureEditing:()=>ht});var e=i(704),t=i(945),o=i(492),a=i(254),s=i(181),r=i(209),l=i(995);function c(e){return e.createContainerElement("figure",{class:"image"},[e.createEmptyElement("img"),e.createSlot("children")])}function g(e,t){const i=e.plugins.get("ImageUtils"),n=e.plugins.has("ImageInlineEditing")&&e.plugins.has("ImageBlockEditing");return e=>{if(!i.isInlineImageView(e))return null;if(!n)return o(e);return("block"==e.getStyle("display")||e.findAncestor(i.isBlockImageView)?"imageBlock":"imageInline")!==t?null:o(e)};function o(e){const t={name:!0};return e.hasAttribute("src")&&(t.attributes=["src"]),t}}function d(e,t){const i=(0,r.first)(t.getSelectedBlocks());return!i||e.isObject(i)||i.isEmpty&&"listItem"!=i.name?"imageBlock":"imageInline"}function m(e){return e&&e.endsWith("px")?parseInt(e):null}function u(e){const t=m(e.getStyle("width")),i=m(e.getStyle("height"));return!(!t||!i)}const p=/^(image|image-inline)$/;class h extends e.Plugin{constructor(){super(...arguments),this._domEmitter=new((0,r.DomEmitterMixin)())}static get pluginName(){return"ImageUtils"}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(e={},t=null,i=null,n={}){const o=this.editor,a=o.model,s=a.document.selection,r=f(o,t||s,i);e={...Object.fromEntries(s.getAttributes()),...e};for(const t in e)a.schema.checkAttribute(r,t)||delete e[t];return a.change((i=>{const{setImageSizes:o=!0}=n,s=i.createElement(r,e);return a.insertObject(s,t,null,{setSelection:"on",findOptimalPosition:t||"imageInline"==r?void 0:"auto"}),s.parent?(o&&this.setImageNaturalSizeAttributes(s),s):null}))}setImageNaturalSizeAttributes(e){const t=e.getAttribute("src");t&&(e.getAttribute("width")||e.getAttribute("height")||this.editor.model.change((i=>{const n=new r.global.window.Image;this._domEmitter.listenTo(n,"load",(()=>{e.getAttribute("width")||e.getAttribute("height")||this.editor.model.enqueueChange(i.batch,(t=>{t.setAttribute("width",n.naturalWidth,e),t.setAttribute("height",n.naturalHeight,e)})),this._domEmitter.stopListening(n,"load")})),n.src=t})))}getClosestSelectedImageWidget(e){const t=e.getFirstPosition();if(!t)return null;const i=e.getSelectedElement();if(i&&this.isImageWidget(i))return i;let n=t.parent;for(;n;){if(n.is("element")&&this.isImageWidget(n))return n;n=n.parent}return null}getClosestSelectedImageElement(e){const t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(e){return e.findAncestor({classes:p})}isImageAllowed(){const e=this.editor.model.document.selection;return function(e,t){const i=f(e,t,null);if("imageBlock"==i){const i=function(e,t){const i=(0,l.findOptimalInsertionRange)(e,t),n=i.start.parent;if(n.isEmpty&&!n.is("element","$root"))return n.parent;return n}(t,e.model);if(e.model.schema.checkChild(i,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}(this.editor,e)&&function(e){return[...e.focus.getAncestors()].every((e=>!e.is("element","imageBlock")))}(e)}toImageWidget(e,t,i){t.setCustomProperty("image",!0,e);return(0,l.toWidget)(e,t,{label:()=>{const t=this.findViewImgElement(e).getAttribute("alt");return t?`${t} ${i}`:i}})}isImageWidget(e){return!!e.getCustomProperty("image")&&(0,l.isWidget)(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;const t=this.editor.editing.view;for(const{item:i}of t.createRangeIn(e))if(this.isInlineImageView(i))return i}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function f(e,t,i){const n=e.model.schema,o=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?i||("inline"===o?"imageInline":"auto"!==o?"imageBlock":t.is("selection")?d(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}const b=new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class k extends e.Plugin{static get requires(){return[t.Clipboard,h,a.Undo,s.Delete]}static get pluginName(){return"AutoImage"}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){const e=this.editor,t=e.model.document,i=e.plugins.get("ClipboardPipeline");this.listenTo(i,"inputTransformation",(()=>{const e=t.selection.getFirstRange(),i=o.LivePosition.fromPosition(e.start);i.stickiness="toPrevious";const n=o.LivePosition.fromPosition(e.end);n.stickiness="toNext",t.once("change:data",(()=>{this._embedImageBetweenPositions(i,n),i.detach(),n.detach()}),{priority:"high"})})),e.commands.get("undo").on("execute",(()=>{this._timeoutId&&(r.global.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedImageBetweenPositions(e,t){const i=this.editor,n=new o.LiveRange(e,t),a=n.getWalker({ignoreElementEnd:!0}),s=Object.fromEntries(i.model.document.selection.getAttributes()),r=this.editor.plugins.get("ImageUtils");let l="";for(const e of a)e.item.is("$textProxy")&&(l+=e.item.data);l=l.trim(),l.match(b)?(this._positionToInsert=o.LivePosition.fromPosition(e),this._timeoutId=setTimeout((()=>{if(!i.commands.get("insertImage").isEnabled)return void n.detach();i.model.change((e=>{let t;this._timeoutId=null,e.remove(n),n.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert.toPosition()),r.insertImage({...s,src:l},t),this._positionToInsert.detach(),this._positionToInsert=null}));i.plugins.get("Delete").requestUndoOnBackspace()}),100)):n.detach()}}class w extends e.Command{refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){const t=this.editor,i=t.plugins.get("ImageUtils"),n=t.model,o=i.getClosestSelectedImageElement(n.document.selection);n.change((t=>{t.setAttribute("alt",e.newValue,o)}))}}class I extends e.Plugin{static get requires(){return[h]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new w(this.editor))}}var v=i(273),y=i(62),_=i.n(y),E=i(915),x={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(E.Z,x);E.Z.locals;var C=i(487),S={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(C.Z,S);C.Z.locals;class A extends v.View{constructor(t){super(t);const i=this.locale.t;this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(i("Save"),e.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),e.icons.cancel,"ck-button-cancel","cancel"),this._focusables=new v.ViewCollection,this._focusCycler=new v.FocusCycler({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),(0,v.submitHandler)({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,i,n){const o=new v.ButtonView(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:i}}),n&&o.delegate("execute").to(this,n),o}_createLabeledInputView(){const e=this.locale.t,t=new v.LabeledFieldView(this.locale,v.createLabeledInputText);return t.label=e("Text alternative"),t}}function T(e){const t=e.editing.view,i=v.BalloonPanelView.defaultPositions,n=e.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}class B extends e.Plugin{static get requires(){return[v.ContextualBalloon]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,i=t.t;t.ui.componentFactory.add("imageTextAlternative",(n=>{const o=t.commands.get("imageTextAlternative"),a=new v.ButtonView(n);return a.set({label:i("Change image text alternative"),icon:e.icons.textAlternative,tooltip:!0}),a.bind("isEnabled").to(o,"isEnabled"),a.bind("isOn").to(o,"value",(e=>!!e)),this.listenTo(a,"execute",(()=>{this._showForm()})),a}))}_createForm(){const e=this.editor,t=e.editing.view.document,i=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new((0,v.CssTransitionDisablerMixin)(A))(e.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{e.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",((e,t)=>{this._hideForm(!0),t()})),this.listenTo(e.ui,"update",(()=>{i.getClosestSelectedImageWidget(t.selection)?this._isVisible&&function(e){const t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){const i=T(e);t.updatePosition(i)}}(e):this._hideForm(!0)})),(0,v.clickOutsideHandler)({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const e=this.editor,t=e.commands.get("imageTextAlternative"),i=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:T(e)}),i.fieldView.value=i.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&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 V extends e.Plugin{static get requires(){return[I,B]}static get pluginName(){return"ImageTextAlternative"}}function z(e,t){const i=(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const o=n.writer,a=n.mapper.toViewElement(i.item),s=e.findViewImgElement(a);null===i.attributeNewValue?(o.removeAttribute("srcset",s),o.removeAttribute("sizes",s)):i.attributeNewValue&&(o.setAttribute("srcset",i.attributeNewValue,s),o.setAttribute("sizes","100vw",s))};return e=>{e.on(`attribute:srcset:${t}`,i)}}function U(e,t,i){const n=(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const o=n.writer,a=n.mapper.toViewElement(i.item),s=e.findViewImgElement(a);o.setAttribute(i.attributeKey,i.attributeNewValue||"",s)};return e=>{e.on(`attribute:${i}:${t}`,n)}}class R extends o.Observer{observe(e){this.listenTo(e,"load",((e,t)=>{const i=t.target;this.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&this._fireEvents(t)}),{useCapture:!0})}stopObserving(e){this.stopListening(e)}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}class P extends e.Command{constructor(e){super(e);const t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||"block"===t&&(0,r.logWarning)("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===t&&(0,r.logWarning)("image-inline-plugin-required")}refresh(){const e=this.editor.plugins.get("ImageUtils");this.isEnabled=e.isImageAllowed()}execute(e){const t=(0,r.toArray)(e.source),i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(i.getAttributes());t.forEach(((e,t)=>{const a=i.getSelectedElement();if("string"==typeof e&&(e={src:e}),t&&a&&n.isImage(a)){const t=this.editor.model.createPositionAfter(a);n.insertImage({...e,...o},t)}else n.insertImage({...e,...o})}))}}class N extends e.Command{constructor(e){super(e),this.decorate("cleanupImage")}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=e.isImage(t),this.value=this.isEnabled?t.getAttribute("src"):null}execute(e){const t=this.editor.model.document.selection.getSelectedElement(),i=this.editor.plugins.get("ImageUtils");this.editor.model.change((n=>{n.setAttribute("src",e.source,t),this.cleanupImage(n,t),i.setImageNaturalSizeAttributes(t)}))}cleanupImage(e,t){e.removeAttribute("srcset",t),e.removeAttribute("sizes",t),e.removeAttribute("sources",t),e.removeAttribute("width",t),e.removeAttribute("height",t),e.removeAttribute("alt",t)}}class O extends e.Plugin{static get requires(){return[h]}static get pluginName(){return"ImageEditing"}init(){const e=this.editor,t=e.conversion;e.editing.view.addObserver(R),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const i=new P(e),n=new N(e);e.commands.add("insertImage",i),e.commands.add("replaceImageSource",n),e.commands.add("imageInsert",i)}}class L extends e.Plugin{static get requires(){return[h]}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(e){const t=this.editor,i=t.plugins.get("ImageUtils"),n="imageBlock"===e?"figure":"img";function o(t,n,o,a){t.on(`attribute:${n}:${e}`,((t,n,s)=>{if(!s.consumable.consume(n.item,t.name))return;const r=s.writer,l=s.mapper.toViewElement(n.item),c=i.findViewImgElement(l);if(null!==n.attributeNewValue?r.setAttribute(o,n.attributeNewValue,c):r.removeAttribute(o,c),n.item.hasAttribute("sources"))return;const g=n.item.hasAttribute("resizedWidth");if("imageInline"===e&&!g&&!a)return;const d=n.item.getAttribute("width"),m=n.item.getAttribute("height");d&&m&&r.setStyle("aspect-ratio",`${d}/${m}`,c)}))}t.conversion.for("upcast").attributeToAttribute({view:{name:n,styles:{width:/.+/}},model:{key:"width",value:e=>u(e)?m(e.getStyle("width")):null}}).attributeToAttribute({view:{name:n,key:"width"},model:"width"}).attributeToAttribute({view:{name:n,styles:{height:/.+/}},model:{key:"height",value:e=>u(e)?m(e.getStyle("height")):null}}).attributeToAttribute({view:{name:n,key:"height"},model:"height"}),t.conversion.for("editingDowncast").add((e=>{o(e,"width","width",!0),o(e,"height","height",!0)})),t.conversion.for("dataDowncast").add((e=>{o(e,"width","width",!1),o(e,"height","height",!1)}))}}class F extends e.Command{constructor(e,t){super(e),this._modelElementName=t}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}execute(e={}){const t=this.editor,i=this.editor.model,n=t.plugins.get("ImageUtils"),o=n.getClosestSelectedImageElement(i.document.selection),a=Object.fromEntries(o.getAttributes());return a.src||a.uploadId?i.change((t=>{const{setImageSizes:s=!0}=e,r=Array.from(i.markers).filter((e=>e.getRange().containsItem(o))),l=n.insertImage(a,i.createSelection(o,"on"),this._modelElementName,{setImageSizes:s});if(!l)return null;const c=t.createRangeOn(l);for(const e of r){const i=e.getRange(),n="$graveyard"!=i.root.rootName?i.getJoined(c,!0):c;t.updateMarker(e,{range:n})}return{oldElement:o,newElement:l}})):null}}var D=i(390),j={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(D.Z,j);D.Z.locals;class W extends e.Plugin{static get requires(){return[h]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const e=this.editor.model.schema;e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["placeholder"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const e=this.editor,t=e.conversion,i=e.plugins.get("ImageUtils");t.for("editingDowncast").add((e=>{e.on("attribute:placeholder",((e,t,n)=>{if(!n.consumable.test(t.item,e.name))return;if(!t.item.is("element","imageBlock")&&!t.item.is("element","imageInline"))return;n.consumable.consume(t.item,e.name);const o=n.writer,a=n.mapper.toViewElement(t.item),s=i.findViewImgElement(a);t.attributeNewValue?(o.addClass("image_placeholder",s),o.setStyle("background-image",`url(${t.attributeNewValue})`,s),o.setCustomProperty("editingPipeline:doNotReuseOnce",!0,s)):(o.removeClass("image_placeholder",s),o.removeStyle("background-image",s))}))}))}_setupLoadListener(){const e=this.editor,t=e.model,i=e.editing,n=i.view,o=e.plugins.get("ImageUtils");n.addObserver(R),this.listenTo(n.document,"imageLoaded",((e,a)=>{const s=n.domConverter.mapDomToView(a.target);if(!s)return;const r=o.getImageWidgetFromImageView(s);if(!r)return;const l=i.mapper.toModelElement(r);l&&l.hasAttribute("placeholder")&&t.enqueueChange({isUndoable:!1},(e=>{e.removeAttribute("placeholder",l)}))}))}}class M extends e.Plugin{static get requires(){return[O,L,h,W,t.ClipboardPipeline]}static get pluginName(){return"ImageBlockEditing"}init(){const e=this.editor;e.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new F(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,i=e.conversion,n=e.plugins.get("ImageUtils");i.for("dataDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:t})=>c(t)}),i.for("editingDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:i})=>n.toImageWidget(c(i),i,t("image widget"))}),i.for("downcast").add(U(n,"imageBlock","src")).add(U(n,"imageBlock","alt")).add(z(n,"imageBlock")),i.for("upcast").elementToElement({view:g(e,"imageBlock"),model:(e,{writer:t})=>t.createElement("imageBlock",e.hasAttribute("src")?{src:e.getAttribute("src")}:void 0)}).add(function(e){const t=(t,i,n)=>{if(!n.consumable.test(i.viewItem,{name:!0,classes:"image"}))return;const o=e.findViewImgElement(i.viewItem);if(!o||!n.consumable.test(o,{name:!0}))return;n.consumable.consume(i.viewItem,{name:!0,classes:"image"});const a=n.convertItem(o,i.modelCursor),s=(0,r.first)(a.modelRange.getItems());s?(n.convertChildren(i.viewItem,s),n.updateConversionResult(s,i)):n.consumable.revert(i.viewItem,{name:!0,classes:"image"})};return e=>{e.on("element:figure",t)}}(n))}_setupClipboardIntegration(){const e=this.editor,t=e.model,i=e.editing.view,n=e.plugins.get("ImageUtils"),a=e.plugins.get("ClipboardPipeline");this.listenTo(a,"inputTransformation",((a,s)=>{const r=Array.from(s.content.getChildren());let l;if(!r.every(n.isInlineImageView))return;l=s.targetRanges?e.editing.mapper.toModelRange(s.targetRanges[0]):t.document.selection.getFirstRange();const c=t.createSelection(l);if("imageBlock"===d(t.schema,c)){const e=new o.UpcastWriter(i.document),t=r.map((t=>e.createElement("figure",{class:"image"},t)));s.content=e.createDocumentFragment(t)}})),this.listenTo(a,"contentInsertion",((e,i)=>{"paste"===i.method&&t.change((e=>{const t=e.createRangeIn(i.content);for(const e of t.getItems())e.is("element","imageBlock")&&n.setImageNaturalSizeAttributes(e)}))}))}}var q=i(417),Z={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(q.Z,Z);q.Z.locals;class $ extends e.Plugin{static get requires(){return[M,l.Widget,V]}static get pluginName(){return"ImageBlock"}}class H extends e.Plugin{static get requires(){return[O,L,h,W,t.ClipboardPipeline]}static get pluginName(){return"ImageInlineEditing"}init(){const e=this.editor,t=e.model.schema;t.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),t.addChildCheck(((e,t)=>{if(e.endsWith("caption")&&"imageInline"===t.name)return!1})),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new F(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,i=e.conversion,n=e.plugins.get("ImageUtils");i.for("dataDowncast").elementToElement({model:"imageInline",view:(e,{writer:t})=>t.createEmptyElement("img")}),i.for("editingDowncast").elementToStructure({model:"imageInline",view:(e,{writer:i})=>n.toImageWidget(function(e){return e.createContainerElement("span",{class:"image-inline"},e.createEmptyElement("img"))}(i),i,t("image widget"))}),i.for("downcast").add(U(n,"imageInline","src")).add(U(n,"imageInline","alt")).add(z(n,"imageInline")),i.for("upcast").elementToElement({view:g(e,"imageInline"),model:(e,{writer:t})=>t.createElement("imageInline",e.hasAttribute("src")?{src:e.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const e=this.editor,t=e.model,i=e.editing.view,n=e.plugins.get("ImageUtils"),a=e.plugins.get("ClipboardPipeline");this.listenTo(a,"inputTransformation",((a,s)=>{const r=Array.from(s.content.getChildren());let l;if(!r.every(n.isBlockImageView))return;l=s.targetRanges?e.editing.mapper.toModelRange(s.targetRanges[0]):t.document.selection.getFirstRange();const c=t.createSelection(l);if("imageInline"===d(t.schema,c)){const e=new o.UpcastWriter(i.document),t=r.map((t=>1===t.childCount?(Array.from(t.getAttributes()).forEach((i=>e.setAttribute(...i,n.findViewImgElement(t)))),t.getChild(0)):t));s.content=e.createDocumentFragment(t)}})),this.listenTo(a,"contentInsertion",((e,i)=>{"paste"===i.method&&t.change((e=>{const t=e.createRangeIn(i.content);for(const e of t.getItems())e.is("element","imageInline")&&n.setImageNaturalSizeAttributes(e)}))}))}}class K extends e.Plugin{static get requires(){return[H,l.Widget,V]}static get pluginName(){return"ImageInline"}}class G extends e.Plugin{static get requires(){return[$,K]}static get pluginName(){return"Image"}}class J extends e.Plugin{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[h]}getCaptionFromImageModelElement(e){for(const t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}getCaptionFromModelSelection(e){const t=this.editor.plugins.get("ImageUtils"),i=e.getFirstPosition().findAncestor("caption");return i&&t.isBlockImage(i.parent)?i:null}matchImageCaptionViewElement(e){const t=this.editor.plugins.get("ImageUtils");return"figcaption"==e.name&&t.isBlockImageView(e.parent)?{name:!0}:null}}class Q extends e.Command{refresh(){const e=this.editor,t=e.plugins.get("ImageCaptionUtils"),i=e.plugins.get("ImageUtils");if(!e.plugins.has(M))return this.isEnabled=!1,void(this.value=!1);const n=e.model.document.selection,o=n.getSelectedElement();if(!o){const e=t.getCaptionFromModelSelection(n);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=i.isImage(o),this.isEnabled?this.value=!!t.getCaptionFromImageModelElement(o):this.value=!1}execute(e={}){const{focusCaptionOnShow:t}=e;this.editor.model.change((e=>{this.value?this._hideImageCaption(e):this._showImageCaption(e,t)}))}_showImageCaption(e,t){const i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageCaptionEditing"),o=this.editor.plugins.get("ImageUtils");let a=i.getSelectedElement();const s=n._getSavedCaption(a);o.isInlineImage(a)&&(this.editor.execute("imageTypeBlock"),a=i.getSelectedElement());const r=s||e.createElement("caption");e.append(r,a),t&&e.setSelection(r,"in")}_hideImageCaption(e){const t=this.editor,i=t.model.document.selection,n=t.plugins.get("ImageCaptionEditing"),o=t.plugins.get("ImageCaptionUtils");let a,s=i.getSelectedElement();s?a=o.getCaptionFromImageModelElement(s):(a=o.getCaptionFromModelSelection(i),s=a.parent),n._saveCaption(s,a),e.setSelection(s,"on"),e.remove(a)}}class X extends e.Plugin{static get requires(){return[h,J]}static get pluginName(){return"ImageCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new Q(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const e=this.editor,t=e.editing.view,i=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils"),a=e.t;e.conversion.for("upcast").elementToElement({view:e=>n.matchImageCaptionViewElement(e),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>i.isBlockImage(e.parent)?t.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:n})=>{if(!i.isBlockImage(e.parent))return null;const s=n.createEditableElement("figcaption");n.setCustomProperty("imageCaption",!0,s),s.placeholder=a("Enter image caption"),(0,o.enablePlaceholder)({view:t,element:s,keepOnFocus:!0});const r=e.parent.getAttribute("alt"),c=r?a("Caption for image: %0",[r]):a("Caption for the image");return(0,l.toWidgetEditable)(s,n,{label:c})}})}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),i=e.plugins.get("ImageCaptionUtils"),n=e.commands.get("imageTypeInline"),o=e.commands.get("imageTypeBlock"),a=e=>{if(!e.return)return;const{oldElement:n,newElement:o}=e.return;if(!n)return;if(t.isBlockImage(n)){const e=i.getCaptionFromImageModelElement(n);if(e)return void this._saveCaption(o,e)}const a=this._getSavedCaption(n);a&&this._saveCaption(o,a)};n&&this.listenTo(n,"execute",a,{priority:"low"}),o&&this.listenTo(o,"execute",a,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?o.Element.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}_registerCaptionReconversion(){const e=this.editor,t=e.model,i=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils");t.document.on("change:data",(()=>{const o=t.document.differ.getChanges();for(const t of o){if("alt"!==t.attributeKey)continue;const o=t.range.start.nodeAfter;if(i.isBlockImage(o)){const t=n.getCaptionFromImageModelElement(o);if(!t)return;e.editing.reconvertItem(t)}}}))}}class Y extends e.Plugin{static get requires(){return[J]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,i=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),o=t.t;t.ui.componentFactory.add("toggleImageCaption",(a=>{const s=t.commands.get("toggleImageCaption"),r=new v.ButtonView(a);return r.set({icon:e.icons.caption,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(s,"value","isEnabled"),r.bind("label").to(s,"value",(e=>o(e?"Toggle caption off":"Toggle caption on"))),this.listenTo(r,"execute",(()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const e=n.getCaptionFromModelSelection(t.model.document.selection);if(e){const n=t.editing.mapper.toViewElement(e);i.scrollToTheSelection(),i.change((e=>{e.addClass("image__caption_highlighted",n)}))}t.editing.view.focus()})),r}))}}var ee=i(86),te={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(ee.Z,te);ee.Z.locals;class ie extends e.Plugin{static get requires(){return[X,Y]}static get pluginName(){return"ImageCaption"}}var ne=i(448);function oe(e){const t=e.map((e=>e.replace("+","\\+")));return new RegExp(`^image\\/(${t.join("|")})$`)}function ae(e){return new Promise(((t,i)=>{const n=e.getAttribute("src");fetch(n).then((e=>e.blob())).then((e=>{const i=se(e,n),o=i.replace("image/",""),a=new File([e],`image.${o}`,{type:i});t(a)})).catch((e=>e&&"TypeError"===e.name?function(e){return function(e){return new Promise(((t,i)=>{const n=r.global.document.createElement("img");n.addEventListener("load",(()=>{const e=r.global.document.createElement("canvas");e.width=n.width,e.height=n.height;e.getContext("2d").drawImage(n,0,0),e.toBlob((e=>e?t(e):i()))})),n.addEventListener("error",(()=>i())),n.src=e}))}(e).then((t=>{const i=se(t,e),n=i.replace("image/","");return new File([t],`image.${n}`,{type:i})}))}(n).then(t).catch(i):i(e)))}))}function se(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class re extends e.Plugin{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,i=t.t,n=n=>{const o=new ne.FileDialogButtonView(n),a=t.commands.get("uploadImage"),s=t.config.get("image.upload.types"),r=oe(s);return o.set({acceptedType:s.map((e=>`image/${e}`)).join(","),allowMultipleFiles:!0}),o.buttonView.set({label:i("Insert image"),icon:e.icons.image,tooltip:!0}),o.buttonView.bind("isEnabled").to(a),o.on("done",((e,i)=>{const n=Array.from(i).filter((e=>r.test(e.type)));n.length&&(t.execute("uploadImage",{file:n}),t.editing.view.focus())})),o};t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n)}}var le=i(283),ce={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(le.Z,ce);le.Z.locals;var ge=i(651),de={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(ge.Z,de);ge.Z.locals;var me=i(582),ue={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(me.Z,ue);me.Z.locals;class pe extends e.Plugin{static get pluginName(){return"ImageUploadProgress"}constructor(e){super(e),this.uploadStatusChange=(e,t,i)=>{const n=this.editor,o=t.item,a=o.getAttribute("uploadId");if(!i.consumable.consume(t.item,e.name))return;const s=n.plugins.get("ImageUtils"),r=n.plugins.get(ne.FileRepository),l=a?t.attributeNewValue:null,c=this.placeholder,g=n.editing.mapper.toViewElement(o),d=i.writer;if("reading"==l)return he(g,d),void fe(s,c,g,d);if("uploading"==l){const e=r.loaders.get(a);return he(g,d),void(e?(be(g,d),function(e,t,i,n){const o=function(e){const t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),o),i.on("change:uploadedPercent",((e,t,i)=>{n.change((e=>{e.setStyle("width",i+"%",o)}))}))}(g,d,e,n.editing.view),function(e,t,i,n){if(n.data){const o=e.findViewImgElement(t);i.setAttribute("src",n.data,o)}}(s,g,d,e)):fe(s,c,g,d))}"complete"==l&&r.loaders.get(a)&&function(e,t,i){const n=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),n),setTimeout((()=>{i.change((e=>e.remove(e.createRangeOn(n))))}),3e3)}(g,d,n.editing.view),function(e,t){we(e,t,"progressBar")}(g,d),be(g,d),function(e,t){t.removeClass("ck-appear",e)}(g,d)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function he(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function fe(e,t,i,n){i.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",i);const o=e.findViewImgElement(i);o.getAttribute("src")!==t&&n.setAttribute("src",t,o),ke(i,"placeholder")||n.insert(n.createPositionAfter(o),function(e){const t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function be(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),we(e,t,"placeholder")}function ke(e,t){for(const i of e.getChildren())if(i.getCustomProperty(t))return i}function we(e,t,i){const n=ke(e,i);n&&t.remove(t.createRangeOn(n))}class Ie extends e.Command{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils"),i=e.model.document.selection.getSelectedElement();this.isEnabled=t.isImageAllowed()||t.isImage(i)}execute(e){const t=(0,r.toArray)(e.file),i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(i.getAttributes());t.forEach(((e,t)=>{const a=i.getSelectedElement();if(t&&a&&n.isImage(a)){const t=this.editor.model.createPositionAfter(a);this._uploadImage(e,o,t)}else this._uploadImage(e,o)}))}_uploadImage(e,t,i){const n=this.editor,o=n.plugins.get(ne.FileRepository).createLoader(e),a=n.plugins.get("ImageUtils");o&&a.insertImage({...t,uploadId:o.id},i)}}class ve extends e.Plugin{static get requires(){return[ne.FileRepository,v.Notification,t.ClipboardPipeline,h]}static get pluginName(){return"ImageUploadEditing"}constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const e=this.editor,t=e.model.document,i=e.conversion,n=e.plugins.get(ne.FileRepository),a=e.plugins.get("ImageUtils"),s=e.plugins.get("ClipboardPipeline"),r=oe(e.config.get("image.upload.types")),l=new Ie(e);e.commands.add("uploadImage",l),e.commands.add("imageUpload",l),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",((t,i)=>{if(n=i.dataTransfer,Array.from(n.types).includes("text/html")&&""!==n.getData("text/html"))return;var n;const o=Array.from(i.dataTransfer.files).filter((e=>!!e&&r.test(e.type)));o.length&&(t.stop(),e.model.change((t=>{i.targetRanges&&t.setSelection(i.targetRanges.map((t=>e.editing.mapper.toModelRange(t)))),e.execute("uploadImage",{file:o})})))})),this.listenTo(s,"inputTransformation",((t,i)=>{const s=Array.from(e.editing.view.createRangeIn(i.content)).map((e=>e.item)).filter((e=>function(e,t){return!(!e.isInlineImageView(t)||!t.getAttribute("src")||!t.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!t.getAttribute("src").match(/^blob:/g))}(a,e)&&!e.getAttribute("uploadProcessed"))).map((e=>({promise:ae(e),imageElement:e})));if(!s.length)return;const r=new o.UpcastWriter(e.editing.view.document);for(const e of s){r.setAttribute("uploadProcessed",!0,e.imageElement);const t=n.createLoader(e.promise);t&&(r.setAttribute("src","",e.imageElement),r.setAttribute("uploadId",t.id,e.imageElement))}})),e.editing.view.document.on("dragover",((e,t)=>{t.preventDefault()})),t.on("change",(()=>{const i=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),o=new Set;for(const t of i)if("insert"==t.type&&"$text"!=t.name){const i=t.position.nodeAfter,a="$graveyard"==t.position.root.rootName;for(const t of ye(e,i)){const e=t.getAttribute("uploadId");if(!e)continue;const i=n.loaders.get(e);i&&(a?o.has(e)||i.abort():(o.add(e),this._uploadImageElements.set(e,t),"idle"==i.status&&this._readAndUpload(i)))}}})),this.on("uploadComplete",((e,{imageElement:t,data:i})=>{const n=i.urls?i.urls:i;this.editor.model.change((e=>{e.setAttribute("src",n.default,t),this._parseAndSetSrcsetAttributeOnImage(n,t,e),a.setImageNaturalSizeAttributes(t)}))}),{priority:"low"})}afterInit(){const e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(e){const t=this.editor,i=t.model,n=t.locale.t,o=t.plugins.get(ne.FileRepository),a=t.plugins.get(v.Notification),s=t.plugins.get("ImageUtils"),l=this._uploadImageElements;return i.enqueueChange({isUndoable:!1},(t=>{t.setAttribute("uploadStatus","reading",l.get(e.id))})),e.read().then((()=>{const n=e.upload(),o=l.get(e.id);if(r.env.isSafari){const e=t.editing.mapper.toViewElement(o),i=s.findViewImgElement(e);t.editing.view.once("render",(()=>{if(!i.parent)return;const e=t.editing.view.domConverter.mapViewToDom(i.parent);if(!e)return;const n=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=n}))}return i.enqueueChange({isUndoable:!1},(e=>{e.setAttribute("uploadStatus","uploading",o)})),n})).then((t=>{i.enqueueChange({isUndoable:!1},(i=>{const n=l.get(e.id);i.setAttribute("uploadStatus","complete",n),this.fire("uploadComplete",{data:t,imageElement:n})})),c()})).catch((t=>{if("error"!==e.status&&"aborted"!==e.status)throw t;"error"==e.status&&t&&a.showWarning(t,{title:n("Upload failed"),namespace:"upload"}),i.enqueueChange({isUndoable:!1},(t=>{t.remove(l.get(e.id))})),c()}));function c(){i.enqueueChange({isUndoable:!1},(t=>{const i=l.get(e.id);t.removeAttribute("uploadId",i),t.removeAttribute("uploadStatus",i),l.delete(e.id)})),o.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,i){let n=0;const o=Object.keys(e).filter((e=>{const t=parseInt(e,10);if(!isNaN(t))return n=Math.max(n,t),!0})).map((t=>`${e[t]} ${t}w`)).join(", ");if(""!=o){const e={srcset:o};t.hasAttribute("width")||t.hasAttribute("height")||(e.width=n),i.setAttributes(e,t)}}}function ye(e,t){const i=e.plugins.get("ImageUtils");return Array.from(e.model.createRangeOn(t)).filter((e=>i.isImage(e.item))).map((e=>e.item))}class _e extends e.Plugin{static get pluginName(){return"ImageUpload"}static get requires(){return[ve,re,pe]}}var Ee=i(823),xe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(Ee.Z,xe);Ee.Z.locals;class Ce extends v.View{constructor(e,t={}){super(e);const i=this.bindTemplate;this.set("class",t.class||null),this.children=this.createCollection(),t.children&&t.children.forEach((e=>this.children.add(e))),this.set("_role",null),this.set("_ariaLabelledBy",null),t.labelView&&this.set({_role:"group",_ariaLabelledBy:t.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",i.to("class")],role:i.to("_role"),"aria-labelledby":i.to("_ariaLabelledBy")},children:this.children})}}var Se=i(554),Ae={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(Se.Z,Ae);Se.Z.locals;class Te extends v.View{constructor(e,t={}){super(e);const{insertButtonView:i,cancelButtonView:n}=this._createActionButtons(e);this.insertButtonView=i,this.cancelButtonView=n,this.set("imageURLInputValue",""),this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this._focusables=new v.ViewCollection,this._focusCycler=new v.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.set("_integrations",new r.Collection);for(const[e,i]of Object.entries(t))"insertImageViaUrl"===e&&(i.fieldView.bind("value").to(this,"imageURLInputValue",(e=>e||"")),i.fieldView.on("input",(()=>{this.imageURLInputValue=i.fieldView.element.value.trim()}))),i.name=e,this._integrations.add(i);this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:"-1"},children:[...this._integrations,new Ce(e,{children:[this.insertButtonView,this.cancelButtonView],class:"ck-image-insert-form__action-row"})]})}render(){super.render(),(0,v.submitHandler)({view:this});[...this._integrations,this.insertButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element);const e=e=>e.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()}getIntegration(e){return this._integrations.find((t=>t.name===e))}_createActionButtons(t){const i=t.t,n=new v.ButtonView(t),o=new v.ButtonView(t);return n.set({label:i("Insert"),icon:e.icons.check,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),o.set({label:i("Cancel"),icon:e.icons.cancel,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this,"imageURLInputValue",(e=>!!e)),n.delegate("execute").to(this,"submit"),o.delegate("execute").to(this,"cancel"),{insertButtonView:n,cancelButtonView:o}}focus(){this._focusCycler.focusFirst()}}function Be(e){const t=e.t,i=new v.LabeledFieldView(e,v.createLabeledInputText);return i.set({label:t("Insert image via URL")}),i.fieldView.placeholder="https://example.com/image.png",i}class Ve extends e.Plugin{static get pluginName(){return"ImageInsertUI"}init(){const e=this.editor,t=e=>this._createDropdownView(e);e.ui.componentFactory.add("insertImage",t),e.ui.componentFactory.add("imageInsert",t)}_createDropdownView(t){const i=this.editor,n=t.t,o=i.commands.get("uploadImage"),a=i.commands.get("insertImage");this.dropdownView=(0,v.createDropdown)(t,o?v.SplitButtonView:void 0);const s=this.dropdownView.buttonView,r=this.dropdownView.panelView;if(s.set({label:n("Insert image"),icon:e.icons.image,tooltip:!0}),r.extendTemplate({attributes:{class:"ck-image-insert__panel"}}),o){const e=this.dropdownView.buttonView;e.actionView=i.ui.componentFactory.create("uploadImage"),e.actionView.extendTemplate({attributes:{class:"ck ck-button ck-splitbutton__action"}})}return this._setUpDropdown(o||a)}_setUpDropdown(e){const t=this.editor,i=t.t,n=this.dropdownView,o=n.panelView,a=this.editor.plugins.get("ImageUtils"),s=t.commands.get("replaceImageSource");let r;function l(){t.editing.view.focus(),n.isOpen=!1}return n.bind("isEnabled").to(e),n.once("change:isOpen",(()=>{r=new Te(t.locale,function(e){const t=e.config.get("image.insert.integrations"),i=e.plugins.get("ImageInsertUI"),n={insertImageViaUrl:Be(e.locale)};if(!t)return n;if(t.find((e=>"openCKFinder"===e))&&e.ui.componentFactory.has("ckfinder")){const t=e.ui.componentFactory.create("ckfinder");t.set({withText:!0,class:"ck-image-insert__ck-finder-button"}),t.delegate("execute").to(i,"cancel"),n.openCKFinder=t}return t.reduce(((t,i)=>(n[i]?t[i]=n[i]:e.ui.componentFactory.has(i)&&(t[i]=e.ui.componentFactory.create(i)),t)),{})}(t)),r.delegate("submit","cancel").to(n),o.children.add(r)})),n.on("change:isOpen",(()=>{const e=t.model.document.selection.getSelectedElement(),o=r.insertButtonView,l=r.getIntegration("insertImageViaUrl");n.isOpen&&(a.isImage(e)?(r.imageURLInputValue=s.value,o.label=i("Update"),l.label=i("Update image URL")):(r.imageURLInputValue="",o.label=i("Insert"),l.label=i("Insert image via URL")))}),{priority:"low"}),this.delegate("cancel").to(n),n.on("submit",(()=>{l(),function(){const e=t.model.document.selection.getSelectedElement();a.isImage(e)?t.execute("replaceImageSource",{source:r.imageURLInputValue}):t.execute("insertImage",{source:r.imageURLInputValue})}()})),n.on("cancel",(()=>{l()})),n}}class ze extends e.Plugin{static get pluginName(){return"ImageInsertViaUrl"}static get requires(){return[Ve]}}class Ue extends e.Plugin{static get pluginName(){return"ImageInsert"}static get requires(){return[_e,ze,Ve]}}class Re extends e.Command{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils").getClosestSelectedImageElement(e.model.document.selection);this.isEnabled=!!t,t&&t.hasAttribute("resizedWidth")?this.value={width:t.getAttribute("resizedWidth"),height:null}:this.value=null}execute(e){const t=this.editor,i=t.model,n=t.plugins.get("ImageUtils"),o=n.getClosestSelectedImageElement(i.document.selection);this.value={width:e.width,height:null},o&&i.change((t=>{t.setAttribute("resizedWidth",e.width,o),t.removeAttribute("resizedHeight",o),n.setImageNaturalSizeAttributes(o)}))}}class Pe extends e.Plugin{static get requires(){return[h]}static get pluginName(){return"ImageResizeEditing"}constructor(e){super(e),e.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 e=this.editor,t=new Re(e);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),e.commands.add("resizeImage",t),e.commands.add("imageResize",t)}_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(e){const t=this.editor,i=t.plugins.get("ImageUtils");t.conversion.for("downcast").add((t=>t.on(`attribute:resizedWidth:${e}`,((e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;const n=i.writer,o=i.mapper.toViewElement(t.item);null!==t.attributeNewValue?(n.setStyle("width",t.attributeNewValue,o),n.addClass("image_resized",o)):(n.removeStyle("width",o),n.removeClass("image_resized",o))})))),t.conversion.for("dataDowncast").attributeToAttribute({model:{name:e,key:"resizedHeight"},view:e=>({key:"style",value:{height:e}})}),t.conversion.for("editingDowncast").add((t=>t.on(`attribute:resizedHeight:${e}`,((t,n,o)=>{if(!o.consumable.consume(n.item,t.name))return;const a=o.writer,s=o.mapper.toViewElement(n.item),r="imageInline"===e?i.findViewImgElement(s):s;null!==n.attributeNewValue?a.setStyle("height",n.attributeNewValue,r):a.removeStyle("height",r)})))),t.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===e?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:e=>u(e)?null:e.getStyle("width")}}),t.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===e?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:e=>u(e)?null:e.getStyle("height")}})}}const Ne={small:e.icons.objectSizeSmall,medium:e.icons.objectSizeMedium,large:e.icons.objectSizeLarge,original:e.icons.objectSizeFull};class Oe extends e.Plugin{static get requires(){return[Pe]}static get pluginName(){return"ImageResizeButtons"}constructor(e){super(e),this._resizeUnit=e.config.get("image.resizeUnit")}init(){const e=this.editor,t=e.config.get("image.resizeOptions"),i=e.commands.get("resizeImage");this.bind("isEnabled").to(i);for(const e of t)this._registerImageResizeButton(e);this._registerImageResizeDropdown(t)}_registerImageResizeButton(e){const t=this.editor,{name:i,value:n,icon:o}=e,a=n?n+this._resizeUnit:null;t.ui.componentFactory.add(i,(i=>{const n=new v.ButtonView(i),s=t.commands.get("resizeImage"),l=this._getOptionLabelValue(e,!0);if(!Ne[o])throw new r.CKEditorError("imageresizebuttons-missing-icon",t,e);return n.set({label:l,icon:Ne[o],tooltip:l,isToggleable:!0}),n.bind("isEnabled").to(this),n.bind("isOn").to(s,"value",Le(a)),this.listenTo(n,"execute",(()=>{t.execute("resizeImage",{width:a})})),n}))}_registerImageResizeDropdown(e){const t=this.editor,i=t.t,n=e.find((e=>!e.value)),o=o=>{const a=t.commands.get("resizeImage"),s=(0,v.createDropdown)(o,v.DropdownButtonView),r=s.buttonView,l=i("Resize image");return r.set({tooltip:l,commandValue:n.value,icon:Ne.medium,isToggleable:!0,label:this._getOptionLabelValue(n),withText:!0,class:"ck-resize-image-button",ariaLabel:l,ariaLabelledBy:void 0}),r.bind("label").to(a,"value",(e=>e&&e.width?e.width:this._getOptionLabelValue(n))),s.bind("isEnabled").to(this),(0,v.addListToDropdown)(s,(()=>this._getResizeDropdownListItemDefinitions(e,a)),{ariaLabel:i("Image resize list"),role:"menu"}),this.listenTo(s,"execute",(e=>{t.execute(e.source.commandName,{width:e.source.commandValue}),t.editing.view.focus()})),s};t.ui.componentFactory.add("resizeImage",o),t.ui.componentFactory.add("imageResize",o)}_getOptionLabelValue(e,t=!1){const i=this.editor.t;return e.label?e.label:t?e.value?i("Resize image to %0",e.value+this._resizeUnit):i("Resize image to the original size"):e.value?e.value+this._resizeUnit:i("Original")}_getResizeDropdownListItemDefinitions(e,t){const i=new r.Collection;return e.map((e=>{const n=e.value?e.value+this._resizeUnit:null,o={type:"button",model:new v.Model({commandName:"resizeImage",commandValue:n,label:this._getOptionLabelValue(e),role:"menuitemradio",withText:!0,icon:null})};o.model.bind("isOn").to(t,"value",Le(n)),i.add(o)})),i}}function Le(e){return t=>null===e&&t===e||null!==t&&t.width===e}const Fe="image_resized";class De extends e.Plugin{static get requires(){return[l.WidgetResize,h]}static get pluginName(){return"ImageResizeHandles"}init(){const e=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(e),this._setupResizerCreator()}_setupResizerCreator(){const e=this.editor,t=e.editing.view,i=e.plugins.get("ImageUtils");t.addObserver(R),this.listenTo(t.document,"imageLoaded",((n,o)=>{if(!o.target.matches("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"))return;const a=e.editing.view.domConverter,s=a.domToView(o.target),r=i.getImageWidgetFromImageView(s);let c=this.editor.plugins.get(l.WidgetResize).getResizerByViewElement(r);if(c)return void c.redraw();const g=e.editing.mapper,d=g.toModelElement(r);c=e.plugins.get(l.WidgetResize).attachTo({unit:e.config.get("image.resizeUnit"),modelElement:d,viewElement:r,editor:e,getHandleHost:e=>e.querySelector("img"),getResizeHost:()=>a.mapViewToDom(g.toViewElement(d.parent)),isCentered(){const e=d.getAttribute("imageStyle");return!e||"block"==e||"alignCenter"==e},onCommit(i){t.change((e=>{e.removeClass(Fe,r)})),e.execute("resizeImage",{width:i})}}),c.on("updateSize",(()=>{r.hasClass(Fe)||t.change((e=>{e.addClass(Fe,r)}));const e="imageInline"===d.name?s:r;e.getStyle("height")&&t.change((t=>{t.removeStyle("height",e)}))})),c.bind("isEnabled").to(this)}))}}var je=i(968),We={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(je.Z,We);je.Z.locals;class Me extends e.Plugin{static get requires(){return[Pe,De,Oe]}static get pluginName(){return"ImageResize"}}class qe extends e.Command{constructor(e,t){super(e),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map((e=>{if(e.isDefault)for(const t of e.modelElements)this._defaultStyles[t]=e.name;return[e.name,e]})))}refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}execute(e={}){const t=this.editor,i=t.model,n=t.plugins.get("ImageUtils");i.change((t=>{const o=e.value,{setImageSizes:a=!0}=e;let s=n.getClosestSelectedImageElement(i.document.selection);o&&this.shouldConvertImageType(o,s)&&(this.editor.execute(n.isBlockImage(s)?"imageTypeInline":"imageTypeBlock",{setImageSizes:a}),s=n.getClosestSelectedImageElement(i.document.selection)),!o||this._styles.get(o).isDefault?t.removeAttribute("imageStyle",s):t.setAttribute("imageStyle",o,s),a&&n.setImageNaturalSizeAttributes(s)}))}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}const{objectFullWidth:Ze,objectInline:$e,objectLeft:He,objectRight:Ke,objectCenter:Ge,objectBlockLeft:Je,objectBlockRight:Qe}=e.icons,Xe={get inline(){return{name:"inline",title:"In line",icon:$e,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:He,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Je,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Ge,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Ke,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Qe,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Ge,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Ke,modelElements:["imageBlock"],className:"image-style-side"}}},Ye={full:Ze,left:Je,right:Qe,center:Ge,inlineLeft:He,inlineRight:Ke,inline:$e},et=[{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 tt(e){(0,r.logWarning)("image-style-configuration-definition-invalid",e)}const it={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map((e=>function(e){e="string"==typeof e?Xe[e]?{...Xe[e]}:{name:e}:function(e,t){const i={...t};for(const n in e)Object.prototype.hasOwnProperty.call(t,n)||(i[n]=e[n]);return i}(Xe[e.name],e);"string"==typeof e.icon&&(e.icon=Ye[e.icon]||e.icon);return e}(e))).filter((t=>function(e,{isBlockPluginLoaded:t,isInlinePluginLoaded:i}){const{modelElements:n,name:o}=e;if(!(n&&n.length&&o))return tt({style:e}),!1;{const o=[t?"imageBlock":null,i?"imageInline":null];if(!n.some((e=>o.includes(e))))return(0,r.logWarning)("image-style-missing-dependency",{style:e,missingPlugins:n.map((e=>"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(t,e)))},getDefaultStylesConfiguration:function(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[...et]:[]},warnInvalidStyle:tt,DEFAULT_OPTIONS:Xe,DEFAULT_ICONS:Ye,DEFAULT_DROPDOWN_DEFINITIONS:et};function nt(e,t){for(const i of t)if(i.name===e)return i}class ot extends e.Plugin{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[h]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=it,i=this.editor,n=i.plugins.has("ImageBlockEditing"),o=i.plugins.has("ImageInlineEditing");i.config.define("image.styles",t(n,o)),this.normalizedStyles=e({configuredStyles:i.config.get("image.styles"),isBlockPluginLoaded:n,isInlinePluginLoaded:o}),this._setupConversion(n,o),this._setupPostFixer(),i.commands.add("imageStyle",new qe(i,this.normalizedStyles))}_setupConversion(e,t){const i=this.editor,n=i.model.schema,o=(a=this.normalizedStyles,(e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;const n=nt(t.attributeNewValue,a),o=nt(t.attributeOldValue,a),s=i.mapper.toViewElement(t.item),r=i.writer;o&&r.removeClass(o.className,s),n&&r.addClass(n.className,s)});var a;const s=function(e){const t={imageInline:e.filter((e=>!e.isDefault&&e.modelElements.includes("imageInline"))),imageBlock:e.filter((e=>!e.isDefault&&e.modelElements.includes("imageBlock")))};return(e,i,n)=>{if(!i.modelRange)return;const o=i.viewItem,a=(0,r.first)(i.modelRange.getItems());if(a&&n.schema.checkAttribute(a,"imageStyle"))for(const e of t[a.name])n.consumable.consume(o,{classes:e.className})&&n.writer.setAttribute("imageStyle",e.name,a)}}(this.normalizedStyles);i.editing.downcastDispatcher.on("attribute:imageStyle",o),i.data.downcastDispatcher.on("attribute:imageStyle",o),e&&(n.extend("imageBlock",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:figure",s,{priority:"low"})),t&&(n.extend("imageInline",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:img",s,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,i=e.plugins.get(h),n=new Map(this.normalizedStyles.map((e=>[e.name,e])));t.registerPostFixer((e=>{let o=!1;for(const a of t.differ.getChanges())if("insert"==a.type||"attribute"==a.type&&"imageStyle"==a.attributeKey){let t="insert"==a.type?a.position.nodeAfter:a.range.start.nodeAfter;if(t&&t.is("element","paragraph")&&t.childCount>0&&(t=t.getChild(0)),!i.isImage(t))continue;const s=t.getAttribute("imageStyle");if(!s)continue;const r=n.get(s);r&&r.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),o=!0)}return o}))}}const at=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const st=function(e){return e};var rt=i(151),lt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(rt.Z,lt);rt.Z.locals;class ct extends e.Plugin{static get requires(){return[ot]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){const e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],i=gt(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const e of i)this._createButton(e);const n=gt([...t.filter(at),...it.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles);for(const e of n)this._createDropdown(e,i)}_createDropdown(e,t){const i=this.editor.ui.componentFactory;i.add(e.name,(n=>{let o;const{defaultItem:a,items:s,title:r}=e,l=s.filter((e=>t.find((({name:t})=>dt(t)===e)))).map((e=>{const t=i.create(e);return e===a&&(o=t),t}));s.length!==l.length&&it.warnInvalidStyle({dropdown:e});const c=(0,v.createDropdown)(n,v.SplitButtonView),g=c.buttonView,d=g.arrowView;return(0,v.addToolbarToDropdown)(c,l,{enableActiveItemFocusOnDropdownOpen:!0}),g.set({label:mt(r,o.label),class:null,tooltip:!0}),d.unbind("label"),d.set({label:r}),g.bind("icon").toMany(l,"isOn",((...e)=>{const t=e.findIndex(st);return t<0?o.icon:l[t].icon})),g.bind("label").toMany(l,"isOn",((...e)=>{const t=e.findIndex(st);return mt(r,t<0?o.label:l[t].label)})),g.bind("isOn").toMany(l,"isOn",((...e)=>e.some(st))),g.bind("class").toMany(l,"isOn",((...e)=>e.some(st)?"ck-splitbutton_flatten":void 0)),g.on("execute",(()=>{l.some((({isOn:e})=>e))?c.isOpen=!c.isOpen:o.fire("execute")})),c.bind("isEnabled").toMany(l,"isEnabled",((...e)=>e.some(st))),this.listenTo(c,"execute",(()=>{this.editor.editing.view.focus()})),c}))}_createButton(e){const t=e.name;this.editor.ui.componentFactory.add(dt(t),(i=>{const n=this.editor.commands.get("imageStyle"),o=new v.ButtonView(i);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(n,"isEnabled"),o.bind("isOn").to(n,"value",(e=>e===t)),o.on("execute",this._executeCommand.bind(this,t)),o}))}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function gt(e,t){for(const i of e)t[i.title]&&(i.title=t[i.title]);return e}function dt(e){return`imageStyle:${e}`}function mt(e,t){return(e?e+": ":"")+t}class ut extends e.Plugin{static get requires(){return[ot,ct]}static get pluginName(){return"ImageStyle"}}class pt extends e.Plugin{static get requires(){return[l.WidgetToolbarRepository,h]}static get pluginName(){return"ImageToolbar"}afterInit(){const e=this.editor,t=e.t,i=e.plugins.get(l.WidgetToolbarRepository),n=e.plugins.get("ImageUtils");var o;i.register("image",{ariaLabel:t("Image toolbar"),items:(o=e.config.get("image.toolbar")||[],o.map((e=>at(e)?e.name:e))),getRelatedElement:e=>n.getClosestSelectedImageWidget(e)})}}class ht extends e.Plugin{static get requires(){return[O,h]}static get pluginName(){return"PictureEditing"}afterInit(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),e.plugins.has("ImageInlineEditing")&&e.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const e=this.editor,t=e.conversion,i=e.plugins.get("ImageUtils");t.for("upcast").add(function(e){const t=["srcset","media","type","sizes"],i=(i,n,o)=>{const a=n.viewItem;if(!o.consumable.test(a,{name:!0}))return;const s=new Map;for(const e of a.getChildren())if(e.is("element","source")){const i={};for(const n of t)e.hasAttribute(n)&&o.consumable.test(e,{attributes:n})&&(i[n]=e.getAttribute(n));Object.keys(i).length&&s.set(e,i)}const l=e.findViewImgElement(a);if(!l)return;let c=n.modelCursor.parent;if(!c.is("element","imageBlock")){const e=o.convertItem(l,n.modelCursor);n.modelRange=e.modelRange,n.modelCursor=e.modelCursor,c=(0,r.first)(e.modelRange.getItems())}o.consumable.consume(a,{name:!0});for(const[e,t]of s)o.consumable.consume(e,{attributes:Object.keys(t)});s.size&&o.writer.setAttribute("sources",Array.from(s.values()),c),o.convertChildren(a,c)};return e=>{e.on("element:picture",i)}}(i)),t.for("downcast").add(function(e){const t=(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const o=n.writer,a=n.mapper.toViewElement(i.item),s=e.findViewImgElement(a),r=i.attributeNewValue;if(r&&r.length){const e=o.createContainerElement("picture",null,r.map((e=>o.createEmptyElement("source",e)))),t=[];let i=s.parent;for(;i&&i.is("attributeElement");){const e=i.parent;o.unwrap(o.createRangeOn(s),i),t.unshift(i),i=e}o.insert(o.createPositionBefore(s),e),o.move(o.createRangeOn(s),o.createPositionAt(e,"end"));for(const i of t)o.wrap(o.createRangeOn(e),i)}else if(s.parent.is("element","picture")){const e=s.parent;o.move(o.createRangeOn(s),o.createPositionBefore(e)),o.remove(e)}};return e=>{e.on("attribute:sources:imageBlock",t),e.on("attribute:sources:imageInline",t)}}(i))}_setupImageUploadEditingIntegration(){const e=this.editor;if(!e.plugins.has("ImageUploadEditing"))return;const t=e.plugins.get("ImageUploadEditing");this.listenTo(t,"uploadComplete",((t,{imageElement:i,data:n})=>{const o=n.sources;o&&e.model.change((e=>{e.setAttributes({sources:o},i)}))}))}}})(),(window.CKEditor5=window.CKEditor5||{}).image=n})(); \ No newline at end of file + */(()=>{var e={487:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}}',""]);const a=o},417:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}",""]);const a=o},86:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}}",""]);const a=o},554:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}",""]);const a=o},390:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}",""]);const a=o},968:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}",""]);const a=o},151:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}",""]);const a=o},651:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}}',""]);const a=o},582:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}}',""]);const a=o},283:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}}",""]);const a=o},915:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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%}}",""]);const a=o},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(o[s]=!0)}for(var r=0;r<e.length;r++){var l=[].concat(e[r]);n&&o[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},t}},62:(e,t,i)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),s=[];function r(e){for(var t=-1,i=0;i<s.length;i++)if(s[i].identifier===e){t=i;break}return t}function l(e,t){for(var i={},n=[],o=0;o<e.length;o++){var a=e[o],l=t.base?a[0]+t.base:a[0],c=i[l]||0,g="".concat(l," ").concat(c);i[l]=c+1;var m=r(g),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==m?(s[m].references++,s[m].updater(d)):s.push({identifier:g,updater:f(d,t),references:1}),n.push(g)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=a(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var g,m=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function d(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=m(t,o);else{var a=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function u(e,t,i){var n=i.css,o=i.media,a=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var p=null,h=0;function f(e,t){var i,n,o;if(t.singleton){var a=h++;i=p||(p=c(t)),n=d.bind(null,i,a,!1),o=d.bind(null,i,a,!0)}else i=c(t),n=u.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=r(i[n]);s[o].references--}for(var a=l(e,t),c=0;c<i.length;c++){var g=r(i[c]);0===s[g].references&&(s[g].updater(),s.splice(g,1))}i=a}}}},945:(e,t,i)=>{e.exports=i(79)("./src/clipboard.js")},704:(e,t,i)=>{e.exports=i(79)("./src/core.js")},492:(e,t,i)=>{e.exports=i(79)("./src/engine.js")},181:(e,t,i)=>{e.exports=i(79)("./src/typing.js")},273:(e,t,i)=>{e.exports=i(79)("./src/ui.js")},254:(e,t,i)=>{e.exports=i(79)("./src/undo.js")},448:(e,t,i)=>{e.exports=i(79)("./src/upload.js")},209:(e,t,i)=>{e.exports=i(79)("./src/utils.js")},995:(e,t,i)=>{e.exports=i(79)("./src/widget.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,i),a.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{AutoImage:()=>k,Image:()=>ee,ImageBlock:()=>Q,ImageBlockEditing:()=>M,ImageCaption:()=>re,ImageCaptionEditing:()=>ne,ImageCaptionUI:()=>oe,ImageCaptionUtils:()=>te,ImageEditing:()=>O,ImageInline:()=>Y,ImageInsert:()=>Ue,ImageInsertUI:()=>K,ImageInsertViaUrl:()=>Ve,ImageResize:()=>We,ImageResizeButtons:()=>Ne,ImageResizeEditing:()=>Re,ImageResizeHandles:()=>Fe,ImageSizeAttributes:()=>L,ImageStyle:()=>dt,ImageStyleEditing:()=>nt,ImageStyleUI:()=>lt,ImageTextAlternative:()=>V,ImageTextAlternativeEditing:()=>w,ImageTextAlternativeUI:()=>B,ImageToolbar:()=>ut,ImageUpload:()=>Ae,ImageUploadEditing:()=>xe,ImageUploadProgress:()=>Ie,ImageUploadUI:()=>de,ImageUtils:()=>h,PictureEditing:()=>pt});var e=i(704),t=i(945),o=i(492),a=i(254),s=i(181),r=i(209),l=i(995);function c(e){return e.createContainerElement("figure",{class:"image"},[e.createEmptyElement("img"),e.createSlot("children")])}function g(e,t){const i=e.plugins.get("ImageUtils"),n=e.plugins.has("ImageInlineEditing")&&e.plugins.has("ImageBlockEditing");return e=>{if(!i.isInlineImageView(e))return null;if(!n)return o(e);return("block"==e.getStyle("display")||e.findAncestor(i.isBlockImageView)?"imageBlock":"imageInline")!==t?null:o(e)};function o(e){const t={name:!0};return e.hasAttribute("src")&&(t.attributes=["src"]),t}}function m(e,t){const i=(0,r.first)(t.getSelectedBlocks());return!i||e.isObject(i)||i.isEmpty&&"listItem"!=i.name?"imageBlock":"imageInline"}function d(e){return e&&e.endsWith("px")?parseInt(e):null}function u(e){const t=d(e.getStyle("width")),i=d(e.getStyle("height"));return!(!t||!i)}const p=/^(image|image-inline)$/;class h extends e.Plugin{constructor(){super(...arguments),this._domEmitter=new((0,r.DomEmitterMixin)())}static get pluginName(){return"ImageUtils"}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(e={},t=null,i=null,n={}){const o=this.editor,a=o.model,s=a.document.selection,r=f(o,t||s,i);e={...Object.fromEntries(s.getAttributes()),...e};for(const t in e)a.schema.checkAttribute(r,t)||delete e[t];return a.change((i=>{const{setImageSizes:o=!0}=n,s=i.createElement(r,e);return a.insertObject(s,t,null,{setSelection:"on",findOptimalPosition:t||"imageInline"==r?void 0:"auto"}),s.parent?(o&&this.setImageNaturalSizeAttributes(s),s):null}))}setImageNaturalSizeAttributes(e){const t=e.getAttribute("src");t&&(e.getAttribute("width")||e.getAttribute("height")||this.editor.model.change((i=>{const n=new r.global.window.Image;this._domEmitter.listenTo(n,"load",(()=>{e.getAttribute("width")||e.getAttribute("height")||this.editor.model.enqueueChange(i.batch,(t=>{t.setAttribute("width",n.naturalWidth,e),t.setAttribute("height",n.naturalHeight,e)})),this._domEmitter.stopListening(n,"load")})),n.src=t})))}getClosestSelectedImageWidget(e){const t=e.getFirstPosition();if(!t)return null;const i=e.getSelectedElement();if(i&&this.isImageWidget(i))return i;let n=t.parent;for(;n;){if(n.is("element")&&this.isImageWidget(n))return n;n=n.parent}return null}getClosestSelectedImageElement(e){const t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(e){return e.findAncestor({classes:p})}isImageAllowed(){const e=this.editor.model.document.selection;return function(e,t){const i=f(e,t,null);if("imageBlock"==i){const i=function(e,t){const i=(0,l.findOptimalInsertionRange)(e,t),n=i.start.parent;if(n.isEmpty&&!n.is("element","$root"))return n.parent;return n}(t,e.model);if(e.model.schema.checkChild(i,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}(this.editor,e)&&function(e){return[...e.focus.getAncestors()].every((e=>!e.is("element","imageBlock")))}(e)}toImageWidget(e,t,i){t.setCustomProperty("image",!0,e);return(0,l.toWidget)(e,t,{label:()=>{const t=this.findViewImgElement(e).getAttribute("alt");return t?`${t} ${i}`:i}})}isImageWidget(e){return!!e.getCustomProperty("image")&&(0,l.isWidget)(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;const t=this.editor.editing.view;for(const{item:i}of t.createRangeIn(e))if(this.isInlineImageView(i))return i}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function f(e,t,i){const n=e.model.schema,o=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?i||("inline"===o?"imageInline":"auto"!==o?"imageBlock":t.is("selection")?m(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}const b=new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class k extends e.Plugin{static get requires(){return[t.Clipboard,h,a.Undo,s.Delete]}static get pluginName(){return"AutoImage"}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){const e=this.editor,t=e.model.document,i=e.plugins.get("ClipboardPipeline");this.listenTo(i,"inputTransformation",(()=>{const e=t.selection.getFirstRange(),i=o.LivePosition.fromPosition(e.start);i.stickiness="toPrevious";const n=o.LivePosition.fromPosition(e.end);n.stickiness="toNext",t.once("change:data",(()=>{this._embedImageBetweenPositions(i,n),i.detach(),n.detach()}),{priority:"high"})})),e.commands.get("undo").on("execute",(()=>{this._timeoutId&&(r.global.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedImageBetweenPositions(e,t){const i=this.editor,n=new o.LiveRange(e,t),a=n.getWalker({ignoreElementEnd:!0}),s=Object.fromEntries(i.model.document.selection.getAttributes()),r=this.editor.plugins.get("ImageUtils");let l="";for(const e of a)e.item.is("$textProxy")&&(l+=e.item.data);l=l.trim(),l.match(b)?(this._positionToInsert=o.LivePosition.fromPosition(e),this._timeoutId=setTimeout((()=>{if(!i.commands.get("insertImage").isEnabled)return void n.detach();i.model.change((e=>{let t;this._timeoutId=null,e.remove(n),n.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert.toPosition()),r.insertImage({...s,src:l},t),this._positionToInsert.detach(),this._positionToInsert=null}));i.plugins.get("Delete").requestUndoOnBackspace()}),100)):n.detach()}}class I extends e.Command{refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){const t=this.editor,i=t.plugins.get("ImageUtils"),n=t.model,o=i.getClosestSelectedImageElement(n.document.selection);n.change((t=>{t.setAttribute("alt",e.newValue,o)}))}}class w extends e.Plugin{static get requires(){return[h]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new I(this.editor))}}var v=i(273),y=i(62),_=i.n(y),C=i(915),E={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(C.Z,E);C.Z.locals;var x=i(487),S={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(x.Z,S);x.Z.locals;class A extends v.View{constructor(t){super(t);const i=this.locale.t;this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(i("Save"),e.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),e.icons.cancel,"ck-button-cancel","cancel"),this._focusables=new v.ViewCollection,this._focusCycler=new v.FocusCycler({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),(0,v.submitHandler)({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,i,n){const o=new v.ButtonView(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:i}}),n&&o.delegate("execute").to(this,n),o}_createLabeledInputView(){const e=this.locale.t,t=new v.LabeledFieldView(this.locale,v.createLabeledInputText);return t.label=e("Text alternative"),t}}function T(e){const t=e.editing.view,i=v.BalloonPanelView.defaultPositions,n=e.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}class B extends e.Plugin{static get requires(){return[v.ContextualBalloon]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,i=t.t;t.ui.componentFactory.add("imageTextAlternative",(n=>{const o=t.commands.get("imageTextAlternative"),a=new v.ButtonView(n);return a.set({label:i("Change image text alternative"),icon:e.icons.textAlternative,tooltip:!0}),a.bind("isEnabled").to(o,"isEnabled"),a.bind("isOn").to(o,"value",(e=>!!e)),this.listenTo(a,"execute",(()=>{this._showForm()})),a}))}_createForm(){const e=this.editor,t=e.editing.view.document,i=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new((0,v.CssTransitionDisablerMixin)(A))(e.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{e.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",((e,t)=>{this._hideForm(!0),t()})),this.listenTo(e.ui,"update",(()=>{i.getClosestSelectedImageWidget(t.selection)?this._isVisible&&function(e){const t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){const i=T(e);t.updatePosition(i)}}(e):this._hideForm(!0)})),(0,v.clickOutsideHandler)({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const e=this.editor,t=e.commands.get("imageTextAlternative"),i=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:T(e)}),i.fieldView.value=i.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&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 V extends e.Plugin{static get requires(){return[w,B]}static get pluginName(){return"ImageTextAlternative"}}function U(e,t){const i=(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const o=n.writer,a=n.mapper.toViewElement(i.item),s=e.findViewImgElement(a);null===i.attributeNewValue?(o.removeAttribute("srcset",s),o.removeAttribute("sizes",s)):i.attributeNewValue&&(o.setAttribute("srcset",i.attributeNewValue,s),o.setAttribute("sizes","100vw",s))};return e=>{e.on(`attribute:srcset:${t}`,i)}}function z(e,t,i){const n=(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const o=n.writer,a=n.mapper.toViewElement(i.item),s=e.findViewImgElement(a);o.setAttribute(i.attributeKey,i.attributeNewValue||"",s)};return e=>{e.on(`attribute:${i}:${t}`,n)}}class R extends o.Observer{observe(e){this.listenTo(e,"load",((e,t)=>{const i=t.target;this.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&this._fireEvents(t)}),{useCapture:!0})}stopObserving(e){this.stopListening(e)}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}class P extends e.Command{constructor(e){super(e);const t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||"block"===t&&(0,r.logWarning)("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===t&&(0,r.logWarning)("image-inline-plugin-required")}refresh(){const e=this.editor.plugins.get("ImageUtils");this.isEnabled=e.isImageAllowed()}execute(e){const t=(0,r.toArray)(e.source),i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(i.getAttributes());t.forEach(((e,t)=>{const a=i.getSelectedElement();if("string"==typeof e&&(e={src:e}),t&&a&&n.isImage(a)){const t=this.editor.model.createPositionAfter(a);n.insertImage({...e,...o},t)}else n.insertImage({...e,...o})}))}}class N extends e.Command{constructor(e){super(e),this.decorate("cleanupImage")}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=e.isImage(t),this.value=this.isEnabled?t.getAttribute("src"):null}execute(e){const t=this.editor.model.document.selection.getSelectedElement(),i=this.editor.plugins.get("ImageUtils");this.editor.model.change((n=>{n.setAttribute("src",e.source,t),this.cleanupImage(n,t),i.setImageNaturalSizeAttributes(t)}))}cleanupImage(e,t){e.removeAttribute("srcset",t),e.removeAttribute("sizes",t),e.removeAttribute("sources",t),e.removeAttribute("width",t),e.removeAttribute("height",t),e.removeAttribute("alt",t)}}class O extends e.Plugin{static get requires(){return[h]}static get pluginName(){return"ImageEditing"}init(){const e=this.editor,t=e.conversion;e.editing.view.addObserver(R),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const i=new P(e),n=new N(e);e.commands.add("insertImage",i),e.commands.add("replaceImageSource",n),e.commands.add("imageInsert",i)}}class L extends e.Plugin{static get requires(){return[h]}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(e){const t=this.editor,i=t.plugins.get("ImageUtils"),n="imageBlock"===e?"figure":"img";function o(t,n,o,a){t.on(`attribute:${n}:${e}`,((t,n,s)=>{if(!s.consumable.consume(n.item,t.name))return;const r=s.writer,l=s.mapper.toViewElement(n.item),c=i.findViewImgElement(l);if(null!==n.attributeNewValue?r.setAttribute(o,n.attributeNewValue,c):r.removeAttribute(o,c),n.item.hasAttribute("sources"))return;const g=n.item.hasAttribute("resizedWidth");if("imageInline"===e&&!g&&!a)return;const m=n.item.getAttribute("width"),d=n.item.getAttribute("height");m&&d&&r.setStyle("aspect-ratio",`${m}/${d}`,c)}))}t.conversion.for("upcast").attributeToAttribute({view:{name:n,styles:{width:/.+/}},model:{key:"width",value:e=>u(e)?d(e.getStyle("width")):null}}).attributeToAttribute({view:{name:n,key:"width"},model:"width"}).attributeToAttribute({view:{name:n,styles:{height:/.+/}},model:{key:"height",value:e=>u(e)?d(e.getStyle("height")):null}}).attributeToAttribute({view:{name:n,key:"height"},model:"height"}),t.conversion.for("editingDowncast").add((e=>{o(e,"width","width",!0),o(e,"height","height",!0)})),t.conversion.for("dataDowncast").add((e=>{o(e,"width","width",!1),o(e,"height","height",!1)}))}}class F extends e.Command{constructor(e,t){super(e),this._modelElementName=t}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}execute(e={}){const t=this.editor,i=this.editor.model,n=t.plugins.get("ImageUtils"),o=n.getClosestSelectedImageElement(i.document.selection),a=Object.fromEntries(o.getAttributes());return a.src||a.uploadId?i.change((t=>{const{setImageSizes:s=!0}=e,r=Array.from(i.markers).filter((e=>e.getRange().containsItem(o))),l=n.insertImage(a,i.createSelection(o,"on"),this._modelElementName,{setImageSizes:s});if(!l)return null;const c=t.createRangeOn(l);for(const e of r){const i=e.getRange(),n="$graveyard"!=i.root.rootName?i.getJoined(c,!0):c;t.updateMarker(e,{range:n})}return{oldElement:o,newElement:l}})):null}}var D=i(390),j={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(D.Z,j);D.Z.locals;class W extends e.Plugin{static get requires(){return[h]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const e=this.editor.model.schema;e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["placeholder"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const e=this.editor,t=e.conversion,i=e.plugins.get("ImageUtils");t.for("editingDowncast").add((e=>{e.on("attribute:placeholder",((e,t,n)=>{if(!n.consumable.test(t.item,e.name))return;if(!t.item.is("element","imageBlock")&&!t.item.is("element","imageInline"))return;n.consumable.consume(t.item,e.name);const o=n.writer,a=n.mapper.toViewElement(t.item),s=i.findViewImgElement(a);t.attributeNewValue?(o.addClass("image_placeholder",s),o.setStyle("background-image",`url(${t.attributeNewValue})`,s),o.setCustomProperty("editingPipeline:doNotReuseOnce",!0,s)):(o.removeClass("image_placeholder",s),o.removeStyle("background-image",s))}))}))}_setupLoadListener(){const e=this.editor,t=e.model,i=e.editing,n=i.view,o=e.plugins.get("ImageUtils");n.addObserver(R),this.listenTo(n.document,"imageLoaded",((e,a)=>{const s=n.domConverter.mapDomToView(a.target);if(!s)return;const r=o.getImageWidgetFromImageView(s);if(!r)return;const l=i.mapper.toModelElement(r);l&&l.hasAttribute("placeholder")&&t.enqueueChange({isUndoable:!1},(e=>{e.removeAttribute("placeholder",l)}))}))}}class M extends e.Plugin{static get requires(){return[O,L,h,W,t.ClipboardPipeline]}static get pluginName(){return"ImageBlockEditing"}init(){const e=this.editor;e.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new F(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,i=e.conversion,n=e.plugins.get("ImageUtils");i.for("dataDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:t})=>c(t)}),i.for("editingDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:i})=>n.toImageWidget(c(i),i,t("image widget"))}),i.for("downcast").add(z(n,"imageBlock","src")).add(z(n,"imageBlock","alt")).add(U(n,"imageBlock")),i.for("upcast").elementToElement({view:g(e,"imageBlock"),model:(e,{writer:t})=>t.createElement("imageBlock",e.hasAttribute("src")?{src:e.getAttribute("src")}:void 0)}).add(function(e){const t=(t,i,n)=>{if(!n.consumable.test(i.viewItem,{name:!0,classes:"image"}))return;const o=e.findViewImgElement(i.viewItem);if(!o||!n.consumable.test(o,{name:!0}))return;n.consumable.consume(i.viewItem,{name:!0,classes:"image"});const a=n.convertItem(o,i.modelCursor),s=(0,r.first)(a.modelRange.getItems());s?(n.convertChildren(i.viewItem,s),n.updateConversionResult(s,i)):n.consumable.revert(i.viewItem,{name:!0,classes:"image"})};return e=>{e.on("element:figure",t)}}(n))}_setupClipboardIntegration(){const e=this.editor,t=e.model,i=e.editing.view,n=e.plugins.get("ImageUtils"),a=e.plugins.get("ClipboardPipeline");this.listenTo(a,"inputTransformation",((a,s)=>{const r=Array.from(s.content.getChildren());let l;if(!r.every(n.isInlineImageView))return;l=s.targetRanges?e.editing.mapper.toModelRange(s.targetRanges[0]):t.document.selection.getFirstRange();const c=t.createSelection(l);if("imageBlock"===m(t.schema,c)){const e=new o.UpcastWriter(i.document),t=r.map((t=>e.createElement("figure",{class:"image"},t)));s.content=e.createDocumentFragment(t)}})),this.listenTo(a,"contentInsertion",((e,i)=>{"paste"===i.method&&t.change((e=>{const t=e.createRangeIn(i.content);for(const e of t.getItems())e.is("element","imageBlock")&&n.setImageNaturalSizeAttributes(e)}))}))}}var q=i(554),$={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(q.Z,$);q.Z.locals;class Z extends v.View{constructor(e,t=[]){super(e),this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this._focusables=new v.ViewCollection,this.children=this.createCollection(),this._focusCycler=new v.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const e of t)this.children.add(e),this._focusables.add(e),e instanceof v.CollapsibleView&&this._focusables.addMany(e.children);if(this._focusables.length>1)for(const e of this._focusables)H(e)&&(e.focusCycler.on("forwardCycle",(e=>{this._focusCycler.focusNext(),e.stop()})),e.focusCycler.on("backwardCycle",(e=>{this._focusCycler.focusPrevious(),e.stop()})));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),(0,v.submitHandler)({view:this});for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);const e=e=>e.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()}}function H(e){return"focusCycler"in e}class K extends e.Plugin{static get pluginName(){return"ImageInsertUI"}static get requires(){return[h]}constructor(e){super(e),this._integrations=new Map,e.config.define("image.insert.integrations",["upload","assetManager","url"])}init(){const e=this.editor,t=e.model.document.selection,i=e.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(e.model.document,"change",(()=>{this.isImageSelected=i.isImage(t.getSelectedElement())}));const n=e=>this._createToolbarComponent(e);e.ui.componentFactory.add("insertImage",n),e.ui.componentFactory.add("imageInsert",n)}registerIntegration({name:e,observable:t,buttonViewCreator:i,formViewCreator:n,requiresForm:o}){this._integrations.has(e)&&(0,r.logWarning)("image-insert-integration-exists",{name:e}),this._integrations.set(e,{observable:t,buttonViewCreator:i,formViewCreator:n,requiresForm:!!o})}_createToolbarComponent(e){const t=this.editor,i=e.t,n=this._prepareIntegrations();if(!n.length)return null;let o;const a=n[0];if(1==n.length){if(!a.requiresForm)return a.buttonViewCreator(!0);o=a.buttonViewCreator(!0)}else{const t=a.buttonViewCreator(!1);o=new v.SplitButtonView(e,t),o.tooltip=!0,o.bind("label").to(this,"isImageSelected",(e=>i(e?"Replace image":"Insert image")))}const s=this.dropdownView=(0,v.createDropdown)(e,o),r=n.map((({observable:e})=>e));return s.bind("isEnabled").toMany(r,"isEnabled",((...e)=>e.some((e=>e)))),s.once("change:isOpen",(()=>{const e=n.map((({formViewCreator:e})=>e(1==n.length))),i=new Z(t.locale,e);s.panelView.children.add(i)})),s}_prepareIntegrations(){const e=this.editor.config.get("image.insert.integrations"),t=[];if(!e.length)return(0,r.logWarning)("image-insert-integrations-not-specified"),t;for(const i of e)this._integrations.has(i)?t.push(this._integrations.get(i)):["upload","assetManager","url"].includes(i)||(0,r.logWarning)("image-insert-unknown-integration",{item:i});return t.length||(0,r.logWarning)("image-insert-integrations-not-registered"),t}}var G=i(417),J={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(G.Z,J);G.Z.locals;class Q extends e.Plugin{static get requires(){return[M,l.Widget,V,K]}static get pluginName(){return"ImageBlock"}}class X extends e.Plugin{static get requires(){return[O,L,h,W,t.ClipboardPipeline]}static get pluginName(){return"ImageInlineEditing"}init(){const e=this.editor,t=e.model.schema;t.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),t.addChildCheck(((e,t)=>{if(e.endsWith("caption")&&"imageInline"===t.name)return!1})),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new F(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,i=e.conversion,n=e.plugins.get("ImageUtils");i.for("dataDowncast").elementToElement({model:"imageInline",view:(e,{writer:t})=>t.createEmptyElement("img")}),i.for("editingDowncast").elementToStructure({model:"imageInline",view:(e,{writer:i})=>n.toImageWidget(function(e){return e.createContainerElement("span",{class:"image-inline"},e.createEmptyElement("img"))}(i),i,t("image widget"))}),i.for("downcast").add(z(n,"imageInline","src")).add(z(n,"imageInline","alt")).add(U(n,"imageInline")),i.for("upcast").elementToElement({view:g(e,"imageInline"),model:(e,{writer:t})=>t.createElement("imageInline",e.hasAttribute("src")?{src:e.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const e=this.editor,t=e.model,i=e.editing.view,n=e.plugins.get("ImageUtils"),a=e.plugins.get("ClipboardPipeline");this.listenTo(a,"inputTransformation",((a,s)=>{const r=Array.from(s.content.getChildren());let l;if(!r.every(n.isBlockImageView))return;l=s.targetRanges?e.editing.mapper.toModelRange(s.targetRanges[0]):t.document.selection.getFirstRange();const c=t.createSelection(l);if("imageInline"===m(t.schema,c)){const e=new o.UpcastWriter(i.document),t=r.map((t=>1===t.childCount?(Array.from(t.getAttributes()).forEach((i=>e.setAttribute(...i,n.findViewImgElement(t)))),t.getChild(0)):t));s.content=e.createDocumentFragment(t)}})),this.listenTo(a,"contentInsertion",((e,i)=>{"paste"===i.method&&t.change((e=>{const t=e.createRangeIn(i.content);for(const e of t.getItems())e.is("element","imageInline")&&n.setImageNaturalSizeAttributes(e)}))}))}}class Y extends e.Plugin{static get requires(){return[X,l.Widget,V,K]}static get pluginName(){return"ImageInline"}}class ee extends e.Plugin{static get requires(){return[Q,Y]}static get pluginName(){return"Image"}}class te extends e.Plugin{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[h]}getCaptionFromImageModelElement(e){for(const t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}getCaptionFromModelSelection(e){const t=this.editor.plugins.get("ImageUtils"),i=e.getFirstPosition().findAncestor("caption");return i&&t.isBlockImage(i.parent)?i:null}matchImageCaptionViewElement(e){const t=this.editor.plugins.get("ImageUtils");return"figcaption"==e.name&&t.isBlockImageView(e.parent)?{name:!0}:null}}class ie extends e.Command{refresh(){const e=this.editor,t=e.plugins.get("ImageCaptionUtils"),i=e.plugins.get("ImageUtils");if(!e.plugins.has(M))return this.isEnabled=!1,void(this.value=!1);const n=e.model.document.selection,o=n.getSelectedElement();if(!o){const e=t.getCaptionFromModelSelection(n);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=i.isImage(o),this.isEnabled?this.value=!!t.getCaptionFromImageModelElement(o):this.value=!1}execute(e={}){const{focusCaptionOnShow:t}=e;this.editor.model.change((e=>{this.value?this._hideImageCaption(e):this._showImageCaption(e,t)}))}_showImageCaption(e,t){const i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageCaptionEditing"),o=this.editor.plugins.get("ImageUtils");let a=i.getSelectedElement();const s=n._getSavedCaption(a);o.isInlineImage(a)&&(this.editor.execute("imageTypeBlock"),a=i.getSelectedElement());const r=s||e.createElement("caption");e.append(r,a),t&&e.setSelection(r,"in")}_hideImageCaption(e){const t=this.editor,i=t.model.document.selection,n=t.plugins.get("ImageCaptionEditing"),o=t.plugins.get("ImageCaptionUtils");let a,s=i.getSelectedElement();s?a=o.getCaptionFromImageModelElement(s):(a=o.getCaptionFromModelSelection(i),s=a.parent),n._saveCaption(s,a),e.setSelection(s,"on"),e.remove(a)}}class ne extends e.Plugin{static get requires(){return[h,te]}static get pluginName(){return"ImageCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new ie(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const e=this.editor,t=e.editing.view,i=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils"),a=e.t;e.conversion.for("upcast").elementToElement({view:e=>n.matchImageCaptionViewElement(e),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>i.isBlockImage(e.parent)?t.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:n})=>{if(!i.isBlockImage(e.parent))return null;const s=n.createEditableElement("figcaption");n.setCustomProperty("imageCaption",!0,s),s.placeholder=a("Enter image caption"),(0,o.enablePlaceholder)({view:t,element:s,keepOnFocus:!0});const r=e.parent.getAttribute("alt"),c=r?a("Caption for image: %0",[r]):a("Caption for the image");return(0,l.toWidgetEditable)(s,n,{label:c})}})}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),i=e.plugins.get("ImageCaptionUtils"),n=e.commands.get("imageTypeInline"),o=e.commands.get("imageTypeBlock"),a=e=>{if(!e.return)return;const{oldElement:n,newElement:o}=e.return;if(!n)return;if(t.isBlockImage(n)){const e=i.getCaptionFromImageModelElement(n);if(e)return void this._saveCaption(o,e)}const a=this._getSavedCaption(n);a&&this._saveCaption(o,a)};n&&this.listenTo(n,"execute",a,{priority:"low"}),o&&this.listenTo(o,"execute",a,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?o.Element.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}_registerCaptionReconversion(){const e=this.editor,t=e.model,i=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils");t.document.on("change:data",(()=>{const o=t.document.differ.getChanges();for(const t of o){if("alt"!==t.attributeKey)continue;const o=t.range.start.nodeAfter;if(i.isBlockImage(o)){const t=n.getCaptionFromImageModelElement(o);if(!t)return;e.editing.reconvertItem(t)}}}))}}class oe extends e.Plugin{static get requires(){return[te]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,i=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),o=t.t;t.ui.componentFactory.add("toggleImageCaption",(a=>{const s=t.commands.get("toggleImageCaption"),r=new v.ButtonView(a);return r.set({icon:e.icons.caption,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(s,"value","isEnabled"),r.bind("label").to(s,"value",(e=>o(e?"Toggle caption off":"Toggle caption on"))),this.listenTo(r,"execute",(()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const e=n.getCaptionFromModelSelection(t.model.document.selection);if(e){const n=t.editing.mapper.toViewElement(e);i.scrollToTheSelection(),i.change((e=>{e.addClass("image__caption_highlighted",n)}))}t.editing.view.focus()})),r}))}}var ae=i(86),se={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(ae.Z,se);ae.Z.locals;class re extends e.Plugin{static get requires(){return[ne,oe]}static get pluginName(){return"ImageCaption"}}var le=i(448);function ce(e){const t=e.map((e=>e.replace("+","\\+")));return new RegExp(`^image\\/(${t.join("|")})$`)}function ge(e){return new Promise(((t,i)=>{const n=e.getAttribute("src");fetch(n).then((e=>e.blob())).then((e=>{const i=me(e,n),o=i.replace("image/",""),a=new File([e],`image.${o}`,{type:i});t(a)})).catch((e=>e&&"TypeError"===e.name?function(e){return function(e){return new Promise(((t,i)=>{const n=r.global.document.createElement("img");n.addEventListener("load",(()=>{const e=r.global.document.createElement("canvas");e.width=n.width,e.height=n.height;e.getContext("2d").drawImage(n,0,0),e.toBlob((e=>e?t(e):i()))})),n.addEventListener("error",(()=>i())),n.src=e}))}(e).then((t=>{const i=me(t,e),n=i.replace("image/","");return new File([t],`image.${n}`,{type:i})}))}(n).then(t).catch(i):i(e)))}))}function me(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class de extends e.Plugin{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,i=t.t,n=n=>{const o=new le.FileDialogButtonView(n),a=t.commands.get("uploadImage"),s=t.config.get("image.upload.types"),r=ce(s);return o.set({acceptedType:s.map((e=>`image/${e}`)).join(","),allowMultipleFiles:!0,label:i("Upload image from computer"),icon:e.icons.imageUpload,tooltip:!0}),o.bind("isEnabled").to(a),o.on("done",((e,i)=>{const n=Array.from(i).filter((e=>r.test(e.type)));n.length&&(t.execute("uploadImage",{file:n}),t.editing.view.focus())})),o};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.plugins.has("ImageInsertUI")){const e=t.plugins.get("ImageInsertUI"),n=t.commands.get("uploadImage");e.registerIntegration({name:"upload",observable:n,buttonViewCreator:()=>{const n=t.ui.componentFactory.create("uploadImage");return n.bind("label").to(e,"isImageSelected",(e=>i(e?"Replace image from computer":"Upload image from computer"))),n},formViewCreator:()=>{const n=t.ui.componentFactory.create("uploadImage");return n.withText=!0,n.bind("label").to(e,"isImageSelected",(e=>i(e?"Replace from computer":"Upload from computer"))),n.on("execute",(()=>{e.dropdownView.isOpen=!1})),n}})}}}var ue=i(283),pe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(ue.Z,pe);ue.Z.locals;var he=i(651),fe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(he.Z,fe);he.Z.locals;var be=i(582),ke={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(be.Z,ke);be.Z.locals;class Ie extends e.Plugin{static get pluginName(){return"ImageUploadProgress"}constructor(e){super(e),this.uploadStatusChange=(e,t,i)=>{const n=this.editor,o=t.item,a=o.getAttribute("uploadId");if(!i.consumable.consume(t.item,e.name))return;const s=n.plugins.get("ImageUtils"),r=n.plugins.get(le.FileRepository),l=a?t.attributeNewValue:null,c=this.placeholder,g=n.editing.mapper.toViewElement(o),m=i.writer;if("reading"==l)return we(g,m),void ve(s,c,g,m);if("uploading"==l){const e=r.loaders.get(a);return we(g,m),void(e?(ye(g,m),function(e,t,i,n){const o=function(e){const t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),o),i.on("change:uploadedPercent",((e,t,i)=>{n.change((e=>{e.setStyle("width",i+"%",o)}))}))}(g,m,e,n.editing.view),function(e,t,i,n){if(n.data){const o=e.findViewImgElement(t);i.setAttribute("src",n.data,o)}}(s,g,m,e)):ve(s,c,g,m))}"complete"==l&&r.loaders.get(a)&&function(e,t,i){const n=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),n),setTimeout((()=>{i.change((e=>e.remove(e.createRangeOn(n))))}),3e3)}(g,m,n.editing.view),function(e,t){Ce(e,t,"progressBar")}(g,m),ye(g,m),function(e,t){t.removeClass("ck-appear",e)}(g,m)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function we(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function ve(e,t,i,n){i.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",i);const o=e.findViewImgElement(i);o.getAttribute("src")!==t&&n.setAttribute("src",t,o),_e(i,"placeholder")||n.insert(n.createPositionAfter(o),function(e){const t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function ye(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Ce(e,t,"placeholder")}function _e(e,t){for(const i of e.getChildren())if(i.getCustomProperty(t))return i}function Ce(e,t,i){const n=_e(e,i);n&&t.remove(t.createRangeOn(n))}class Ee extends e.Command{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils"),i=e.model.document.selection.getSelectedElement();this.isEnabled=t.isImageAllowed()||t.isImage(i)}execute(e){const t=(0,r.toArray)(e.file),i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(i.getAttributes());t.forEach(((e,t)=>{const a=i.getSelectedElement();if(t&&a&&n.isImage(a)){const t=this.editor.model.createPositionAfter(a);this._uploadImage(e,o,t)}else this._uploadImage(e,o)}))}_uploadImage(e,t,i){const n=this.editor,o=n.plugins.get(le.FileRepository).createLoader(e),a=n.plugins.get("ImageUtils");o&&a.insertImage({...t,uploadId:o.id},i)}}class xe extends e.Plugin{static get requires(){return[le.FileRepository,v.Notification,t.ClipboardPipeline,h]}static get pluginName(){return"ImageUploadEditing"}constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const e=this.editor,t=e.model.document,i=e.conversion,n=e.plugins.get(le.FileRepository),a=e.plugins.get("ImageUtils"),s=e.plugins.get("ClipboardPipeline"),r=ce(e.config.get("image.upload.types")),l=new Ee(e);e.commands.add("uploadImage",l),e.commands.add("imageUpload",l),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",((t,i)=>{if(n=i.dataTransfer,Array.from(n.types).includes("text/html")&&""!==n.getData("text/html"))return;var n;const o=Array.from(i.dataTransfer.files).filter((e=>!!e&&r.test(e.type)));o.length&&(t.stop(),e.model.change((t=>{i.targetRanges&&t.setSelection(i.targetRanges.map((t=>e.editing.mapper.toModelRange(t)))),e.execute("uploadImage",{file:o})})))})),this.listenTo(s,"inputTransformation",((t,i)=>{const s=Array.from(e.editing.view.createRangeIn(i.content)).map((e=>e.item)).filter((e=>function(e,t){return!(!e.isInlineImageView(t)||!t.getAttribute("src")||!t.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!t.getAttribute("src").match(/^blob:/g))}(a,e)&&!e.getAttribute("uploadProcessed"))).map((e=>({promise:ge(e),imageElement:e})));if(!s.length)return;const r=new o.UpcastWriter(e.editing.view.document);for(const e of s){r.setAttribute("uploadProcessed",!0,e.imageElement);const t=n.createLoader(e.promise);t&&(r.setAttribute("src","",e.imageElement),r.setAttribute("uploadId",t.id,e.imageElement))}})),e.editing.view.document.on("dragover",((e,t)=>{t.preventDefault()})),t.on("change",(()=>{const i=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),o=new Set;for(const t of i)if("insert"==t.type&&"$text"!=t.name){const i=t.position.nodeAfter,a="$graveyard"==t.position.root.rootName;for(const t of Se(e,i)){const e=t.getAttribute("uploadId");if(!e)continue;const i=n.loaders.get(e);i&&(a?o.has(e)||i.abort():(o.add(e),this._uploadImageElements.set(e,t),"idle"==i.status&&this._readAndUpload(i)))}}})),this.on("uploadComplete",((e,{imageElement:t,data:i})=>{const n=i.urls?i.urls:i;this.editor.model.change((e=>{e.setAttribute("src",n.default,t),this._parseAndSetSrcsetAttributeOnImage(n,t,e),a.setImageNaturalSizeAttributes(t)}))}),{priority:"low"})}afterInit(){const e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(e){const t=this.editor,i=t.model,n=t.locale.t,o=t.plugins.get(le.FileRepository),a=t.plugins.get(v.Notification),s=t.plugins.get("ImageUtils"),l=this._uploadImageElements;return i.enqueueChange({isUndoable:!1},(t=>{t.setAttribute("uploadStatus","reading",l.get(e.id))})),e.read().then((()=>{const n=e.upload(),o=l.get(e.id);if(r.env.isSafari){const e=t.editing.mapper.toViewElement(o),i=s.findViewImgElement(e);t.editing.view.once("render",(()=>{if(!i.parent)return;const e=t.editing.view.domConverter.mapViewToDom(i.parent);if(!e)return;const n=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=n}))}return i.enqueueChange({isUndoable:!1},(e=>{e.setAttribute("uploadStatus","uploading",o)})),n})).then((t=>{i.enqueueChange({isUndoable:!1},(i=>{const n=l.get(e.id);i.setAttribute("uploadStatus","complete",n),this.fire("uploadComplete",{data:t,imageElement:n})})),c()})).catch((t=>{if("error"!==e.status&&"aborted"!==e.status)throw t;"error"==e.status&&t&&a.showWarning(t,{title:n("Upload failed"),namespace:"upload"}),i.enqueueChange({isUndoable:!1},(t=>{t.remove(l.get(e.id))})),c()}));function c(){i.enqueueChange({isUndoable:!1},(t=>{const i=l.get(e.id);t.removeAttribute("uploadId",i),t.removeAttribute("uploadStatus",i),l.delete(e.id)})),o.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,i){let n=0;const o=Object.keys(e).filter((e=>{const t=parseInt(e,10);if(!isNaN(t))return n=Math.max(n,t),!0})).map((t=>`${e[t]} ${t}w`)).join(", ");if(""!=o){const e={srcset:o};t.hasAttribute("width")||t.hasAttribute("height")||(e.width=n),i.setAttributes(e,t)}}}function Se(e,t){const i=e.plugins.get("ImageUtils");return Array.from(e.model.createRangeOn(t)).filter((e=>i.isImage(e.item))).map((e=>e.item))}class Ae extends e.Plugin{static get pluginName(){return"ImageUpload"}static get requires(){return[xe,de,Ie]}}class Te extends v.View{constructor(e){super(e),this.set("imageURLInputValue",""),this.set("isImageSelected",!1),this.set("isEnabled",!0),this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this._focusables=new v.ViewCollection,this.focusCycler=new v.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.urlInputView=this._createUrlInputView(),this.insertButtonView=this._createInsertButton(),this.cancelButtonView=this._createCancelButton(),this._focusables.addMany([this.urlInputView,this.insertButtonView,this.cancelButtonView]),this.setTemplate({tag:"div",attributes:{class:["ck","ck-image-insert-url"]},children:[this.urlInputView,{tag:"div",attributes:{class:["ck","ck-image-insert-url__action-row"]},children:[this.insertButtonView,this.cancelButtonView]}]})}render(){super.render();for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createUrlInputView(){const e=this.locale,t=e.t,i=new v.LabeledFieldView(e,v.createLabeledInputText);return i.bind("label").to(this,"isImageSelected",(e=>t(e?"Update image URL":"Insert image via URL"))),i.bind("isEnabled").to(this),i.fieldView.placeholder="https://example.com/image.png",i.fieldView.bind("value").to(this,"imageURLInputValue",(e=>e||"")),i.fieldView.on("input",(()=>{this.imageURLInputValue=i.fieldView.element.value.trim()})),i}_createInsertButton(){const t=this.locale,i=t.t,n=new v.ButtonView(t);return n.set({icon:e.icons.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("label").to(this,"isImageSelected",(e=>i(e?"Update":"Insert"))),n.bind("isEnabled").to(this,"imageURLInputValue",this,"isEnabled",((...e)=>e.every((e=>e)))),n.delegate("execute").to(this,"submit"),n}_createCancelButton(){const t=this.locale,i=t.t,n=new v.ButtonView(t);return n.set({label:i("Cancel"),icon:e.icons.cancel,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this),n.delegate("execute").to(this,"cancel"),n}focus(e){-1===e?this.focusCycler.focusLast():this.focusCycler.focusFirst()}}class Be extends e.Plugin{static get pluginName(){return"ImageInsertViaUrlUI"}static get requires(){return[K]}init(){this._imageInsertUI=this.editor.plugins.get("ImageInsertUI");const e=this.editor.commands.get("insertImage");this._imageInsertUI.registerIntegration({name:"url",observable:e,requiresForm:!0,buttonViewCreator:e=>this._createInsertUrlButton(e),formViewCreator:e=>this._createInsertUrlView(e)})}_createInsertUrlView(e){const t=this.editor,i=t.locale,n=i.t,o=t.commands.get("replaceImageSource"),a=t.commands.get("insertImage"),s=new Te(i),r=e?null:new v.CollapsibleView(i,[s]);return s.bind("isImageSelected").to(this._imageInsertUI),s.bind("isEnabled").toMany([a,o],"isEnabled",((...e)=>e.some((e=>e)))),s.imageURLInputValue=o.value||"",this._imageInsertUI.dropdownView.on("change:isOpen",(()=>{this._imageInsertUI.dropdownView.isOpen&&(s.imageURLInputValue=o.value||"",r&&(r.isCollapsed=!0))}),{priority:"low"}),s.on("submit",(()=>{o.isEnabled?t.execute("replaceImageSource",{source:s.imageURLInputValue}):t.execute("insertImage",{source:s.imageURLInputValue}),this._closePanel()})),s.on("cancel",(()=>this._closePanel())),r?(r.set({isCollapsed:!0}),r.bind("label").to(this._imageInsertUI,"isImageSelected",(e=>n(e?"Update image URL":"Insert image via URL"))),r):s}_createInsertUrlButton(t){const i=t?v.DropdownButtonView:v.ButtonView,n=this.editor,o=new i(n.locale),a=n.locale.t;return o.set({icon:e.icons.imageUrl,tooltip:!0}),o.bind("label").to(this._imageInsertUI,"isImageSelected",(e=>a(e?"Update image URL":"Insert image via URL"))),o}_closePanel(){this.editor.editing.view.focus(),this._imageInsertUI.dropdownView.isOpen=!1}}class Ve extends e.Plugin{static get pluginName(){return"ImageInsertViaUrl"}static get requires(){return[Be,K]}}class Ue extends e.Plugin{static get pluginName(){return"ImageInsert"}static get requires(){return[Ae,Ve,K]}}class ze extends e.Command{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils").getClosestSelectedImageElement(e.model.document.selection);this.isEnabled=!!t,t&&t.hasAttribute("resizedWidth")?this.value={width:t.getAttribute("resizedWidth"),height:null}:this.value=null}execute(e){const t=this.editor,i=t.model,n=t.plugins.get("ImageUtils"),o=n.getClosestSelectedImageElement(i.document.selection);this.value={width:e.width,height:null},o&&i.change((t=>{t.setAttribute("resizedWidth",e.width,o),t.removeAttribute("resizedHeight",o),n.setImageNaturalSizeAttributes(o)}))}}class Re extends e.Plugin{static get requires(){return[h]}static get pluginName(){return"ImageResizeEditing"}constructor(e){super(e),e.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 e=this.editor,t=new ze(e);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),e.commands.add("resizeImage",t),e.commands.add("imageResize",t)}_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(e){const t=this.editor,i=t.plugins.get("ImageUtils");t.conversion.for("downcast").add((t=>t.on(`attribute:resizedWidth:${e}`,((e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;const n=i.writer,o=i.mapper.toViewElement(t.item);null!==t.attributeNewValue?(n.setStyle("width",t.attributeNewValue,o),n.addClass("image_resized",o)):(n.removeStyle("width",o),n.removeClass("image_resized",o))})))),t.conversion.for("dataDowncast").attributeToAttribute({model:{name:e,key:"resizedHeight"},view:e=>({key:"style",value:{height:e}})}),t.conversion.for("editingDowncast").add((t=>t.on(`attribute:resizedHeight:${e}`,((t,n,o)=>{if(!o.consumable.consume(n.item,t.name))return;const a=o.writer,s=o.mapper.toViewElement(n.item),r="imageInline"===e?i.findViewImgElement(s):s;null!==n.attributeNewValue?a.setStyle("height",n.attributeNewValue,r):a.removeStyle("height",r)})))),t.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===e?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:e=>u(e)?null:e.getStyle("width")}}),t.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===e?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:e=>u(e)?null:e.getStyle("height")}})}}const Pe={small:e.icons.objectSizeSmall,medium:e.icons.objectSizeMedium,large:e.icons.objectSizeLarge,original:e.icons.objectSizeFull};class Ne extends e.Plugin{static get requires(){return[Re]}static get pluginName(){return"ImageResizeButtons"}constructor(e){super(e),this._resizeUnit=e.config.get("image.resizeUnit")}init(){const e=this.editor,t=e.config.get("image.resizeOptions"),i=e.commands.get("resizeImage");this.bind("isEnabled").to(i);for(const e of t)this._registerImageResizeButton(e);this._registerImageResizeDropdown(t)}_registerImageResizeButton(e){const t=this.editor,{name:i,value:n,icon:o}=e,a=n?n+this._resizeUnit:null;t.ui.componentFactory.add(i,(i=>{const n=new v.ButtonView(i),s=t.commands.get("resizeImage"),l=this._getOptionLabelValue(e,!0);if(!Pe[o])throw new r.CKEditorError("imageresizebuttons-missing-icon",t,e);return n.set({label:l,icon:Pe[o],tooltip:l,isToggleable:!0}),n.bind("isEnabled").to(this),n.bind("isOn").to(s,"value",Oe(a)),this.listenTo(n,"execute",(()=>{t.execute("resizeImage",{width:a})})),n}))}_registerImageResizeDropdown(e){const t=this.editor,i=t.t,n=e.find((e=>!e.value)),o=o=>{const a=t.commands.get("resizeImage"),s=(0,v.createDropdown)(o,v.DropdownButtonView),r=s.buttonView,l=i("Resize image");return r.set({tooltip:l,commandValue:n.value,icon:Pe.medium,isToggleable:!0,label:this._getOptionLabelValue(n),withText:!0,class:"ck-resize-image-button",ariaLabel:l,ariaLabelledBy:void 0}),r.bind("label").to(a,"value",(e=>e&&e.width?e.width:this._getOptionLabelValue(n))),s.bind("isEnabled").to(this),(0,v.addListToDropdown)(s,(()=>this._getResizeDropdownListItemDefinitions(e,a)),{ariaLabel:i("Image resize list"),role:"menu"}),this.listenTo(s,"execute",(e=>{t.execute(e.source.commandName,{width:e.source.commandValue}),t.editing.view.focus()})),s};t.ui.componentFactory.add("resizeImage",o),t.ui.componentFactory.add("imageResize",o)}_getOptionLabelValue(e,t=!1){const i=this.editor.t;return e.label?e.label:t?e.value?i("Resize image to %0",e.value+this._resizeUnit):i("Resize image to the original size"):e.value?e.value+this._resizeUnit:i("Original")}_getResizeDropdownListItemDefinitions(e,t){const i=new r.Collection;return e.map((e=>{const n=e.value?e.value+this._resizeUnit:null,o={type:"button",model:new v.Model({commandName:"resizeImage",commandValue:n,label:this._getOptionLabelValue(e),role:"menuitemradio",withText:!0,icon:null})};o.model.bind("isOn").to(t,"value",Oe(n)),i.add(o)})),i}}function Oe(e){return t=>null===e&&t===e||null!==t&&t.width===e}const Le="image_resized";class Fe extends e.Plugin{static get requires(){return[l.WidgetResize,h]}static get pluginName(){return"ImageResizeHandles"}init(){const e=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(e),this._setupResizerCreator()}_setupResizerCreator(){const e=this.editor,t=e.editing.view,i=e.plugins.get("ImageUtils");t.addObserver(R),this.listenTo(t.document,"imageLoaded",((n,o)=>{if(!o.target.matches("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"))return;const a=e.editing.view.domConverter,s=a.domToView(o.target),r=i.getImageWidgetFromImageView(s);let c=this.editor.plugins.get(l.WidgetResize).getResizerByViewElement(r);if(c)return void c.redraw();const g=e.editing.mapper,m=g.toModelElement(r);c=e.plugins.get(l.WidgetResize).attachTo({unit:e.config.get("image.resizeUnit"),modelElement:m,viewElement:r,editor:e,getHandleHost:e=>e.querySelector("img"),getResizeHost:()=>a.mapViewToDom(g.toViewElement(m.parent)),isCentered(){const e=m.getAttribute("imageStyle");return!e||"block"==e||"alignCenter"==e},onCommit(i){t.change((e=>{e.removeClass(Le,r)})),e.execute("resizeImage",{width:i})}}),c.on("updateSize",(()=>{r.hasClass(Le)||t.change((e=>{e.addClass(Le,r)}));const e="imageInline"===m.name?s:r;e.getStyle("height")&&t.change((t=>{t.removeStyle("height",e)}))})),c.bind("isEnabled").to(this)}))}}var De=i(968),je={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(De.Z,je);De.Z.locals;class We extends e.Plugin{static get requires(){return[Re,Fe,Ne]}static get pluginName(){return"ImageResize"}}class Me extends e.Command{constructor(e,t){super(e),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map((e=>{if(e.isDefault)for(const t of e.modelElements)this._defaultStyles[t]=e.name;return[e.name,e]})))}refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}execute(e={}){const t=this.editor,i=t.model,n=t.plugins.get("ImageUtils");i.change((t=>{const o=e.value,{setImageSizes:a=!0}=e;let s=n.getClosestSelectedImageElement(i.document.selection);o&&this.shouldConvertImageType(o,s)&&(this.editor.execute(n.isBlockImage(s)?"imageTypeInline":"imageTypeBlock",{setImageSizes:a}),s=n.getClosestSelectedImageElement(i.document.selection)),!o||this._styles.get(o).isDefault?t.removeAttribute("imageStyle",s):t.setAttribute("imageStyle",o,s),a&&n.setImageNaturalSizeAttributes(s)}))}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}const{objectFullWidth:qe,objectInline:$e,objectLeft:Ze,objectRight:He,objectCenter:Ke,objectBlockLeft:Ge,objectBlockRight:Je}=e.icons,Qe={get inline(){return{name:"inline",title:"In line",icon:$e,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ze,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Ge,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Ke,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:He,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Je,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Ke,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:He,modelElements:["imageBlock"],className:"image-style-side"}}},Xe={full:qe,left:Ge,right:Je,center:Ke,inlineLeft:Ze,inlineRight:He,inline:$e},Ye=[{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 et(e){(0,r.logWarning)("image-style-configuration-definition-invalid",e)}const tt={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map((e=>function(e){e="string"==typeof e?Qe[e]?{...Qe[e]}:{name:e}:function(e,t){const i={...t};for(const n in e)Object.prototype.hasOwnProperty.call(t,n)||(i[n]=e[n]);return i}(Qe[e.name],e);"string"==typeof e.icon&&(e.icon=Xe[e.icon]||e.icon);return e}(e))).filter((t=>function(e,{isBlockPluginLoaded:t,isInlinePluginLoaded:i}){const{modelElements:n,name:o}=e;if(!(n&&n.length&&o))return et({style:e}),!1;{const o=[t?"imageBlock":null,i?"imageInline":null];if(!n.some((e=>o.includes(e))))return(0,r.logWarning)("image-style-missing-dependency",{style:e,missingPlugins:n.map((e=>"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(t,e)))},getDefaultStylesConfiguration:function(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[...Ye]:[]},warnInvalidStyle:et,DEFAULT_OPTIONS:Qe,DEFAULT_ICONS:Xe,DEFAULT_DROPDOWN_DEFINITIONS:Ye};function it(e,t){for(const i of t)if(i.name===e)return i}class nt extends e.Plugin{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[h]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=tt,i=this.editor,n=i.plugins.has("ImageBlockEditing"),o=i.plugins.has("ImageInlineEditing");i.config.define("image.styles",t(n,o)),this.normalizedStyles=e({configuredStyles:i.config.get("image.styles"),isBlockPluginLoaded:n,isInlinePluginLoaded:o}),this._setupConversion(n,o),this._setupPostFixer(),i.commands.add("imageStyle",new Me(i,this.normalizedStyles))}_setupConversion(e,t){const i=this.editor,n=i.model.schema,o=(a=this.normalizedStyles,(e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;const n=it(t.attributeNewValue,a),o=it(t.attributeOldValue,a),s=i.mapper.toViewElement(t.item),r=i.writer;o&&r.removeClass(o.className,s),n&&r.addClass(n.className,s)});var a;const s=function(e){const t={imageInline:e.filter((e=>!e.isDefault&&e.modelElements.includes("imageInline"))),imageBlock:e.filter((e=>!e.isDefault&&e.modelElements.includes("imageBlock")))};return(e,i,n)=>{if(!i.modelRange)return;const o=i.viewItem,a=(0,r.first)(i.modelRange.getItems());if(a&&n.schema.checkAttribute(a,"imageStyle"))for(const e of t[a.name])n.consumable.consume(o,{classes:e.className})&&n.writer.setAttribute("imageStyle",e.name,a)}}(this.normalizedStyles);i.editing.downcastDispatcher.on("attribute:imageStyle",o),i.data.downcastDispatcher.on("attribute:imageStyle",o),e&&(n.extend("imageBlock",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:figure",s,{priority:"low"})),t&&(n.extend("imageInline",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:img",s,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,i=e.plugins.get(h),n=new Map(this.normalizedStyles.map((e=>[e.name,e])));t.registerPostFixer((e=>{let o=!1;for(const a of t.differ.getChanges())if("insert"==a.type||"attribute"==a.type&&"imageStyle"==a.attributeKey){let t="insert"==a.type?a.position.nodeAfter:a.range.start.nodeAfter;if(t&&t.is("element","paragraph")&&t.childCount>0&&(t=t.getChild(0)),!i.isImage(t))continue;const s=t.getAttribute("imageStyle");if(!s)continue;const r=n.get(s);r&&r.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),o=!0)}return o}))}}const ot=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const at=function(e){return e};var st=i(151),rt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};_()(st.Z,rt);st.Z.locals;class lt extends e.Plugin{static get requires(){return[nt]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){const e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],i=ct(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const e of i)this._createButton(e);const n=ct([...t.filter(ot),...tt.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles);for(const e of n)this._createDropdown(e,i)}_createDropdown(e,t){const i=this.editor.ui.componentFactory;i.add(e.name,(n=>{let o;const{defaultItem:a,items:s,title:r}=e,l=s.filter((e=>t.find((({name:t})=>gt(t)===e)))).map((e=>{const t=i.create(e);return e===a&&(o=t),t}));s.length!==l.length&&tt.warnInvalidStyle({dropdown:e});const c=(0,v.createDropdown)(n,v.SplitButtonView),g=c.buttonView,m=g.arrowView;return(0,v.addToolbarToDropdown)(c,l,{enableActiveItemFocusOnDropdownOpen:!0}),g.set({label:mt(r,o.label),class:null,tooltip:!0}),m.unbind("label"),m.set({label:r}),g.bind("icon").toMany(l,"isOn",((...e)=>{const t=e.findIndex(at);return t<0?o.icon:l[t].icon})),g.bind("label").toMany(l,"isOn",((...e)=>{const t=e.findIndex(at);return mt(r,t<0?o.label:l[t].label)})),g.bind("isOn").toMany(l,"isOn",((...e)=>e.some(at))),g.bind("class").toMany(l,"isOn",((...e)=>e.some(at)?"ck-splitbutton_flatten":void 0)),g.on("execute",(()=>{l.some((({isOn:e})=>e))?c.isOpen=!c.isOpen:o.fire("execute")})),c.bind("isEnabled").toMany(l,"isEnabled",((...e)=>e.some(at))),this.listenTo(c,"execute",(()=>{this.editor.editing.view.focus()})),c}))}_createButton(e){const t=e.name;this.editor.ui.componentFactory.add(gt(t),(i=>{const n=this.editor.commands.get("imageStyle"),o=new v.ButtonView(i);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(n,"isEnabled"),o.bind("isOn").to(n,"value",(e=>e===t)),o.on("execute",this._executeCommand.bind(this,t)),o}))}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function ct(e,t){for(const i of e)t[i.title]&&(i.title=t[i.title]);return e}function gt(e){return`imageStyle:${e}`}function mt(e,t){return(e?e+": ":"")+t}class dt extends e.Plugin{static get requires(){return[nt,lt]}static get pluginName(){return"ImageStyle"}}class ut extends e.Plugin{static get requires(){return[l.WidgetToolbarRepository,h]}static get pluginName(){return"ImageToolbar"}afterInit(){const e=this.editor,t=e.t,i=e.plugins.get(l.WidgetToolbarRepository),n=e.plugins.get("ImageUtils");var o;i.register("image",{ariaLabel:t("Image toolbar"),items:(o=e.config.get("image.toolbar")||[],o.map((e=>ot(e)?e.name:e))),getRelatedElement:e=>n.getClosestSelectedImageWidget(e)})}}class pt extends e.Plugin{static get requires(){return[O,h]}static get pluginName(){return"PictureEditing"}afterInit(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),e.plugins.has("ImageInlineEditing")&&e.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const e=this.editor,t=e.conversion,i=e.plugins.get("ImageUtils");t.for("upcast").add(function(e){const t=["srcset","media","type","sizes"],i=(i,n,o)=>{const a=n.viewItem;if(!o.consumable.test(a,{name:!0}))return;const s=new Map;for(const e of a.getChildren())if(e.is("element","source")){const i={};for(const n of t)e.hasAttribute(n)&&o.consumable.test(e,{attributes:n})&&(i[n]=e.getAttribute(n));Object.keys(i).length&&s.set(e,i)}const l=e.findViewImgElement(a);if(!l)return;let c=n.modelCursor.parent;if(!c.is("element","imageBlock")){const e=o.convertItem(l,n.modelCursor);n.modelRange=e.modelRange,n.modelCursor=e.modelCursor,c=(0,r.first)(e.modelRange.getItems())}o.consumable.consume(a,{name:!0});for(const[e,t]of s)o.consumable.consume(e,{attributes:Object.keys(t)});s.size&&o.writer.setAttribute("sources",Array.from(s.values()),c),o.convertChildren(a,c)};return e=>{e.on("element:picture",i)}}(i)),t.for("downcast").add(function(e){const t=(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const o=n.writer,a=n.mapper.toViewElement(i.item),s=e.findViewImgElement(a),r=i.attributeNewValue;if(r&&r.length){const e=o.createContainerElement("picture",null,r.map((e=>o.createEmptyElement("source",e)))),t=[];let i=s.parent;for(;i&&i.is("attributeElement");){const e=i.parent;o.unwrap(o.createRangeOn(s),i),t.unshift(i),i=e}o.insert(o.createPositionBefore(s),e),o.move(o.createRangeOn(s),o.createPositionAt(e,"end"));for(const i of t)o.wrap(o.createRangeOn(e),i)}else if(s.parent.is("element","picture")){const e=s.parent;o.move(o.createRangeOn(s),o.createPositionBefore(e)),o.remove(e)}};return e=>{e.on("attribute:sources:imageBlock",t),e.on("attribute:sources:imageInline",t)}}(i))}_setupImageUploadEditingIntegration(){const e=this.editor;if(!e.plugins.has("ImageUploadEditing"))return;const t=e.plugins.get("ImageUploadEditing");this.listenTo(t,"uploadComplete",((t,{imageElement:i,data:n})=>{const o=n.sources;o&&e.model.change((e=>{e.setAttributes({sources:o},i)}))}))}}})(),(window.CKEditor5=window.CKEditor5||{}).image=n})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ar.js b/core/assets/vendor/ckeditor5/image/translations/ar.js index 593c4c298c47..494ebfd673d6 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ar.js +++ b/core/assets/vendor/ckeditor5/image/translations/ar.js @@ -1 +1 @@ -!function(e){const i=e.ar=e.ar||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"اعتراض النص","Caption for image: %0":"التسمية التوضيØية للصورة: %0","Caption for the image":"التسمية التوضيØية للصورة","Centered image":"صورة بالوسط","Change image text alternative":"غير النص البديل للصورة","Enter image caption":"ادخل عنوان الصورة","Full size image":"صورة بØجم كامل","Image resize list":"قائمة تغيير Øجم الصورة","Image toolbar":"شريط أدوات الصور","image widget":"عنصر الصورة","In line":"سطري مع النص",Insert:"إدراج","Insert image":"ادراج صورة","Insert image via URL":"إدراج صورة عبر عنوان URL","Left aligned image":"صورة بمØاذاة لليسار",Original:"الØجم الأصلي","Resize image":"تغيير Øجم الصورة","Resize image to %0":"تغيير Øجم الصورة إلى %0","Resize image to the original size":"تغيير Øجم الصورة إلى الØجم الأصلي","Right aligned image":"صورة بمØاذاة لليمين","Side image":"صورة جانبية","Text alternative":"النص البديل",Update:"تØديث","Update image URL":"عنوان URL الخاص بتØديث الصورة","Upload failed":"Ùشل الرÙع","Wrap text":"التÙا٠النص"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.ar=e.ar||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"اعتراض النص","Caption for image: %0":"التسمية التوضيØية للصورة: %0","Caption for the image":"التسمية التوضيØية للصورة","Centered image":"صورة بالوسط","Change image text alternative":"غير النص البديل للصورة","Enter image caption":"ادخل عنوان الصورة","Full size image":"صورة بØجم كامل","Image resize list":"قائمة تغيير Øجم الصورة","Image toolbar":"شريط أدوات الصور","image widget":"عنصر الصورة","In line":"سطري مع النص",Insert:"إدراج","Insert image":"ادراج صورة","Insert image via URL":"إدراج صورة عبر عنوان URL","Left aligned image":"صورة بمØاذاة لليسار",Original:"الØجم الأصلي","Replace from computer":"استبدال من الØاسوب","Replace image":"استبدال الصورة","Replace image from computer":"استبدال الصورة من الØاسوب","Resize image":"تغيير Øجم الصورة","Resize image to %0":"تغيير Øجم الصورة إلى %0","Resize image to the original size":"تغيير Øجم الصورة إلى الØجم الأصلي","Right aligned image":"صورة بمØاذاة لليمين","Side image":"صورة جانبية","Text alternative":"النص البديل",Update:"تØديث","Update image URL":"عنوان URL الخاص بتØديث الصورة","Upload failed":"Ùشل الرÙع","Upload from computer":"رÙع المل٠من الØاسوب","Upload image from computer":"تØميل الصورة من الØاسوب","Wrap text":"التÙا٠النص"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ast.js b/core/assets/vendor/ckeditor5/image/translations/ast.js index 685c508dd7de..cb9067c8779d 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ast.js +++ b/core/assets/vendor/ckeditor5/image/translations/ast.js @@ -1 +1 @@ -!function(e){const a=e.ast=e.ast||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"","Full size image":"Imaxen a tamañu completu","Image resize list":"","Image toolbar":"","image widget":"complementu d'imaxen","In line":"",Insert:"","Insert image":"","Insert image via URL":"","Left aligned image":"",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"Imaxen llateral","Text alternative":"",Update:"","Update image URL":"","Upload failed":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.ast=e.ast||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"","Full size image":"Imaxen a tamañu completu","Image resize list":"","Image toolbar":"","image widget":"complementu d'imaxen","In line":"",Insert:"","Insert image":"","Insert image via URL":"","Left aligned image":"",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"Imaxen llateral","Text alternative":"",Update:"","Update image URL":"","Upload failed":"","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/az.js b/core/assets/vendor/ckeditor5/image/translations/az.js index 8a4da966c0c5..b367188b4c60 100644 --- a/core/assets/vendor/ckeditor5/image/translations/az.js +++ b/core/assets/vendor/ckeditor5/image/translations/az.js @@ -1 +1 @@ -!function(i){const e=i.az=i.az||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"MÉ™rkÉ™zÉ™ düzlÉ™ndir","Change image text alternative":"Alternativ mÉ™tni redaktÉ™ et","Enter image caption":"Şəkil baÅŸlığı daxil edin","Full size image":"Tam ölçülü ÅŸÉ™kili","Image resize list":"","Image toolbar":"Şəkil paneli","image widget":"Şəkil vidgetı","In line":"",Insert:"","Insert image":"Şəkili É™lavÉ™ et","Insert image via URL":"","Left aligned image":"Soldan düzlÉ™ndir",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"SaÄŸdan düzlÉ™ndir","Side image":"Yan ÅŸÉ™kil","Text alternative":"Alternativ mÉ™tn",Update:"","Update image URL":"","Upload failed":"Şəkili serverÉ™ yüklÉ™","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.az=e.az||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"MÉ™rkÉ™zÉ™ düzlÉ™ndir","Change image text alternative":"Alternativ mÉ™tni redaktÉ™ et","Enter image caption":"Şəkil baÅŸlığı daxil edin","Full size image":"Tam ölçülü ÅŸÉ™kili","Image resize list":"","Image toolbar":"Şəkil paneli","image widget":"Şəkil vidgetı","In line":"",Insert:"","Insert image":"Şəkili É™lavÉ™ et","Insert image via URL":"","Left aligned image":"Soldan düzlÉ™ndir",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"SaÄŸdan düzlÉ™ndir","Side image":"Yan ÅŸÉ™kil","Text alternative":"Alternativ mÉ™tn",Update:"","Update image URL":"","Upload failed":"Şəkili serverÉ™ yüklÉ™","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/bg.js b/core/assets/vendor/ckeditor5/image/translations/bg.js index cb194a10e273..81bca354ccb4 100644 --- a/core/assets/vendor/ckeditor5/image/translations/bg.js +++ b/core/assets/vendor/ckeditor5/image/translations/bg.js @@ -1 +1 @@ -!function(e){const i=e.bg=e.bg||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Раздели текÑÑ‚","Caption for image: %0":"Заглавие на изображението: %0","Caption for the image":"Заглавие на изображението","Centered image":"Центрирано изображение","Change image text alternative":"Промени изображението на текÑтовата алтернатива","Enter image caption":"Въведи опиÑание на изображението","Full size image":"Изображение в пълен размер","Image resize list":"СпиÑък Ñ Ð¿Ñ€Ð¾Ð¼ÐµÐ½Ð¸Ñ‚Ðµ на размера на изображението","Image toolbar":"Лента Ñ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ","image widget":"Компонент за изображение","In line":"Ð’ линиÑ",Insert:"Вмъкни","Insert image":"Вмъкни изображение","Insert image via URL":"Въведи изображение чрез URL","Left aligned image":"Изображение подравнено влÑво",Original:"Оригинал","Resize image":"Промени размера на изображението","Resize image to %0":"Промени размера на изображението на %0","Resize image to the original size":"ВъзÑтанови Ð¾Ñ€Ð¸Ð³Ð¸Ð½Ð°Ð»Ð½Ð¸Ñ Ñ€Ð°Ð·Ð¼ÐµÑ€ на изображението","Right aligned image":"Изображение подравнено вдÑÑно","Side image":"Странично изображение","Text alternative":"ТекÑтова алтернатива",Update:"Обнови","Update image URL":"Обнови URL на изображението","Upload failed":"Качването е неуÑпешно","Wrap text":"Събери текÑÑ‚"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.bg=e.bg||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Раздели текÑÑ‚","Caption for image: %0":"Заглавие на изображението: %0","Caption for the image":"Заглавие на изображението","Centered image":"Центрирано изображение","Change image text alternative":"Промени изображението на текÑтовата алтернатива","Enter image caption":"Въведи опиÑание на изображението","Full size image":"Изображение в пълен размер","Image resize list":"СпиÑък Ñ Ð¿Ñ€Ð¾Ð¼ÐµÐ½Ð¸Ñ‚Ðµ на размера на изображението","Image toolbar":"Лента Ñ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ","image widget":"Компонент за изображение","In line":"Ð’ линиÑ",Insert:"Вмъкни","Insert image":"Вмъкни изображение","Insert image via URL":"Въведи изображение чрез URL","Left aligned image":"Изображение подравнено влÑво",Original:"Оригинал","Replace from computer":"Заменете от компютър","Replace image":"ЗамÑна на изображението","Replace image from computer":"ЗамÑна на изображение от компютър","Resize image":"Промени размера на изображението","Resize image to %0":"Промени размера на изображението на %0","Resize image to the original size":"ВъзÑтанови Ð¾Ñ€Ð¸Ð³Ð¸Ð½Ð°Ð»Ð½Ð¸Ñ Ñ€Ð°Ð·Ð¼ÐµÑ€ на изображението","Right aligned image":"Изображение подравнено вдÑÑно","Side image":"Странично изображение","Text alternative":"ТекÑтова алтернатива",Update:"Обнови","Update image URL":"Обнови URL на изображението","Upload failed":"Качването е неуÑпешно","Upload from computer":"Качете от компютър","Upload image from computer":"Качване на изображение от компютър","Wrap text":"Събери текÑÑ‚"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/bn.js b/core/assets/vendor/ckeditor5/image/translations/bn.js index 5a9bc26d6d50..541c83fe5be1 100644 --- a/core/assets/vendor/ckeditor5/image/translations/bn.js +++ b/core/assets/vendor/ckeditor5/image/translations/bn.js @@ -1 +1 @@ -!function(e){const i=e.bn=e.bn||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"টেকà§à¦¸à¦Ÿ à¦à§‡à¦™à§à¦—ে ফেলà§à¦¨","Caption for image: %0":"ছবির জনà§à¦¯ কà§à¦¯à¦¾à¦ªà¦¶à¦¨: %0","Caption for the image":"ছবির জনà§à¦¯ কà§à¦¯à¦¾à¦ªà¦¶à¦¨","Centered image":"কেনà§à¦¦à§à¦°à§€à¦à§‚ত ছবি","Change image text alternative":"ছবির টেকà§à¦¸à¦Ÿ বিকলà§à¦ª পরিবরà§à¦¤à¦¨","Enter image caption":"ছবির কà§à¦¯à¦¾à¦ªà¦¶à¦¨ লিখà§à¦¨","Full size image":"সমà§à¦ªà§‚রà§à¦£ আকারের ছবি","Image resize list":"ছবির আকার পরিবরà§à¦¤à¦¨à§‡à¦° তালিকা","Image toolbar":"ছবির টà§à¦²à¦¬à¦¾à¦°","image widget":"ছবির উইজেট","In line":"সঙà§à¦—তিপূরà§à¦£à¦à¦¾à¦¬à§‡",Insert:"ঢোকান","Insert image":"ছবি ঢোকান","Insert image via URL":"URL à¦à¦° মাধà§à¦¯à¦®à§‡ ছবি ঢোকান","Left aligned image":"বাম সারিবদà§à¦§ ছবি",Original:"মূল","Resize image":"ছবির আকার পরিবরà§à¦¤à¦¨ করà§à¦¨","Resize image to %0":"ছবি %0 আকার পরিবরà§à¦¤à¦¨ করà§à¦¨","Resize image to the original size":"মূল আকারে ছবির আকার পরিবরà§à¦¤à¦¨ করà§à¦¨","Right aligned image":"ডানে সারিবদà§à¦§ ছবি","Side image":"পারà§à¦¶à§à¦¬ ছবি","Text alternative":"টেকà§à¦¸à¦Ÿ বিকলà§à¦ª",Update:"আপডেট করà§à¦¨","Update image URL":"ছবির URL আপডেট করà§à¦¨","Upload failed":"আপলোড বà§à¦¯à¦°à§à¦¥ হয়েছে","Wrap text":"টেকà§à¦¸à¦Ÿ মোড়ানো"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.bn=e.bn||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"টেকà§à¦¸à¦Ÿ à¦à§‡à¦™à§à¦—ে ফেলà§à¦¨","Caption for image: %0":"ছবির জনà§à¦¯ কà§à¦¯à¦¾à¦ªà¦¶à¦¨: %0","Caption for the image":"ছবির জনà§à¦¯ কà§à¦¯à¦¾à¦ªà¦¶à¦¨","Centered image":"কেনà§à¦¦à§à¦°à§€à¦à§‚ত ছবি","Change image text alternative":"ছবির টেকà§à¦¸à¦Ÿ বিকলà§à¦ª পরিবরà§à¦¤à¦¨","Enter image caption":"ছবির কà§à¦¯à¦¾à¦ªà¦¶à¦¨ লিখà§à¦¨","Full size image":"সমà§à¦ªà§‚রà§à¦£ আকারের ছবি","Image resize list":"ছবির আকার পরিবরà§à¦¤à¦¨à§‡à¦° তালিকা","Image toolbar":"ছবির টà§à¦²à¦¬à¦¾à¦°","image widget":"ছবির উইজেট","In line":"সঙà§à¦—তিপূরà§à¦£à¦à¦¾à¦¬à§‡",Insert:"ঢোকান","Insert image":"ছবি ঢোকান","Insert image via URL":"URL à¦à¦° মাধà§à¦¯à¦®à§‡ ছবি ঢোকান","Left aligned image":"বাম সারিবদà§à¦§ ছবি",Original:"মূল","Replace from computer":"কমà§à¦ªà¦¿à¦‰à¦Ÿà¦¾à¦° থেকে পà§à¦°à¦¤à¦¿à¦¸à§à¦¥à¦¾à¦ªà¦¨ করà§à¦¨","Replace image":"ছবি পà§à¦°à¦¤à¦¿à¦¸à§à¦¥à¦¾à¦ªà¦¨ করà§à¦¨","Replace image from computer":"কমà§à¦ªà¦¿à¦‰à¦Ÿà¦¾à¦° থেকে ছবি পà§à¦°à¦¤à¦¿à¦¸à§à¦¥à¦¾à¦ªà¦¨ করà§à¦¨","Resize image":"ছবির আকার পরিবরà§à¦¤à¦¨ করà§à¦¨","Resize image to %0":"ছবি %0 আকার পরিবরà§à¦¤à¦¨ করà§à¦¨","Resize image to the original size":"মূল আকারে ছবির আকার পরিবরà§à¦¤à¦¨ করà§à¦¨","Right aligned image":"ডানে সারিবদà§à¦§ ছবি","Side image":"পারà§à¦¶à§à¦¬ ছবি","Text alternative":"টেকà§à¦¸à¦Ÿ বিকলà§à¦ª",Update:"আপডেট করà§à¦¨","Update image URL":"ছবির URL আপডেট করà§à¦¨","Upload failed":"আপলোড বà§à¦¯à¦°à§à¦¥ হয়েছে","Upload from computer":"কমà§à¦ªà¦¿à¦‰à¦Ÿà¦¾à¦° থেকে আপলোড করà§à¦¨","Upload image from computer":"কমà§à¦ªà¦¿à¦‰à¦Ÿà¦¾à¦° থেকে ছবি আপলোড করà§à¦¨","Wrap text":"টেকà§à¦¸à¦Ÿ মোড়ানো"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/bs.js b/core/assets/vendor/ckeditor5/image/translations/bs.js index 0a562fa51d99..3a8be616db2a 100644 --- a/core/assets/vendor/ckeditor5/image/translations/bs.js +++ b/core/assets/vendor/ckeditor5/image/translations/bs.js @@ -1 +1 @@ -!function(i){const e=i.bs=i.bs||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Centrirana slika","Change image text alternative":"Promijeni ALT atribut za sliku","Enter image caption":"Unesi naziv slike","Full size image":"","Image resize list":"Lista veliÄina slike","Image toolbar":"","image widget":"","In line":"",Insert:"Umetni","Insert image":"Umetni sliku","Insert image via URL":"Umetni sliku preko URLa","Left aligned image":"Lijevo poravnata slika",Original:"Original","Resize image":"Promijeni veliÄinu slike","Resize image to %0":"","Resize image to the original size":"Postavi originalnu veliÄinu slike","Right aligned image":"Desno poravnata slika","Side image":"","Text alternative":"ALT atribut",Update:"Ažuriraj","Update image URL":"Ažuriraj URL slike","Upload failed":"UÄitavanje slike nije uspjelo","Wrap text":"Prelomi tekst"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.bs=e.bs||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Centrirana slika","Change image text alternative":"Promijeni ALT atribut za sliku","Enter image caption":"Unesi naziv slike","Full size image":"","Image resize list":"Lista veliÄina slike","Image toolbar":"","image widget":"","In line":"",Insert:"Umetni","Insert image":"Umetni sliku","Insert image via URL":"Umetni sliku preko URLa","Left aligned image":"Lijevo poravnata slika",Original:"Original","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"Promijeni veliÄinu slike","Resize image to %0":"","Resize image to the original size":"Postavi originalnu veliÄinu slike","Right aligned image":"Desno poravnata slika","Side image":"","Text alternative":"ALT atribut",Update:"Ažuriraj","Update image URL":"Ažuriraj URL slike","Upload failed":"UÄitavanje slike nije uspjelo","Upload from computer":"","Upload image from computer":"","Wrap text":"Prelomi tekst"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ca.js b/core/assets/vendor/ckeditor5/image/translations/ca.js index aee79b45b705..58365cd81c68 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ca.js +++ b/core/assets/vendor/ckeditor5/image/translations/ca.js @@ -1 +1 @@ -!function(a){const e=a.ca=a.ca||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Partir el text","Caption for image: %0":"Peu de foto: %0","Caption for the image":"Peu de foto","Centered image":"Imatge centrada","Change image text alternative":"Canviar l'alternativa del text de la imatge","Enter image caption":"Introduir el peu de foto de la imatge","Full size image":"Imatge a mida completa","Image resize list":"Llista de redimensionament de la imatge","Image toolbar":"Barra d'eines d'imatge","image widget":"giny d'imatge","In line":"A la lÃnia",Insert:"Introduir","Insert image":"Introduir la imatge","Insert image via URL":"Introduir la imatge mitjançant l'URL","Left aligned image":"Imatge alineada a l'esquerra",Original:"Original","Resize image":"Redimensionar la imatge","Resize image to %0":"Redimensiona la imatge a %0","Resize image to the original size":"Redimensiona la imatge a la mida original","Right aligned image":"Imatge alineada a la dreta","Side image":"Imatge lateral","Text alternative":"Alternativa de text",Update:"Actualitzar","Update image URL":"Actualitzar l'URL de la imatge","Upload failed":"No s'ha pogut carregar","Wrap text":"Embolcallar el text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.ca=e.ca||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Partir el text","Caption for image: %0":"Peu de foto: %0","Caption for the image":"Peu de foto","Centered image":"Imatge centrada","Change image text alternative":"Canviar l'alternativa del text de la imatge","Enter image caption":"Introduir el peu de foto de la imatge","Full size image":"Imatge a mida completa","Image resize list":"Llista de redimensionament de la imatge","Image toolbar":"Barra d'eines d'imatge","image widget":"giny d'imatge","In line":"A la lÃnia",Insert:"Introduir","Insert image":"Introduir la imatge","Insert image via URL":"Introduir la imatge mitjançant l'URL","Left aligned image":"Imatge alineada a l'esquerra",Original:"Original","Replace from computer":"Substitueix-ho des de l'ordinador","Replace image":"Substitueix la imatge","Replace image from computer":"Substitueix la imatge des de l'ordinador","Resize image":"Redimensionar la imatge","Resize image to %0":"Redimensiona la imatge a %0","Resize image to the original size":"Redimensiona la imatge a la mida original","Right aligned image":"Imatge alineada a la dreta","Side image":"Imatge lateral","Text alternative":"Alternativa de text",Update:"Actualitzar","Update image URL":"Actualitzar l'URL de la imatge","Upload failed":"No s'ha pogut carregar","Upload from computer":"Puja-ho des de l'ordinador","Upload image from computer":"Puja la imatge des de l'ordinador","Wrap text":"Embolcallar el text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/cs.js b/core/assets/vendor/ckeditor5/image/translations/cs.js index 912c0b58344e..9bb5a88fd6ba 100644 --- a/core/assets/vendor/ckeditor5/image/translations/cs.js +++ b/core/assets/vendor/ckeditor5/image/translations/cs.js @@ -1 +1 @@ -!function(e){const i=e.cs=e.cs||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Obtékánà textu","Caption for image: %0":"Popisek k obrázku: %0","Caption for the image":"Popisek k obrázku","Centered image":"Obrázek zarovnaný na stÅ™ed","Change image text alternative":"ZmÄ›nit alternativnà text obrázku","Enter image caption":"Zadejte popis obrázku","Full size image":"Obrázek v plné velikosti","Image resize list":"Seznam možnostà zmÄ›ny velikosti","Image toolbar":"Panel nástrojů obrázku","image widget":"ovládacà prvek obrázku","In line":"RovnoběžnÄ› s textem",Insert:"Vložit","Insert image":"Vložit obrázek","Insert image via URL":"Vložit obrázek pomocà URL","Left aligned image":"Obrázek zarovnaný vlevo",Original:"OriginálnÃ","Resize image":"ZmÄ›nit velikost","Resize image to %0":"ZmÄ›nit velikost na %0","Resize image to the original size":"ZmÄ›nit velikost na původnà velikost","Right aligned image":"Obrázek zarovnaný vpravo","Side image":"Postrannà obrázek","Text alternative":"Alternativnà text",Update:"Aktualizovat","Update image URL":"Aktualizovat URL obrázku","Upload failed":"Nahránà selhalo","Wrap text":"Text nahoÅ™e a dole"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.cs=e.cs||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Obtékánà textu","Caption for image: %0":"Popisek k obrázku: %0","Caption for the image":"Popisek k obrázku","Centered image":"Obrázek zarovnaný na stÅ™ed","Change image text alternative":"ZmÄ›nit alternativnà text obrázku","Enter image caption":"Zadejte popis obrázku","Full size image":"Obrázek v plné velikosti","Image resize list":"Seznam možnostà zmÄ›ny velikosti","Image toolbar":"Panel nástrojů obrázku","image widget":"ovládacà prvek obrázku","In line":"RovnoběžnÄ› s textem",Insert:"Vložit","Insert image":"Vložit obrázek","Insert image via URL":"Vložit obrázek pomocà URL","Left aligned image":"Obrázek zarovnaný vlevo",Original:"OriginálnÃ","Replace from computer":"Nahradit z poÄÃtaÄe","Replace image":"Nahradit obrázek","Replace image from computer":"Nahradit obrázek z poÄÃtaÄe","Resize image":"ZmÄ›nit velikost","Resize image to %0":"ZmÄ›nit velikost na %0","Resize image to the original size":"ZmÄ›nit velikost na původnà velikost","Right aligned image":"Obrázek zarovnaný vpravo","Side image":"Postrannà obrázek","Text alternative":"Alternativnà text",Update:"Aktualizovat","Update image URL":"Aktualizovat URL obrázku","Upload failed":"Nahránà selhalo","Upload from computer":"Nahrát z poÄÃtaÄe","Upload image from computer":"Nahrát obrázek z poÄÃtaÄe","Wrap text":"Text nahoÅ™e a dole"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/da.js b/core/assets/vendor/ckeditor5/image/translations/da.js index 1880c9290626..d8831562af6a 100644 --- a/core/assets/vendor/ckeditor5/image/translations/da.js +++ b/core/assets/vendor/ckeditor5/image/translations/da.js @@ -1 +1 @@ -!function(e){const i=e.da=e.da||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Opdel tekst","Caption for image: %0":"Billedtekst for billede: %0","Caption for the image":"Billedtekst for billedet","Centered image":"Centreret billede","Change image text alternative":"Skift alternativ billedtekst","Enter image caption":"Indtast billedoverskrift","Full size image":"Fuld billedstørrelse","Image resize list":"Liste over justering af billedstørrelse","Image toolbar":"Billedværktøjslinje","image widget":"billed widget","In line":"PÃ¥ linje",Insert:"Indsæt","Insert image":"Indsæt billede","Insert image via URL":"Indsæt billede via URL","Left aligned image":"Venstrestillet billede",Original:"Original","Resize image":"Juster billedstørrelse","Resize image to %0":"Juster billedstørrelse til %0","Resize image to the original size":"Juster billedstørrelse til original størrelse","Right aligned image":"Højrestillet billede","Side image":"Sidebillede","Text alternative":"Alternativ tekst",Update:"Opdater","Update image URL":"Opdater billed-URL","Upload failed":"Upload fejlede","Wrap text":"Ombryd tekst"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.da=e.da||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Opdel tekst","Caption for image: %0":"Billedtekst for billede: %0","Caption for the image":"Billedtekst for billedet","Centered image":"Centreret billede","Change image text alternative":"Skift alternativ billedtekst","Enter image caption":"Indtast billedoverskrift","Full size image":"Fuld billedstørrelse","Image resize list":"Liste over justering af billedstørrelse","Image toolbar":"Billedværktøjslinje","image widget":"billed widget","In line":"PÃ¥ linje",Insert:"Indsæt","Insert image":"Indsæt billede","Insert image via URL":"Indsæt billede via URL","Left aligned image":"Venstrestillet billede",Original:"Original","Replace from computer":"Udskift fra computer","Replace image":"Udskift billede","Replace image from computer":"Udskift billede fra computer","Resize image":"Juster billedstørrelse","Resize image to %0":"Juster billedstørrelse til %0","Resize image to the original size":"Juster billedstørrelse til original størrelse","Right aligned image":"Højrestillet billede","Side image":"Sidebillede","Text alternative":"Alternativ tekst",Update:"Opdater","Update image URL":"Opdater billed-URL","Upload failed":"Upload fejlede","Upload from computer":"Upload fra computer","Upload image from computer":"Upload billede fra computer","Wrap text":"Ombryd tekst"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/de-ch.js b/core/assets/vendor/ckeditor5/image/translations/de-ch.js index ad30a52ffd79..407566fce101 100644 --- a/core/assets/vendor/ckeditor5/image/translations/de-ch.js +++ b/core/assets/vendor/ckeditor5/image/translations/de-ch.js @@ -1 +1 @@ -!function(e){const i=e["de-ch"]=e["de-ch"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"zentriertes Bild","Change image text alternative":"Alternativtext ändern","Enter image caption":"Bildunterschrift eingeben","Full size image":"Bild in voller Grösse","Image resize list":"Bildgrössen-Liste","Image toolbar":"Bild Werkzeugleiste","image widget":"Bild-Steuerelement","In line":"",Insert:"Einfügen","Insert image":"Bild einfügen","Insert image via URL":"Bild von URL einfügen","Left aligned image":"linksbündiges Bild",Original:"Original","Resize image":"Bildgrösse ändern","Resize image to %0":"Bildgrösse ändern in %0","Resize image to the original size":"Originalgrösse wiederherstellen","Right aligned image":"rechtsbündiges Bild","Side image":"Ausgerichtetes Bild","Text alternative":"Alternativtext",Update:"Aktualisieren","Update image URL":"Bild-URL aktualisieren","Upload failed":"Hochladen fehlgeschlagen","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e["de-ch"]=e["de-ch"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"zentriertes Bild","Change image text alternative":"Alternativtext ändern","Enter image caption":"Bildunterschrift eingeben","Full size image":"Bild in voller Grösse","Image resize list":"Bildgrössen-Liste","Image toolbar":"Bild Werkzeugleiste","image widget":"Bild-Steuerelement","In line":"",Insert:"Einfügen","Insert image":"Bild einfügen","Insert image via URL":"Bild von URL einfügen","Left aligned image":"linksbündiges Bild",Original:"Original","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"Bildgrösse ändern","Resize image to %0":"Bildgrösse ändern in %0","Resize image to the original size":"Originalgrösse wiederherstellen","Right aligned image":"rechtsbündiges Bild","Side image":"Ausgerichtetes Bild","Text alternative":"Alternativtext",Update:"Aktualisieren","Update image URL":"Bild-URL aktualisieren","Upload failed":"Hochladen fehlgeschlagen","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/de.js b/core/assets/vendor/ckeditor5/image/translations/de.js index 45d2d1e7d199..9fb96ae61805 100644 --- a/core/assets/vendor/ckeditor5/image/translations/de.js +++ b/core/assets/vendor/ckeditor5/image/translations/de.js @@ -1 +1 @@ -!function(e){const i=e.de=e.de||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Bild teilt Text","Caption for image: %0":"Bildunterschrift: %0","Caption for the image":"Bildunterschrift","Centered image":"Zentriertes Bild","Change image text alternative":"Alternativtext ändern","Enter image caption":"Bildunterschrift eingeben","Full size image":"Bild in voller Größe","Image resize list":"Bildgrößen-Liste","Image toolbar":"Bild Werkzeugleiste","image widget":"Bild-Steuerelement","In line":"Text in Zeile",Insert:"Einfügen","Insert image":"Bild einfügen","Insert image via URL":"Bild von URL einfügen","Left aligned image":"Linksbündiges Bild",Original:"Original","Resize image":"Bildgröße ändern","Resize image to %0":"Bildgröße ändern in %0","Resize image to the original size":"Bild in Originalgröße ändern","Right aligned image":"Rechtsbündiges Bild","Side image":"Seitenbild","Text alternative":"Alternativtext",Update:"Aktualisieren","Update image URL":"Bild-URL aktualisieren","Upload failed":"Hochladen fehlgeschlagen","Wrap text":"Text umfließt Bild"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.de=e.de||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Bild teilt Text","Caption for image: %0":"Bildunterschrift: %0","Caption for the image":"Bildunterschrift","Centered image":"Zentriertes Bild","Change image text alternative":"Alternativtext ändern","Enter image caption":"Bildunterschrift eingeben","Full size image":"Bild in voller Größe","Image resize list":"Bildgrößen-Liste","Image toolbar":"Bild Werkzeugleiste","image widget":"Bild-Steuerelement","In line":"Text in Zeile",Insert:"Einfügen","Insert image":"Bild einfügen","Insert image via URL":"Bild von URL einfügen","Left aligned image":"Linksbündiges Bild",Original:"Original","Replace from computer":"Vom Computer ersetzen","Replace image":"Bild ersetzen","Replace image from computer":"Bild vom Computer ersetzen","Resize image":"Bildgröße ändern","Resize image to %0":"Bildgröße ändern in %0","Resize image to the original size":"Bild in Originalgröße ändern","Right aligned image":"Rechtsbündiges Bild","Side image":"Seitenbild","Text alternative":"Alternativtext",Update:"Aktualisieren","Update image URL":"Bild-URL aktualisieren","Upload failed":"Hochladen fehlgeschlagen","Upload from computer":"Vom Computer hochladen","Upload image from computer":"Bild vom Computer hochladen","Wrap text":"Text umfließt Bild"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/el.js b/core/assets/vendor/ckeditor5/image/translations/el.js index 44ea12ca3d96..aa290e686c69 100644 --- a/core/assets/vendor/ckeditor5/image/translations/el.js +++ b/core/assets/vendor/ckeditor5/image/translations/el.js @@ -1 +1 @@ -!function(e){const i=e.el=e.el||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Κατάτμηση κειμÎνου","Caption for image: %0":"Λεζάντα για την εικόνα: %0","Caption for the image":"Λεζάντα για την εικόνα","Centered image":"Εικόνα με στοίχιση στο κÎντÏο","Change image text alternative":"Αλλαγή ÎµÎ½Î±Î»Î»Î±ÎºÏ„Î¹ÎºÎ¿Ï ÎºÎµÎ¯Î¼ÎµÎ½Î¿Ï… εικόνας","Enter image caption":"Εισαγωγή λεζάντας εικόνας","Full size image":"Εικόνα σε πλήÏες μÎγεθος","Image resize list":"Λίστα μεγεθών εικόνων","Image toolbar":"ΓÏαμμή εÏγαλείων εικόνας","image widget":"ΓÏαφικό στοιχείο εικόνας","In line":"Εντός γÏαμμής",Insert:"Εισαγωγή","Insert image":"Εισαγωγή εικόνας","Insert image via URL":"Εισαγωγή εικόνας μÎσω διεÏθυνσης","Left aligned image":"Εικόνα με αÏιστεÏή στοίχιση",Original:"ΑÏχικό","Resize image":"Αλλαγή μεγÎθους εικόνας","Resize image to %0":"Αλλαγή μεγÎθους σε %0","Resize image to the original size":"Αλλαγή μεγÎθους εικόνας στο αÏχικό μÎγεθος","Right aligned image":"Εικόνα με δεξιά στοίχιση","Side image":"ΠλευÏική εικόνα","Text alternative":"Εναλλακτικό κείμενο",Update:"ΕνημÎÏωση","Update image URL":"ΕνημÎÏωση διεÏθυνσης εικόνας","Upload failed":"Η αποστολή απÎτυχε","Wrap text":"Αναδίπλωση κειμÎνου"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.el=e.el||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Κατάτμηση κειμÎνου","Caption for image: %0":"Λεζάντα για την εικόνα: %0","Caption for the image":"Λεζάντα για την εικόνα","Centered image":"Εικόνα με στοίχιση στο κÎντÏο","Change image text alternative":"Αλλαγή ÎµÎ½Î±Î»Î»Î±ÎºÏ„Î¹ÎºÎ¿Ï ÎºÎµÎ¯Î¼ÎµÎ½Î¿Ï… εικόνας","Enter image caption":"Εισαγωγή λεζάντας εικόνας","Full size image":"Εικόνα σε πλήÏες μÎγεθος","Image resize list":"Λίστα μεγεθών εικόνων","Image toolbar":"ΓÏαμμή εÏγαλείων εικόνας","image widget":"ΓÏαφικό στοιχείο εικόνας","In line":"Εντός γÏαμμής",Insert:"Εισαγωγή","Insert image":"Εισαγωγή εικόνας","Insert image via URL":"Εισαγωγή εικόνας μÎσω διεÏθυνσης","Left aligned image":"Εικόνα με αÏιστεÏή στοίχιση",Original:"ΑÏχικό","Replace from computer":"Αντικατάσταση από υπολογιστή","Replace image":"Αντικατάσταση εικόνας","Replace image from computer":"Αντικατάσταση εικόνας από υπολογιστή","Resize image":"Αλλαγή μεγÎθους εικόνας","Resize image to %0":"Αλλαγή μεγÎθους σε %0","Resize image to the original size":"Αλλαγή μεγÎθους εικόνας στο αÏχικό μÎγεθος","Right aligned image":"Εικόνα με δεξιά στοίχιση","Side image":"ΠλευÏική εικόνα","Text alternative":"Εναλλακτικό κείμενο",Update:"ΕνημÎÏωση","Update image URL":"ΕνημÎÏωση διεÏθυνσης εικόνας","Upload failed":"Η αποστολή απÎτυχε","Upload from computer":"ΜεταφόÏτωση από υπολογιστή","Upload image from computer":"ΜεταφόÏτωση εικόνας από υπολογιστή","Wrap text":"Αναδίπλωση κειμÎνου"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/en-au.js b/core/assets/vendor/ckeditor5/image/translations/en-au.js index f4b9160faeab..e3410c4e5012 100644 --- a/core/assets/vendor/ckeditor5/image/translations/en-au.js +++ b/core/assets/vendor/ckeditor5/image/translations/en-au.js @@ -1 +1 @@ -!function(e){const i=e["en-au"]=e["en-au"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Break text","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Centered image":"Centred image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line",Insert:"Insert","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Left aligned image":"Left aligned image",Original:"Original","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Wrap text":"Wrap text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e["en-au"]=e["en-au"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Break text","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Centered image":"Centred image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line",Insert:"Insert","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Left aligned image":"Left aligned image",Original:"Original","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"","Upload image from computer":"","Wrap text":"Wrap text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/en-gb.js b/core/assets/vendor/ckeditor5/image/translations/en-gb.js index ee61e6d6b817..24ef48d17bc6 100644 --- a/core/assets/vendor/ckeditor5/image/translations/en-gb.js +++ b/core/assets/vendor/ckeditor5/image/translations/en-gb.js @@ -1 +1 @@ -!function(e){const i=e["en-gb"]=e["en-gb"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Centred image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"","Image toolbar":"","image widget":"Image widget","In line":"",Insert:"","Insert image":"Insert image","Insert image via URL":"","Left aligned image":"Left aligned image",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"","Update image URL":"","Upload failed":"Upload failed","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e["en-gb"]=e["en-gb"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Centred image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"","Image toolbar":"","image widget":"Image widget","In line":"",Insert:"","Insert image":"Insert image","Insert image via URL":"","Left aligned image":"Left aligned image",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"","Update image URL":"","Upload failed":"Upload failed","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/eo.js b/core/assets/vendor/ckeditor5/image/translations/eo.js index 546b536cc824..31460a06e7df 100644 --- a/core/assets/vendor/ckeditor5/image/translations/eo.js +++ b/core/assets/vendor/ckeditor5/image/translations/eo.js @@ -1 +1 @@ -!function(e){const i=e.eo=e.eo||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"ÅœanÄu la alternativan tekston de la bildo","Enter image caption":"Skribu klarigon pri la bildo","Full size image":"Bildo kun reala dimensio","Image resize list":"","Image toolbar":"","image widget":"bilda fenestraĵo","In line":"",Insert:"","Insert image":"Enmetu bildon","Insert image via URL":"","Left aligned image":"",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"Flanka biildo","Text alternative":"Alternativa teksto",Update:"","Update image URL":"","Upload failed":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.eo=e.eo||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"ÅœanÄu la alternativan tekston de la bildo","Enter image caption":"Skribu klarigon pri la bildo","Full size image":"Bildo kun reala dimensio","Image resize list":"","Image toolbar":"","image widget":"bilda fenestraĵo","In line":"",Insert:"","Insert image":"Enmetu bildon","Insert image via URL":"","Left aligned image":"",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"Flanka biildo","Text alternative":"Alternativa teksto",Update:"","Update image URL":"","Upload failed":"","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/es.js b/core/assets/vendor/ckeditor5/image/translations/es.js index b1721ed7c499..007fe4cb5579 100644 --- a/core/assets/vendor/ckeditor5/image/translations/es.js +++ b/core/assets/vendor/ckeditor5/image/translations/es.js @@ -1 +1 @@ -!function(a){const e=a.es=a.es||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Permitir quebrar texto","Caption for image: %0":"TÃtulo de la imagen: %0","Caption for the image":"Descripción de la imagen","Centered image":"Imagen centrada","Change image text alternative":"Cambiar el texto alternativo de la imagen","Enter image caption":"Introducir tÃtulo de la imagen","Full size image":"Imagen a tamaño completo","Image resize list":"Listado para redimensionar imagen","Image toolbar":"Barra de herramientas de imagen","image widget":"Widget de imagen","In line":"En lÃnea",Insert:"Insertar","Insert image":"Insertar imagen","Insert image via URL":"Insertar imagen vÃa URL","Left aligned image":"Imagen alineada a la izquierda",Original:"Original","Resize image":"Redimensionar imagen","Resize image to %0":"Redimensionar imagen al %0","Resize image to the original size":"Redimensionar imagen al tamaño original","Right aligned image":"Imagen alineada a la derecha","Side image":"Imagen lateral","Text alternative":"Texto alternativo",Update:"Actualizar","Update image URL":"Actualizar imagen vÃa URL","Upload failed":"Fallo en la subida","Wrap text":"Mantener texto unido"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.es=e.es||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Permitir quebrar texto","Caption for image: %0":"TÃtulo de la imagen: %0","Caption for the image":"Descripción de la imagen","Centered image":"Imagen centrada","Change image text alternative":"Cambiar el texto alternativo de la imagen","Enter image caption":"Introducir tÃtulo de la imagen","Full size image":"Imagen a tamaño completo","Image resize list":"Listado para redimensionar imagen","Image toolbar":"Barra de herramientas de imagen","image widget":"Widget de imagen","In line":"En lÃnea",Insert:"Insertar","Insert image":"Insertar imagen","Insert image via URL":"Insertar imagen vÃa URL","Left aligned image":"Imagen alineada a la izquierda",Original:"Original","Replace from computer":"Reemplazar desde el ordenador","Replace image":"Reemplazar imagen","Replace image from computer":"Reemplazar imagen del ordenador","Resize image":"Redimensionar imagen","Resize image to %0":"Redimensionar imagen al %0","Resize image to the original size":"Redimensionar imagen al tamaño original","Right aligned image":"Imagen alineada a la derecha","Side image":"Imagen lateral","Text alternative":"Texto alternativo",Update:"Actualizar","Update image URL":"Actualizar imagen vÃa URL","Upload failed":"Fallo en la subida","Upload from computer":"Subir desde el ordenador","Upload image from computer":"Subir imagen desde el ordenador","Wrap text":"Mantener texto unido"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/et.js b/core/assets/vendor/ckeditor5/image/translations/et.js index ac3d18a5c7cb..e55ddb5a7959 100644 --- a/core/assets/vendor/ckeditor5/image/translations/et.js +++ b/core/assets/vendor/ckeditor5/image/translations/et.js @@ -1 +1 @@ -!function(i){const e=i.et=i.et||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Murra teksti","Caption for image: %0":"Pildi pealkiri: %0","Caption for the image":"Pildi pealkiri","Centered image":"Keskele joondatud pilt","Change image text alternative":"Muuda pildi asenduskirjeldust","Enter image caption":"Sisesta pildi pealkiri","Full size image":"Täissuuruses pilt","Image resize list":"Pildi suuruse muutmise loend","Image toolbar":"Piltide tööriistariba","image widget":"pildi vidin","In line":"Joone sees",Insert:"Sisesta","Insert image":"Sisesta pilt","Insert image via URL":"Sisesta pilt läbi URL-i","Left aligned image":"Vasakule joondatud pilt",Original:"Algne","Resize image":"Muuda pildi suurust","Resize image to %0":"Muuda pilt suurusesse %0","Resize image to the original size":"Muuda pilt algsuurusesse","Right aligned image":"Paremale joondatud pilt","Side image":"Pilt küljel","Text alternative":"Asenduskirjeldus",Update:"Uuenda","Update image URL":"Uuenda pildi URL-i","Upload failed":"Ãœleslaadimine ebaõnnestus","Wrap text":"Murra teksti ridu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.et=e.et||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Murra teksti","Caption for image: %0":"Pildi pealkiri: %0","Caption for the image":"Pildi pealkiri","Centered image":"Keskele joondatud pilt","Change image text alternative":"Muuda pildi asenduskirjeldust","Enter image caption":"Sisesta pildi pealkiri","Full size image":"Täissuuruses pilt","Image resize list":"Pildi suuruse muutmise loend","Image toolbar":"Piltide tööriistariba","image widget":"pildi vidin","In line":"Joone sees",Insert:"Sisesta","Insert image":"Sisesta pilt","Insert image via URL":"Sisesta pilt läbi URL-i","Left aligned image":"Vasakule joondatud pilt",Original:"Algne","Replace from computer":"Asenda arvutist","Replace image":"Asenda pilt","Replace image from computer":"Asenda pilt arvutist","Resize image":"Muuda pildi suurust","Resize image to %0":"Muuda pilt suurusesse %0","Resize image to the original size":"Muuda pilt algsuurusesse","Right aligned image":"Paremale joondatud pilt","Side image":"Pilt küljel","Text alternative":"Asenduskirjeldus",Update:"Uuenda","Update image URL":"Uuenda pildi URL-i","Upload failed":"Ãœleslaadimine ebaõnnestus","Upload from computer":"Laadi üles arvutist","Upload image from computer":"Laadi pilt üles arvutist","Wrap text":"Murra teksti ridu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/eu.js b/core/assets/vendor/ckeditor5/image/translations/eu.js index a6109de1f977..277387fed53f 100644 --- a/core/assets/vendor/ckeditor5/image/translations/eu.js +++ b/core/assets/vendor/ckeditor5/image/translations/eu.js @@ -1 +1 @@ -!function(e){const a=e.eu=e.eu||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Zentratutako irudia","Change image text alternative":"Aldatu irudiaren ordezko testua","Enter image caption":"Sartu irudiaren epigrafea","Full size image":"Tamaina osoko irudia","Image resize list":"","Image toolbar":"","image widget":"irudi widgeta","In line":"",Insert:"","Insert image":"Txertatu irudia","Insert image via URL":"","Left aligned image":"Ezkerrean lerrokatutako irudia",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Eskuinean lerrokatutako irudia","Side image":"Alboko irudia","Text alternative":"Ordezko testua",Update:"","Update image URL":"","Upload failed":"Kargatzeak huts egin du","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.eu=e.eu||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Zentratutako irudia","Change image text alternative":"Aldatu irudiaren ordezko testua","Enter image caption":"Sartu irudiaren epigrafea","Full size image":"Tamaina osoko irudia","Image resize list":"","Image toolbar":"","image widget":"irudi widgeta","In line":"",Insert:"","Insert image":"Txertatu irudia","Insert image via URL":"","Left aligned image":"Ezkerrean lerrokatutako irudia",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Eskuinean lerrokatutako irudia","Side image":"Alboko irudia","Text alternative":"Ordezko testua",Update:"","Update image URL":"","Upload failed":"Kargatzeak huts egin du","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/fa.js b/core/assets/vendor/ckeditor5/image/translations/fa.js index 3e807e402d2b..a5d29b6aa0f8 100644 --- a/core/assets/vendor/ckeditor5/image/translations/fa.js +++ b/core/assets/vendor/ckeditor5/image/translations/fa.js @@ -1 +1 @@ -!function(e){const i=e.fa=e.fa||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"تصویر در وسط","Change image text alternative":"تغییر متن جایگزین تصویر","Enter image caption":"عنوان تصویر را وارد کنید","Full size image":"تصویر در اندازه کامل","Image resize list":"","Image toolbar":"نوارابزار تصویر","image widget":"ابزاره تصویر","In line":"",Insert:"","Insert image":"قرار دادن تصویر","Insert image via URL":"","Left aligned image":"تصویر تراز شده Ú†Ù¾",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"تصویر تراز شده راست","Side image":"تصویر جانبی","Text alternative":"متن جایگزین",Update:"","Update image URL":"","Upload failed":"آپلود ناموÙÙ‚ بود","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.fa=e.fa||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"تصویر در وسط","Change image text alternative":"تغییر متن جایگزین تصویر","Enter image caption":"عنوان تصویر را وارد کنید","Full size image":"تصویر در اندازه کامل","Image resize list":"","Image toolbar":"نوارابزار تصویر","image widget":"ابزاره تصویر","In line":"",Insert:"","Insert image":"قرار دادن تصویر","Insert image via URL":"","Left aligned image":"تصویر تراز شده Ú†Ù¾",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"تصویر تراز شده راست","Side image":"تصویر جانبی","Text alternative":"متن جایگزین",Update:"","Update image URL":"","Upload failed":"آپلود ناموÙÙ‚ بود","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/fi.js b/core/assets/vendor/ckeditor5/image/translations/fi.js index 2c729a7a07a8..11834d7654cb 100644 --- a/core/assets/vendor/ckeditor5/image/translations/fi.js +++ b/core/assets/vendor/ckeditor5/image/translations/fi.js @@ -1 +1 @@ -!function(i){const a=i.fi=i.fi||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Irrota teksti","Caption for image: %0":"Kuvan kuvateksti: %0","Caption for the image":"Kuvan kuvateksti","Centered image":"Keskitetty kuva","Change image text alternative":"Vaihda kuvan vaihtoehtoinen teksti","Enter image caption":"Syötä kuvateksti","Full size image":"Täysikokoinen kuva","Image resize list":"Kuvan koon muokkaamisen lista","Image toolbar":"Kuvan työkalupalkki","image widget":"Kuvavimpain","In line":"Rivin sisällä",Insert:"Liitä","Insert image":"Lisää kuva","Insert image via URL":"Liitä kuva URL-koodin kautta","Left aligned image":"Vasemmalle tasattu kuva",Original:"Alkuperäinen","Resize image":"Muokkaa kuvan kokoa","Resize image to %0":"Muokkaa kuvan kooksi %0","Resize image to the original size":"Vaihda kuvan koko alkuperäiseen kokoon","Right aligned image":"Oikealle tasattu kuva","Side image":"Pieni kuva","Text alternative":"Vaihtoehtoinen teksti",Update:"Päivitä","Update image URL":"Päivitä kuvan URL","Upload failed":"Lataus epäonnistui","Wrap text":"Sovita teksti"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.fi=a.fi||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Irrota teksti","Caption for image: %0":"Kuvan kuvateksti: %0","Caption for the image":"Kuvan kuvateksti","Centered image":"Keskitetty kuva","Change image text alternative":"Vaihda kuvan vaihtoehtoinen teksti","Enter image caption":"Syötä kuvateksti","Full size image":"Täysikokoinen kuva","Image resize list":"Kuvan koon muokkaamisen lista","Image toolbar":"Kuvan työkalupalkki","image widget":"Kuvavimpain","In line":"Rivin sisällä",Insert:"Liitä","Insert image":"Lisää kuva","Insert image via URL":"Liitä kuva URL-koodin kautta","Left aligned image":"Vasemmalle tasattu kuva",Original:"Alkuperäinen","Replace from computer":"Korvaa tietokoneelta","Replace image":"Korvaa kuva","Replace image from computer":"Korvaa kuva tietokoneelta","Resize image":"Muokkaa kuvan kokoa","Resize image to %0":"Muokkaa kuvan kooksi %0","Resize image to the original size":"Vaihda kuvan koko alkuperäiseen kokoon","Right aligned image":"Oikealle tasattu kuva","Side image":"Pieni kuva","Text alternative":"Vaihtoehtoinen teksti",Update:"Päivitä","Update image URL":"Päivitä kuvan URL","Upload failed":"Lataus epäonnistui","Upload from computer":"Lataa tietokoneelta","Upload image from computer":"Lataa kuva tietokoneelta","Wrap text":"Sovita teksti"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/fr.js b/core/assets/vendor/ckeditor5/image/translations/fr.js index 959dea113f25..914cb1897ecb 100644 --- a/core/assets/vendor/ckeditor5/image/translations/fr.js +++ b/core/assets/vendor/ckeditor5/image/translations/fr.js @@ -1 +1 @@ -!function(e){const i=e.fr=e.fr||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Saut de ligne","Caption for image: %0":"Légende de l'image : %0","Caption for the image":"Légende de l'image","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Enter image caption":"Saisir la légende de l’image","Full size image":"Image taille réelle","Image resize list":"Liste des tailles d'images","Image toolbar":"Barre d'outils des images","image widget":"Objet image","In line":"Aligné",Insert:"Insérer","Insert image":"Insérer une image","Insert image via URL":"Insérer une image à partir d'une URL","Left aligned image":"Image alignée à gauche",Original:"Taille originale","Resize image":"Redimensionner l'image","Resize image to %0":"Redimensionner à %0","Resize image to the original size":"Appliquer les dimensions d'origine","Right aligned image":"Image alignée à droite","Side image":"Image latérale","Text alternative":"Texte alternatif",Update:"Modifier","Update image URL":"Modifier l'URL de l'image","Upload failed":"Échec de l'envoi","Wrap text":"Retour à la ligne"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.fr=e.fr||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Saut de ligne","Caption for image: %0":"Légende de l'image : %0","Caption for the image":"Légende de l'image","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Enter image caption":"Saisir la légende de l’image","Full size image":"Image taille réelle","Image resize list":"Liste des tailles d'images","Image toolbar":"Barre d'outils des images","image widget":"Objet image","In line":"Aligné",Insert:"Insérer","Insert image":"Insérer une image","Insert image via URL":"Insérer une image à partir d'une URL","Left aligned image":"Image alignée à gauche",Original:"Taille originale","Replace from computer":"Remplacer depuis l'ordinateur","Replace image":"Remplacer l'image","Replace image from computer":"Remplacer l'image depuis l'ordinateur","Resize image":"Redimensionner l'image","Resize image to %0":"Redimensionner à %0","Resize image to the original size":"Appliquer les dimensions d'origine","Right aligned image":"Image alignée à droite","Side image":"Image latérale","Text alternative":"Texte alternatif",Update:"Modifier","Update image URL":"Modifier l'URL de l'image","Upload failed":"Échec de l'envoi","Upload from computer":"Télécharger depuis l'ordinateur","Upload image from computer":"Télécharger une image depuis l'ordinateur","Wrap text":"Retour à la ligne"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/gl.js b/core/assets/vendor/ckeditor5/image/translations/gl.js index ee367fbf5ab0..a54772e59385 100644 --- a/core/assets/vendor/ckeditor5/image/translations/gl.js +++ b/core/assets/vendor/ckeditor5/image/translations/gl.js @@ -1 +1 @@ -!function(a){const e=a.gl=a.gl||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Romper o texto","Caption for image: %0":"Lenda da imaxe: %0","Caption for the image":"Lenda da imaxe","Centered image":"Imaxe centrada horizontalmente","Change image text alternative":"Cambiar o texto alternativo da imaxe","Enter image caption":"Introduza o tÃtulo da imaxe","Full size image":"Imaxe a tamaño completo","Image resize list":"Lista de tamaños de imaxe","Image toolbar":"Barra de ferramentas de imaxe","image widget":"Trebello de imaxe","In line":"En liña",Insert:"Inserir","Insert image":"Inserir imaxe","Insert image via URL":"Inserir imaxe a través de URL","Left aligned image":"Imaxe aliñada á esquerda",Original:"Orixinal","Resize image":"Redimensionar a imaxe","Resize image to %0":"Redimensionar a imaxe ao %0","Resize image to the original size":"Aplicar o tamaño orixinal da imaxe","Right aligned image":"Imaxe aliñada á dereita","Side image":"Lado da imaxe","Text alternative":"Texto alternativo",Update:"Actualizar","Update image URL":"Actualizar o URL da imaxe","Upload failed":"Fallou o envÃo","Wrap text":"Envolver o texto"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.gl=e.gl||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Romper o texto","Caption for image: %0":"Lenda da imaxe: %0","Caption for the image":"Lenda da imaxe","Centered image":"Imaxe centrada horizontalmente","Change image text alternative":"Cambiar o texto alternativo da imaxe","Enter image caption":"Introduza o tÃtulo da imaxe","Full size image":"Imaxe a tamaño completo","Image resize list":"Lista de tamaños de imaxe","Image toolbar":"Barra de ferramentas de imaxe","image widget":"Trebello de imaxe","In line":"En liña",Insert:"Inserir","Insert image":"Inserir imaxe","Insert image via URL":"Inserir imaxe a través de URL","Left aligned image":"Imaxe aliñada á esquerda",Original:"Orixinal","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"Redimensionar a imaxe","Resize image to %0":"Redimensionar a imaxe ao %0","Resize image to the original size":"Aplicar o tamaño orixinal da imaxe","Right aligned image":"Imaxe aliñada á dereita","Side image":"Lado da imaxe","Text alternative":"Texto alternativo",Update:"Actualizar","Update image URL":"Actualizar o URL da imaxe","Upload failed":"Fallou o envÃo","Upload from computer":"","Upload image from computer":"","Wrap text":"Envolver o texto"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/he.js b/core/assets/vendor/ckeditor5/image/translations/he.js index 86f606e386bf..44f8d8d5eeae 100644 --- a/core/assets/vendor/ckeditor5/image/translations/he.js +++ b/core/assets/vendor/ckeditor5/image/translations/he.js @@ -1 +1 @@ -!function(e){const i=e.he=e.he||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"שבירת טקסט","Caption for image: %0":"כותרת עבור ×ª×ž×•× ×”: %0","Caption for the image":"כותרת עבור ×”×ª×ž×•× ×”","Centered image":"×ª×ž×•× ×” ממרוכזת","Change image text alternative":"×©×™× ×•×™ טקסט ××œ×˜×¨× ×˜×™×‘×™ ×œ×ª×ž×•× ×”","Enter image caption":"הזן כותרת ×ª×ž×•× ×”","Full size image":"×ª×ž×•× ×” בפריסה מל××”","Image resize list":"רשימת ×©×™× ×•×™ גודל ×ª×ž×•× ×”","Image toolbar":"סרגל ×ª×ž×•× ×”","image widget":"×ª×ž×•× ×”","In line":"בתוך השורה",Insert:"×”×›× ×¡","Insert image":"הוספת ×ª×ž×•× ×”","Insert image via URL":"×”×›× ×¡×ª ×ª×ž×•× ×” ב×מצעות קישור","Left aligned image":"×ª×ž×•× ×” מיושרת לשמ×ל",Original:"גודל מקורי","Resize image":"×©× ×” גודל ×ª×ž×•× ×”","Resize image to %0":"×©× ×” ×ת גודל ×”×ª×ž×•× ×” ל-%0","Resize image to the original size":"×©× ×” ×ת גודל ×”×ª×ž×•× ×” לגודל המקורי","Right aligned image":"×ª×ž×•× ×” מיושרת לימין","Side image":"×ª×ž×•× ×ª צד","Text alternative":"טקסט ××œ×˜×¨× ×˜×™×‘×™",Update:"עדכן","Update image URL":"עדכן ×ת כתובת ×”-URL של ×”×ª×ž×•× ×”","Upload failed":"העל××” × ×›×©×œ×”","Wrap text":"גלישת טקסט"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.he=e.he||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"שבירת טקסט","Caption for image: %0":"כותרת עבור ×ª×ž×•× ×”: %0","Caption for the image":"כותרת עבור ×”×ª×ž×•× ×”","Centered image":"×ª×ž×•× ×” ממרוכזת","Change image text alternative":"×©×™× ×•×™ טקסט ××œ×˜×¨× ×˜×™×‘×™ ×œ×ª×ž×•× ×”","Enter image caption":"הזן כותרת ×ª×ž×•× ×”","Full size image":"×ª×ž×•× ×” בפריסה מל××”","Image resize list":"רשימת ×©×™× ×•×™ גודל ×ª×ž×•× ×”","Image toolbar":"סרגל ×ª×ž×•× ×”","image widget":"×ª×ž×•× ×”","In line":"בתוך השורה",Insert:"×”×›× ×¡","Insert image":"הוספת ×ª×ž×•× ×”","Insert image via URL":"×”×›× ×¡×ª ×ª×ž×•× ×” ב×מצעות קישור","Left aligned image":"×ª×ž×•× ×” מיושרת לשמ×ל",Original:"גודל מקורי","Replace from computer":"החלפה מהמחשב","Replace image":"החלפת ×ª×ž×•× ×”","Replace image from computer":"החלפת ×ª×ž×•× ×” מהמחשב","Resize image":"×©× ×” גודל ×ª×ž×•× ×”","Resize image to %0":"×©× ×” ×ת גודל ×”×ª×ž×•× ×” ל-%0","Resize image to the original size":"×©× ×” ×ת גודל ×”×ª×ž×•× ×” לגודל המקורי","Right aligned image":"×ª×ž×•× ×” מיושרת לימין","Side image":"×ª×ž×•× ×ª צד","Text alternative":"טקסט ××œ×˜×¨× ×˜×™×‘×™",Update:"עדכן","Update image URL":"עדכן ×ת כתובת ×”-URL של ×”×ª×ž×•× ×”","Upload failed":"העל××” × ×›×©×œ×”","Upload from computer":"העל××” מהמחשב","Upload image from computer":"העל×ת ×ª×ž×•× ×” מהמחשב","Wrap text":"גלישת טקסט"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/hi.js b/core/assets/vendor/ckeditor5/image/translations/hi.js index d36197a153f5..053a0a6f6abb 100644 --- a/core/assets/vendor/ckeditor5/image/translations/hi.js +++ b/core/assets/vendor/ckeditor5/image/translations/hi.js @@ -1 +1 @@ -!function(e){const i=e.hi=e.hi||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"टेकà¥à¤¸à¥à¤Ÿ तोड़ें","Caption for image: %0":"छवि के लिठकैपà¥à¤¶à¤¨: %0","Caption for the image":"छवि के लिठकैपà¥à¤¶à¤¨","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"इन - लाइन",Insert:"Insert","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Left aligned image":"Left aligned image",Original:"Original","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Wrap text":"टेकà¥à¤¸à¥à¤Ÿ रैप करें"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.hi=e.hi||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"टेकà¥à¤¸à¥à¤Ÿ तोड़ें","Caption for image: %0":"छवि के लिठकैपà¥à¤¶à¤¨: %0","Caption for the image":"छवि के लिठकैपà¥à¤¶à¤¨","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Enter image caption":"Enter image caption","Full size image":"Full size image","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"इन - लाइन",Insert:"Insert","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Left aligned image":"Left aligned image",Original:"Original","Replace from computer":"कंपà¥à¤¯à¥‚टर से बदलें","Replace image":"इमेज बदलें","Replace image from computer":"कंपà¥à¤¯à¥‚टर से इमेज बदलें","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Right aligned image":"Right aligned image","Side image":"Side image","Text alternative":"Text alternative",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"कंपà¥à¤¯à¥‚टर से अपलोड करे","Upload image from computer":"कंपà¥à¤¯à¥‚टर से इमेज अपलोड करें","Wrap text":"टेकà¥à¤¸à¥à¤Ÿ रैप करें"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/hr.js b/core/assets/vendor/ckeditor5/image/translations/hr.js index 6491d91ddcc7..0bbbfc1e4aea 100644 --- a/core/assets/vendor/ckeditor5/image/translations/hr.js +++ b/core/assets/vendor/ckeditor5/image/translations/hr.js @@ -1 +1 @@ -!function(i){const e=i.hr=i.hr||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Prelomi tekst","Caption for image: %0":"Naslov slike: %0","Caption for the image":"Naslov slike","Centered image":"Centrirana slika","Change image text alternative":"Promijeni alternativni tekst slike","Enter image caption":"Unesite naslov slike","Full size image":"Slika pune veliÄine","Image resize list":"Lista veliÄina slika","Image toolbar":"Traka za slike","image widget":"Slika widget","In line":"U istom redu",Insert:"Ubaci","Insert image":"Umetni sliku","Insert image via URL":"Ubaci sliku putem URLa","Left aligned image":"Lijevo poravnata slika",Original:"Original","Resize image":"Promijeni veliÄinu slike","Resize image to %0":"Promijeni veliÄinu slike u %0","Resize image to the original size":"Vrati veliÄinu slike na originalnu veliÄinu","Right aligned image":"Slika poravnata desno","Side image":"Slika sa strane","Text alternative":"Alternativni tekst",Update:"Snimi","Update image URL":"Snimi URL slike","Upload failed":"Slanje nije uspjelo","Wrap text":"Prelamanje teksta"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.hr=e.hr||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Prelomi tekst","Caption for image: %0":"Naslov slike: %0","Caption for the image":"Naslov slike","Centered image":"Centrirana slika","Change image text alternative":"Promijeni alternativni tekst slike","Enter image caption":"Unesite naslov slike","Full size image":"Slika pune veliÄine","Image resize list":"Lista veliÄina slika","Image toolbar":"Traka za slike","image widget":"Slika widget","In line":"U istom redu",Insert:"Ubaci","Insert image":"Umetni sliku","Insert image via URL":"Ubaci sliku putem URLa","Left aligned image":"Lijevo poravnata slika",Original:"Original","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"Promijeni veliÄinu slike","Resize image to %0":"Promijeni veliÄinu slike u %0","Resize image to the original size":"Vrati veliÄinu slike na originalnu veliÄinu","Right aligned image":"Slika poravnata desno","Side image":"Slika sa strane","Text alternative":"Alternativni tekst",Update:"Snimi","Update image URL":"Snimi URL slike","Upload failed":"Slanje nije uspjelo","Upload from computer":"","Upload image from computer":"","Wrap text":"Prelamanje teksta"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/hu.js b/core/assets/vendor/ckeditor5/image/translations/hu.js index 39c4deba86fa..55e4331855c8 100644 --- a/core/assets/vendor/ckeditor5/image/translations/hu.js +++ b/core/assets/vendor/ckeditor5/image/translations/hu.js @@ -1 +1 @@ -!function(e){const t=e.hu=e.hu||{};t.dictionary=Object.assign(t.dictionary||{},{"Break text":"Sortörés","Caption for image: %0":"Képfelirat: %0","Caption for the image":"Felirat a képhez","Centered image":"Középre igazÃtott kép","Change image text alternative":"HelyettesÃtÅ‘ szöveg módosÃtása","Enter image caption":"KépaláÃrás megadása","Full size image":"Teljes méretű kép","Image resize list":"Kép átméretezési lista","Image toolbar":"Kép eszköztár","image widget":"képmodul","In line":"Soron belül",Insert:"Beszúrás","Insert image":"Kép beszúrása","Insert image via URL":"Kép beszúrása URL alapján","Left aligned image":"Balra igazÃtott kép",Original:"Eredeti","Resize image":"Kép átméretezése","Resize image to %0":"Kép méretezése %0","Resize image to the original size":"Kép méretezése az eredeti méretre","Right aligned image":"Jobbra igazÃtott kép","Side image":"Oldalsó kép","Text alternative":"HelyettesÃtÅ‘ szöveg",Update:"MódosÃtás","Update image URL":"Kép URL módosÃtása","Upload failed":"A feltöltés nem sikerült","Wrap text":"Körbefuttatás"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.hu=e.hu||{};t.dictionary=Object.assign(t.dictionary||{},{"Break text":"Sortörés","Caption for image: %0":"Képfelirat: %0","Caption for the image":"Felirat a képhez","Centered image":"Középre igazÃtott kép","Change image text alternative":"HelyettesÃtÅ‘ szöveg módosÃtása","Enter image caption":"KépaláÃrás megadása","Full size image":"Teljes méretű kép","Image resize list":"Kép átméretezési lista","Image toolbar":"Kép eszköztár","image widget":"képmodul","In line":"Soron belül",Insert:"Beszúrás","Insert image":"Kép beszúrása","Insert image via URL":"Kép beszúrása URL alapján","Left aligned image":"Balra igazÃtott kép",Original:"Eredeti","Replace from computer":"Kicserélés a számÃtógéprÅ‘l","Replace image":"Kép kicserélése","Replace image from computer":"Cserélje ki a számÃtógéprÅ‘l","Resize image":"Kép átméretezése","Resize image to %0":"Kép méretezése %0","Resize image to the original size":"Kép méretezése az eredeti méretre","Right aligned image":"Jobbra igazÃtott kép","Side image":"Oldalsó kép","Text alternative":"HelyettesÃtÅ‘ szöveg",Update:"MódosÃtás","Update image URL":"Kép URL módosÃtása","Upload failed":"A feltöltés nem sikerült","Upload from computer":"Feltöltés a számÃtógéprÅ‘l","Upload image from computer":"Töltsön fel képet a számÃtógéprÅ‘l","Wrap text":"Körbefuttatás"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/id.js b/core/assets/vendor/ckeditor5/image/translations/id.js index a5110ae01cf7..a51c940c89c3 100644 --- a/core/assets/vendor/ckeditor5/image/translations/id.js +++ b/core/assets/vendor/ckeditor5/image/translations/id.js @@ -1 +1 @@ -!function(a){const e=a.id=a.id||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Pecahkan teks","Caption for image: %0":"Keterangan gambar: %0","Caption for the image":"Keterangan untuk gambar","Centered image":"Gambar rata tengah","Change image text alternative":"Ganti alternatif teks gambar","Enter image caption":"Tambahkan deskripsi gambar","Full size image":"Gambar ukuran penuh","Image resize list":"Daftar ukuran gambar","Image toolbar":"Alat gambar","image widget":"widget gambar","In line":"Sebaris",Insert:"Sisipkan","Insert image":"Sisipkan gambar","Insert image via URL":"Sisipkan gambar melalui URL","Left aligned image":"Gambar rata kiri",Original:"Asli","Resize image":"Ubah ukuran gambar","Resize image to %0":"Ubah ukuran gambar ke %0","Resize image to the original size":"Ubah ukuran gambar ke ukuran asli","Right aligned image":"Gambar rata kanan","Side image":"Gambar sisi","Text alternative":"Alternatif teks",Update:"Perbarui","Update image URL":"Perbarui URL gambar","Upload failed":"Gagal mengunggah","Wrap text":"Bungkus teks"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.id=a.id||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Pecahkan teks","Caption for image: %0":"Keterangan gambar: %0","Caption for the image":"Keterangan untuk gambar","Centered image":"Gambar rata tengah","Change image text alternative":"Ganti alternatif teks gambar","Enter image caption":"Tambahkan deskripsi gambar","Full size image":"Gambar ukuran penuh","Image resize list":"Daftar ukuran gambar","Image toolbar":"Alat gambar","image widget":"widget gambar","In line":"Sebaris",Insert:"Sisipkan","Insert image":"Sisipkan gambar","Insert image via URL":"Sisipkan gambar melalui URL","Left aligned image":"Gambar rata kiri",Original:"Asli","Replace from computer":"Ganti dari komputer","Replace image":"Ganti gambar","Replace image from computer":"Ganti gambar dari komputer","Resize image":"Ubah ukuran gambar","Resize image to %0":"Ubah ukuran gambar ke %0","Resize image to the original size":"Ubah ukuran gambar ke ukuran asli","Right aligned image":"Gambar rata kanan","Side image":"Gambar sisi","Text alternative":"Alternatif teks",Update:"Perbarui","Update image URL":"Perbarui URL gambar","Upload failed":"Gagal mengunggah","Upload from computer":"Unggah dari komputer","Upload image from computer":"Unggah gambar dari komputer","Wrap text":"Bungkus teks"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/it.js b/core/assets/vendor/ckeditor5/image/translations/it.js index d8b42a25083d..162ab8285b06 100644 --- a/core/assets/vendor/ckeditor5/image/translations/it.js +++ b/core/assets/vendor/ckeditor5/image/translations/it.js @@ -1 +1 @@ -!function(i){const e=i.it=i.it||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Interrompi testo","Caption for image: %0":"Didascalia dell'immagine: %0","Caption for the image":"Didascalia dell'immagine","Centered image":"Immagine centrata","Change image text alternative":"Cambia testo alternativo dell'immagine","Enter image caption":"inserire didascalia dell'immagine","Full size image":"Immagine a dimensione intera","Image resize list":"Elenco ridimensionamenti immagine","Image toolbar":"Barra degli strumenti dell'immagine","image widget":"Widget immagine","In line":"In linea",Insert:"Inserisci","Insert image":"Inserisci immagine","Insert image via URL":"Inserisci immagine tramite URL","Left aligned image":"Immagine allineata a sinistra",Original:"Originale","Resize image":"Ridimensiona immagine","Resize image to %0":"Ridimensiona immagine a %0","Resize image to the original size":"Ridimensiona immagine alle dimensioni originali","Right aligned image":"Immagine allineata a destra","Side image":"Immagine laterale","Text alternative":"Testo alternativo",Update:"Aggiorna","Update image URL":"Aggiorna URL immagine","Upload failed":"Caricamento fallito","Wrap text":"Testo a capo"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(i){const e=i.it=i.it||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Interrompi testo","Caption for image: %0":"Didascalia dell'immagine: %0","Caption for the image":"Didascalia dell'immagine","Centered image":"Immagine centrata","Change image text alternative":"Cambia testo alternativo dell'immagine","Enter image caption":"inserire didascalia dell'immagine","Full size image":"Immagine a dimensione intera","Image resize list":"Elenco ridimensionamenti immagine","Image toolbar":"Barra degli strumenti dell'immagine","image widget":"Widget immagine","In line":"In linea",Insert:"Inserisci","Insert image":"Inserisci immagine","Insert image via URL":"Inserisci immagine tramite URL","Left aligned image":"Immagine allineata a sinistra",Original:"Originale","Replace from computer":"Sostituisci dal computer","Replace image":"Sostituisci l'immagine","Replace image from computer":"Sostituisci l'immagine dal computer","Resize image":"Ridimensiona immagine","Resize image to %0":"Ridimensiona immagine a %0","Resize image to the original size":"Ridimensiona immagine alle dimensioni originali","Right aligned image":"Immagine allineata a destra","Side image":"Immagine laterale","Text alternative":"Testo alternativo",Update:"Aggiorna","Update image URL":"Aggiorna URL immagine","Upload failed":"Caricamento fallito","Upload from computer":"Carica dal computer","Upload image from computer":"Carica l'immagine dal computer","Wrap text":"Testo a capo"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ja.js b/core/assets/vendor/ckeditor5/image/translations/ja.js index 8eecf3a46533..74f94e38f7c6 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ja.js +++ b/core/assets/vendor/ckeditor5/image/translations/ja.js @@ -1 +1 @@ -!function(e){const i=e.ja=e.ja||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"テã‚ストを分割ã™ã‚‹","Caption for image: %0":"ç”»åƒã‚ャプション:%0","Caption for the image":"ç”»åƒã‚ャプション","Centered image":"ä¸å¤®å¯„ã›ç”»åƒ","Change image text alternative":"ç”»åƒã®ä»£æ›¿ãƒ†ã‚ストを変更","Enter image caption":"ç”»åƒã®æ³¨é‡ˆã‚’入力","Full size image":"フルサイズ画åƒ","Image resize list":"ç”»åƒã‚µã‚¤ã‚ºãƒªã‚¹ãƒˆ","Image toolbar":"ç”»åƒ","image widget":"ç”»åƒã‚¦ã‚£ã‚¸ã‚§ãƒƒãƒˆ","In line":"インライン",Insert:"挿入","Insert image":"ç”»åƒæŒ¿å…¥","Insert image via URL":"ç”»åƒURLを挿入","Left aligned image":"左寄ã›ç”»åƒ",Original:"オリジナル","Resize image":"ç”»åƒã‚µã‚¤ã‚º","Resize image to %0":"ç”»åƒã‚µã‚¤ã‚ºã‚’%0ã«å¤‰æ›´","Resize image to the original size":"ç”»åƒã‚µã‚¤ã‚ºã‚’å…ƒã®ã‚µã‚¤ã‚ºã«å¤‰æ›´","Right aligned image":"å³å¯„ã›ç”»åƒ","Side image":"サイドイメージ","Text alternative":"代替テã‚スト",Update:"æ›´æ–°","Update image URL":"ç”»åƒURLã‚’æ›´æ–°","Upload failed":"アップãƒãƒ¼ãƒ‰å¤±æ•—","Wrap text":"テã‚ストを折り返ã™"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.ja=e.ja||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"テã‚ストを分割ã™ã‚‹","Caption for image: %0":"ç”»åƒã‚ャプション:%0","Caption for the image":"ç”»åƒã‚ャプション","Centered image":"ä¸å¤®å¯„ã›ç”»åƒ","Change image text alternative":"ç”»åƒã®ä»£æ›¿ãƒ†ã‚ストを変更","Enter image caption":"ç”»åƒã®æ³¨é‡ˆã‚’入力","Full size image":"フルサイズ画åƒ","Image resize list":"ç”»åƒã‚µã‚¤ã‚ºãƒªã‚¹ãƒˆ","Image toolbar":"ç”»åƒ","image widget":"ç”»åƒã‚¦ã‚£ã‚¸ã‚§ãƒƒãƒˆ","In line":"インライン",Insert:"挿入","Insert image":"ç”»åƒæŒ¿å…¥","Insert image via URL":"ç”»åƒURLを挿入","Left aligned image":"左寄ã›ç”»åƒ",Original:"オリジナル","Replace from computer":"パソコンã‹ã‚‰ç½®æ›","Replace image":"ç”»åƒã‚’ç½®æ›","Replace image from computer":"パソコンã‹ã‚‰ç”»åƒã‚’ç½®æ›","Resize image":"ç”»åƒã‚µã‚¤ã‚º","Resize image to %0":"ç”»åƒã‚µã‚¤ã‚ºã‚’%0ã«å¤‰æ›´","Resize image to the original size":"ç”»åƒã‚µã‚¤ã‚ºã‚’å…ƒã®ã‚µã‚¤ã‚ºã«å¤‰æ›´","Right aligned image":"å³å¯„ã›ç”»åƒ","Side image":"サイドイメージ","Text alternative":"代替テã‚スト",Update:"æ›´æ–°","Update image URL":"ç”»åƒURLã‚’æ›´æ–°","Upload failed":"アップãƒãƒ¼ãƒ‰å¤±æ•—","Upload from computer":"パソコンã‹ã‚‰ã‚¢ãƒƒãƒ—ãƒãƒ¼ãƒ‰","Upload image from computer":"パソコンã‹ã‚‰ç”»åƒã‚’アップãƒãƒ¼ãƒ‰","Wrap text":"テã‚ストを折り返ã™"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/jv.js b/core/assets/vendor/ckeditor5/image/translations/jv.js index 1d97bcff0638..b6ef3a4f7e11 100644 --- a/core/assets/vendor/ckeditor5/image/translations/jv.js +++ b/core/assets/vendor/ckeditor5/image/translations/jv.js @@ -1 +1 @@ -!function(a){const e=a.jv=a.jv||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Gambar ing tengah","Change image text alternative":"","Enter image caption":"","Full size image":"Gambar ukuran kebak","Image resize list":"","Image toolbar":"","image widget":"","In line":"",Insert:"Tambah","Insert image":"Tambahaken gambar","Insert image via URL":"Tambah gambar saking URL","Left aligned image":"Gambar ing kiwa",Original:"Asli","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Gambar ing tengen","Side image":"","Text alternative":"",Update:"","Update image URL":"","Upload failed":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.jv=e.jv||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Gambar ing tengah","Change image text alternative":"","Enter image caption":"","Full size image":"Gambar ukuran kebak","Image resize list":"","Image toolbar":"","image widget":"","In line":"",Insert:"Tambah","Insert image":"Tambahaken gambar","Insert image via URL":"Tambah gambar saking URL","Left aligned image":"Gambar ing kiwa",Original:"Asli","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Gambar ing tengen","Side image":"","Text alternative":"",Update:"","Update image URL":"","Upload failed":"","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/km.js b/core/assets/vendor/ckeditor5/image/translations/km.js index c416b3c6996c..2037aba78e5c 100644 --- a/core/assets/vendor/ckeditor5/image/translations/km.js +++ b/core/assets/vendor/ckeditor5/image/translations/km.js @@ -1 +1 @@ -!function(e){const i=e.km=e.km||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"បញ្ចូល​ពាក្យ​ពណ៌នា​រូបភាព","Full size image":"រូបភាព​ពáŸáž‰â€‹áž‘ំហំ","Image resize list":"","Image toolbar":"","image widget":"វិដជិážâ€‹ážšáž¼áž”ភាព","In line":"",Insert:"","Insert image":"បញ្ចូល​រូបភាព","Insert image via URL":"","Left aligned image":"",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"រូបភាព​នៅ​ážáž¶áž„","Text alternative":"",Update:"","Update image URL":"","Upload failed":"អាប់ឡូážâ€‹áž˜áž·áž“បាន","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.km=e.km||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"បញ្ចូល​ពាក្យ​ពណ៌នា​រូបភាព","Full size image":"រូបភាព​ពáŸáž‰â€‹áž‘ំហំ","Image resize list":"","Image toolbar":"","image widget":"វិដជិážâ€‹ážšáž¼áž”ភាព","In line":"",Insert:"","Insert image":"បញ្ចូល​រូបភាព","Insert image via URL":"","Left aligned image":"",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"រូបភាព​នៅ​ážáž¶áž„","Text alternative":"",Update:"","Update image URL":"","Upload failed":"អាប់ឡូážâ€‹áž˜áž·áž“បាន","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/kn.js b/core/assets/vendor/ckeditor5/image/translations/kn.js index c6cb870b9084..62d928838271 100644 --- a/core/assets/vendor/ckeditor5/image/translations/kn.js +++ b/core/assets/vendor/ckeditor5/image/translations/kn.js @@ -1 +1 @@ -!function(e){const i=e.kn=e.kn||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"â€à²šà²¿à²¤à³à²°à²¦ ಬದಲಿ ಪಠà³à²¯ ಬದಲಾಯಿಸà³","Enter image caption":"â€à²šà²¿à²¤à³à²°à²¦ ಶೀರà³à²·à²¿à²•à³† ಸೇರಿಸà³","Full size image":"â€à²ªà³‚ರà³à²£ â€â€à²…ಳತೆಯ ಚಿತà³à²°","Image resize list":"","Image toolbar":"","image widget":"â€à²šà²¿à²¤à³à²° ವಿಜೆಟà³","In line":"",Insert:"","Insert image":"","Insert image via URL":"","Left aligned image":"",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"â€à²ªà²•à³à²•à²¦ ಚಿತà³à²°","Text alternative":"â€à²ªà² à³à²¯à²¦ ಬದಲಿ",Update:"","Update image URL":"","Upload failed":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.kn=e.kn||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"â€à²šà²¿à²¤à³à²°à²¦ ಬದಲಿ ಪಠà³à²¯ ಬದಲಾಯಿಸà³","Enter image caption":"â€à²šà²¿à²¤à³à²°à²¦ ಶೀರà³à²·à²¿à²•à³† ಸೇರಿಸà³","Full size image":"â€à²ªà³‚ರà³à²£ â€â€à²…ಳತೆಯ ಚಿತà³à²°","Image resize list":"","Image toolbar":"","image widget":"â€à²šà²¿à²¤à³à²° ವಿಜೆಟà³","In line":"",Insert:"","Insert image":"","Insert image via URL":"","Left aligned image":"",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"â€à²ªà²•à³à²•à²¦ ಚಿತà³à²°","Text alternative":"â€à²ªà² à³à²¯à²¦ ಬದಲಿ",Update:"","Update image URL":"","Upload failed":"","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ko.js b/core/assets/vendor/ckeditor5/image/translations/ko.js index 9b578e84b9d3..c9623432a799 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ko.js +++ b/core/assets/vendor/ckeditor5/image/translations/ko.js @@ -1 +1 @@ -!function(e){const i=e.ko=e.ko||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"í…스트 분리","Caption for image: %0":"ì´ë¯¸ì§€ìš© 캡션: %0","Caption for the image":"ì´ë¯¸ì§€ìš© 캡션","Centered image":"ê°€ìš´ë° ì •ë ¬","Change image text alternative":"대체 문구 변경","Enter image caption":"사진 ì„¤ëª…ì„ ìž…ë ¥í•˜ì„¸ìš”","Full size image":"꽉 ì°¬ í¬ê¸°","Image resize list":"사진 í¬ê¸° 목ë¡","Image toolbar":"사진 툴바","image widget":"사진 ìœ„ì ¯","In line":"줄 안ì—",Insert:"삽입","Insert image":"사진 삽입","Insert image via URL":"URLë¡œ ì´ë¯¸ì§€ 삽입","Left aligned image":"왼쪽 ì •ë ¬",Original:"ì›ë³¸","Resize image":"사진 í¬ê¸° ì¡°ì ˆ","Resize image to %0":"ì‚¬ì§„ì˜ í¬ê¸°ë¥¼ %0으로 ì¡°ì ˆ","Resize image to the original size":"ì‚¬ì§„ì„ ì›ëž˜ í¬ê¸°ë¡œ ëŒë ¤ë†“기","Right aligned image":"오른쪽 ì •ë ¬","Side image":"본문 ì˜†ì— ë°°ì¹˜","Text alternative":"대체 문구",Update:"ì—…ë°ì´íŠ¸","Update image URL":"ì´ë¯¸ì§€ URL ì—…ë°ì´íŠ¸","Upload failed":"업로드 실패","Wrap text":"í…스트 줄 바꿈"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.ko=e.ko||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"í…스트 분리","Caption for image: %0":"ì´ë¯¸ì§€ìš© 캡션: %0","Caption for the image":"ì´ë¯¸ì§€ìš© 캡션","Centered image":"ê°€ìš´ë° ì •ë ¬","Change image text alternative":"대체 문구 변경","Enter image caption":"사진 ì„¤ëª…ì„ ìž…ë ¥í•˜ì„¸ìš”","Full size image":"꽉 ì°¬ í¬ê¸°","Image resize list":"사진 í¬ê¸° 목ë¡","Image toolbar":"사진 툴바","image widget":"사진 ìœ„ì ¯","In line":"줄 안ì—",Insert:"삽입","Insert image":"사진 삽입","Insert image via URL":"URLë¡œ ì´ë¯¸ì§€ 삽입","Left aligned image":"왼쪽 ì •ë ¬",Original:"ì›ë³¸","Replace from computer":"컴퓨터ì—ì„œ êµì²´","Replace image":"ì´ë¯¸ì§€ êµì²´","Replace image from computer":"컴퓨터ì—ì„œ ì´ë¯¸ì§€ êµì²´","Resize image":"사진 í¬ê¸° ì¡°ì ˆ","Resize image to %0":"ì‚¬ì§„ì˜ í¬ê¸°ë¥¼ %0으로 ì¡°ì ˆ","Resize image to the original size":"ì‚¬ì§„ì„ ì›ëž˜ í¬ê¸°ë¡œ ëŒë ¤ë†“기","Right aligned image":"오른쪽 ì •ë ¬","Side image":"본문 ì˜†ì— ë°°ì¹˜","Text alternative":"대체 문구",Update:"ì—…ë°ì´íŠ¸","Update image URL":"ì´ë¯¸ì§€ URL ì—…ë°ì´íŠ¸","Upload failed":"업로드 실패","Upload from computer":"컴퓨터ì—ì„œ 업로드","Upload image from computer":"컴퓨터ì—ì„œ ì´ë¯¸ì§€ 업로드","Wrap text":"í…스트 줄 바꿈"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ku.js b/core/assets/vendor/ckeditor5/image/translations/ku.js index 4e6159908134..07a7eb3638d1 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ku.js +++ b/core/assets/vendor/ckeditor5/image/translations/ku.js @@ -1 +1 @@ -!function(e){const i=e.ku=e.ku||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"ناوەڕاستکراوی ÙˆÛŽÙ†Û•","Change image text alternative":"گۆڕینی جێگروەی تێکیسی ÙˆÛŽÙ†Û•","Enter image caption":"سەردێڕی ÙˆÛŽÙ†Û• دابنێ","Full size image":"Ù¾Ú• بەقەبارەی ÙˆÛŽÙ†Û•","Image resize list":"","Image toolbar":"تووڵامرازی ÙˆÛŽÙ†Û•","image widget":"وێدجیتی ÙˆÛŽÙ†Û•","In line":"",Insert:"","Insert image":"ÙˆÛŽÙ†Û• دابنێ","Insert image via URL":"","Left aligned image":"ڕیزکردنی ÙˆÛŽÙ†Û• بۆ لای Ú†Û•Ù¾",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"ڕیزکردنی ÙˆÛŽÙ†Û• بۆ لای ڕاست","Side image":"لای ÙˆÛŽÙ†Û•","Text alternative":"جێگرەوەی تێکست",Update:"","Update image URL":"","Upload failed":"بارکردنەکە سەرنەکەووت","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.ku=e.ku||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"ناوەڕاستکراوی ÙˆÛŽÙ†Û•","Change image text alternative":"گۆڕینی جێگروەی تێکیسی ÙˆÛŽÙ†Û•","Enter image caption":"سەردێڕی ÙˆÛŽÙ†Û• دابنێ","Full size image":"Ù¾Ú• بەقەبارەی ÙˆÛŽÙ†Û•","Image resize list":"","Image toolbar":"تووڵامرازی ÙˆÛŽÙ†Û•","image widget":"وێدجیتی ÙˆÛŽÙ†Û•","In line":"",Insert:"","Insert image":"ÙˆÛŽÙ†Û• دابنێ","Insert image via URL":"","Left aligned image":"ڕیزکردنی ÙˆÛŽÙ†Û• بۆ لای Ú†Û•Ù¾",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"ڕیزکردنی ÙˆÛŽÙ†Û• بۆ لای ڕاست","Side image":"لای ÙˆÛŽÙ†Û•","Text alternative":"جێگرەوەی تێکست",Update:"","Update image URL":"","Upload failed":"بارکردنەکە سەرنەکەووت","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/lt.js b/core/assets/vendor/ckeditor5/image/translations/lt.js index 1090ff40f7c5..1c3001db58b9 100644 --- a/core/assets/vendor/ckeditor5/image/translations/lt.js +++ b/core/assets/vendor/ckeditor5/image/translations/lt.js @@ -1 +1 @@ -!function(i){const a=i.lt=i.lt||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Suskaidyti tekstÄ…","Caption for image: %0":"Vaizdo antraÅ¡tÄ—: %0","Caption for the image":"Vaizdo antraÅ¡tÄ—","Centered image":"Vaizdas centre","Change image text alternative":"Pakeisti vaizdo alternatyvųjį tekstÄ…","Enter image caption":"Ä®veskite vaizdo antraÅ¡tÄ™","Full size image":"Pilno dydžio vaizdas","Image resize list":"PaveikslÄ—lio dydžio keitimo sÄ…raÅ¡as","Image toolbar":"PaveikslÄ—lių įrankių juosta","image widget":"vaizdų valdiklis","In line":"tolygiai",Insert:"Ä®kelti","Insert image":"Ä®terpti vaizdÄ…","Insert image via URL":"Ä®kelti paveikslÄ—lį naudojant URL","Left aligned image":"Vaizdas kairÄ—je",Original:"Originalus","Resize image":"Pakeisti paveikslÄ—lio dydį","Resize image to %0":"Pakeisti paveikslÄ—lio dydį į %0","Resize image to the original size":"Pakeisti paveikslÄ—lio dydį į originalų","Right aligned image":"Vaizdas deÅ¡inÄ—je","Side image":"Vaizdas Å¡one","Text alternative":"Alternatyvusis tekstas",Update:"Atnaujinti","Update image URL":"Atnaujinti paveikslÄ—lio URL","Upload failed":"Ä®kelti nepavyko","Wrap text":"Perkelti tekstÄ… į kitÄ… eilutÄ™"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(i){const e=i.lt=i.lt||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Suskaidyti tekstÄ…","Caption for image: %0":"Vaizdo antraÅ¡tÄ—: %0","Caption for the image":"Vaizdo antraÅ¡tÄ—","Centered image":"Vaizdas centre","Change image text alternative":"Pakeisti vaizdo alternatyvųjį tekstÄ…","Enter image caption":"Ä®veskite vaizdo antraÅ¡tÄ™","Full size image":"Pilno dydžio vaizdas","Image resize list":"PaveikslÄ—lio dydžio keitimo sÄ…raÅ¡as","Image toolbar":"PaveikslÄ—lių įrankių juosta","image widget":"vaizdų valdiklis","In line":"tolygiai",Insert:"Ä®kelti","Insert image":"Ä®terpti vaizdÄ…","Insert image via URL":"Ä®kelti paveikslÄ—lį naudojant URL","Left aligned image":"Vaizdas kairÄ—je",Original:"Originalus","Replace from computer":"Pakeisti iÅ¡ kompiuterio","Replace image":"Pakeisti vaizdÄ…","Replace image from computer":"Pakeisti paveiksliukÄ… iÅ¡ kompiuterio","Resize image":"Pakeisti paveikslÄ—lio dydį","Resize image to %0":"Pakeisti paveikslÄ—lio dydį į %0","Resize image to the original size":"Pakeisti paveikslÄ—lio dydį į originalų","Right aligned image":"Vaizdas deÅ¡inÄ—je","Side image":"Vaizdas Å¡one","Text alternative":"Alternatyvusis tekstas",Update:"Atnaujinti","Update image URL":"Atnaujinti paveikslÄ—lio URL","Upload failed":"Ä®kelti nepavyko","Upload from computer":"Ä®kelti iÅ¡ kompiuterio","Upload image from computer":"Ä®kelti paveiksliukÄ… iÅ¡ kompiuterio","Wrap text":"Perkelti tekstÄ… į kitÄ… eilutÄ™"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/lv.js b/core/assets/vendor/ckeditor5/image/translations/lv.js index 89f921982b79..ec854ae73ac8 100644 --- a/core/assets/vendor/ckeditor5/image/translations/lv.js +++ b/core/assets/vendor/ckeditor5/image/translations/lv.js @@ -1 +1 @@ -!function(t){const a=t.lv=t.lv||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"PÄrtraukt tekstu","Caption for image: %0":"AttÄ“la virsraksts: %0","Caption for the image":"AttÄ“la virsraksts","Centered image":"CentrÄ“ts attÄ“ls","Change image text alternative":"MainÄ«t attÄ“la alternatÄ«vo tekstu","Enter image caption":"Ievadiet attÄ“la parakstu","Full size image":"Pilna izmÄ“ra attÄ“ls","Image resize list":"AttÄ“la izmÄ“ru saraksts","Image toolbar":"AttÄ“lu rÄ«kjosla","image widget":"attÄ“la sÄ«krÄ«ks","In line":"RindÄ",Insert:"Ievietot","Insert image":"Ievietot attÄ“lu","Insert image via URL":"Ievietot attÄ“lu, izmantojot saiti","Left aligned image":"Pa kreisi lÄ«dzinÄts attÄ“ls",Original:"OriÄ£inÄls","Resize image":"MainÄ«t attÄ“la izmÄ“rus","Resize image to %0":"MainÄ«t attÄ“la izmÄ“ru uz %0","Resize image to the original size":"MainÄ«t attÄ“la izmÄ“ru uz oriÄ£inÄlo izmÄ“ru","Right aligned image":"Pa labi lÄ«dzinÄts attÄ“ls","Side image":"SÄnÄ novietots attÄ“ls","Text alternative":"AlternatÄ«vais teksts",Update:"AtjauninÄt","Update image URL":"Labot attÄ“la avota saiti","Upload failed":"AugÅ¡upielÄde neizdevusies","Wrap text":"Aplauzt tekstu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(t){const a=t.lv=t.lv||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"PÄrtraukt tekstu","Caption for image: %0":"AttÄ“la virsraksts: %0","Caption for the image":"AttÄ“la virsraksts","Centered image":"CentrÄ“ts attÄ“ls","Change image text alternative":"MainÄ«t attÄ“la alternatÄ«vo tekstu","Enter image caption":"Ievadiet attÄ“la parakstu","Full size image":"Pilna izmÄ“ra attÄ“ls","Image resize list":"AttÄ“la izmÄ“ru saraksts","Image toolbar":"AttÄ“lu rÄ«kjosla","image widget":"attÄ“la sÄ«krÄ«ks","In line":"RindÄ",Insert:"Ievietot","Insert image":"Ievietot attÄ“lu","Insert image via URL":"Ievietot attÄ“lu, izmantojot saiti","Left aligned image":"Pa kreisi lÄ«dzinÄts attÄ“ls",Original:"OriÄ£inÄls","Replace from computer":"Aizvietot no datora","Replace image":"AizstÄt attÄ“lu","Replace image from computer":"AizstÄt attÄ“lu no datora","Resize image":"MainÄ«t attÄ“la izmÄ“rus","Resize image to %0":"MainÄ«t attÄ“la izmÄ“ru uz %0","Resize image to the original size":"MainÄ«t attÄ“la izmÄ“ru uz oriÄ£inÄlo izmÄ“ru","Right aligned image":"Pa labi lÄ«dzinÄts attÄ“ls","Side image":"SÄnÄ novietots attÄ“ls","Text alternative":"AlternatÄ«vais teksts",Update:"AtjauninÄt","Update image URL":"Labot attÄ“la avota saiti","Upload failed":"AugÅ¡upielÄde neizdevusies","Upload from computer":"AugÅ¡upielÄdÄ“t no datora","Upload image from computer":"AugÅ¡upielÄdÄ“t attÄ“lu no datora","Wrap text":"Aplauzt tekstu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ms.js b/core/assets/vendor/ckeditor5/image/translations/ms.js index 65aff92b62ff..4199a01e82f5 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ms.js +++ b/core/assets/vendor/ckeditor5/image/translations/ms.js @@ -1 +1 @@ -!function(a){const e=a.ms=a.ms||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Potong teks","Caption for image: %0":"Kapsyen untuk imej: %0","Caption for the image":"Kapsyen untuk imej","Centered image":"Imej berjajar tengah","Change image text alternative":"Tukar alternatif teks imej","Enter image caption":"Masukkan kapsyen imej","Full size image":"Imej bersaiz penuh","Image resize list":"Senarai saizkan semula imej ","Image toolbar":"Bar alat capaian imej","image widget":"widget imej","In line":"Dalam baris",Insert:"Masukkan","Insert image":"Masukkan imej","Insert image via URL":"Masukkan imej melalui URL","Left aligned image":"Imej berjajar kiri",Original:"Asal","Resize image":"Saizkan semula imej","Resize image to %0":"Saizkan semula imej kepada %0","Resize image to the original size":"Saizkan semula imej kepada saiz asal","Right aligned image":"Imej berjajar kanan","Side image":"Sisi imej","Text alternative":"Alternatif teks",Update:"Kemaskini","Update image URL":"Kemaskini URL imej","Upload failed":"Muat naik gagal","Wrap text":"Balut teks"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.ms=a.ms||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Potong teks","Caption for image: %0":"Kapsyen untuk imej: %0","Caption for the image":"Kapsyen untuk imej","Centered image":"Imej berjajar tengah","Change image text alternative":"Tukar alternatif teks imej","Enter image caption":"Masukkan kapsyen imej","Full size image":"Imej bersaiz penuh","Image resize list":"Senarai saizkan semula imej ","Image toolbar":"Bar alat capaian imej","image widget":"widget imej","In line":"Dalam baris",Insert:"Masukkan","Insert image":"Masukkan imej","Insert image via URL":"Masukkan imej melalui URL","Left aligned image":"Imej berjajar kiri",Original:"Asal","Replace from computer":"Gantikan daripada komputer","Replace image":"Gantikan imej","Replace image from computer":"Gantikan imej daripada komputer","Resize image":"Saizkan semula imej","Resize image to %0":"Saizkan semula imej kepada %0","Resize image to the original size":"Saizkan semula imej kepada saiz asal","Right aligned image":"Imej berjajar kanan","Side image":"Sisi imej","Text alternative":"Alternatif teks",Update:"Kemaskini","Update image URL":"Kemaskini URL imej","Upload failed":"Muat naik gagal","Upload from computer":"Muat naik daripada komputer","Upload image from computer":"Muat naik gambar daripada komputer","Wrap text":"Balut teks"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/nb.js b/core/assets/vendor/ckeditor5/image/translations/nb.js index 29f71a20876d..5015befd192f 100644 --- a/core/assets/vendor/ckeditor5/image/translations/nb.js +++ b/core/assets/vendor/ckeditor5/image/translations/nb.js @@ -1 +1 @@ -!function(e){const i=e.nb=e.nb||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Midtstilt bilde","Change image text alternative":"Endre tekstalternativ for bilde","Enter image caption":"Skriv inn bildetekst","Full size image":"Bilde i full størrelse","Image resize list":"","Image toolbar":"","image widget":"Bilde-widget","In line":"",Insert:"","Insert image":"Sett inn bilde","Insert image via URL":"","Left aligned image":"Venstrejustert bilde",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Høyrejustert bilde","Side image":"Sidebilde","Text alternative":"Tekstalternativ for bilde",Update:"","Update image URL":"","Upload failed":"Opplasting feilet","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.nb=e.nb||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Midtstilt bilde","Change image text alternative":"Endre tekstalternativ for bilde","Enter image caption":"Skriv inn bildetekst","Full size image":"Bilde i full størrelse","Image resize list":"","Image toolbar":"","image widget":"Bilde-widget","In line":"",Insert:"","Insert image":"Sett inn bilde","Insert image via URL":"","Left aligned image":"Venstrejustert bilde",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Høyrejustert bilde","Side image":"Sidebilde","Text alternative":"Tekstalternativ for bilde",Update:"","Update image URL":"","Upload failed":"Opplasting feilet","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ne.js b/core/assets/vendor/ckeditor5/image/translations/ne.js index f6dca6021e5d..56c23a478f9a 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ne.js +++ b/core/assets/vendor/ckeditor5/image/translations/ne.js @@ -1 +1 @@ -!function(e){const i=e.ne=e.ne||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"केनà¥à¤¦à¥à¤°à¤¿à¤¤ तसà¥à¤µà¥€à¤°","Change image text alternative":"तसà¥à¤µà¥€à¤° पाठविकलà¥à¤ª परिवरà¥à¤¤à¤¨ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Enter image caption":"तसà¥à¤µà¥€à¤° कà¥à¤¯à¤¾à¤ªà¥à¤¶à¤¨ पà¥à¤°à¤µà¤¿à¤·à¥à¤Ÿ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Full size image":"पूरà¥à¤£ आकार तसà¥à¤µà¥€à¤°","Image resize list":"","Image toolbar":"","image widget":"तसà¥à¤µà¥€à¤° विजेट","In line":"",Insert:"","Insert image":"तसà¥à¤µà¥€à¤° समà¥à¤®à¤¿à¤²à¤¿à¤¤ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Insert image via URL":"","Left aligned image":"बायाठपङà¥à¤•à¥à¤¤à¤¿ तसà¥à¤µà¥€à¤°",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"दायाठपङà¥à¤•à¥à¤¤à¤¿à¤¬à¤¦à¥à¤§ तसà¥à¤µà¥€à¤°","Side image":"साइड तसà¥à¤µà¥€à¤°","Text alternative":"पाठविकलà¥à¤ª",Update:"","Update image URL":"","Upload failed":"अपलोड असफल à¤à¤¯à¥‹","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.ne=e.ne||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"केनà¥à¤¦à¥à¤°à¤¿à¤¤ तसà¥à¤µà¥€à¤°","Change image text alternative":"तसà¥à¤µà¥€à¤° पाठविकलà¥à¤ª परिवरà¥à¤¤à¤¨ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Enter image caption":"तसà¥à¤µà¥€à¤° कà¥à¤¯à¤¾à¤ªà¥à¤¶à¤¨ पà¥à¤°à¤µà¤¿à¤·à¥à¤Ÿ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Full size image":"पूरà¥à¤£ आकार तसà¥à¤µà¥€à¤°","Image resize list":"","Image toolbar":"","image widget":"तसà¥à¤µà¥€à¤° विजेट","In line":"",Insert:"","Insert image":"तसà¥à¤µà¥€à¤° समà¥à¤®à¤¿à¤²à¤¿à¤¤ गरà¥à¤¨à¥à¤¹à¥‹à¤¸à¥","Insert image via URL":"","Left aligned image":"बायाठपङà¥à¤•à¥à¤¤à¤¿ तसà¥à¤µà¥€à¤°",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"दायाठपङà¥à¤•à¥à¤¤à¤¿à¤¬à¤¦à¥à¤§ तसà¥à¤µà¥€à¤°","Side image":"साइड तसà¥à¤µà¥€à¤°","Text alternative":"पाठविकलà¥à¤ª",Update:"","Update image URL":"","Upload failed":"अपलोड असफल à¤à¤¯à¥‹","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/nl.js b/core/assets/vendor/ckeditor5/image/translations/nl.js index 86563f047161..9624285bb5ef 100644 --- a/core/assets/vendor/ckeditor5/image/translations/nl.js +++ b/core/assets/vendor/ckeditor5/image/translations/nl.js @@ -1 +1 @@ -!function(e){const i=e.nl=e.nl||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Tekst afbreken","Caption for image: %0":"Bijschrift voor afbeelding: %0","Caption for the image":"Bijschrift voor afbeelding","Centered image":"Gecentreerde afbeelding","Change image text alternative":"Verander alt-tekst van de afbeelding","Enter image caption":"Typ een afbeeldingsbijschrift","Full size image":"Afbeelding op volledige grootte","Image resize list":"Lijst voor wijzigen van afbeeldingsformaat","Image toolbar":"Afbeeldingswerkbalk","image widget":"afbeeldingswidget","In line":"In lijn",Insert:"Invoegen","Insert image":"Afbeelding toevoegen","Insert image via URL":"Afbeelding toevoegen via URL","Left aligned image":"Links uitgelijnde afbeelding",Original:"Origineel","Resize image":"Afbeeldingsformaat wijzigen","Resize image to %0":"Afbeeldingsformaat wijzigen naar %0","Resize image to the original size":"Afbeeldingsformaat wijzigen naar originele grootte","Right aligned image":"Rechts uitgelijnde afbeelding","Side image":"Afbeelding naast tekst","Text alternative":"Alt-tekst",Update:"Update","Update image URL":"URL van afbeelding bijwerken","Upload failed":"Uploaden afbeelding mislukt","Wrap text":"Tekstterugloop"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.nl=e.nl||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Tekst afbreken","Caption for image: %0":"Bijschrift voor afbeelding: %0","Caption for the image":"Bijschrift voor afbeelding","Centered image":"Gecentreerde afbeelding","Change image text alternative":"Verander alt-tekst van de afbeelding","Enter image caption":"Typ een afbeeldingsbijschrift","Full size image":"Afbeelding op volledige grootte","Image resize list":"Lijst voor wijzigen van afbeeldingsformaat","Image toolbar":"Afbeeldingswerkbalk","image widget":"afbeeldingswidget","In line":"In lijn",Insert:"Invoegen","Insert image":"Afbeelding toevoegen","Insert image via URL":"Afbeelding toevoegen via URL","Left aligned image":"Links uitgelijnde afbeelding",Original:"Origineel","Replace from computer":"Vervangen vanaf de computer","Replace image":"Afbeelding vervangen","Replace image from computer":"Afbeelding vervangen vanaf computer","Resize image":"Afbeeldingsformaat wijzigen","Resize image to %0":"Afbeeldingsformaat wijzigen naar %0","Resize image to the original size":"Afbeeldingsformaat wijzigen naar originele grootte","Right aligned image":"Rechts uitgelijnde afbeelding","Side image":"Afbeelding naast tekst","Text alternative":"Alt-tekst",Update:"Update","Update image URL":"URL van afbeelding bijwerken","Upload failed":"Uploaden afbeelding mislukt","Upload from computer":"Uploaden vanaf computer","Upload image from computer":"Afbeelding uploaden vanaf de computer","Wrap text":"Tekstterugloop"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/no.js b/core/assets/vendor/ckeditor5/image/translations/no.js index 7a730ca7d70c..846bb5eb2734 100644 --- a/core/assets/vendor/ckeditor5/image/translations/no.js +++ b/core/assets/vendor/ckeditor5/image/translations/no.js @@ -1 +1 @@ -!function(e){const i=e.no=e.no||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Bryt tekst","Caption for image: %0":"Bildetekst for bilde: %0","Caption for the image":"Bildetekst","Centered image":"Midtstilt bilde","Change image text alternative":"Endre tekstalternativ til bildet","Enter image caption":"Skriv inn bildetekst","Full size image":"Bilde i full størrelse","Image resize list":"Nedtrekksliste for bildestørrelse","Image toolbar":"Verktøylinje for bilde","image widget":"Bilde-widget","In line":"Innlemmet",Insert:"Sett inn","Insert image":"Sett inn bilde","Insert image via URL":"Sett inn bilde via URL","Left aligned image":"Venstrejustert bilde",Original:"Original","Resize image":"Endre bildestørrelse","Resize image to %0":"Endre bildestørrelse til %0","Resize image to the original size":"Endre bildestørrelse til originalstørrelse","Right aligned image":"Høyrejustert bilde","Side image":"Sidestilt bilde","Text alternative":"Tekstalternativ",Update:"Oppdater","Update image URL":"Oppdater bilde-URL","Upload failed":"Kunne ikke laste opp","Wrap text":"Omslutt"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.no=e.no||{};t.dictionary=Object.assign(t.dictionary||{},{"Break text":"Bryt tekst","Caption for image: %0":"Bildetekst for bilde: %0","Caption for the image":"Bildetekst","Centered image":"Midtstilt bilde","Change image text alternative":"Endre tekstalternativ til bildet","Enter image caption":"Skriv inn bildetekst","Full size image":"Bilde i full størrelse","Image resize list":"Nedtrekksliste for bildestørrelse","Image toolbar":"Verktøylinje for bilde","image widget":"Bilde-widget","In line":"Innlemmet",Insert:"Sett inn","Insert image":"Sett inn bilde","Insert image via URL":"Sett inn bilde via URL","Left aligned image":"Venstrejustert bilde",Original:"Original","Replace from computer":"Erstatt fra datamaskin","Replace image":"Erstatt bilde","Replace image from computer":"Erstatt bilde fra datamaskinen","Resize image":"Endre bildestørrelse","Resize image to %0":"Endre bildestørrelse til %0","Resize image to the original size":"Endre bildestørrelse til originalstørrelse","Right aligned image":"Høyrejustert bilde","Side image":"Sidestilt bilde","Text alternative":"Tekstalternativ",Update:"Oppdater","Update image URL":"Oppdater bilde-URL","Upload failed":"Kunne ikke laste opp","Upload from computer":"Last opp fra datamaskin","Upload image from computer":"Last opp bilde fra datamaskin","Wrap text":"Omslutt"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/pl.js b/core/assets/vendor/ckeditor5/image/translations/pl.js index f084f8448806..cb6a15f82f92 100644 --- a/core/assets/vendor/ckeditor5/image/translations/pl.js +++ b/core/assets/vendor/ckeditor5/image/translations/pl.js @@ -1 +1 @@ -!function(a){const e=a.pl=a.pl||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Rozbijaj tekst","Caption for image: %0":"Nagłówek do obrazu: %0","Caption for the image":"Nagłówek do obrazu","Centered image":"Obraz wyrównany do Å›rodka","Change image text alternative":"ZmieÅ„ tekst zastÄ™pczy obrazka","Enter image caption":"Wstaw tytuÅ‚ obrazka","Full size image":"Obraz w peÅ‚nym rozmiarze","Image resize list":"Lista: zmiana wielkoÅ›ci obrazu","Image toolbar":"Pasek narzÄ™dzi obrazka","image widget":"Obraz","In line":"W linii",Insert:"Wstaw","Insert image":"Wstaw obraz","Insert image via URL":"Wstaw obraz z adresu URL","Left aligned image":"Obraz wyrównany do lewej",Original:"Oryginalny","Resize image":"ZmieÅ„ rozmiar obrazka","Resize image to %0":"ZmieÅ„ rozmiar do %0","Resize image to the original size":"Przywróć oryginalny rozmiar obrazu","Right aligned image":"Obraz wyrównany do prawej","Side image":"Obraz dosuniÄ™ty do brzegu, oblewany tekstem","Text alternative":"Tekst zastÄ™pczy obrazka",Update:"Zaktualizuj","Update image URL":"Uaktualnij obraz z adresu URL","Upload failed":"PrzesyÅ‚anie obrazu nie powiodÅ‚o siÄ™","Wrap text":"Zawijaj tekst"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.pl=a.pl||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Rozbijaj tekst","Caption for image: %0":"Nagłówek do obrazu: %0","Caption for the image":"Nagłówek do obrazu","Centered image":"Obraz wyrównany do Å›rodka","Change image text alternative":"ZmieÅ„ tekst zastÄ™pczy obrazka","Enter image caption":"Wstaw tytuÅ‚ obrazka","Full size image":"Obraz w peÅ‚nym rozmiarze","Image resize list":"Lista: zmiana wielkoÅ›ci obrazu","Image toolbar":"Pasek narzÄ™dzi obrazka","image widget":"Obraz","In line":"W linii",Insert:"Wstaw","Insert image":"Wstaw obraz","Insert image via URL":"Wstaw obraz z adresu URL","Left aligned image":"Obraz wyrównany do lewej",Original:"Oryginalny","Replace from computer":"ZastÄ…p z komputera","Replace image":"ZastÄ…p obraz","Replace image from computer":"ZastÄ…p obraz z komputera","Resize image":"ZmieÅ„ rozmiar obrazka","Resize image to %0":"ZmieÅ„ rozmiar do %0","Resize image to the original size":"Przywróć oryginalny rozmiar obrazu","Right aligned image":"Obraz wyrównany do prawej","Side image":"Obraz dosuniÄ™ty do brzegu, oblewany tekstem","Text alternative":"Tekst zastÄ™pczy obrazka",Update:"Zaktualizuj","Update image URL":"Uaktualnij obraz z adresu URL","Upload failed":"PrzesyÅ‚anie obrazu nie powiodÅ‚o siÄ™","Upload from computer":"PrzeÅ›lij z komputera","Upload image from computer":"PrzeÅ›lij obraz z komputera","Wrap text":"Zawijaj tekst"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/pt-br.js b/core/assets/vendor/ckeditor5/image/translations/pt-br.js index 2d005c49845a..be58e502dd74 100644 --- a/core/assets/vendor/ckeditor5/image/translations/pt-br.js +++ b/core/assets/vendor/ckeditor5/image/translations/pt-br.js @@ -1 +1 @@ -!function(a){const e=a["pt-br"]=a["pt-br"]||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Quebrar texto","Caption for image: %0":"Legenda da imagem: %0","Caption for the image":"Legenda para a imagem","Centered image":"Imagem centralizada","Change image text alternative":"Alterar texto alternativo da imagem","Enter image caption":"Inserir legenda da imagem","Full size image":"Imagem completa","Image resize list":"Lista de redimensionamento de imagem","Image toolbar":"Ferramentas de Imagem","image widget":"Ferramenta de imagem","In line":"Na linha",Insert:"Inserir","Insert image":"Inserir imagem","Insert image via URL":"Inserir imagem via URL","Left aligned image":"Imagem alinhada à esquerda",Original:"Original","Resize image":"Redimensionar imagem","Resize image to %0":"Redimensionar a imagem para %0","Resize image to the original size":"Redimensionar a imagem para o tamanho original","Right aligned image":"Imagem alinhada à direita","Side image":"Imagem lateral","Text alternative":"Texto alternativo",Update:"Atualizar","Update image URL":"Atualizar URL da imagem","Upload failed":"Falha ao enviar arquivo","Wrap text":"Texto ao redor"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a["pt-br"]=a["pt-br"]||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Quebrar texto","Caption for image: %0":"Legenda da imagem: %0","Caption for the image":"Legenda para a imagem","Centered image":"Imagem centralizada","Change image text alternative":"Alterar texto alternativo da imagem","Enter image caption":"Inserir legenda da imagem","Full size image":"Imagem completa","Image resize list":"Lista de redimensionamento de imagem","Image toolbar":"Ferramentas de Imagem","image widget":"Ferramenta de imagem","In line":"Na linha",Insert:"Inserir","Insert image":"Inserir imagem","Insert image via URL":"Inserir imagem via URL","Left aligned image":"Imagem alinhada à esquerda",Original:"Original","Replace from computer":"Substituir do computador","Replace image":"Substituir imagem","Replace image from computer":"Substituir a imagem do computador","Resize image":"Redimensionar imagem","Resize image to %0":"Redimensionar a imagem para %0","Resize image to the original size":"Redimensionar a imagem para o tamanho original","Right aligned image":"Imagem alinhada à direita","Side image":"Imagem lateral","Text alternative":"Texto alternativo",Update:"Atualizar","Update image URL":"Atualizar URL da imagem","Upload failed":"Falha ao enviar arquivo","Upload from computer":"Carregar do computador","Upload image from computer":"Carregar imagem do computador","Wrap text":"Texto ao redor"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/pt.js b/core/assets/vendor/ckeditor5/image/translations/pt.js index de0ff88ca5ad..28381f246f34 100644 --- a/core/assets/vendor/ckeditor5/image/translations/pt.js +++ b/core/assets/vendor/ckeditor5/image/translations/pt.js @@ -1 +1 @@ -!function(e){const a=e.pt=e.pt||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Quebrar texto","Caption for image: %0":"Legenda da imagem: %0","Caption for the image":"Legenda da imagem","Centered image":"Imagem centrada","Change image text alternative":"Alterar texto alternativo da imagem","Enter image caption":"Indicar legenda da imagem","Full size image":"Imagem em tamanho completo","Image resize list":"Lista de redimensionamento de imagem","Image toolbar":"Barra de ferramentas de imagem","image widget":"módulo de imagem","In line":"Em linha",Insert:"Inserir","Insert image":"Inserir imagem","Insert image via URL":"Inserir imagem através de URL","Left aligned image":"Imagem alinhada à esquerda",Original:"Original","Resize image":"Redimensionar imagem","Resize image to %0":"Redimensionar imagem para %0","Resize image to the original size":"Redimensionar imagem para tamanho original","Right aligned image":"Imagem alinhada à direita","Side image":"Imagem lateral","Text alternative":"Texto alternativo",Update:"Atualizar","Update image URL":"Atualizar URL da imagem","Upload failed":"Falha ao carregar","Wrap text":"Envolver texto"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.pt=a.pt||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Quebrar texto","Caption for image: %0":"Legenda da imagem: %0","Caption for the image":"Legenda da imagem","Centered image":"Imagem centrada","Change image text alternative":"Alterar texto alternativo da imagem","Enter image caption":"Indicar legenda da imagem","Full size image":"Imagem em tamanho completo","Image resize list":"Lista de redimensionamento de imagem","Image toolbar":"Barra de ferramentas de imagem","image widget":"módulo de imagem","In line":"Em linha",Insert:"Inserir","Insert image":"Inserir imagem","Insert image via URL":"Inserir imagem através de URL","Left aligned image":"Imagem alinhada à esquerda",Original:"Original","Replace from computer":"Substituir a partir do computador","Replace image":"Substituir imagem","Replace image from computer":"Substituir imagem a partir do computador","Resize image":"Redimensionar imagem","Resize image to %0":"Redimensionar imagem para %0","Resize image to the original size":"Redimensionar imagem para tamanho original","Right aligned image":"Imagem alinhada à direita","Side image":"Imagem lateral","Text alternative":"Texto alternativo",Update:"Atualizar","Update image URL":"Atualizar URL da imagem","Upload failed":"Falha ao carregar","Upload from computer":"Carregar a partir do computador","Upload image from computer":"Carregar imagem a partir do computador","Wrap text":"Envolver texto"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ro.js b/core/assets/vendor/ckeditor5/image/translations/ro.js index d340398e3688..cbd7b72218a2 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ro.js +++ b/core/assets/vendor/ckeditor5/image/translations/ro.js @@ -1 +1 @@ -!function(e){const i=e.ro=e.ro||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Segmentare text","Caption for image: %0":"Captură pentru imagine: %0","Caption for the image":"Captură pentru imagine","Centered image":"Imagine aliniată pe centru","Change image text alternative":"Schimbă textul alternativ al imaginii","Enter image caption":"Introdu titlul descriptiv al imaginii","Full size image":"Imagine mărime completă","Image resize list":"Lista cu mărimi de redimensionare","Image toolbar":"Bară imagine","image widget":"widget imagine","In line":"ÃŽn linie",Insert:"Inserează","Insert image":"Inserează imagine","Insert image via URL":"Inserează o imagine via URL","Left aligned image":"Imagine aliniată la stânga",Original:"Original","Resize image":"Redimensionează imaginea","Resize image to %0":"Redimensionează imaginea la %0","Resize image to the original size":"Redimensionează imaginea la mărimea originală","Right aligned image":"Imagine aliniată la dreapta","Side image":"Imagine laterală","Text alternative":"Text alternativ",Update:"Actualizează","Update image URL":"Actualizează o imagine via URL","Upload failed":"ÃŽncărcare eÈ™uată","Wrap text":"ÃŽncadrare text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.ro=e.ro||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Segmentare text","Caption for image: %0":"Captură pentru imagine: %0","Caption for the image":"Captură pentru imagine","Centered image":"Imagine aliniată pe centru","Change image text alternative":"Schimbă textul alternativ al imaginii","Enter image caption":"Introdu titlul descriptiv al imaginii","Full size image":"Imagine mărime completă","Image resize list":"Lista cu mărimi de redimensionare","Image toolbar":"Bară imagine","image widget":"widget imagine","In line":"ÃŽn linie",Insert:"Inserează","Insert image":"Inserează imagine","Insert image via URL":"Inserează o imagine via URL","Left aligned image":"Imagine aliniată la stânga",Original:"Original","Replace from computer":"ÃŽnlocuire din computer","Replace image":"ÃŽnlocuire imagine","Replace image from computer":"ÃŽnlocuire imagine din computer","Resize image":"Redimensionează imaginea","Resize image to %0":"Redimensionează imaginea la %0","Resize image to the original size":"Redimensionează imaginea la mărimea originală","Right aligned image":"Imagine aliniată la dreapta","Side image":"Imagine laterală","Text alternative":"Text alternativ",Update:"Actualizează","Update image URL":"Actualizează o imagine via URL","Upload failed":"ÃŽncărcare eÈ™uată","Upload from computer":"ÃŽncărcare din computer","Upload image from computer":"ÃŽncărcare imagine din computer","Wrap text":"ÃŽncadrare text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ru.js b/core/assets/vendor/ckeditor5/image/translations/ru.js index a0518118245c..2a4935069088 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ru.js +++ b/core/assets/vendor/ckeditor5/image/translations/ru.js @@ -1 +1 @@ -!function(e){const i=e.ru=e.ru||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Разрывать текÑÑ‚","Caption for image: %0":"ПодпиÑÑŒ к изображению: %0","Caption for the image":"ПодпиÑÑŒ к изображению","Centered image":"Выравнивание по центру","Change image text alternative":"Редактировать альтернативный текÑÑ‚","Enter image caption":"ПодпиÑÑŒ к изображению","Full size image":"Оригинальный размер изображениÑ","Image resize list":"СпиÑок размеров","Image toolbar":"Панель инÑтрументов изображениÑ","image widget":"Виджет изображений","In line":"Ð’ текÑте",Insert:"Ð’Ñтавить","Insert image":"Ð’Ñтавить изображение","Insert image via URL":"Ð’Ñтавить изображение по URL","Left aligned image":"Выравнивание по левому краю",Original:"Оригинальный","Resize image":"Изменить размер изображениÑ","Resize image to %0":"Изменить размер Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð´Ð¾ %0","Resize image to the original size":"Вернуть размер Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ðº оригинальному","Right aligned image":"Выравнивание по правому краю","Side image":"Боковое изображение","Text alternative":"Ðльтернативный текÑÑ‚",Update:"Изменить","Update image URL":"Изменить URL изображениÑ","Upload failed":"Загрузка не выполнена","Wrap text":"Обтекать текÑÑ‚"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.ru=e.ru||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Разрывать текÑÑ‚","Caption for image: %0":"ПодпиÑÑŒ к изображению: %0","Caption for the image":"ПодпиÑÑŒ к изображению","Centered image":"Выравнивание по центру","Change image text alternative":"Редактировать альтернативный текÑÑ‚","Enter image caption":"ПодпиÑÑŒ к изображению","Full size image":"Оригинальный размер изображениÑ","Image resize list":"СпиÑок размеров","Image toolbar":"Панель инÑтрументов изображениÑ","image widget":"Виджет изображений","In line":"Ð’ текÑте",Insert:"Ð’Ñтавить","Insert image":"Ð’Ñтавить изображение","Insert image via URL":"Ð’Ñтавить изображение по URL","Left aligned image":"Выравнивание по левому краю",Original:"Оригинальный","Replace from computer":"Заменить Ñ ÐºÐ¾Ð¼Ð¿ÑŒÑŽÑ‚ÐµÑ€Ð°","Replace image":"Заменить изображение","Replace image from computer":"Заменить изображение Ñ ÐºÐ¾Ð¼Ð¿ÑŒÑŽÑ‚ÐµÑ€Ð°","Resize image":"Изменить размер изображениÑ","Resize image to %0":"Изменить размер Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð´Ð¾ %0","Resize image to the original size":"Вернуть размер Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ðº оригинальному","Right aligned image":"Выравнивание по правому краю","Side image":"Боковое изображение","Text alternative":"Ðльтернативный текÑÑ‚",Update:"Изменить","Update image URL":"Изменить URL изображениÑ","Upload failed":"Загрузка не выполнена","Upload from computer":"Загрузить Ñ ÐºÐ¾Ð¼Ð¿ÑŒÑŽÑ‚ÐµÑ€Ð°","Upload image from computer":"Загрузить изображение Ñ ÐºÐ¾Ð¼Ð¿ÑŒÑŽÑ‚ÐµÑ€Ð°","Wrap text":"Обтекать текÑÑ‚"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/si.js b/core/assets/vendor/ckeditor5/image/translations/si.js index f298e605c7ad..23c91c0c7176 100644 --- a/core/assets/vendor/ckeditor5/image/translations/si.js +++ b/core/assets/vendor/ckeditor5/image/translations/si.js @@ -1 +1 @@ -!function(e){const i=e.si=e.si||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"","Full size image":"","Image resize list":"","Image toolbar":"","image widget":"","In line":"",Insert:"","Insert image":"පින්à¶à·–රය ඇà¶à·”ල් කරන්න","Insert image via URL":"","Left aligned image":"",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"","Text alternative":"",Update:"","Update image URL":"","Upload failed":"උඩුගචකිරීම අසà·à¶»à·Šà¶®à¶š විය","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.si=e.si||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"","Full size image":"","Image resize list":"","Image toolbar":"","image widget":"","In line":"",Insert:"","Insert image":"පින්à¶à·–රය ඇà¶à·”ල් කරන්න","Insert image via URL":"","Left aligned image":"",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"","Text alternative":"",Update:"","Update image URL":"","Upload failed":"උඩුගචකිරීම අසà·à¶»à·Šà¶®à¶š විය","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/sk.js b/core/assets/vendor/ckeditor5/image/translations/sk.js index 20c4d2d1697f..f7104ff77b26 100644 --- a/core/assets/vendor/ckeditor5/image/translations/sk.js +++ b/core/assets/vendor/ckeditor5/image/translations/sk.js @@ -1 +1 @@ -!function(e){const a=e.sk=e.sk||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Zalomenie textu","Caption for image: %0":"Popis k obrázku: %0","Caption for the image":"Popis k obrázku","Centered image":"ZarovnaÅ¥ na stred","Change image text alternative":"Zmeňte alternatÃvny text obrázka","Enter image caption":"Vložte popis obrázka","Full size image":"Obrázok v plnej veľkosti","Image resize list":"Zoznam možnostà zmeny veľkosti","Image toolbar":"Panel nástrojov obrázka","image widget":"widget obrázka","In line":"V riadku",Insert:"VložiÅ¥","Insert image":"VložiÅ¥ obrázok","Insert image via URL":"VložiÅ¥ obrázok pomocou URL","Left aligned image":"ZarovnaÅ¥ vľavo",Original:"Originál","Resize image":"ZmeniÅ¥ veľkosÅ¥ obrázka","Resize image to %0":"ZmeniÅ¥ veľkosÅ¥ na %0","Resize image to the original size":"ZmeniÅ¥ veľkosÅ¥ na pôvodnú","Right aligned image":"ZarovnaÅ¥ vpravo","Side image":"BoÄný obrázok","Text alternative":"AlternatÃvny text",Update:"AktualizovaÅ¥","Update image URL":"AktualizovaÅ¥ URL obrázka","Upload failed":"Nahrávanie zlyhalo","Wrap text":"Obtekanie textu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(a){const e=a.sk=a.sk||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Zalomenie textu","Caption for image: %0":"Popis k obrázku: %0","Caption for the image":"Popis k obrázku","Centered image":"ZarovnaÅ¥ na stred","Change image text alternative":"Zmeňte alternatÃvny text obrázka","Enter image caption":"Vložte popis obrázka","Full size image":"Obrázok v plnej veľkosti","Image resize list":"Zoznam možnostà zmeny veľkosti","Image toolbar":"Panel nástrojov obrázka","image widget":"widget obrázka","In line":"V riadku",Insert:"VložiÅ¥","Insert image":"VložiÅ¥ obrázok","Insert image via URL":"VložiÅ¥ obrázok pomocou URL","Left aligned image":"ZarovnaÅ¥ vľavo",Original:"Originál","Replace from computer":"NahradiÅ¥ z poÄÃtaÄa","Replace image":"NahradiÅ¥ obrázok","Replace image from computer":"NahradiÅ¥ obrázok z poÄÃtaÄa","Resize image":"ZmeniÅ¥ veľkosÅ¥ obrázka","Resize image to %0":"ZmeniÅ¥ veľkosÅ¥ na %0","Resize image to the original size":"ZmeniÅ¥ veľkosÅ¥ na pôvodnú","Right aligned image":"ZarovnaÅ¥ vpravo","Side image":"BoÄný obrázok","Text alternative":"AlternatÃvny text",Update:"AktualizovaÅ¥","Update image URL":"AktualizovaÅ¥ URL obrázka","Upload failed":"Nahrávanie zlyhalo","Upload from computer":"NahraÅ¥ z poÄÃtaÄa","Upload image from computer":"NahraÅ¥ obrázok z poÄÃtaÄa","Wrap text":"Obtekanie textu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/sq.js b/core/assets/vendor/ckeditor5/image/translations/sq.js index b705345b1a7b..946649c020a8 100644 --- a/core/assets/vendor/ckeditor5/image/translations/sq.js +++ b/core/assets/vendor/ckeditor5/image/translations/sq.js @@ -1 +1 @@ -!function(e){const t=e.sq=e.sq||{};t.dictionary=Object.assign(t.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Foto e vendosur në mes","Change image text alternative":"Ndrysho tekstin zgjedhor të fotos","Enter image caption":"Shto përshkrimin e fotos","Full size image":"Foto me madhësi të plotë","Image resize list":"","Image toolbar":"Kokështrirja e fotos","image widget":"Vegla e fotos","In line":"",Insert:"","Insert image":"Shto Foto","Insert image via URL":"","Left aligned image":"Foto e vendosur majtas",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Foto e vendosur djathtas","Side image":"Foto anësore","Text alternative":"Teksti zgjedhor",Update:"","Update image URL":"","Upload failed":"Ngarkimi dështoi","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.sq=e.sq||{};t.dictionary=Object.assign(t.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Foto e vendosur në mes","Change image text alternative":"Ndrysho tekstin zgjedhor të fotos","Enter image caption":"Shto përshkrimin e fotos","Full size image":"Foto me madhësi të plotë","Image resize list":"","Image toolbar":"Kokështrirja e fotos","image widget":"Vegla e fotos","In line":"",Insert:"","Insert image":"Shto Foto","Insert image via URL":"","Left aligned image":"Foto e vendosur majtas",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Foto e vendosur djathtas","Side image":"Foto anësore","Text alternative":"Teksti zgjedhor",Update:"","Update image URL":"","Upload failed":"Ngarkimi dështoi","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/sr-latn.js b/core/assets/vendor/ckeditor5/image/translations/sr-latn.js index af4656c62f6e..e095bf5f04bb 100644 --- a/core/assets/vendor/ckeditor5/image/translations/sr-latn.js +++ b/core/assets/vendor/ckeditor5/image/translations/sr-latn.js @@ -1 +1 @@ -!function(i){const e=i["sr-latn"]=i["sr-latn"]||{};e.dictionary=Object.assign(e.dictionary||{},{"Break text":"Prelom teksta","Caption for image: %0":"Natpis za sliku:%0","Caption for the image":"Natpis za sliku","Centered image":"Slika u sredini","Change image text alternative":"Izmena alternativnog teksta","Enter image caption":"Odredi tekst ispod slike","Full size image":"Slika u punoj veliÄini","Image resize list":"Lista veliÄine slike","Image toolbar":"Slika traka sa alatkama","image widget":"modul sa slikom","In line":"U redu",Insert:"Ubaci","Insert image":"Dodaj sliku","Insert image via URL":"Ubaci sliku preko URL-a","Left aligned image":"Leva slika",Original:"Original","Resize image":"Promenite veliÄinu slike","Resize image to %0":"Promenite veliÄinu slike na% 0","Resize image to the original size":"Promenite veliÄinu slike do originalne veliÄine","Right aligned image":"Desna slika","Side image":"BoÄna slika","Text alternative":"Alternativni tekst",Update:"Ažuriraj","Update image URL":"Ažuriraj URL slike","Upload failed":"Postavljanje neuspeÅ¡no","Wrap text":"Prelomiti tekst"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e["sr-latn"]=e["sr-latn"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Prelom teksta","Caption for image: %0":"Natpis za sliku:%0","Caption for the image":"Natpis za sliku","Centered image":"Slika u sredini","Change image text alternative":"Izmena alternativnog teksta","Enter image caption":"Odredi tekst ispod slike","Full size image":"Slika u punoj veliÄini","Image resize list":"Lista veliÄine slike","Image toolbar":"Slika traka sa alatkama","image widget":"modul sa slikom","In line":"U redu",Insert:"Ubaci","Insert image":"Dodaj sliku","Insert image via URL":"Ubaci sliku preko URL-a","Left aligned image":"Leva slika",Original:"Original","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"Promenite veliÄinu slike","Resize image to %0":"Promenite veliÄinu slike na% 0","Resize image to the original size":"Promenite veliÄinu slike do originalne veliÄine","Right aligned image":"Desna slika","Side image":"BoÄna slika","Text alternative":"Alternativni tekst",Update:"Ažuriraj","Update image URL":"Ažuriraj URL slike","Upload failed":"Postavljanje neuspeÅ¡no","Upload from computer":"","Upload image from computer":"","Wrap text":"Prelomiti tekst"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/sr.js b/core/assets/vendor/ckeditor5/image/translations/sr.js index a15ce51f4a8f..162ed24313d4 100644 --- a/core/assets/vendor/ckeditor5/image/translations/sr.js +++ b/core/assets/vendor/ckeditor5/image/translations/sr.js @@ -1 +1 @@ -!function(e){const i=e.sr=e.sr||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Прелом текÑта","Caption for image: %0":"ÐÐ°Ñ‚Ð¿Ð¸Ñ Ð·Ð° Ñлику: %0","Caption for the image":"ÐÐ°Ñ‚Ð¿Ð¸Ñ Ð·Ð° Ñлику","Centered image":"Слика у Ñредини","Change image text alternative":"Измена алтернативног текÑта","Enter image caption":"Одреди текÑÑ‚ иÑпод Ñлике","Full size image":"Слика у пуној величини","Image resize list":"ЛиÑта величине Ñлике","Image toolbar":"Слика трака Ñа алтакама","image widget":"модул Ñа Ñликом","In line":"У реду",Insert:"Убаци","Insert image":"Додај Ñлику","Insert image via URL":"Убаци Ñлику преко УРЛ-а","Left aligned image":"Лева Ñлика",Original:"Оригинал","Resize image":"Промените величину Ñлике","Resize image to %0":"Промените величину Ñлике на% 0","Resize image to the original size":"Промените величину Ñлике до оригиналне величине","Right aligned image":"ДеÑна Ñлика","Side image":"Бочна Ñлика","Text alternative":"Ðлтернативни текÑÑ‚",Update:"Ðжурирај","Update image URL":"Ðжурирај УРЛ Ñлике","Upload failed":"ПоÑтављање неуÑпешно","Wrap text":"Преломити текÑÑ‚"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.sr=e.sr||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"Прелом текÑта","Caption for image: %0":"ÐÐ°Ñ‚Ð¿Ð¸Ñ Ð·Ð° Ñлику: %0","Caption for the image":"ÐÐ°Ñ‚Ð¿Ð¸Ñ Ð·Ð° Ñлику","Centered image":"Слика у Ñредини","Change image text alternative":"Измена алтернативног текÑта","Enter image caption":"Одреди текÑÑ‚ иÑпод Ñлике","Full size image":"Слика у пуној величини","Image resize list":"ЛиÑта величине Ñлике","Image toolbar":"Слика трака Ñа алтакама","image widget":"модул Ñа Ñликом","In line":"У реду",Insert:"Убаци","Insert image":"Додај Ñлику","Insert image via URL":"Убаци Ñлику преко УРЛ-а","Left aligned image":"Лева Ñлика",Original:"Оригинал","Replace from computer":"Zameni sa raÄunara","Replace image":"Zameni sliku","Replace image from computer":"Zameni sliku sa raÄunara","Resize image":"Промените величину Ñлике","Resize image to %0":"Промените величину Ñлике на% 0","Resize image to the original size":"Промените величину Ñлике до оригиналне величине","Right aligned image":"ДеÑна Ñлика","Side image":"Бочна Ñлика","Text alternative":"Ðлтернативни текÑÑ‚",Update:"Ðжурирај","Update image URL":"Ðжурирај УРЛ Ñлике","Upload failed":"ПоÑтављање неуÑпешно","Upload from computer":"Otpremi sa raÄunara","Upload image from computer":"Otpremi sliku sa raÄunara","Wrap text":"Преломити текÑÑ‚"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/sv.js b/core/assets/vendor/ckeditor5/image/translations/sv.js index 6d56e6d84e9b..624965bf34d2 100644 --- a/core/assets/vendor/ckeditor5/image/translations/sv.js +++ b/core/assets/vendor/ckeditor5/image/translations/sv.js @@ -1 +1 @@ -!function(e){const i=e.sv=e.sv||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Bryt upp text","Caption for image: %0":"Bildtext till bild: %0","Caption for the image":"Bildtext till bilden","Centered image":"Centrerad bild","Change image text alternative":"Ändra bildens alternativa text","Enter image caption":"Fyll i bildtext","Full size image":"Bild i full storlek","Image resize list":"Lista för storleksändring av bild","Image toolbar":"Bildverktygsfält","image widget":"image widget","In line":"PÃ¥ rad",Insert:"Infoga","Insert image":"Infoga bild","Insert image via URL":"Infoga bild via URL","Left aligned image":"Vänsterjusterad bild",Original:"Ursprunglig","Resize image":"Ändra storlek pÃ¥ bild","Resize image to %0":"Ändra bildens storlek till %0","Resize image to the original size":"Ändra bilden till dess ursprungsstorlek","Right aligned image":"Högerjusterad bild","Side image":"Kantbild","Text alternative":"Alternativ text",Update:"Uppdatera","Update image URL":"Uppdatera bildens URL","Upload failed":"Uppladdning misslyckades","Wrap text":"Omslut med text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.sv=e.sv||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Bryt upp text","Caption for image: %0":"Bildtext till bild: %0","Caption for the image":"Bildtext till bilden","Centered image":"Centrerad bild","Change image text alternative":"Ändra bildens alternativa text","Enter image caption":"Fyll i bildtext","Full size image":"Bild i full storlek","Image resize list":"Lista för storleksändring av bild","Image toolbar":"Bildverktygsfält","image widget":"image widget","In line":"PÃ¥ rad",Insert:"Infoga","Insert image":"Infoga bild","Insert image via URL":"Infoga bild via URL","Left aligned image":"Vänsterjusterad bild",Original:"Ursprunglig","Replace from computer":"Ersätt frÃ¥n dator","Replace image":"Ersätt bild","Replace image from computer":"Ersätt bild frÃ¥n dator","Resize image":"Ändra storlek pÃ¥ bild","Resize image to %0":"Ändra bildens storlek till %0","Resize image to the original size":"Ändra bilden till dess ursprungsstorlek","Right aligned image":"Högerjusterad bild","Side image":"Kantbild","Text alternative":"Alternativ text",Update:"Uppdatera","Update image URL":"Uppdatera bildens URL","Upload failed":"Uppladdning misslyckades","Upload from computer":"Ladda upp frÃ¥n dator","Upload image from computer":"Ladda upp bild frÃ¥n dator","Wrap text":"Omslut med text"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/th.js b/core/assets/vendor/ckeditor5/image/translations/th.js index 055c24bcb9e2..0c7e3e733c55 100644 --- a/core/assets/vendor/ckeditor5/image/translations/th.js +++ b/core/assets/vendor/ckeditor5/image/translations/th.js @@ -1 +1 @@ -!function(e){const i=e.th=e.th||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"à¹à¸šà¹ˆà¸‡à¸‚้à¸à¸„วาม","Caption for image: %0":"คำบรรยายภาพ: %0","Caption for the image":"คำบรรยายภาพ","Centered image":"จัดà¹à¸™à¸§à¸£à¸¹à¸›à¸à¸¶à¹ˆà¸‡à¸à¸¥à¸²à¸‡","Change image text alternative":"เปลี่ยนข้à¸à¸„วามเมื่à¸à¹„ม่พบรูป","Enter image caption":"ระบุคำà¸à¸˜à¸´à¸šà¸²à¸¢à¸ าพ","Full size image":"รูปขนาดเต็ม","Image resize list":"รายà¸à¸²à¸£à¸›à¸£à¸±à¸šà¸‚นาดภาพ","Image toolbar":"เครื่à¸à¸‡à¸¡à¸·à¸à¸£à¸¹à¸›à¸ าพ","image widget":"วิดเจ็ตรูปภาพ","In line":"ในบรรทัด",Insert:"à¹à¸—รà¸","Insert image":"à¹à¸—รà¸à¸£à¸¹à¸›","Insert image via URL":"à¹à¸—รà¸à¸ าพผ่าน URL","Left aligned image":"จัดà¹à¸™à¸§à¸ าพซ้าย",Original:"ดั้งเดิม","Resize image":"ปรับขนาดภาพ","Resize image to %0":"ปรับขนาดภาพเป็น %0","Resize image to the original size":"ปรับขนาดภาพเป็นขนาดเดิม","Right aligned image":"จัดà¹à¸™à¸§à¸ าพขวา","Side image":"รูปด้านข้าง","Text alternative":"ข้à¸à¸„วามเมื่à¸à¹„ม่พบรูป",Update:"à¸à¸±à¸›à¹€à¸”ต","Update image URL":"à¸à¸±à¸›à¹€à¸”ต URL ภาพ","Upload failed":"à¸à¸±à¸›à¹‚หลดไม่สำเร็จ","Wrap text":"ตัดคำข้à¸à¸„วาม"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.th=e.th||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"à¹à¸šà¹ˆà¸‡à¸‚้à¸à¸„วาม","Caption for image: %0":"คำบรรยายภาพ: %0","Caption for the image":"คำบรรยายภาพ","Centered image":"จัดà¹à¸™à¸§à¸£à¸¹à¸›à¸à¸¶à¹ˆà¸‡à¸à¸¥à¸²à¸‡","Change image text alternative":"เปลี่ยนข้à¸à¸„วามเมื่à¸à¹„ม่พบรูป","Enter image caption":"ระบุคำà¸à¸˜à¸´à¸šà¸²à¸¢à¸ าพ","Full size image":"รูปขนาดเต็ม","Image resize list":"รายà¸à¸²à¸£à¸›à¸£à¸±à¸šà¸‚นาดภาพ","Image toolbar":"เครื่à¸à¸‡à¸¡à¸·à¸à¸£à¸¹à¸›à¸ าพ","image widget":"วิดเจ็ตรูปภาพ","In line":"ในบรรทัด",Insert:"à¹à¸—รà¸","Insert image":"à¹à¸—รà¸à¸£à¸¹à¸›","Insert image via URL":"à¹à¸—รà¸à¸ าพผ่าน URL","Left aligned image":"จัดà¹à¸™à¸§à¸ าพซ้าย",Original:"ดั้งเดิม","Replace from computer":"à¹à¸—นที่จาà¸à¸„à¸à¸¡à¸žà¸´à¸§à¹€à¸•à¸à¸£à¹Œ","Replace image":"à¹à¸—นที่ภาพ","Replace image from computer":"à¹à¸—นที่ภาพจาà¸à¸„à¸à¸¡à¸žà¸´à¸§à¹€à¸•à¸à¸£à¹Œ","Resize image":"ปรับขนาดภาพ","Resize image to %0":"ปรับขนาดภาพเป็น %0","Resize image to the original size":"ปรับขนาดภาพเป็นขนาดเดิม","Right aligned image":"จัดà¹à¸™à¸§à¸ าพขวา","Side image":"รูปด้านข้าง","Text alternative":"ข้à¸à¸„วามเมื่à¸à¹„ม่พบรูป",Update:"à¸à¸±à¸›à¹€à¸”ต","Update image URL":"à¸à¸±à¸›à¹€à¸”ต URL ภาพ","Upload failed":"à¸à¸±à¸›à¹‚หลดไม่สำเร็จ","Upload from computer":"à¸à¸±à¸›à¹‚หลดจาà¸à¸„à¸à¸¡à¸žà¸´à¸§à¹€à¸•à¸à¸£à¹Œ","Upload image from computer":"à¸à¸±à¸›à¹‚หลดภาพจาà¸à¸„à¸à¸¡à¸žà¸´à¸§à¹€à¸•à¸à¸£à¹Œ","Wrap text":"ตัดคำข้à¸à¸„วาม"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/tk.js b/core/assets/vendor/ckeditor5/image/translations/tk.js index 76dee0222221..9fa35740bc45 100644 --- a/core/assets/vendor/ckeditor5/image/translations/tk.js +++ b/core/assets/vendor/ckeditor5/image/translations/tk.js @@ -1 +1 @@ -!function(e){const a=e.tk=e.tk||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"MerkezleÅŸdirilen surat","Change image text alternative":"Surat tekstiniň alternatiwasyny üýtgediň","Enter image caption":"Surat ýazgysyny giriziň","Full size image":"Doly ululykdaky surat","Image resize list":"","Image toolbar":"Surat gurallar paneli","image widget":"surat widjeti","In line":"",Insert:"","Insert image":"Surat goýuň","Insert image via URL":"","Left aligned image":"Çep deňleÅŸdirilen surat",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Sag deňleÅŸdirilen surat","Side image":"Gapdal surat","Text alternative":"Tekstiň alternatiwasy",Update:"","Update image URL":"","Upload failed":"Ãükläp bolmady","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const a=e.tk=e.tk||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"MerkezleÅŸdirilen surat","Change image text alternative":"Surat tekstiniň alternatiwasyny üýtgediň","Enter image caption":"Surat ýazgysyny giriziň","Full size image":"Doly ululykdaky surat","Image resize list":"","Image toolbar":"Surat gurallar paneli","image widget":"surat widjeti","In line":"",Insert:"","Insert image":"Surat goýuň","Insert image via URL":"","Left aligned image":"Çep deňleÅŸdirilen surat",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"Sag deňleÅŸdirilen surat","Side image":"Gapdal surat","Text alternative":"Tekstiň alternatiwasy",Update:"","Update image URL":"","Upload failed":"Ãükläp bolmady","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/tr.js b/core/assets/vendor/ckeditor5/image/translations/tr.js index 75e40a5f9029..557312ff77b1 100644 --- a/core/assets/vendor/ckeditor5/image/translations/tr.js +++ b/core/assets/vendor/ckeditor5/image/translations/tr.js @@ -1 +1 @@ -!function(e){const i=e.tr=e.tr||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Metni böl","Caption for image: %0":"Resim için baÅŸlık: %0","Caption for the image":"Resim için baÅŸlık","Centered image":"Ortalanmış görsel","Change image text alternative":"Görsel alternatif yazısını deÄŸiÅŸtir","Enter image caption":"Resim açıklaması gir","Full size image":"Tam Boyut Görsel","Image resize list":"Resim yeniden boyutlandırma listesi","Image toolbar":"Resim araç çubuÄŸu","image widget":"resim aracı","In line":"Aynı hizada",Insert:"Ekle","Insert image":"Görsel Ekle","Insert image via URL":"URL ile görüntü ekle","Left aligned image":"Sola hizalı görsel",Original:"Orijinal","Resize image":"Resmi boyutlandır","Resize image to %0":"Resmi %0 ölçülerine boyutlandır","Resize image to the original size":"Resmi orijinal büyüklüğüne al","Right aligned image":"SaÄŸa hizalı görsel","Side image":"Yan Görsel","Text alternative":"Yazı alternatifi",Update:"Güncelle","Update image URL":"Görüntü URL'sini güncelle","Upload failed":"Yükleme baÅŸarsız","Wrap text":"Metni kaydır"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.tr=e.tr||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Metni böl","Caption for image: %0":"Resim için baÅŸlık: %0","Caption for the image":"Resim için baÅŸlık","Centered image":"Ortalanmış görsel","Change image text alternative":"Görsel alternatif yazısını deÄŸiÅŸtir","Enter image caption":"Resim açıklaması gir","Full size image":"Tam Boyut Görsel","Image resize list":"Resim yeniden boyutlandırma listesi","Image toolbar":"Resim araç çubuÄŸu","image widget":"resim aracı","In line":"Aynı hizada",Insert:"Ekle","Insert image":"Görsel Ekle","Insert image via URL":"URL ile görüntü ekle","Left aligned image":"Sola hizalı görsel",Original:"Orijinal","Replace from computer":"Bilgisayardan deÄŸiÅŸtir","Replace image":"Resmi deÄŸiÅŸtir","Replace image from computer":"Görüntüyü bilgisayardan deÄŸiÅŸtir","Resize image":"Resmi boyutlandır","Resize image to %0":"Resmi %0 ölçülerine boyutlandır","Resize image to the original size":"Resmi orijinal büyüklüğüne al","Right aligned image":"SaÄŸa hizalı görsel","Side image":"Yan Görsel","Text alternative":"Yazı alternatifi",Update:"Güncelle","Update image URL":"Görüntü URL'sini güncelle","Upload failed":"Yükleme baÅŸarsız","Upload from computer":"Bilgisayardan yükle","Upload image from computer":"Bilgisayardan görüntü yükle","Wrap text":"Metni kaydır"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/tt.js b/core/assets/vendor/ckeditor5/image/translations/tt.js index 6df4d65c7a48..61797ede728a 100644 --- a/core/assets/vendor/ckeditor5/image/translations/tt.js +++ b/core/assets/vendor/ckeditor5/image/translations/tt.js @@ -1 +1 @@ -!function(e){const i=e.tt=e.tt||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"","Full size image":"","Image resize list":"","Image toolbar":"","image widget":"","In line":"",Insert:"","Insert image":"","Insert image via URL":"","Left aligned image":"",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"","Text alternative":"",Update:"Яңарт","Update image URL":"","Upload failed":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.tt=e.tt||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"","Full size image":"","Image resize list":"","Image toolbar":"","image widget":"","In line":"",Insert:"","Insert image":"","Insert image via URL":"","Left aligned image":"",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"","Text alternative":"",Update:"Яңарт","Update image URL":"","Upload failed":"","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ug.js b/core/assets/vendor/ckeditor5/image/translations/ug.js index 981f67918cb5..f4c709ea6dfc 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ug.js +++ b/core/assets/vendor/ckeditor5/image/translations/ug.js @@ -1 +1 @@ -!function(e){const i=e.ug=e.ug||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"ئوتتۇردىكى رەسىم","Change image text alternative":"رەسىملىك تÛكىست تاللىغۇچنى ئۆزگەرتىش","Enter image caption":"Ø±Û•Ø³Ù‰Ù…Ù†Ù‰Ú ØªÛمىسىنى كىرگۈزۈÚ","Full size image":"ئەسلى Ú†ÙˆÚلۇقتىكى رەسىم","Image resize list":"","Image toolbar":"","image widget":"رەسىمچىك","In line":"",Insert:"","Insert image":"رەسىم قىستۇرۇش","Insert image via URL":"","Left aligned image":"سولغا توغۇرلانغان رەسىم",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"ئوÚغا توغۇرلانغان رەسىم","Side image":"يان رەسىم","Text alternative":"تÛكىست ئاملاشتۇرۇش",Update:"","Update image URL":"","Upload failed":"چىقىرىش مەغلۇپ بولدى","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.ug=e.ug||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"ئوتتۇردىكى رەسىم","Change image text alternative":"رەسىملىك تÛكىست تاللىغۇچنى ئۆزگەرتىش","Enter image caption":"Ø±Û•Ø³Ù‰Ù…Ù†Ù‰Ú ØªÛمىسىنى كىرگۈزۈÚ","Full size image":"ئەسلى Ú†ÙˆÚلۇقتىكى رەسىم","Image resize list":"","Image toolbar":"","image widget":"رەسىمچىك","In line":"",Insert:"قىستۇر","Insert image":"رەسىم قىستۇرۇش","Insert image via URL":"","Left aligned image":"سولغا توغۇرلانغان رەسىم",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"ئوÚغا توغۇرلانغان رەسىم","Side image":"يان رەسىم","Text alternative":"تÛكىست ئاملاشتۇرۇش",Update:"","Update image URL":"","Upload failed":"چىقىرىش مەغلۇپ بولدى","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/uk.js b/core/assets/vendor/ckeditor5/image/translations/uk.js index bdf663e0b48a..c3cb686b0795 100644 --- a/core/assets/vendor/ckeditor5/image/translations/uk.js +++ b/core/assets/vendor/ckeditor5/image/translations/uk.js @@ -1 +1 @@ -!function(e){const i=e.uk=e.uk||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Розірвати текÑту","Caption for image: %0":"ÐŸÑ–Ð´Ð¿Ð¸Ñ Ð´Ð¾ зображеннÑ: %0","Caption for the image":"ÐŸÑ–Ð´Ð¿Ð¸Ñ Ð´Ð¾ зображеннÑ","Centered image":"Ð—Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð¿Ð¾ центру","Change image text alternative":"Змінити текÑтову альтернативу зображеннÑ","Enter image caption":"Введіть Ð¿Ñ–Ð´Ð¿Ð¸Ñ Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ","Full size image":"Повний розмір зображеннÑ","Image resize list":"Перелік розмірів","Image toolbar":"Панелі інÑтрументів зображеннÑ","image widget":"Віджет зображеннÑ","In line":"Ð’ текÑÑ‚Ñ–",Insert:"Ð’Ñтавити","Insert image":"Ð’Ñтавити зображеннÑ","Insert image via URL":"Ð’Ñтавити Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ñ‡ÐµÑ€ÐµÐ· поÑиланнÑ","Left aligned image":"Ð—Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð»Ñ–Ð²Ð¾Ñ€ÑƒÑ‡",Original:"Оригінал","Resize image":"РозтÑгнути зображеннÑ","Resize image to %0":"РозтÑгнути Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð´Ð¾ %0","Resize image to the original size":"РозтÑгнути Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð´Ð¾ оригінального розміру","Right aligned image":"Ð—Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð¿Ñ€Ð°Ð²Ð¾Ñ€ÑƒÑ‡","Side image":"Бокове зображеннÑ","Text alternative":"ТекÑтова альтернатива",Update:"Оновити","Update image URL":"Оновити поÑÐ¸Ð»Ð°Ð½Ð½Ñ Ð½Ð° зображеннÑ","Upload failed":"Ð—Ð°Ð²Ð°Ð½Ñ‚Ð°Ð¶ÐµÐ½Ð½Ñ Ð½Ðµ вдалоÑÑŒ","Wrap text":"Обернути текÑÑ‚"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.uk=e.uk||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"Розірвати текÑту","Caption for image: %0":"ÐŸÑ–Ð´Ð¿Ð¸Ñ Ð´Ð¾ зображеннÑ: %0","Caption for the image":"ÐŸÑ–Ð´Ð¿Ð¸Ñ Ð´Ð¾ зображеннÑ","Centered image":"Ð—Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð¿Ð¾ центру","Change image text alternative":"Змінити текÑтову альтернативу зображеннÑ","Enter image caption":"Введіть Ð¿Ñ–Ð´Ð¿Ð¸Ñ Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ","Full size image":"Повний розмір зображеннÑ","Image resize list":"Перелік розмірів","Image toolbar":"Панелі інÑтрументів зображеннÑ","image widget":"Віджет зображеннÑ","In line":"Ð’ текÑÑ‚Ñ–",Insert:"Ð’Ñтавити","Insert image":"Ð’Ñтавити зображеннÑ","Insert image via URL":"Ð’Ñтавити Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ñ‡ÐµÑ€ÐµÐ· поÑиланнÑ","Left aligned image":"Ð—Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð»Ñ–Ð²Ð¾Ñ€ÑƒÑ‡",Original:"Оригінал","Replace from computer":"Замінити з комп'ютера","Replace image":"Замінити зображеннÑ","Replace image from computer":"Замінити Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð· комп'ютера","Resize image":"РозтÑгнути зображеннÑ","Resize image to %0":"РозтÑгнути Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð´Ð¾ %0","Resize image to the original size":"РозтÑгнути Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð´Ð¾ оригінального розміру","Right aligned image":"Ð—Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð¿Ñ€Ð°Ð²Ð¾Ñ€ÑƒÑ‡","Side image":"Бокове зображеннÑ","Text alternative":"ТекÑтова альтернатива",Update:"Оновити","Update image URL":"Оновити поÑÐ¸Ð»Ð°Ð½Ð½Ñ Ð½Ð° зображеннÑ","Upload failed":"Ð—Ð°Ð²Ð°Ð½Ñ‚Ð°Ð¶ÐµÐ½Ð½Ñ Ð½Ðµ вдалоÑÑŒ","Upload from computer":"Завантажити з комп'ютера","Upload image from computer":"Завантажити Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð½Ñ Ð· комп'ютера","Wrap text":"Обернути текÑÑ‚"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/ur.js b/core/assets/vendor/ckeditor5/image/translations/ur.js index 8518a97fbf4e..20beb123438f 100644 --- a/core/assets/vendor/ckeditor5/image/translations/ur.js +++ b/core/assets/vendor/ckeditor5/image/translations/ur.js @@ -1 +1 @@ -!function(e){const i=e.ur=e.ur||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"متن تقسیم کریں","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"","Full size image":"مکمل Ù¾Ûمائش کا عکس","Image resize list":"","Image toolbar":"Ø¢Ù„Û Ø¬Ø§Øª برائے عکس","image widget":"آلۂ عکس","In line":"",Insert:"","Insert image":"","Insert image via URL":"","Left aligned image":"",Original:"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"عکس Ø¨Û Ù¾Ûلو","Text alternative":"",Update:"","Update image URL":"","Upload failed":"","Wrap text":"ملÙو٠متن"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.ur=e.ur||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"متن تقسیم کریں","Caption for image: %0":"","Caption for the image":"","Centered image":"","Change image text alternative":"","Enter image caption":"","Full size image":"مکمل Ù¾Ûمائش کا عکس","Image resize list":"","Image toolbar":"Ø¢Ù„Û Ø¬Ø§Øª برائے عکس","image widget":"آلۂ عکس","In line":"",Insert:"","Insert image":"","Insert image via URL":"","Left aligned image":"",Original:"","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Right aligned image":"","Side image":"عکس Ø¨Û Ù¾Ûلو","Text alternative":"",Update:"","Update image URL":"","Upload failed":"","Upload from computer":"","Upload image from computer":"","Wrap text":"ملÙو٠متن"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/uz.js b/core/assets/vendor/ckeditor5/image/translations/uz.js index 482878d6eb70..09d76f9701af 100644 --- a/core/assets/vendor/ckeditor5/image/translations/uz.js +++ b/core/assets/vendor/ckeditor5/image/translations/uz.js @@ -1 +1 @@ -!function(i){const a=i.uz=i.uz||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Markazga tekislash","Change image text alternative":"Muqobil matnni tahrirlash","Enter image caption":"Rasm sarlavhasi","Full size image":"Asl rasm hajmi","Image resize list":"Hajmlar ro'yxati","Image toolbar":"Rasm asboblari paneli","image widget":"Tasvirlar vidjeti","In line":"",Insert:"Kiritish","Insert image":"Rasm kiritish","Insert image via URL":"Rasmni URL orqali kiritish","Left aligned image":"Chapga tekislash",Original:"Asl","Resize image":"Rasm hajmini o'zgartirish","Resize image to %0":"Rasm hajmini %0 ga o‘zgartirish","Resize image to the original size":"Rasmning o'lchamini asl o'lchamiga o'zgartiring","Right aligned image":"O'ngga tekislash","Side image":"Yon tasvir","Text alternative":"Muqobil matn",Update:"O'zgartirish","Update image URL":"Rasm URL manzilini o'zgartirish","Upload failed":"Yuklab olinmadi","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(i){const a=i.uz=i.uz||{};a.dictionary=Object.assign(a.dictionary||{},{"Break text":"","Caption for image: %0":"","Caption for the image":"","Centered image":"Markazga tekislash","Change image text alternative":"Muqobil matnni tahrirlash","Enter image caption":"Rasm sarlavhasi","Full size image":"Asl rasm hajmi","Image resize list":"Hajmlar ro'yxati","Image toolbar":"Rasm asboblari paneli","image widget":"Tasvirlar vidjeti","In line":"",Insert:"Kiritish","Insert image":"Rasm kiritish","Insert image via URL":"Rasmni URL orqali kiritish","Left aligned image":"Chapga tekislash",Original:"Asl","Replace from computer":"","Replace image":"","Replace image from computer":"","Resize image":"Rasm hajmini o'zgartirish","Resize image to %0":"Rasm hajmini %0 ga o‘zgartirish","Resize image to the original size":"Rasmning o'lchamini asl o'lchamiga o'zgartiring","Right aligned image":"O'ngga tekislash","Side image":"Yon tasvir","Text alternative":"Muqobil matn",Update:"O'zgartirish","Update image URL":"Rasm URL manzilini o'zgartirish","Upload failed":"Yuklab olinmadi","Upload from computer":"","Upload image from computer":"","Wrap text":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/vi.js b/core/assets/vendor/ckeditor5/image/translations/vi.js index bbfc9fda77d8..f9e49fcae9e7 100644 --- a/core/assets/vendor/ckeditor5/image/translations/vi.js +++ b/core/assets/vendor/ckeditor5/image/translations/vi.js @@ -1 +1 @@ -!function(n){const h=n.vi=n.vi||{};h.dictionary=Object.assign(h.dictionary||{},{"Break text":"Ngắt văn bản","Caption for image: %0":"Chú thÃch cho hình ảnh: %0","Caption for the image":"Chú thÃch cho hình ảnh","Centered image":"Ảnh canh giữa","Change image text alternative":"Äổi chữ alt của ảnh","Enter image caption":"Nháºp mô tả ảnh","Full size image":"Ảnh đầy đủ","Image resize list":"Danh sách ảnh đã chỉnh kÃch thÆ°á»›c","Image toolbar":"Thanh công cụ hình ảnh","image widget":"tiện Ãch ảnh","In line":"Ná»™i dòng",Insert:"Chèn","Insert image":"Chèn ảnh","Insert image via URL":"Chèn ảnh từ URL","Left aligned image":"Ảnh canh trái",Original:"Nguyên bản","Resize image":"Chỉnh kÃch cỡ ảnh","Resize image to %0":"Chỉnh kÃch cỡ ảnh vá» %0","Resize image to the original size":"Chỉnh vỠảnh kÃch cỡ nguyên gốc","Right aligned image":"Ảnh canh phải","Side image":"Ảnh má»™t bên","Text alternative":"Chữ alt",Update:"Cáºp nháºt","Update image URL":"Cáºp nháºt ảnh từ URL","Upload failed":"Tải thất bại","Wrap text":"Bá»c văn bản"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(h){const n=h.vi=h.vi||{};n.dictionary=Object.assign(n.dictionary||{},{"Break text":"Ngắt văn bản","Caption for image: %0":"Chú thÃch cho hình ảnh: %0","Caption for the image":"Chú thÃch cho hình ảnh","Centered image":"Ảnh canh giữa","Change image text alternative":"Äổi chữ alt của ảnh","Enter image caption":"Nháºp mô tả ảnh","Full size image":"Ảnh đầy đủ","Image resize list":"Danh sách ảnh đã chỉnh kÃch thÆ°á»›c","Image toolbar":"Thanh công cụ hình ảnh","image widget":"tiện Ãch ảnh","In line":"Ná»™i dòng",Insert:"Chèn","Insert image":"Chèn ảnh","Insert image via URL":"Chèn ảnh từ URL","Left aligned image":"Ảnh canh trái",Original:"Nguyên bản","Replace from computer":"Thay thế từ máy tÃnh","Replace image":"Thay thế hình ảnh","Replace image from computer":"Thay thế hình ảnh từ máy tÃnh","Resize image":"Chỉnh kÃch cỡ ảnh","Resize image to %0":"Chỉnh kÃch cỡ ảnh vá» %0","Resize image to the original size":"Chỉnh vỠảnh kÃch cỡ nguyên gốc","Right aligned image":"Ảnh canh phải","Side image":"Ảnh má»™t bên","Text alternative":"Chữ alt",Update:"Cáºp nháºt","Update image URL":"Cáºp nháºt ảnh từ URL","Upload failed":"Tải thất bại","Upload from computer":"Tải lên từ máy tÃnh","Upload image from computer":"Tải hình ảnh lên từ máy tÃnh","Wrap text":"Bá»c văn bản"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/zh-cn.js b/core/assets/vendor/ckeditor5/image/translations/zh-cn.js index 7860e8990d2b..e066917aee91 100644 --- a/core/assets/vendor/ckeditor5/image/translations/zh-cn.js +++ b/core/assets/vendor/ckeditor5/image/translations/zh-cn.js @@ -1 +1 @@ -!function(e){const i=e["zh-cn"]=e["zh-cn"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"æ–‡å—æ–è¡Œ","Caption for image: %0":"图片说明:%0","Caption for the image":"图片说明:","Centered image":"图片居ä¸","Change image text alternative":"更改图片替æ¢æ–‡æœ¬","Enter image caption":"è¾“å…¥å›¾ç‰‡æ ‡é¢˜","Full size image":"全尺寸图片","Image resize list":"图片大å°åˆ—表","Image toolbar":"图片工具æ ","image widget":"图片组件","In line":"行内",Insert:"æ’å…¥","Insert image":"æ’入图åƒ","Insert image via URL":"通过URL地å€æ’入图片","Left aligned image":"图片左侧对é½",Original:"原始大å°","Resize image":"调整图åƒå¤§å°","Resize image to %0":"调整图åƒå¤§å°ä¸º%0","Resize image to the original size":"调整图åƒå¤§å°ä¸ºåŽŸå§‹å¤§å°","Right aligned image":"图片å³ä¾§å¯¹é½","Side image":"图片侧边显示","Text alternative":"替æ¢æ–‡æœ¬",Update:"æ›´æ–°","Update image URL":"更新图片URL地å€","Upload failed":"ä¸Šä¼ å¤±è´¥","Wrap text":"æ–‡å—环绕"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e["zh-cn"]=e["zh-cn"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"æ–‡å—æ–è¡Œ","Caption for image: %0":"图片说明:%0","Caption for the image":"图片说明:","Centered image":"图片居ä¸","Change image text alternative":"更改图片替æ¢æ–‡æœ¬","Enter image caption":"è¾“å…¥å›¾ç‰‡æ ‡é¢˜","Full size image":"全尺寸图片","Image resize list":"图片大å°åˆ—表","Image toolbar":"图片工具æ ","image widget":"图片组件","In line":"行内",Insert:"æ’å…¥","Insert image":"æ’入图åƒ","Insert image via URL":"通过URL地å€æ’入图片","Left aligned image":"图片左侧对é½",Original:"原始大å°","Replace from computer":"从电脑替æ¢","Replace image":"替æ¢å›¾ç‰‡","Replace image from computer":"从电脑替æ¢å›¾ç‰‡","Resize image":"调整图åƒå¤§å°","Resize image to %0":"调整图åƒå¤§å°ä¸º%0","Resize image to the original size":"调整图åƒå¤§å°ä¸ºåŽŸå§‹å¤§å°","Right aligned image":"图片å³ä¾§å¯¹é½","Side image":"图片侧边显示","Text alternative":"替æ¢æ–‡æœ¬",Update:"æ›´æ–°","Update image URL":"更新图片URL地å€","Upload failed":"ä¸Šä¼ å¤±è´¥","Upload from computer":"ä»Žç”µè„‘ä¸Šä¼ ","Upload image from computer":"ä»Žç”µè„‘ä¸Šä¼ å›¾ç‰‡","Wrap text":"æ–‡å—环绕"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/image/translations/zh.js b/core/assets/vendor/ckeditor5/image/translations/zh.js index ed7fac458039..aad03b4ee98c 100644 --- a/core/assets/vendor/ckeditor5/image/translations/zh.js +++ b/core/assets/vendor/ckeditor5/image/translations/zh.js @@ -1 +1 @@ -!function(e){const i=e.zh=e.zh||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"上åŠä¸‹","Caption for image: %0":"å½±åƒæ¨™é¡Œï¼š%0","Caption for the image":"å½±åƒçš„標題","Centered image":"ç½®ä¸åœ–片","Change image text alternative":"修改圖片的替代文å—","Enter image caption":"輸入圖片說明","Full size image":"完整尺寸圖片","Image resize list":"圖片縮放清單","Image toolbar":"圖片工具","image widget":"圖片å°å·¥å…·","In line":"è¡Œä¸",Insert:"æ’å…¥","Insert image":"æ’入圖片","Insert image via URL":"使用連çµæ’入圖片","Left aligned image":"å‘å·¦å°é½Šåœ–片",Original:"原始圖片","Resize image":"縮放圖片","Resize image to %0":"縮放圖片到 %0","Resize image to the original size":"縮放圖片到原始尺寸","Right aligned image":"å‘å³å°é½Šåœ–片","Side image":"å´é‚Šåœ–片","Text alternative":"替代文å—",Update:"æ›´æ–°","Update image URL":"更新圖片連çµ","Upload failed":"上傳失敗","Wrap text":"文繞圖"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const i=e.zh=e.zh||{};i.dictionary=Object.assign(i.dictionary||{},{"Break text":"上åŠä¸‹","Caption for image: %0":"å½±åƒæ¨™é¡Œï¼š%0","Caption for the image":"å½±åƒçš„標題","Centered image":"ç½®ä¸åœ–片","Change image text alternative":"修改圖片的替代文å—","Enter image caption":"輸入圖片說明","Full size image":"完整尺寸圖片","Image resize list":"圖片縮放清單","Image toolbar":"圖片工具","image widget":"圖片å°å·¥å…·","In line":"è¡Œä¸",Insert:"æ’å…¥","Insert image":"æ’入圖片","Insert image via URL":"使用連çµæ’入圖片","Left aligned image":"å‘å·¦å°é½Šåœ–片",Original:"原始圖片","Replace from computer":"從電腦替æ›","Replace image":"替æ›åœ–片","Replace image from computer":"從電腦替æ›åœ–片","Resize image":"縮放圖片","Resize image to %0":"縮放圖片到 %0","Resize image to the original size":"縮放圖片到原始尺寸","Right aligned image":"å‘å³å°é½Šåœ–片","Side image":"å´é‚Šåœ–片","Text alternative":"替代文å—",Update:"æ›´æ–°","Update image URL":"更新圖片連çµ","Upload failed":"上傳失敗","Upload from computer":"從電腦上傳","Upload image from computer":"從電腦上傳圖片","Wrap text":"文繞圖"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/indent/translations/gl.js b/core/assets/vendor/ckeditor5/indent/translations/gl.js index 6505bd827524..a25790473e69 100644 --- a/core/assets/vendor/ckeditor5/indent/translations/gl.js +++ b/core/assets/vendor/ckeditor5/indent/translations/gl.js @@ -1 +1 @@ -!function(n){const i=n.gl=n.gl||{};i.dictionary=Object.assign(i.dictionary||{},{"Decrease indent":"Reducir sangrado","Increase indent":"Aumentar sangrado"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(n){const a=n.gl=n.gl||{};a.dictionary=Object.assign(a.dictionary||{},{"Decrease indent":"Reducir a sangrÃa","Increase indent":"Aumentar a sangrÃa"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/link/link.js b/core/assets/vendor/ckeditor5/link/link.js index 9b939aca9814..e59a362c9b5d 100644 --- a/core/assets/vendor/ckeditor5/link/link.js +++ b/core/assets/vendor/ckeditor5/link/link.js @@ -2,4 +2,4 @@ /*! * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. - */(()=>{var e={487:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}}',""]);const s=o},713:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}",""]);const s=o},321:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}}",""]);const s=o},626:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}",""]);const s=o},883:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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))}',""]);const s=o},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var s=0;s<this.length;s++){var r=this[s][0];null!=r&&(o[r]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&o[c[0]]||(i&&(c[2]?c[2]="".concat(i," and ").concat(c[2]):c[2]=i),t.push(c))}},t}},62:(e,t,i)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},s=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function a(e){for(var t=-1,i=0;i<r.length;i++)if(r[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var s=e[o],c=t.base?s[0]+t.base:s[0],l=i[c]||0,u="".concat(c," ").concat(l);i[c]=l+1;var d=a(u),k={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(r[d].references++,r[d].updater(k)):r.push({identifier:u,updater:g(k,t),references:1}),n.push(u)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var r=s(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function k(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var s=document.createTextNode(o),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(s,r[t]):e.appendChild(s)}}function h(e,t,i){var n=i.css,o=i.media,s=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f=null,m=0;function g(e,t){var i,n,o;if(t.singleton){var s=m++;i=f||(f=l(t)),n=k.bind(null,i,s,!1),o=k.bind(null,i,s,!0)}else i=l(t),n=h.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=a(i[n]);r[o].references--}for(var s=c(e,t),l=0;l<i.length;l++){var u=a(i[l]);0===r[u].references&&(r[u].updater(),r.splice(u,1))}i=s}}}},945:(e,t,i)=>{e.exports=i(79)("./src/clipboard.js")},704:(e,t,i)=>{e.exports=i(79)("./src/core.js")},492:(e,t,i)=>{e.exports=i(79)("./src/engine.js")},181:(e,t,i)=>{e.exports=i(79)("./src/typing.js")},273:(e,t,i)=>{e.exports=i(79)("./src/ui.js")},209:(e,t,i)=>{e.exports=i(79)("./src/utils.js")},995:(e,t,i)=>{e.exports=i(79)("./src/widget.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,exports:{}};return e[n](s,s.exports,i),s.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{AutoLink:()=>je,Link:()=>Ne,LinkCommand:()=>se,LinkEditing:()=>me,LinkImage:()=>ze,LinkImageEditing:()=>He,LinkImageUI:()=>Ue,LinkUI:()=>Le,UnlinkCommand:()=>ae});var e=i(704),t=i(492),o=i(181),s=i(945),r=i(209);class a{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach((e=>this._definitions.add(e))):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",((e,t,i)=>{if(!i.consumable.test(t.item,"attribute:linkHref"))return;if(!t.item.is("selection")&&!i.schema.isInline(t.item))return;const n=i.writer,o=n.document.selection;for(const e of this._definitions){const s=n.createAttributeElement("a",e.attributes,{priority:5});e.classes&&n.addClass(e.classes,s);for(const t in e.styles)n.setStyle(t,e.styles[t],s);n.setCustomProperty("link",!0,s),e.callback(t.attributeNewValue)?t.item.is("selection")?n.wrap(o.getFirstRange(),s):n.wrap(i.mapper.toViewRange(t.range),s):n.unwrap(i.mapper.toViewRange(t.range),s)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",((e,t,{writer:i,mapper:n})=>{const o=n.toViewElement(t.item),s=Array.from(o.getChildren()).find((e=>e.is("element","a")));for(const e of this._definitions){const n=(0,r.toMap)(e.attributes);if(e.callback(t.attributeNewValue)){for(const[e,t]of n)"class"===e?i.addClass(t,s):i.setAttribute(e,t,s);e.classes&&i.addClass(e.classes,s);for(const t in e.styles)i.setStyle(t,e.styles[t],s)}else{for(const[e,t]of n)"class"===e?i.removeClass(t,s):i.removeAttribute(e,s);e.classes&&i.removeClass(e.classes,s);for(const t in e.styles)i.removeStyle(t,s)}}}))}}}const c=function(e,t,i){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s};const l=function(e,t,i){var n=e.length;return i=void 0===i?n:i,!t&&i>=n?e:c(e,t,i)};var u=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const d=function(e){return u.test(e)};const k=function(e){return e.split("")};var h="\\ud800-\\udfff",f="["+h+"]",m="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",g="\\ud83c[\\udffb-\\udfff]",b="[^"+h+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",v="(?:"+m+"|"+g+")"+"?",_="[\\ufe0e\\ufe0f]?",y=_+v+("(?:\\u200d(?:"+[b,p,w].join("|")+")"+_+v+")*"),A="(?:"+[b+m+"?",m,p,w,f].join("|")+")",x=RegExp(g+"(?="+g+")|"+A+y,"g");const I=function(e){return e.match(x)||[]};const V=function(e){return d(e)?I(e):k(e)};const S="object"==typeof global&&global&&global.Object===Object&&global;var T="object"==typeof self&&self&&self.Object===Object&&self;const E=(S||T||Function("return this")()).Symbol;const C=function(e,t){for(var i=-1,n=null==e?0:e.length,o=Array(n);++i<n;)o[i]=t(e[i],i,e);return o};const L=Array.isArray;var D=Object.prototype,M=D.hasOwnProperty,j=D.toString,B=E?E.toStringTag:void 0;const N=function(e){var t=M.call(e,B),i=e[B];try{e[B]=void 0;var n=!0}catch(e){}var o=j.call(e);return n&&(t?e[B]=i:delete e[B]),o};var H=Object.prototype.toString;const O=function(e){return H.call(e)};var P=E?E.toStringTag:void 0;const U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?N(e):O(e)};const F=function(e){return null!=e&&"object"==typeof e};const R=function(e){return"symbol"==typeof e||F(e)&&"[object Symbol]"==U(e)};var z=E?E.prototype:void 0,Z=z?z.toString:void 0;const q=function e(t){if("string"==typeof t)return t;if(L(t))return C(t,e)+"";if(R(t))return Z?Z.call(t):"";var i=t+"";return"0"==i&&1/t==-Infinity?"-0":i};const $=function(e){return null==e?"":q(e)};const K=function(e){return function(t){t=$(t);var i=d(t)?V(t):void 0,n=i?i[0]:t.charAt(0),o=i?l(i,1).join(""):t.slice(1);return n[e]()+o}}("toUpperCase"),Q=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,W=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Y=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,G=/^((\w+:(\/{2,})?)|(\W))/i,J="Ctrl+K";function X(e,{writer:t}){const i=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,i),i}function ee(e){const t=String(e);return function(e){const t=e.replace(Q,"");return!!t.match(W)}(t)?t:"#"}function te(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function ie(e,t){const i=(n=e,Y.test(n)?"mailto:":t);var n;const o=!!i&&!ne(e);return e&&o?i+e:e}function ne(e){return G.test(e)}function oe(e){window.open(e,"_blank","noopener")}class se extends e.Command{constructor(){super(...arguments),this.manualDecorators=new r.Collection,this.automaticDecorators=new a}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document.selection,i=t.getSelectedElement()||(0,r.first)(t.getSelectedBlocks());te(i,e.schema)?(this.value=i.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(i,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}execute(e,t={}){const i=this.editor.model,n=i.document.selection,s=[],a=[];for(const e in t)t[e]?s.push(e):a.push(e);i.change((t=>{if(n.isCollapsed){const c=n.getFirstPosition();if(n.hasAttribute("linkHref")){const r=re(n);let l=(0,o.findAttributeRange)(c,"linkHref",n.getAttribute("linkHref"),i);n.getAttribute("linkHref")===r&&(l=this._updateLinkContent(i,t,l,e)),t.setAttribute("linkHref",e,l),s.forEach((e=>{t.setAttribute(e,!0,l)})),a.forEach((e=>{t.removeAttribute(e,l)})),t.setSelection(t.createPositionAfter(l.end.nodeBefore))}else if(""!==e){const o=(0,r.toMap)(n.getAttributes());o.set("linkHref",e),s.forEach((e=>{o.set(e,!0)}));const{end:a}=i.insertContent(t.createText(e,o),c);t.setSelection(a)}["linkHref",...s,...a].forEach((e=>{t.removeSelectionAttribute(e)}))}else{const o=i.schema.getValidRanges(n.getRanges(),"linkHref"),r=[];for(const e of n.getSelectedBlocks())i.schema.checkAttribute(e,"linkHref")&&r.push(t.createRangeOn(e));const c=r.slice();for(const e of o)this._isRangeToUpdate(e,r)&&c.push(e);for(const o of c){let r=o;if(1===c.length){const s=re(n);n.getAttribute("linkHref")===s&&(r=this._updateLinkContent(i,t,o,e),t.setSelection(t.createSelection(r)))}t.setAttribute("linkHref",e,r),s.forEach((e=>{t.setAttribute(e,!0,r)})),a.forEach((e=>{t.removeAttribute(e,r)}))}}}))}_getDecoratorStateFromModel(e){const t=this.editor.model,i=t.document.selection,n=i.getSelectedElement();return te(n,t.schema)?n.getAttribute(e):i.getAttribute(e)}_isRangeToUpdate(e,t){for(const i of t)if(i.containsRange(e))return!1;return!0}_updateLinkContent(e,t,i,n){const o=t.createText(n,{linkHref:n});return e.insertContent(o,i)}}function re(e){if(e.isCollapsed){const t=e.getFirstPosition();return t.textNode&&t.textNode.data}{const t=Array.from(e.getFirstRange().getItems());if(t.length>1)return null;const i=t[0];return i.is("$text")||i.is("$textProxy")?i.data:null}}class ae extends e.Command{refresh(){const e=this.editor.model,t=e.document.selection,i=t.getSelectedElement();te(i,e.schema)?this.isEnabled=e.schema.checkAttribute(i,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){const e=this.editor,t=this.editor.model,i=t.document.selection,n=e.commands.get("link");t.change((e=>{const s=i.isCollapsed?[(0,o.findAttributeRange)(i.getFirstPosition(),"linkHref",i.getAttribute("linkHref"),t)]:t.schema.getValidRanges(i.getRanges(),"linkHref");for(const t of s)if(e.removeAttribute("linkHref",t),n)for(const i of n.manualDecorators)e.removeAttribute(i.id,t)}))}}class ce extends((0,r.ObservableMixin)()){constructor({id:e,label:t,attributes:i,classes:n,styles:o,defaultValue:s}){super(),this.id=e,this.set("value",void 0),this.defaultValue=s,this.label=t,this.attributes=i,this.classes=n,this.styles=o}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var le=i(62),ue=i.n(le),de=i(713),ke={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ue()(de.Z,ke);de.Z.locals;const he="automatic",fe=/^(https?:)?\/\//;class me extends e.Plugin{static get pluginName(){return"LinkEditing"}static get requires(){return[o.TwoStepCaretMovement,o.Input,s.ClipboardPipeline]}constructor(e){super(e),e.config.define("link",{addTargetToExternalLinks:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:X}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,t)=>X(ee(e),t)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new se(e)),e.commands.add("unlink",new ae(e));const t=function(e,t){const i={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((e=>("label"in e&&i[e.label]&&(e.label=i[e.label]),e))),t}(e.t,function(e){const t=[];if(e)for(const[i,n]of Object.entries(e)){const e=Object.assign({},n,{id:`link${K(i)}`});t.push(e)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((e=>e.mode===he))),this._enableManualDecorators(t.filter((e=>"manual"===e.mode)));e.plugins.get(o.TwoStepCaretMovement).registerAttribute("linkHref"),(0,o.inlineHighlight)(e,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(e){const t=this.editor,i=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&i.add({id:"linkIsExternal",mode:he,callback:e=>!!e&&fe.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),i.add(e),i.length&&t.conversion.for("downcast").add(i.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;const t=this.editor,i=t.commands.get("link").manualDecorators;e.forEach((e=>{t.model.schema.extend("$text",{allowAttributes:e.id});const n=new ce(e);i.add(n),t.conversion.for("downcast").attributeToElement({model:n.id,view:(e,{writer:t,schema:i},{item:o})=>{if((o.is("selection")||i.isInline(o))&&e){const e=t.createAttributeElement("a",n.attributes,{priority:5});n.classes&&t.addClass(n.classes,e);for(const i in n.styles)t.setStyle(i,n.styles[i],e);return t.setCustomProperty("link",!0,e),e}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",...n._createPattern()},model:{key:n.id}})}))}_enableLinkOpen(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",((e,t)=>{if(!(r.env.isMac?t.domEvent.metaKey:t.domEvent.ctrlKey))return;let i=t.domTarget;if("a"!=i.tagName.toLowerCase()&&(i=i.closest("a")),!i)return;const n=i.getAttribute("href");n&&(e.stop(),t.preventDefault(),oe(n))}),{context:"$capture"}),this.listenTo(t,"keydown",((t,i)=>{const n=e.commands.get("link").value;!!n&&i.keyCode===r.keyCodes.enter&&i.altKey&&(t.stop(),oe(n))}))}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection;this.listenTo(e,"insertContent",(()=>{const i=t.anchor.nodeBefore,n=t.anchor.nodeAfter;t.hasAttribute("linkHref")&&i&&i.hasAttribute("linkHref")&&(n&&n.hasAttribute("linkHref")||e.change((t=>{ge(t,pe(e.schema))})))}),{priority:"low"})}_enableClickingAfterLink(){const e=this.editor,i=e.model;e.editing.view.addObserver(t.MouseObserver);let n=!1;this.listenTo(e.editing.view.document,"mousedown",(()=>{n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(()=>{if(!n)return;n=!1;const e=i.document.selection;if(!e.isCollapsed)return;if(!e.hasAttribute("linkHref"))return;const t=e.getFirstPosition(),s=(0,o.findAttributeRange)(t,"linkHref",e.getAttribute("linkHref"),i);(t.isTouching(s.start)||t.isTouching(s.end))&&i.change((e=>{ge(e,pe(i.schema))}))}))}_enableTypingOverLink(){const e=this.editor,t=e.editing.view;let i=null,n=!1;this.listenTo(t.document,"delete",(()=>{n=!0}),{priority:"high"}),this.listenTo(e.model,"deleteContent",(()=>{const t=e.model.document.selection;t.isCollapsed||(n?n=!1:be(e)&&function(e){const t=e.document.selection,i=t.getFirstPosition(),n=t.getLastPosition(),s=i.nodeAfter;if(!s)return!1;if(!s.is("$text"))return!1;if(!s.hasAttribute("linkHref"))return!1;const r=n.textNode||n.nodeBefore;if(s===r)return!0;return(0,o.findAttributeRange)(i,"linkHref",s.getAttribute("linkHref"),e).containsRange(e.createRange(i,n),!0)}(e.model)&&(i=t.getAttributes()))}),{priority:"high"}),this.listenTo(e.model,"insertContent",((t,[o])=>{n=!1,be(e)&&i&&(e.model.change((e=>{for(const[t,n]of i)e.setAttribute(t,n,o)})),i=null)}),{priority:"high"})}_handleDeleteContentAfterLink(){const e=this.editor,t=e.model,i=t.document.selection,n=e.editing.view;let s=!1,r=!1;this.listenTo(n.document,"delete",((e,t)=>{r="backward"===t.direction}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{s=!1;const e=i.getFirstPosition(),n=i.getAttribute("linkHref");if(!n)return;const r=(0,o.findAttributeRange)(e,"linkHref",n,t);s=r.containsPosition(e)||r.end.isEqual(e)}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{r&&(r=!1,s||e.model.enqueueChange((e=>{ge(e,pe(t.schema))})))}),{priority:"low"})}_enableClipboardIntegration(){const e=this.editor,t=e.model,i=this.editor.config.get("link.defaultProtocol");i&&this.listenTo(e.plugins.get("ClipboardPipeline"),"contentInsertion",((e,n)=>{t.change((e=>{const t=e.createRangeIn(n.content);for(const n of t.getItems())if(n.hasAttribute("linkHref")){const t=ie(n.getAttribute("linkHref"),i);e.setAttribute("linkHref",t,n)}}))}))}}function ge(e,t){e.removeSelectionAttribute("linkHref");for(const i of t)e.removeSelectionAttribute(i)}function be(e){return e.model.change((e=>e.batch)).isTyping}function pe(e){return e.getDefinition("$text").allowAttributes.filter((e=>e.startsWith("link")))}var we=i(273),ve=i(995),_e=i(487),ye={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ue()(_e.Z,ye);_e.Z.locals;var Ae=i(626),xe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ue()(Ae.Z,xe);Ae.Z.locals;class Ie extends we.View{constructor(t,i){super(t),this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this._focusables=new we.ViewCollection;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),e.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),e.icons.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(i),this.children=this._createFormChildren(i.manualDecorators),this._focusCycler=new we.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const o=["ck","ck-link-form","ck-responsive-form"];i.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((e,t)=>(e[t.name]=t.isOn,e)),{})}render(){super.render(),(0,we.submitHandler)({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 e=this.locale.t,t=new we.LabeledFieldView(this.locale,we.createLabeledInputText);return t.label=e("Link URL"),t}_createButton(e,t,i,n){const o=new we.ButtonView(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:i}}),n&&o.delegate("execute").to(this,n),o}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const i of e.manualDecorators){const n=new we.SwitchButtonView(this.locale);n.set({name:i.id,label:i.label,withText:!0}),n.bind("isOn").toMany([i,e],"value",((e,t)=>void 0===t&&void 0===e?!!i.defaultValue:!!e)),n.on("execute",(()=>{i.set("value",!n.isOn)})),t.add(n)}return t}_createFormChildren(e){const t=this.createCollection();if(t.add(this.urlInputView),e.length){const e=new we.View;e.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((e=>({tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(e)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}var Ve=i(321),Se={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ue()(Ve.Z,Se);Ve.Z.locals;class Te extends we.View{constructor(t){super(t),this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this._focusables=new we.ViewCollection;const i=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(i("Unlink"),'<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>',"unlink"),this.editButtonView=this._createButton(i("Edit link"),e.icons.pencil,"edit"),this.set("href",void 0),this._focusCycler=new we.FocusCycler({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(e,t,i){const n=new we.ButtonView(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n.delegate("execute").to(this,i),n}_createPreviewButton(){const e=new we.ButtonView(this.locale),t=this.bindTemplate,i=this.t;return e.set({withText:!0,tooltip:i("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(e=>e&&ee(e))),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(e=>e||i("This link has no URL"))),e.bind("isEnabled").to(this,"href",(e=>!!e)),e.template.tag="a",e.template.eventListeners={},e}}const Ee='<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>',Ce="link-ui";class Le extends e.Plugin{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[we.ContextualBalloon]}static get pluginName(){return"LinkUI"}init(){const e=this.editor;e.editing.view.addObserver(t.ClickObserver),this._balloon=e.plugins.get(we.ContextualBalloon),this._createToolbarLinkButton(),this._enableBalloonActivators(),e.conversion.for("editingDowncast").markerToHighlight({model:Ce,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:Ce,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 e=this.editor,t=new Te(e.locale),i=e.commands.get("link"),n=e.commands.get("unlink");return t.bind("href").to(i,"value"),t.editButtonView.bind("isEnabled").to(i),t.unlinkButtonView.bind("isEnabled").to(n),this.listenTo(t,"edit",(()=>{this._addFormView()})),this.listenTo(t,"unlink",(()=>{e.execute("unlink"),this._hideUI()})),t.keystrokes.set("Esc",((e,t)=>{this._hideUI(),t()})),t.keystrokes.set(J,((e,t)=>{this._addFormView(),t()})),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),i=e.config.get("link.defaultProtocol"),n=new((0,we.CssTransitionDisablerMixin)(Ie))(e.locale,t);return n.urlInputView.fieldView.bind("value").to(t,"value"),n.urlInputView.bind("isEnabled").to(t,"isEnabled"),n.saveButtonView.bind("isEnabled").to(t),this.listenTo(n,"submit",(()=>{const{value:t}=n.urlInputView.fieldView.element,o=ie(t,i);e.execute("link",o,n.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(n,"cancel",(()=>{this._closeFormView()})),n.keystrokes.set("Esc",((e,t)=>{this._closeFormView(),t()})),n}_createToolbarLinkButton(){const e=this.editor,t=e.commands.get("link"),i=e.t;e.ui.componentFactory.add("link",(e=>{const n=new we.ButtonView(e);return n.isEnabled=!0,n.label=i("Link"),n.icon=Ee,n.keystroke=J,n.tooltip=!0,n.isToggleable=!0,n.bind("isEnabled").to(t,"isEnabled"),n.bind("isOn").to(t,"value",(e=>!!e)),this.listenTo(n,"execute",(()=>this._showUI(!0))),n}))}_enableBalloonActivators(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),e.keystrokes.set(J,((t,i)=>{i(),e.commands.get("link").isEnabled&&this._showUI(!0)}))}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",((e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((e,t)=>{this._isUIVisible&&(this._hideUI(),t())})),(0,we.clickOutsideHandler)({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 e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const e=this.editor,t=e.editing.view.document;let i=this._getSelectedLinkElement(),n=s();const o=()=>{const e=this._getSelectedLinkElement(),t=s();i&&!e||!i&&t!==n?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),i=e,n=t};function s(){return t.selection.focus.getAncestors().reverse().find((e=>e.is("element")))}this.listenTo(e.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}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 e=this._balloon.visibleView;return!!this.formView&&e==this.formView||this._areActionsVisible}_getBalloonPositionData(){const e=this.editor.editing.view,t=this.editor.model,i=e.document;let n;if(t.markers.has(Ce)){const t=Array.from(this.editor.editing.mapper.markerNameToElements(Ce)),i=e.createRange(e.createPositionBefore(t[0]),e.createPositionAfter(t[t.length-1]));n=e.domConverter.viewRangeToDom(i)}else n=()=>{const t=this._getSelectedLinkElement();return t?e.domConverter.mapViewToDom(t):e.domConverter.viewRangeToDom(i.selection.getFirstRange())};return{target:n}}_getSelectedLinkElement(){const e=this.editor.editing.view,t=e.document.selection,i=t.getSelectedElement();if(t.isCollapsed||i&&(0,ve.isWidget)(i))return De(t.getFirstPosition());{const i=t.getFirstRange().getTrimmed(),n=De(i.start),o=De(i.end);return n&&n==o&&e.createRangeIn(n).getTrimmed().isEqual(i)?n:null}}_showFakeVisualSelection(){const e=this.editor.model;e.change((t=>{const i=e.document.selection.getFirstRange();if(e.markers.has(Ce))t.updateMarker(Ce,{range:i});else if(i.start.isAtEnd){const n=i.start.getLastMatchingPosition((({item:t})=>!e.schema.isContent(t)),{boundaries:i});t.addMarker(Ce,{usingOperation:!1,affectsData:!1,range:t.createRange(n,i.end)})}else t.addMarker(Ce,{usingOperation:!1,affectsData:!1,range:i})}))}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has(Ce)&&e.change((e=>{e.removeMarker(Ce)}))}}function De(e){return e.getAncestors().find((e=>{return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))||null}const Me=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");class je extends e.Plugin{static get requires(){return[o.Delete]}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()}_enableTypingHandling(){const e=this.editor,t=new o.TextWatcher(e.model,(e=>{if(!function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e))return;const t=Be(e.substr(0,e.length-1));return t?{url:t}:void 0}));t.on("matched:data",((t,i)=>{const{batch:n,range:o,url:s}=i;if(!n.isTyping)return;const r=o.end.getShiftedBy(-1),a=r.getShiftedBy(-s.length),c=e.model.createRange(a,r);this._applyAutoLink(s,c)})),t.bind("isEnabled").to(this)}_enableEnterHandling(){const e=this.editor,t=e.model,i=e.commands.get("enter");i&&i.on("execute",(()=>{const e=t.document.selection.getFirstPosition();if(!e.parent.previousSibling)return;const i=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(i)}))}_enableShiftEnterHandling(){const e=this.editor,t=e.model,i=e.commands.get("shiftEnter");i&&i.on("execute",(()=>{const e=t.document.selection.getFirstPosition(),i=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(i)}))}_checkAndApplyAutoLinkOnRange(e){const t=this.editor.model,{text:i,range:n}=(0,o.getLastTextLine)(e,t),s=Be(i);if(s){const e=t.createRange(n.end.getShiftedBy(-s.length),n.end);this._applyAutoLink(s,e)}}_applyAutoLink(e,t){const i=this.editor.model,n=ie(e,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,i)&&ne(n)&&!function(e){const t=e.start.nodeAfter;return!!t&&t.hasAttribute("linkHref")}(t)&&this._persistAutoLink(n,t)}_persistAutoLink(e,t){const i=this.editor.model,n=this.editor.plugins.get("Delete");i.enqueueChange((o=>{o.setAttribute("linkHref",e,t),i.enqueueChange((()=>{n.requestUndoOnBackspace()}))}))}}function Be(e){const t=Me.exec(e);return t?t[2]:null}class Ne extends e.Plugin{static get requires(){return[me,Le,je]}static get pluginName(){return"Link"}}class He extends e.Plugin{static get requires(){return["ImageEditing","ImageUtils",me]}static get pluginName(){return"LinkImageEditing"}init(){const e=this.editor,t=e.model.schema;e.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["linkHref"]}),e.conversion.for("upcast").add(function(e){const t=e.plugins.has("ImageInlineEditing"),i=e.plugins.get("ImageUtils");return e=>{e.on("element:a",((e,n,o)=>{const s=n.viewItem,r=i.findViewImgElement(s);if(!r)return;const a=r.findAncestor((e=>i.isBlockImageView(e)));if(t&&!a)return;const c={attributes:["href"]};if(!o.consumable.consume(s,c))return;const l=s.getAttribute("href");if(!l)return;let u=n.modelCursor.parent;if(!u.is("element","imageBlock")){const e=o.convertItem(r,n.modelCursor);n.modelRange=e.modelRange,n.modelCursor=e.modelCursor,u=n.modelCursor.nodeBefore}u&&u.is("element","imageBlock")&&o.writer.setAttribute("linkHref",l,u)}),{priority:"high"})}}(e)),e.conversion.for("downcast").add(function(e){const t=e.plugins.get("ImageUtils");return e=>{e.on("attribute:linkHref:imageBlock",((e,i,n)=>{if(!n.consumable.consume(i.item,e.name))return;const o=n.mapper.toViewElement(i.item),s=n.writer,r=Array.from(o.getChildren()).find((e=>e.is("element","a"))),a=t.findViewImgElement(o),c=a.parent.is("element","picture")?a.parent:a;if(r)i.attributeNewValue?s.setAttribute("href",i.attributeNewValue,r):(s.move(s.createRangeOn(c),s.createPositionAt(o,0)),s.remove(r));else{const e=s.createContainerElement("a",{href:i.attributeNewValue});s.insert(s.createPositionAt(o,0),e),s.move(s.createRangeOn(c),s.createPositionAt(e,0))}}),{priority:"high"})}}(e)),this._enableAutomaticDecorators(),this._enableManualDecorators()}_enableAutomaticDecorators(){const e=this.editor,t=e.commands.get("link").automaticDecorators;t.length&&e.conversion.for("downcast").add(t.getDispatcherForLinkedImage())}_enableManualDecorators(){const e=this.editor,t=e.commands.get("link");for(const i of t.manualDecorators)e.plugins.has("ImageBlockEditing")&&e.model.schema.extend("imageBlock",{allowAttributes:i.id}),e.plugins.has("ImageInlineEditing")&&e.model.schema.extend("imageInline",{allowAttributes:i.id}),e.conversion.for("downcast").add(Oe(i)),e.conversion.for("upcast").add(Pe(e,i))}}function Oe(e){return t=>{t.on(`attribute:${e.id}:imageBlock`,((t,i,n)=>{const o=n.mapper.toViewElement(i.item),s=Array.from(o.getChildren()).find((e=>e.is("element","a")));if(s){for(const[t,i]of(0,r.toMap)(e.attributes))n.writer.setAttribute(t,i,s);e.classes&&n.writer.addClass(e.classes,s);for(const t in e.styles)n.writer.setStyle(t,e.styles[t],s)}}))}}function Pe(e,i){const n=e.plugins.has("ImageInlineEditing"),o=e.plugins.get("ImageUtils");return e=>{e.on("element:a",((e,s,r)=>{const a=s.viewItem,c=o.findViewImgElement(a);if(!c)return;const l=c.findAncestor((e=>o.isBlockImageView(e)));if(n&&!l)return;const u=new t.Matcher(i._createPattern()).match(a);if(!u)return;if(!r.consumable.consume(a,u.match))return;const d=s.modelCursor.nodeBefore||s.modelCursor.parent;r.writer.setAttribute(i.id,!0,d)}),{priority:"high"})}}class Ue extends e.Plugin{static get requires(){return[me,Le,"ImageBlockEditing"]}static get pluginName(){return"LinkImageUI"}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",((t,i)=>{this._isSelectedLinkedImage(e.model.document.selection)&&(i.preventDefault(),t.stop())}),{priority:"high"}),this._createToolbarLinkImageButton()}_createToolbarLinkImageButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("linkImage",(i=>{const n=new we.ButtonView(i),o=e.plugins.get("LinkUI"),s=e.commands.get("link");return n.set({isEnabled:!0,label:t("Link image"),icon:Ee,keystroke:J,tooltip:!0,isToggleable:!0}),n.bind("isEnabled").to(s,"isEnabled"),n.bind("isOn").to(s,"value",(e=>!!e)),this.listenTo(n,"execute",(()=>{this._isSelectedLinkedImage(e.model.document.selection)?o._addActionsView():o._showUI(!0)})),n}))}_isSelectedLinkedImage(e){const t=e.getSelectedElement();return this.editor.plugins.get("ImageUtils").isImage(t)&&t.hasAttribute("linkHref")}}var Fe=i(883),Re={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ue()(Fe.Z,Re);Fe.Z.locals;class ze extends e.Plugin{static get requires(){return[He,Ue]}static get pluginName(){return"LinkImage"}}})(),(window.CKEditor5=window.CKEditor5||{}).link=n})(); \ No newline at end of file + */(()=>{var e={487:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}}',""]);const s=o},713:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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)}",""]);const s=o},321:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}}",""]);const s=o},626:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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}",""]);const s=o},883:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(609),o=i.n(n)()((function(e){return e[1]}));o.push([e.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))}',""]);const s=o},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var s=0;s<this.length;s++){var r=this[s][0];null!=r&&(o[r]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&o[c[0]]||(i&&(c[2]?c[2]="".concat(i," and ").concat(c[2]):c[2]=i),t.push(c))}},t}},62:(e,t,i)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},s=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function a(e){for(var t=-1,i=0;i<r.length;i++)if(r[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var s=e[o],c=t.base?s[0]+t.base:s[0],l=i[c]||0,u="".concat(c," ").concat(l);i[c]=l+1;var d=a(u),k={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(r[d].references++,r[d].updater(k)):r.push({identifier:u,updater:g(k,t),references:1}),n.push(u)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var r=s(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function k(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var s=document.createTextNode(o),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(s,r[t]):e.appendChild(s)}}function h(e,t,i){var n=i.css,o=i.media,s=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f=null,m=0;function g(e,t){var i,n,o;if(t.singleton){var s=m++;i=f||(f=l(t)),n=k.bind(null,i,s,!1),o=k.bind(null,i,s,!0)}else i=l(t),n=h.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=a(i[n]);r[o].references--}for(var s=c(e,t),l=0;l<i.length;l++){var u=a(i[l]);0===r[u].references&&(r[u].updater(),r.splice(u,1))}i=s}}}},945:(e,t,i)=>{e.exports=i(79)("./src/clipboard.js")},704:(e,t,i)=>{e.exports=i(79)("./src/core.js")},492:(e,t,i)=>{e.exports=i(79)("./src/engine.js")},181:(e,t,i)=>{e.exports=i(79)("./src/typing.js")},273:(e,t,i)=>{e.exports=i(79)("./src/ui.js")},209:(e,t,i)=>{e.exports=i(79)("./src/utils.js")},995:(e,t,i)=>{e.exports=i(79)("./src/widget.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,exports:{}};return e[n](s,s.exports,i),s.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{AutoLink:()=>Ce,Link:()=>Me,LinkCommand:()=>oe,LinkEditing:()=>fe,LinkImage:()=>Oe,LinkImageEditing:()=>je,LinkImageUI:()=>He,LinkUI:()=>Ee,UnlinkCommand:()=>re});var e=i(704),t=i(181),o=i(945),s=i(209);class r{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach((e=>this._definitions.add(e))):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",((e,t,i)=>{if(!i.consumable.test(t.item,"attribute:linkHref"))return;if(!t.item.is("selection")&&!i.schema.isInline(t.item))return;const n=i.writer,o=n.document.selection;for(const e of this._definitions){const s=n.createAttributeElement("a",e.attributes,{priority:5});e.classes&&n.addClass(e.classes,s);for(const t in e.styles)n.setStyle(t,e.styles[t],s);n.setCustomProperty("link",!0,s),e.callback(t.attributeNewValue)?t.item.is("selection")?n.wrap(o.getFirstRange(),s):n.wrap(i.mapper.toViewRange(t.range),s):n.unwrap(i.mapper.toViewRange(t.range),s)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",((e,t,{writer:i,mapper:n})=>{const o=n.toViewElement(t.item),r=Array.from(o.getChildren()).find((e=>e.is("element","a")));for(const e of this._definitions){const n=(0,s.toMap)(e.attributes);if(e.callback(t.attributeNewValue)){for(const[e,t]of n)"class"===e?i.addClass(t,r):i.setAttribute(e,t,r);e.classes&&i.addClass(e.classes,r);for(const t in e.styles)i.setStyle(t,e.styles[t],r)}else{for(const[e,t]of n)"class"===e?i.removeClass(t,r):i.removeAttribute(e,r);e.classes&&i.removeClass(e.classes,r);for(const t in e.styles)i.removeStyle(t,r)}}}))}}}const a=function(e,t,i){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s};const c=function(e,t,i){var n=e.length;return i=void 0===i?n:i,!t&&i>=n?e:a(e,t,i)};var l=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const u=function(e){return l.test(e)};const d=function(e){return e.split("")};var k="\\ud800-\\udfff",h="["+k+"]",f="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",m="\\ud83c[\\udffb-\\udfff]",g="[^"+k+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",w="(?:"+f+"|"+m+")"+"?",v="[\\ufe0e\\ufe0f]?",_=v+w+("(?:\\u200d(?:"+[g,b,p].join("|")+")"+v+w+")*"),y="(?:"+[g+f+"?",f,b,p,h].join("|")+")",A=RegExp(m+"(?="+m+")|"+y+_,"g");const x=function(e){return e.match(A)||[]};const I=function(e){return u(e)?x(e):d(e)};const V="object"==typeof global&&global&&global.Object===Object&&global;var S="object"==typeof self&&self&&self.Object===Object&&self;const E=(V||S||Function("return this")()).Symbol;const T=function(e,t){for(var i=-1,n=null==e?0:e.length,o=Array(n);++i<n;)o[i]=t(e[i],i,e);return o};const L=Array.isArray;var C=Object.prototype,D=C.hasOwnProperty,M=C.toString,j=E?E.toStringTag:void 0;const B=function(e){var t=D.call(e,j),i=e[j];try{e[j]=void 0;var n=!0}catch(e){}var o=M.call(e);return n&&(t?e[j]=i:delete e[j]),o};var N=Object.prototype.toString;const H=function(e){return N.call(e)};var P=E?E.toStringTag:void 0;const U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":P&&P in Object(e)?B(e):H(e)};const O=function(e){return null!=e&&"object"==typeof e};const F=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==U(e)};var R=E?E.prototype:void 0,z=R?R.toString:void 0;const Z=function e(t){if("string"==typeof t)return t;if(L(t))return T(t,e)+"";if(F(t))return z?z.call(t):"";var i=t+"";return"0"==i&&1/t==-Infinity?"-0":i};const q=function(e){return null==e?"":Z(e)};const K=function(e){return function(t){t=q(t);var i=u(t)?I(t):void 0,n=i?i[0]:t.charAt(0),o=i?c(i,1).join(""):t.slice(1);return n[e]()+o}}("toUpperCase"),$=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Q=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,W=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Y=/^((\w+:(\/{2,})?)|(\W))/i,G="Ctrl+K";function J(e,{writer:t}){const i=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,i),i}function X(e){const t=String(e);return function(e){const t=e.replace($,"");return!!t.match(Q)}(t)?t:"#"}function ee(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function te(e,t){const i=(n=e,W.test(n)?"mailto:":t);var n;const o=!!i&&!ie(e);return e&&o?i+e:e}function ie(e){return Y.test(e)}function ne(e){window.open(e,"_blank","noopener")}class oe extends e.Command{constructor(){super(...arguments),this.manualDecorators=new s.Collection,this.automaticDecorators=new r}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document.selection,i=t.getSelectedElement()||(0,s.first)(t.getSelectedBlocks());ee(i,e.schema)?(this.value=i.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(i,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}execute(e,i={}){const n=this.editor.model,o=n.document.selection,r=[],a=[];for(const e in i)i[e]?r.push(e):a.push(e);n.change((i=>{if(o.isCollapsed){const c=o.getFirstPosition();if(o.hasAttribute("linkHref")){const s=se(o);let l=(0,t.findAttributeRange)(c,"linkHref",o.getAttribute("linkHref"),n);o.getAttribute("linkHref")===s&&(l=this._updateLinkContent(n,i,l,e)),i.setAttribute("linkHref",e,l),r.forEach((e=>{i.setAttribute(e,!0,l)})),a.forEach((e=>{i.removeAttribute(e,l)})),i.setSelection(i.createPositionAfter(l.end.nodeBefore))}else if(""!==e){const t=(0,s.toMap)(o.getAttributes());t.set("linkHref",e),r.forEach((e=>{t.set(e,!0)}));const{end:a}=n.insertContent(i.createText(e,t),c);i.setSelection(a)}["linkHref",...r,...a].forEach((e=>{i.removeSelectionAttribute(e)}))}else{const t=n.schema.getValidRanges(o.getRanges(),"linkHref"),s=[];for(const e of o.getSelectedBlocks())n.schema.checkAttribute(e,"linkHref")&&s.push(i.createRangeOn(e));const c=s.slice();for(const e of t)this._isRangeToUpdate(e,s)&&c.push(e);for(const t of c){let s=t;if(1===c.length){const r=se(o);o.getAttribute("linkHref")===r&&(s=this._updateLinkContent(n,i,t,e),i.setSelection(i.createSelection(s)))}i.setAttribute("linkHref",e,s),r.forEach((e=>{i.setAttribute(e,!0,s)})),a.forEach((e=>{i.removeAttribute(e,s)}))}}}))}_getDecoratorStateFromModel(e){const t=this.editor.model,i=t.document.selection,n=i.getSelectedElement();return ee(n,t.schema)?n.getAttribute(e):i.getAttribute(e)}_isRangeToUpdate(e,t){for(const i of t)if(i.containsRange(e))return!1;return!0}_updateLinkContent(e,t,i,n){const o=t.createText(n,{linkHref:n});return e.insertContent(o,i)}}function se(e){if(e.isCollapsed){const t=e.getFirstPosition();return t.textNode&&t.textNode.data}{const t=Array.from(e.getFirstRange().getItems());if(t.length>1)return null;const i=t[0];return i.is("$text")||i.is("$textProxy")?i.data:null}}class re extends e.Command{refresh(){const e=this.editor.model,t=e.document.selection,i=t.getSelectedElement();ee(i,e.schema)?this.isEnabled=e.schema.checkAttribute(i,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){const e=this.editor,i=this.editor.model,n=i.document.selection,o=e.commands.get("link");i.change((e=>{const s=n.isCollapsed?[(0,t.findAttributeRange)(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),i)]:i.schema.getValidRanges(n.getRanges(),"linkHref");for(const t of s)if(e.removeAttribute("linkHref",t),o)for(const i of o.manualDecorators)e.removeAttribute(i.id,t)}))}}class ae extends((0,s.ObservableMixin)()){constructor({id:e,label:t,attributes:i,classes:n,styles:o,defaultValue:s}){super(),this.id=e,this.set("value",void 0),this.defaultValue=s,this.label=t,this.attributes=i,this.classes=n,this.styles=o}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var ce=i(62),le=i.n(ce),ue=i(713),de={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};le()(ue.Z,de);ue.Z.locals;const ke="automatic",he=/^(https?:)?\/\//;class fe extends e.Plugin{static get pluginName(){return"LinkEditing"}static get requires(){return[t.TwoStepCaretMovement,t.Input,o.ClipboardPipeline]}constructor(e){super(e),e.config.define("link",{addTargetToExternalLinks:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:J}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,t)=>J(X(e),t)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new oe(e)),e.commands.add("unlink",new re(e));const i=function(e,t){const i={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((e=>("label"in e&&i[e.label]&&(e.label=i[e.label]),e))),t}(e.t,function(e){const t=[];if(e)for(const[i,n]of Object.entries(e)){const e=Object.assign({},n,{id:`link${K(i)}`});t.push(e)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(i.filter((e=>e.mode===ke))),this._enableManualDecorators(i.filter((e=>"manual"===e.mode)));e.plugins.get(t.TwoStepCaretMovement).registerAttribute("linkHref"),(0,t.inlineHighlight)(e,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(e){const t=this.editor,i=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&i.add({id:"linkIsExternal",mode:ke,callback:e=>!!e&&he.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),i.add(e),i.length&&t.conversion.for("downcast").add(i.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;const t=this.editor,i=t.commands.get("link").manualDecorators;e.forEach((e=>{t.model.schema.extend("$text",{allowAttributes:e.id});const n=new ae(e);i.add(n),t.conversion.for("downcast").attributeToElement({model:n.id,view:(e,{writer:t,schema:i},{item:o})=>{if((o.is("selection")||i.isInline(o))&&e){const e=t.createAttributeElement("a",n.attributes,{priority:5});n.classes&&t.addClass(n.classes,e);for(const i in n.styles)t.setStyle(i,n.styles[i],e);return t.setCustomProperty("link",!0,e),e}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",...n._createPattern()},model:{key:n.id}})}))}_enableLinkOpen(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",((e,t)=>{if(!(s.env.isMac?t.domEvent.metaKey:t.domEvent.ctrlKey))return;let i=t.domTarget;if("a"!=i.tagName.toLowerCase()&&(i=i.closest("a")),!i)return;const n=i.getAttribute("href");n&&(e.stop(),t.preventDefault(),ne(n))}),{context:"$capture"}),this.listenTo(t,"keydown",((t,i)=>{const n=e.commands.get("link").value;!!n&&i.keyCode===s.keyCodes.enter&&i.altKey&&(t.stop(),ne(n))}))}_enableSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection;this.listenTo(t,"change:attribute",((i,{attributeKeys:n})=>{n.includes("linkHref")&&!t.hasAttribute("linkHref")&&e.change((t=>{var i;!function(e,t){e.removeSelectionAttribute("linkHref");for(const i of t)e.removeSelectionAttribute(i)}(t,(i=e.schema,i.getDefinition("$text").allowAttributes.filter((e=>e.startsWith("link")))))}))}))}_enableClipboardIntegration(){const e=this.editor,t=e.model,i=this.editor.config.get("link.defaultProtocol");i&&this.listenTo(e.plugins.get("ClipboardPipeline"),"contentInsertion",((e,n)=>{t.change((e=>{const t=e.createRangeIn(n.content);for(const n of t.getItems())if(n.hasAttribute("linkHref")){const t=te(n.getAttribute("linkHref"),i);e.setAttribute("linkHref",t,n)}}))}))}}var me=i(492),ge=i(273),be=i(995),pe=i(487),we={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};le()(pe.Z,we);pe.Z.locals;var ve=i(626),_e={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};le()(ve.Z,_e);ve.Z.locals;class ye extends ge.View{constructor(t,i){super(t),this.focusTracker=new s.FocusTracker,this.keystrokes=new s.KeystrokeHandler,this._focusables=new ge.ViewCollection;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),e.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),e.icons.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(i),this.children=this._createFormChildren(i.manualDecorators),this._focusCycler=new ge.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const o=["ck","ck-link-form","ck-responsive-form"];i.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((e,t)=>(e[t.name]=t.isOn,e)),{})}render(){super.render(),(0,ge.submitHandler)({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 e=this.locale.t,t=new ge.LabeledFieldView(this.locale,ge.createLabeledInputText);return t.label=e("Link URL"),t}_createButton(e,t,i,n){const o=new ge.ButtonView(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:i}}),n&&o.delegate("execute").to(this,n),o}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const i of e.manualDecorators){const n=new ge.SwitchButtonView(this.locale);n.set({name:i.id,label:i.label,withText:!0}),n.bind("isOn").toMany([i,e],"value",((e,t)=>void 0===t&&void 0===e?!!i.defaultValue:!!e)),n.on("execute",(()=>{i.set("value",!n.isOn)})),t.add(n)}return t}_createFormChildren(e){const t=this.createCollection();if(t.add(this.urlInputView),e.length){const e=new ge.View;e.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((e=>({tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(e)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}var Ae=i(321),xe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};le()(Ae.Z,xe);Ae.Z.locals;class Ie extends ge.View{constructor(t){super(t),this.focusTracker=new s.FocusTracker,this.keystrokes=new s.KeystrokeHandler,this._focusables=new ge.ViewCollection;const i=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(i("Unlink"),'<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>',"unlink"),this.editButtonView=this._createButton(i("Edit link"),e.icons.pencil,"edit"),this.set("href",void 0),this._focusCycler=new ge.FocusCycler({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(e,t,i){const n=new ge.ButtonView(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n.delegate("execute").to(this,i),n}_createPreviewButton(){const e=new ge.ButtonView(this.locale),t=this.bindTemplate,i=this.t;return e.set({withText:!0,tooltip:i("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(e=>e&&X(e))),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(e=>e||i("This link has no URL"))),e.bind("isEnabled").to(this,"href",(e=>!!e)),e.template.tag="a",e.template.eventListeners={},e}}const Ve='<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>',Se="link-ui";class Ee extends e.Plugin{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[ge.ContextualBalloon]}static get pluginName(){return"LinkUI"}init(){const e=this.editor;e.editing.view.addObserver(me.ClickObserver),this._balloon=e.plugins.get(ge.ContextualBalloon),this._createToolbarLinkButton(),this._enableBalloonActivators(),e.conversion.for("editingDowncast").markerToHighlight({model:Se,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:Se,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 e=this.editor,t=new Ie(e.locale),i=e.commands.get("link"),n=e.commands.get("unlink");return t.bind("href").to(i,"value"),t.editButtonView.bind("isEnabled").to(i),t.unlinkButtonView.bind("isEnabled").to(n),this.listenTo(t,"edit",(()=>{this._addFormView()})),this.listenTo(t,"unlink",(()=>{e.execute("unlink"),this._hideUI()})),t.keystrokes.set("Esc",((e,t)=>{this._hideUI(),t()})),t.keystrokes.set(G,((e,t)=>{this._addFormView(),t()})),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),i=e.config.get("link.defaultProtocol"),n=new((0,ge.CssTransitionDisablerMixin)(ye))(e.locale,t);return n.urlInputView.fieldView.bind("value").to(t,"value"),n.urlInputView.bind("isEnabled").to(t,"isEnabled"),n.saveButtonView.bind("isEnabled").to(t),this.listenTo(n,"submit",(()=>{const{value:t}=n.urlInputView.fieldView.element,o=te(t,i);e.execute("link",o,n.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(n,"cancel",(()=>{this._closeFormView()})),n.keystrokes.set("Esc",((e,t)=>{this._closeFormView(),t()})),n}_createToolbarLinkButton(){const e=this.editor,t=e.commands.get("link"),i=e.t;e.ui.componentFactory.add("link",(e=>{const n=new ge.ButtonView(e);return n.isEnabled=!0,n.label=i("Link"),n.icon=Ve,n.keystroke=G,n.tooltip=!0,n.isToggleable=!0,n.bind("isEnabled").to(t,"isEnabled"),n.bind("isOn").to(t,"value",(e=>!!e)),this.listenTo(n,"execute",(()=>this._showUI(!0))),n}))}_enableBalloonActivators(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),e.keystrokes.set(G,((t,i)=>{i(),e.commands.get("link").isEnabled&&this._showUI(!0)}))}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",((e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((e,t)=>{this._isUIVisible&&(this._hideUI(),t())})),(0,ge.clickOutsideHandler)({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 e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const e=this.editor,t=e.editing.view.document;let i=this._getSelectedLinkElement(),n=s();const o=()=>{const e=this._getSelectedLinkElement(),t=s();i&&!e||!i&&t!==n?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),i=e,n=t};function s(){return t.selection.focus.getAncestors().reverse().find((e=>e.is("element")))}this.listenTo(e.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}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 e=this._balloon.visibleView;return!!this.formView&&e==this.formView||this._areActionsVisible}_getBalloonPositionData(){const e=this.editor.editing.view,t=this.editor.model,i=e.document;let n;if(t.markers.has(Se)){const t=Array.from(this.editor.editing.mapper.markerNameToElements(Se)),i=e.createRange(e.createPositionBefore(t[0]),e.createPositionAfter(t[t.length-1]));n=e.domConverter.viewRangeToDom(i)}else n=()=>{const t=this._getSelectedLinkElement();return t?e.domConverter.mapViewToDom(t):e.domConverter.viewRangeToDom(i.selection.getFirstRange())};return{target:n}}_getSelectedLinkElement(){const e=this.editor.editing.view,t=e.document.selection,i=t.getSelectedElement();if(t.isCollapsed||i&&(0,be.isWidget)(i))return Te(t.getFirstPosition());{const i=t.getFirstRange().getTrimmed(),n=Te(i.start),o=Te(i.end);return n&&n==o&&e.createRangeIn(n).getTrimmed().isEqual(i)?n:null}}_showFakeVisualSelection(){const e=this.editor.model;e.change((t=>{const i=e.document.selection.getFirstRange();if(e.markers.has(Se))t.updateMarker(Se,{range:i});else if(i.start.isAtEnd){const n=i.start.getLastMatchingPosition((({item:t})=>!e.schema.isContent(t)),{boundaries:i});t.addMarker(Se,{usingOperation:!1,affectsData:!1,range:t.createRange(n,i.end)})}else t.addMarker(Se,{usingOperation:!1,affectsData:!1,range:i})}))}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has(Se)&&e.change((e=>{e.removeMarker(Se)}))}}function Te(e){return e.getAncestors().find((e=>{return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))||null}const Le=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");class Ce extends e.Plugin{static get requires(){return[t.Delete,fe]}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(e,i){return i.textNode&&i.textNode.hasAttribute("linkHref")?(0,t.findAttributeRange)(i,"linkHref",i.textNode.getAttribute("linkHref"),e):null}_selectEntireLinks(e,t){const i=this.editor.model,n=i.document.selection,o=n.getFirstPosition(),s=n.getLastPosition();let r=t.getJoined(this._expandLinkRange(i,o)||t);r&&(r=r.getJoined(this._expandLinkRange(i,s)||t)),r&&(r.start.isBefore(o)||r.end.isAfter(s))&&e.setSelection(r)}_enablePasteLinking(){const e=this.editor,t=e.model,i=t.document.selection,n=e.plugins.get("ClipboardPipeline"),o=e.commands.get("link");n.on("inputTransformation",((e,n)=>{if(!this.isEnabled||!o.isEnabled||i.isCollapsed)return;if(i.rangeCount>1)return;const s=i.getFirstRange(),r=n.dataTransfer.getData("text/plain");if(!r)return;const a=r.match(Le);a&&a[2]===r&&(t.change((e=>{this._selectEntireLinks(e,s),o.execute(r)})),e.stop())}),{priority:"high"})}_enableTypingHandling(){const e=this.editor,i=new t.TextWatcher(e.model,(e=>{if(!function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e))return;const t=De(e.substr(0,e.length-1));return t?{url:t}:void 0}));i.on("matched:data",((t,i)=>{const{batch:n,range:o,url:s}=i;if(!n.isTyping)return;const r=o.end.getShiftedBy(-1),a=r.getShiftedBy(-s.length),c=e.model.createRange(a,r);this._applyAutoLink(s,c)})),i.bind("isEnabled").to(this)}_enableEnterHandling(){const e=this.editor,t=e.model,i=e.commands.get("enter");i&&i.on("execute",(()=>{const e=t.document.selection.getFirstPosition();if(!e.parent.previousSibling)return;const i=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(i)}))}_enableShiftEnterHandling(){const e=this.editor,t=e.model,i=e.commands.get("shiftEnter");i&&i.on("execute",(()=>{const e=t.document.selection.getFirstPosition(),i=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(i)}))}_checkAndApplyAutoLinkOnRange(e){const i=this.editor.model,{text:n,range:o}=(0,t.getLastTextLine)(e,i),s=De(n);if(s){const e=i.createRange(o.end.getShiftedBy(-s.length),o.end);this._applyAutoLink(s,e)}}_applyAutoLink(e,t){const i=this.editor.model,n=te(e,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,i)&&ie(n)&&!function(e){const t=e.start.nodeAfter;return!!t&&t.hasAttribute("linkHref")}(t)&&this._persistAutoLink(n,t)}_persistAutoLink(e,t){const i=this.editor.model,n=this.editor.plugins.get("Delete");i.enqueueChange((o=>{o.setAttribute("linkHref",e,t),i.enqueueChange((()=>{n.requestUndoOnBackspace()}))}))}}function De(e){const t=Le.exec(e);return t?t[2]:null}class Me extends e.Plugin{static get requires(){return[fe,Ee,Ce]}static get pluginName(){return"Link"}}class je extends e.Plugin{static get requires(){return["ImageEditing","ImageUtils",fe]}static get pluginName(){return"LinkImageEditing"}init(){const e=this.editor,t=e.model.schema;e.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["linkHref"]}),e.conversion.for("upcast").add(function(e){const t=e.plugins.has("ImageInlineEditing"),i=e.plugins.get("ImageUtils");return e=>{e.on("element:a",((e,n,o)=>{const s=n.viewItem,r=i.findViewImgElement(s);if(!r)return;const a=r.findAncestor((e=>i.isBlockImageView(e)));if(t&&!a)return;const c={attributes:["href"]};if(!o.consumable.consume(s,c))return;const l=s.getAttribute("href");if(!l)return;let u=n.modelCursor.parent;if(!u.is("element","imageBlock")){const e=o.convertItem(r,n.modelCursor);n.modelRange=e.modelRange,n.modelCursor=e.modelCursor,u=n.modelCursor.nodeBefore}u&&u.is("element","imageBlock")&&o.writer.setAttribute("linkHref",l,u)}),{priority:"high"})}}(e)),e.conversion.for("downcast").add(function(e){const t=e.plugins.get("ImageUtils");return e=>{e.on("attribute:linkHref:imageBlock",((e,i,n)=>{if(!n.consumable.consume(i.item,e.name))return;const o=n.mapper.toViewElement(i.item),s=n.writer,r=Array.from(o.getChildren()).find((e=>e.is("element","a"))),a=t.findViewImgElement(o),c=a.parent.is("element","picture")?a.parent:a;if(r)i.attributeNewValue?s.setAttribute("href",i.attributeNewValue,r):(s.move(s.createRangeOn(c),s.createPositionAt(o,0)),s.remove(r));else{const e=s.createContainerElement("a",{href:i.attributeNewValue});s.insert(s.createPositionAt(o,0),e),s.move(s.createRangeOn(c),s.createPositionAt(e,0))}}),{priority:"high"})}}(e)),this._enableAutomaticDecorators(),this._enableManualDecorators()}_enableAutomaticDecorators(){const e=this.editor,t=e.commands.get("link").automaticDecorators;t.length&&e.conversion.for("downcast").add(t.getDispatcherForLinkedImage())}_enableManualDecorators(){const e=this.editor,t=e.commands.get("link");for(const i of t.manualDecorators)e.plugins.has("ImageBlockEditing")&&e.model.schema.extend("imageBlock",{allowAttributes:i.id}),e.plugins.has("ImageInlineEditing")&&e.model.schema.extend("imageInline",{allowAttributes:i.id}),e.conversion.for("downcast").add(Be(i)),e.conversion.for("upcast").add(Ne(e,i))}}function Be(e){return t=>{t.on(`attribute:${e.id}:imageBlock`,((t,i,n)=>{const o=n.mapper.toViewElement(i.item),r=Array.from(o.getChildren()).find((e=>e.is("element","a")));if(r){for(const[t,i]of(0,s.toMap)(e.attributes))n.writer.setAttribute(t,i,r);e.classes&&n.writer.addClass(e.classes,r);for(const t in e.styles)n.writer.setStyle(t,e.styles[t],r)}}))}}function Ne(e,t){const i=e.plugins.has("ImageInlineEditing"),n=e.plugins.get("ImageUtils");return e=>{e.on("element:a",((e,o,s)=>{const r=o.viewItem,a=n.findViewImgElement(r);if(!a)return;const c=a.findAncestor((e=>n.isBlockImageView(e)));if(i&&!c)return;const l=new me.Matcher(t._createPattern()).match(r);if(!l)return;if(!s.consumable.consume(r,l.match))return;const u=o.modelCursor.nodeBefore||o.modelCursor.parent;s.writer.setAttribute(t.id,!0,u)}),{priority:"high"})}}class He extends e.Plugin{static get requires(){return[fe,Ee,"ImageBlockEditing"]}static get pluginName(){return"LinkImageUI"}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",((t,i)=>{this._isSelectedLinkedImage(e.model.document.selection)&&(i.preventDefault(),t.stop())}),{priority:"high"}),this._createToolbarLinkImageButton()}_createToolbarLinkImageButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("linkImage",(i=>{const n=new ge.ButtonView(i),o=e.plugins.get("LinkUI"),s=e.commands.get("link");return n.set({isEnabled:!0,label:t("Link image"),icon:Ve,keystroke:G,tooltip:!0,isToggleable:!0}),n.bind("isEnabled").to(s,"isEnabled"),n.bind("isOn").to(s,"value",(e=>!!e)),this.listenTo(n,"execute",(()=>{this._isSelectedLinkedImage(e.model.document.selection)?o._addActionsView():o._showUI(!0)})),n}))}_isSelectedLinkedImage(e){const t=e.getSelectedElement();return this.editor.plugins.get("ImageUtils").isImage(t)&&t.hasAttribute("linkHref")}}var Pe=i(883),Ue={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};le()(Pe.Z,Ue);Pe.Z.locals;class Oe extends e.Plugin{static get requires(){return[je,He]}static get pluginName(){return"LinkImage"}}})(),(window.CKEditor5=window.CKEditor5||{}).link=n})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/link/translations/ug.js b/core/assets/vendor/ckeditor5/link/translations/ug.js index 2f80f0cd17fe..7683d84b3817 100644 --- a/core/assets/vendor/ckeditor5/link/translations/ug.js +++ b/core/assets/vendor/ckeditor5/link/translations/ug.js @@ -1 +1 @@ -!function(n){const i=n.ug=n.ug||{};i.dictionary=Object.assign(i.dictionary||{},{Downloadable:"","Edit link":"",Link:"ئۇلانما","Link image":"","Link URL":"ئۇلاش ئادىرسى","Open in a new tab":"","Open link in new tab":"","This link has no URL":"",Unlink:"ئۇلانمىنى ئۈزۈش"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(n){const i=n.ug=n.ug||{};i.dictionary=Object.assign(i.dictionary||{},{Downloadable:"چۈشۈرۈشچان","Edit link":"ئۇلانما تەھرىر",Link:"ئۇلانما","Link image":"ئۇلانما سۈرەت","Link URL":"ئۇلاش ئادىرسى","Open in a new tab":"ÙŠÛÚÙ‰ بەتكۈچتە ئاچ","Open link in new tab":"ئۇلانمىنى ÙŠÛÚÙ‰ بەتكۈچتە ئاچ","This link has no URL":"بۇ Ø¦Û‡Ù„Ø§Ù†Ù…Ù‰Ù†Ù‰Ú ØªÙˆØ± ئادرÛسى يوق",Unlink:"ئۇلانمىنى ئۈزۈش"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/list/list.js b/core/assets/vendor/ckeditor5/list/list.js index 50392068fcc4..a794c52f65df 100644 --- a/core/assets/vendor/ckeditor5/list/list.js +++ b/core/assets/vendor/ckeditor5/list/list.js @@ -2,4 +2,4 @@ /*! * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. - */(()=>{var t={332:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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-spacing-medium) var(--ck-spacing-large);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:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}",""]);const r=s},118:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}",""]);const r=s},479:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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}",""]);const r=s},463:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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}",""]);const r=s},989:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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)}",""]);const r=s},528:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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}',""]);const r=s},609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=t(e);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(n)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(s[o]=!0)}for(var l=0;l<t.length;l++){var a=[].concat(t[l]);n&&s[a[0]]||(i&&(a[2]?a[2]="".concat(i," and ").concat(a[2]):a[2]=i),e.push(a))}},e}},62:(t,e,i)=>{"use strict";var n,s=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),o=[];function l(t){for(var e=-1,i=0;i<o.length;i++)if(o[i].identifier===t){e=i;break}return e}function a(t,e){for(var i={},n=[],s=0;s<t.length;s++){var r=t[s],a=e.base?r[0]+e.base:r[0],c=i[a]||0,d="".concat(a," ").concat(c);i[a]=c+1;var u=l(d),m={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(o[u].references++,o[u].updater(m)):o.push({identifier:d,updater:b(m,e),references:1}),n.push(d)}return n}function c(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var s=i.nc;s&&(n.nonce=s)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var o=r(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var d,u=(d=[],function(t,e){return d[t]=e,d.filter(Boolean).join("\n")});function m(t,e,i,n){var s=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=u(e,s);else{var r=document.createTextNode(s),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function p(t,e,i){var n=i.css,s=i.media,r=i.sourceMap;if(s?t.setAttribute("media",s):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var h=null,f=0;function b(t,e){var i,n,s;if(e.singleton){var r=f++;i=h||(h=c(e)),n=m.bind(null,i,r,!1),s=m.bind(null,i,r,!0)}else i=c(e),n=p.bind(null,i,e),s=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else s()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=s());var i=a(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var s=l(i[n]);o[s].references--}for(var r=a(t,e),c=0;c<i.length;c++){var d=l(i[c]);0===o[d].references&&(o[d].updater(),o.splice(d,1))}i=r}}}},945:(t,e,i)=>{t.exports=i(79)("./src/clipboard.js")},704:(t,e,i)=>{t.exports=i(79)("./src/core.js")},492:(t,e,i)=>{t.exports=i(79)("./src/engine.js")},331:(t,e,i)=>{t.exports=i(79)("./src/enter.js")},181:(t,e,i)=>{t.exports=i(79)("./src/typing.js")},273:(t,e,i)=>{t.exports=i(79)("./src/ui.js")},209:(t,e,i)=>{t.exports=i(79)("./src/utils.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{AdjacentListsSupport:()=>wt,DocumentList:()=>vt,DocumentListEditing:()=>tt,DocumentListIndentCommand:()=>S,DocumentListProperties:()=>Wt,DocumentListPropertiesEditing:()=>Mt,DocumentListPropertiesUtils:()=>Bt,DocumentListUtils:()=>V,IndentCommand:()=>Zt,List:()=>he,ListEditing:()=>me,ListProperties:()=>_e,ListPropertiesEditing:()=>ve,ListPropertiesUI:()=>$t,ListUI:()=>yt,ListUtils:()=>Qt,TodoDocumentList:()=>$e,TodoDocumentListEditing:()=>He,TodoList:()=>De,TodoListEditing:()=>ze,TodoListUI:()=>Be});var t=i(704),e=i(181),s=i(331),r=i(209);class o{constructor(t,e){this._startElement=t,this._referenceIndent=t.getAttribute("listIndent"),this._isForward="forward"==e.direction,this._includeSelf=!!e.includeSelf,this._sameAttributes=(0,r.toArray)(e.sameAttributes||[]),this._sameIndent=!!e.sameIndent,this._lowerIndent=!!e.lowerIndent,this._higherIndent=!!e.higherIndent}static first(t,e){const i=new this(t,e)[Symbol.iterator]();return(0,r.first)(i)}*[Symbol.iterator](){const t=[];for(const{node:e}of l(this._getStartNode(),this._isForward?"forward":"backward")){const i=e.getAttribute("listIndent");if(i<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=i}else if(i>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){t.push(e);continue}}else{if(!this._sameIndent){if(this._higherIndent){t.length&&(yield*t,t.length=0);break}continue}if(this._sameAttributes.some((t=>e.getAttribute(t)!==this._startElement.getAttribute(t))))break}t.length&&(yield*t,t.length=0),yield e}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*l(t,e="forward"){const i="forward"==e,n=[];let s=null;for(;d(t);){let e=null;if(s){const i=t.getAttribute("listIndent"),r=s.getAttribute("listIndent");i>r?n[r]=s:i<r?(e=n[i],n.length=i):e=s}yield{node:t,previous:s,previousNodeInList:e},s=t,t=i?t.nextSibling:t.previousSibling}}class a{constructor(t){this._listHead=t}[Symbol.iterator](){return l(this._listHead,"forward")}}class c{static next(){return(0,r.uid)()}}function d(t){return!!t&&t.is("element")&&t.hasAttribute("listItemId")}function u(t,e={}){return[...m(t,{...e,direction:"backward"}),...m(t,{...e,direction:"forward"})]}function m(t,e={}){const i="forward"==e.direction,n=Array.from(new o(t,{...e,includeSelf:i,sameIndent:!0,sameAttributes:"listItemId"}));return i?n:n.reverse()}function p(t){const e=new o(t,{sameIndent:!0,sameAttributes:"listType"}),i=new o(t,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward"});return[...Array.from(e).reverse(),...i]}function h(t){return!o.first(t,{sameIndent:!0,sameAttributes:"listItemId"})}function f(t){return!o.first(t,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function b(t,e={}){t=(0,r.toArray)(t);const i=!1!==e.withNested,n=new Set;for(const e of t)for(const t of u(e,{higherIndent:i}))n.add(t);return I(n)}function g(t){t=(0,r.toArray)(t);const e=new Set;for(const i of t)for(const t of p(i))e.add(t);return I(e)}function y(t,e){const i=m(t,{direction:"forward"}),n=c.next();for(const t of i)e.setAttribute("listItemId",n,t);return i}function v(t,e,i){const n={};for(const[t,i]of e.getAttributes())t.startsWith("list")&&(n[t]=i);const s=m(t,{direction:"forward"});for(const t of s)i.setAttributes(n,t);return s}function w(t,e,{expand:i,indentBy:n=1}={}){t=(0,r.toArray)(t);const s=i?b(t):t;for(const t of s){const i=t.getAttribute("listIndent")+n;i<0?A(t,e):e.setAttribute("listIndent",i,t)}return s}function A(t,e){t=(0,r.toArray)(t);for(const i of t)i.is("element","listItem")&&e.rename(i,"paragraph");for(const i of t)for(const t of i.getAttributeKeys())t.startsWith("list")&&e.removeAttribute(t,i);return t}function k(t){if(!t.length)return!1;const e=t[0].getAttribute("listItemId");return!!e&&!t.some((t=>t.getAttribute("listItemId")!=e))}function I(t){return Array.from(t).filter((t=>"$graveyard"!==t.root.rootName)).sort(((t,e)=>t.index-e.index))}function T(t){const e=t.document.selection.getSelectedElement();return e&&t.schema.isObject(e)&&t.schema.isBlock(e)?e:null}function _(t,e){return e.checkChild(t.parent,"listItem")&&e.checkChild(t,"$text")&&!e.isObject(t)}function x(t,e,i){return m(e,{direction:"forward"}).pop().index>t.index?v(t,e,i):[]}class S extends t.Command{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=C(t.document.selection);t.change((t=>{const i=[];k(e)&&!h(e[0])?("forward"==this._direction&&i.push(...w(e,t)),i.push(...y(e[0],t))):"forward"==this._direction?i.push(...w(e,t,{expand:!0})):i.push(...function(t,e){const i=b(t=(0,r.toArray)(t)),n=new Set,s=Math.min(...i.map((t=>t.getAttribute("listIndent")))),l=new Map;for(const t of i)l.set(t,o.first(t,{lowerIndent:!0}));for(const t of i){if(n.has(t))continue;n.add(t);const i=t.getAttribute("listIndent")-1;if(i<0)A(t,e);else{if(t.getAttribute("listIndent")==s){const i=x(t,l.get(t),e);for(const t of i)n.add(t);if(i.length)continue}e.setAttribute("listIndent",i,t)}}return I(n)}(e,t));for(const e of i){if(!e.hasAttribute("listType"))continue;const i=o.first(e,{sameIndent:!0});i&&t.setAttribute("listType",i.getAttribute("listType"),e)}this._fireAfterExecute(i)}))}_fireAfterExecute(t){this.fire("afterExecute",I(new Set(t)))}_checkEnabled(){let t=C(this.editor.model.document.selection),e=t[0];if(!e)return!1;if("backward"==this._direction)return!0;if(k(t)&&!h(t[0]))return!0;t=b(t),e=t[0];const i=o.first(e,{sameIndent:!0});return!!i&&i.getAttribute("listType")==e.getAttribute("listType")}}function C(t){const e=Array.from(t.getSelectedBlocks()),i=e.findIndex((t=>!d(t)));return-1!=i&&(e.length=i),e}class L extends t.Command{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,i=e.document,n=T(e),s=Array.from(i.selection.getSelectedBlocks()).filter((t=>e.schema.checkAttribute(t,"listType")||_(t,e.schema))),r=void 0!==t.forceValue?!t.forceValue:this.value;e.change((t=>{if(r){const e=s[s.length-1],i=m(e,{direction:"forward"}),n=[];i.length>1&&n.push(...y(i[1],t)),n.push(...A(s,t)),n.push(...function(t,e){const i=[];let n=Number.POSITIVE_INFINITY;for(const{node:s}of l(t.nextSibling,"forward")){const t=s.getAttribute("listIndent");if(0==t)break;t<n&&(n=t);const r=t-n;e.setAttribute("listIndent",r,s),i.push(s)}return i}(e,t)),this._fireAfterExecute(n)}else if((n||i.selection.isCollapsed)&&d(s[0])){const e=p(n||s[0]);for(const i of e)t.setAttribute("listType",this.type,i);this._fireAfterExecute(e)}else{const i=[];for(const n of s)if(n.hasAttribute("listType"))for(const e of b(n,{withNested:!1}))e.getAttribute("listType")!=this.type&&(t.setAttribute("listType",this.type,e),i.push(e));else!n.is("element","listItem")&&_(n,e.schema)&&t.rename(n,"listItem"),t.setAttributes({listIndent:0,listItemId:c.next(),listType:this.type},n),i.push(n);this._fireAfterExecute(i)}}))}_fireAfterExecute(t){this.fire("afterExecute",I(new Set(t)))}_getValue(){const t=this.editor.model.document.selection,e=Array.from(t.getSelectedBlocks());if(!e.length)return!1;for(const t of e)if(t.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const t=this.editor.model,e=t.schema,i=t.document.selection,n=Array.from(i.getSelectedBlocks());if(!n.length)return!1;if(this.value)return!0;for(const t of n)if(e.checkAttribute(t,"listType")||_(t,e))return!0;return!1}}class E extends t.Command{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:t=!1}={}){const e=this.editor.model,i=e.document.selection,n=[];e.change((s=>{const{firstElement:r,lastElement:l}=this._getMergeSubjectElements(i,t),a=r.getAttribute("listIndent")||0,c=l.getAttribute("listIndent"),d=l.getAttribute("listItemId");if(a!=c){const t=(u=l,Array.from(new o(u,{direction:"forward",higherIndent:!0})));n.push(...w([l,...t],s,{indentBy:a-c,expand:a<c}))}var u;if(t){let t=i;i.isCollapsed&&(t=s.createSelection(s.createRange(s.createPositionAt(r,"end"),s.createPositionAt(l,0)))),e.deleteContent(t,{doNotResetEntireContent:i.isCollapsed});const o=t.getLastPosition().parent,a=o.nextSibling;n.push(o),a&&a!==l&&a.getAttribute("listItemId")==d&&n.push(...v(a,o,s))}else n.push(...v(l,r,s));this._fireAfterExecute(n)}))}_fireAfterExecute(t){this.fire("afterExecute",I(new Set(t)))}_checkEnabled(){const t=this.editor.model,e=t.document.selection,i=T(t);if(e.isCollapsed||i){const t=i||e.getFirstPosition().parent;if(!d(t))return!1;const n="backward"==this._direction?t.previousSibling:t.nextSibling;if(!n)return!1;if(k([t,n]))return!1}else{const t=e.getLastPosition(),i=e.getFirstPosition();if(t.parent===i.parent)return!1;if(!d(t.parent))return!1}return!0}_getMergeSubjectElements(t,e){const i=T(this.editor.model);let n,s;if(t.isCollapsed||i){const r=i||t.getFirstPosition().parent,l=h(r);"backward"==this._direction?(s=r,n=l&&!e?o.first(r,{sameIndent:!0,lowerIndent:!0}):r.previousSibling):(n=r,s=r.nextSibling)}else n=t.getFirstPosition().parent,s=t.getLastPosition().parent;return{firstElement:n,lastElement:s}}}class P extends t.Command{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change((t=>{const e=y(this._getStartBlock(),t);this._fireAfterExecute(e)}))}_fireAfterExecute(t){this.fire("afterExecute",I(new Set(t)))}_checkEnabled(){const t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&d(e)&&!h(e)}_getStartBlock(){const t=this.editor.model.document.selection.getFirstPosition().parent;return"before"==this._direction?t:t.nextSibling}}class V extends t.Plugin{static get pluginName(){return"DocumentListUtils"}expandListBlocksToCompleteList(t){return g(t)}isFirstBlockOfListItem(t){return h(t)}isListItemBlock(t){return d(t)}expandListBlocksToCompleteItems(t,e={}){return b(t,e)}}var z=i(492);function B(t){return t.is("element","ol")||t.is("element","ul")}function N(t){return t.is("element","li")}function M(t,e,i,n=O(i,e)){return t.createAttributeElement(R(i),null,{priority:2*e/100-100,id:n})}function D(t,e,i){return t.createAttributeElement("li",null,{priority:(2*e+1)/100-100,id:i})}function R(t){return"numbered"==t?"ol":"ul"}function O(t,e){return`list-${t}-${e}`}function F(t,e){const i=t.nodeBefore;if(d(i)){let t=i;for(const{node:i}of l(t,"backward"))if(t=i,e.has(t))return;e.set(i,t)}else{const i=t.nodeAfter;d(i)&&e.set(i,i)}}function H(){return(t,e,i)=>{const{writer:n,schema:s}=i;if(!e.modelRange)return;const r=Array.from(e.modelRange.getItems({shallow:!0})).filter((t=>s.checkAttribute(t,"listItemId")));if(!r.length)return;const o=c.next(),l=function(t){let e=0,i=t.parent;for(;i;){if(N(i))e++;else{const t=i.previousSibling;t&&N(t)&&e++}i=i.parent}return e}(e.viewItem);let a=e.viewItem.parent&&e.viewItem.parent.is("element","ol")?"numbered":"bulleted";const d=r[0].getAttribute("listType");d&&(a=d);const u={listItemId:o,listIndent:l,listType:a};for(const t of r)t.hasAttribute("listItemId")||n.setAttributes(u,t);r.length>1&&r[1].getAttribute("listItemId")!=u.listItemId&&i.keepEmptyElement(r[0])}}function j(){return(t,e,i)=>{if(!i.consumable.test(e.viewItem,{name:!0}))return;const n=new z.UpcastWriter(e.viewItem.document);for(const t of Array.from(e.viewItem.getChildren()))N(t)||B(t)||n.remove(t)}}function U(t,e,i,{dataPipeline:n}={}){const s=function(t){return(e,i)=>{const n=[];for(const i of t)e.hasAttribute(i)&&n.push(`attribute:${i}`);return!!n.every((t=>!1!==i.test(e,t)))&&(n.forEach((t=>i.consume(e,t))),!0)}}(t);return(r,l,a)=>{const{writer:c,mapper:d,consumable:u}=a,m=l.item;if(!t.includes(l.attributeKey))return;if(!s(m,u))return;const p=function(t,e,i){const n=i.createRangeOn(t),s=e.toViewRange(n).getTrimmed();return s.end.nodeBefore}(m,d,i);!function(t,e,i){for(;t.parent.is("attributeElement")&&t.parent.getCustomProperty("listItemWrapper");)e.unwrap(e.createRangeIn(t.parent),t.parent);const n=e.createPositionBefore(t).getWalker({direction:"backward"}),s=[];for(const{item:t}of n){if(t.is("element")&&i.toModelElement(t))break;t.is("element")&&t.getCustomProperty("listItemMarker")&&s.push(t)}for(const t of s)e.remove(t)}(p,c,d),function(t,e){let i=t.parent;for(;i.is("attributeElement")&&["ul","ol","li"].includes(i.name);){const n=i.parent;e.unwrap(e.createRangeOn(t),i),i=n}}(p,c);const f=function(t,e,i,n,{dataPipeline:s}){let r=n.createRangeOn(e);if(!h(t))return r;for(const o of i){if("itemMarker"!=o.scope)continue;const i=o.createElement(n,t,{dataPipeline:s});if(!i)continue;if(n.setCustomProperty("listItemMarker",!0,i),n.insert(r.start,i),r=n.createRange(n.createPositionBefore(i),n.createPositionAfter(e)),!o.createWrapperElement||!o.canWrapElement)continue;const l=o.createWrapperElement(n,t,{dataPipeline:s});n.setCustomProperty("listItemWrapper",!0,l),o.canWrapElement(t)?r=n.wrap(r,l):(r=n.wrap(n.createRangeOn(i),l),r=n.createRange(r.start,n.createPositionAfter(e)))}return r}(m,p,e,c,{dataPipeline:n});!function(t,e,i,n){if(!t.hasAttribute("listIndent"))return;const s=t.getAttribute("listIndent");let r=t;for(let t=s;t>=0;t--){const s=D(n,t,r.getAttribute("listItemId")),l=M(n,t,r.getAttribute("listType"));for(const t of i)"list"!=t.scope&&"item"!=t.scope||!r.hasAttribute(t.attributeName)||t.setAttributeOnDowncast(n,r.getAttribute(t.attributeName),"list"==t.scope?l:s);if(e=n.wrap(e,s),e=n.wrap(e,l),0==t)break;if(r=o.first(r,{lowerIndent:!0}),!r)break}}(m,f,e,c)}}function K(t,{dataPipeline:e}={}){return(i,{writer:n})=>{if(!$(i,t))return null;if(!e)return n.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const s=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,s),s}}function $(t,e,i=u(t)){if(!d(t))return!1;for(const i of t.getAttributeKeys())if(!i.startsWith("selection:")&&!e.includes(i))return!1;return i.length<2}var q=i(945),W=i(62),Z=i.n(W),G=i(118),Y={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(G.Z,Y);G.Z.locals;var J=i(479),Q={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(J.Z,Q);J.Z.locals;const X=["listType","listIndent","listItemId"];class tt extends t.Plugin{static get pluginName(){return"DocumentListEditing"}static get requires(){return[s.Enter,e.Delete,V,q.ClipboardPipeline]}constructor(t){super(t),this._downcastStrategies=[],t.config.define("list.multiBlock",!0)}init(){const t=this.editor,e=t.model,i=t.config.get("list.multiBlock");if(t.plugins.has("ListEditing"))throw new r.CKEditorError("document-list-feature-conflict",this,{conflictPlugin:"ListEditing"});e.schema.register("$listItem",{allowAttributes:X}),i?(e.schema.extend("$container",{allowAttributesOf:"$listItem"}),e.schema.extend("$block",{allowAttributesOf:"$listItem"}),e.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):e.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const t of X)e.schema.setAttributeProperties(t,{copyOnReplace:!0});t.commands.add("numberedList",new L(t,"numbered")),t.commands.add("bulletedList",new L(t,"bulleted")),t.commands.add("indentList",new S(t,"forward")),t.commands.add("outdentList",new S(t,"backward")),t.commands.add("splitListItemBefore",new P(t,"before")),t.commands.add("splitListItemAfter",new P(t,"after")),i&&(t.commands.add("mergeListItemBackward",new E(t,"backward")),t.commands.add("mergeListItemForward",new E(t,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration()}afterInit(){const t=this.editor.commands,e=t.get("indent"),i=t.get("outdent");e&&e.registerChildCommand(t.get("indentList"),{priority:"high"}),i&&i.registerChildCommand(t.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(t){this._downcastStrategies.push(t)}getListAttributeNames(){return[...X,...this._downcastStrategies.map((t=>t.attributeName))]}_setupDeleteIntegration(){const t=this.editor,e=t.commands.get("mergeListItemBackward"),i=t.commands.get("mergeListItemForward");this.listenTo(t.editing.view.document,"delete",((n,s)=>{const r=t.model.document.selection;T(t.model)||t.model.change((()=>{const l=r.getFirstPosition();if(r.isCollapsed&&"backward"==s.direction){if(!l.isAtStart)return;const i=l.parent;if(!d(i))return;if(o.first(i,{sameAttributes:"listType",sameIndent:!0})||0!==i.getAttribute("listIndent")){if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:et(t.model,"backward")})}else f(i)||t.execute("splitListItemAfter"),t.execute("outdentList");s.preventDefault(),n.stop()}else{if(r.isCollapsed&&!r.getLastPosition().isAtEnd)return;if(!i||!i.isEnabled)return;i.execute({shouldMergeOnBlocksContentLevel:et(t.model,"forward")}),s.preventDefault(),n.stop()}}))}),{context:"li"})}_setupEnterIntegration(){const t=this.editor,e=t.model,i=t.commands,n=i.get("enter");this.listenTo(t.editing.view.document,"enter",((i,n)=>{const s=e.document,r=s.selection.getFirstPosition().parent;if(s.selection.isCollapsed&&d(r)&&r.isEmpty&&!n.isSoft){const e=h(r),s=f(r);e&&s?(t.execute("outdentList"),n.preventDefault(),i.stop()):e&&!s?(t.execute("splitListItemAfter"),n.preventDefault(),i.stop()):s&&(t.execute("splitListItemBefore"),n.preventDefault(),i.stop())}}),{context:"li"}),this.listenTo(n,"afterExecute",(()=>{const e=i.get("splitListItemBefore");if(e.refresh(),!e.isEnabled)return;2===u(t.model.document.selection.getLastPosition().parent).length&&e.execute()}))}_setupTabIntegration(){const t=this.editor;this.listenTo(t.editing.view.document,"tab",((e,i)=>{const n=i.shiftKey?"outdentList":"indentList";this.editor.commands.get(n).isEnabled&&(t.execute(n),i.stopPropagation(),i.preventDefault(),e.stop())}),{context:"li"})}_setupConversion(){const t=this.editor,e=t.model,i=this.getListAttributeNames(),n=t.config.get("list.multiBlock"),s=n?"paragraph":"listItem";t.conversion.for("upcast").elementToElement({view:"li",model:(t,{writer:e})=>e.createElement(s,{listType:""})}).elementToElement({view:"p",model:(t,{writer:e})=>t.parent&&t.parent.is("element","li")?e.createElement(s,{listType:""}):null,converterPriority:"high"}).add((t=>{t.on("element:li",H()),t.on("element:ul",j(),{priority:"high"}),t.on("element:ol",j(),{priority:"high"})})),n||t.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),t.conversion.for("editingDowncast").elementToElement({model:s,view:K(i),converterPriority:"high"}).add((t=>{t.on("attribute",U(i,this._downcastStrategies,e))})),t.conversion.for("dataDowncast").elementToElement({model:s,view:K(i,{dataPipeline:!0}),converterPriority:"high"}).add((t=>{t.on("attribute",U(i,this._downcastStrategies,e,{dataPipeline:!0}))})),this.listenTo(e.document,"change:data",function(t,e,i,n){return()=>{const n=t.document.differ.getChanges(),o=[],l=new Map,a=new Set;for(const t of n)if("insert"==t.type&&"$text"!=t.name)F(t.position,l),t.attributes.has("listItemId")?a.add(t.position.nodeAfter):F(t.position.getShiftedBy(t.length),l);else if("remove"==t.type&&t.attributes.has("listItemId"))F(t.position,l);else if("attribute"==t.type){const e=t.range.start.nodeAfter;i.includes(t.attributeKey)?(F(t.range.start,l),null===t.attributeNewValue?(F(t.range.start.getShiftedBy(1),l),r(e)&&o.push(e)):a.add(e)):d(e)&&r(e)&&o.push(e)}for(const t of l.values())o.push(...s(t,a));for(const t of new Set(o))e.reconvertItem(t)};function s(t,e){const n=[],s=new Set,a=[];for(const{node:c,previous:d}of l(t,"forward")){if(s.has(c))continue;const t=c.getAttribute("listIndent");d&&t<d.getAttribute("listIndent")&&(a.length=t+1),a[t]=Object.fromEntries(Array.from(c.getAttributes()).filter((([t])=>i.includes(t))));const l=m(c,{direction:"forward"});for(const t of l)s.add(t),(r(t,l)||o(t,a,e))&&n.push(t)}return n}function r(t,s){const r=e.mapper.toViewElement(t);if(!r)return!1;if(n.fire("checkElement",{modelElement:t,viewElement:r}))return!0;if(!t.is("element","paragraph")&&!t.is("element","listItem"))return!1;const o=$(t,i,s);return!(!o||!r.is("element","p"))||!(o||!r.is("element","span"))}function o(t,i,s){if(s.has(t))return!1;const r=e.mapper.toViewElement(t);let o=i.length-1;for(let t=r.parent;!t.is("editableElement");t=t.parent){const e=N(t),s=B(t);if(!s&&!e)continue;const r="checkAttributes:"+(e?"item":"list");if(n.fire(r,{viewElement:t,modelAttributes:i[o]}))break;if(s&&(o--,o<0))return!1}return!0}}(e,t.editing,i,this),{priority:"high"}),this.on("checkAttributes:item",((t,{viewElement:e,modelAttributes:i})=>{e.id!=i.listItemId&&(t.return=!0,t.stop())})),this.on("checkAttributes:list",((t,{viewElement:e,modelAttributes:i})=>{e.name==R(i.listType)&&e.id==O(i.listType,i.listIndent)||(t.return=!0,t.stop())}))}_setupModelPostFixing(){const t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer((i=>function(t,e,i,n){const s=t.document.differ.getChanges(),r=new Map,o=n.editor.config.get("list.multiBlock");let l=!1;for(const n of s){if("insert"==n.type&&"$text"!=n.name){const s=n.position.nodeAfter;if(!t.schema.checkAttribute(s,"listItemId"))for(const t of Array.from(s.getAttributeKeys()))i.includes(t)&&(e.removeAttribute(t,s),l=!0);F(n.position,r),n.attributes.has("listItemId")||F(n.position.getShiftedBy(n.length),r);for(const{item:e,previousPosition:i}of t.createRangeIn(s))d(e)&&F(i,r)}else"remove"==n.type?F(n.position,r):"attribute"==n.type&&i.includes(n.attributeKey)&&(F(n.range.start,r),null===n.attributeNewValue&&F(n.range.start.getShiftedBy(1),r));if(!o&&"attribute"==n.type&&X.includes(n.attributeKey)){const t=n.range.start.nodeAfter;null===n.attributeNewValue&&t&&t.is("element","listItem")?(e.rename(t,"paragraph"),l=!0):null===n.attributeOldValue&&t&&t.is("element")&&"listItem"!=t.name&&(e.rename(t,"listItem"),l=!0)}}const c=new Set;for(const t of r.values())l=n.fire("postFixer",{listNodes:new a(t),listHead:t,writer:e,seenIds:c})||l;return l}(t,i,e,this))),this.on("postFixer",((t,{listNodes:e,writer:i})=>{t.return=function(t,e){let i=0,n=-1,s=null,r=!1;for(const{node:o}of t){const t=o.getAttribute("listIndent");if(t>i){let l;null===s?(s=t-i,l=i):(s>t&&(s=t),l=t-s),l>n+1&&(l=n+1),e.setAttribute("listIndent",l,o),r=!0,n=l}else s=null,i=t+1,n=t}return r}(e,i)||t.return}),{priority:"high"}),this.on("postFixer",((t,{listNodes:e,writer:i,seenIds:n})=>{t.return=function(t,e,i){const n=new Set;let s=!1;for(const{node:r}of t){if(n.has(r))continue;let t=r.getAttribute("listType"),o=r.getAttribute("listItemId");if(e.has(o)&&(o=c.next()),e.add(o),r.is("element","listItem"))r.getAttribute("listItemId")!=o&&(i.setAttribute("listItemId",o,r),s=!0);else for(const e of m(r,{direction:"forward"}))n.add(e),e.getAttribute("listType")!=t&&(o=c.next(),t=e.getAttribute("listType")),e.getAttribute("listItemId")!=o&&(i.setAttribute("listItemId",o,e),s=!0)}return s}(e,n,i)||t.return}),{priority:"high"})}_setupClipboardIntegration(){const t=this.editor.model,e=this.editor.plugins.get("ClipboardPipeline");this.listenTo(t,"insertContent",function(t){return(e,[i,n])=>{const s=i.is("documentFragment")?Array.from(i.getChildren()):[i];if(!s.length)return;const r=(n?t.createSelection(n):t.document.selection).getFirstPosition();let o;if(d(r.parent))o=r.parent;else{if(!d(r.nodeBefore))return;o=r.nodeBefore}t.change((t=>{const e=o.getAttribute("listType"),i=o.getAttribute("listIndent"),n=s[0].getAttribute("listIndent")||0,r=Math.max(i-n,0);for(const i of s){const n=d(i);o.is("element","listItem")&&i.is("element","paragraph")&&t.rename(i,"listItem"),t.setAttributes({listIndent:(n?i.getAttribute("listIndent"):0)+r,listItemId:n?i.getAttribute("listItemId"):c.next(),listType:e},i)}}))}}(t),{priority:"high"}),this.listenTo(e,"outputTransformation",((e,i)=>{t.change((t=>{const e=Array.from(i.content.getChildren()),n=e[e.length-1];if(e.length>1&&n.is("element")&&n.isEmpty){e.slice(0,-1).every(d)&&t.remove(n)}if("copy"==i.method||"cut"==i.method){const e=Array.from(i.content.getChildren());k(e)&&A(e,t)}}))}))}}function et(t,e){const i=t.document.selection;if(!i.isCollapsed)return!T(t);if("forward"===e)return!0;const n=i.getFirstPosition().parent,s=n.previousSibling;return!t.schema.isObject(s)&&(!!s.isEmpty||k([n,s]))}var it=i(273);function nt(t,e){const i=e.mapper,n=e.writer,s="numbered"==t.getAttribute("listType")?"ol":"ul",r=function(t){const e=t.createContainerElement("li");return e.getFillerOffset=ft,e}(n),o=n.createContainerElement(s,null);return n.insert(n.createPositionAt(o,0),r),i.bindElements(t,r),r}function st(t,e,i,n){const s=e.parent,r=i.mapper,o=i.writer;let l=r.toViewPosition(n.createPositionBefore(t));const a=lt(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),c=t.previousSibling;if(a&&a.getAttribute("listIndent")==t.getAttribute("listIndent")){const t=r.toViewElement(a);l=o.breakContainer(o.createPositionAfter(t))}else if(c&&"listItem"==c.name){l=r.toViewPosition(n.createPositionAt(c,"end"));const t=r.findMappedViewAncestor(l),e=ct(t);l=e?o.createPositionBefore(e):o.createPositionAt(t,"end")}else l=r.toViewPosition(n.createPositionBefore(t));if(l=ot(l),o.insert(l,s),c&&"listItem"==c.name){const t=r.toViewElement(c),i=o.createRange(o.createPositionAt(t,0),l).getWalker({ignoreElementEnd:!0});for(const t of i)if(t.item.is("element","li")){const n=o.breakContainer(o.createPositionBefore(t.item)),s=t.item.parent,r=o.createPositionAt(e,"end");rt(o,r.nodeBefore,r.nodeAfter),o.move(o.createRangeOn(s),r),i._position=n}}else{const i=s.nextSibling;if(i&&(i.is("element","ul")||i.is("element","ol"))){let n=null;for(const e of i.getChildren()){const i=r.toModelElement(e);if(!(i&&i.getAttribute("listIndent")>t.getAttribute("listIndent")))break;n=e}n&&(o.breakContainer(o.createPositionAfter(n)),o.move(o.createRangeOn(n.parent),o.createPositionAt(e,"end")))}}rt(o,s,s.nextSibling),rt(o,s.previousSibling,s)}function rt(t,e,i){return!e||!i||"ul"!=e.name&&"ol"!=e.name||e.name!=i.name||e.getAttribute("class")!==i.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function ot(t){return t.getLastMatchingPosition((t=>t.item.is("uiElement")))}function lt(t,e){const i=!!e.sameIndent,n=!!e.smallerIndent,s=e.listIndent;let r=t;for(;r&&"listItem"==r.name;){const t=r.getAttribute("listIndent");if(i&&s==t||n&&s>t)return r;r="forward"===e.direction?r.nextSibling:r.previousSibling}return null}function at(t,e,i,n){t.ui.componentFactory.add(e,(s=>{const r=t.commands.get(e),o=new it.ButtonView(s);return o.set({label:i,icon:n,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),o.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),o}))}function ct(t){for(const e of t.getChildren())if("ul"==e.name||"ol"==e.name)return e;return null}function dt(t,e){const i=[],n=t.parent,s={ignoreElementEnd:!1,startPosition:t,shallow:!0,direction:e},r=n.getAttribute("listIndent"),o=[...new z.TreeWalker(s)].filter((t=>t.item.is("element"))).map((t=>t.item));for(const t of o){if(!t.is("element","listItem"))break;if(t.getAttribute("listIndent")<r)break;if(!(t.getAttribute("listIndent")>r)){if(t.getAttribute("listType")!==n.getAttribute("listType"))break;if(t.getAttribute("listStyle")!==n.getAttribute("listStyle"))break;if(t.getAttribute("listReversed")!==n.getAttribute("listReversed"))break;if(t.getAttribute("listStart")!==n.getAttribute("listStart"))break;"backward"===e?i.unshift(t):i.push(t)}}return i}function ut(t){let e=[...t.document.selection.getSelectedBlocks()].filter((t=>t.is("element","listItem"))).map((e=>{const i=t.change((t=>t.createPositionAt(e,0)));return[...dt(i,"backward"),...dt(i,"forward")]})).flat();return e=[...new Set(e)],e}const mt=["disc","circle","square"],pt=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function ht(t){return mt.includes(t)?"bulleted":pt.includes(t)?"numbered":null}function ft(){const t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:z.getFillerOffset.call(this)}const bt='<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>',gt='<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 yt extends t.Plugin{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;at(this.editor,"numberedList",t("Numbered List"),bt),at(this.editor,"bulletedList",t("Bulleted List"),gt)}}class vt extends t.Plugin{static get requires(){return[tt,yt]}static get pluginName(){return"DocumentList"}}class wt extends t.Plugin{static get pluginName(){return"AdjacentListsSupport"}init(){const t=this.editor;t.model.schema.register("listSeparator",{allowWhere:"$block",isBlock:!0}),t.conversion.for("upcast").add((t=>{t.on("element:ol",At()),t.on("element:ul",At())})).elementToElement({model:"listSeparator",view:"ck-list-separator"}),t.conversion.for("editingDowncast").elementToElement({model:"listSeparator",view:{name:"div",classes:["ck-list-separator","ck-hidden"]}}),t.conversion.for("dataDowncast").elementToElement({model:"listSeparator",view:(t,e)=>{const i=e.writer.createContainerElement("ck-list-separator");return e.writer.setCustomProperty("dataPipeline:transparentRendering",!0,i),i.getFillerOffset=()=>null,i}})}}function At(){return(t,e,i)=>{const n=e.viewItem,s=n.nextSibling;if(!s)return;if(n.name!==s.name)return;e.modelRange||Object.assign(e,i.convertChildren(e.viewItem,e.modelCursor));const r=i.writer,o=r.createElement("listSeparator");if(!i.safeInsert(o,e.modelCursor))return;const l=i.getSplitParts(o);e.modelRange=r.createRange(e.modelRange.start,r.createPositionAfter(l[l.length-1])),i.updateConversionResult(o,e)}}class kt extends t.Command{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute({startIndex:t=1}={}){const e=this.editor.model,i=e.document;let n=Array.from(i.selection.getSelectedBlocks()).filter((t=>d(t)&&"numbered"==t.getAttribute("listType")));n=g(n),e.change((e=>{for(const i of n)e.setAttribute("listStart",t>=0?t:1,i)}))}_getValue(){const t=this.editor.model.document,e=(0,r.first)(t.selection.getSelectedBlocks());return e&&d(e)&&"numbered"==e.getAttribute("listType")?e.getAttribute("listStart"):null}}const It={},Tt={},_t={},xt=[{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:t,typeAttribute:e,listType:i}of xt)It[t]=i,Tt[t]=e,e&&(_t[e]=t);function St(){return xt.map((t=>t.listStyle))}function Ct(t){return It[t]||null}function Lt(t){return _t[t]||null}function Et(t){return Tt[t]||null}class Pt extends t.Command{constructor(t,e,i){super(t),this.defaultType=e,this._supportedTypes=i}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,i=e.document;e.change((e=>{this._tryToConvertItemsToList(t);let n=Array.from(i.selection.getSelectedBlocks()).filter((t=>t.hasAttribute("listType")));if(n.length){n=g(n);for(const i of n)e.setAttribute("listStyle",t.type||this.defaultType,i)}}))}isStyleTypeSupported(t){return!this._supportedTypes||this._supportedTypes.includes(t)}_getValue(){const t=(0,r.first)(this.editor.model.document.selection.getSelectedBlocks());return d(t)?t.getAttribute("listStyle"):null}_checkEnabled(){const t=this.editor,e=t.commands.get("numberedList"),i=t.commands.get("bulletedList");return e.isEnabled||i.isEnabled}_tryToConvertItemsToList(t){if(!t.type)return;const e=Ct(t.type);if(!e)return;const i=this.editor,n=`${e}List`;i.commands.get(n).value||i.execute(n)}}class Vt extends t.Command{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute(t={}){const e=this.editor.model,i=e.document;let n=Array.from(i.selection.getSelectedBlocks()).filter((t=>d(t)&&"numbered"==t.getAttribute("listType")));n=g(n),e.change((e=>{for(const i of n)e.setAttribute("listReversed",!!t.reversed,i)}))}_getValue(){const t=this.editor.model.document,e=(0,r.first)(t.selection.getSelectedBlocks());return d(e)&&"numbered"==e.getAttribute("listType")?e.getAttribute("listReversed"):null}}function zt(t){return(e,i,n)=>{const{writer:s,schema:r,consumable:o}=n;if(!1===o.test(i.viewItem,t.viewConsumables))return;i.modelRange||Object.assign(i,n.convertChildren(i.viewItem,i.modelCursor));let l=!1;for(const e of i.modelRange.getItems({shallow:!0}))r.checkAttribute(e,t.attributeName)&&t.appliesToListItem(e)&&(e.hasAttribute(t.attributeName)||(s.setAttribute(t.attributeName,t.getAttributeOnUpcast(i.viewItem),e),l=!0));l&&o.consume(i.viewItem,t.viewConsumables)}}class Bt extends t.Plugin{static get pluginName(){return"DocumentListPropertiesUtils"}getAllSupportedStyleTypes(){return St()}getListTypeFromListStyleType(t){return Ct(t)}getListStyleTypeFromTypeAttribute(t){return Lt(t)}getTypeAttributeFromListStyleType(t){return Et(t)}}const Nt="default";class Mt extends t.Plugin{static get requires(){return[tt,Bt]}static get pluginName(){return"DocumentListPropertiesEditing"}constructor(t){super(t),t.config.define("list.properties",{styles:!0,startIndex:!1,reversed:!1})}init(){const t=this.editor,e=t.model,i=t.plugins.get(tt),n=function(t){const e=[];if(t.styles){const i="object"==typeof t.styles&&t.styles.useAttribute;e.push({attributeName:"listStyle",defaultValue:Nt,viewConsumables:{styles:"list-style-type"},addCommand(t){let e=St();i&&(e=e.filter((t=>!!Et(t)))),t.commands.add("listStyle",new Pt(t,Nt,e))},appliesToListItem:t=>"numbered"==t.getAttribute("listType")||"bulleted"==t.getAttribute("listType"),hasValidAttribute(t){if(!this.appliesToListItem(t))return!t.hasAttribute("listStyle");if(!t.hasAttribute("listStyle"))return!1;const e=t.getAttribute("listStyle");return e==Nt||Ct(e)==t.getAttribute("listType")},setAttributeOnDowncast(t,e,n){if(e&&e!==Nt){if(!i)return void t.setStyle("list-style-type",e,n);{const i=Et(e);if(i)return void t.setAttribute("type",i,n)}}t.removeStyle("list-style-type",n),t.removeAttribute("type",n)},getAttributeOnUpcast(t){const e=t.getStyle("list-style-type");if(e)return e;const i=t.getAttribute("type");return i?Lt(i):Nt}})}t.reversed&&e.push({attributeName:"listReversed",defaultValue:!1,viewConsumables:{attributes:"reversed"},addCommand(t){t.commands.add("listReversed",new Vt(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),hasValidAttribute(t){return this.appliesToListItem(t)==t.hasAttribute("listReversed")},setAttributeOnDowncast(t,e,i){e?t.setAttribute("reversed","reversed",i):t.removeAttribute("reversed",i)},getAttributeOnUpcast:t=>t.hasAttribute("reversed")});t.startIndex&&e.push({attributeName:"listStart",defaultValue:1,viewConsumables:{attributes:"start"},addCommand(t){t.commands.add("listStart",new kt(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),hasValidAttribute(t){return this.appliesToListItem(t)==t.hasAttribute("listStart")},setAttributeOnDowncast(t,e,i){0==e||e>1?t.setAttribute("start",e,i):t.removeAttribute("start",i)},getAttributeOnUpcast(t){const e=t.getAttribute("start");return e>=0?e:1}});return e}(t.config.get("list.properties"));for(const s of n)s.addCommand(t),e.schema.extend("$listItem",{allowAttributes:s.attributeName}),i.registerDowncastStrategy({scope:"list",attributeName:s.attributeName,setAttributeOnDowncast(t,e,i){s.setAttributeOnDowncast(t,e,i)}});t.conversion.for("upcast").add((t=>{for(const e of n)t.on("element:ol",zt(e)),t.on("element:ul",zt(e))})),i.on("checkAttributes:list",((t,{viewElement:e,modelAttributes:i})=>{for(const s of n)s.getAttributeOnUpcast(e)!=i[s.attributeName]&&(t.return=!0,t.stop())})),this.listenTo(t.commands.get("indentList"),"afterExecute",((t,i)=>{e.change((t=>{for(const e of i)for(const i of n)i.appliesToListItem(e)&&t.setAttribute(i.attributeName,i.defaultValue,e)}))})),i.on("postFixer",((t,{listNodes:e,writer:i})=>{for(const{node:s}of e)for(const e of n)e.hasValidAttribute(s)||(e.appliesToListItem(s)?i.setAttribute(e.attributeName,e.defaultValue,s):i.removeAttribute(e.attributeName,s),t.return=!0)})),i.on("postFixer",((t,{listNodes:e,writer:i})=>{for(const{node:s,previousNodeInList:r}of e)if(r&&r.getAttribute("listType")==s.getAttribute("listType"))for(const e of n){const{attributeName:n}=e;if(!e.appliesToListItem(s))continue;const o=r.getAttribute(n);s.getAttribute(n)!=o&&(i.setAttribute(n,o,s),t.return=!0)}}))}}var Dt=i(332),Rt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(Dt.Z,Rt);Dt.Z.locals;class Ot extends it.View{constructor(t,e){super(t);const i=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",i.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:i.if("isCollapsed","hidden"),"aria-labelledby":i.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}_createButtonView(){const t=new it.ButtonView(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:'<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>'}),t.extendTemplate({attributes:{"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("label").to(this),t.bind("isOn").to(this,"isCollapsed",(t=>!t)),t.on("execute",(()=>{this.isCollapsed=!this.isCollapsed})),t}}var Ft=i(463),Ht={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(Ft.Z,Ht);Ft.Z.locals;class jt extends it.View{constructor(t,{enabledProperties:e,styleButtonViews:i,styleGridAriaLabel:n}){super(t),this.stylesView=null,this.additionalPropertiesCollapsibleView=null,this.startIndexFieldView=null,this.reversedSwitchButtonView=null,this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this.focusables=new it.ViewCollection;const s=["ck","ck-list-properties"];this.children=this.createCollection(),this.focusCycler=new it.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),e.styles?(this.stylesView=this._createStylesView(i,n),this.children.add(this.stylesView)):s.push("ck-list-properties_without-styles"),(e.startIndex||e.reversed)&&(this._addNumberedListPropertyViews(e),s.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:s},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element),(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element));for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,it.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>r.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createStylesView(t,e){const i=new it.View(this.locale);return i.children=i.createCollection(),i.children.addMany(t),i.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-list-styles-list"]},children:i.children}),i.children.delegate("execute").to(this),i.focus=function(){this.children.first.focus()},i.focusTracker=new r.FocusTracker,i.keystrokes=new r.KeystrokeHandler,i.render(),i.keystrokes.listenTo(i.element),i}_addNumberedListPropertyViews(t){const e=this.locale.t,i=[];t.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),i.push(this.startIndexFieldView)),t.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),i.push(this.reversedSwitchButtonView)),t.styles?(this.additionalPropertiesCollapsibleView=new Ot(this.locale,i),this.additionalPropertiesCollapsibleView.set({label:e("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(i,"isEnabled",((...t)=>t.some((t=>t)))),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",((t,e,i)=>{i||(this.additionalPropertiesCollapsibleView.isCollapsed=!0)})),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(i)}_createStartIndexField(){const t=this.locale.t,e=new it.LabeledFieldView(this.locale,it.createLabeledInputNumber);return e.set({label:t("Start at"),class:"ck-numbered-list-properties__start-index"}),e.fieldView.set({min:0,step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",(()=>{const i=e.fieldView.element,n=i.valueAsNumber;Number.isNaN(n)||(i.checkValidity()?this.fire("listStart",{startIndex:n}):e.errorText=t("Start index must be greater than 0."))})),e}_createReversedSwitchButton(){const t=this.locale.t,e=new it.SwitchButtonView(this.locale);return e.set({withText:!0,label:t("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),e.delegate("execute").to(this,"listReversed"),e}}var Ut=i(989),Kt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(Ut.Z,Kt);Ut.Z.locals;class $t extends t.Plugin{static get pluginName(){return"ListPropertiesUI"}init(){const t=this.editor,e=t.locale.t,i=t.config.get("list.properties");i.styles&&t.ui.componentFactory.add("bulletedList",qt({editor:t,parentCommandName:"bulletedList",buttonLabel:e("Bulleted List"),buttonIcon:gt,styleGridAriaLabel:e("Bulleted list styles toolbar"),styleDefinitions:[{label:e("Toggle the disc list style"),tooltip:e("Disc"),type:"disc",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>'},{label:e("Toggle the circle list style"),tooltip:e("Circle"),type:"circle",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>'},{label:e("Toggle the square list style"),tooltip:e("Square"),type:"square",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"/></svg>'}]})),(i.styles||i.startIndex||i.reversed)&&t.ui.componentFactory.add("numberedList",qt({editor:t,parentCommandName:"numberedList",buttonLabel:e("Numbered List"),buttonIcon:bt,styleGridAriaLabel:e("Numbered list styles toolbar"),styleDefinitions:[{label:e("Toggle the decimal list style"),tooltip:e("Decimal"),type:"decimal",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.16.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>'},{label:e("Toggle the decimal with leading zero list style"),tooltip:e("Decimal with leading zero"),type:"decimal-leading-zero",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the lower–roman list style"),tooltip:e("Lower–roman"),type:"lower-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the upper–roman list style"),tooltip:e("Upper-roman"),type:"upper-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the lower–latin list style"),tooltip:e("Lower-latin"),type:"lower-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the upper–latin list style"),tooltip:e("Upper-latin"),type:"upper-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z"/></svg>'}]}))}}function qt({editor:t,parentCommandName:e,buttonLabel:i,buttonIcon:n,styleGridAriaLabel:s,styleDefinitions:r}){const o=t.commands.get(e);return l=>{const a=(0,it.createDropdown)(l,it.SplitButtonView),c=a.buttonView;return a.bind("isEnabled").to(o),a.class="ck-list-styles-dropdown",c.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),c.set({label:i,icon:n,tooltip:!0,isToggleable:!0}),c.bind("isOn").to(o,"value",(t=>!!t)),a.once("change:isOpen",(()=>{const i=function({editor:t,dropdownView:e,parentCommandName:i,styleDefinitions:n,styleGridAriaLabel:s}){const r=t.locale,o=t.config.get("list.properties");let l=null;"numberedList"!=i&&(o.startIndex=!1,o.reversed=!1);if(o.styles){const e=t.commands.get("listStyle"),s=function({editor:t,listStyleCommand:e,parentCommandName:i}){const n=t.locale,s=t.commands.get(i);return({label:i,type:r,icon:o,tooltip:l})=>{const a=new it.ButtonView(n);return a.set({label:i,icon:o,tooltip:l}),e.on("change:value",(()=>{a.isOn=e.value===r})),a.on("execute",(()=>{s.value?e.value!==r?t.execute("listStyle",{type:r}):t.execute("listStyle",{type:e.defaultType}):t.model.change((()=>{t.execute("listStyle",{type:r})}))})),a}}({editor:t,parentCommandName:i,listStyleCommand:e}),r="function"==typeof e.isStyleTypeSupported?t=>e.isStyleTypeSupported(t.type):()=>!0;l=n.filter(r).map(s)}const a=new jt(r,{styleGridAriaLabel:s,enabledProperties:o,styleButtonViews:l});o.styles&&(0,it.focusChildOnDropdownOpen)(e,(()=>a.stylesView.children.find((t=>t.isOn))));if(o.startIndex){const e=t.commands.get("listStart");a.startIndexFieldView.bind("isEnabled").to(e),a.startIndexFieldView.fieldView.bind("value").to(e),a.on("listStart",((e,i)=>t.execute("listStart",i)))}if(o.reversed){const e=t.commands.get("listReversed");a.reversedSwitchButtonView.bind("isEnabled").to(e),a.reversedSwitchButtonView.bind("isOn").to(e,"value",(t=>!!t)),a.on("listReversed",(()=>{const i=e.value;t.execute("listReversed",{reversed:!i})}))}return a.delegate("execute").to(e),a}({editor:t,dropdownView:a,parentCommandName:e,styleGridAriaLabel:s,styleDefinitions:r});a.panelView.children.add(i)})),a.on("execute",(()=>{t.editing.view.focus()})),a}}class Wt extends t.Plugin{static get requires(){return[Mt,$t]}static get pluginName(){return"DocumentListProperties"}}class Zt extends t.Command{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let i=Array.from(e.selection.getSelectedBlocks());t.change((t=>{const e=i[i.length-1];let n=e.nextSibling;for(;n&&"listItem"==n.name&&n.getAttribute("listIndent")>e.getAttribute("listIndent");)i.push(n),n=n.nextSibling;this._indentBy<0&&(i=i.reverse());for(const e of i){const i=e.getAttribute("listIndent")+this._indentBy;i<0?t.rename(e,"paragraph"):t.setAttribute("listIndent",i,e)}this.fire("_executeCleanup",i)}))}_checkEnabled(){const t=(0,r.first)(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),i=t.getAttribute("listType");let n=t.previousSibling;for(;n&&n.is("element","listItem")&&n.getAttribute("listIndent")>=e;){if(n.getAttribute("listIndent")==e)return n.getAttribute("listType")==i;n=n.previousSibling}return!1}return!0}}class Gt extends t.Command{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,i=e.document,n=Array.from(i.selection.getSelectedBlocks()).filter((t=>Jt(t,e.schema))),s=void 0!==t.forceValue?!t.forceValue:this.value;e.change((t=>{if(s){let e=n[n.length-1].nextSibling,i=Number.POSITIVE_INFINITY,s=[];for(;e&&"listItem"==e.name&&0!==e.getAttribute("listIndent");){const t=e.getAttribute("listIndent");t<i&&(i=t);const n=t-i;s.push({element:e,listIndent:n}),e=e.nextSibling}s=s.reverse();for(const e of s)t.setAttribute("listIndent",e.listIndent,e.element)}if(!s){let t=Number.POSITIVE_INFINITY;for(const e of n)e.is("element","listItem")&&e.getAttribute("listIndent")<t&&(t=e.getAttribute("listIndent"));t=0===t?1:t,Yt(n,!0,t),Yt(n,!1,t)}for(const e of n.reverse())s&&"listItem"==e.name?t.rename(e,"paragraph"):s||"listItem"==e.name?s||"listItem"!=e.name||e.getAttribute("listType")==this.type||t.setAttribute("listType",this.type,e):(t.setAttributes({listType:this.type,listIndent:0},e),t.rename(e,"listItem"));this.fire("_executeCleanup",n)}))}_getValue(){const t=(0,r.first)(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,i=(0,r.first)(t.getSelectedBlocks());return!!i&&Jt(i,e)}}function Yt(t,e,i){const n=e?t[0]:t[t.length-1];if(n.is("element","listItem")){let s=n[e?"previousSibling":"nextSibling"],r=n.getAttribute("listIndent");for(;s&&s.is("element","listItem")&&s.getAttribute("listIndent")>=i;)r>s.getAttribute("listIndent")&&(r=s.getAttribute("listIndent")),s.getAttribute("listIndent")==r&&t[e?"unshift":"push"](s),s=s[e?"previousSibling":"nextSibling"]}}function Jt(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}class Qt extends t.Plugin{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return ht(t)}getSelectedListItems(t){return ut(t)}getSiblingNodes(t,e){return dt(t,e)}}function Xt(t){return(e,i,n)=>{const s=n.consumable;if(!s.test(i.item,"insert")||!s.test(i.item,"attribute:listType")||!s.test(i.item,"attribute:listIndent"))return;s.consume(i.item,"insert"),s.consume(i.item,"attribute:listType"),s.consume(i.item,"attribute:listIndent");const r=i.item;st(r,nt(r,n),n,t)}}const te=(t,e,i)=>{if(!i.consumable.test(e.item,t.name))return;const n=i.mapper.toViewElement(e.item),s=i.writer;s.breakContainer(s.createPositionBefore(n)),s.breakContainer(s.createPositionAfter(n));const r=n.parent,o="numbered"==e.attributeNewValue?"ol":"ul";s.rename(o,r)},ee=(t,e,i)=>{i.consumable.consume(e.item,t.name);const n=i.mapper.toViewElement(e.item).parent,s=i.writer;rt(s,n,n.nextSibling),rt(s,n.previousSibling,n)};const ie=(t,e,i)=>{if(i.consumable.test(e.item,t.name)&&"listItem"!=e.item.name){let t=i.mapper.toViewPosition(e.range.start);const n=i.writer,s=[];for(;("ul"==t.parent.name||"ol"==t.parent.name)&&(t=n.breakContainer(t),"li"==t.parent.name);){const e=t,i=n.createPositionAt(t.parent,"end");if(!e.isEqual(i)){const t=n.remove(n.createRange(e,i));s.push(t)}t=n.createPositionAfter(t.parent)}if(s.length>0){for(let e=0;e<s.length;e++){const i=t.nodeBefore;if(t=n.insert(t,s[e]).end,e>0){const e=rt(n,i,i.nextSibling);e&&e.parent==i&&t.offset--}}rt(n,t.nodeBefore,t.nodeAfter)}}},ne=(t,e,i)=>{const n=i.mapper.toViewPosition(e.position),s=n.nodeBefore,r=n.nodeAfter;rt(i.writer,s,r)},se=(t,e,i)=>{if(i.consumable.consume(e.viewItem,{name:!0})){const t=i.writer,n=t.createElement("listItem"),s=function(t){let e=0,i=t.parent;for(;i;){if(i.is("element","li"))e++;else{const t=i.previousSibling;t&&t.is("element","li")&&e++}i=i.parent}return e}(e.viewItem);t.setAttribute("listIndent",s,n);const r=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(t.setAttribute("listType",r,n),!i.safeInsert(n,e.modelCursor))return;const o=function(t,e,i){const{writer:n,schema:s}=i;let r=n.createPositionAfter(t);for(const o of e)if("ul"==o.name||"ol"==o.name)r=i.convertItem(o,r).modelCursor;else{const e=i.convertItem(o,n.createPositionAt(t,"end")),l=e.modelRange.start.nodeAfter;l&&l.is("element")&&!s.checkChild(t,l.name)&&(t=e.modelCursor.parent.is("element","listItem")?e.modelCursor.parent:ce(e.modelCursor),r=n.createPositionAfter(t))}return r}(n,e.viewItem.getChildren(),i);e.modelRange=t.createRange(e.modelCursor,o),i.updateConversionResult(n,e)}},re=(t,e,i)=>{if(i.consumable.test(e.viewItem,{name:!0})){const t=Array.from(e.viewItem.getChildren());for(const e of t){!(e.is("element","li")||ue(e))&&e._remove()}}},oe=(t,e,i)=>{if(i.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;const t=[...e.viewItem.getChildren()];let i=!1;for(const e of t)i&&!ue(e)&&e._remove(),ue(e)&&(i=!0)}};function le(t){return(e,i)=>{if(i.isPhantom)return;const n=i.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const e=i.mapper.toViewElement(n),s=e.getAncestors().find(ue),r=t.createPositionAt(e,0).getWalker();for(const t of r){if("elementStart"==t.type&&t.item.is("element","li")){i.viewPosition=t.previousPosition;break}if("elementEnd"==t.type&&t.item==s){i.viewPosition=t.nextPosition;break}}}}}const ae=function(t,[e,i]){const n=this;let s,r=e.is("documentFragment")?e.getChild(0):e;if(s=i?n.createSelection(i):n.document.selection,r&&r.is("element","listItem")){const t=s.getFirstPosition();let e=null;if(t.parent.is("element","listItem")?e=t.parent:t.nodeBefore&&t.nodeBefore.is("element","listItem")&&(e=t.nodeBefore),e){const t=e.getAttribute("listIndent");if(t>0)for(;r&&r.is("element","listItem");)r._setAttribute("listIndent",r.getAttribute("listIndent")+t),r=r.nextSibling}}};function ce(t){const e=new z.TreeWalker({startPosition:t});let i;do{i=e.next()}while(!i.value.item.is("element","listItem"));return i.value.item}function de(t,e,i,n,s,r){const o=lt(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t}),l=s.mapper,a=s.writer,c=o?o.getAttribute("listIndent"):null;let d;if(o)if(c==t){const t=l.toViewElement(o).parent;d=a.createPositionAfter(t)}else{const t=r.createPositionAt(o,"end");d=l.toViewPosition(t)}else d=i;d=ot(d);for(const t of[...n.getChildren()])ue(t)&&(d=a.move(a.createRangeOn(t),d).end,rt(a,t,t.nextSibling),rt(a,t.previousSibling,t))}function ue(t){return t.is("element","ol")||t.is("element","ul")}class me extends t.Plugin{static get pluginName(){return"ListEditing"}static get requires(){return[s.Enter,e.Delete,Qt]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,i=t.editing;var n;t.model.document.registerPostFixer((e=>function(t,e){const i=t.document.differ.getChanges(),n=new Map;let s=!1;for(const n of i)if("insert"==n.type&&"listItem"==n.name)r(n.position);else if("insert"==n.type&&"listItem"!=n.name){if("$text"!=n.name){const i=n.position.nodeAfter;i.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",i),s=!0),i.hasAttribute("listType")&&(e.removeAttribute("listType",i),s=!0),i.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",i),s=!0),i.hasAttribute("listReversed")&&(e.removeAttribute("listReversed",i),s=!0),i.hasAttribute("listStart")&&(e.removeAttribute("listStart",i),s=!0);for(const e of Array.from(t.createRangeIn(i)).filter((t=>t.item.is("element","listItem"))))r(e.previousPosition)}r(n.position.getShiftedBy(n.length))}else"remove"==n.type&&"listItem"==n.name?r(n.position):("attribute"==n.type&&"listIndent"==n.attributeKey||"attribute"==n.type&&"listType"==n.attributeKey)&&r(n.range.start);for(const t of n.values())o(t),l(t);return s;function r(t){const e=t.nodeBefore;if(e&&e.is("element","listItem")){let t=e;if(n.has(t))return;for(let e=t.previousSibling;e&&e.is("element","listItem");e=t.previousSibling)if(t=e,n.has(t))return;n.set(e,t)}else{const e=t.nodeAfter;e&&e.is("element","listItem")&&n.set(e,e)}}function o(t){let i=0,n=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(r>i){let o;null===n?(n=r-i,o=i):(n>r&&(n=r),o=r-n),e.setAttribute("listIndent",o,t),s=!0}else n=null,i=t.getAttribute("listIndent")+1;t=t.nextSibling}}function l(t){let i=[],n=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(n&&n.getAttribute("listIndent")>r&&(i=i.slice(0,r+1)),0!=r)if(i[r]){const n=i[r];t.getAttribute("listType")!=n&&(e.setAttribute("listType",n,t),s=!0)}else i[r]=t.getAttribute("listType");n=t,t=t.nextSibling}}}(t.model,e))),i.mapper.registerViewToModelLength("li",pe),e.mapper.registerViewToModelLength("li",pe),i.mapper.on("modelToViewPosition",le(i.view)),i.mapper.on("viewToModelPosition",(n=t.model,(t,e)=>{const i=e.viewPosition,s=i.parent,r=e.mapper;if("ul"==s.name||"ol"==s.name){if(i.isAtEnd){const t=r.toModelElement(i.nodeBefore),s=r.getModelLength(i.nodeBefore);e.modelPosition=n.createPositionBefore(t).getShiftedBy(s)}else{const t=r.toModelElement(i.nodeAfter);e.modelPosition=n.createPositionBefore(t)}t.stop()}else if("li"==s.name&&i.nodeBefore&&("ul"==i.nodeBefore.name||"ol"==i.nodeBefore.name)){const o=r.toModelElement(s);let l=1,a=i.nodeBefore;for(;a&&ue(a);)l+=r.getModelLength(a),a=a.previousSibling;e.modelPosition=n.createPositionBefore(o).getShiftedBy(l),t.stop()}})),e.mapper.on("modelToViewPosition",le(i.view)),t.conversion.for("editingDowncast").add((e=>{e.on("insert",ie,{priority:"high"}),e.on("insert:listItem",Xt(t.model)),e.on("attribute:listType:listItem",te,{priority:"high"}),e.on("attribute:listType:listItem",ee,{priority:"low"}),e.on("attribute:listIndent:listItem",function(t){return(e,i,n)=>{if(!n.consumable.consume(i.item,"attribute:listIndent"))return;const s=n.mapper.toViewElement(i.item),r=n.writer;r.breakContainer(r.createPositionBefore(s)),r.breakContainer(r.createPositionAfter(s));const o=s.parent,l=o.previousSibling,a=r.createRangeOn(o);r.remove(a),l&&l.nextSibling&&rt(r,l,l.nextSibling),de(i.attributeOldValue+1,i.range.start,a.start,s,n,t),st(i.item,s,n,t);for(const t of i.item.getChildren())n.consumable.consume(t,"insert")}}(t.model)),e.on("remove:listItem",function(t){return(e,i,n)=>{const s=n.mapper.toViewPosition(i.position).getLastMatchingPosition((t=>!t.item.is("element","li"))).nodeAfter,r=n.writer;r.breakContainer(r.createPositionBefore(s)),r.breakContainer(r.createPositionAfter(s));const o=s.parent,l=o.previousSibling,a=r.createRangeOn(o),c=r.remove(a);l&&l.nextSibling&&rt(r,l,l.nextSibling),de(n.mapper.toModelElement(s).getAttribute("listIndent")+1,i.position,a.start,s,n,t);for(const t of r.createRangeIn(c).getItems())n.mapper.unbindViewElement(t);e.stop()}}(t.model)),e.on("remove",ne,{priority:"low"})})),t.conversion.for("dataDowncast").add((e=>{e.on("insert",ie,{priority:"high"}),e.on("insert:listItem",Xt(t.model))})),t.conversion.for("upcast").add((t=>{t.on("element:ul",re,{priority:"high"}),t.on("element:ol",re,{priority:"high"}),t.on("element:li",oe,{priority:"high"}),t.on("element:li",se)})),t.model.on("insertContent",ae,{priority:"high"}),t.commands.add("numberedList",new Gt(t,"numbered")),t.commands.add("bulletedList",new Gt(t,"bulleted")),t.commands.add("indentList",new Zt(t,"forward")),t.commands.add("outdentList",new Zt(t,"backward"));const s=i.view.document;this.listenTo(s,"enter",((t,e)=>{const i=this.editor.model.document,n=i.selection.getLastPosition().parent;i.selection.isCollapsed&&"listItem"==n.name&&n.isEmpty&&(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(s,"delete",((t,e)=>{if("backward"!==e.direction)return;const i=this.editor.model.document.selection;if(!i.isCollapsed)return;const n=i.getFirstPosition();if(!n.isAtStart)return;const s=n.parent;if("listItem"!==s.name)return;s.previousSibling&&"listItem"===s.previousSibling.name||(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(t.editing.view.document,"tab",((e,i)=>{const n=i.shiftKey?"outdentList":"indentList";this.editor.commands.get(n).isEnabled&&(t.execute(n),i.stopPropagation(),i.preventDefault(),e.stop())}),{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),i=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),i&&i.registerChildCommand(t.get("outdentList"))}}function pe(t){let e=1;for(const i of t.getChildren())if("ul"==i.name||"ol"==i.name)for(const t of i.getChildren())e+=pe(t);return e}class he extends t.Plugin{static get requires(){return[me,yt]}static get pluginName(){return"List"}}class fe extends t.Command{constructor(t,e){super(t),this.defaultType=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){this._tryToConvertItemsToList(t);const e=this.editor.model,i=ut(e);i.length&&e.change((e=>{for(const n of i)e.setAttribute("listStyle",t.type||this.defaultType,n)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")?t.getAttribute("listStyle"):null}_checkEnabled(){const t=this.editor,e=t.commands.get("numberedList"),i=t.commands.get("bulletedList");return e.isEnabled||i.isEnabled}_tryToConvertItemsToList(t){if(!t.type)return;const e=ht(t.type);if(!e)return;const i=this.editor,n=`${e}List`;i.commands.get(n).value||i.execute(n)}}class be extends t.Command{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute(t={}){const e=this.editor.model,i=ut(e).filter((t=>"numbered"==t.getAttribute("listType")));e.change((e=>{for(const n of i)e.setAttribute("listReversed",!!t.reversed,n)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listReversed"):null}}class ge extends t.Command{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute({startIndex:t=1}={}){const e=this.editor.model,i=ut(e).filter((t=>"numbered"==t.getAttribute("listType")));e.change((e=>{for(const n of i)e.setAttribute("listStart",t>=0?t:1,n)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listStart"):null}}const ye="default";class ve extends t.Plugin{static get requires(){return[me]}static get pluginName(){return"ListPropertiesEditing"}constructor(t){super(t),t.config.define("list",{properties:{styles:!0,startIndex:!1,reversed:!1}})}init(){const t=this.editor,e=t.model,i=function(t){const e=[];t.styles&&e.push({attributeName:"listStyle",defaultValue:ye,addCommand(t){t.commands.add("listStyle",new fe(t,ye))},appliesToListItem:()=>!0,setAttributeOnDowncast(t,e,i){e&&e!==ye?t.setStyle("list-style-type",e,i):t.removeStyle("list-style-type",i)},getAttributeOnUpcast:t=>t.getStyle("list-style-type")||ye});t.reversed&&e.push({attributeName:"listReversed",defaultValue:!1,addCommand(t){t.commands.add("listReversed",new be(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),setAttributeOnDowncast(t,e,i){e?t.setAttribute("reversed","reversed",i):t.removeAttribute("reversed",i)},getAttributeOnUpcast:t=>t.hasAttribute("reversed")});t.startIndex&&e.push({attributeName:"listStart",defaultValue:1,addCommand(t){t.commands.add("listStart",new ge(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),setAttributeOnDowncast(t,e,i){0==e||e>1?t.setAttribute("start",e,i):t.removeAttribute("start",i)},getAttributeOnUpcast(t){const e=t.getAttribute("start");return e>=0?e:1}});return e}(t.config.get("list.properties"));e.schema.extend("listItem",{allowAttributes:i.map((t=>t.attributeName))});for(const e of i)e.addCommand(t);var n;this.listenTo(t.commands.get("indentList"),"_executeCleanup",function(t,e){return(i,n)=>{const s=n[0],r=s.getAttribute("listIndent"),o=n.filter((t=>t.getAttribute("listIndent")===r));let l=null;s.previousSibling.getAttribute("listIndent")+1!==r&&(l=lt(s.previousSibling,{sameIndent:!0,direction:"backward",listIndent:r})),t.model.change((t=>{for(const i of o)for(const n of e)if(n.appliesToListItem(i)){const e=null==l?n.defaultValue:l.getAttribute(n.attributeName);t.setAttribute(n.attributeName,e,i)}}))}}(t,i)),this.listenTo(t.commands.get("outdentList"),"_executeCleanup",function(t,e){return(i,n)=>{if(!(n=n.reverse().filter((t=>t.is("element","listItem")))).length)return;const s=n[0].getAttribute("listIndent"),r=n[0].getAttribute("listType");let o=n[0].previousSibling;if(o.is("element","listItem"))for(;o.getAttribute("listIndent")!==s;)o=o.previousSibling;else o=null;o||(o=n[n.length-1].nextSibling),o&&o.is("element","listItem")&&o.getAttribute("listType")===r&&t.model.change((t=>{const i=n.filter((t=>t.getAttribute("listIndent")===s));for(const n of i)for(const i of e)if(i.appliesToListItem(n)){const e=i.attributeName,s=o.getAttribute(e);t.setAttribute(e,s,n)}}))}}(t,i)),this.listenTo(t.commands.get("bulletedList"),"_executeCleanup",ke(t)),this.listenTo(t.commands.get("numberedList"),"_executeCleanup",ke(t)),e.document.registerPostFixer(function(t,e){return i=>{let n=!1;const s=Ie(t.model.document.differ.getChanges()).filter((t=>"todo"!==t.getAttribute("listType")));if(!s.length)return n;let r=s[s.length-1].nextSibling;if((!r||!r.is("element","listItem"))&&(r=s[0].previousSibling,r)){const t=s[0].getAttribute("listIndent");for(;r.is("element","listItem")&&r.getAttribute("listIndent")!==t&&(r=r.previousSibling,r););}for(const t of e){const e=t.attributeName;for(const o of s)if(t.appliesToListItem(o))if(o.hasAttribute(e)){const s=o.previousSibling;Ae(s,o,t.attributeName)&&(i.setAttribute(e,s.getAttribute(e),o),n=!0)}else we(r,o,t)?i.setAttribute(e,r.getAttribute(e),o):i.setAttribute(e,t.defaultValue,o),n=!0;else i.removeAttribute(e,o)}return n}}(t,i)),t.conversion.for("upcast").add((n=i,t=>{t.on("element:li",((t,e,i)=>{if(!e.modelRange)return;const s=e.viewItem.parent,r=e.modelRange.start.nodeAfter||e.modelRange.end.nodeBefore;for(const t of n)if(t.appliesToListItem(r)){const e=t.getAttributeOnUpcast(s);i.writer.setAttribute(t.attributeName,e,r)}}),{priority:"low"})})),t.conversion.for("downcast").add(function(t){return i=>{for(const n of t)i.on(`attribute:${n.attributeName}:listItem`,((t,i,s)=>{const r=s.writer,o=i.item,l=lt(o.previousSibling,{sameIndent:!0,listIndent:o.getAttribute("listIndent"),direction:"backward"}),a=s.mapper.toViewElement(o);e(o,l)||r.breakContainer(r.createPositionBefore(a)),n.setAttributeOnDowncast(r,i.attributeNewValue,a.parent)}),{priority:"low"})};function e(t,e){return e&&t.getAttribute("listType")===e.getAttribute("listType")&&t.getAttribute("listIndent")===e.getAttribute("listIndent")&&t.getAttribute("listStyle")===e.getAttribute("listStyle")&&t.getAttribute("listReversed")===e.getAttribute("listReversed")&&t.getAttribute("listStart")===e.getAttribute("listStart")}}(i)),this._mergeListAttributesWhileMergingLists(i)}afterInit(){const t=this.editor;t.commands.get("todoList")&&t.model.document.registerPostFixer(function(t){return e=>{const i=Ie(t.model.document.differ.getChanges()).filter((t=>"todo"===t.getAttribute("listType")&&(t.hasAttribute("listStyle")||t.hasAttribute("listReversed")||t.hasAttribute("listStart"))));if(!i.length)return!1;for(const t of i)e.removeAttribute("listStyle",t),e.removeAttribute("listReversed",t),e.removeAttribute("listStart",t);return!0}}(t))}_mergeListAttributesWhileMergingLists(t){const e=this.editor.model;let i;this.listenTo(e,"deleteContent",((t,[e])=>{const n=e.getFirstPosition(),s=e.getLastPosition();if(n.parent===s.parent)return;if(!n.parent.is("element","listItem"))return;const r=s.parent.nextSibling;if(!r||!r.is("element","listItem"))return;const o=lt(n.parent,{sameIndent:!0,listIndent:r.getAttribute("listIndent")});o&&o.getAttribute("listType")===r.getAttribute("listType")&&(i=o)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{i&&(e.change((e=>{const n=lt(i.nextSibling,{sameIndent:!0,listIndent:i.getAttribute("listIndent"),direction:"forward"});if(!n)return void(i=null);const s=[n,...dt(e.createPositionAt(n,0),"forward")];for(const n of s)for(const s of t)if(s.appliesToListItem(n)){const t=s.attributeName,r=i.getAttribute(t);e.setAttribute(t,r,n)}})),i=null)}),{priority:"low"})}}function we(t,e,i){if(!t)return!1;const n=t.getAttribute(i.attributeName);return!!n&&(n!=i.defaultValue&&t.getAttribute("listType")===e.getAttribute("listType"))}function Ae(t,e,i){if(!t||!t.is("element","listItem"))return!1;if(e.getAttribute("listType")!==t.getAttribute("listType"))return!1;const n=t.getAttribute("listIndent");if(n<1||n!==e.getAttribute("listIndent"))return!1;const s=t.getAttribute(i);return!(!s||s===e.getAttribute(i))}function ke(t){return(e,i)=>{i=i.filter((t=>t.is("element","listItem"))),t.model.change((t=>{for(const e of i)t.removeAttribute("listStyle",e)}))}}function Ie(t){const e=[];for(const i of t){const t=Te(i);t&&t.is("element","listItem")&&e.push(t)}return e}function Te(t){return"attribute"===t.type?t.range.start.nodeAfter:"insert"===t.type?t.position.nodeAfter:null}class _e extends t.Plugin{static get requires(){return[ve,$t]}static get pluginName(){return"ListProperties"}}const xe="todoListChecked";class Se extends t.Command{constructor(t){super(t),this._selectedElements=[],this.on("execute",(()=>{this.refresh()}),{priority:"highest"})}refresh(){this._selectedElements=this._getSelectedItems(),this.value=this._selectedElements.every((t=>!!t.getAttribute(xe))),this.isEnabled=!!this._selectedElements.length}_getSelectedItems(){const t=this.editor.model,e=t.schema,i=t.document.selection.getFirstRange(),n=i.start.parent,s=[];e.checkAttribute(n,xe)&&s.push(n);for(const t of i.getItems())e.checkAttribute(t,xe)&&!s.includes(t)&&s.push(t);return s}execute(t={}){this.editor.model.change((e=>{for(const i of this._selectedElements){(void 0===t.forceValue?!this.value:t.forceValue)?e.setAttribute(xe,!0,i):e.removeAttribute(xe,i)}}))}}const Ce=(t,e,i)=>{const n=e.modelCursor,s=n.parent,r=e.viewItem;if("checkbox"!=r.getAttribute("type")||"listItem"!=s.name||!n.isAtStart)return;if(!i.consumable.consume(r,{name:!0}))return;const o=i.writer;o.setAttribute("listType","todo",s),e.viewItem.hasAttribute("checked")&&o.setAttribute("todoListChecked",!0,s),e.modelRange=o.createRange(n)};function Le(t){return(e,i)=>{const n=i.modelPosition,s=n.parent;if(!s.is("element","listItem")||"todo"!=s.getAttribute("listType"))return;const r=Pe(i.mapper.toViewElement(s),t);r&&(i.viewPosition=i.mapper.findPositionIn(r,n.offset))}}function Ee(t,e,i,n){return e.createUIElement("label",{class:"todo-list__label",contenteditable:!1},(function(e){const s=(0,r.createElement)(document,"input",{type:"checkbox",tabindex:"-1"});i&&s.setAttribute("checked","checked"),s.addEventListener("change",(()=>n(t)));const o=this.toDomElement(e);return o.appendChild(s),o}))}function Pe(t,e){const i=e.createRangeIn(t);for(const t of i)if(t.item.is("containerElement","span")&&t.item.hasClass("todo-list__label__description"))return t.item}const Ve=(0,r.parseKeystroke)("Ctrl+Enter");class ze extends t.Plugin{static get pluginName(){return"TodoListEditing"}static get requires(){return[me]}init(){const t=this.editor,{editing:e,data:i,model:n}=t;n.schema.extend("listItem",{allowAttributes:["todoListChecked"]}),n.schema.addAttributeCheck(((t,e)=>{const i=t.last;if("todoListChecked"==e&&"listItem"==i.name&&"todo"!=i.getAttribute("listType"))return!1})),t.commands.add("todoList",new Gt(t,"todo"));const s=new Se(t);var o,l;t.commands.add("checkTodoList",s),t.commands.add("todoListCheck",s),i.downcastDispatcher.on("insert:listItem",function(t){return(e,i,n)=>{const s=n.consumable;if(!s.test(i.item,"insert")||!s.test(i.item,"attribute:listType")||!s.test(i.item,"attribute:listIndent"))return;if("todo"!=i.item.getAttribute("listType"))return;const r=i.item;s.consume(r,"insert"),s.consume(r,"attribute:listType"),s.consume(r,"attribute:listIndent"),s.consume(r,"attribute:todoListChecked");const o=n.writer,l=nt(r,n);o.addClass("todo-list",l.parent);const a=o.createContainerElement("label",{class:"todo-list__label"}),c=o.createEmptyElement("input",{type:"checkbox",disabled:"disabled"}),d=o.createContainerElement("span",{class:"todo-list__label__description"});r.getAttribute("todoListChecked")&&o.setAttribute("checked","checked",c),o.insert(o.createPositionAt(l,0),a),o.insert(o.createPositionAt(a,0),c),o.insert(o.createPositionAfter(c),d),st(r,l,n,t)}}(n),{priority:"high"}),i.upcastDispatcher.on("element:input",Ce,{priority:"high"}),e.downcastDispatcher.on("insert:listItem",function(t,e){return(i,n,s)=>{const r=s.consumable;if(!r.test(n.item,"insert")||!r.test(n.item,"attribute:listType")||!r.test(n.item,"attribute:listIndent"))return;if("todo"!=n.item.getAttribute("listType"))return;const o=n.item;r.consume(o,"insert"),r.consume(o,"attribute:listType"),r.consume(o,"attribute:listIndent"),r.consume(o,"attribute:todoListChecked");const l=s.writer,a=nt(o,s),c=!!o.getAttribute("todoListChecked"),d=Ee(o,l,c,e),u=l.createContainerElement("span",{class:"todo-list__label__description"});l.addClass("todo-list",a.parent),l.insert(l.createPositionAt(a,0),d),l.insert(l.createPositionAfter(d),u),st(o,a,s,t)}}(n,(t=>this._handleCheckmarkChange(t))),{priority:"high"}),e.downcastDispatcher.on("attribute:listType:listItem",(o=t=>this._handleCheckmarkChange(t),l=e.view,(t,e,i)=>{if(!i.consumable.consume(e.item,t.name))return;const n=i.mapper.toViewElement(e.item),s=i.writer,r=function(t,e){const i=e.createRangeIn(t);for(const t of i)if(t.item.is("uiElement","label"))return t.item}(n,l);if("todo"==e.attributeNewValue){const t=!!e.item.getAttribute("todoListChecked"),i=Ee(e.item,s,t,o),r=s.createContainerElement("span",{class:"todo-list__label__description"}),l=s.createRangeIn(n),a=ct(n),c=ot(l.start),d=a?s.createPositionBefore(a):l.end,u=s.createRange(c,d);s.addClass("todo-list",n.parent),s.move(u,s.createPositionAt(r,0)),s.insert(s.createPositionAt(n,0),i),s.insert(s.createPositionAfter(i),r)}else if("todo"==e.attributeOldValue){const t=Pe(n,l);s.removeClass("todo-list",n.parent),s.remove(r),s.move(s.createRangeIn(t),s.createPositionBefore(t)),s.remove(t)}})),e.downcastDispatcher.on("attribute:todoListChecked:listItem",function(t){return(e,i,n)=>{if("todo"!=i.item.getAttribute("listType"))return;if(!n.consumable.consume(i.item,"attribute:todoListChecked"))return;const{mapper:s,writer:r}=n,o=!!i.item.getAttribute("todoListChecked"),l=s.toViewElement(i.item).getChild(0),a=Ee(i.item,r,o,t);r.insert(r.createPositionAfter(l),a),r.remove(l)}}((t=>this._handleCheckmarkChange(t)))),e.mapper.on("modelToViewPosition",Le(e.view)),i.mapper.on("modelToViewPosition",Le(e.view)),this.listenTo(e.view.document,"arrowKey",function(t,e){return(i,n)=>{if("left"!=(0,r.getLocalizedArrowKeyCodeDirection)(n.keyCode,e.contentLanguageDirection))return;const s=t.schema,o=t.document.selection;if(!o.isCollapsed)return;const l=o.getFirstPosition(),a=l.parent;if("listItem"===a.name&&"todo"==a.getAttribute("listType")&&l.isAtStart){const e=s.getNearestSelectionRange(t.createPositionBefore(a),"backward");e&&t.change((t=>t.setSelection(e))),n.preventDefault(),n.stopPropagation(),i.stop()}}}(n,t.locale),{context:"li"}),this.listenTo(e.view.document,"keydown",((e,i)=>{(0,r.getCode)(i)===Ve&&(t.execute("checkTodoList"),e.stop())}),{priority:"high"});const a=new Set;this.listenTo(n,"applyOperation",((t,e)=>{const i=e[0];if("rename"==i.type&&"listItem"==i.oldName){const t=i.position.nodeAfter;t.hasAttribute("todoListChecked")&&a.add(t)}else if("changeAttribute"==i.type&&"listType"==i.key&&"todo"===i.oldValue)for(const t of i.range.getItems())t.hasAttribute("todoListChecked")&&"todo"!==t.getAttribute("listType")&&a.add(t)})),n.document.registerPostFixer((t=>{let e=!1;for(const i of a)t.removeAttribute("todoListChecked",i),e=!0;return a.clear(),e}))}_handleCheckmarkChange(t){const e=this.editor,i=e.model,n=Array.from(i.document.selection.getRanges());i.change((i=>{i.setSelection(t,"end"),e.execute("checkTodoList"),i.setSelection(n)}))}}class Be extends t.Plugin{static get pluginName(){return"TodoListUI"}init(){const t=this.editor.t;at(this.editor,"todoList",t("To-do List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>')}}var Ne=i(528),Me={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(Ne.Z,Me);Ne.Z.locals;class De extends t.Plugin{static get requires(){return[ze,Be]}static get pluginName(){return"TodoList"}}class Re extends t.Command{constructor(t){super(t),this.on("execute",(()=>{this.refresh()}),{priority:"highest"})}refresh(){const t=this._getSelectedItems();this.value=this._getValue(t),this.isEnabled=!!t.length}execute(t={}){this.editor.model.change((e=>{const i=this._getSelectedItems(),n=void 0===t.forceValue?!this._getValue(i):t.forceValue;for(const t of i)n?e.setAttribute("todoListChecked",!0,t):e.removeAttribute("todoListChecked",t)}))}_getValue(t){return t.every((t=>t.getAttribute("todoListChecked")))}_getSelectedItems(){const t=this.editor.model,e=t.schema,i=t.document.selection.getFirstRange(),n=i.start.parent,s=[];e.checkAttribute(n,"todoListChecked")&&s.push(...u(n));for(const t of i.getItems({shallow:!0}))e.checkAttribute(t,"todoListChecked")&&!s.includes(t)&&s.push(...u(t));return s}}class Oe extends z.DomEventObserver{constructor(){super(...arguments),this.domEventType=["change"]}onDomEvent(t){if(t.target){const e=this.view.domConverter.mapDomToView(t.target);e&&e.is("element","input")&&"checkbox"==e.getAttribute("type")&&e.findAncestor({classes:"todo-list__label"})&&this.fire("todoCheckboxChange",t)}}}const Fe=(0,r.parseKeystroke)("Ctrl+Enter");class He extends t.Plugin{static get pluginName(){return"TodoDocumentListEditing"}static get requires(){return[tt]}init(){const t=this.editor,e=t.model,i=t.editing,n=t.plugins.get(tt),s=t.config.get("list.multiBlock")?"paragraph":"listItem";t.commands.add("todoList",new L(t,"todo")),t.commands.add("checkTodoList",new Re(t)),i.view.addObserver(Oe),e.schema.extend("$listItem",{allowAttributes:"todoListChecked"}),e.schema.addAttributeCheck(((t,e)=>{const i=t.last;if("todoListChecked"==e)return!(!i.getAttribute("listItemId")||"todo"!=i.getAttribute("listType"))&&void 0})),t.conversion.for("upcast").add((t=>{t.on("element:input",((t,e,i)=>{const n=e.modelCursor,s=n.parent,r=e.viewItem;if(!i.consumable.test(r,{name:!0}))return;if("checkbox"!=r.getAttribute("type")||!n.isAtStart||!s.hasAttribute("listType"))return;i.consumable.consume(r,{name:!0});const o=i.writer;o.setAttribute("listType","todo",s),e.viewItem.hasAttribute("checked")&&o.setAttribute("todoListChecked",!0,s),e.modelRange=o.createRange(n)})),t.on("element:label",je({name:"label",classes:"todo-list__label"})),t.on("element:label",je({name:"label",classes:["todo-list__label","todo-list__label_without-description"]})),t.on("element:span",je({name:"span",classes:"todo-list__label__description"})),t.on("element:ul",function(t){const e=new z.Matcher(t);return(t,i,n)=>{const s=e.match(i.viewItem);if(!s)return;const r=s.match;r.name=!1,n.consumable.consume(i.viewItem,r)}}({name:"ul",classes:"todo-list"}))})),t.conversion.for("downcast").elementToElement({model:s,view:(t,{writer:e})=>{if(Ue(t,n.getListAttributeNames()))return e.createContainerElement("span",{class:"todo-list__label__description"})},converterPriority:"highest"}),n.registerDowncastStrategy({scope:"list",attributeName:"listType",setAttributeOnDowncast(t,e,i){"todo"==e?t.addClass("todo-list",i):t.removeClass("todo-list",i)}}),n.registerDowncastStrategy({scope:"itemMarker",attributeName:"todoListChecked",createElement(t,e,{dataPipeline:i}){if("todo"!=e.getAttribute("listType"))return null;const n=t.createEmptyElement("input",{type:"checkbox",...e.getAttribute("todoListChecked")?{checked:"checked"}:null,...i?{disabled:"disabled"}:{tabindex:"-1"}});return i?n:t.createContainerElement("span",{contenteditable:"false"},n)},canWrapElement:t=>Ue(t,n.getListAttributeNames()),createWrapperElement(t,e,{dataPipeline:i}){const s=["todo-list__label"];return Ue(e,n.getListAttributeNames())||s.push("todo-list__label_without-description"),t.createAttributeElement(i?"label":"span",{class:s.join(" ")})}}),i.mapper.registerViewToModelLength("input",(t=>"checkbox"==t.getAttribute("type")&&t.findAncestor({classes:"todo-list__label"})?0:i.mapper.toModelElement(t)?1:0)),n.on("checkElement",((t,{modelElement:e,viewElement:i})=>{const s=Ue(e,n.getListAttributeNames());i.hasClass("todo-list__label__description")!=s&&(t.return=!0,t.stop())})),n.on("checkElement",((e,{modelElement:i,viewElement:n})=>{const s="todo"==i.getAttribute("listType")&&h(i);let r=!1;const o=t.editing.view.createPositionBefore(n).getWalker({direction:"backward"});for(const{item:e}of o){if(e.is("element")&&t.editing.mapper.toModelElement(e))break;e.is("element","input")&&"checkbox"==e.getAttribute("type")&&(r=!0)}r!=s&&(e.return=!0,e.stop())})),n.on("postFixer",((t,{listNodes:e,writer:i})=>{for(const{node:n,previousNodeInList:s}of e){if(!s)continue;if(s.getAttribute("listItemId")!=n.getAttribute("listItemId"))continue;const e=s.hasAttribute("todoListChecked"),r=n.hasAttribute("todoListChecked");r&&!e?(i.removeAttribute("todoListChecked",n),t.return=!0):!r&&e&&(i.setAttribute("todoListChecked",!0,n),t.return=!0)}})),e.document.registerPostFixer((t=>{const i=e.document.differ.getChanges();let n=!1;for(const e of i)if("attribute"==e.type&&"listType"==e.attributeKey){const i=e.range.start.nodeAfter;"todo"==e.attributeOldValue&&i.hasAttribute("todoListChecked")&&(t.removeAttribute("todoListChecked",i),n=!0)}else if("insert"==e.type&&"$text"!=e.name)for(const{item:i}of t.createRangeOn(e.position.nodeAfter))i.is("element")&&"todo"!=i.getAttribute("listType")&&i.hasAttribute("todoListChecked")&&(t.removeAttribute("todoListChecked",i),n=!0);return n})),this.listenTo(i.view.document,"keydown",((e,i)=>{(0,r.getCode)(i)===Fe&&(t.execute("checkTodoList"),e.stop())}),{priority:"high"}),this.listenTo(i.view.document,"todoCheckboxChange",((t,e)=>{const n=e.target;if(!n||!n.is("element","input"))return;const s=i.view.createPositionAfter(n),r=i.mapper.toModelPosition(s).parent;r&&d(r)&&"todo"==r.getAttribute("listType")&&this._handleCheckmarkChange(r)})),this.listenTo(i.view.document,"arrowKey",function(t,e){return(i,n)=>{const s=(0,r.getLocalizedArrowKeyCodeDirection)(n.keyCode,e.contentLanguageDirection),o=t.schema,l=t.document.selection;if(!l.isCollapsed)return;const a=l.getFirstPosition(),c=a.parent;if("right"==s&&a.isAtEnd){const e=o.getNearestSelectionRange(t.createPositionAfter(c),"forward");if(!e)return;const s=e.start.parent;s&&d(s)&&"todo"==s.getAttribute("listType")&&(t.change((t=>t.setSelection(e))),n.preventDefault(),n.stopPropagation(),i.stop())}else if("left"==s&&a.isAtStart&&d(c)&&"todo"==c.getAttribute("listType")){const e=o.getNearestSelectionRange(t.createPositionBefore(c),"backward");if(!e)return;t.change((t=>t.setSelection(e))),n.preventDefault(),n.stopPropagation(),i.stop()}}}(e,t.locale),{context:"$text"}),this.listenTo(i.mapper,"viewToModelPosition",((t,i)=>{const n=i.viewPosition.parent,s=n.is("attributeElement","li")&&0==i.viewPosition.offset,r=Ke(n)&&i.viewPosition.offset<=1,o=n.is("element","span")&&"false"==n.getAttribute("contenteditable")&&Ke(n.parent);if(!s&&!r&&!o)return;const l=i.modelPosition.nodeAfter;l&&"todo"==l.getAttribute("listType")&&(i.modelPosition=e.createPositionAt(l,0))}),{priority:"low"})}_handleCheckmarkChange(t){const e=this.editor,i=e.model,n=Array.from(i.document.selection.getRanges());i.change((i=>{i.setSelection(t,"end"),e.execute("checkTodoList"),i.setSelection(n)}))}}function je(t){const e=new z.Matcher(t);return(t,i,n)=>{const s=e.match(i.viewItem);s&&n.consumable.consume(i.viewItem,s.match)&&Object.assign(i,n.convertChildren(i.viewItem,i.modelCursor))}}function Ue(t,e){return(t.is("element","paragraph")||t.is("element","listItem"))&&"todo"==t.getAttribute("listType")&&h(t)&&function(t,e){for(const i of t.getAttributeKeys())if(!i.startsWith("selection:")&&!e.includes(i))return!1;return!0}(t,e)}function Ke(t){return!!t&&t.is("attributeElement")&&t.hasClass("todo-list__label")}class $e extends t.Plugin{static get requires(){return[He,Be]}static get pluginName(){return"TodoDocumentList"}}})(),(window.CKEditor5=window.CKEditor5||{}).list=n})(); \ No newline at end of file + */(()=>{var t={118:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}",""]);const r=s},479:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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}",""]);const r=s},463:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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}",""]);const r=s},989:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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)}",""]);const r=s},528:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(609),s=i.n(n)()((function(t){return t[1]}));s.push([t.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}',""]);const r=s},609:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=t(e);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(n)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(s[o]=!0)}for(var l=0;l<t.length;l++){var a=[].concat(t[l]);n&&s[a[0]]||(i&&(a[2]?a[2]="".concat(i," and ").concat(a[2]):a[2]=i),e.push(a))}},e}},62:(t,e,i)=>{"use strict";var n,s=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),o=[];function l(t){for(var e=-1,i=0;i<o.length;i++)if(o[i].identifier===t){e=i;break}return e}function a(t,e){for(var i={},n=[],s=0;s<t.length;s++){var r=t[s],a=e.base?r[0]+e.base:r[0],c=i[a]||0,d="".concat(a," ").concat(c);i[a]=c+1;var u=l(d),m={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(o[u].references++,o[u].updater(m)):o.push({identifier:d,updater:g(m,e),references:1}),n.push(d)}return n}function c(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var s=i.nc;s&&(n.nonce=s)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var o=r(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var d,u=(d=[],function(t,e){return d[t]=e,d.filter(Boolean).join("\n")});function m(t,e,i,n){var s=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=u(e,s);else{var r=document.createTextNode(s),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function p(t,e,i){var n=i.css,s=i.media,r=i.sourceMap;if(s?t.setAttribute("media",s):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var h=null,f=0;function g(t,e){var i,n,s;if(e.singleton){var r=f++;i=h||(h=c(e)),n=m.bind(null,i,r,!1),s=m.bind(null,i,r,!0)}else i=c(e),n=p.bind(null,i,e),s=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else s()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=s());var i=a(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var s=l(i[n]);o[s].references--}for(var r=a(t,e),c=0;c<i.length;c++){var d=l(i[c]);0===o[d].references&&(o[d].updater(),o.splice(d,1))}i=r}}}},945:(t,e,i)=>{t.exports=i(79)("./src/clipboard.js")},704:(t,e,i)=>{t.exports=i(79)("./src/core.js")},492:(t,e,i)=>{t.exports=i(79)("./src/engine.js")},331:(t,e,i)=>{t.exports=i(79)("./src/enter.js")},181:(t,e,i)=>{t.exports=i(79)("./src/typing.js")},273:(t,e,i)=>{t.exports=i(79)("./src/ui.js")},209:(t,e,i)=>{t.exports=i(79)("./src/utils.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{AdjacentListsSupport:()=>wt,DocumentList:()=>vt,DocumentListEditing:()=>tt,DocumentListIndentCommand:()=>S,DocumentListProperties:()=>Kt,DocumentListPropertiesEditing:()=>Mt,DocumentListPropertiesUtils:()=>Bt,DocumentListUtils:()=>V,IndentCommand:()=>$t,List:()=>ue,ListEditing:()=>ce,ListProperties:()=>Ie,ListPropertiesEditing:()=>ge,ListPropertiesUI:()=>jt,ListUI:()=>yt,ListUtils:()=>Gt,TodoDocumentList:()=>je,TodoDocumentListEditing:()=>Re,TodoList:()=>Be,TodoListEditing:()=>Ee,TodoListUI:()=>Pe});var t=i(704),e=i(181),s=i(331),r=i(209);class o{constructor(t,e){this._startElement=t,this._referenceIndent=t.getAttribute("listIndent"),this._isForward="forward"==e.direction,this._includeSelf=!!e.includeSelf,this._sameAttributes=(0,r.toArray)(e.sameAttributes||[]),this._sameIndent=!!e.sameIndent,this._lowerIndent=!!e.lowerIndent,this._higherIndent=!!e.higherIndent}static first(t,e){const i=new this(t,e)[Symbol.iterator]();return(0,r.first)(i)}*[Symbol.iterator](){const t=[];for(const{node:e}of l(this._getStartNode(),this._isForward?"forward":"backward")){const i=e.getAttribute("listIndent");if(i<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=i}else if(i>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){t.push(e);continue}}else{if(!this._sameIndent){if(this._higherIndent){t.length&&(yield*t,t.length=0);break}continue}if(this._sameAttributes.some((t=>e.getAttribute(t)!==this._startElement.getAttribute(t))))break}t.length&&(yield*t,t.length=0),yield e}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*l(t,e="forward"){const i="forward"==e,n=[];let s=null;for(;d(t);){let e=null;if(s){const i=t.getAttribute("listIndent"),r=s.getAttribute("listIndent");i>r?n[r]=s:i<r?(e=n[i],n.length=i):e=s}yield{node:t,previous:s,previousNodeInList:e},s=t,t=i?t.nextSibling:t.previousSibling}}class a{constructor(t){this._listHead=t}[Symbol.iterator](){return l(this._listHead,"forward")}}class c{static next(){return(0,r.uid)()}}function d(t){return!!t&&t.is("element")&&t.hasAttribute("listItemId")}function u(t,e={}){return[...m(t,{...e,direction:"backward"}),...m(t,{...e,direction:"forward"})]}function m(t,e={}){const i="forward"==e.direction,n=Array.from(new o(t,{...e,includeSelf:i,sameIndent:!0,sameAttributes:"listItemId"}));return i?n:n.reverse()}function p(t){const e=new o(t,{sameIndent:!0,sameAttributes:"listType"}),i=new o(t,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward"});return[...Array.from(e).reverse(),...i]}function h(t){return!o.first(t,{sameIndent:!0,sameAttributes:"listItemId"})}function f(t){return!o.first(t,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function g(t,e={}){t=(0,r.toArray)(t);const i=!1!==e.withNested,n=new Set;for(const e of t)for(const t of u(e,{higherIndent:i}))n.add(t);return k(n)}function b(t){t=(0,r.toArray)(t);const e=new Set;for(const i of t)for(const t of p(i))e.add(t);return k(e)}function y(t,e){const i=m(t,{direction:"forward"}),n=c.next();for(const t of i)e.setAttribute("listItemId",n,t);return i}function v(t,e,i){const n={};for(const[t,i]of e.getAttributes())t.startsWith("list")&&(n[t]=i);const s=m(t,{direction:"forward"});for(const t of s)i.setAttributes(n,t);return s}function w(t,e,{expand:i,indentBy:n=1}={}){t=(0,r.toArray)(t);const s=i?g(t):t;for(const t of s){const i=t.getAttribute("listIndent")+n;i<0?A(t,e):e.setAttribute("listIndent",i,t)}return s}function A(t,e){t=(0,r.toArray)(t);for(const i of t)i.is("element","listItem")&&e.rename(i,"paragraph");for(const i of t)for(const t of i.getAttributeKeys())t.startsWith("list")&&e.removeAttribute(t,i);return t}function I(t){if(!t.length)return!1;const e=t[0].getAttribute("listItemId");return!!e&&!t.some((t=>t.getAttribute("listItemId")!=e))}function k(t){return Array.from(t).filter((t=>"$graveyard"!==t.root.rootName)).sort(((t,e)=>t.index-e.index))}function T(t){const e=t.document.selection.getSelectedElement();return e&&t.schema.isObject(e)&&t.schema.isBlock(e)?e:null}function x(t,e){return e.checkChild(t.parent,"listItem")&&e.checkChild(t,"$text")&&!e.isObject(t)}function _(t,e,i){return m(e,{direction:"forward"}).pop().index>t.index?v(t,e,i):[]}class S extends t.Command{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=C(t.document.selection);t.change((t=>{const i=[];I(e)&&!h(e[0])?("forward"==this._direction&&i.push(...w(e,t)),i.push(...y(e[0],t))):"forward"==this._direction?i.push(...w(e,t,{expand:!0})):i.push(...function(t,e){const i=g(t=(0,r.toArray)(t)),n=new Set,s=Math.min(...i.map((t=>t.getAttribute("listIndent")))),l=new Map;for(const t of i)l.set(t,o.first(t,{lowerIndent:!0}));for(const t of i){if(n.has(t))continue;n.add(t);const i=t.getAttribute("listIndent")-1;if(i<0)A(t,e);else{if(t.getAttribute("listIndent")==s){const i=_(t,l.get(t),e);for(const t of i)n.add(t);if(i.length)continue}e.setAttribute("listIndent",i,t)}}return k(n)}(e,t));for(const e of i){if(!e.hasAttribute("listType"))continue;const i=o.first(e,{sameIndent:!0});i&&t.setAttribute("listType",i.getAttribute("listType"),e)}this._fireAfterExecute(i)}))}_fireAfterExecute(t){this.fire("afterExecute",k(new Set(t)))}_checkEnabled(){let t=C(this.editor.model.document.selection),e=t[0];if(!e)return!1;if("backward"==this._direction)return!0;if(I(t)&&!h(t[0]))return!0;t=g(t),e=t[0];const i=o.first(e,{sameIndent:!0});return!!i&&i.getAttribute("listType")==e.getAttribute("listType")}}function C(t){const e=Array.from(t.getSelectedBlocks()),i=e.findIndex((t=>!d(t)));return-1!=i&&(e.length=i),e}class L extends t.Command{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,i=e.document,n=T(e),s=Array.from(i.selection.getSelectedBlocks()).filter((t=>e.schema.checkAttribute(t,"listType")||x(t,e.schema))),r=void 0!==t.forceValue?!t.forceValue:this.value;e.change((t=>{if(r){const e=s[s.length-1],i=m(e,{direction:"forward"}),n=[];i.length>1&&n.push(...y(i[1],t)),n.push(...A(s,t)),n.push(...function(t,e){const i=[];let n=Number.POSITIVE_INFINITY;for(const{node:s}of l(t.nextSibling,"forward")){const t=s.getAttribute("listIndent");if(0==t)break;t<n&&(n=t);const r=t-n;e.setAttribute("listIndent",r,s),i.push(s)}return i}(e,t)),this._fireAfterExecute(n)}else if((n||i.selection.isCollapsed)&&d(s[0])){const e=p(n||s[0]);for(const i of e)t.setAttribute("listType",this.type,i);this._fireAfterExecute(e)}else{const i=[];for(const n of s)if(n.hasAttribute("listType"))for(const e of g(n,{withNested:!1}))e.getAttribute("listType")!=this.type&&(t.setAttribute("listType",this.type,e),i.push(e));else!n.is("element","listItem")&&x(n,e.schema)&&t.rename(n,"listItem"),t.setAttributes({listIndent:0,listItemId:c.next(),listType:this.type},n),i.push(n);this._fireAfterExecute(i)}}))}_fireAfterExecute(t){this.fire("afterExecute",k(new Set(t)))}_getValue(){const t=this.editor.model.document.selection,e=Array.from(t.getSelectedBlocks());if(!e.length)return!1;for(const t of e)if(t.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const t=this.editor.model,e=t.schema,i=t.document.selection,n=Array.from(i.getSelectedBlocks());if(!n.length)return!1;if(this.value)return!0;for(const t of n)if(e.checkAttribute(t,"listType")||x(t,e))return!0;return!1}}class E extends t.Command{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:t=!1}={}){const e=this.editor.model,i=e.document.selection,n=[];e.change((s=>{const{firstElement:r,lastElement:l}=this._getMergeSubjectElements(i,t),a=r.getAttribute("listIndent")||0,c=l.getAttribute("listIndent"),d=l.getAttribute("listItemId");if(a!=c){const t=(u=l,Array.from(new o(u,{direction:"forward",higherIndent:!0})));n.push(...w([l,...t],s,{indentBy:a-c,expand:a<c}))}var u;if(t){let t=i;i.isCollapsed&&(t=s.createSelection(s.createRange(s.createPositionAt(r,"end"),s.createPositionAt(l,0)))),e.deleteContent(t,{doNotResetEntireContent:i.isCollapsed});const o=t.getLastPosition().parent,a=o.nextSibling;n.push(o),a&&a!==l&&a.getAttribute("listItemId")==d&&n.push(...v(a,o,s))}else n.push(...v(l,r,s));this._fireAfterExecute(n)}))}_fireAfterExecute(t){this.fire("afterExecute",k(new Set(t)))}_checkEnabled(){const t=this.editor.model,e=t.document.selection,i=T(t);if(e.isCollapsed||i){const t=i||e.getFirstPosition().parent;if(!d(t))return!1;const n="backward"==this._direction?t.previousSibling:t.nextSibling;if(!n)return!1;if(I([t,n]))return!1}else{const t=e.getLastPosition(),i=e.getFirstPosition();if(t.parent===i.parent)return!1;if(!d(t.parent))return!1}return!0}_getMergeSubjectElements(t,e){const i=T(this.editor.model);let n,s;if(t.isCollapsed||i){const r=i||t.getFirstPosition().parent,l=h(r);"backward"==this._direction?(s=r,n=l&&!e?o.first(r,{sameIndent:!0,lowerIndent:!0}):r.previousSibling):(n=r,s=r.nextSibling)}else n=t.getFirstPosition().parent,s=t.getLastPosition().parent;return{firstElement:n,lastElement:s}}}class P extends t.Command{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change((t=>{const e=y(this._getStartBlock(),t);this._fireAfterExecute(e)}))}_fireAfterExecute(t){this.fire("afterExecute",k(new Set(t)))}_checkEnabled(){const t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&d(e)&&!h(e)}_getStartBlock(){const t=this.editor.model.document.selection.getFirstPosition().parent;return"before"==this._direction?t:t.nextSibling}}class V extends t.Plugin{static get pluginName(){return"DocumentListUtils"}expandListBlocksToCompleteList(t){return b(t)}isFirstBlockOfListItem(t){return h(t)}isListItemBlock(t){return d(t)}expandListBlocksToCompleteItems(t,e={}){return g(t,e)}}var z=i(492);function B(t){return t.is("element","ol")||t.is("element","ul")}function N(t){return t.is("element","li")}function M(t,e,i,n=O(i,e)){return t.createAttributeElement(R(i),null,{priority:2*e/100-100,id:n})}function D(t,e,i){return t.createAttributeElement("li",null,{priority:(2*e+1)/100-100,id:i})}function R(t){return"numbered"==t?"ol":"ul"}function O(t,e){return`list-${t}-${e}`}function F(t,e){const i=t.nodeBefore;if(d(i)){let t=i;for(const{node:i}of l(t,"backward"))if(t=i,e.has(t))return;e.set(i,t)}else{const i=t.nodeAfter;d(i)&&e.set(i,i)}}function H(){return(t,e,i)=>{const{writer:n,schema:s}=i;if(!e.modelRange)return;const r=Array.from(e.modelRange.getItems({shallow:!0})).filter((t=>s.checkAttribute(t,"listItemId")));if(!r.length)return;const o=c.next(),l=function(t){let e=0,i=t.parent;for(;i;){if(N(i))e++;else{const t=i.previousSibling;t&&N(t)&&e++}i=i.parent}return e}(e.viewItem);let a=e.viewItem.parent&&e.viewItem.parent.is("element","ol")?"numbered":"bulleted";const d=r[0].getAttribute("listType");d&&(a=d);const u={listItemId:o,listIndent:l,listType:a};for(const t of r)t.hasAttribute("listItemId")||n.setAttributes(u,t);r.length>1&&r[1].getAttribute("listItemId")!=u.listItemId&&i.keepEmptyElement(r[0])}}function j(){return(t,e,i)=>{if(!i.consumable.test(e.viewItem,{name:!0}))return;const n=new z.UpcastWriter(e.viewItem.document);for(const t of Array.from(e.viewItem.getChildren()))N(t)||B(t)||n.remove(t)}}function U(t,e,i,{dataPipeline:n}={}){const s=function(t){return(e,i)=>{const n=[];for(const i of t)e.hasAttribute(i)&&n.push(`attribute:${i}`);return!!n.every((t=>!1!==i.test(e,t)))&&(n.forEach((t=>i.consume(e,t))),!0)}}(t);return(r,l,a)=>{const{writer:c,mapper:d,consumable:u}=a,m=l.item;if(!t.includes(l.attributeKey))return;if(!s(m,u))return;const p=function(t,e,i){const n=i.createRangeOn(t),s=e.toViewRange(n).getTrimmed();return s.end.nodeBefore}(m,d,i);!function(t,e,i){for(;t.parent.is("attributeElement")&&t.parent.getCustomProperty("listItemWrapper");)e.unwrap(e.createRangeIn(t.parent),t.parent);const n=e.createPositionBefore(t).getWalker({direction:"backward"}),s=[];for(const{item:t}of n){if(t.is("element")&&i.toModelElement(t))break;t.is("element")&&t.getCustomProperty("listItemMarker")&&s.push(t)}for(const t of s)e.remove(t)}(p,c,d),function(t,e){let i=t.parent;for(;i.is("attributeElement")&&["ul","ol","li"].includes(i.name);){const n=i.parent;e.unwrap(e.createRangeOn(t),i),i=n}}(p,c);const f=function(t,e,i,n,{dataPipeline:s}){let r=n.createRangeOn(e);if(!h(t))return r;for(const o of i){if("itemMarker"!=o.scope)continue;const i=o.createElement(n,t,{dataPipeline:s});if(!i)continue;if(n.setCustomProperty("listItemMarker",!0,i),n.insert(r.start,i),r=n.createRange(n.createPositionBefore(i),n.createPositionAfter(e)),!o.createWrapperElement||!o.canWrapElement)continue;const l=o.createWrapperElement(n,t,{dataPipeline:s});n.setCustomProperty("listItemWrapper",!0,l),o.canWrapElement(t)?r=n.wrap(r,l):(r=n.wrap(n.createRangeOn(i),l),r=n.createRange(r.start,n.createPositionAfter(e)))}return r}(m,p,e,c,{dataPipeline:n});!function(t,e,i,n){if(!t.hasAttribute("listIndent"))return;const s=t.getAttribute("listIndent");let r=t;for(let t=s;t>=0;t--){const s=D(n,t,r.getAttribute("listItemId")),l=M(n,t,r.getAttribute("listType"));for(const t of i)"list"!=t.scope&&"item"!=t.scope||!r.hasAttribute(t.attributeName)||t.setAttributeOnDowncast(n,r.getAttribute(t.attributeName),"list"==t.scope?l:s);if(e=n.wrap(e,s),e=n.wrap(e,l),0==t)break;if(r=o.first(r,{lowerIndent:!0}),!r)break}}(m,f,e,c)}}function K(t,{dataPipeline:e}={}){return(i,{writer:n})=>{if(!$(i,t))return null;if(!e)return n.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const s=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,s),s}}function $(t,e,i=u(t)){if(!d(t))return!1;for(const i of t.getAttributeKeys())if(!i.startsWith("selection:")&&!e.includes(i))return!1;return i.length<2}var q=i(945),W=i(62),Z=i.n(W),G=i(118),Y={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(G.Z,Y);G.Z.locals;var J=i(479),Q={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(J.Z,Q);J.Z.locals;const X=["listType","listIndent","listItemId"];class tt extends t.Plugin{static get pluginName(){return"DocumentListEditing"}static get requires(){return[s.Enter,e.Delete,V,q.ClipboardPipeline]}constructor(t){super(t),this._downcastStrategies=[],t.config.define("list.multiBlock",!0)}init(){const t=this.editor,e=t.model,i=t.config.get("list.multiBlock");if(t.plugins.has("ListEditing"))throw new r.CKEditorError("document-list-feature-conflict",this,{conflictPlugin:"ListEditing"});e.schema.register("$listItem",{allowAttributes:X}),i?(e.schema.extend("$container",{allowAttributesOf:"$listItem"}),e.schema.extend("$block",{allowAttributesOf:"$listItem"}),e.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):e.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const t of X)e.schema.setAttributeProperties(t,{copyOnReplace:!0});t.commands.add("numberedList",new L(t,"numbered")),t.commands.add("bulletedList",new L(t,"bulleted")),t.commands.add("indentList",new S(t,"forward")),t.commands.add("outdentList",new S(t,"backward")),t.commands.add("splitListItemBefore",new P(t,"before")),t.commands.add("splitListItemAfter",new P(t,"after")),i&&(t.commands.add("mergeListItemBackward",new E(t,"backward")),t.commands.add("mergeListItemForward",new E(t,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration()}afterInit(){const t=this.editor.commands,e=t.get("indent"),i=t.get("outdent");e&&e.registerChildCommand(t.get("indentList"),{priority:"high"}),i&&i.registerChildCommand(t.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(t){this._downcastStrategies.push(t)}getListAttributeNames(){return[...X,...this._downcastStrategies.map((t=>t.attributeName))]}_setupDeleteIntegration(){const t=this.editor,e=t.commands.get("mergeListItemBackward"),i=t.commands.get("mergeListItemForward");this.listenTo(t.editing.view.document,"delete",((n,s)=>{const r=t.model.document.selection;T(t.model)||t.model.change((()=>{const l=r.getFirstPosition();if(r.isCollapsed&&"backward"==s.direction){if(!l.isAtStart)return;const i=l.parent;if(!d(i))return;if(o.first(i,{sameAttributes:"listType",sameIndent:!0})||0!==i.getAttribute("listIndent")){if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:et(t.model,"backward")})}else f(i)||t.execute("splitListItemAfter"),t.execute("outdentList");s.preventDefault(),n.stop()}else{if(r.isCollapsed&&!r.getLastPosition().isAtEnd)return;if(!i||!i.isEnabled)return;i.execute({shouldMergeOnBlocksContentLevel:et(t.model,"forward")}),s.preventDefault(),n.stop()}}))}),{context:"li"})}_setupEnterIntegration(){const t=this.editor,e=t.model,i=t.commands,n=i.get("enter");this.listenTo(t.editing.view.document,"enter",((i,n)=>{const s=e.document,r=s.selection.getFirstPosition().parent;if(s.selection.isCollapsed&&d(r)&&r.isEmpty&&!n.isSoft){const e=h(r),s=f(r);e&&s?(t.execute("outdentList"),n.preventDefault(),i.stop()):e&&!s?(t.execute("splitListItemAfter"),n.preventDefault(),i.stop()):s&&(t.execute("splitListItemBefore"),n.preventDefault(),i.stop())}}),{context:"li"}),this.listenTo(n,"afterExecute",(()=>{const e=i.get("splitListItemBefore");if(e.refresh(),!e.isEnabled)return;2===u(t.model.document.selection.getLastPosition().parent).length&&e.execute()}))}_setupTabIntegration(){const t=this.editor;this.listenTo(t.editing.view.document,"tab",((e,i)=>{const n=i.shiftKey?"outdentList":"indentList";this.editor.commands.get(n).isEnabled&&(t.execute(n),i.stopPropagation(),i.preventDefault(),e.stop())}),{context:"li"})}_setupConversion(){const t=this.editor,e=t.model,i=this.getListAttributeNames(),n=t.config.get("list.multiBlock"),s=n?"paragraph":"listItem";t.conversion.for("upcast").elementToElement({view:"li",model:(t,{writer:e})=>e.createElement(s,{listType:""})}).elementToElement({view:"p",model:(t,{writer:e})=>t.parent&&t.parent.is("element","li")?e.createElement(s,{listType:""}):null,converterPriority:"high"}).add((t=>{t.on("element:li",H()),t.on("element:ul",j(),{priority:"high"}),t.on("element:ol",j(),{priority:"high"})})),n||t.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),t.conversion.for("editingDowncast").elementToElement({model:s,view:K(i),converterPriority:"high"}).add((t=>{t.on("attribute",U(i,this._downcastStrategies,e))})),t.conversion.for("dataDowncast").elementToElement({model:s,view:K(i,{dataPipeline:!0}),converterPriority:"high"}).add((t=>{t.on("attribute",U(i,this._downcastStrategies,e,{dataPipeline:!0}))})),this.listenTo(e.document,"change:data",function(t,e,i,n){return()=>{const n=t.document.differ.getChanges(),o=[],l=new Map,a=new Set;for(const t of n)if("insert"==t.type&&"$text"!=t.name)F(t.position,l),t.attributes.has("listItemId")?a.add(t.position.nodeAfter):F(t.position.getShiftedBy(t.length),l);else if("remove"==t.type&&t.attributes.has("listItemId"))F(t.position,l);else if("attribute"==t.type){const e=t.range.start.nodeAfter;i.includes(t.attributeKey)?(F(t.range.start,l),null===t.attributeNewValue?(F(t.range.start.getShiftedBy(1),l),r(e)&&o.push(e)):a.add(e)):d(e)&&r(e)&&o.push(e)}for(const t of l.values())o.push(...s(t,a));for(const t of new Set(o))e.reconvertItem(t)};function s(t,e){const n=[],s=new Set,a=[];for(const{node:c,previous:d}of l(t,"forward")){if(s.has(c))continue;const t=c.getAttribute("listIndent");d&&t<d.getAttribute("listIndent")&&(a.length=t+1),a[t]=Object.fromEntries(Array.from(c.getAttributes()).filter((([t])=>i.includes(t))));const l=m(c,{direction:"forward"});for(const t of l)s.add(t),(r(t,l)||o(t,a,e))&&n.push(t)}return n}function r(t,s){const r=e.mapper.toViewElement(t);if(!r)return!1;if(n.fire("checkElement",{modelElement:t,viewElement:r}))return!0;if(!t.is("element","paragraph")&&!t.is("element","listItem"))return!1;const o=$(t,i,s);return!(!o||!r.is("element","p"))||!(o||!r.is("element","span"))}function o(t,i,s){if(s.has(t))return!1;const r=e.mapper.toViewElement(t);let o=i.length-1;for(let t=r.parent;!t.is("editableElement");t=t.parent){const e=N(t),s=B(t);if(!s&&!e)continue;const r="checkAttributes:"+(e?"item":"list");if(n.fire(r,{viewElement:t,modelAttributes:i[o]}))break;if(s&&(o--,o<0))return!1}return!0}}(e,t.editing,i,this),{priority:"high"}),this.on("checkAttributes:item",((t,{viewElement:e,modelAttributes:i})=>{e.id!=i.listItemId&&(t.return=!0,t.stop())})),this.on("checkAttributes:list",((t,{viewElement:e,modelAttributes:i})=>{e.name==R(i.listType)&&e.id==O(i.listType,i.listIndent)||(t.return=!0,t.stop())}))}_setupModelPostFixing(){const t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer((i=>function(t,e,i,n){const s=t.document.differ.getChanges(),r=new Map,o=n.editor.config.get("list.multiBlock");let l=!1;for(const n of s){if("insert"==n.type&&"$text"!=n.name){const s=n.position.nodeAfter;if(!t.schema.checkAttribute(s,"listItemId"))for(const t of Array.from(s.getAttributeKeys()))i.includes(t)&&(e.removeAttribute(t,s),l=!0);F(n.position,r),n.attributes.has("listItemId")||F(n.position.getShiftedBy(n.length),r);for(const{item:e,previousPosition:i}of t.createRangeIn(s))d(e)&&F(i,r)}else"remove"==n.type?F(n.position,r):"attribute"==n.type&&i.includes(n.attributeKey)&&(F(n.range.start,r),null===n.attributeNewValue&&F(n.range.start.getShiftedBy(1),r));if(!o&&"attribute"==n.type&&X.includes(n.attributeKey)){const t=n.range.start.nodeAfter;null===n.attributeNewValue&&t&&t.is("element","listItem")?(e.rename(t,"paragraph"),l=!0):null===n.attributeOldValue&&t&&t.is("element")&&"listItem"!=t.name&&(e.rename(t,"listItem"),l=!0)}}const c=new Set;for(const t of r.values())l=n.fire("postFixer",{listNodes:new a(t),listHead:t,writer:e,seenIds:c})||l;return l}(t,i,e,this))),this.on("postFixer",((t,{listNodes:e,writer:i})=>{t.return=function(t,e){let i=0,n=-1,s=null,r=!1;for(const{node:o}of t){const t=o.getAttribute("listIndent");if(t>i){let l;null===s?(s=t-i,l=i):(s>t&&(s=t),l=t-s),l>n+1&&(l=n+1),e.setAttribute("listIndent",l,o),r=!0,n=l}else s=null,i=t+1,n=t}return r}(e,i)||t.return}),{priority:"high"}),this.on("postFixer",((t,{listNodes:e,writer:i,seenIds:n})=>{t.return=function(t,e,i){const n=new Set;let s=!1;for(const{node:r}of t){if(n.has(r))continue;let t=r.getAttribute("listType"),o=r.getAttribute("listItemId");if(e.has(o)&&(o=c.next()),e.add(o),r.is("element","listItem"))r.getAttribute("listItemId")!=o&&(i.setAttribute("listItemId",o,r),s=!0);else for(const e of m(r,{direction:"forward"}))n.add(e),e.getAttribute("listType")!=t&&(o=c.next(),t=e.getAttribute("listType")),e.getAttribute("listItemId")!=o&&(i.setAttribute("listItemId",o,e),s=!0)}return s}(e,n,i)||t.return}),{priority:"high"})}_setupClipboardIntegration(){const t=this.editor.model,e=this.editor.plugins.get("ClipboardPipeline");this.listenTo(t,"insertContent",function(t){return(e,[i,n])=>{const s=i.is("documentFragment")?Array.from(i.getChildren()):[i];if(!s.length)return;const r=(n?t.createSelection(n):t.document.selection).getFirstPosition();let o;if(d(r.parent))o=r.parent;else{if(!d(r.nodeBefore))return;o=r.nodeBefore}t.change((t=>{const e=o.getAttribute("listType"),i=o.getAttribute("listIndent"),n=s[0].getAttribute("listIndent")||0,r=Math.max(i-n,0);for(const i of s){const n=d(i);o.is("element","listItem")&&i.is("element","paragraph")&&t.rename(i,"listItem"),t.setAttributes({listIndent:(n?i.getAttribute("listIndent"):0)+r,listItemId:n?i.getAttribute("listItemId"):c.next(),listType:e},i)}}))}}(t),{priority:"high"}),this.listenTo(e,"outputTransformation",((e,i)=>{t.change((t=>{const e=Array.from(i.content.getChildren()),n=e[e.length-1];if(e.length>1&&n.is("element")&&n.isEmpty){e.slice(0,-1).every(d)&&t.remove(n)}if("copy"==i.method||"cut"==i.method){const e=Array.from(i.content.getChildren());I(e)&&A(e,t)}}))}))}}function et(t,e){const i=t.document.selection;if(!i.isCollapsed)return!T(t);if("forward"===e)return!0;const n=i.getFirstPosition().parent,s=n.previousSibling;return!t.schema.isObject(s)&&(!!s.isEmpty||I([n,s]))}var it=i(273);function nt(t,e){const i=e.mapper,n=e.writer,s="numbered"==t.getAttribute("listType")?"ol":"ul",r=function(t){const e=t.createContainerElement("li");return e.getFillerOffset=ft,e}(n),o=n.createContainerElement(s,null);return n.insert(n.createPositionAt(o,0),r),i.bindElements(t,r),r}function st(t,e,i,n){const s=e.parent,r=i.mapper,o=i.writer;let l=r.toViewPosition(n.createPositionBefore(t));const a=lt(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),c=t.previousSibling;if(a&&a.getAttribute("listIndent")==t.getAttribute("listIndent")){const t=r.toViewElement(a);l=o.breakContainer(o.createPositionAfter(t))}else if(c&&"listItem"==c.name){l=r.toViewPosition(n.createPositionAt(c,"end"));const t=r.findMappedViewAncestor(l),e=ct(t);l=e?o.createPositionBefore(e):o.createPositionAt(t,"end")}else l=r.toViewPosition(n.createPositionBefore(t));if(l=ot(l),o.insert(l,s),c&&"listItem"==c.name){const t=r.toViewElement(c),i=o.createRange(o.createPositionAt(t,0),l).getWalker({ignoreElementEnd:!0});for(const t of i)if(t.item.is("element","li")){const n=o.breakContainer(o.createPositionBefore(t.item)),s=t.item.parent,r=o.createPositionAt(e,"end");rt(o,r.nodeBefore,r.nodeAfter),o.move(o.createRangeOn(s),r),i._position=n}}else{const i=s.nextSibling;if(i&&(i.is("element","ul")||i.is("element","ol"))){let n=null;for(const e of i.getChildren()){const i=r.toModelElement(e);if(!(i&&i.getAttribute("listIndent")>t.getAttribute("listIndent")))break;n=e}n&&(o.breakContainer(o.createPositionAfter(n)),o.move(o.createRangeOn(n.parent),o.createPositionAt(e,"end")))}}rt(o,s,s.nextSibling),rt(o,s.previousSibling,s)}function rt(t,e,i){return!e||!i||"ul"!=e.name&&"ol"!=e.name||e.name!=i.name||e.getAttribute("class")!==i.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function ot(t){return t.getLastMatchingPosition((t=>t.item.is("uiElement")))}function lt(t,e){const i=!!e.sameIndent,n=!!e.smallerIndent,s=e.listIndent;let r=t;for(;r&&"listItem"==r.name;){const t=r.getAttribute("listIndent");if(i&&s==t||n&&s>t)return r;r="forward"===e.direction?r.nextSibling:r.previousSibling}return null}function at(t,e,i,n){t.ui.componentFactory.add(e,(s=>{const r=t.commands.get(e),o=new it.ButtonView(s);return o.set({label:i,icon:n,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),o.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),o}))}function ct(t){for(const e of t.getChildren())if("ul"==e.name||"ol"==e.name)return e;return null}function dt(t,e){const i=[],n=t.parent,s={ignoreElementEnd:!1,startPosition:t,shallow:!0,direction:e},r=n.getAttribute("listIndent"),o=[...new z.TreeWalker(s)].filter((t=>t.item.is("element"))).map((t=>t.item));for(const t of o){if(!t.is("element","listItem"))break;if(t.getAttribute("listIndent")<r)break;if(!(t.getAttribute("listIndent")>r)){if(t.getAttribute("listType")!==n.getAttribute("listType"))break;if(t.getAttribute("listStyle")!==n.getAttribute("listStyle"))break;if(t.getAttribute("listReversed")!==n.getAttribute("listReversed"))break;if(t.getAttribute("listStart")!==n.getAttribute("listStart"))break;"backward"===e?i.unshift(t):i.push(t)}}return i}function ut(t){let e=[...t.document.selection.getSelectedBlocks()].filter((t=>t.is("element","listItem"))).map((e=>{const i=t.change((t=>t.createPositionAt(e,0)));return[...dt(i,"backward"),...dt(i,"forward")]})).flat();return e=[...new Set(e)],e}const mt=["disc","circle","square"],pt=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function ht(t){return mt.includes(t)?"bulleted":pt.includes(t)?"numbered":null}function ft(){const t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:z.getFillerOffset.call(this)}const gt='<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>',bt='<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 yt extends t.Plugin{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;at(this.editor,"numberedList",t("Numbered List"),gt),at(this.editor,"bulletedList",t("Bulleted List"),bt)}}class vt extends t.Plugin{static get requires(){return[tt,yt]}static get pluginName(){return"DocumentList"}}class wt extends t.Plugin{static get pluginName(){return"AdjacentListsSupport"}init(){const t=this.editor;t.model.schema.register("listSeparator",{allowWhere:"$block",isBlock:!0}),t.conversion.for("upcast").add((t=>{t.on("element:ol",At()),t.on("element:ul",At())})).elementToElement({model:"listSeparator",view:"ck-list-separator"}),t.conversion.for("editingDowncast").elementToElement({model:"listSeparator",view:{name:"div",classes:["ck-list-separator","ck-hidden"]}}),t.conversion.for("dataDowncast").elementToElement({model:"listSeparator",view:(t,e)=>{const i=e.writer.createContainerElement("ck-list-separator");return e.writer.setCustomProperty("dataPipeline:transparentRendering",!0,i),i.getFillerOffset=()=>null,i}})}}function At(){return(t,e,i)=>{const n=e.viewItem,s=n.nextSibling;if(!s)return;if(n.name!==s.name)return;e.modelRange||Object.assign(e,i.convertChildren(e.viewItem,e.modelCursor));const r=i.writer,o=r.createElement("listSeparator");if(!i.safeInsert(o,e.modelCursor))return;const l=i.getSplitParts(o);e.modelRange=r.createRange(e.modelRange.start,r.createPositionAfter(l[l.length-1])),i.updateConversionResult(o,e)}}class It extends t.Command{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute({startIndex:t=1}={}){const e=this.editor.model,i=e.document;let n=Array.from(i.selection.getSelectedBlocks()).filter((t=>d(t)&&"numbered"==t.getAttribute("listType")));n=b(n),e.change((e=>{for(const i of n)e.setAttribute("listStart",t>=0?t:1,i)}))}_getValue(){const t=this.editor.model.document,e=(0,r.first)(t.selection.getSelectedBlocks());return e&&d(e)&&"numbered"==e.getAttribute("listType")?e.getAttribute("listStart"):null}}const kt={},Tt={},xt={},_t=[{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:t,typeAttribute:e,listType:i}of _t)kt[t]=i,Tt[t]=e,e&&(xt[e]=t);function St(){return _t.map((t=>t.listStyle))}function Ct(t){return kt[t]||null}function Lt(t){return xt[t]||null}function Et(t){return Tt[t]||null}class Pt extends t.Command{constructor(t,e,i){super(t),this.defaultType=e,this._supportedTypes=i}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,i=e.document;e.change((e=>{this._tryToConvertItemsToList(t);let n=Array.from(i.selection.getSelectedBlocks()).filter((t=>t.hasAttribute("listType")));if(n.length){n=b(n);for(const i of n)e.setAttribute("listStyle",t.type||this.defaultType,i)}}))}isStyleTypeSupported(t){return!this._supportedTypes||this._supportedTypes.includes(t)}_getValue(){const t=(0,r.first)(this.editor.model.document.selection.getSelectedBlocks());return d(t)?t.getAttribute("listStyle"):null}_checkEnabled(){const t=this.editor,e=t.commands.get("numberedList"),i=t.commands.get("bulletedList");return e.isEnabled||i.isEnabled}_tryToConvertItemsToList(t){if(!t.type)return;const e=Ct(t.type);if(!e)return;const i=this.editor,n=`${e}List`;i.commands.get(n).value||i.execute(n)}}class Vt extends t.Command{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute(t={}){const e=this.editor.model,i=e.document;let n=Array.from(i.selection.getSelectedBlocks()).filter((t=>d(t)&&"numbered"==t.getAttribute("listType")));n=b(n),e.change((e=>{for(const i of n)e.setAttribute("listReversed",!!t.reversed,i)}))}_getValue(){const t=this.editor.model.document,e=(0,r.first)(t.selection.getSelectedBlocks());return d(e)&&"numbered"==e.getAttribute("listType")?e.getAttribute("listReversed"):null}}function zt(t){return(e,i,n)=>{const{writer:s,schema:r,consumable:o}=n;if(!1===o.test(i.viewItem,t.viewConsumables))return;i.modelRange||Object.assign(i,n.convertChildren(i.viewItem,i.modelCursor));let l=!1;for(const e of i.modelRange.getItems({shallow:!0}))r.checkAttribute(e,t.attributeName)&&t.appliesToListItem(e)&&(e.hasAttribute(t.attributeName)||(s.setAttribute(t.attributeName,t.getAttributeOnUpcast(i.viewItem),e),l=!0));l&&o.consume(i.viewItem,t.viewConsumables)}}class Bt extends t.Plugin{static get pluginName(){return"DocumentListPropertiesUtils"}getAllSupportedStyleTypes(){return St()}getListTypeFromListStyleType(t){return Ct(t)}getListStyleTypeFromTypeAttribute(t){return Lt(t)}getTypeAttributeFromListStyleType(t){return Et(t)}}const Nt="default";class Mt extends t.Plugin{static get requires(){return[tt,Bt]}static get pluginName(){return"DocumentListPropertiesEditing"}constructor(t){super(t),t.config.define("list.properties",{styles:!0,startIndex:!1,reversed:!1})}init(){const t=this.editor,e=t.model,i=t.plugins.get(tt),n=function(t){const e=[];if(t.styles){const i="object"==typeof t.styles&&t.styles.useAttribute;e.push({attributeName:"listStyle",defaultValue:Nt,viewConsumables:{styles:"list-style-type"},addCommand(t){let e=St();i&&(e=e.filter((t=>!!Et(t)))),t.commands.add("listStyle",new Pt(t,Nt,e))},appliesToListItem:t=>"numbered"==t.getAttribute("listType")||"bulleted"==t.getAttribute("listType"),hasValidAttribute(t){if(!this.appliesToListItem(t))return!t.hasAttribute("listStyle");if(!t.hasAttribute("listStyle"))return!1;const e=t.getAttribute("listStyle");return e==Nt||Ct(e)==t.getAttribute("listType")},setAttributeOnDowncast(t,e,n){if(e&&e!==Nt){if(!i)return void t.setStyle("list-style-type",e,n);{const i=Et(e);if(i)return void t.setAttribute("type",i,n)}}t.removeStyle("list-style-type",n),t.removeAttribute("type",n)},getAttributeOnUpcast(t){const e=t.getStyle("list-style-type");if(e)return e;const i=t.getAttribute("type");return i?Lt(i):Nt}})}t.reversed&&e.push({attributeName:"listReversed",defaultValue:!1,viewConsumables:{attributes:"reversed"},addCommand(t){t.commands.add("listReversed",new Vt(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),hasValidAttribute(t){return this.appliesToListItem(t)==t.hasAttribute("listReversed")},setAttributeOnDowncast(t,e,i){e?t.setAttribute("reversed","reversed",i):t.removeAttribute("reversed",i)},getAttributeOnUpcast:t=>t.hasAttribute("reversed")});t.startIndex&&e.push({attributeName:"listStart",defaultValue:1,viewConsumables:{attributes:"start"},addCommand(t){t.commands.add("listStart",new It(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),hasValidAttribute(t){return this.appliesToListItem(t)==t.hasAttribute("listStart")},setAttributeOnDowncast(t,e,i){0==e||e>1?t.setAttribute("start",e,i):t.removeAttribute("start",i)},getAttributeOnUpcast(t){const e=t.getAttribute("start");return e>=0?e:1}});return e}(t.config.get("list.properties"));for(const s of n)s.addCommand(t),e.schema.extend("$listItem",{allowAttributes:s.attributeName}),i.registerDowncastStrategy({scope:"list",attributeName:s.attributeName,setAttributeOnDowncast(t,e,i){s.setAttributeOnDowncast(t,e,i)}});t.conversion.for("upcast").add((t=>{for(const e of n)t.on("element:ol",zt(e)),t.on("element:ul",zt(e))})),i.on("checkAttributes:list",((t,{viewElement:e,modelAttributes:i})=>{for(const s of n)s.getAttributeOnUpcast(e)!=i[s.attributeName]&&(t.return=!0,t.stop())})),this.listenTo(t.commands.get("indentList"),"afterExecute",((t,i)=>{e.change((t=>{for(const e of i)for(const i of n)i.appliesToListItem(e)&&t.setAttribute(i.attributeName,i.defaultValue,e)}))})),i.on("postFixer",((t,{listNodes:e,writer:i})=>{for(const{node:s}of e)for(const e of n)e.hasValidAttribute(s)||(e.appliesToListItem(s)?i.setAttribute(e.attributeName,e.defaultValue,s):i.removeAttribute(e.attributeName,s),t.return=!0)})),i.on("postFixer",((t,{listNodes:e,writer:i})=>{for(const{node:s,previousNodeInList:r}of e)if(r&&r.getAttribute("listType")==s.getAttribute("listType"))for(const e of n){const{attributeName:n}=e;if(!e.appliesToListItem(s))continue;const o=r.getAttribute(n);s.getAttribute(n)!=o&&(i.setAttribute(n,o,s),t.return=!0)}}))}}var Dt=i(463),Rt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(Dt.Z,Rt);Dt.Z.locals;class Ot extends it.View{constructor(t,{enabledProperties:e,styleButtonViews:i,styleGridAriaLabel:n}){super(t),this.stylesView=null,this.additionalPropertiesCollapsibleView=null,this.startIndexFieldView=null,this.reversedSwitchButtonView=null,this.focusTracker=new r.FocusTracker,this.keystrokes=new r.KeystrokeHandler,this.focusables=new it.ViewCollection;const s=["ck","ck-list-properties"];this.children=this.createCollection(),this.focusCycler=new it.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),e.styles?(this.stylesView=this._createStylesView(i,n),this.children.add(this.stylesView)):s.push("ck-list-properties_without-styles"),(e.startIndex||e.reversed)&&(this._addNumberedListPropertyViews(e),s.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:s},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element),(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element));for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,it.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>r.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createStylesView(t,e){const i=new it.View(this.locale);return i.children=i.createCollection(),i.children.addMany(t),i.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-list-styles-list"]},children:i.children}),i.children.delegate("execute").to(this),i.focus=function(){this.children.first.focus()},i.focusTracker=new r.FocusTracker,i.keystrokes=new r.KeystrokeHandler,i.render(),i.keystrokes.listenTo(i.element),i}_addNumberedListPropertyViews(t){const e=this.locale.t,i=[];t.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),i.push(this.startIndexFieldView)),t.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),i.push(this.reversedSwitchButtonView)),t.styles?(this.additionalPropertiesCollapsibleView=new it.CollapsibleView(this.locale,i),this.additionalPropertiesCollapsibleView.set({label:e("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(i,"isEnabled",((...t)=>t.some((t=>t)))),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",((t,e,i)=>{i||(this.additionalPropertiesCollapsibleView.isCollapsed=!0)})),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(i)}_createStartIndexField(){const t=this.locale.t,e=new it.LabeledFieldView(this.locale,it.createLabeledInputNumber);return e.set({label:t("Start at"),class:"ck-numbered-list-properties__start-index"}),e.fieldView.set({min:0,step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",(()=>{const i=e.fieldView.element,n=i.valueAsNumber;Number.isNaN(n)||(i.checkValidity()?this.fire("listStart",{startIndex:n}):e.errorText=t("Start index must be greater than 0."))})),e}_createReversedSwitchButton(){const t=this.locale.t,e=new it.SwitchButtonView(this.locale);return e.set({withText:!0,label:t("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),e.delegate("execute").to(this,"listReversed"),e}}var Ft=i(989),Ht={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(Ft.Z,Ht);Ft.Z.locals;class jt extends t.Plugin{static get pluginName(){return"ListPropertiesUI"}init(){const t=this.editor,e=t.locale.t,i=t.config.get("list.properties");i.styles&&t.ui.componentFactory.add("bulletedList",Ut({editor:t,parentCommandName:"bulletedList",buttonLabel:e("Bulleted List"),buttonIcon:bt,styleGridAriaLabel:e("Bulleted list styles toolbar"),styleDefinitions:[{label:e("Toggle the disc list style"),tooltip:e("Disc"),type:"disc",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>'},{label:e("Toggle the circle list style"),tooltip:e("Circle"),type:"circle",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>'},{label:e("Toggle the square list style"),tooltip:e("Square"),type:"square",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"/></svg>'}]})),(i.styles||i.startIndex||i.reversed)&&t.ui.componentFactory.add("numberedList",Ut({editor:t,parentCommandName:"numberedList",buttonLabel:e("Numbered List"),buttonIcon:gt,styleGridAriaLabel:e("Numbered list styles toolbar"),styleDefinitions:[{label:e("Toggle the decimal list style"),tooltip:e("Decimal"),type:"decimal",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.16.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>'},{label:e("Toggle the decimal with leading zero list style"),tooltip:e("Decimal with leading zero"),type:"decimal-leading-zero",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the lower–roman list style"),tooltip:e("Lower–roman"),type:"lower-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the upper–roman list style"),tooltip:e("Upper-roman"),type:"upper-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the lower–latin list style"),tooltip:e("Lower-latin"),type:"lower-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the upper–latin list style"),tooltip:e("Upper-latin"),type:"upper-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z"/></svg>'}]}))}}function Ut({editor:t,parentCommandName:e,buttonLabel:i,buttonIcon:n,styleGridAriaLabel:s,styleDefinitions:r}){const o=t.commands.get(e);return l=>{const a=(0,it.createDropdown)(l,it.SplitButtonView),c=a.buttonView;return a.bind("isEnabled").to(o),a.class="ck-list-styles-dropdown",c.on("execute",(()=>{t.execute(e),t.editing.view.focus()})),c.set({label:i,icon:n,tooltip:!0,isToggleable:!0}),c.bind("isOn").to(o,"value",(t=>!!t)),a.once("change:isOpen",(()=>{const i=function({editor:t,dropdownView:e,parentCommandName:i,styleDefinitions:n,styleGridAriaLabel:s}){const r=t.locale,o=t.config.get("list.properties");let l=null;"numberedList"!=i&&(o.startIndex=!1,o.reversed=!1);if(o.styles){const e=t.commands.get("listStyle"),s=function({editor:t,listStyleCommand:e,parentCommandName:i}){const n=t.locale,s=t.commands.get(i);return({label:i,type:r,icon:o,tooltip:l})=>{const a=new it.ButtonView(n);return a.set({label:i,icon:o,tooltip:l}),e.on("change:value",(()=>{a.isOn=e.value===r})),a.on("execute",(()=>{s.value?e.value!==r?t.execute("listStyle",{type:r}):t.execute("listStyle",{type:e.defaultType}):t.model.change((()=>{t.execute("listStyle",{type:r})}))})),a}}({editor:t,parentCommandName:i,listStyleCommand:e}),r="function"==typeof e.isStyleTypeSupported?t=>e.isStyleTypeSupported(t.type):()=>!0;l=n.filter(r).map(s)}const a=new Ot(r,{styleGridAriaLabel:s,enabledProperties:o,styleButtonViews:l});o.styles&&(0,it.focusChildOnDropdownOpen)(e,(()=>a.stylesView.children.find((t=>t.isOn))));if(o.startIndex){const e=t.commands.get("listStart");a.startIndexFieldView.bind("isEnabled").to(e),a.startIndexFieldView.fieldView.bind("value").to(e),a.on("listStart",((e,i)=>t.execute("listStart",i)))}if(o.reversed){const e=t.commands.get("listReversed");a.reversedSwitchButtonView.bind("isEnabled").to(e),a.reversedSwitchButtonView.bind("isOn").to(e,"value",(t=>!!t)),a.on("listReversed",(()=>{const i=e.value;t.execute("listReversed",{reversed:!i})}))}return a.delegate("execute").to(e),a}({editor:t,dropdownView:a,parentCommandName:e,styleGridAriaLabel:s,styleDefinitions:r});a.panelView.children.add(i)})),a.on("execute",(()=>{t.editing.view.focus()})),a}}class Kt extends t.Plugin{static get requires(){return[Mt,jt]}static get pluginName(){return"DocumentListProperties"}}class $t extends t.Command{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let i=Array.from(e.selection.getSelectedBlocks());t.change((t=>{const e=i[i.length-1];let n=e.nextSibling;for(;n&&"listItem"==n.name&&n.getAttribute("listIndent")>e.getAttribute("listIndent");)i.push(n),n=n.nextSibling;this._indentBy<0&&(i=i.reverse());for(const e of i){const i=e.getAttribute("listIndent")+this._indentBy;i<0?t.rename(e,"paragraph"):t.setAttribute("listIndent",i,e)}this.fire("_executeCleanup",i)}))}_checkEnabled(){const t=(0,r.first)(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),i=t.getAttribute("listType");let n=t.previousSibling;for(;n&&n.is("element","listItem")&&n.getAttribute("listIndent")>=e;){if(n.getAttribute("listIndent")==e)return n.getAttribute("listType")==i;n=n.previousSibling}return!1}return!0}}class qt extends t.Command{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,i=e.document,n=Array.from(i.selection.getSelectedBlocks()).filter((t=>Zt(t,e.schema))),s=void 0!==t.forceValue?!t.forceValue:this.value;e.change((t=>{if(s){let e=n[n.length-1].nextSibling,i=Number.POSITIVE_INFINITY,s=[];for(;e&&"listItem"==e.name&&0!==e.getAttribute("listIndent");){const t=e.getAttribute("listIndent");t<i&&(i=t);const n=t-i;s.push({element:e,listIndent:n}),e=e.nextSibling}s=s.reverse();for(const e of s)t.setAttribute("listIndent",e.listIndent,e.element)}if(!s){let t=Number.POSITIVE_INFINITY;for(const e of n)e.is("element","listItem")&&e.getAttribute("listIndent")<t&&(t=e.getAttribute("listIndent"));t=0===t?1:t,Wt(n,!0,t),Wt(n,!1,t)}for(const e of n.reverse())s&&"listItem"==e.name?t.rename(e,"paragraph"):s||"listItem"==e.name?s||"listItem"!=e.name||e.getAttribute("listType")==this.type||t.setAttribute("listType",this.type,e):(t.setAttributes({listType:this.type,listIndent:0},e),t.rename(e,"listItem"));this.fire("_executeCleanup",n)}))}_getValue(){const t=(0,r.first)(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,i=(0,r.first)(t.getSelectedBlocks());return!!i&&Zt(i,e)}}function Wt(t,e,i){const n=e?t[0]:t[t.length-1];if(n.is("element","listItem")){let s=n[e?"previousSibling":"nextSibling"],r=n.getAttribute("listIndent");for(;s&&s.is("element","listItem")&&s.getAttribute("listIndent")>=i;)r>s.getAttribute("listIndent")&&(r=s.getAttribute("listIndent")),s.getAttribute("listIndent")==r&&t[e?"unshift":"push"](s),s=s[e?"previousSibling":"nextSibling"]}}function Zt(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}class Gt extends t.Plugin{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return ht(t)}getSelectedListItems(t){return ut(t)}getSiblingNodes(t,e){return dt(t,e)}}function Yt(t){return(e,i,n)=>{const s=n.consumable;if(!s.test(i.item,"insert")||!s.test(i.item,"attribute:listType")||!s.test(i.item,"attribute:listIndent"))return;s.consume(i.item,"insert"),s.consume(i.item,"attribute:listType"),s.consume(i.item,"attribute:listIndent");const r=i.item;st(r,nt(r,n),n,t)}}const Jt=(t,e,i)=>{if(!i.consumable.test(e.item,t.name))return;const n=i.mapper.toViewElement(e.item),s=i.writer;s.breakContainer(s.createPositionBefore(n)),s.breakContainer(s.createPositionAfter(n));const r=n.parent,o="numbered"==e.attributeNewValue?"ol":"ul";s.rename(o,r)},Qt=(t,e,i)=>{i.consumable.consume(e.item,t.name);const n=i.mapper.toViewElement(e.item).parent,s=i.writer;rt(s,n,n.nextSibling),rt(s,n.previousSibling,n)};const Xt=(t,e,i)=>{if(i.consumable.test(e.item,t.name)&&"listItem"!=e.item.name){let t=i.mapper.toViewPosition(e.range.start);const n=i.writer,s=[];for(;("ul"==t.parent.name||"ol"==t.parent.name)&&(t=n.breakContainer(t),"li"==t.parent.name);){const e=t,i=n.createPositionAt(t.parent,"end");if(!e.isEqual(i)){const t=n.remove(n.createRange(e,i));s.push(t)}t=n.createPositionAfter(t.parent)}if(s.length>0){for(let e=0;e<s.length;e++){const i=t.nodeBefore;if(t=n.insert(t,s[e]).end,e>0){const e=rt(n,i,i.nextSibling);e&&e.parent==i&&t.offset--}}rt(n,t.nodeBefore,t.nodeAfter)}}},te=(t,e,i)=>{const n=i.mapper.toViewPosition(e.position),s=n.nodeBefore,r=n.nodeAfter;rt(i.writer,s,r)},ee=(t,e,i)=>{if(i.consumable.consume(e.viewItem,{name:!0})){const t=i.writer,n=t.createElement("listItem"),s=function(t){let e=0,i=t.parent;for(;i;){if(i.is("element","li"))e++;else{const t=i.previousSibling;t&&t.is("element","li")&&e++}i=i.parent}return e}(e.viewItem);t.setAttribute("listIndent",s,n);const r=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(t.setAttribute("listType",r,n),!i.safeInsert(n,e.modelCursor))return;const o=function(t,e,i){const{writer:n,schema:s}=i;let r=n.createPositionAfter(t);for(const o of e)if("ul"==o.name||"ol"==o.name)r=i.convertItem(o,r).modelCursor;else{const e=i.convertItem(o,n.createPositionAt(t,"end")),l=e.modelRange.start.nodeAfter;l&&l.is("element")&&!s.checkChild(t,l.name)&&(t=e.modelCursor.parent.is("element","listItem")?e.modelCursor.parent:oe(e.modelCursor),r=n.createPositionAfter(t))}return r}(n,e.viewItem.getChildren(),i);e.modelRange=t.createRange(e.modelCursor,o),i.updateConversionResult(n,e)}},ie=(t,e,i)=>{if(i.consumable.test(e.viewItem,{name:!0})){const t=Array.from(e.viewItem.getChildren());for(const e of t){!(e.is("element","li")||ae(e))&&e._remove()}}},ne=(t,e,i)=>{if(i.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;const t=[...e.viewItem.getChildren()];let i=!1;for(const e of t)i&&!ae(e)&&e._remove(),ae(e)&&(i=!0)}};function se(t){return(e,i)=>{if(i.isPhantom)return;const n=i.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const e=i.mapper.toViewElement(n),s=e.getAncestors().find(ae),r=t.createPositionAt(e,0).getWalker();for(const t of r){if("elementStart"==t.type&&t.item.is("element","li")){i.viewPosition=t.previousPosition;break}if("elementEnd"==t.type&&t.item==s){i.viewPosition=t.nextPosition;break}}}}}const re=function(t,[e,i]){const n=this;let s,r=e.is("documentFragment")?e.getChild(0):e;if(s=i?n.createSelection(i):n.document.selection,r&&r.is("element","listItem")){const t=s.getFirstPosition();let e=null;if(t.parent.is("element","listItem")?e=t.parent:t.nodeBefore&&t.nodeBefore.is("element","listItem")&&(e=t.nodeBefore),e){const t=e.getAttribute("listIndent");if(t>0)for(;r&&r.is("element","listItem");)r._setAttribute("listIndent",r.getAttribute("listIndent")+t),r=r.nextSibling}}};function oe(t){const e=new z.TreeWalker({startPosition:t});let i;do{i=e.next()}while(!i.value.item.is("element","listItem"));return i.value.item}function le(t,e,i,n,s,r){const o=lt(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t}),l=s.mapper,a=s.writer,c=o?o.getAttribute("listIndent"):null;let d;if(o)if(c==t){const t=l.toViewElement(o).parent;d=a.createPositionAfter(t)}else{const t=r.createPositionAt(o,"end");d=l.toViewPosition(t)}else d=i;d=ot(d);for(const t of[...n.getChildren()])ae(t)&&(d=a.move(a.createRangeOn(t),d).end,rt(a,t,t.nextSibling),rt(a,t.previousSibling,t))}function ae(t){return t.is("element","ol")||t.is("element","ul")}class ce extends t.Plugin{static get pluginName(){return"ListEditing"}static get requires(){return[s.Enter,e.Delete,Gt]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,i=t.editing;var n;t.model.document.registerPostFixer((e=>function(t,e){const i=t.document.differ.getChanges(),n=new Map;let s=!1;for(const n of i)if("insert"==n.type&&"listItem"==n.name)r(n.position);else if("insert"==n.type&&"listItem"!=n.name){if("$text"!=n.name){const i=n.position.nodeAfter;i.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",i),s=!0),i.hasAttribute("listType")&&(e.removeAttribute("listType",i),s=!0),i.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",i),s=!0),i.hasAttribute("listReversed")&&(e.removeAttribute("listReversed",i),s=!0),i.hasAttribute("listStart")&&(e.removeAttribute("listStart",i),s=!0);for(const e of Array.from(t.createRangeIn(i)).filter((t=>t.item.is("element","listItem"))))r(e.previousPosition)}r(n.position.getShiftedBy(n.length))}else"remove"==n.type&&"listItem"==n.name?r(n.position):("attribute"==n.type&&"listIndent"==n.attributeKey||"attribute"==n.type&&"listType"==n.attributeKey)&&r(n.range.start);for(const t of n.values())o(t),l(t);return s;function r(t){const e=t.nodeBefore;if(e&&e.is("element","listItem")){let t=e;if(n.has(t))return;for(let e=t.previousSibling;e&&e.is("element","listItem");e=t.previousSibling)if(t=e,n.has(t))return;n.set(e,t)}else{const e=t.nodeAfter;e&&e.is("element","listItem")&&n.set(e,e)}}function o(t){let i=0,n=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(r>i){let o;null===n?(n=r-i,o=i):(n>r&&(n=r),o=r-n),e.setAttribute("listIndent",o,t),s=!0}else n=null,i=t.getAttribute("listIndent")+1;t=t.nextSibling}}function l(t){let i=[],n=null;for(;t&&t.is("element","listItem");){const r=t.getAttribute("listIndent");if(n&&n.getAttribute("listIndent")>r&&(i=i.slice(0,r+1)),0!=r)if(i[r]){const n=i[r];t.getAttribute("listType")!=n&&(e.setAttribute("listType",n,t),s=!0)}else i[r]=t.getAttribute("listType");n=t,t=t.nextSibling}}}(t.model,e))),i.mapper.registerViewToModelLength("li",de),e.mapper.registerViewToModelLength("li",de),i.mapper.on("modelToViewPosition",se(i.view)),i.mapper.on("viewToModelPosition",(n=t.model,(t,e)=>{const i=e.viewPosition,s=i.parent,r=e.mapper;if("ul"==s.name||"ol"==s.name){if(i.isAtEnd){const t=r.toModelElement(i.nodeBefore),s=r.getModelLength(i.nodeBefore);e.modelPosition=n.createPositionBefore(t).getShiftedBy(s)}else{const t=r.toModelElement(i.nodeAfter);e.modelPosition=n.createPositionBefore(t)}t.stop()}else if("li"==s.name&&i.nodeBefore&&("ul"==i.nodeBefore.name||"ol"==i.nodeBefore.name)){const o=r.toModelElement(s);let l=1,a=i.nodeBefore;for(;a&&ae(a);)l+=r.getModelLength(a),a=a.previousSibling;e.modelPosition=n.createPositionBefore(o).getShiftedBy(l),t.stop()}})),e.mapper.on("modelToViewPosition",se(i.view)),t.conversion.for("editingDowncast").add((e=>{e.on("insert",Xt,{priority:"high"}),e.on("insert:listItem",Yt(t.model)),e.on("attribute:listType:listItem",Jt,{priority:"high"}),e.on("attribute:listType:listItem",Qt,{priority:"low"}),e.on("attribute:listIndent:listItem",function(t){return(e,i,n)=>{if(!n.consumable.consume(i.item,"attribute:listIndent"))return;const s=n.mapper.toViewElement(i.item),r=n.writer;r.breakContainer(r.createPositionBefore(s)),r.breakContainer(r.createPositionAfter(s));const o=s.parent,l=o.previousSibling,a=r.createRangeOn(o);r.remove(a),l&&l.nextSibling&&rt(r,l,l.nextSibling),le(i.attributeOldValue+1,i.range.start,a.start,s,n,t),st(i.item,s,n,t);for(const t of i.item.getChildren())n.consumable.consume(t,"insert")}}(t.model)),e.on("remove:listItem",function(t){return(e,i,n)=>{const s=n.mapper.toViewPosition(i.position).getLastMatchingPosition((t=>!t.item.is("element","li"))).nodeAfter,r=n.writer;r.breakContainer(r.createPositionBefore(s)),r.breakContainer(r.createPositionAfter(s));const o=s.parent,l=o.previousSibling,a=r.createRangeOn(o),c=r.remove(a);l&&l.nextSibling&&rt(r,l,l.nextSibling),le(n.mapper.toModelElement(s).getAttribute("listIndent")+1,i.position,a.start,s,n,t);for(const t of r.createRangeIn(c).getItems())n.mapper.unbindViewElement(t);e.stop()}}(t.model)),e.on("remove",te,{priority:"low"})})),t.conversion.for("dataDowncast").add((e=>{e.on("insert",Xt,{priority:"high"}),e.on("insert:listItem",Yt(t.model))})),t.conversion.for("upcast").add((t=>{t.on("element:ul",ie,{priority:"high"}),t.on("element:ol",ie,{priority:"high"}),t.on("element:li",ne,{priority:"high"}),t.on("element:li",ee)})),t.model.on("insertContent",re,{priority:"high"}),t.commands.add("numberedList",new qt(t,"numbered")),t.commands.add("bulletedList",new qt(t,"bulleted")),t.commands.add("indentList",new $t(t,"forward")),t.commands.add("outdentList",new $t(t,"backward"));const s=i.view.document;this.listenTo(s,"enter",((t,e)=>{const i=this.editor.model.document,n=i.selection.getLastPosition().parent;i.selection.isCollapsed&&"listItem"==n.name&&n.isEmpty&&(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(s,"delete",((t,e)=>{if("backward"!==e.direction)return;const i=this.editor.model.document.selection;if(!i.isCollapsed)return;const n=i.getFirstPosition();if(!n.isAtStart)return;const s=n.parent;if("listItem"!==s.name)return;s.previousSibling&&"listItem"===s.previousSibling.name||(this.editor.execute("outdentList"),e.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(t.editing.view.document,"tab",((e,i)=>{const n=i.shiftKey?"outdentList":"indentList";this.editor.commands.get(n).isEnabled&&(t.execute(n),i.stopPropagation(),i.preventDefault(),e.stop())}),{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),i=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),i&&i.registerChildCommand(t.get("outdentList"))}}function de(t){let e=1;for(const i of t.getChildren())if("ul"==i.name||"ol"==i.name)for(const t of i.getChildren())e+=de(t);return e}class ue extends t.Plugin{static get requires(){return[ce,yt]}static get pluginName(){return"List"}}class me extends t.Command{constructor(t,e){super(t),this.defaultType=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){this._tryToConvertItemsToList(t);const e=this.editor.model,i=ut(e);i.length&&e.change((e=>{for(const n of i)e.setAttribute("listStyle",t.type||this.defaultType,n)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")?t.getAttribute("listStyle"):null}_checkEnabled(){const t=this.editor,e=t.commands.get("numberedList"),i=t.commands.get("bulletedList");return e.isEnabled||i.isEnabled}_tryToConvertItemsToList(t){if(!t.type)return;const e=ht(t.type);if(!e)return;const i=this.editor,n=`${e}List`;i.commands.get(n).value||i.execute(n)}}class pe extends t.Command{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute(t={}){const e=this.editor.model,i=ut(e).filter((t=>"numbered"==t.getAttribute("listType")));e.change((e=>{for(const n of i)e.setAttribute("listReversed",!!t.reversed,n)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listReversed"):null}}class he extends t.Command{refresh(){const t=this._getValue();this.value=t,this.isEnabled=null!=t}execute({startIndex:t=1}={}){const e=this.editor.model,i=ut(e).filter((t=>"numbered"==t.getAttribute("listType")));e.change((e=>{for(const n of i)e.setAttribute("listStart",t>=0?t:1,n)}))}_getValue(){const t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listStart"):null}}const fe="default";class ge extends t.Plugin{static get requires(){return[ce]}static get pluginName(){return"ListPropertiesEditing"}constructor(t){super(t),t.config.define("list",{properties:{styles:!0,startIndex:!1,reversed:!1}})}init(){const t=this.editor,e=t.model,i=function(t){const e=[];t.styles&&e.push({attributeName:"listStyle",defaultValue:fe,addCommand(t){t.commands.add("listStyle",new me(t,fe))},appliesToListItem:()=>!0,setAttributeOnDowncast(t,e,i){e&&e!==fe?t.setStyle("list-style-type",e,i):t.removeStyle("list-style-type",i)},getAttributeOnUpcast:t=>t.getStyle("list-style-type")||fe});t.reversed&&e.push({attributeName:"listReversed",defaultValue:!1,addCommand(t){t.commands.add("listReversed",new pe(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),setAttributeOnDowncast(t,e,i){e?t.setAttribute("reversed","reversed",i):t.removeAttribute("reversed",i)},getAttributeOnUpcast:t=>t.hasAttribute("reversed")});t.startIndex&&e.push({attributeName:"listStart",defaultValue:1,addCommand(t){t.commands.add("listStart",new he(t))},appliesToListItem:t=>"numbered"==t.getAttribute("listType"),setAttributeOnDowncast(t,e,i){0==e||e>1?t.setAttribute("start",e,i):t.removeAttribute("start",i)},getAttributeOnUpcast(t){const e=t.getAttribute("start");return e>=0?e:1}});return e}(t.config.get("list.properties"));e.schema.extend("listItem",{allowAttributes:i.map((t=>t.attributeName))});for(const e of i)e.addCommand(t);var n;this.listenTo(t.commands.get("indentList"),"_executeCleanup",function(t,e){return(i,n)=>{const s=n[0],r=s.getAttribute("listIndent"),o=n.filter((t=>t.getAttribute("listIndent")===r));let l=null;s.previousSibling.getAttribute("listIndent")+1!==r&&(l=lt(s.previousSibling,{sameIndent:!0,direction:"backward",listIndent:r})),t.model.change((t=>{for(const i of o)for(const n of e)if(n.appliesToListItem(i)){const e=null==l?n.defaultValue:l.getAttribute(n.attributeName);t.setAttribute(n.attributeName,e,i)}}))}}(t,i)),this.listenTo(t.commands.get("outdentList"),"_executeCleanup",function(t,e){return(i,n)=>{if(!(n=n.reverse().filter((t=>t.is("element","listItem")))).length)return;const s=n[0].getAttribute("listIndent"),r=n[0].getAttribute("listType");let o=n[0].previousSibling;if(o.is("element","listItem"))for(;o.getAttribute("listIndent")!==s;)o=o.previousSibling;else o=null;o||(o=n[n.length-1].nextSibling),o&&o.is("element","listItem")&&o.getAttribute("listType")===r&&t.model.change((t=>{const i=n.filter((t=>t.getAttribute("listIndent")===s));for(const n of i)for(const i of e)if(i.appliesToListItem(n)){const e=i.attributeName,s=o.getAttribute(e);t.setAttribute(e,s,n)}}))}}(t,i)),this.listenTo(t.commands.get("bulletedList"),"_executeCleanup",ve(t)),this.listenTo(t.commands.get("numberedList"),"_executeCleanup",ve(t)),e.document.registerPostFixer(function(t,e){return i=>{let n=!1;const s=we(t.model.document.differ.getChanges()).filter((t=>"todo"!==t.getAttribute("listType")));if(!s.length)return n;let r=s[s.length-1].nextSibling;if((!r||!r.is("element","listItem"))&&(r=s[0].previousSibling,r)){const t=s[0].getAttribute("listIndent");for(;r.is("element","listItem")&&r.getAttribute("listIndent")!==t&&(r=r.previousSibling,r););}for(const t of e){const e=t.attributeName;for(const o of s)if(t.appliesToListItem(o))if(o.hasAttribute(e)){const s=o.previousSibling;ye(s,o,t.attributeName)&&(i.setAttribute(e,s.getAttribute(e),o),n=!0)}else be(r,o,t)?i.setAttribute(e,r.getAttribute(e),o):i.setAttribute(e,t.defaultValue,o),n=!0;else i.removeAttribute(e,o)}return n}}(t,i)),t.conversion.for("upcast").add((n=i,t=>{t.on("element:li",((t,e,i)=>{if(!e.modelRange)return;const s=e.viewItem.parent,r=e.modelRange.start.nodeAfter||e.modelRange.end.nodeBefore;for(const t of n)if(t.appliesToListItem(r)){const e=t.getAttributeOnUpcast(s);i.writer.setAttribute(t.attributeName,e,r)}}),{priority:"low"})})),t.conversion.for("downcast").add(function(t){return i=>{for(const n of t)i.on(`attribute:${n.attributeName}:listItem`,((t,i,s)=>{const r=s.writer,o=i.item,l=lt(o.previousSibling,{sameIndent:!0,listIndent:o.getAttribute("listIndent"),direction:"backward"}),a=s.mapper.toViewElement(o);e(o,l)||r.breakContainer(r.createPositionBefore(a)),n.setAttributeOnDowncast(r,i.attributeNewValue,a.parent)}),{priority:"low"})};function e(t,e){return e&&t.getAttribute("listType")===e.getAttribute("listType")&&t.getAttribute("listIndent")===e.getAttribute("listIndent")&&t.getAttribute("listStyle")===e.getAttribute("listStyle")&&t.getAttribute("listReversed")===e.getAttribute("listReversed")&&t.getAttribute("listStart")===e.getAttribute("listStart")}}(i)),this._mergeListAttributesWhileMergingLists(i)}afterInit(){const t=this.editor;t.commands.get("todoList")&&t.model.document.registerPostFixer(function(t){return e=>{const i=we(t.model.document.differ.getChanges()).filter((t=>"todo"===t.getAttribute("listType")&&(t.hasAttribute("listStyle")||t.hasAttribute("listReversed")||t.hasAttribute("listStart"))));if(!i.length)return!1;for(const t of i)e.removeAttribute("listStyle",t),e.removeAttribute("listReversed",t),e.removeAttribute("listStart",t);return!0}}(t))}_mergeListAttributesWhileMergingLists(t){const e=this.editor.model;let i;this.listenTo(e,"deleteContent",((t,[e])=>{const n=e.getFirstPosition(),s=e.getLastPosition();if(n.parent===s.parent)return;if(!n.parent.is("element","listItem"))return;const r=s.parent.nextSibling;if(!r||!r.is("element","listItem"))return;const o=lt(n.parent,{sameIndent:!0,listIndent:r.getAttribute("listIndent")});o&&o.getAttribute("listType")===r.getAttribute("listType")&&(i=o)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{i&&(e.change((e=>{const n=lt(i.nextSibling,{sameIndent:!0,listIndent:i.getAttribute("listIndent"),direction:"forward"});if(!n)return void(i=null);const s=[n,...dt(e.createPositionAt(n,0),"forward")];for(const n of s)for(const s of t)if(s.appliesToListItem(n)){const t=s.attributeName,r=i.getAttribute(t);e.setAttribute(t,r,n)}})),i=null)}),{priority:"low"})}}function be(t,e,i){if(!t)return!1;const n=t.getAttribute(i.attributeName);return!!n&&(n!=i.defaultValue&&t.getAttribute("listType")===e.getAttribute("listType"))}function ye(t,e,i){if(!t||!t.is("element","listItem"))return!1;if(e.getAttribute("listType")!==t.getAttribute("listType"))return!1;const n=t.getAttribute("listIndent");if(n<1||n!==e.getAttribute("listIndent"))return!1;const s=t.getAttribute(i);return!(!s||s===e.getAttribute(i))}function ve(t){return(e,i)=>{i=i.filter((t=>t.is("element","listItem"))),t.model.change((t=>{for(const e of i)t.removeAttribute("listStyle",e)}))}}function we(t){const e=[];for(const i of t){const t=Ae(i);t&&t.is("element","listItem")&&e.push(t)}return e}function Ae(t){return"attribute"===t.type?t.range.start.nodeAfter:"insert"===t.type?t.position.nodeAfter:null}class Ie extends t.Plugin{static get requires(){return[ge,jt]}static get pluginName(){return"ListProperties"}}const ke="todoListChecked";class Te extends t.Command{constructor(t){super(t),this._selectedElements=[],this.on("execute",(()=>{this.refresh()}),{priority:"highest"})}refresh(){this._selectedElements=this._getSelectedItems(),this.value=this._selectedElements.every((t=>!!t.getAttribute(ke))),this.isEnabled=!!this._selectedElements.length}_getSelectedItems(){const t=this.editor.model,e=t.schema,i=t.document.selection.getFirstRange(),n=i.start.parent,s=[];e.checkAttribute(n,ke)&&s.push(n);for(const t of i.getItems())e.checkAttribute(t,ke)&&!s.includes(t)&&s.push(t);return s}execute(t={}){this.editor.model.change((e=>{for(const i of this._selectedElements){(void 0===t.forceValue?!this.value:t.forceValue)?e.setAttribute(ke,!0,i):e.removeAttribute(ke,i)}}))}}const xe=(t,e,i)=>{const n=e.modelCursor,s=n.parent,r=e.viewItem;if("checkbox"!=r.getAttribute("type")||"listItem"!=s.name||!n.isAtStart)return;if(!i.consumable.consume(r,{name:!0}))return;const o=i.writer;o.setAttribute("listType","todo",s),e.viewItem.hasAttribute("checked")&&o.setAttribute("todoListChecked",!0,s),e.modelRange=o.createRange(n)};function _e(t){return(e,i)=>{const n=i.modelPosition,s=n.parent;if(!s.is("element","listItem")||"todo"!=s.getAttribute("listType"))return;const r=Ce(i.mapper.toViewElement(s),t);r&&(i.viewPosition=i.mapper.findPositionIn(r,n.offset))}}function Se(t,e,i,n){return e.createUIElement("label",{class:"todo-list__label",contenteditable:!1},(function(e){const s=(0,r.createElement)(document,"input",{type:"checkbox",tabindex:"-1"});i&&s.setAttribute("checked","checked"),s.addEventListener("change",(()=>n(t)));const o=this.toDomElement(e);return o.appendChild(s),o}))}function Ce(t,e){const i=e.createRangeIn(t);for(const t of i)if(t.item.is("containerElement","span")&&t.item.hasClass("todo-list__label__description"))return t.item}const Le=(0,r.parseKeystroke)("Ctrl+Enter");class Ee extends t.Plugin{static get pluginName(){return"TodoListEditing"}static get requires(){return[ce]}init(){const t=this.editor,{editing:e,data:i,model:n}=t;n.schema.extend("listItem",{allowAttributes:["todoListChecked"]}),n.schema.addAttributeCheck(((t,e)=>{const i=t.last;if("todoListChecked"==e&&"listItem"==i.name&&"todo"!=i.getAttribute("listType"))return!1})),t.commands.add("todoList",new qt(t,"todo"));const s=new Te(t);var o,l;t.commands.add("checkTodoList",s),t.commands.add("todoListCheck",s),i.downcastDispatcher.on("insert:listItem",function(t){return(e,i,n)=>{const s=n.consumable;if(!s.test(i.item,"insert")||!s.test(i.item,"attribute:listType")||!s.test(i.item,"attribute:listIndent"))return;if("todo"!=i.item.getAttribute("listType"))return;const r=i.item;s.consume(r,"insert"),s.consume(r,"attribute:listType"),s.consume(r,"attribute:listIndent"),s.consume(r,"attribute:todoListChecked");const o=n.writer,l=nt(r,n);o.addClass("todo-list",l.parent);const a=o.createContainerElement("label",{class:"todo-list__label"}),c=o.createEmptyElement("input",{type:"checkbox",disabled:"disabled"}),d=o.createContainerElement("span",{class:"todo-list__label__description"});r.getAttribute("todoListChecked")&&o.setAttribute("checked","checked",c),o.insert(o.createPositionAt(l,0),a),o.insert(o.createPositionAt(a,0),c),o.insert(o.createPositionAfter(c),d),st(r,l,n,t)}}(n),{priority:"high"}),i.upcastDispatcher.on("element:input",xe,{priority:"high"}),e.downcastDispatcher.on("insert:listItem",function(t,e){return(i,n,s)=>{const r=s.consumable;if(!r.test(n.item,"insert")||!r.test(n.item,"attribute:listType")||!r.test(n.item,"attribute:listIndent"))return;if("todo"!=n.item.getAttribute("listType"))return;const o=n.item;r.consume(o,"insert"),r.consume(o,"attribute:listType"),r.consume(o,"attribute:listIndent"),r.consume(o,"attribute:todoListChecked");const l=s.writer,a=nt(o,s),c=!!o.getAttribute("todoListChecked"),d=Se(o,l,c,e),u=l.createContainerElement("span",{class:"todo-list__label__description"});l.addClass("todo-list",a.parent),l.insert(l.createPositionAt(a,0),d),l.insert(l.createPositionAfter(d),u),st(o,a,s,t)}}(n,(t=>this._handleCheckmarkChange(t))),{priority:"high"}),e.downcastDispatcher.on("attribute:listType:listItem",(o=t=>this._handleCheckmarkChange(t),l=e.view,(t,e,i)=>{if(!i.consumable.consume(e.item,t.name))return;const n=i.mapper.toViewElement(e.item),s=i.writer,r=function(t,e){const i=e.createRangeIn(t);for(const t of i)if(t.item.is("uiElement","label"))return t.item}(n,l);if("todo"==e.attributeNewValue){const t=!!e.item.getAttribute("todoListChecked"),i=Se(e.item,s,t,o),r=s.createContainerElement("span",{class:"todo-list__label__description"}),l=s.createRangeIn(n),a=ct(n),c=ot(l.start),d=a?s.createPositionBefore(a):l.end,u=s.createRange(c,d);s.addClass("todo-list",n.parent),s.move(u,s.createPositionAt(r,0)),s.insert(s.createPositionAt(n,0),i),s.insert(s.createPositionAfter(i),r)}else if("todo"==e.attributeOldValue){const t=Ce(n,l);s.removeClass("todo-list",n.parent),s.remove(r),s.move(s.createRangeIn(t),s.createPositionBefore(t)),s.remove(t)}})),e.downcastDispatcher.on("attribute:todoListChecked:listItem",function(t){return(e,i,n)=>{if("todo"!=i.item.getAttribute("listType"))return;if(!n.consumable.consume(i.item,"attribute:todoListChecked"))return;const{mapper:s,writer:r}=n,o=!!i.item.getAttribute("todoListChecked"),l=s.toViewElement(i.item).getChild(0),a=Se(i.item,r,o,t);r.insert(r.createPositionAfter(l),a),r.remove(l)}}((t=>this._handleCheckmarkChange(t)))),e.mapper.on("modelToViewPosition",_e(e.view)),i.mapper.on("modelToViewPosition",_e(e.view)),this.listenTo(e.view.document,"arrowKey",function(t,e){return(i,n)=>{if("left"!=(0,r.getLocalizedArrowKeyCodeDirection)(n.keyCode,e.contentLanguageDirection))return;const s=t.schema,o=t.document.selection;if(!o.isCollapsed)return;const l=o.getFirstPosition(),a=l.parent;if("listItem"===a.name&&"todo"==a.getAttribute("listType")&&l.isAtStart){const e=s.getNearestSelectionRange(t.createPositionBefore(a),"backward");e&&t.change((t=>t.setSelection(e))),n.preventDefault(),n.stopPropagation(),i.stop()}}}(n,t.locale),{context:"li"}),this.listenTo(e.view.document,"keydown",((e,i)=>{(0,r.getCode)(i)===Le&&(t.execute("checkTodoList"),e.stop())}),{priority:"high"});const a=new Set;this.listenTo(n,"applyOperation",((t,e)=>{const i=e[0];if("rename"==i.type&&"listItem"==i.oldName){const t=i.position.nodeAfter;t.hasAttribute("todoListChecked")&&a.add(t)}else if("changeAttribute"==i.type&&"listType"==i.key&&"todo"===i.oldValue)for(const t of i.range.getItems())t.hasAttribute("todoListChecked")&&"todo"!==t.getAttribute("listType")&&a.add(t)})),n.document.registerPostFixer((t=>{let e=!1;for(const i of a)t.removeAttribute("todoListChecked",i),e=!0;return a.clear(),e}))}_handleCheckmarkChange(t){const e=this.editor,i=e.model,n=Array.from(i.document.selection.getRanges());i.change((i=>{i.setSelection(t,"end"),e.execute("checkTodoList"),i.setSelection(n)}))}}class Pe extends t.Plugin{static get pluginName(){return"TodoListUI"}init(){const t=this.editor.t;at(this.editor,"todoList",t("To-do List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>')}}var Ve=i(528),ze={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Z()(Ve.Z,ze);Ve.Z.locals;class Be extends t.Plugin{static get requires(){return[Ee,Pe]}static get pluginName(){return"TodoList"}}class Ne extends t.Command{constructor(t){super(t),this.on("execute",(()=>{this.refresh()}),{priority:"highest"})}refresh(){const t=this._getSelectedItems();this.value=this._getValue(t),this.isEnabled=!!t.length}execute(t={}){this.editor.model.change((e=>{const i=this._getSelectedItems(),n=void 0===t.forceValue?!this._getValue(i):t.forceValue;for(const t of i)n?e.setAttribute("todoListChecked",!0,t):e.removeAttribute("todoListChecked",t)}))}_getValue(t){return t.every((t=>t.getAttribute("todoListChecked")))}_getSelectedItems(){const t=this.editor.model,e=t.schema,i=t.document.selection.getFirstRange(),n=i.start.parent,s=[];e.checkAttribute(n,"todoListChecked")&&s.push(...u(n));for(const t of i.getItems({shallow:!0}))e.checkAttribute(t,"todoListChecked")&&!s.includes(t)&&s.push(...u(t));return s}}class Me extends z.DomEventObserver{constructor(){super(...arguments),this.domEventType=["change"]}onDomEvent(t){if(t.target){const e=this.view.domConverter.mapDomToView(t.target);e&&e.is("element","input")&&"checkbox"==e.getAttribute("type")&&e.findAncestor({classes:"todo-list__label"})&&this.fire("todoCheckboxChange",t)}}}const De=(0,r.parseKeystroke)("Ctrl+Enter");class Re extends t.Plugin{static get pluginName(){return"TodoDocumentListEditing"}static get requires(){return[tt]}init(){const t=this.editor,e=t.model,i=t.editing,n=t.plugins.get(tt),s=t.config.get("list.multiBlock")?"paragraph":"listItem";t.commands.add("todoList",new L(t,"todo")),t.commands.add("checkTodoList",new Ne(t)),i.view.addObserver(Me),e.schema.extend("$listItem",{allowAttributes:"todoListChecked"}),e.schema.addAttributeCheck(((t,e)=>{const i=t.last;if("todoListChecked"==e)return!(!i.getAttribute("listItemId")||"todo"!=i.getAttribute("listType"))&&void 0})),t.conversion.for("upcast").add((t=>{t.on("element:input",((t,e,i)=>{const n=e.modelCursor,s=n.parent,r=e.viewItem;if(!i.consumable.test(r,{name:!0}))return;if("checkbox"!=r.getAttribute("type")||!n.isAtStart||!s.hasAttribute("listType"))return;i.consumable.consume(r,{name:!0});const o=i.writer;o.setAttribute("listType","todo",s),e.viewItem.hasAttribute("checked")&&o.setAttribute("todoListChecked",!0,s),e.modelRange=o.createRange(n)})),t.on("element:label",Oe({name:"label",classes:"todo-list__label"})),t.on("element:label",Oe({name:"label",classes:["todo-list__label","todo-list__label_without-description"]})),t.on("element:span",Oe({name:"span",classes:"todo-list__label__description"})),t.on("element:ul",function(t){const e=new z.Matcher(t);return(t,i,n)=>{const s=e.match(i.viewItem);if(!s)return;const r=s.match;r.name=!1,n.consumable.consume(i.viewItem,r)}}({name:"ul",classes:"todo-list"}))})),t.conversion.for("downcast").elementToElement({model:s,view:(t,{writer:e})=>{if(Fe(t,n.getListAttributeNames()))return e.createContainerElement("span",{class:"todo-list__label__description"})},converterPriority:"highest"}),n.registerDowncastStrategy({scope:"list",attributeName:"listType",setAttributeOnDowncast(t,e,i){"todo"==e?t.addClass("todo-list",i):t.removeClass("todo-list",i)}}),n.registerDowncastStrategy({scope:"itemMarker",attributeName:"todoListChecked",createElement(t,e,{dataPipeline:i}){if("todo"!=e.getAttribute("listType"))return null;const n=t.createEmptyElement("input",{type:"checkbox",...e.getAttribute("todoListChecked")?{checked:"checked"}:null,...i?{disabled:"disabled"}:{tabindex:"-1"}});return i?n:t.createContainerElement("span",{contenteditable:"false"},n)},canWrapElement:t=>Fe(t,n.getListAttributeNames()),createWrapperElement(t,e,{dataPipeline:i}){const s=["todo-list__label"];return Fe(e,n.getListAttributeNames())||s.push("todo-list__label_without-description"),t.createAttributeElement(i?"label":"span",{class:s.join(" ")})}}),i.mapper.registerViewToModelLength("input",(t=>"checkbox"==t.getAttribute("type")&&t.findAncestor({classes:"todo-list__label"})?0:i.mapper.toModelElement(t)?1:0)),n.on("checkElement",((t,{modelElement:e,viewElement:i})=>{const s=Fe(e,n.getListAttributeNames());i.hasClass("todo-list__label__description")!=s&&(t.return=!0,t.stop())})),n.on("checkElement",((e,{modelElement:i,viewElement:n})=>{const s="todo"==i.getAttribute("listType")&&h(i);let r=!1;const o=t.editing.view.createPositionBefore(n).getWalker({direction:"backward"});for(const{item:e}of o){if(e.is("element")&&t.editing.mapper.toModelElement(e))break;e.is("element","input")&&"checkbox"==e.getAttribute("type")&&(r=!0)}r!=s&&(e.return=!0,e.stop())})),n.on("postFixer",((t,{listNodes:e,writer:i})=>{for(const{node:n,previousNodeInList:s}of e){if(!s)continue;if(s.getAttribute("listItemId")!=n.getAttribute("listItemId"))continue;const e=s.hasAttribute("todoListChecked"),r=n.hasAttribute("todoListChecked");r&&!e?(i.removeAttribute("todoListChecked",n),t.return=!0):!r&&e&&(i.setAttribute("todoListChecked",!0,n),t.return=!0)}})),e.document.registerPostFixer((t=>{const i=e.document.differ.getChanges();let n=!1;for(const e of i)if("attribute"==e.type&&"listType"==e.attributeKey){const i=e.range.start.nodeAfter;"todo"==e.attributeOldValue&&i.hasAttribute("todoListChecked")&&(t.removeAttribute("todoListChecked",i),n=!0)}else if("insert"==e.type&&"$text"!=e.name)for(const{item:i}of t.createRangeOn(e.position.nodeAfter))i.is("element")&&"todo"!=i.getAttribute("listType")&&i.hasAttribute("todoListChecked")&&(t.removeAttribute("todoListChecked",i),n=!0);return n})),this.listenTo(i.view.document,"keydown",((e,i)=>{(0,r.getCode)(i)===De&&(t.execute("checkTodoList"),e.stop())}),{priority:"high"}),this.listenTo(i.view.document,"todoCheckboxChange",((t,e)=>{const n=e.target;if(!n||!n.is("element","input"))return;const s=i.view.createPositionAfter(n),r=i.mapper.toModelPosition(s).parent;r&&d(r)&&"todo"==r.getAttribute("listType")&&this._handleCheckmarkChange(r)})),this.listenTo(i.view.document,"arrowKey",function(t,e){return(i,n)=>{const s=(0,r.getLocalizedArrowKeyCodeDirection)(n.keyCode,e.contentLanguageDirection),o=t.schema,l=t.document.selection;if(!l.isCollapsed)return;const a=l.getFirstPosition(),c=a.parent;if("right"==s&&a.isAtEnd){const e=o.getNearestSelectionRange(t.createPositionAfter(c),"forward");if(!e)return;const s=e.start.parent;s&&d(s)&&"todo"==s.getAttribute("listType")&&(t.change((t=>t.setSelection(e))),n.preventDefault(),n.stopPropagation(),i.stop())}else if("left"==s&&a.isAtStart&&d(c)&&"todo"==c.getAttribute("listType")){const e=o.getNearestSelectionRange(t.createPositionBefore(c),"backward");if(!e)return;t.change((t=>t.setSelection(e))),n.preventDefault(),n.stopPropagation(),i.stop()}}}(e,t.locale),{context:"$text"}),this.listenTo(i.mapper,"viewToModelPosition",((t,i)=>{const n=i.viewPosition.parent,s=n.is("attributeElement","li")&&0==i.viewPosition.offset,r=He(n)&&i.viewPosition.offset<=1,o=n.is("element","span")&&"false"==n.getAttribute("contenteditable")&&He(n.parent);if(!s&&!r&&!o)return;const l=i.modelPosition.nodeAfter;l&&"todo"==l.getAttribute("listType")&&(i.modelPosition=e.createPositionAt(l,0))}),{priority:"low"})}_handleCheckmarkChange(t){const e=this.editor,i=e.model,n=Array.from(i.document.selection.getRanges());i.change((i=>{i.setSelection(t,"end"),e.execute("checkTodoList"),i.setSelection(n)}))}}function Oe(t){const e=new z.Matcher(t);return(t,i,n)=>{const s=e.match(i.viewItem);s&&n.consumable.consume(i.viewItem,s.match)&&Object.assign(i,n.convertChildren(i.viewItem,i.modelCursor))}}function Fe(t,e){return(t.is("element","paragraph")||t.is("element","listItem"))&&"todo"==t.getAttribute("listType")&&h(t)&&function(t,e){for(const i of t.getAttributeKeys())if(!i.startsWith("selection:")&&!e.includes(i))return!1;return!0}(t,e)}function He(t){return!!t&&t.is("attributeElement")&&t.hasClass("todo-list__label")}class je extends t.Plugin{static get requires(){return[Re,Pe]}static get pluginName(){return"TodoDocumentList"}}})(),(window.CKEditor5=window.CKEditor5||{}).list=n})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/list/translations/ug.js b/core/assets/vendor/ckeditor5/list/translations/ug.js index 16190a750523..c237c82960e9 100644 --- a/core/assets/vendor/ckeditor5/list/translations/ug.js +++ b/core/assets/vendor/ckeditor5/list/translations/ug.js @@ -1 +1 @@ -!function(e){const t=e.ug=e.ug||{};t.dictionary=Object.assign(t.dictionary||{},{"Bulleted List":"بەلگە تىزىملىك","Bulleted list styles toolbar":"",Circle:"",Decimal:"","Decimal with leading zero":"",Disc:"","List properties":"","Lower-latin":"","Lower–roman":"","Numbered List":"نومۇرلۇق تىزىملىك","Numbered list styles toolbar":"","Reversed order":"",Square:"","Start at":"","Start index must be greater than 0.":"","To-do List":"","Toggle the circle list style":"","Toggle the decimal list style":"","Toggle the decimal with leading zero list style":"","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":"","Upper-latin":"","Upper-roman":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file +!function(e){const t=e.ug=e.ug||{};t.dictionary=Object.assign(t.dictionary||{},{"Bulleted List":"بەلگە تىزىملىك","Bulleted list styles toolbar":"تۈر بەلگە تىزىمى ئۇسلۇبىدىكى قورال بالداق",Circle:"",Decimal:"","Decimal with leading zero":"",Disc:"","List properties":"","Lower-latin":"","Lower–roman":"","Numbered List":"نومۇرلۇق تىزىملىك","Numbered list styles toolbar":"تۈر نومۇرى تىزىمى ئۇسلۇبىدىكى قورال بالداق","Reversed order":"",Square:"","Start at":"","Start index must be greater than 0.":"","To-do List":"ئىش تىزىمى","Toggle the circle list style":"","Toggle the decimal list style":"","Toggle the decimal with leading zero list style":"","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":"","Upper-latin":"","Upper-roman":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/paste-from-office/paste-from-office.js b/core/assets/vendor/ckeditor5/paste-from-office/paste-from-office.js index 077b0eb9f1cc..606d35f5ce02 100644 --- a/core/assets/vendor/ckeditor5/paste-from-office/paste-from-office.js +++ b/core/assets/vendor/ckeditor5/paste-from-office/paste-from-office.js @@ -1,4 +1,4 @@ /*! * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md. - */(()=>{var e={945:(e,t,n)=>{e.exports=n(79)("./src/clipboard.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{MSWordNormalizer:()=>d,PasteFromOffice:()=>C,parseHtml:()=>x});var e=n(704),t=n(945),s=n(492);function i(e,t){if(!e.childCount)return;const n=new s.UpcastWriter(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new s.Matcher({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const e of n)if("elementStart"===e.type&&r.match(e.item)){const t=l(e.item);i.push({element:e.item,id:t.id,order:t.order,indent:t.indent})}return i}(e,n);if(!r.length)return;let i=null,a=1;r.forEach(((e,l)=>{const u=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;const n=t.element.previousSibling;if(!n)return!0;return r=n,!(r.is("element","ol")||r.is("element","ul"));var r}(r[l-1],e),m=u?null:r[l-1],f=(p=e,(d=m)?p.indent-d.indent:p.indent-1);var d,p;if(u&&(i=null,a=1),!i||0!==f){const r=function(e,t){const n=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi"),r=/mso-level-number-format:([^;]{0,100});/gi,s=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,i=n.exec(t);let c="decimal",l="ol",a=null;if(i&&i[1]){const t=r.exec(i[1]);if(t&&t[1]&&(c=t[1].trim(),l="bullet"!==c&&"image"!==c?"ol":"ul"),"bullet"===c){const t=function(e){const t=function(e){if(e.getChild(0).is("$text"))return null;for(const t of e.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);if(e)return e.is("$text")?e:e.getChild(0)}return null}(e);if(!t)return null;const n=t._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(e.element);t&&(c=t)}else{const e=s.exec(i[1]);e&&e[1]&&(a=parseInt(e[1]))}}return{type:l,startIndex:a,style:o(c)}}(e,t);if(i){if(e.indent>a){const e=i.getChild(i.childCount-1),t=e.getChild(e.childCount-1);i=c(r,t,n),a+=1}else if(e.indent<a){const t=a-e.indent;i=function(e,t){const n=e.getAncestors({parentFirst:!0});let r=null,s=0;for(const e of n)if((e.is("element","ul")||e.is("element","ol"))&&s++,s===t){r=e;break}return r}(i,t),a=e.indent}}else i=c(r,e.element,n);e.indent<=a&&(i.is("element",r.type)||(i=n.rename(r.type,i)))}const g=function(e,t){return function(e,t){const n=new s.Matcher({name:"span",styles:{"mso-list":"Ignore"}}),r=t.createRangeIn(e);for(const e of r)"elementStart"===e.type&&n.match(e.item)&&t.remove(e.item)}(e,t),t.removeStyle("text-indent",e),t.rename("li",e)}(e.element,n);n.appendChild(g,i)}))}function o(e){if(e.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(e){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 e;default:return null}}function c(e,t,n){const r=t.parent,s=n.createElement(e.type),i=r.getChildIndex(t)+1;return n.insertChild(i,s,r),e.style&&n.setStyle("list-style-type",e.style,s),e.startIndex&&e.startIndex>1&&n.setAttribute("start",e.startIndex,s),s}function l(e){const t={},n=e.getStyle("mso-list");if(n){const e=n.match(/(^|\s{1,100})l(\d+)/i),r=n.match(/\s{0,100}lfo(\d+)/i),s=n.match(/\s{0,100}level(\d+)/i);e&&r&&s&&(t.id=e[2],t.order=r[1],t.indent=parseInt(s[1]))}return t}function a(e,t){if(!e.childCount)return;const n=new s.UpcastWriter(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new s.Matcher({name:/v:(.+)/}),i=[];for(const e of n){if("elementStart"!=e.type)continue;const t=e.item,n=t.previousSibling,s=n&&n.is("element")?n.name:null;r.match(t)&&t.getAttribute("o:gfxdata")&&"v:shapetype"!==s&&i.push(e.item.getAttribute("id"))}return i}(e,n);!function(e,t,n){const r=n.createRangeIn(t),i=new s.Matcher({name:"img"}),o=[];for(const t of r)if(t.item.is("element")&&i.match(t.item)){const n=t.item,r=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];r.length&&r.every((t=>e.indexOf(t)>-1))?o.push(n):n.getAttribute("src")||o.push(n)}for(const e of o)n.remove(e)}(r,e,n),function(e,t,n){const r=n.createRangeIn(t),s=[];for(const t of r)if("elementStart"==t.type&&t.item.is("element","v:shape")){const n=t.item.getAttribute("id");if(e.includes(n))continue;i(t.item.parent.getChildren(),n)||s.push(t.item)}for(const e of s){const t={src:o(e)};e.hasAttribute("alt")&&(t.alt=e.getAttribute("alt"));const r=n.createElement("img",t);n.insertChild(e.index+1,r,e.parent)}function i(e,t){for(const n of e)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==t)return!0;if(i(n.getChildren(),t))return!0}return!1}function o(e){for(const t of e.getChildren())if(t.is("element")&&t.getAttribute("src"))return t.getAttribute("src")}}(r,e,n),function(e,t){const n=t.createRangeIn(e),r=new s.Matcher({name:/v:(.+)/}),i=[];for(const e of n)"elementStart"==e.type&&r.match(e.item)&&i.push(e.item);for(const e of i)t.remove(e)}(e,n);const i=function(e,t){const n=t.createRangeIn(e),r=new s.Matcher({name:"img"}),i=[];for(const e of n)e.item.is("element")&&r.match(e.item)&&e.item.getAttribute("src").startsWith("file://")&&i.push(e.item);return i}(e,n);i.length&&function(e,t,n){if(e.length===t.length)for(let r=0;r<e.length;r++){const s=`data:${t[r].type};base64,${u(t[r].hex)}`;n.setAttribute("src",s,e[r])}}(i,function(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),r=e.match(n),s=[];if(r)for(const e of r){let n=!1;e.includes("\\pngblip")?n="image/png":e.includes("\\jpegblip")&&(n="image/jpeg"),n&&s.push({hex:e.replace(t,"").replace(/[^\da-fA-F]/g,""),type:n})}return s}(t),n)}function u(e){return btoa(e.match(/\w{2}/g).map((e=>String.fromCharCode(parseInt(e,16)))).join(""))}const m=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,f=/xmlns:o="urn:schemas-microsoft-com/i;class d{constructor(e){this.document=e}isActive(e){return m.test(e)||f.test(e)}execute(e){const{body:t,stylesString:n}=e._parsedData;i(t,n),a(t,e.dataTransfer.getData("text/rtf")),function(e){const t=[],n=new s.UpcastWriter(e.document);for(const{item:r}of n.createRangeIn(e))if(r.is("element")){for(const e of r.getClassNames())/\bmso/gi.exec(e)&&n.removeClass(e,r);for(const e of r.getStyleNames())/\bmso/gi.exec(e)&&n.removeStyle(e,r);r.is("element","w:sdt")&&t.push(r)}for(const e of t){const t=e.parent,r=t.getChildIndex(e);n.insertChild(r,e.getChildren(),t),n.remove(e)}}(t),e.content=t}}function p(e,t,n,{blockElements:r,inlineObjectElements:s}){let i=n.createPositionAt(e,"forward"==t?"after":"before");return i=i.getLastMatchingPosition((({item:e})=>e.is("element")&&!r.includes(e.name)&&!s.includes(e.name)),{direction:t}),"forward"==t?i.nodeAfter:i.nodeBefore}function g(e,t){return!!e&&e.is("element")&&t.includes(e.name)}const h=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class b{constructor(e){this.document=e}isActive(e){return h.test(e)}execute(e){const t=new s.UpcastWriter(this.document),{body:n}=e._parsedData;!function(e,t){for(const n of e.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const r=e.getChildIndex(n);t.remove(n),t.insertChild(r,n.getChildren(),e)}}(n,t),function(e,t){for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","li")){const n=e.getChild(0);n&&n.is("element","p")&&t.unwrapElement(n)}}}(n,t),function(e,t){const n=new s.ViewDocument(t.document.stylesProcessor),r=new s.DomConverter(n,{renderingMode:"data"}),i=r.blockElements,o=r.inlineObjectElements,c=[];for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","br")){const n=p(e,"forward",t,{blockElements:i,inlineObjectElements:o}),r=p(e,"backward",t,{blockElements:i,inlineObjectElements:o}),s=g(n,i);(g(r,i)||s)&&c.push(e)}}for(const e of c)e.hasClass("Apple-interchange-newline")?t.remove(e):t.replace(e,t.createElement("p"))}(n,t),e.content=n}}const y=/<google-sheets-html-origin/i;class v{constructor(e){this.document=e}isActive(e){return y.test(e)}execute(e){const t=new s.UpcastWriter(this.document),{body:n}=e._parsedData;!function(e,t){for(const n of e.getChildren())if(n.is("element","google-sheets-html-origin")){const r=e.getChildIndex(n);t.remove(n),t.insertChild(r,n.getChildren(),e)}}(n,t),function(e,t){for(const n of e.getChildren())n.is("element","table")&&n.hasAttribute("xmlns")&&t.removeAttribute("xmlns",n)}(n,t),function(e,t){for(const n of e.getChildren())n.is("element","table")&&"0px"===n.getStyle("width")&&t.removeStyle("width",n)}(n,t),function(e,t){for(const n of Array.from(e.getChildren()))n.is("element","style")&&t.remove(n)}(n,t),e.content=n}}function w(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((e,t)=>1===t.length?" ":Array(t.length+1).join(" ").substr(0,t.length)))}function x(e,t){const n=new DOMParser,r=function(e){return w(w(e)).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(e){const t="</body>",n="</html>",r=e.indexOf(t);if(r<0)return e;const s=e.indexOf(n,r+t.length);return e.substring(0,r+t.length)+(s>=0?e.substring(s):"")}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),i=n.parseFromString(r,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((e=>{const t=e,n=t.innerText.length||0;t.innerText=Array(n+1).join(" ").substr(0,n)}))}(i);const o=i.body.innerHTML,c=function(e,t){const n=new s.ViewDocument(t),r=new s.DomConverter(n,{renderingMode:"data"}),i=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)i.appendChild(o[0]);return r.domToView(i,{skipComments:!0})}(i,t),l=function(e){const t=[],n=[],r=Array.from(e.getElementsByTagName("style"));for(const e of r)e.sheet&&e.sheet.cssRules&&e.sheet.cssRules.length&&(t.push(e.sheet),n.push(e.innerHTML));return{styles:t,stylesString:n.join(" ")}}(i);return{body:c,bodyString:o,styles:l.styles,stylesString:l.stylesString}}class C extends e.Plugin{static get pluginName(){return"PasteFromOffice"}static get requires(){return[t.ClipboardPipeline]}init(){const e=this.editor,t=e.plugins.get("ClipboardPipeline"),n=e.editing.view.document,r=[];r.push(new d(n)),r.push(new b(n)),r.push(new v(n)),t.on("inputTransformation",((t,s)=>{if(s._isTransformedWithPasteFromOffice)return;if(e.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const i=s.dataTransfer.getData("text/html"),o=r.find((e=>e.isActive(i)));o&&(s._parsedData||(s._parsedData=x(i,n.stylesProcessor)),o.execute(s),s._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}}})(),(window.CKEditor5=window.CKEditor5||{}).pasteFromOffice=r})(); \ No newline at end of file + */(()=>{var e={945:(e,t,n)=>{e.exports=n(79)("./src/clipboard.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{MSWordNormalizer:()=>d,PasteFromOffice:()=>C,parseHtml:()=>x});var e=n(704),t=n(945),s=n(492);function i(e,t){if(!e.childCount)return;const n=new s.UpcastWriter(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new s.Matcher({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const e of n)if("elementStart"===e.type&&r.match(e.item)){const t=l(e.item);i.push({element:e.item,id:t.id,order:t.order,indent:t.indent})}return i}(e,n);if(!r.length)return;let i=null,a=1;r.forEach(((e,l)=>{const u=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;const n=t.element.previousSibling;if(!n)return!0;return r=n,!(r.is("element","ol")||r.is("element","ul"));var r}(r[l-1],e),m=u?null:r[l-1],f=(p=e,(d=m)?p.indent-d.indent:p.indent-1);var d,p;if(u&&(i=null,a=1),!i||0!==f){const r=function(e,t){const n=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi"),r=/mso-level-number-format:([^;]{0,100});/gi,s=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,i=n.exec(t);let c="decimal",l="ol",a=null;if(i&&i[1]){const t=r.exec(i[1]);if(t&&t[1]&&(c=t[1].trim(),l="bullet"!==c&&"image"!==c?"ol":"ul"),"bullet"===c){const t=function(e){const t=function(e){if(e.getChild(0).is("$text"))return null;for(const t of e.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);if(e)return e.is("$text")?e:e.getChild(0)}return null}(e);if(!t)return null;const n=t._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(e.element);t&&(c=t)}else{const e=s.exec(i[1]);e&&e[1]&&(a=parseInt(e[1]))}}return{type:l,startIndex:a,style:o(c)}}(e,t);if(i){if(e.indent>a){const e=i.getChild(i.childCount-1),t=e.getChild(e.childCount-1);i=c(r,t,n),a+=1}else if(e.indent<a){const t=a-e.indent;i=function(e,t){const n=e.getAncestors({parentFirst:!0});let r=null,s=0;for(const e of n)if((e.is("element","ul")||e.is("element","ol"))&&s++,s===t){r=e;break}return r}(i,t),a=e.indent}}else i=c(r,e.element,n);e.indent<=a&&(i.is("element",r.type)||(i=n.rename(r.type,i)))}const g=function(e,t){return function(e,t){const n=new s.Matcher({name:"span",styles:{"mso-list":"Ignore"}}),r=t.createRangeIn(e);for(const e of r)"elementStart"===e.type&&n.match(e.item)&&t.remove(e.item)}(e,t),t.removeStyle("text-indent",e),t.rename("li",e)}(e.element,n);n.appendChild(g,i)}))}function o(e){if(e.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(e){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 e;default:return null}}function c(e,t,n){const r=t.parent,s=n.createElement(e.type),i=r.getChildIndex(t)+1;return n.insertChild(i,s,r),e.style&&n.setStyle("list-style-type",e.style,s),e.startIndex&&e.startIndex>1&&n.setAttribute("start",e.startIndex,s),s}function l(e){const t={},n=e.getStyle("mso-list");if(n){const e=n.match(/(^|\s{1,100})l(\d+)/i),r=n.match(/\s{0,100}lfo(\d+)/i),s=n.match(/\s{0,100}level(\d+)/i);e&&r&&s&&(t.id=e[2],t.order=r[1],t.indent=parseInt(s[1]))}return t}function a(e,t){if(!e.childCount)return;const n=new s.UpcastWriter(e.document),r=function(e,t){const n=t.createRangeIn(e),r=new s.Matcher({name:/v:(.+)/}),i=[];for(const e of n){if("elementStart"!=e.type)continue;const t=e.item,n=t.previousSibling,s=n&&n.is("element")?n.name:null;r.match(t)&&t.getAttribute("o:gfxdata")&&"v:shapetype"!==s&&i.push(e.item.getAttribute("id"))}return i}(e,n);!function(e,t,n){const r=n.createRangeIn(t),i=new s.Matcher({name:"img"}),o=[];for(const t of r)if(t.item.is("element")&&i.match(t.item)){const n=t.item,r=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];r.length&&r.every((t=>e.indexOf(t)>-1))?o.push(n):n.getAttribute("src")||o.push(n)}for(const e of o)n.remove(e)}(r,e,n),function(e,t,n){const r=n.createRangeIn(t),s=[];for(const t of r)if("elementStart"==t.type&&t.item.is("element","v:shape")){const n=t.item.getAttribute("id");if(e.includes(n))continue;i(t.item.parent.getChildren(),n)||s.push(t.item)}for(const e of s){const t={src:o(e)};e.hasAttribute("alt")&&(t.alt=e.getAttribute("alt"));const r=n.createElement("img",t);n.insertChild(e.index+1,r,e.parent)}function i(e,t){for(const n of e)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==t)return!0;if(i(n.getChildren(),t))return!0}return!1}function o(e){for(const t of e.getChildren())if(t.is("element")&&t.getAttribute("src"))return t.getAttribute("src")}}(r,e,n),function(e,t){const n=t.createRangeIn(e),r=new s.Matcher({name:/v:(.+)/}),i=[];for(const e of n)"elementStart"==e.type&&r.match(e.item)&&i.push(e.item);for(const e of i)t.remove(e)}(e,n);const i=function(e,t){const n=t.createRangeIn(e),r=new s.Matcher({name:"img"}),i=[];for(const e of n)e.item.is("element")&&r.match(e.item)&&e.item.getAttribute("src").startsWith("file://")&&i.push(e.item);return i}(e,n);i.length&&function(e,t,n){if(e.length===t.length)for(let r=0;r<e.length;r++){const s=`data:${t[r].type};base64,${u(t[r].hex)}`;n.setAttribute("src",s,e[r])}}(i,function(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),r=e.match(n),s=[];if(r)for(const e of r){let n=!1;e.includes("\\pngblip")?n="image/png":e.includes("\\jpegblip")&&(n="image/jpeg"),n&&s.push({hex:e.replace(t,"").replace(/[^\da-fA-F]/g,""),type:n})}return s}(t),n)}function u(e){return btoa(e.match(/\w{2}/g).map((e=>String.fromCharCode(parseInt(e,16)))).join(""))}const m=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,f=/xmlns:o="urn:schemas-microsoft-com/i;class d{constructor(e){this.document=e}isActive(e){return m.test(e)||f.test(e)}execute(e){const{body:t,stylesString:n}=e._parsedData;i(t,n),a(t,e.dataTransfer.getData("text/rtf")),function(e){const t=[],n=new s.UpcastWriter(e.document);for(const{item:r}of n.createRangeIn(e))if(r.is("element")){for(const e of r.getClassNames())/\bmso/gi.exec(e)&&n.removeClass(e,r);for(const e of r.getStyleNames())/\bmso/gi.exec(e)&&n.removeStyle(e,r);r.is("element","w:sdt")&&t.push(r)}for(const e of t){const t=e.parent,r=t.getChildIndex(e);n.insertChild(r,e.getChildren(),t),n.remove(e)}}(t),e.content=t}}function p(e,t,n,{blockElements:r,inlineObjectElements:s}){let i=n.createPositionAt(e,"forward"==t?"after":"before");return i=i.getLastMatchingPosition((({item:e})=>e.is("element")&&!r.includes(e.name)&&!s.includes(e.name)),{direction:t}),"forward"==t?i.nodeAfter:i.nodeBefore}function g(e,t){return!!e&&e.is("element")&&t.includes(e.name)}const h=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class b{constructor(e){this.document=e}isActive(e){return h.test(e)}execute(e){const t=new s.UpcastWriter(this.document),{body:n}=e._parsedData;!function(e,t){for(const n of e.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const r=e.getChildIndex(n);t.remove(n),t.insertChild(r,n.getChildren(),e)}}(n,t),function(e,t){for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","li")){const n=e.getChild(0);n&&n.is("element","p")&&t.unwrapElement(n)}}}(n,t),function(e,t){const n=new s.ViewDocument(t.document.stylesProcessor),r=new s.DomConverter(n,{renderingMode:"data"}),i=r.blockElements,o=r.inlineObjectElements,c=[];for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","br")){const n=p(e,"forward",t,{blockElements:i,inlineObjectElements:o}),r=p(e,"backward",t,{blockElements:i,inlineObjectElements:o}),s=g(n,i);(g(r,i)||s)&&c.push(e)}}for(const e of c)e.hasClass("Apple-interchange-newline")?t.remove(e):t.replace(e,t.createElement("p"))}(n,t),e.content=n}}const y=/<google-sheets-html-origin/i;class v{constructor(e){this.document=e}isActive(e){return y.test(e)}execute(e){const t=new s.UpcastWriter(this.document),{body:n}=e._parsedData;!function(e,t){for(const n of e.getChildren())if(n.is("element","google-sheets-html-origin")){const r=e.getChildIndex(n);t.remove(n),t.insertChild(r,n.getChildren(),e)}}(n,t),function(e,t){for(const n of e.getChildren())n.is("element","table")&&n.hasAttribute("xmlns")&&t.removeAttribute("xmlns",n)}(n,t),function(e,t){for(const n of e.getChildren())n.is("element","table")&&"0px"===n.getStyle("width")&&t.removeStyle("width",n)}(n,t),function(e,t){for(const n of Array.from(e.getChildren()))n.is("element","style")&&t.remove(n)}(n,t),e.content=n}}function w(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((e,t)=>1===t.length?" ":Array(t.length+1).join(" ").substr(0,t.length)))}function x(e,t){const n=new DOMParser,r=function(e){return w(w(e)).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(e){const t="</body>",n="</html>",r=e.indexOf(t);if(r<0)return e;const s=e.indexOf(n,r+t.length);return e.substring(0,r+t.length)+(s>=0?e.substring(s):"")}(e=(e=e.replace(/<!--\[if gte vml 1]>/g,"")).replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,""))),i=n.parseFromString(r,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((e=>{const t=e,n=t.innerText.length||0;t.innerText=Array(n+1).join(" ").substr(0,n)}))}(i);const o=i.body.innerHTML,c=function(e,t){const n=new s.ViewDocument(t),r=new s.DomConverter(n,{renderingMode:"data"}),i=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)i.appendChild(o[0]);return r.domToView(i,{skipComments:!0})}(i,t),l=function(e){const t=[],n=[],r=Array.from(e.getElementsByTagName("style"));for(const e of r)e.sheet&&e.sheet.cssRules&&e.sheet.cssRules.length&&(t.push(e.sheet),n.push(e.innerHTML));return{styles:t,stylesString:n.join(" ")}}(i);return{body:c,bodyString:o,styles:l.styles,stylesString:l.stylesString}}class C extends e.Plugin{static get pluginName(){return"PasteFromOffice"}static get requires(){return[t.ClipboardPipeline]}init(){const e=this.editor,t=e.plugins.get("ClipboardPipeline"),n=e.editing.view.document,r=[];r.push(new d(n)),r.push(new b(n)),r.push(new v(n)),t.on("inputTransformation",((t,s)=>{if(s._isTransformedWithPasteFromOffice)return;if(e.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const i=s.dataTransfer.getData("text/html"),o=r.find((e=>e.isActive(i)));o&&(s._parsedData||(s._parsedData=x(i,n.stylesProcessor)),o.execute(s),s._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}}})(),(window.CKEditor5=window.CKEditor5||{}).pasteFromOffice=r})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/sr-latn.js b/core/assets/vendor/ckeditor5/show-blocks/translations/sr-latn.js new file mode 100644 index 000000000000..c848b8ef4de2 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/sr-latn.js @@ -0,0 +1 @@ +!function(i){const n=i["sr-latn"]=i["sr-latn"]||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Prikaži blokove"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/core.libraries.yml b/core/core.libraries.yml index 373b560d28ec..c01c58b74684 100644 --- a/core/core.libraries.yml +++ b/core/core.libraries.yml @@ -19,10 +19,10 @@ internal.backbone: ckeditor5: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: # This file is not aggregated to force the creation of a new aggregate file @@ -36,10 +36,10 @@ ckeditor5: ckeditor5.editorClassic: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/editor-classic/editor-classic.js: { minified: true } @@ -48,10 +48,10 @@ ckeditor5.editorClassic: ckeditor5.editorDecoupled: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/editor-decoupled/editor-decoupled.js: { minified: true } @@ -74,10 +74,10 @@ ckeditor5.essentials: ckeditor5.heading: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/heading/heading.js: { minified: true } @@ -87,10 +87,10 @@ ckeditor5.heading: ckeditor5.basic: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/basic-styles/basic-styles.js: { minified: true } @@ -100,10 +100,10 @@ ckeditor5.basic: ckeditor5.specialCharacters: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/special-characters/special-characters.js: { minified: true } @@ -113,10 +113,10 @@ ckeditor5.specialCharacters: ckeditor5.blockquote: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/block-quote/block-quote.js: { minified: true } @@ -126,10 +126,10 @@ ckeditor5.blockquote: ckeditor5.image: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/image/image.js: { minified: true } @@ -139,10 +139,10 @@ ckeditor5.image: ckeditor5.link: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/link/link.js: { minified: true } @@ -152,10 +152,10 @@ ckeditor5.link: ckeditor5.list: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/list/list.js: { minified: true } @@ -165,10 +165,10 @@ ckeditor5.list: ckeditor5.horizontalLine: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/horizontal-line/horizontal-line.js: { minified: true } @@ -178,10 +178,10 @@ ckeditor5.horizontalLine: ckeditor5.htmlSupport: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/html-support/html-support.js: { minified: true } @@ -191,10 +191,10 @@ ckeditor5.htmlSupport: ckeditor5.alignment: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/alignment/alignment.js: { minified: true } @@ -204,10 +204,10 @@ ckeditor5.alignment: ckeditor5.removeFormat: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/remove-format/remove-format.js: { minified: true } @@ -217,10 +217,10 @@ ckeditor5.removeFormat: ckeditor5.pasteFromOffice: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/paste-from-office/paste-from-office.js: { minified: true } @@ -229,10 +229,10 @@ ckeditor5.pasteFromOffice: ckeditor5.indent: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/indent/indent.js: { minified: true } @@ -242,10 +242,10 @@ ckeditor5.indent: ckeditor5.sourceEditing: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/source-editing/source-editing.js: { minified: true } @@ -255,10 +255,10 @@ ckeditor5.sourceEditing: ckeditor5.table: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/table/table.js: { minified: true } @@ -268,10 +268,10 @@ ckeditor5.table: ckeditor5.language: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/language/language.js: { minified: true } @@ -281,10 +281,10 @@ ckeditor5.language: ckeditor5.codeBlock: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/code-block/code-block.js: { minified: true } @@ -294,7 +294,7 @@ ckeditor5.codeBlock: ckeditor5.showBlocks: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v37.1.0/LICENSE.md @@ -306,10 +306,10 @@ ckeditor5.showBlocks: ckeditor5.style: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/style/style.js: { minified: true } @@ -328,10 +328,10 @@ ckeditor5.translations: ckeditor5.autoformat: remote: https://github.com/ckeditor/ckeditor5 - version: "40.1.0" + version: "40.2.0" license: name: GNU-GPL-2.0-or-later - url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.1.0/LICENSE.md + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v40.2.0/LICENSE.md gpl-compatible: true js: assets/vendor/ckeditor5/autoformat/autoformat.js: { minified: true } diff --git a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml index 91086d823a98..7a259c81185d 100644 --- a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml +++ b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml @@ -561,6 +561,7 @@ ckeditor5_image: insert: # Determine image type (inline or block) by insertion context. type: auto + integrations: [] drupal: label: Image class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image @@ -595,7 +596,7 @@ ckeditor5_imageUpload: ckeditor5_imageUrl: ckeditor5: plugins: - - image.ImageInsertUI + - image.ImageInsertViaUrl drupal: label: Image URL elements: false diff --git a/core/modules/ckeditor5/css/image.admin.css b/core/modules/ckeditor5/css/image.admin.css index 78cf8ba312e4..a8dd831bbd1e 100644 --- a/core/modules/ckeditor5/css/image.admin.css +++ b/core/modules/ckeditor5/css/image.admin.css @@ -1,3 +1,3 @@ -.ckeditor5-toolbar-button-drupalInsertImage { +.ckeditor5-toolbar-button-insertImage { background-image: url(../icons/image.svg); } diff --git a/core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc b/core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc index 46303adab7f5..6054d2a9dcaa 100644 --- a/core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc +++ b/core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc @@ -1187,9 +1187,21 @@ */ /** - * Declared in file @ckeditor/ckeditor5-image/src/imageinsert/ui/imageinsertpanelview.js + * Declared in file @ckeditor/ckeditor5-image/src/imageinsert/imageinsertviaurlui.js * - * @typedef {module:image/imageinsert/ui/imageinsertpanelview} module:image/imageinsert/ui/imageinsertpanelview~ImageInsertPanelView + * @typedef {module:image/imageinsert/imageinsertviaurlui} module:image/imageinsert/imageinsertviaurlui~ImageInsertViaUrlUI + */ + +/** + * Declared in file @ckeditor/ckeditor5-image/src/imageinsert/ui/imageinsertformview.js + * + * @typedef {module:image/imageinsert/ui/imageinsertformview} module:image/imageinsert/ui/imageinsertformview~ImageInsertFormView + */ + +/** + * Declared in file @ckeditor/ckeditor5-image/src/imageinsert/ui/imageinserturlview.js + * + * @typedef {module:image/imageinsert/ui/imageinserturlview} module:image/imageinsert/ui/imageinserturlview~ImageInsertUrlView */ /** @@ -2572,6 +2584,12 @@ * @typedef {module:upload/ui/filedialogbuttonview} module:upload/ui/filedialogbuttonview~FileDialogButtonView */ +/** + * Declared in file @ckeditor/ckeditor5-utils/src/abortabledebounce.js + * + * @typedef {module:utils/abortabledebounce} module:utils/abortabledebounce~abortableDebounce + */ + /** * Declared in file @ckeditor/ckeditor5-utils/src/areconnectedthroughproperties.js * @@ -2848,6 +2866,12 @@ * @typedef {module:utils/observablemixin} module:utils/observablemixin~ObservableMixin */ +/** + * Declared in file @ckeditor/ckeditor5-utils/src/retry.js + * + * @typedef {module:utils/retry} module:utils/retry~async + */ + /** * Declared in file @ckeditor/ckeditor5-utils/src/splicearray.js * @@ -2884,6 +2908,12 @@ * @typedef {module:utils/version} module:utils/version~version */ +/** + * Declared in file @ckeditor/ckeditor5-utils/src/wait.js + * + * @typedef {module:utils/wait} module:utils/wait~wait + */ + /** * Declared in file @ckeditor/ckeditor5-watchdog/src/utils/areconnectedthroughproperties.js * diff --git a/core/modules/ckeditor5/js/build/drupalImage.js b/core/modules/ckeditor5/js/build/drupalImage.js index c4ab062f8eba..5f5e75012a19 100644 --- a/core/modules/ckeditor5/js/build/drupalImage.js +++ b/core/modules/ckeditor5/js/build/drupalImage.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.drupalImage=t())}(globalThis,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/engine.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/engine.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/upload.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/upload.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(r){var s=t[r];if(void 0!==s)return s.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";i.d(r,{default:()=>B});var e=i("ckeditor5/src/core.js");function t(e,t,i){if(t.attributes)for(const[r,s]of Object.entries(t.attributes))e.setAttribute(r,s,i);t.styles&&e.setStyle(t.styles,i),t.classes&&e.addClass(t.classes,i)}var s=i("ckeditor5/src/engine.js");class n extends s.Observer{observe(e){this.listenTo(e,"load",((e,t)=>{const i=t.target;this.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&this._fireEvents(t)}),{useCapture:!0})}stopObserving(e){this.stopListening(e)}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}function o(e){return e.createEmptyElement("img")}function a(e){const t=parseFloat(e);return!Number.isNaN(t)&&e===String(t)}function l(e){return"string"==typeof e&&e.endsWith("%")?e:`${parseInt(e,10)}`}const u=[{modelValue:"alignCenter",dataValue:"center"},{modelValue:"alignRight",dataValue:"right"},{modelValue:"alignLeft",dataValue:"left"}];class d extends e.Plugin{static get requires(){return["ImageUtils"]}static get pluginName(){return"DrupalImageEditing"}init(){const{editor:e}=this,{conversion:i}=e,{schema:r}=e.model;if(r.isRegistered("imageInline")&&r.extend("imageInline",{allowAttributes:["dataEntityUuid","dataEntityType","isDecorative"]}),r.isRegistered("imageBlock")&&r.extend("imageBlock",{allowAttributes:["dataEntityUuid","dataEntityType","isDecorative"]}),i.for("upcast").add(function(e){function t(t,i,r){const{viewItem:s}=i,{writer:n,consumable:o,safeInsert:a,updateConversionResult:l,schema:d}=r,c=[];let m;if(!o.test(s,{name:!0,attributes:"src"}))return;const g=o.test(s,{name:!0,attributes:"data-caption"});if(m=d.checkChild(i.modelCursor,"imageInline")&&!g?n.createElement("imageInline",{src:s.getAttribute("src")}):n.createElement("imageBlock",{src:s.getAttribute("src")}),e.plugins.has("ImageStyleEditing")&&o.test(s,{name:!0,attributes:"data-align"})){const e=s.getAttribute("data-align"),t=u.find((t=>t.dataValue===e));t&&(n.setAttribute("imageStyle",t.modelValue,m),c.push("data-align"))}if(g){const t=n.createElement("caption"),i=e.data.processor.toView(s.getAttribute("data-caption"));r.consumable.constructor.createFrom(i,r.consumable),r.convertChildren(i,t),n.append(t,m),c.push("data-caption")}o.test(s,{name:!0,attributes:"data-entity-uuid"})&&(n.setAttribute("dataEntityUuid",s.getAttribute("data-entity-uuid"),m),c.push("data-entity-uuid")),o.test(s,{name:!0,attributes:"data-entity-type"})&&(n.setAttribute("dataEntityType",s.getAttribute("data-entity-type"),m),c.push("data-entity-type")),a(m,i.modelCursor)&&(o.consume(s,{name:!0,attributes:c}),l(m,i))}return e=>{e.on("element:img",t,{priority:"high"})}}(e)).attributeToAttribute({view:{name:"img",key:"width"},model:{key:"resizedWidth",value:e=>a(e.getAttribute("width"))?`${parseInt(e.getAttribute("width"),10)}px`:e.getAttribute("width").trim()}}).attributeToAttribute({view:{name:"img",key:"height"},model:{key:"resizedHeight",value:e=>a(e.getAttribute("height"))?`${parseInt(e.getAttribute("height"),10)}px`:e.getAttribute("height").trim()}}),e.plugins.has("DataFilter")){const t=e.plugins.get("DataFilter");i.for("upcast").add(function(e){function t(t,i,r){if(!i.modelRange)return;const s=i.viewItem.parent;if(!s.is("element","a"))return;if(!i.modelRange.getContainedElement().is("element","imageBlock"))return;const n=e.processViewAttributes(s,r);n&&r.writer.setAttribute("htmlLinkAttributes",n,i.modelRange)}return e=>{e.on("element:img",t,{priority:"high"})}}(t))}i.for("downcast").add(function(){function e(e,t,i){const{item:r}=t,{consumable:s,writer:n}=i;if(!s.consume(r,e.name))return;const o=i.mapper.toViewElement(r),a=Array.from(o.getChildren()).find((e=>"img"===e.name));n.setAttribute("data-entity-uuid",t.attributeNewValue,a||o)}return t=>{t.on("attribute:dataEntityUuid",e)}}()).add(function(){function e(e,t,i){const{item:r}=t,{consumable:s,writer:n}=i;if(!s.consume(r,e.name))return;const o=i.mapper.toViewElement(r),a=Array.from(o.getChildren()).find((e=>"img"===e.name));n.setAttribute("data-entity-type",t.attributeNewValue,a||o)}return t=>{t.on("attribute:dataEntityType",e)}}()),i.for("dataDowncast").add(function(e){return t=>{t.on("insert:caption",((t,i,r)=>{const{consumable:s,writer:n,mapper:o}=r;if(!e.plugins.get("ImageUtils").isImage(i.item.parent)||!s.consume(i.item,"insert"))return;const a=e.model.createRangeIn(i.item),l=n.createDocumentFragment();o.bindElements(i.item,l);for(const{item:t}of Array.from(a)){const i={item:t,range:e.model.createRangeOn(t)},s=`insert:${t.name||"$text"}`;e.data.downcastDispatcher.fire(s,i,r);for(const s of t.getAttributeKeys())Object.assign(i,{attributeKey:s,attributeOldValue:null,attributeNewValue:i.item.getAttribute(s)}),e.data.downcastDispatcher.fire(`attribute:${s}`,i,r)}for(const e of n.createRangeIn(l).getItems())o.unbindViewElement(e);o.unbindViewElement(l);const u=e.data.processor.toData(l);if(u){const e=o.toViewElement(i.item.parent);n.setAttribute("data-caption",u,e)}}),{priority:"high"})}}(e)).elementToElement({model:"imageBlock",view:(e,{writer:t})=>o(t),converterPriority:"high"}).elementToElement({model:"imageInline",view:(e,{writer:t})=>o(t),converterPriority:"high"}).add(function(){function e(e,t,i){const{item:r}=t,{consumable:s,writer:n}=i,o=u.find((e=>e.modelValue===t.attributeNewValue));if(!o||!s.consume(r,e.name))return;const a=i.mapper.toViewElement(r),l=Array.from(a.getChildren()).find((e=>"img"===e.name));n.setAttribute("data-align",o.dataValue,l||a)}return t=>{t.on("attribute:imageStyle",e,{priority:"high"})}}()).add(function(){function e(e,i,r){if(!r.consumable.consume(i.item,e.name))return;const s=r.mapper.toViewElement(i.item),n=r.writer,o=n.createContainerElement("a",{href:i.attributeNewValue});n.insert(n.createPositionBefore(s),o),n.move(n.createRangeOn(s),n.createPositionAt(o,0)),r.consumable.consume(i.item,"attribute:htmlLinkAttributes:imageBlock")&&t(r.writer,i.item.getAttribute("htmlLinkAttributes"),o)}return t=>{t.on("attribute:linkHref:imageBlock",e,{priority:"high"})}}()).attributeToAttribute({model:{name:"imageBlock",key:"resizedWidth"},view:e=>({key:"width",value:l(e)}),converterPriority:"high"}).attributeToAttribute({model:{name:"imageInline",key:"resizedWidth"},view:e=>({key:"width",value:l(e)}),converterPriority:"high"}).attributeToAttribute({model:{name:"imageBlock",key:"resizedHeight"},view:e=>({key:"height",value:l(e)}),converterPriority:"high"}).attributeToAttribute({model:{name:"imageInline",key:"resizedHeight"},view:e=>({key:"height",value:l(e)}),converterPriority:"high"}).attributeToAttribute({model:{name:"imageBlock",key:"width"},view:(e,{consumable:t},i)=>i.item.hasAttribute("resizedWidth")?(t.consume(i.item,"attribute:width"),null):{key:"width",value:e},converterPriority:"high"}).attributeToAttribute({model:{name:"imageInline",key:"width"},view:(e,{consumable:t},i)=>i.item.hasAttribute("resizedWidth")?(t.consume(i.item,"attribute:width"),null):{key:"width",value:e},converterPriority:"high"}).attributeToAttribute({model:{name:"imageBlock",key:"height"},view:(e,t,i)=>{if(i.item.hasAttribute("resizedWidth")){if(i.item.getAttribute("resizedWidth").endsWith("%"))return{key:"height",value:i.item.getAttribute("resizedWidth")};const t=parseInt(i.item.getAttribute("resizedWidth"),10),r=parseInt(i.item.getAttribute("width"),10)/parseInt(e,10);return{key:"height",value:`${Math.round(t/r)}`}}return{key:"height",value:e}},converterPriority:"high"}).attributeToAttribute({model:{name:"imageInline",key:"height"},view:(e,t,i)=>{if(i.item.hasAttribute("resizedWidth")){if(i.item.getAttribute("resizedWidth").endsWith("%"))return{key:"height",value:i.item.getAttribute("resizedWidth")};const t=parseInt(i.item.getAttribute("resizedWidth"),10),r=parseInt(i.item.getAttribute("width"),10)/parseInt(e,10);return{key:"height",value:`${Math.round(t/r)}`}}return{key:"height",value:e}},converterPriority:"high"}),e.editing.view.addObserver(n);const s=e.plugins.get("ImageUtils");e.editing.view.document.on("imageLoaded",((t,i)=>{const r=e.editing.view.domConverter.mapDomToView(i.target);if(!r)return;const n=s.getImageWidgetFromImageView(r);if(!n)return;const o=e.editing.mapper.toModelElement(n);o&&e.model.enqueueChange({isUndoable:!1},(()=>{s.setImageNaturalSizeAttributes(o)}))}))}}class c extends e.Command{refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){const t=this.editor,i=t.plugins.get("ImageUtils"),r=t.model,s=i.getClosestSelectedImageElement(r.document.selection);r.change((t=>{t.setAttribute("alt",e.newValue,s)}))}}class m extends e.Plugin{static get requires(){return["ImageUtils"]}static get pluginName(){return"DrupalImageAlternativeTextEditing"}constructor(e){super(e),this._missingAltTextViewReferences=new Set}init(){const e=this.editor;e.conversion.for("editingDowncast").add(this._imageEditingDowncastConverter("attribute:alt",e)).add(this._imageEditingDowncastConverter("attribute:src",e)),e.commands.add("imageTextAlternative",new c(this.editor)),e.editing.view.on("render",(()=>{for(const e of this._missingAltTextViewReferences)e.button.element.isConnected||(e.destroy(),this._missingAltTextViewReferences.delete(e))}))}_imageEditingDowncastConverter(e){const t=(e,t,i)=>{const r=this.editor;if(!r.plugins.get("ImageUtils").isImage(t.item))return;const s=i.mapper.toViewElement(t.item),n=Array.from(s.getChildren()).find((e=>e.getCustomProperty("drupalImageMissingAltWarning")));if(t.item.hasAttribute("alt"))return void(n&&i.writer.remove(n));if(n)return;const o=r.ui.componentFactory.create("drupalImageAlternativeTextMissing");o.listenTo(r.ui,"update",(()=>{const e=r.model.document.selection.getFirstRange(),i=r.model.createRangeOn(t.item);o.set({isSelected:e.containsRange(i)||e.isIntersecting(i)})})),o.render(),this._missingAltTextViewReferences.add(o);const a=i.writer.createUIElement("span",{class:"image-alternative-text-missing-wrapper"},(function(e){const t=this.toDomElement(e);return t.appendChild(o.element),t}));i.writer.setCustomProperty("drupalImageMissingAltWarning",!0,a),i.writer.insert(i.writer.createPositionAt(s,"end"),a)};return i=>{i.on(e,t,{priority:"low"})}}}var g=i("ckeditor5/src/ui.js");function h(e){const t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){const i=p(e);t.updatePosition(i)}}function p(e){const t=e.editing.view,i=g.BalloonPanelView.defaultPositions,r=e.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(r.getClosestSelectedImageWidget(t.document.selection)),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}var b=i("ckeditor5/src/utils.js");class f extends g.View{constructor(t){super(t),this.focusTracker=new b.FocusTracker,this.keystrokes=new b.KeystrokeHandler,this.decorativeToggle=this._decorativeToggleView(),this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(Drupal.t("Save"),e.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this.decorativeToggle,"isOn",this.labeledInput,"isEmpty",((e,t)=>e||!t)),this.cancelButtonView=this._createButton(Drupal.t("Cancel"),e.icons.cancel,"ck-button-cancel","cancel"),this._focusables=new g.ViewCollection,this._focusCycler=new g.FocusCycler({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-text-alternative-form--with-decorative-toggle","ck-responsive-form"],tabindex:"-1"},children:[{tag:"div",attributes:{class:["ck","ck-text-alternative-form__decorative-toggle"]},children:[this.decorativeToggle]},this.labeledInput,this.saveButtonView,this.cancelButtonView]}),(0,g.injectCssTransitionDisabler)(this)}render(){super.render(),this.keystrokes.listenTo(this.element),(0,g.submitHandler)({view:this}),[this.decorativeToggle,this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,i,r){const s=new g.ButtonView(this.locale);return s.set({label:e,icon:t,tooltip:!0}),s.extendTemplate({attributes:{class:i}}),r&&s.delegate("execute").to(this,r),s}_createLabeledInputView(){const e=new g.LabeledFieldView(this.locale,g.createLabeledInputText);return e.bind("class").to(this.decorativeToggle,"isOn",(e=>e?"ck-hidden":"")),e.label=Drupal.t("Text alternative"),e}_decorativeToggleView(){const e=new g.SwitchButtonView(this.locale);return e.set({withText:!0,label:Drupal.t("Decorative image")}),e.on("execute",(()=>{e.set("isOn",!e.isOn)})),e}}class w extends g.View{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible"),this.set("isSelected");const i=Drupal.t("Add missing alternative text");this.button=new g.ButtonView(e),this.button.set({label:i,tooltip:!1,withText:!0}),this.setTemplate({tag:"span",attributes:{class:["image-alternative-text-missing",t.to("isVisible",(e=>e?"":"ck-hidden"))],title:i},children:[this.button]})}}class v extends e.Plugin{static get requires(){return[g.ContextualBalloon]}static get pluginName(){return"DrupalImageTextAlternativeUI"}init(){this._createButton(),this._createForm(),this._createMissingAltTextComponent();const e=()=>{this.editor.plugins.get("ImageUtils").getClosestSelectedImageWidget(this.editor.editing.view.document.selection)&&this._showForm()};if(this.editor.commands.get("insertImage")){this.editor.commands.get("insertImage").on("execute",e)}if(this.editor.plugins.has("ImageUploadEditing")){this.editor.plugins.get("ImageUploadEditing").on("uploadComplete",e)}}_createMissingAltTextComponent(){this.editor.ui.componentFactory.add("drupalImageAlternativeTextMissing",(e=>{const t=new w(e);return t.listenTo(t.button,"execute",(()=>{this._isInBalloon&&this._balloon.remove(this._form),this._showForm()})),t.listenTo(this.editor.ui,"update",(()=>{t.set({isVisible:!this._isVisible||!t.isSelected})})),t}))}destroy(){super.destroy(),this._form.destroy()}_createButton(){const t=this.editor;t.ui.componentFactory.add("drupalImageAlternativeText",(i=>{const r=t.commands.get("imageTextAlternative"),s=new g.ButtonView(i);return s.set({label:Drupal.t("Change image alternative text"),icon:e.icons.lowVision,tooltip:!0}),s.bind("isEnabled").to(r,"isEnabled"),this.listenTo(s,"execute",(()=>{this._showForm()})),s}))}_createForm(){const e=this.editor,t=e.editing.view.document,i=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new f(e.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{e.execute("imageTextAlternative",{newValue:this._form.decorativeToggle.isOn?"":this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this.listenTo(this._form.decorativeToggle,"execute",(()=>{h(e)})),this._form.keystrokes.set("Esc",((e,t)=>{this._hideForm(!0),t()})),this.listenTo(e.ui,"update",(()=>{i.getClosestSelectedImageWidget(t.selection)?this._isVisible&&h(e):this._hideForm(!0)})),(0,g.clickOutsideHandler)({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const e=this.editor,t=e.commands.get("imageTextAlternative"),i=this._form.decorativeToggle,r=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:p(e)}),i.isOn=""===t.value,r.fieldView.element.value=t.value||"",r.fieldView.value=r.fieldView.element.value,i.isOn?i.focus():r.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class y extends e.Plugin{static get requires(){return[m,v]}static get pluginName(){return"DrupalImageAlternativeText"}}class I extends e.Plugin{static get requires(){return[d,y]}static get pluginName(){return"DrupalImage"}}const A=I;class k extends e.Plugin{init(){const{editor:e}=this;e.plugins.get("ImageUploadEditing").on("uploadComplete",((t,{data:i,imageElement:r})=>{e.model.change((e=>{e.setAttribute("dataEntityUuid",i.response.uuid,r),e.setAttribute("dataEntityType",i.response.entity_type,r)}))}))}static get pluginName(){return"DrupalImageUploadEditing"}}var x=i("ckeditor5/src/upload.js");class _{constructor(e,t){this.loader=e,this.options=t}upload(){return this.loader.file.then((e=>new Promise(((t,i)=>{this._initRequest(),this._initListeners(t,i,e),this._sendRequest(e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){this.xhr=new XMLHttpRequest,this.xhr.open("POST",this.options.uploadUrl,!0),this.xhr.responseType="json"}_initListeners(e,t,i){const r=this.xhr,s=this.loader,n=`Couldn't upload file: ${i.name}.`;r.addEventListener("error",(()=>t(n))),r.addEventListener("abort",(()=>t())),r.addEventListener("load",(()=>{const i=r.response;if(!i||i.error)return t(i&&i.error&&i.error.message?i.error.message:n);e({response:i,urls:{default:i.url}})})),r.upload&&r.upload.addEventListener("progress",(e=>{e.lengthComputable&&(s.uploadTotal=e.total,s.uploaded=e.loaded)}))}_sendRequest(e){const t=this.options.headers||{},i=this.options.withCredentials||!1;Object.keys(t).forEach((e=>{this.xhr.setRequestHeader(e,t[e])})),this.xhr.withCredentials=i;const r=new FormData;r.append("upload",e),this.xhr.send(r)}}class T extends e.Plugin{static get requires(){return[x.FileRepository]}static get pluginName(){return"DrupalFileRepository"}init(){const e=this.editor.config.get("drupalImageUpload");e&&(e.uploadUrl?this.editor.plugins.get(x.FileRepository).createUploadAdapter=t=>new _(t,e):(0,b.logWarning)("simple-upload-adapter-missing-uploadurl"))}}class E extends e.Plugin{static get requires(){return[T,k]}static get pluginName(){return"DrupalImageUpload"}}const V=E;class C extends e.Plugin{init(){const{editor:e}=this;e.ui.componentFactory.add("drupalInsertImage",(()=>{if(e.plugins.has("ImageInsertUI"))return e.ui.componentFactory.create("insertImage");if(e.plugins.has("ImageUpload"))return e.ui.componentFactory.create("uploadImage");throw new Error("drupalInsertImage requires either ImageUpload or ImageInsertUI plugin to be enabled.")}))}static get pluginName(){return"DrupalInsertImage"}}const B={DrupalImage:A,DrupalImageUpload:V,DrupalInsertImage:C}})(),r=r.default})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.drupalImage=t())}(globalThis,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/engine.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/engine.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/upload.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/upload.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(r){var s=t[r];if(void 0!==s)return s.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";i.d(r,{default:()=>B});var e=i("ckeditor5/src/core.js");function t(e,t,i){if(t.attributes)for(const[r,s]of Object.entries(t.attributes))e.setAttribute(r,s,i);t.styles&&e.setStyle(t.styles,i),t.classes&&e.addClass(t.classes,i)}var s=i("ckeditor5/src/engine.js");class n extends s.Observer{observe(e){this.listenTo(e,"load",((e,t)=>{const i=t.target;this.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&this._fireEvents(t)}),{useCapture:!0})}stopObserving(e){this.stopListening(e)}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}function o(e){return e.createEmptyElement("img")}function a(e){const t=parseFloat(e);return!Number.isNaN(t)&&e===String(t)}function l(e){return"string"==typeof e&&e.endsWith("%")?e:`${parseInt(e,10)}`}const u=[{modelValue:"alignCenter",dataValue:"center"},{modelValue:"alignRight",dataValue:"right"},{modelValue:"alignLeft",dataValue:"left"}];class d extends e.Plugin{static get requires(){return["ImageUtils"]}static get pluginName(){return"DrupalImageEditing"}init(){const{editor:e}=this,{conversion:i}=e,{schema:r}=e.model;if(r.isRegistered("imageInline")&&r.extend("imageInline",{allowAttributes:["dataEntityUuid","dataEntityType","isDecorative"]}),r.isRegistered("imageBlock")&&r.extend("imageBlock",{allowAttributes:["dataEntityUuid","dataEntityType","isDecorative"]}),i.for("upcast").add(function(e){function t(t,i,r){const{viewItem:s}=i,{writer:n,consumable:o,safeInsert:a,updateConversionResult:l,schema:d}=r,c=[];let m;if(!o.test(s,{name:!0,attributes:"src"}))return;const g=o.test(s,{name:!0,attributes:"data-caption"});if(m=d.checkChild(i.modelCursor,"imageInline")&&!g?n.createElement("imageInline",{src:s.getAttribute("src")}):n.createElement("imageBlock",{src:s.getAttribute("src")}),e.plugins.has("ImageStyleEditing")&&o.test(s,{name:!0,attributes:"data-align"})){const e=s.getAttribute("data-align"),t=u.find((t=>t.dataValue===e));t&&(n.setAttribute("imageStyle",t.modelValue,m),c.push("data-align"))}if(g){const t=n.createElement("caption"),i=e.data.processor.toView(s.getAttribute("data-caption"));r.consumable.constructor.createFrom(i,r.consumable),r.convertChildren(i,t),n.append(t,m),c.push("data-caption")}o.test(s,{name:!0,attributes:"data-entity-uuid"})&&(n.setAttribute("dataEntityUuid",s.getAttribute("data-entity-uuid"),m),c.push("data-entity-uuid")),o.test(s,{name:!0,attributes:"data-entity-type"})&&(n.setAttribute("dataEntityType",s.getAttribute("data-entity-type"),m),c.push("data-entity-type")),a(m,i.modelCursor)&&(o.consume(s,{name:!0,attributes:c}),l(m,i))}return e=>{e.on("element:img",t,{priority:"high"})}}(e)).attributeToAttribute({view:{name:"img",key:"width"},model:{key:"resizedWidth",value:e=>a(e.getAttribute("width"))?`${parseInt(e.getAttribute("width"),10)}px`:e.getAttribute("width").trim()}}).attributeToAttribute({view:{name:"img",key:"height"},model:{key:"resizedHeight",value:e=>a(e.getAttribute("height"))?`${parseInt(e.getAttribute("height"),10)}px`:e.getAttribute("height").trim()}}),e.plugins.has("DataFilter")){const t=e.plugins.get("DataFilter");i.for("upcast").add(function(e){function t(t,i,r){if(!i.modelRange)return;const s=i.viewItem.parent;if(!s.is("element","a"))return;if(!i.modelRange.getContainedElement().is("element","imageBlock"))return;const n=e.processViewAttributes(s,r);n&&r.writer.setAttribute("htmlLinkAttributes",n,i.modelRange)}return e=>{e.on("element:img",t,{priority:"high"})}}(t))}i.for("downcast").add(function(){function e(e,t,i){const{item:r}=t,{consumable:s,writer:n}=i;if(!s.consume(r,e.name))return;const o=i.mapper.toViewElement(r),a=Array.from(o.getChildren()).find((e=>"img"===e.name));n.setAttribute("data-entity-uuid",t.attributeNewValue,a||o)}return t=>{t.on("attribute:dataEntityUuid",e)}}()).add(function(){function e(e,t,i){const{item:r}=t,{consumable:s,writer:n}=i;if(!s.consume(r,e.name))return;const o=i.mapper.toViewElement(r),a=Array.from(o.getChildren()).find((e=>"img"===e.name));n.setAttribute("data-entity-type",t.attributeNewValue,a||o)}return t=>{t.on("attribute:dataEntityType",e)}}()),i.for("dataDowncast").add(function(e){return t=>{t.on("insert:caption",((t,i,r)=>{const{consumable:s,writer:n,mapper:o}=r;if(!e.plugins.get("ImageUtils").isImage(i.item.parent)||!s.consume(i.item,"insert"))return;const a=e.model.createRangeIn(i.item),l=n.createDocumentFragment();o.bindElements(i.item,l);for(const{item:t}of Array.from(a)){const i={item:t,range:e.model.createRangeOn(t)},s=`insert:${t.name||"$text"}`;e.data.downcastDispatcher.fire(s,i,r);for(const s of t.getAttributeKeys())Object.assign(i,{attributeKey:s,attributeOldValue:null,attributeNewValue:i.item.getAttribute(s)}),e.data.downcastDispatcher.fire(`attribute:${s}`,i,r)}for(const e of n.createRangeIn(l).getItems())o.unbindViewElement(e);o.unbindViewElement(l);const u=e.data.processor.toData(l);if(u){const e=o.toViewElement(i.item.parent);n.setAttribute("data-caption",u,e)}}),{priority:"high"})}}(e)).elementToElement({model:"imageBlock",view:(e,{writer:t})=>o(t),converterPriority:"high"}).elementToElement({model:"imageInline",view:(e,{writer:t})=>o(t),converterPriority:"high"}).add(function(){function e(e,t,i){const{item:r}=t,{consumable:s,writer:n}=i,o=u.find((e=>e.modelValue===t.attributeNewValue));if(!o||!s.consume(r,e.name))return;const a=i.mapper.toViewElement(r),l=Array.from(a.getChildren()).find((e=>"img"===e.name));n.setAttribute("data-align",o.dataValue,l||a)}return t=>{t.on("attribute:imageStyle",e,{priority:"high"})}}()).add(function(){function e(e,i,r){if(!r.consumable.consume(i.item,e.name))return;const s=r.mapper.toViewElement(i.item),n=r.writer,o=n.createContainerElement("a",{href:i.attributeNewValue});n.insert(n.createPositionBefore(s),o),n.move(n.createRangeOn(s),n.createPositionAt(o,0)),r.consumable.consume(i.item,"attribute:htmlLinkAttributes:imageBlock")&&t(r.writer,i.item.getAttribute("htmlLinkAttributes"),o)}return t=>{t.on("attribute:linkHref:imageBlock",e,{priority:"high"})}}()).attributeToAttribute({model:{name:"imageBlock",key:"resizedWidth"},view:e=>({key:"width",value:l(e)}),converterPriority:"high"}).attributeToAttribute({model:{name:"imageInline",key:"resizedWidth"},view:e=>({key:"width",value:l(e)}),converterPriority:"high"}).attributeToAttribute({model:{name:"imageBlock",key:"resizedHeight"},view:e=>({key:"height",value:l(e)}),converterPriority:"high"}).attributeToAttribute({model:{name:"imageInline",key:"resizedHeight"},view:e=>({key:"height",value:l(e)}),converterPriority:"high"}).attributeToAttribute({model:{name:"imageBlock",key:"width"},view:(e,{consumable:t},i)=>i.item.hasAttribute("resizedWidth")?(t.consume(i.item,"attribute:width"),null):{key:"width",value:e},converterPriority:"high"}).attributeToAttribute({model:{name:"imageInline",key:"width"},view:(e,{consumable:t},i)=>i.item.hasAttribute("resizedWidth")?(t.consume(i.item,"attribute:width"),null):{key:"width",value:e},converterPriority:"high"}).attributeToAttribute({model:{name:"imageBlock",key:"height"},view:(e,t,i)=>{if(i.item.hasAttribute("resizedWidth")){if(i.item.getAttribute("resizedWidth").endsWith("%"))return{key:"height",value:i.item.getAttribute("resizedWidth")};const t=parseInt(i.item.getAttribute("resizedWidth"),10),r=parseInt(i.item.getAttribute("width"),10)/parseInt(e,10);return{key:"height",value:`${Math.round(t/r)}`}}return{key:"height",value:e}},converterPriority:"high"}).attributeToAttribute({model:{name:"imageInline",key:"height"},view:(e,t,i)=>{if(i.item.hasAttribute("resizedWidth")){if(i.item.getAttribute("resizedWidth").endsWith("%"))return{key:"height",value:i.item.getAttribute("resizedWidth")};const t=parseInt(i.item.getAttribute("resizedWidth"),10),r=parseInt(i.item.getAttribute("width"),10)/parseInt(e,10);return{key:"height",value:`${Math.round(t/r)}`}}return{key:"height",value:e}},converterPriority:"high"}),e.editing.view.addObserver(n);const s=e.plugins.get("ImageUtils");e.editing.view.document.on("imageLoaded",((t,i)=>{const r=e.editing.view.domConverter.mapDomToView(i.target);if(!r)return;const n=s.getImageWidgetFromImageView(r);if(!n)return;const o=e.editing.mapper.toModelElement(n);o&&e.model.enqueueChange({isUndoable:!1},(()=>{s.setImageNaturalSizeAttributes(o)}))}))}}class c extends e.Command{refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){const t=this.editor,i=t.plugins.get("ImageUtils"),r=t.model,s=i.getClosestSelectedImageElement(r.document.selection);r.change((t=>{t.setAttribute("alt",e.newValue,s)}))}}class m extends e.Plugin{static get requires(){return["ImageUtils"]}static get pluginName(){return"DrupalImageAlternativeTextEditing"}constructor(e){super(e),this._missingAltTextViewReferences=new Set}init(){const e=this.editor;e.conversion.for("editingDowncast").add(this._imageEditingDowncastConverter("attribute:alt",e)).add(this._imageEditingDowncastConverter("attribute:src",e)),e.commands.add("imageTextAlternative",new c(this.editor)),e.editing.view.on("render",(()=>{for(const e of this._missingAltTextViewReferences)e.button.element.isConnected||(e.destroy(),this._missingAltTextViewReferences.delete(e))}))}_imageEditingDowncastConverter(e){const t=(e,t,i)=>{const r=this.editor;if(!r.plugins.get("ImageUtils").isImage(t.item))return;const s=i.mapper.toViewElement(t.item),n=Array.from(s.getChildren()).find((e=>e.getCustomProperty("drupalImageMissingAltWarning")));if(t.item.hasAttribute("alt"))return void(n&&i.writer.remove(n));if(n)return;const o=r.ui.componentFactory.create("drupalImageAlternativeTextMissing");o.listenTo(r.ui,"update",(()=>{const e=r.model.document.selection.getFirstRange(),i=r.model.createRangeOn(t.item);o.set({isSelected:e.containsRange(i)||e.isIntersecting(i)})})),o.render(),this._missingAltTextViewReferences.add(o);const a=i.writer.createUIElement("span",{class:"image-alternative-text-missing-wrapper"},(function(e){const t=this.toDomElement(e);return t.appendChild(o.element),t}));i.writer.setCustomProperty("drupalImageMissingAltWarning",!0,a),i.writer.insert(i.writer.createPositionAt(s,"end"),a)};return i=>{i.on(e,t,{priority:"low"})}}}var g=i("ckeditor5/src/ui.js");function h(e){const t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){const i=p(e);t.updatePosition(i)}}function p(e){const t=e.editing.view,i=g.BalloonPanelView.defaultPositions,r=e.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(r.getClosestSelectedImageWidget(t.document.selection)),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}var b=i("ckeditor5/src/utils.js");class f extends g.View{constructor(t){super(t),this.focusTracker=new b.FocusTracker,this.keystrokes=new b.KeystrokeHandler,this.decorativeToggle=this._decorativeToggleView(),this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(Drupal.t("Save"),e.icons.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this.decorativeToggle,"isOn",this.labeledInput,"isEmpty",((e,t)=>e||!t)),this.cancelButtonView=this._createButton(Drupal.t("Cancel"),e.icons.cancel,"ck-button-cancel","cancel"),this._focusables=new g.ViewCollection,this._focusCycler=new g.FocusCycler({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-text-alternative-form--with-decorative-toggle","ck-responsive-form"],tabindex:"-1"},children:[{tag:"div",attributes:{class:["ck","ck-text-alternative-form__decorative-toggle"]},children:[this.decorativeToggle]},this.labeledInput,this.saveButtonView,this.cancelButtonView]}),(0,g.injectCssTransitionDisabler)(this)}render(){super.render(),this.keystrokes.listenTo(this.element),(0,g.submitHandler)({view:this}),[this.decorativeToggle,this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,i,r){const s=new g.ButtonView(this.locale);return s.set({label:e,icon:t,tooltip:!0}),s.extendTemplate({attributes:{class:i}}),r&&s.delegate("execute").to(this,r),s}_createLabeledInputView(){const e=new g.LabeledFieldView(this.locale,g.createLabeledInputText);return e.bind("class").to(this.decorativeToggle,"isOn",(e=>e?"ck-hidden":"")),e.label=Drupal.t("Text alternative"),e}_decorativeToggleView(){const e=new g.SwitchButtonView(this.locale);return e.set({withText:!0,label:Drupal.t("Decorative image")}),e.on("execute",(()=>{e.set("isOn",!e.isOn)})),e}}class w extends g.View{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible"),this.set("isSelected");const i=Drupal.t("Add missing alternative text");this.button=new g.ButtonView(e),this.button.set({label:i,tooltip:!1,withText:!0}),this.setTemplate({tag:"span",attributes:{class:["image-alternative-text-missing",t.to("isVisible",(e=>e?"":"ck-hidden"))],title:i},children:[this.button]})}}class v extends e.Plugin{static get requires(){return[g.ContextualBalloon]}static get pluginName(){return"DrupalImageTextAlternativeUI"}init(){this._createButton(),this._createForm(),this._createMissingAltTextComponent();const e=()=>{this.editor.plugins.get("ImageUtils").getClosestSelectedImageWidget(this.editor.editing.view.document.selection)&&this._showForm()};if(this.editor.commands.get("insertImage")){this.editor.commands.get("insertImage").on("execute",e)}if(this.editor.plugins.has("ImageUploadEditing")){this.editor.plugins.get("ImageUploadEditing").on("uploadComplete",e)}}_createMissingAltTextComponent(){this.editor.ui.componentFactory.add("drupalImageAlternativeTextMissing",(e=>{const t=new w(e);return t.listenTo(t.button,"execute",(()=>{this._isInBalloon&&this._balloon.remove(this._form),this._showForm()})),t.listenTo(this.editor.ui,"update",(()=>{t.set({isVisible:!this._isVisible||!t.isSelected})})),t}))}destroy(){super.destroy(),this._form.destroy()}_createButton(){const t=this.editor;t.ui.componentFactory.add("drupalImageAlternativeText",(i=>{const r=t.commands.get("imageTextAlternative"),s=new g.ButtonView(i);return s.set({label:Drupal.t("Change image alternative text"),icon:e.icons.lowVision,tooltip:!0}),s.bind("isEnabled").to(r,"isEnabled"),this.listenTo(s,"execute",(()=>{this._showForm()})),s}))}_createForm(){const e=this.editor,t=e.editing.view.document,i=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new f(e.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{e.execute("imageTextAlternative",{newValue:this._form.decorativeToggle.isOn?"":this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this.listenTo(this._form.decorativeToggle,"execute",(()=>{h(e)})),this._form.keystrokes.set("Esc",((e,t)=>{this._hideForm(!0),t()})),this.listenTo(e.ui,"update",(()=>{i.getClosestSelectedImageWidget(t.selection)?this._isVisible&&h(e):this._hideForm(!0)})),(0,g.clickOutsideHandler)({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const e=this.editor,t=e.commands.get("imageTextAlternative"),i=this._form.decorativeToggle,r=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:p(e)}),i.isOn=""===t.value,r.fieldView.element.value=t.value||"",r.fieldView.value=r.fieldView.element.value,i.isOn?i.focus():r.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class y extends e.Plugin{static get requires(){return[m,v]}static get pluginName(){return"DrupalImageAlternativeText"}}class I extends e.Plugin{static get requires(){return[d,y]}static get pluginName(){return"DrupalImage"}}const A=I;class k extends e.Plugin{init(){const{editor:e}=this;e.plugins.get("ImageUploadEditing").on("uploadComplete",((t,{data:i,imageElement:r})=>{e.model.change((e=>{e.setAttribute("dataEntityUuid",i.response.uuid,r),e.setAttribute("dataEntityType",i.response.entity_type,r)}))}))}static get pluginName(){return"DrupalImageUploadEditing"}}var x=i("ckeditor5/src/upload.js");class _{constructor(e,t){this.loader=e,this.options=t}upload(){return this.loader.file.then((e=>new Promise(((t,i)=>{this._initRequest(),this._initListeners(t,i,e),this._sendRequest(e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){this.xhr=new XMLHttpRequest,this.xhr.open("POST",this.options.uploadUrl,!0),this.xhr.responseType="json"}_initListeners(e,t,i){const r=this.xhr,s=this.loader,n=`Couldn't upload file: ${i.name}.`;r.addEventListener("error",(()=>t(n))),r.addEventListener("abort",(()=>t())),r.addEventListener("load",(()=>{const i=r.response;if(!i||i.error)return t(i&&i.error&&i.error.message?i.error.message:n);e({response:i,urls:{default:i.url}})})),r.upload&&r.upload.addEventListener("progress",(e=>{e.lengthComputable&&(s.uploadTotal=e.total,s.uploaded=e.loaded)}))}_sendRequest(e){const t=this.options.headers||{},i=this.options.withCredentials||!1;Object.keys(t).forEach((e=>{this.xhr.setRequestHeader(e,t[e])})),this.xhr.withCredentials=i;const r=new FormData;r.append("upload",e),this.xhr.send(r)}}class T extends e.Plugin{static get requires(){return[x.FileRepository]}static get pluginName(){return"DrupalFileRepository"}init(){const e=this.editor.config.get("drupalImageUpload");e&&(e.uploadUrl?this.editor.plugins.get(x.FileRepository).createUploadAdapter=t=>new _(t,e):(0,b.logWarning)("simple-upload-adapter-missing-uploadurl"))}}class E extends e.Plugin{static get requires(){return[T,k]}static get pluginName(){return"DrupalImageUpload"}}const V=E;class C extends e.Plugin{init(){const{editor:e}=this;e.ui.componentFactory.add("drupalInsertImage",(()=>e.ui.componentFactory.create("insertImage")))}static get pluginName(){return"DrupalInsertImage"}}const B={DrupalImage:A,DrupalImageUpload:V,DrupalInsertImage:C}})(),r=r.default})())); \ No newline at end of file diff --git a/core/modules/ckeditor5/js/ckeditor5_plugins/drupalImage/src/insertimage/drupalinsertimage.js b/core/modules/ckeditor5/js/ckeditor5_plugins/drupalImage/src/insertimage/drupalinsertimage.js index b75c8a851f89..8ac984a18524 100644 --- a/core/modules/ckeditor5/js/ckeditor5_plugins/drupalImage/src/insertimage/drupalinsertimage.js +++ b/core/modules/ckeditor5/js/ckeditor5_plugins/drupalImage/src/insertimage/drupalinsertimage.js @@ -12,23 +12,10 @@ class DrupalInsertImage extends Plugin { */ init() { const { editor } = this; + // This component is a shell around CKEditor 5 upstream insertImage button + // to retain backwards compatibility. editor.ui.componentFactory.add('drupalInsertImage', () => { - // Use upstream insertImage component when ImageInsertUI is enabled. The - // upstream insertImage button supports inserting of external images - // and uploading images. Out-of-the-box Drupal only uses the insertImage - // button for inserting external images. - if (editor.plugins.has('ImageInsertUI')) { - return editor.ui.componentFactory.create('insertImage'); - } - // If ImageInsertUI plugin is not enabled, fallback to using uploadImage - // upstream button. - if (editor.plugins.has('ImageUpload')) { - return editor.ui.componentFactory.create('uploadImage'); - } - - throw new Error( - 'drupalInsertImage requires either ImageUpload or ImageInsertUI plugin to be enabled.', - ); + return editor.ui.componentFactory.create('insertImage'); }); } diff --git a/core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Image.php b/core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Image.php index e2fa3d900621..d897abd265f2 100644 --- a/core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Image.php +++ b/core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Image.php @@ -38,7 +38,12 @@ public function getDynamicPluginConfig(array $static_plugin_config, EditorInterf 'headers' => ['Accept' => 'application/json', 'text/javascript'], ], ]; + $config['image']['insert']['integrations'][] = 'upload'; } + else { + $config['image']['insert']['integrations'][] = 'url'; + } + return $config; } diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php index d0ed12e3c90c..9cfabd27433f 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php @@ -89,8 +89,8 @@ protected function addImage() { $page = $this->getSession()->getPage(); $src = $this->imageAttributes()['src']; $this->waitForEditor(); - $this->pressEditorButton('Insert image'); - $panel = $page->find('css', '.ck-dropdown__panel.ck-image-insert__panel'); + $this->pressEditorButton('Insert image via URL'); + $panel = $page->find('css', '.ck-dropdown__panel .ck-image-insert-url'); $src_input = $panel->find('css', 'input[type=text]'); $src_input->setValue($src); $panel->find('xpath', "//button[span[text()='Insert']]")->click(); diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTest.php index a178615908ab..12de045f3361 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTest.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageUrlTest.php @@ -105,8 +105,8 @@ public function testImageUrlWidget(): void { $this->drupalGet($this->host->toUrl('edit-form')); $this->waitForEditor(); - $this->pressEditorButton('Insert image'); - $panel = $page->find('css', '.ck-dropdown__panel.ck-image-insert__panel'); + $this->pressEditorButton('Insert image via URL'); + $panel = $page->find('css', '.ck-dropdown__panel .ck-image-insert-url'); $src_input = $panel->find('css', 'input[type=text]'); $src_input->setValue($src); $panel->find('xpath', "//button[span[text()='Insert']]")->click(); @@ -115,8 +115,8 @@ public function testImageUrlWidget(): void { $this->click($image_selector); $this->assertVisibleBalloon('[aria-label="Image toolbar"]'); - $this->pressEditorButton('Insert image'); - $panel = $page->find('css', '.ck-dropdown__panel.ck-image-insert__panel'); + $this->pressEditorButton('Update image URL'); + $panel = $page->find('css', '.ck-dropdown__panel .ck-image-insert-url'); $src_input = $panel->find('css', 'input[type=text]'); $this->assertEquals($src, $src_input->getValue()); } diff --git a/core/package.json b/core/package.json index 259040fecf79..f8d3e0ad87f5 100644 --- a/core/package.json +++ b/core/package.json @@ -33,33 +33,33 @@ "watch:ckeditor5-dev": "yarn watch:ckeditor5 --mode=development" }, "devDependencies": { - "@ckeditor/ckeditor5-alignment": "~40.1.0", - "@ckeditor/ckeditor5-autoformat": "~40.1.0", - "@ckeditor/ckeditor5-basic-styles": "~40.1.0", - "@ckeditor/ckeditor5-block-quote": "~40.1.0", - "@ckeditor/ckeditor5-code-block": "~40.1.0", - "@ckeditor/ckeditor5-editor-classic": "~40.1.0", - "@ckeditor/ckeditor5-editor-decoupled": "~40.1.0", - "@ckeditor/ckeditor5-essentials": "~40.1.0", - "@ckeditor/ckeditor5-heading": "~40.1.0", - "@ckeditor/ckeditor5-horizontal-line": "~40.1.0", - "@ckeditor/ckeditor5-html-support": "~40.1.0", - "@ckeditor/ckeditor5-image": "~40.1.0", - "@ckeditor/ckeditor5-indent": "~40.1.0", - "@ckeditor/ckeditor5-language": "~40.1.0", - "@ckeditor/ckeditor5-link": "~40.1.0", - "@ckeditor/ckeditor5-list": "~40.1.0", - "@ckeditor/ckeditor5-paste-from-office": "~40.1.0", - "@ckeditor/ckeditor5-remove-format": "~40.1.0", - "@ckeditor/ckeditor5-show-blocks": "~40.1.0", - "@ckeditor/ckeditor5-source-editing": "~40.1.0", - "@ckeditor/ckeditor5-special-characters": "~40.1.0", - "@ckeditor/ckeditor5-style": "~40.1.0", - "@ckeditor/ckeditor5-table": "~40.1.0", + "@ckeditor/ckeditor5-alignment": "~40.2.0", + "@ckeditor/ckeditor5-autoformat": "~40.2.0", + "@ckeditor/ckeditor5-basic-styles": "~40.2.0", + "@ckeditor/ckeditor5-block-quote": "~40.2.0", + "@ckeditor/ckeditor5-code-block": "~40.2.0", + "@ckeditor/ckeditor5-editor-classic": "~40.2.0", + "@ckeditor/ckeditor5-editor-decoupled": "~40.2.0", + "@ckeditor/ckeditor5-essentials": "~40.2.0", + "@ckeditor/ckeditor5-heading": "~40.2.0", + "@ckeditor/ckeditor5-horizontal-line": "~40.2.0", + "@ckeditor/ckeditor5-html-support": "~40.2.0", + "@ckeditor/ckeditor5-image": "~40.2.0", + "@ckeditor/ckeditor5-indent": "~40.2.0", + "@ckeditor/ckeditor5-language": "~40.2.0", + "@ckeditor/ckeditor5-link": "~40.2.0", + "@ckeditor/ckeditor5-list": "~40.2.0", + "@ckeditor/ckeditor5-paste-from-office": "~40.2.0", + "@ckeditor/ckeditor5-remove-format": "~40.2.0", + "@ckeditor/ckeditor5-show-blocks": "~40.2.0", + "@ckeditor/ckeditor5-source-editing": "~40.2.0", + "@ckeditor/ckeditor5-special-characters": "~40.2.0", + "@ckeditor/ckeditor5-style": "~40.2.0", + "@ckeditor/ckeditor5-table": "~40.2.0", "@drupal/once": "1.0.x", "backbone": "^1.5.0", "chokidar": "^3.3.1", - "ckeditor5": "~40.1.0", + "ckeditor5": "~40.2.0", "cspell": "^8.0.0", "dotenv-safe": "^8.2.0", "eslint": "^8.53.0", diff --git a/core/yarn.lock b/core/yarn.lock index cce29b777bb8..f6ee7ccfeafc 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -29,307 +29,306 @@ chalk "^2.4.2" js-tokens "^4.0.0" -"@ckeditor/ckeditor5-alignment@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-alignment/-/ckeditor5-alignment-40.1.0.tgz#27e9c0b577998ad3a68b98b3978bd14188ccca6f" - integrity sha512-tFK3PWc5W1NVLMk5tI/zKEh8UkscOFrDLUjHFSYlYtvzKHH7FtdBsonzvmCJXQCgz8wc49R9DPtxRuMOos2KZg== +"@ckeditor/ckeditor5-alignment@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-alignment/-/ckeditor5-alignment-40.2.0.tgz#4ad3ae6e87f89ba0cc9614d25cb5b71f3b86204c" + integrity sha512-OMvOdgEWBzFQbcHLu4CYMe/LONSmn07BxrXQ4Uxd++Wr45U2ElrbkKcJldARa+J97YGEzaaCI3igXDh6g4fkRA== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-autoformat@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-autoformat/-/ckeditor5-autoformat-40.1.0.tgz#5842b55aad6d8912d6844e82ae3a46d70f36dd3e" - integrity sha512-ZSzrUQRbluUIlz2vwyDaQDUhboTsGK6UqPsuZQfO+GJGnOaD8JKu8Sun2KzWCzSdRhbEm5ioyJmlLOOuPsPBSQ== +"@ckeditor/ckeditor5-autoformat@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-autoformat/-/ckeditor5-autoformat-40.2.0.tgz#ee858ccb2bdfa975d13f1ecb013be9c06cbd0a5f" + integrity sha512-F3w5k7ti5l6V8U07eSQ3gup3ivltRZQXdtvstBXMmTzDb2ceazNcUDLb6TKSHp5y30ETN0dRGgbhx9xiDL0TXg== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-basic-styles@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-basic-styles/-/ckeditor5-basic-styles-40.1.0.tgz#157b435d0a88b65cf1d4db58c74cc99b62bbb9e7" - integrity sha512-+WcZPUqCAW1ABzAGFkuXZ8M72LtrmTXFdyK9KjHu9bJN7OGxN2WmVvMVX/ENU598ajM7kdHgbQedAbUa45A4AA== +"@ckeditor/ckeditor5-basic-styles@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-basic-styles/-/ckeditor5-basic-styles-40.2.0.tgz#06e618a7c1e8dd3cd67f6249c5e27335dfa2f2c6" + integrity sha512-P7jYddLnRpaR4zVCqDa8InsZ6YNRHdF0RrX6+Uz81+A1IfyfmSd+5IaiLxxdnFWQ4JlEhJutjy9vMwSmOhZocQ== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-block-quote@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-block-quote/-/ckeditor5-block-quote-40.1.0.tgz#89fc1178f131b418abba992b5d79858da53fa908" - integrity sha512-3kKhIlfdhwXgnwzU4Nur74fbGcSS5kwKqVrm3bDlMlGKzoyoqbtPppGEsdTcuq8EovTkS57/hWgyAXeJiUtA+Q== +"@ckeditor/ckeditor5-block-quote@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-block-quote/-/ckeditor5-block-quote-40.2.0.tgz#9d2fa194376146d749e089c5661e5ac4965b05de" + integrity sha512-t03Yp+MeAyQhwdGZqUlkJEx25VSiigpzkIGGOhccSaTIIZ9XcWDkrTevDhwA4Pq4Q9IRQ8Loj3KCVSBuAqkBgw== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-clipboard@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-40.1.0.tgz#a0a395a7f8f745a9f5dd8dc2fb39ac00b72f409b" - integrity sha512-Zk1wCJbxhFygfEE8QHFiF4IRO9Ufl5lKaYtCq31dniex4XGyQ4x9LJz6YLhMzfhWKIrfBwpUiStXQ3GxgVgP1w== +"@ckeditor/ckeditor5-clipboard@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-40.2.0.tgz#74daa4c9d1ae664338e9d14da6052febc3b933c4" + integrity sha512-8/xPH9/i86ukcEiHdmTgNuPVJeYTrivbx5ZYqycPO4Eem7VM99gIbOe7pIYpuV+klr9ymVxIHbGyTJDJ3oUO8A== dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-engine" "40.1.0" - "@ckeditor/ckeditor5-ui" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" - "@ckeditor/ckeditor5-widget" "40.1.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-engine" "40.2.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" + "@ckeditor/ckeditor5-widget" "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-code-block@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-code-block/-/ckeditor5-code-block-40.1.0.tgz#1f9c75356fbbc80d56767bce4f5e1dad5ae31f65" - integrity sha512-MLyGQSFgGfKAj2iroKZ4kKltYfxLjq9+yD4YxG/1zdj7ePU1VDyCucBOWxnylTlx6/UGOTEXD43kC+TUNSWVcQ== +"@ckeditor/ckeditor5-code-block@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-code-block/-/ckeditor5-code-block-40.2.0.tgz#9de746658ed5cda168fd404608f1b4a1a9cea8e1" + integrity sha512-0BMJPteTuOPcb63vba6qEu91duo4yur7FycHk6uCZmDyn0Ctp8n8zBWSDStUMYS32djrWGEclodnehjF0X57HA== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-core@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-core/-/ckeditor5-core-40.1.0.tgz#049e72d4f4e7f886a037560025f69528c5c43aac" - integrity sha512-VTPANdgrPvCshACLElgHF+ELLpoMvNoa/Y+dfnI5tNuX8hbALpmFm/rNzDIYGzNWBOjBq9WLWcvYLSrIgb3f8A== +"@ckeditor/ckeditor5-core@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-core/-/ckeditor5-core-40.2.0.tgz#fa666d863d03b003ac8667482120f9616b07ce42" + integrity sha512-0fqIaN+ZhkXXA3mpBN+alycBzPMc8ruO8VrP0OnvCjowqZVS2HXC2AaXNBdxc75xGI3ScXIor7FsgFHxVJIYYQ== dependencies: - "@ckeditor/ckeditor5-engine" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" + "@ckeditor/ckeditor5-engine" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-editor-classic@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-editor-classic/-/ckeditor5-editor-classic-40.1.0.tgz#34a57ad6b4d505104b44c39082dcb9eabc2f8a68" - integrity sha512-A1nJE+bGNcfWIw9O0JHNjXe5T3zwqE42wb7vZFznGEIc9OoG6yHmkpo5wV/DZVy9zia7Y5f6EdLdEaHLx3VzUg== +"@ckeditor/ckeditor5-editor-classic@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-editor-classic/-/ckeditor5-editor-classic-40.2.0.tgz#c1bad26afe542b501cc21371f14d30bd1a83f6f2" + integrity sha512-dftfDBxANOgqgQZ4SB3YTsEV/XX1u0g9jopbOBwqIABnVVa8zoGcktgFdGnLUFk51sL65baSx2z8Z1NNYdZcFQ== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-editor-decoupled@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-editor-decoupled/-/ckeditor5-editor-decoupled-40.1.0.tgz#83c52b6ed33073091d553d33d5b3027b486aae4b" - integrity sha512-lq7/8yNUOucG4hRSl+2dMVvNZ3mTc70p1tF1c+GLXTf2mID4RrV/tgPcSbgQY0URYdw4XS1h18Vhf1Fwy99VAw== +"@ckeditor/ckeditor5-editor-decoupled@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-editor-decoupled/-/ckeditor5-editor-decoupled-40.2.0.tgz#a1c9bca334fc02f5c82dfceff626c40790bce38e" + integrity sha512-Cjb86i8VEKSf+emF1sMmjGPVvJXqEYsq4Km4GpeOseZ0GbrZIhDyJzFqkxkdmi8JlKHWjQh9ZhJaWVAjfybFbQ== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-engine@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-40.1.0.tgz#daf83af92e46a181c3beee2e912ab055dddf0d0b" - integrity sha512-z4UD6ncjgtpqlcCzfSaAX5uro6TNiJVuW0hUv2WH4WGt1cBWjvNZ9kkcaJAANJhDXxNDA+jgRAeRkowaxUGXIg== +"@ckeditor/ckeditor5-engine@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-40.2.0.tgz#0d982dfbc6e13855f1f6b04204d9a5c4b5079f89" + integrity sha512-sgboUX8Ps+LcEgywyT3BeK1nzLHjNVIiZU1qvRxR3ixzIw4w2xRNXCGfESWLW5Y5rv9+ypUCrX61oLnZU64PQQ== dependencies: - "@ckeditor/ckeditor5-utils" "40.1.0" + "@ckeditor/ckeditor5-utils" "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-enter@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-40.1.0.tgz#f363bac7f7140f75891ccfcf004956e4ff6297fd" - integrity sha512-8X9+Lsc9pDUfmXjcZCQfEvp5YTs22x3FsOPAi8JEE/9aO2n0dB/zSNn2O8oJ1u5hf/9N8EYkyYiowI9cYEl9ww== +"@ckeditor/ckeditor5-enter@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-40.2.0.tgz#6f2dbca2aeb314a0c1cdb6bbe75f924941fb9c31" + integrity sha512-GjTRaKNX8QEDJ3YYKG3GfPZfGHrcigGBxbo+1WDT7NaOsR2DA/CIZfHlAPfgJDAMV17bhWsT3gy3+oQZsExtnQ== dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-engine" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-engine" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" -"@ckeditor/ckeditor5-essentials@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-essentials/-/ckeditor5-essentials-40.1.0.tgz#47b59449e815698aa8c1bfee8a49ab3b1a9897c6" - integrity sha512-buTY8ATSM42EWMkwrsvpHyntfzvtn+2DvbrRIYm0w50GDchlmVRczR4axv7snLRKLsSB3yjGbodaVvtl9MFTXA== +"@ckeditor/ckeditor5-essentials@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-essentials/-/ckeditor5-essentials-40.2.0.tgz#f0c14a57a1c256391b713401c6f817de68029e45" + integrity sha512-7iUUy0Uwiei4yLrn145SOcyzriMeVFVc5ontQkxQE5b9alFdAc/6ZoDPZqwD7V0zi5RQ/2YsoVMRLFa4hbPfNA== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-heading@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-heading/-/ckeditor5-heading-40.1.0.tgz#46388bd2c57acdab12ae97c058b39990706699ff" - integrity sha512-klULKRRcoNk+JhJaREp6GEX/b99CHlyShL8vR3v01EBpfvwGglzqF0xVetig9yyfWPe4R4I7OEkIQ/3nR+jSBw== +"@ckeditor/ckeditor5-heading@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-heading/-/ckeditor5-heading-40.2.0.tgz#072989200e8b35840b86fbe17d7962555749f997" + integrity sha512-uDT1sttMy+KrKi90jnqEI43886o1wfKrROWqaMbmKOerTbIi58GNH9LvX04sf1RyHV3+3566RRmB248fsLkYjA== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-horizontal-line@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-horizontal-line/-/ckeditor5-horizontal-line-40.1.0.tgz#b02df1dd9c5f88229957024ea49587a734b81280" - integrity sha512-YKVyuhKMrVU7np2myTaAarsL5+DjcBM/St6Sdy1c0K3tyGZ8H238hhEJe3xaJdTHEtAEtb9PRhaSQG83nSdsxQ== +"@ckeditor/ckeditor5-horizontal-line@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-horizontal-line/-/ckeditor5-horizontal-line-40.2.0.tgz#78ed488ed34d3b8fa54f29fd1c70058b5af8ab0f" + integrity sha512-cngw6unhl+GIin+InlGgg4SnzXagM302UypwR7t9WtVqO75ohecVRZ2S0H9WHrsb9IlbfCN+o7WVIb4MmXkRVQ== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-html-support@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-html-support/-/ckeditor5-html-support-40.1.0.tgz#abc78489b12c6b21100c9e5966ece4463ab31eef" - integrity sha512-GS99frw1GAt7OgSwVEsVBwtmdQJ/Q8eURCUt+ENIond9DwsCoszJ2fbXv2kkquCiUzmPcd7v47GOvuQSQ+EV5Q== +"@ckeditor/ckeditor5-html-support@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-html-support/-/ckeditor5-html-support-40.2.0.tgz#b576ebfeef7a5a0155360f098a68e9d8fd340e90" + integrity sha512-NbUjSir3aaVxk8y0oPWLaPGB4kDeH2XuSZXVRAvwiYP8c8ICh7gAq2L3KVLmveXW/FIHHYdR+wNu0qNa34V0rw== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-image@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-image/-/ckeditor5-image-40.1.0.tgz#5bc33178f7a476e602382c05e23e68c23544180f" - integrity sha512-n4ZyOE6JvZXqbDA0tg5Y3QchxQb0XCPipL/EXfnJAU6fo2/vzDcflYDKWGQ7s7WjWx2rNRjlfXgzVW5RTNByKw== +"@ckeditor/ckeditor5-image@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-image/-/ckeditor5-image-40.2.0.tgz#790b23af7d2e86faee848df273eaab735a8a9240" + integrity sha512-0Dunw1o5k2+5Q5XiWLDG1r8k9awosfIFuDZwqKJGWtDaNE4QQbJ9+iJSwiiRw2QjcGr7D3JdH7xwJZFra7kYmA== dependencies: - "@ckeditor/ckeditor5-ui" "40.1.0" - ckeditor5 "40.1.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + ckeditor5 "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-indent@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-indent/-/ckeditor5-indent-40.1.0.tgz#3a7beec4985af8558abcbb51846528ff69d328b5" - integrity sha512-V23OcynvjSIavbnjaBwvB76AeTizkARRzttlK85FyGd/DyExYxnIyYY1yOMVjyj3xCZzKDq9B4GRVOoumMmWiQ== +"@ckeditor/ckeditor5-indent@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-indent/-/ckeditor5-indent-40.2.0.tgz#a66a1740badd34843a966f51a21316821fe80a5f" + integrity sha512-gSlRGoyAslB2OpqghimIY6Oiflf3Z2/MdLBzvFipU5N4X66cL29HuWZc/bOkcFzWwNeDK5LgzfLdvXNzkdv5Xw== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-language@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-language/-/ckeditor5-language-40.1.0.tgz#df3200f38c7232be97de9af19686c738b6c33c47" - integrity sha512-dF2NE+dI0HeSs7MKsj5h6ZWuCONve0IZziO/sznntskybF//E34t2EkibknJo0tTTUtw5aMA7Seko4v8SLdQxg== +"@ckeditor/ckeditor5-language@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-language/-/ckeditor5-language-40.2.0.tgz#4c09ce086a2312fb9d2767e673867110177a9d9a" + integrity sha512-VH9jT7Wr7Lxm+o3/Dt+WVr/9ZjPIoUW1UF/reIg7GqYMEHPR3MNKbA3AmUAXVaMW9rQQOhIba+/R90I4zYTlkg== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-link@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-link/-/ckeditor5-link-40.1.0.tgz#99b96718ed7eae6e92b6c9a2919970b663feb76b" - integrity sha512-giy2TNk6l/fjn/q4M5JFQcbAnSpln5KqBhXAUfgkstLanNhReA4yIxuRmDY4MiV5cAc6juF6l7gAcxKgXG7HJw== +"@ckeditor/ckeditor5-link@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-link/-/ckeditor5-link-40.2.0.tgz#81068e860bc00f5d9d94b6df344136a872d6481c" + integrity sha512-/r4Ti9USdrURBX+qutvyDGOb75sNuSgtXdI8xK503EVfx5yBIi6qsYIYWoFvnGJKkLYkVo+940ilduhwzq0M7g== dependencies: - "@ckeditor/ckeditor5-ui" "40.1.0" - ckeditor5 "40.1.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + ckeditor5 "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-list@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-list/-/ckeditor5-list-40.1.0.tgz#5ac44b76bd199172857791b05fe8496fdeb87ec8" - integrity sha512-jpBQrCqn2F4tTp8BYA5dKWl3cBRhgpklumOwP34XdWoIg4EYdGYOXc/XkZqdNokYRzNouWzS6+UyeL+va9Q8yw== +"@ckeditor/ckeditor5-list@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-list/-/ckeditor5-list-40.2.0.tgz#8d8d32c283b8fefe6f92e9ae55a370aa6b12d484" + integrity sha512-lsQWSLSFRHRQ2AxA6vgTib9YELjF2J5jpR6H4RDW1gM//dL3FjvLxKPPN/V7rMcp15rrpSiOya+qB99l24DEpQ== dependencies: - "@ckeditor/ckeditor5-ui" "40.1.0" - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-paragraph@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-40.1.0.tgz#f26074f19c30a2abb27797493bafd9e521bde5f9" - integrity sha512-R1bGbLF4tiA4SQtDHVBqqgrmAOyA9bj0q9ssVtQpn4/dew5sffnvQIDhgc+GlIT3Z1HQT3rH4JLEJE9sOid0VA== +"@ckeditor/ckeditor5-paragraph@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-40.2.0.tgz#a152449874ea1597fd64174744f63974ef348aa7" + integrity sha512-NotxWP1cKvbJSY1UwdTe/Oy1NnAj9Etsi4Z7XA908EvCsNSnFtzdMhYzLhFZJ18avrQFDa7PpSKSyN3M64CbSA== dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-ui" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" -"@ckeditor/ckeditor5-paste-from-office@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-paste-from-office/-/ckeditor5-paste-from-office-40.1.0.tgz#730b2e16c727e7c242fd544d247af365b0f1abbd" - integrity sha512-TgxhOMnSu0Dk/3orPaWap7DyfJO0Mcy13tFiv7lMmjwORBtweHCAENom1n0XZw8fscENl6ua9PkaA6hCh80kew== +"@ckeditor/ckeditor5-paste-from-office@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-paste-from-office/-/ckeditor5-paste-from-office-40.2.0.tgz#2f98027c150622da7634bd76bc4b62604eb12012" + integrity sha512-kdk7uJlSa9mvyuNAwmIfV6Kc1tfWI6DbCs19jyseA/F0vySKibb0DsBVSZ7xa5ihcjphfJvwpypWYL0BYdYKLQ== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-remove-format@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-remove-format/-/ckeditor5-remove-format-40.1.0.tgz#6911f906a2947ee916199b5baeb607e7981051e4" - integrity sha512-/0J2ghU9bwHHZaOI9pCaIuafFh/8yHSMxMHZufcnBO7lg4r1dTbQSC36v28+py8AAyVAgBSvYhXCyUVQFa8+Fg== +"@ckeditor/ckeditor5-remove-format@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-remove-format/-/ckeditor5-remove-format-40.2.0.tgz#3f6a94b88b1feba6ba9fb92201e1a62fe49f092f" + integrity sha512-fJHv6oIu0CGSbhFyK6rvtTqzuPTHyjtuaBYYA93clRXsBhZcmm3M7g63Tz6O6ez/Z/kw+Zk+p0SvdL7tVXUUMw== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-select-all@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-select-all/-/ckeditor5-select-all-40.1.0.tgz#32e2e6d827db4d9e7cfcad1f65ba09de32052ae5" - integrity sha512-6EA36HT9ZDFU9cInVo512lUkE6AMWKp2p7zCWTyHCtvA3vATAendxw0lgyY2EX+LIwD/gisWsyWts6OMFk/PmQ== +"@ckeditor/ckeditor5-select-all@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-select-all/-/ckeditor5-select-all-40.2.0.tgz#c1b68ac4225306ea9250599abf284574e10a1421" + integrity sha512-yaYCqhdMcoEH3BsilhweNdbOfuO/cexQ1r1/mYoBoW4CypIuAeq8J/3qLpvFaThmCRPzJBn1J7v2Yjs/0UnamA== dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-ui" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" -"@ckeditor/ckeditor5-show-blocks@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-show-blocks/-/ckeditor5-show-blocks-40.1.0.tgz#7fef2f4388324d414d090f838e7f059ba1e24700" - integrity sha512-V4dzl1lL9wJv+JKmfNM6QsweAnhMzba38lAxdDLbVQ6p+DP98stSUuhl6x6vN6fGolvnt602fqjR+unLcRp0Mg== +"@ckeditor/ckeditor5-show-blocks@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-show-blocks/-/ckeditor5-show-blocks-40.2.0.tgz#d0b9e34390de4657ba84b3b87e9d6a6672e572ae" + integrity sha512-Kb1qy/uYOqTwTQcdqo/sr7YWY1YpE4rLiMfWAyXUFJIsWA32CW6XDWZfxYgwnElPoaUclMTCGkt7Z73dH6c1Yg== dependencies: - "@ckeditor/ckeditor5-ui" "40.1.0" - ckeditor5 "40.1.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-source-editing@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-source-editing/-/ckeditor5-source-editing-40.1.0.tgz#8d0695875a06407b4762d38b865f74fccfe675ac" - integrity sha512-cCeaBHMKCYqGnc2c+dO9Thx5lidcE8lPLg59pHvzJ8zkc+AUShyPiiJcaqsjhK9N/CvjOS81wsMjpYx3DXOAOQ== +"@ckeditor/ckeditor5-source-editing@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-source-editing/-/ckeditor5-source-editing-40.2.0.tgz#0a5e6bff75406e07fcdabed96879f699d3394593" + integrity sha512-Kh0HXxtOs1jNQAUYzxY1IG7JyUG88AJnM9cNATI9+zo55XwPqBrs6w3hesDDF83Vp87Kjtw9lViHUwwcPRl59Q== dependencies: - "@ckeditor/ckeditor5-theme-lark" "40.1.0" - ckeditor5 "40.1.0" + "@ckeditor/ckeditor5-theme-lark" "40.2.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-special-characters@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-special-characters/-/ckeditor5-special-characters-40.1.0.tgz#725a6f70c120b0899388ecd063e44ace67e110bd" - integrity sha512-JjeGjxWlOwEg5refxg4QsadkmiMXclxB7yEguur0ILnS73DxRVKpV2ku/0N49RkylnmSq6NcEsXe9LXa/WmgnA== +"@ckeditor/ckeditor5-special-characters@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-special-characters/-/ckeditor5-special-characters-40.2.0.tgz#01fd018c0f6ada56ea4c1b17247cf7d2a25d3712" + integrity sha512-ghv8ewV/FPF7aEh1+dgwijE4EBIZZzWJo17IfhhaqOjUK4dwAxWubknFeekafSTBE9HstMlMHy8n9DMOZzdEoA== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" -"@ckeditor/ckeditor5-style@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-style/-/ckeditor5-style-40.1.0.tgz#34b34d980bc4d5d959ab9fe09f6611c1ac497cea" - integrity sha512-ssAYwmX5uX9M+sBQAHQktUekkUq2mUcX6WZSI10bZzJeQSRLoD/df+Ar/WtbnqRRZ2JUHJerHKhVrHBsfA0rQA== +"@ckeditor/ckeditor5-style@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-style/-/ckeditor5-style-40.2.0.tgz#382860ab0c73784fbdbbe1134bcd21c270210033" + integrity sha512-a4NmUKJM/svRhDI5n/+Vlp5jfeULNerEOo1kaSfhG2jx2hihmZuF2Ke7vP20bzt8SnP0Qq72WNjSpMK9CZlzjw== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-table@~40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-table/-/ckeditor5-table-40.1.0.tgz#328e43c7d787c7ec238b57339dacc7b288c4f4e7" - integrity sha512-iUrOsa150JmH9xhV8UUF2tH1UcFcvtWJ4cpE3l6iPjPTv4mp7ZvMUuB0GC8Qt/ES9+BR4I+7LKbOEmKe5wuvBQ== +"@ckeditor/ckeditor5-table@~40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-table/-/ckeditor5-table-40.2.0.tgz#e2a77495a6c6c5c7fdd3194e452a3b04446e0f5d" + integrity sha512-yODne7az/aJ9lsuI7w476pgGV2QBoH2tOKp3JFh/e2DdHC20637LCVd0cx8sUe3zk61X/eYPY+wOiRJx/mIUqg== dependencies: - ckeditor5 "40.1.0" + ckeditor5 "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-theme-lark@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-theme-lark/-/ckeditor5-theme-lark-40.1.0.tgz#6f8d492d05e81f3baf723e057493f8feb2d88684" - integrity sha512-9ZoNRs3hOM7kltF//ChzMV1GSDuhgYaaeWx0jMMSoguwXyqc5Y3GfBXs2XtfDn9sXi2NytmC6mt2tZSZ6i+4ug== +"@ckeditor/ckeditor5-theme-lark@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-theme-lark/-/ckeditor5-theme-lark-40.2.0.tgz#85ced805d71b707b1308eb2991d6ca29aec84af6" + integrity sha512-Oxz/tfca4YosjyRHn1wX5pBgm8GMZSRuuNOu/OcLdRHN40sPWkb8Ilz6bY0SGgrYIgtXmXLGj+NVLSKPSab3EA== dependencies: - "@ckeditor/ckeditor5-ui" "40.1.0" + "@ckeditor/ckeditor5-ui" "40.2.0" -"@ckeditor/ckeditor5-typing@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-40.1.0.tgz#3c8e6f8e247217bfef23bef021e5f327f3b64edc" - integrity sha512-Ro7+vGQPqZm38n2v6r5azliZrkos+8nA1tTDgXdNgmzpr53CdLB8rX/DQRTNY+xAwujgKy9y3P+uVmV5HigqnQ== +"@ckeditor/ckeditor5-typing@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-40.2.0.tgz#fd2af10379f7e0bfed17f477bd246deca2161966" + integrity sha512-2E7LkmC4RHdenMUwow0EZDKxlbX00c5UHysUVT51EBGrXiJcN++0cqxQaeJzQ262oTDpk94qE5IZdGXt3ntzrw== dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-engine" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-engine" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" lodash-es "4.17.21" -"@ckeditor/ckeditor5-ui@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-40.1.0.tgz#6a4feb2eec9db1a75030700233e4dd9ffc3be8b3" - integrity sha512-ROq/as1YnlfwPtqqWU8u+bw8pCFbqUhOU4Xq1VuFqN4dhrecz2NIkSHU8ht+vD4YmPqXTDa8GOwaBKnCjX7pZA== +"@ckeditor/ckeditor5-ui@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-40.2.0.tgz#cccb8d7d7b70171f79336914ea55aeebe733d85c" + integrity sha512-K8oC9zrJokZD5Nl4uQjJMo8Couds0eHmfNI/go6iU4A4OAdDzph+W50QnyMed4etKnMdhvUSbnuZnPtQjnsvFA== dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" color-convert "2.0.1" color-parse "1.4.2" lodash-es "4.17.21" vanilla-colorful "0.7.2" -"@ckeditor/ckeditor5-undo@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-undo/-/ckeditor5-undo-40.1.0.tgz#87c34576de72cae78e884df8531633f828d8b556" - integrity sha512-j07Zs4NHWSEcBHcye28InssE8S3ryMcwEWTYDr0/L3LYnBs5b1fCyGCJYchH3yLlrQTL88yX+SQKmwZE0f0wYw== +"@ckeditor/ckeditor5-undo@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-undo/-/ckeditor5-undo-40.2.0.tgz#66c181ecea6783b0f0d67b7f8d6766b5d5389877" + integrity sha512-k2VZS5x4SJtYk3zhdwHYg+D00DgD0iWR0H4qQgcWmQMFRipYvXJRixP3hSLZGJciQanPFeYcjZgxNQ+rU1s8ug== dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-engine" "40.1.0" - "@ckeditor/ckeditor5-ui" "40.1.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-engine" "40.2.0" + "@ckeditor/ckeditor5-ui" "40.2.0" -"@ckeditor/ckeditor5-upload@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-upload/-/ckeditor5-upload-40.1.0.tgz#4053236da461dd145474f1680a428f8df4456ac5" - integrity sha512-uTaP36PskRdBn2XvWTWPUm+D9xlXvzuD2OvbxLP2kAiU10c43KKPXdukf0N2ujStYcj/hwdPc6ZLt1otImazKw== +"@ckeditor/ckeditor5-upload@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-upload/-/ckeditor5-upload-40.2.0.tgz#8d67cf93bc78bcbb3686e6757ae8ece2127d7a0d" + integrity sha512-AdJSKvWEQbSSyA/DfxbCHRhFN6S4ew4kuYETO57e6AS3aOuYGLBRdu9Mub7IAQcOyy1LL6ktr9u5WEOoWS2h0w== dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-ui" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" -"@ckeditor/ckeditor5-utils@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-40.1.0.tgz#d4aea02ea1540c5bf31859780545182e5cac7be1" - integrity sha512-QTpgbuPbQa88AMCOlDdlgK8fPg/IpPuxSU5QDVGR1rmuZRgC7fWCN027aLsJ2t1ppLfKjA/O49dhydm6mKgO9w== +"@ckeditor/ckeditor5-utils@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-40.2.0.tgz#2c603d1f96869639e5b79ef29f459bd4cd46bbe0" + integrity sha512-f+kTJBwwk7Y/LXm8pEPxBTXVlJwQrH7Levzye9zxEDB0Jtj7+brGr87o666fPmL/ATQc5M+VPhbvnk2sOv7WKg== dependencies: lodash-es "4.17.21" -"@ckeditor/ckeditor5-watchdog@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-watchdog/-/ckeditor5-watchdog-40.1.0.tgz#ac940c24e869b1a8d6f80a3b30dfc4b0512f11b0" - integrity sha512-E8+1zC6dnDR0wQnZD88ligKY7pxBcxz953eUdijHmBcVrbECMKJ4VrORIT37LVgstDUYJhHYgxMOQ0TwO/uSKQ== +"@ckeditor/ckeditor5-watchdog@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-watchdog/-/ckeditor5-watchdog-40.2.0.tgz#f5c72f0a3feb775be22bbaf595af3edbe8576f5c" + integrity sha512-ets7o2dUR7l23G9o/RAbu+gJzUkc2Ul269E3TEhZnbQXFjshvEGK2kzuay7I+/waL3ADuYe4zuoBqsqdPoAhfg== dependencies: lodash-es "4.17.21" -"@ckeditor/ckeditor5-widget@40.1.0": - version "40.1.0" - resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-40.1.0.tgz#a995d419e52e4592da4737c29cf56606110eee14" - integrity sha512-3nmDx6cQzDmuc7F0s1c967GK5cSHzsOAnBFlCkz/Om00It5wHFz2VASXA0LHo1gsma2XoO9MJtZjgUkHQUag3g== - dependencies: - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-engine" "40.1.0" - "@ckeditor/ckeditor5-enter" "40.1.0" - "@ckeditor/ckeditor5-typing" "40.1.0" - "@ckeditor/ckeditor5-ui" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" +"@ckeditor/ckeditor5-widget@40.2.0": + version "40.2.0" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-40.2.0.tgz#fb54ff8fd4fc31393d492c331f305afdcba338ee" + integrity sha512-okeUSwbnu6TUKvwBOl0YdED6Me0/vvs1ybfKZPNEJNwGl989iG0LQO4oYUye8BTCZvzCZ2cBTb1Cvnwr8KRcbg== + dependencies: + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-engine" "40.2.0" + "@ckeditor/ckeditor5-enter" "40.2.0" + "@ckeditor/ckeditor5-typing" "40.2.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" lodash-es "4.17.21" "@colors/colors@1.5.0": @@ -1751,24 +1750,24 @@ ci-info@3.3.0: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.3.0.tgz#b4ed1fb6818dea4803a55c623041f9165d2066b2" integrity sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw== -ckeditor5@40.1.0, ckeditor5@~40.1.0: - version "40.1.0" - resolved "https://registry.yarnpkg.com/ckeditor5/-/ckeditor5-40.1.0.tgz#eefdbdaf1901884286646ac0dcd61036e498ddb2" - integrity sha512-AMWr8dPWowaj1EvT8pFrkDZ7FioBG96gEP85RrDQm0f8aF8ifJN9vwbX4iAxvX/uL5R90ye2as9+mflm8D+1wQ== - dependencies: - "@ckeditor/ckeditor5-clipboard" "40.1.0" - "@ckeditor/ckeditor5-core" "40.1.0" - "@ckeditor/ckeditor5-engine" "40.1.0" - "@ckeditor/ckeditor5-enter" "40.1.0" - "@ckeditor/ckeditor5-paragraph" "40.1.0" - "@ckeditor/ckeditor5-select-all" "40.1.0" - "@ckeditor/ckeditor5-typing" "40.1.0" - "@ckeditor/ckeditor5-ui" "40.1.0" - "@ckeditor/ckeditor5-undo" "40.1.0" - "@ckeditor/ckeditor5-upload" "40.1.0" - "@ckeditor/ckeditor5-utils" "40.1.0" - "@ckeditor/ckeditor5-watchdog" "40.1.0" - "@ckeditor/ckeditor5-widget" "40.1.0" +ckeditor5@40.2.0, ckeditor5@~40.2.0: + version "40.2.0" + resolved "https://registry.yarnpkg.com/ckeditor5/-/ckeditor5-40.2.0.tgz#9dfc6fbdbbff1ce8c4b9498a5f204460feea5e46" + integrity sha512-JaFuY/6DX1wbA6yRB2xQVMr+9W1C3HvSX4AT10ccoKBKe9OctIatekDt2ztV+cMaVHLF1wocskS/Ql9XFRy2Eg== + dependencies: + "@ckeditor/ckeditor5-clipboard" "40.2.0" + "@ckeditor/ckeditor5-core" "40.2.0" + "@ckeditor/ckeditor5-engine" "40.2.0" + "@ckeditor/ckeditor5-enter" "40.2.0" + "@ckeditor/ckeditor5-paragraph" "40.2.0" + "@ckeditor/ckeditor5-select-all" "40.2.0" + "@ckeditor/ckeditor5-typing" "40.2.0" + "@ckeditor/ckeditor5-ui" "40.2.0" + "@ckeditor/ckeditor5-undo" "40.2.0" + "@ckeditor/ckeditor5-upload" "40.2.0" + "@ckeditor/ckeditor5-utils" "40.2.0" + "@ckeditor/ckeditor5-watchdog" "40.2.0" + "@ckeditor/ckeditor5-widget" "40.2.0" clear-module@^4.1.2: version "4.1.2" -- GitLab