2 lines
1.1 MiB
Generated
2 lines
1.1 MiB
Generated
import{f as e}from"shared";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(i){if("default"!==i&&!(i in e)){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}))})),Object.freeze(e)}var i,n,r,o={exports:{}};i=o,n=o.exports,self,r=()=>(()=>{var t,r,o={40:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},174:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},181:(e,t,i)=>{var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=l||c||Function("return this")(),h=Object.prototype.toString,g=Math.max,u=Math.min,p=function(){return d.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var i=o.test(e);return i||s.test(e)?a(e.slice(2),i?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,i){var n,r,o,s,a,l,c=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var i=n,o=r;return n=r=void 0,c=t,s=e.apply(o,i)}function b(e){var i=e-l;return void 0===l||i>=t||i<0||h&&e-c>=o}function k(){var e=p();if(b(e))return _(e);a=setTimeout(k,function(e){var i=t-(e-l);return h?u(i,o-(e-c)):i}(e))}function _(e){return a=void 0,f&&n?y(e):(n=r=void 0,s)}function v(){var e=p(),i=b(e);if(n=arguments,r=this,l=e,i){if(void 0===a)return function(e){return c=e,a=setTimeout(k,t),d?y(e):s}(l);if(h)return a=setTimeout(k,t),y(l)}return void 0===a&&(a=setTimeout(k,t)),s}return t=w(t)||0,m(i)&&(d=!!i.leading,o=(h="maxWait"in i)?g(w(i.maxWait)||0,t):o,f="trailing"in i?!!i.trailing:f),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=r=a=void 0},v.flush=function(){return void 0===a?s:_(p())},v}},228:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},277:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Offerte","help-center-wysiwyg.bold":"Vet","help-center-wysiwyg.bulleted-list":"Lijst met opsommingstekens","help-center-wysiwyg.cancel":"Annuleren","help-center-wysiwyg.centered-image":"Gecentreerde afbeelding","help-center-wysiwyg.change-image-text-alternative":"Tekstalternatief voor afbeelding wijzigen","help-center-wysiwyg.choose-heading":"Kop kiezen","help-center-wysiwyg.code":"Code invoegen","help-center-wysiwyg.edit-link":"Link bewerken","help-center-wysiwyg.editor-toolbar":"Editor-werkbalk","help-center-wysiwyg.enter-image-caption":"Bijschrift van afbeelding opgeven","help-center-wysiwyg.heading":"Kop","help-center-wysiwyg.heading-1":"Kop 1","help-center-wysiwyg.heading-2":"Kop 2","help-center-wysiwyg.heading-3":"Kop 3","help-center-wysiwyg.image_upload_generic_error":"U kunt alleen afbeeldingen (jpeg, gif of png) uploaden. Uploads van afbeeldingen zijn beperkt tot {{max_size}} MB.","help-center-wysiwyg.in-line":"In regel","help-center-wysiwyg.insert-code-block":"Codeblok","help-center-wysiwyg.insert-image":"Afbeelding invoegen","help-center-wysiwyg.italic":"Cursief","help-center-wysiwyg.left-aligned-image":"Links uitgelijnde afbeelding","help-center-wysiwyg.link":"Link invoegen/bewerken","help-center-wysiwyg.link-url":"Webadres van link","help-center-wysiwyg.mentionable_user_limit_exceeded":"U hebt het maximale aantal gebruikers dat kan worden genoemd bereikt","help-center-wysiwyg.numbered-list":"Genummerde lijst","help-center-wysiwyg.paragraph":"Alinea","help-center-wysiwyg.plain-text":"Niet-opgemaakte tekst","help-center-wysiwyg.redo":"Opnieuw uitvoeren","help-center-wysiwyg.right-aligned-image":"Rechts uitgelijnde afbeelding","help-center-wysiwyg.save":"Opslaan","help-center-wysiwyg.show-more-items":"Meer items weergeven","help-center-wysiwyg.side-image":"Zijafbeelding","help-center-wysiwyg.text-alternative":"Tekstalternatief","help-center-wysiwyg.toggle-caption-off":"Bijschrift uitschakelen","help-center-wysiwyg.toggle-caption-on":"Bijschrift inschakelen","help-center-wysiwyg.undo":"Ongedaan maken","help-center-wysiwyg.unlink":"Loskoppelen","help-center-wysiwyg.upload-failed":"Uploaden mislukt"}}')},356:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},424:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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-panel:calc(var(--ck-z-default) + 999);--ck-z-dialog:9999}.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-panel) - 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-dialog-background:var(--ck-custom-background);--ck-color-dialog-form-header-border:var(--ck-custom-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 a=s},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},686:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"[ผู้龍Ǫṵṵṓṓṭḛḛ龍ผู้]","help-center-wysiwyg.bold":"[ผู้龍Ḃṓṓḽḍ龍ผู้]","help-center-wysiwyg.bulleted-list":"[ผู้龍Ḃṵṵḽḽḛḛṭḛḛḍ ḽḭḭṡṭ龍ผู้]","help-center-wysiwyg.cancel":"[ผู้龍Ḉααṇͼḛḛḽ龍ผู้]","help-center-wysiwyg.centered-image":"[ผู้龍Ḉḛḛṇṭḛḛṛḛḛḍ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.change-image-text-alternative":"[ผู้龍Ḉḥααṇḡḛḛ ḭḭṃααḡḛḛ ṭḛḛẋṭ ααḽṭḛḛṛṇααṭḭḭṽḛḛ龍ผู้]","help-center-wysiwyg.choose-heading":"[ผู้龍Ḉḥṓṓṓṓṡḛḛ ḥḛḛααḍḭḭṇḡ龍ผู้]","help-center-wysiwyg.code":"[ผู้龍ḬḬṇṡḛḛṛṭ ͼṓṓḍḛḛ龍ผู้]","help-center-wysiwyg.edit-link":"[ผู้龍ḚḚḍḭḭṭ ḽḭḭṇḳ龍ผู้]","help-center-wysiwyg.editor-toolbar":"[ผู้龍ḚḚḍḭḭṭṓṓṛ ṭṓṓṓṓḽḅααṛ龍ผู้]","help-center-wysiwyg.enter-image-caption":"[ผู้龍ḚḚṇṭḛḛṛ ḭḭṃααḡḛḛ ͼααṗṭḭḭṓṓṇ龍ผู้]","help-center-wysiwyg.heading":"[ผู้龍Ḥḛḛααḍḭḭṇḡ龍ผู้]","help-center-wysiwyg.heading-1":"[ผู้龍Ḥḛḛααḍḭḭṇḡ 1龍ผู้]","help-center-wysiwyg.heading-2":"[ผู้龍Ḥḛḛααḍḭḭṇḡ 2龍ผู้]","help-center-wysiwyg.heading-3":"[ผู้龍Ḥḛḛααḍḭḭṇḡ 3龍ผู้]","help-center-wysiwyg.image_upload_generic_error":"[ผู้龍ŶŶṓṓṵṵ ͼααṇ ṓṓṇḽẏẏ ṵṵṗḽṓṓααḍ ḭḭṃααḡḛḛṡ (ĵṗḛḛḡ, ḡḭḭϝ ṓṓṛ ṗṇḡ). ḬḬṃααḡḛḛ ṵṵṗḽṓṓααḍṡ ααṛḛḛ ḽḭḭṃḭḭṭḛḛḍ ṭṓṓ {{max_size}} ṀḂ.龍ผู้]","help-center-wysiwyg.in-line":"[ผู้龍ḬḬṇ ḽḭḭṇḛḛ龍ผู้]","help-center-wysiwyg.insert-code-block":"[ผู้龍Ḉṓṓḍḛḛ ḅḽṓṓͼḳ龍ผู้]","help-center-wysiwyg.insert-image":"[ผู้龍ḬḬṇṡḛḛṛṭ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.italic":"[ผู้龍ḬḬṭααḽḭḭͼ龍ผู้]","help-center-wysiwyg.left-aligned-image":"[ผู้龍Ḻḛḛϝṭ ααḽḭḭḡṇḛḛḍ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.link":"[ผู้龍ḬḬṇṡḛḛṛṭ/ḚḚḍḭḭṭ ḽḭḭṇḳ龍ผู้]","help-center-wysiwyg.link-url":"[ผู้龍Ḻḭḭṇḳ ṲṲṚḺ龍ผู้]","help-center-wysiwyg.mentionable_user_limit_exceeded":"[ผู้龍ŶŶṓṓṵṵ ḥααṽḛḛ ṛḛḛααͼḥḛḛḍ ṭḥḛḛ ḽḭḭṃḭḭṭ ṓṓϝ ṃḛḛṇṭḭḭṓṓṇααḅḽḛḛ ṵṵṡḛḛṛṡ龍ผู้]","help-center-wysiwyg.numbered-list":"[ผู้龍Ṅṵṵṃḅḛḛṛḛḛḍ ḽḭḭṡṭ龍ผู้]","help-center-wysiwyg.paragraph":"[ผู้龍Ṕααṛααḡṛααṗḥ龍ผู้]","help-center-wysiwyg.plain-text":"[ผู้龍Ṕḽααḭḭṇ ṭḛḛẋṭ龍ผู้]","help-center-wysiwyg.redo":"[ผู้龍Ṛḛḛḍṓṓ龍ผู้]","help-center-wysiwyg.right-aligned-image":"[ผู้龍Ṛḭḭḡḥṭ ααḽḭḭḡṇḛḛḍ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.save":"[ผู้龍Ṣααṽḛḛ龍ผู้]","help-center-wysiwyg.show-more-items":"[ผู้龍Ṣḥṓṓẁ ṃṓṓṛḛḛ ḭḭṭḛḛṃṡ龍ผู้]","help-center-wysiwyg.side-image":"[ผู้龍Ṣḭḭḍḛḛ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.text-alternative":"[ผู้龍Ṫḛḛẋṭ ααḽṭḛḛṛṇααṭḭḭṽḛḛ龍ผู้]","help-center-wysiwyg.toggle-caption-off":"[ผู้龍Ṫṓṓḡḡḽḛḛ ͼααṗṭḭḭṓṓṇ ṓṓϝϝ龍ผู้]","help-center-wysiwyg.toggle-caption-on":"[ผู้龍Ṫṓṓḡḡḽḛḛ ͼααṗṭḭḭṓṓṇ ṓṓṇ龍ผู้]","help-center-wysiwyg.undo":"[ผู้龍ṲṲṇḍṓṓ龍ผู้]","help-center-wysiwyg.unlink":"[ผู้龍ṲṲṇḽḭḭṇḳ龍ผู้]","help-center-wysiwyg.upload-failed":"[ผู้龍ṲṲṗḽṓṓααḍ ϝααḭḭḽḛḛḍ龍ผู้]"}}')},697:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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);z-index:calc(var(--ck-z-dialog) + 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;max-width:200px;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 a=s},723:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},734:(e,t,i)=>{const n=i(5659),r=i(8507),o={};Object.keys(n).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});const t=r(e);Object.keys(t).forEach((i=>{const n=t[i];o[e][i]=function(e){const t=function(...t){const i=t[0];if(null==i)return i;i.length>1&&(t=i);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),o[e][i].raw=function(e){const t=function(...t){const i=t[0];return null==i?i:(i.length>1&&(t=i),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=o},779:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centred image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},795:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},987:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},1119:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Cytat","help-center-wysiwyg.bold":"Pogrubienie","help-center-wysiwyg.bulleted-list":"Lista punktowana","help-center-wysiwyg.cancel":"Anuluj","help-center-wysiwyg.centered-image":"Obraz wyśrodkowany","help-center-wysiwyg.change-image-text-alternative":"Zmień alternatywny tekst obrazu","help-center-wysiwyg.choose-heading":"Wybierz nagłówek","help-center-wysiwyg.code":"Wstaw kod","help-center-wysiwyg.edit-link":"Edytuj łącze","help-center-wysiwyg.editor-toolbar":"Pasek narzędzi edytora","help-center-wysiwyg.enter-image-caption":"Wprowadź podpis do obrazu","help-center-wysiwyg.heading":"Nagłówek","help-center-wysiwyg.heading-1":"Nagłówek 1","help-center-wysiwyg.heading-2":"Nagłówek 2","help-center-wysiwyg.heading-3":"Nagłówek 3","help-center-wysiwyg.image_upload_generic_error":"Można przesyłać tylko obrazy (w formacie jpeg, gif lub png). Przesyłanie obrazów jest ograniczone do {{max_size}} MB.","help-center-wysiwyg.in-line":"Liniowy","help-center-wysiwyg.insert-code-block":"Blok kodu","help-center-wysiwyg.insert-image":"Wstaw obraz","help-center-wysiwyg.italic":"Kursywa","help-center-wysiwyg.left-aligned-image":"Obraz wyrównany do lewej","help-center-wysiwyg.link":"Wstaw/edytuj łącze","help-center-wysiwyg.link-url":"Adres URL łącza","help-center-wysiwyg.mentionable_user_limit_exceeded":"Osiągnięto limit wzmianek","help-center-wysiwyg.numbered-list":"Lista numerowana","help-center-wysiwyg.paragraph":"Akapit","help-center-wysiwyg.plain-text":"Zwykły tekst","help-center-wysiwyg.redo":"Ponów","help-center-wysiwyg.right-aligned-image":"Obraz wyrównany do prawej","help-center-wysiwyg.save":"Zapisz","help-center-wysiwyg.show-more-items":"Pokaż więcej elementów","help-center-wysiwyg.side-image":"Obraz z boku","help-center-wysiwyg.text-alternative":"Tekst alternatywny","help-center-wysiwyg.toggle-caption-off":"Wyłącz podpisy","help-center-wysiwyg.toggle-caption-on":"Włącz podpisy","help-center-wysiwyg.undo":"Cofnij","help-center-wysiwyg.unlink":"Odłącz","help-center-wysiwyg.upload-failed":"Nie udało się przesłać"}}')},1191:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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{opacity:.5}.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 a=s},1217:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},1255:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},1326:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Citat","help-center-wysiwyg.bold":"Fetstil","help-center-wysiwyg.bulleted-list":"Punktlista","help-center-wysiwyg.cancel":"Avbryt","help-center-wysiwyg.centered-image":"Centrerad bild","help-center-wysiwyg.change-image-text-alternative":"Ändra bildtextalternativ","help-center-wysiwyg.choose-heading":"Välj sidhuvud","help-center-wysiwyg.code":"Infoga kod","help-center-wysiwyg.edit-link":"Redigera länk","help-center-wysiwyg.editor-toolbar":"Redigerarens verktygsfält","help-center-wysiwyg.enter-image-caption":"Ange bildtext","help-center-wysiwyg.heading":"Rubrik","help-center-wysiwyg.heading-1":"Rubrik 1","help-center-wysiwyg.heading-2":"Rubrik 2","help-center-wysiwyg.heading-3":"Rubrik 3","help-center-wysiwyg.image_upload_generic_error":"Du kan endast ladda upp bildfiler (jpeg, gif eller png). Uppladdningar av bilder är begränsade till {{max_size}} MB.","help-center-wysiwyg.in-line":"I linje","help-center-wysiwyg.insert-code-block":"Kodtext","help-center-wysiwyg.insert-image":"Infoga bild","help-center-wysiwyg.italic":"Kursiv","help-center-wysiwyg.left-aligned-image":"Vänsterjusterad bild","help-center-wysiwyg.link":"Infoga/redigera länk","help-center-wysiwyg.link-url":"Länka webbadress","help-center-wysiwyg.mentionable_user_limit_exceeded":"Du har nått gränsen för antalet användare du kan nämna","help-center-wysiwyg.numbered-list":"Numrerad lista","help-center-wysiwyg.paragraph":"Stycke","help-center-wysiwyg.plain-text":"Oformaterad text","help-center-wysiwyg.redo":"Gör om","help-center-wysiwyg.right-aligned-image":"Högerjusterad bild","help-center-wysiwyg.save":"Spara","help-center-wysiwyg.show-more-items":"Visa fler objekt","help-center-wysiwyg.side-image":"Sidobild","help-center-wysiwyg.text-alternative":"Textalternativ","help-center-wysiwyg.toggle-caption-off":"Växla bildtext till av","help-center-wysiwyg.toggle-caption-on":"Växla bildtext till på","help-center-wysiwyg.undo":"Ångra","help-center-wysiwyg.unlink":"Ta bort länk","help-center-wysiwyg.upload-failed":"Det gick inte att ladda upp"}}')},1431:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"เครื่องหมายคำพูด","help-center-wysiwyg.bold":"ตัวหนา","help-center-wysiwyg.bulleted-list":"รายการมีสัญลักษณ์แสดงหัวข้อย่อย","help-center-wysiwyg.cancel":"ยกเลิก","help-center-wysiwyg.centered-image":"รูปภาพตรงกลาง","help-center-wysiwyg.change-image-text-alternative":"เปลี่ยนทางเลือกข้อความของรูปภาพ","help-center-wysiwyg.choose-heading":"เลือกส่วนหัว","help-center-wysiwyg.code":"ใส่รหัส","help-center-wysiwyg.edit-link":"แก้ไขลิงก์","help-center-wysiwyg.editor-toolbar":"แถบเครื่องมือผู้แก้ไข","help-center-wysiwyg.enter-image-caption":"ป้อนคำบรรยายภาพ","help-center-wysiwyg.heading":"ส่วนหัว","help-center-wysiwyg.heading-1":"ส่วนหัว 1","help-center-wysiwyg.heading-2":"ส่วนหัว 2","help-center-wysiwyg.heading-3":"ส่วนหัว 3","help-center-wysiwyg.image_upload_generic_error":"คุณอัปโหลดได้เฉพาะรูปภาพ (jpeg, gif หรือ png) จำกัดการอัปโหลดรูปภาพที่ {{max_size}} MB","help-center-wysiwyg.in-line":"อินไลน์","help-center-wysiwyg.insert-code-block":"บล็อกรหัส","help-center-wysiwyg.insert-image":"แทรกรูปภาพ","help-center-wysiwyg.italic":"ตัวเอียง","help-center-wysiwyg.left-aligned-image":"รูปภาพชิดซ้าย","help-center-wysiwyg.link":"แทรก/แก้ไขลิงก์","help-center-wysiwyg.link-url":"ลิงก์ URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"ถึงขีดจำกัดของจำนวนผู้ใช้ที่กล่าวถึงแล้ว","help-center-wysiwyg.numbered-list":"รายการลำดับเลข","help-center-wysiwyg.paragraph":"ย่อหน้า","help-center-wysiwyg.plain-text":"ข้อความธรรมดา","help-center-wysiwyg.redo":"ทำอีกครั้ง","help-center-wysiwyg.right-aligned-image":"รูปภาพชิดขวา","help-center-wysiwyg.save":"บันทึก","help-center-wysiwyg.show-more-items":"แสดงรายการเพิ่มเติม","help-center-wysiwyg.side-image":"รูปด้านข้าง","help-center-wysiwyg.text-alternative":"ทางเลือกข้อความ","help-center-wysiwyg.toggle-caption-off":"ปิดคำอธิบายภาพ","help-center-wysiwyg.toggle-caption-on":"เปิดคำอธิบายภาพ","help-center-wysiwyg.undo":"เลิกทำ","help-center-wysiwyg.unlink":"ยกเลิกการเชื่อมโยง","help-center-wysiwyg.upload-failed":"อัปโหลดไม่สำเร็จ"}}')},1587:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},1601:e=>{e.exports=function(e){return e[1]}},1605:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},1758:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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):not(.ck-error)>.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):not(.ck-error)>.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):not(.ck-error)>.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 a=s},1840:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},1842:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},1903:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},1947:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},2004:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},2066:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},2181:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},2209:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},2210:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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-panel)}.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 a=s},2221:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},2245:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,":root{--ck-menu-bar-menu-item-min-width:18em}.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item{min-width:var(--ck-menu-bar-menu-item-min-width)}",""]);const a=s},2274:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-dialog .ck.ck-dialog__actions{display:flex;justify-content:flex-end;padding:var(--ck-spacing-large)}.ck.ck-dialog .ck.ck-dialog__actions>*+*{margin-left:var(--ck-spacing-large)}",""]);const a=s},2277:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},2315:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},2364:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Кавичка","help-center-wysiwyg.bold":"Получер","help-center-wysiwyg.bulleted-list":"Списък с водещи символи","help-center-wysiwyg.cancel":"Отказ","help-center-wysiwyg.centered-image":"Изображение в средата","help-center-wysiwyg.change-image-text-alternative":"Промяна на алтернативния текст към изображение","help-center-wysiwyg.choose-heading":"Избор на заглавие","help-center-wysiwyg.code":"Въвеждане на код","help-center-wysiwyg.edit-link":"Редактиране на връзката","help-center-wysiwyg.editor-toolbar":"Лента с инструменти на редактора","help-center-wysiwyg.enter-image-caption":"Въвеждане на надпис за изображението","help-center-wysiwyg.heading":"Заглавие","help-center-wysiwyg.heading-1":"Заглавие 1","help-center-wysiwyg.heading-2":"Заглавие 2","help-center-wysiwyg.heading-3":"Заглавие 3","help-center-wysiwyg.image_upload_generic_error":"Можете да качвате само изображения (jpeg, gif или png). Размерът на качените изображения е ограничен до {{max_size}} МВ.","help-center-wysiwyg.in-line":"Подравнено","help-center-wysiwyg.insert-code-block":"Блок код","help-center-wysiwyg.insert-image":"Вмъкване на изображение","help-center-wysiwyg.italic":"Курсив","help-center-wysiwyg.left-aligned-image":"Ляво подравнено изображение","help-center-wysiwyg.link":"Вмъкване/Редактиране на връзка","help-center-wysiwyg.link-url":"URL на връзка","help-center-wysiwyg.mentionable_user_limit_exceeded":"Достигнахте ограничението за споменаване на потребители","help-center-wysiwyg.numbered-list":"Номериран списък","help-center-wysiwyg.paragraph":"Параграф","help-center-wysiwyg.plain-text":"Неформатиран текст","help-center-wysiwyg.redo":"Връщане","help-center-wysiwyg.right-aligned-image":"Дясно подравнено изображение","help-center-wysiwyg.save":"Запазване","help-center-wysiwyg.show-more-items":"Показване на още елементи","help-center-wysiwyg.side-image":"Странично изображение","help-center-wysiwyg.text-alternative":"Алтернативен текст","help-center-wysiwyg.toggle-caption-off":"Изключване на надписите","help-center-wysiwyg.toggle-caption-on":"Включване на надписите","help-center-wysiwyg.undo":"Отмяна","help-center-wysiwyg.unlink":"Прекратяване на връзката","help-center-wysiwyg.upload-failed":"Неуспешно качване"}}')},2385:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},2433:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}",""]);const a=s},2510:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centred image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},2690:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Penawaran harga","help-center-wysiwyg.bold":"Tebal","help-center-wysiwyg.bulleted-list":"Daftar berpoin","help-center-wysiwyg.cancel":"Batal","help-center-wysiwyg.centered-image":"Gambar terpusat","help-center-wysiwyg.change-image-text-alternative":"Ubah alternatif teks gambar","help-center-wysiwyg.choose-heading":"Pilih judul","help-center-wysiwyg.code":"Masukan kode","help-center-wysiwyg.edit-link":"Edit tautan","help-center-wysiwyg.editor-toolbar":"Bilah alat editor","help-center-wysiwyg.enter-image-caption":"Masukkan keterangan gambar","help-center-wysiwyg.heading":"Judul","help-center-wysiwyg.heading-1":"Judul 1","help-center-wysiwyg.heading-2":"Judul 2","help-center-wysiwyg.heading-3":"Judul 3","help-center-wysiwyg.image_upload_generic_error":"Anda hanya dapat mengunggah gambar (jpeg, gif, atau png). Unggahan gambar dibatasi sebesar {{max_size}} MB.","help-center-wysiwyg.in-line":"Dalam garis","help-center-wysiwyg.insert-code-block":"Blokir kode","help-center-wysiwyg.insert-image":"Masukkan gambar","help-center-wysiwyg.italic":"Miring","help-center-wysiwyg.left-aligned-image":"Gambar rata kiri","help-center-wysiwyg.link":"Masukkan/Edit tautan","help-center-wysiwyg.link-url":"URL tautan","help-center-wysiwyg.mentionable_user_limit_exceeded":"Anda telah mencapai batas pengguna yang dapat disebutkan","help-center-wysiwyg.numbered-list":"Daftar bernomor","help-center-wysiwyg.paragraph":"Paragraf","help-center-wysiwyg.plain-text":"Teks polos","help-center-wysiwyg.redo":"Ulangi","help-center-wysiwyg.right-aligned-image":"Gambar rata kanan","help-center-wysiwyg.save":"Simpan","help-center-wysiwyg.show-more-items":"Tampilkan lebih banyak item","help-center-wysiwyg.side-image":"Gambar samping","help-center-wysiwyg.text-alternative":"Alternatif teks","help-center-wysiwyg.toggle-caption-off":"Nonaktifkan keterangan","help-center-wysiwyg.toggle-caption-on":"Aktifkan keterangan","help-center-wysiwyg.undo":"Urungkan","help-center-wysiwyg.unlink":"Hapus tautan","help-center-wysiwyg.upload-failed":"Gagal unggah"}}')},2718:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Virgolettato","help-center-wysiwyg.bold":"Grassetto","help-center-wysiwyg.bulleted-list":"Elenco puntato","help-center-wysiwyg.cancel":"Annulla","help-center-wysiwyg.centered-image":"Immagine centrata","help-center-wysiwyg.change-image-text-alternative":"Modifica testo alternativo immagine","help-center-wysiwyg.choose-heading":"Scegli intestazione","help-center-wysiwyg.code":"Inserisci codice","help-center-wysiwyg.edit-link":"Modifica link","help-center-wysiwyg.editor-toolbar":"Barra degli strumenti Redattore","help-center-wysiwyg.enter-image-caption":"Inserisci didascalia immagine","help-center-wysiwyg.heading":"Intestazione","help-center-wysiwyg.heading-1":"Intestazione 1","help-center-wysiwyg.heading-2":"Intestazione 2","help-center-wysiwyg.heading-3":"Intestazione 3","help-center-wysiwyg.image_upload_generic_error":"Puoi caricare solo immagini (jpeg, gif o png). I caricamenti delle immagini sono limitati a {{max_size}} MB.","help-center-wysiwyg.in-line":"In linea","help-center-wysiwyg.insert-code-block":"Blocco di codice","help-center-wysiwyg.insert-image":"Inserisci immagine","help-center-wysiwyg.italic":"Corsivo","help-center-wysiwyg.left-aligned-image":"Immagine allineata a sinistra","help-center-wysiwyg.link":"Inserisci/modifica link","help-center-wysiwyg.link-url":"URL link","help-center-wysiwyg.mentionable_user_limit_exceeded":"Hai raggiunto il limite di utenti menzionabili","help-center-wysiwyg.numbered-list":"Elenco numerato","help-center-wysiwyg.paragraph":"Paragrafo","help-center-wysiwyg.plain-text":"Solo testo","help-center-wysiwyg.redo":"Ripeti","help-center-wysiwyg.right-aligned-image":"Immagine allineata a destra","help-center-wysiwyg.save":"Salva","help-center-wysiwyg.show-more-items":"Mostra altri elementi","help-center-wysiwyg.side-image":"Immagine laterale","help-center-wysiwyg.text-alternative":"Testo alternativo","help-center-wysiwyg.toggle-caption-off":"Disattiva didascalia","help-center-wysiwyg.toggle-caption-on":"Attiva didascalia","help-center-wysiwyg.undo":"Annulla","help-center-wysiwyg.unlink":"Annulla link","help-center-wysiwyg.upload-failed":"Caricamento non riuscito"}}')},2780:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},2794:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centred image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},2828:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button{padding:var(--ck-list-button-padding);width:100%}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button{min-height:unset;padding:var(--ck-spacing-small) var(--ck-spacing-medium)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-button__label{line-height:unset;width:unset}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-icon{display:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button{border-radius:0}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{transform:rotate(-90deg)}[dir=rtl] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{transform:rotate(90deg)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button.ck-disabled>.ck-menu-bar__menu__button__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}",""]);const a=s},2888:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Anførselstegn","help-center-wysiwyg.bold":"Fet","help-center-wysiwyg.bulleted-list":"Punktliste","help-center-wysiwyg.cancel":"Avbryt","help-center-wysiwyg.centered-image":"Sentrert bilde","help-center-wysiwyg.change-image-text-alternative":"Endre bildetekstalternativ","help-center-wysiwyg.choose-heading":"Velg overskrift","help-center-wysiwyg.code":"Sett inn kode","help-center-wysiwyg.edit-link":"Rediger lenke","help-center-wysiwyg.editor-toolbar":"Redigerers verktøylinje","help-center-wysiwyg.enter-image-caption":"Skriv inn bildetekst","help-center-wysiwyg.heading":"Topptekst","help-center-wysiwyg.heading-1":"Topptekst 1","help-center-wysiwyg.heading-2":"Topptekst 2","help-center-wysiwyg.heading-3":"Topptekst 3","help-center-wysiwyg.image_upload_generic_error":"Du kan bare laste opp bilder (JPEG, GIF eller PNG). Bildeopplastinger er begrenset til {{max_size}} MB.","help-center-wysiwyg.in-line":"I linje","help-center-wysiwyg.insert-code-block":"Kodeblokk","help-center-wysiwyg.insert-image":"Sett inn bilde","help-center-wysiwyg.italic":"Kursiv","help-center-wysiwyg.left-aligned-image":"Venstrejustert bilde","help-center-wysiwyg.link":"Sett inn/rediger lenke","help-center-wysiwyg.link-url":"Lenkens URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"Du har nådd grensen på brukere som kan omtales","help-center-wysiwyg.numbered-list":"Nummerert liste","help-center-wysiwyg.paragraph":"Avsnitt","help-center-wysiwyg.plain-text":"Ren tekst","help-center-wysiwyg.redo":"Gjør om","help-center-wysiwyg.right-aligned-image":"Høyrejustert bilde","help-center-wysiwyg.save":"Lagre","help-center-wysiwyg.show-more-items":"Vis flere elementer","help-center-wysiwyg.side-image":"Sidebilde","help-center-wysiwyg.text-alternative":"Tekstalternativ","help-center-wysiwyg.toggle-caption-off":"Slå av bildetekst","help-center-wysiwyg.toggle-caption-on":"Slå på bildetekst","help-center-wysiwyg.undo":"Angre","help-center-wysiwyg.unlink":"Fjern lenke","help-center-wysiwyg.upload-failed":"Kunne ikke laste opp"}}')},2904:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"help-center-wysiwyg.block-quote","help-center-wysiwyg.bold":"help-center-wysiwyg.bold","help-center-wysiwyg.bulleted-list":"help-center-wysiwyg.bulleted-list","help-center-wysiwyg.cancel":"help-center-wysiwyg.cancel","help-center-wysiwyg.centered-image":"help-center-wysiwyg.centered-image","help-center-wysiwyg.change-image-text-alternative":"help-center-wysiwyg.change-image-text-alternative","help-center-wysiwyg.choose-heading":"help-center-wysiwyg.choose-heading","help-center-wysiwyg.code":"help-center-wysiwyg.code","help-center-wysiwyg.edit-link":"help-center-wysiwyg.edit-link","help-center-wysiwyg.editor-toolbar":"help-center-wysiwyg.editor-toolbar","help-center-wysiwyg.enter-image-caption":"help-center-wysiwyg.enter-image-caption","help-center-wysiwyg.heading":"help-center-wysiwyg.heading","help-center-wysiwyg.heading-1":"help-center-wysiwyg.heading-1","help-center-wysiwyg.heading-2":"help-center-wysiwyg.heading-2","help-center-wysiwyg.heading-3":"help-center-wysiwyg.heading-3","help-center-wysiwyg.image_upload_generic_error":"help-center-wysiwyg.image_upload_generic_error","help-center-wysiwyg.in-line":"help-center-wysiwyg.in-line","help-center-wysiwyg.insert-code-block":"help-center-wysiwyg.insert-code-block","help-center-wysiwyg.insert-image":"help-center-wysiwyg.insert-image","help-center-wysiwyg.italic":"help-center-wysiwyg.italic","help-center-wysiwyg.left-aligned-image":"help-center-wysiwyg.left-aligned-image","help-center-wysiwyg.link":"help-center-wysiwyg.link","help-center-wysiwyg.link-url":"help-center-wysiwyg.link-url","help-center-wysiwyg.mentionable_user_limit_exceeded":"help-center-wysiwyg.mentionable_user_limit_exceeded","help-center-wysiwyg.numbered-list":"help-center-wysiwyg.numbered-list","help-center-wysiwyg.paragraph":"help-center-wysiwyg.paragraph","help-center-wysiwyg.plain-text":"help-center-wysiwyg.plain-text","help-center-wysiwyg.redo":"help-center-wysiwyg.redo","help-center-wysiwyg.right-aligned-image":"help-center-wysiwyg.right-aligned-image","help-center-wysiwyg.save":"help-center-wysiwyg.save","help-center-wysiwyg.show-more-items":"help-center-wysiwyg.show-more-items","help-center-wysiwyg.side-image":"help-center-wysiwyg.side-image","help-center-wysiwyg.text-alternative":"help-center-wysiwyg.text-alternative","help-center-wysiwyg.toggle-caption-off":"help-center-wysiwyg.toggle-caption-off","help-center-wysiwyg.toggle-caption-on":"help-center-wysiwyg.toggle-caption-on","help-center-wysiwyg.undo":"help-center-wysiwyg.undo","help-center-wysiwyg.unlink":"help-center-wysiwyg.unlink","help-center-wysiwyg.upload-failed":"help-center-wysiwyg.upload-failed"}}')},2920:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-menu-bar__menu{display:block;font-size:inherit;position:relative}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level{max-width:100%}",""]);const a=s},3005:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centred image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},3099:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Cotización","help-center-wysiwyg.bold":"Negrita","help-center-wysiwyg.bulleted-list":"Lista con viñetas bala","help-center-wysiwyg.cancel":"Cancelar","help-center-wysiwyg.centered-image":"Imagen centrada","help-center-wysiwyg.change-image-text-alternative":"Cambiar la alternativa de texto de la imagen","help-center-wysiwyg.choose-heading":"Elegir encabezado","help-center-wysiwyg.code":"Insertar código","help-center-wysiwyg.edit-link":"Editar vínculo","help-center-wysiwyg.editor-toolbar":"Barra de herramientas del editor","help-center-wysiwyg.enter-image-caption":"Ingresar pie de foto","help-center-wysiwyg.heading":"Encabezado","help-center-wysiwyg.heading-1":"Encabezado 1","help-center-wysiwyg.heading-2":"Encabezado 2","help-center-wysiwyg.heading-3":"Encabezado 3","help-center-wysiwyg.image_upload_generic_error":"Solo se pueden cargar imágenes (jpeg, gif o png). La carga de imágenes está limitada a {{max_size}} MB.","help-center-wysiwyg.in-line":"En línea","help-center-wysiwyg.insert-code-block":"Bloque de código","help-center-wysiwyg.insert-image":"Insertar imagen","help-center-wysiwyg.italic":"Cursiva","help-center-wysiwyg.left-aligned-image":"Imagen alineada a la izquierda","help-center-wysiwyg.link":"Insertar/editar vínculo","help-center-wysiwyg.link-url":"URL del vínculo","help-center-wysiwyg.mentionable_user_limit_exceeded":"Se ha alcanzado el límite de usuarios que se pueden mencionar","help-center-wysiwyg.numbered-list":"Lista numerada","help-center-wysiwyg.paragraph":"Párrafo","help-center-wysiwyg.plain-text":"Texto sin formato","help-center-wysiwyg.redo":"Rehacer","help-center-wysiwyg.right-aligned-image":"Imagen alineada a la derecha","help-center-wysiwyg.save":"Guardar","help-center-wysiwyg.show-more-items":"Mostrar más elementos","help-center-wysiwyg.side-image":"Imagen lateral","help-center-wysiwyg.text-alternative":"Alternativa de texto","help-center-wysiwyg.toggle-caption-off":"Desactivar leyenda","help-center-wysiwyg.toggle-caption-on":"Activar leyenda","help-center-wysiwyg.undo":"Deshacer","help-center-wysiwyg.unlink":"Desvincular","help-center-wysiwyg.upload-failed":"Falló la carga."}}')},3252:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.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 a=s},3256:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}",""]);const a=s},3264:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},3557:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},3584:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},3608:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-panel) - 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 a=s},3619:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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.11*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: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 a=s},3646:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Lainaus","help-center-wysiwyg.bold":"Lihavointi","help-center-wysiwyg.bulleted-list":"Luettelomerkeillä varustettu luettelo","help-center-wysiwyg.cancel":"Peruuta","help-center-wysiwyg.centered-image":"Keskitetty kuva","help-center-wysiwyg.change-image-text-alternative":"Vaihda kuvatekstin vaihtoehto","help-center-wysiwyg.choose-heading":"Valitse otsikko","help-center-wysiwyg.code":"Lisää koodi","help-center-wysiwyg.edit-link":"Muokkaa linkkiä","help-center-wysiwyg.editor-toolbar":"Muokkaajan työkalupalkki","help-center-wysiwyg.enter-image-caption":"Kirjoita kuvateksti","help-center-wysiwyg.heading":"Otsikko","help-center-wysiwyg.heading-1":"Otsikko 1","help-center-wysiwyg.heading-2":"Otsikko 2","help-center-wysiwyg.heading-3":"Otsikko 3","help-center-wysiwyg.image_upload_generic_error":"Voit lähettää vain kuvia (jpeg, gif tai png). Lähetettävien kuvatiedostojen koko voi olla enintään {{max_size}} Mt.","help-center-wysiwyg.in-line":"Viivalla","help-center-wysiwyg.insert-code-block":"Koodilohko","help-center-wysiwyg.insert-image":"Lisää kuva","help-center-wysiwyg.italic":"Kursiivi","help-center-wysiwyg.left-aligned-image":"Vasemmalle tasattu kuva","help-center-wysiwyg.link":"Lisää/muokkaa linkkiä","help-center-wysiwyg.link-url":"Linkitä URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"Olet saavuttanut mainittavissa olevien käyttäjien enimmäisrajan","help-center-wysiwyg.numbered-list":"Numeroitu luettelo","help-center-wysiwyg.paragraph":"Kappale","help-center-wysiwyg.plain-text":"Vain teksti","help-center-wysiwyg.redo":"Toista","help-center-wysiwyg.right-aligned-image":"Oikealle tasattu kuva","help-center-wysiwyg.save":"Tallenna","help-center-wysiwyg.show-more-items":"Näytä lisää kohteita","help-center-wysiwyg.side-image":"Sivukuva","help-center-wysiwyg.text-alternative":"Vaihtoehtoinen teksti","help-center-wysiwyg.toggle-caption-off":"Piilota otsikko","help-center-wysiwyg.toggle-caption-on":"Näytä otsikko","help-center-wysiwyg.undo":"Kumoa","help-center-wysiwyg.unlink":"Poista yhteys","help-center-wysiwyg.upload-failed":"Lataus epäonnistui"}}')},3747:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},3929:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Offerte","help-center-wysiwyg.bold":"Vet","help-center-wysiwyg.bulleted-list":"Lijst met opsommingstekens","help-center-wysiwyg.cancel":"Annuleren","help-center-wysiwyg.centered-image":"Gecentreerde afbeelding","help-center-wysiwyg.change-image-text-alternative":"Tekstalternatief voor afbeelding wijzigen","help-center-wysiwyg.choose-heading":"Kop kiezen","help-center-wysiwyg.code":"Code invoegen","help-center-wysiwyg.edit-link":"Link bewerken","help-center-wysiwyg.editor-toolbar":"Editor-werkbalk","help-center-wysiwyg.enter-image-caption":"Bijschrift van afbeelding opgeven","help-center-wysiwyg.heading":"Kop","help-center-wysiwyg.heading-1":"Kop 1","help-center-wysiwyg.heading-2":"Kop 2","help-center-wysiwyg.heading-3":"Kop 3","help-center-wysiwyg.image_upload_generic_error":"U kunt alleen afbeeldingen (jpeg, gif of png) uploaden. Uploads van afbeeldingen zijn beperkt tot {{max_size}} MB.","help-center-wysiwyg.in-line":"In regel","help-center-wysiwyg.insert-code-block":"Codeblok","help-center-wysiwyg.insert-image":"Afbeelding invoegen","help-center-wysiwyg.italic":"Cursief","help-center-wysiwyg.left-aligned-image":"Links uitgelijnde afbeelding","help-center-wysiwyg.link":"Link invoegen/bewerken","help-center-wysiwyg.link-url":"Webadres van link","help-center-wysiwyg.mentionable_user_limit_exceeded":"U hebt het maximale aantal gebruikers dat kan worden genoemd bereikt","help-center-wysiwyg.numbered-list":"Genummerde lijst","help-center-wysiwyg.paragraph":"Alinea","help-center-wysiwyg.plain-text":"Niet-opgemaakte tekst","help-center-wysiwyg.redo":"Opnieuw uitvoeren","help-center-wysiwyg.right-aligned-image":"Rechts uitgelijnde afbeelding","help-center-wysiwyg.save":"Opslaan","help-center-wysiwyg.show-more-items":"Meer items weergeven","help-center-wysiwyg.side-image":"Zijafbeelding","help-center-wysiwyg.text-alternative":"Tekstalternatief","help-center-wysiwyg.toggle-caption-off":"Bijschrift uitschakelen","help-center-wysiwyg.toggle-caption-on":"Bijschrift inschakelen","help-center-wysiwyg.undo":"Ongedaan maken","help-center-wysiwyg.unlink":"Loskoppelen","help-center-wysiwyg.upload-failed":"Uploaden mislukt"}}')},3950:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Εισαγωγικά","help-center-wysiwyg.bold":"Έντονα","help-center-wysiwyg.bulleted-list":"Λίστα με κουκκίδες","help-center-wysiwyg.cancel":"Ακύρωση","help-center-wysiwyg.centered-image":"Στοίχιση εικόνας στο κέντρο","help-center-wysiwyg.change-image-text-alternative":"Αλλαγή εναλλακτικού κειμένου εικόνας","help-center-wysiwyg.choose-heading":"Επιλέξτε επικεφαλίδα","help-center-wysiwyg.code":"Εισαγωγή κώδικα","help-center-wysiwyg.edit-link":"Επεξεργασία συνδέσμου","help-center-wysiwyg.editor-toolbar":"Γραμμή εργαλείων προγράμματος επεξεργασίας","help-center-wysiwyg.enter-image-caption":"Εισαγάγετε λεζάντα εικόνας","help-center-wysiwyg.heading":"Επικεφαλίδα","help-center-wysiwyg.heading-1":"Επικεφαλίδα 1","help-center-wysiwyg.heading-2":"Επικεφαλίδα 2","help-center-wysiwyg.heading-3":"Επικεφαλίδα 3","help-center-wysiwyg.image_upload_generic_error":"Μπορείτε να αποστείλετε μόνο εικόνες (jpeg, gif ή png). Οι αποστολές εικόνων περιορίζονται στα {{max_size}} MB.","help-center-wysiwyg.in-line":"Σε γραμμή","help-center-wysiwyg.insert-code-block":"Μπλοκ κώδικα","help-center-wysiwyg.insert-image":"Εισαγωγή εικόνας","help-center-wysiwyg.italic":"Πλάγια","help-center-wysiwyg.left-aligned-image":"Στοίχιση εικόνας αριστερά","help-center-wysiwyg.link":"Εισαγωγή/Επεξεργασία συνδέσμου","help-center-wysiwyg.link-url":"Σύνδεσμος URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"Έχετε συμπληρώσει το όριο χρηστών που μπορείτε να αναφέρετε","help-center-wysiwyg.numbered-list":"Αριθμημένη λίστα","help-center-wysiwyg.paragraph":"Παράγραφος","help-center-wysiwyg.plain-text":"Απλό κείμενο","help-center-wysiwyg.redo":"Επανάληψη","help-center-wysiwyg.right-aligned-image":"Στοίχιση εικόνας δεξιά","help-center-wysiwyg.save":"Αποθήκευση","help-center-wysiwyg.show-more-items":"Εμφάνιση περισσότερων στοιχείων","help-center-wysiwyg.side-image":"Πλευρική εικόνα","help-center-wysiwyg.text-alternative":"Εναλλακτικό κείμενο","help-center-wysiwyg.toggle-caption-off":"Απενεργοποίηση λεζάντας","help-center-wysiwyg.toggle-caption-on":"Ενεργοποίηση λεζάντας","help-center-wysiwyg.undo":"Αναίρεση","help-center-wysiwyg.unlink":"Κατάργηση σύνδεσης","help-center-wysiwyg.upload-failed":"Η αποστολή απέτυχε"}}')},3963:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},3987:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},4014:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck .ck-list__item .hc-mentions__avatar{background-color:#eee;background-size:contain;border-radius:50%;height:30px;margin-inline-end:8px;width:30px}.ck .ck-list__item .hc-mentions__item{align-items:center;display:flex;padding:8px}",""]);const a=s},4055:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Devis","help-center-wysiwyg.bold":"Gras","help-center-wysiwyg.bulleted-list":"Liste à puces","help-center-wysiwyg.cancel":"Annuler","help-center-wysiwyg.centered-image":"Image centrée","help-center-wysiwyg.change-image-text-alternative":"Modifier le texte alternatif de l\'image","help-center-wysiwyg.choose-heading":"Choisir un titre","help-center-wysiwyg.code":"Insérer du code","help-center-wysiwyg.edit-link":"Modifier le lien","help-center-wysiwyg.editor-toolbar":"Barre d\'outils de l\'éditeur","help-center-wysiwyg.enter-image-caption":"Saisissez une légende pour l\'image","help-center-wysiwyg.heading":"Titre","help-center-wysiwyg.heading-1":"Titre 1","help-center-wysiwyg.heading-2":"Titre 2","help-center-wysiwyg.heading-3":"Titre 3","help-center-wysiwyg.image_upload_generic_error":"Vous pouvez uniquement télécharger des images (jpeg, gif ou png). Les images à télécharger ne peuvent pas dépasser {{max_size}} Mo.","help-center-wysiwyg.in-line":"En ligne","help-center-wysiwyg.insert-code-block":"Bloc de code","help-center-wysiwyg.insert-image":"Insérer une image","help-center-wysiwyg.italic":"Italique","help-center-wysiwyg.left-aligned-image":"Image alignée à gauche","help-center-wysiwyg.link":"Insérer un lien/modifier le lien","help-center-wysiwyg.link-url":"URL du lien","help-center-wysiwyg.mentionable_user_limit_exceeded":"Vous avez atteint la limite d’utilisateurs pouvant être mentionnés","help-center-wysiwyg.numbered-list":"Liste numérotée","help-center-wysiwyg.paragraph":"Paragraphe","help-center-wysiwyg.plain-text":"Texte brut","help-center-wysiwyg.redo":"Rétablir","help-center-wysiwyg.right-aligned-image":"Image alignée à droite","help-center-wysiwyg.save":"Enregistrer","help-center-wysiwyg.show-more-items":"Afficher plus d\'éléments","help-center-wysiwyg.side-image":"Image latérale","help-center-wysiwyg.text-alternative":"Texte alternatif","help-center-wysiwyg.toggle-caption-off":"Désactiver les légendes","help-center-wysiwyg.toggle-caption-on":"Activer les légendes","help-center-wysiwyg.undo":"Annuler","help-center-wysiwyg.unlink":"Délier","help-center-wysiwyg.upload-failed":"Échec du chargement"}}')},4066:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},4080:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-panel)}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content{border:solid var(--ck-color-base-border);border-width:1px 1px 0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content.ck-sticky-panel__content_sticky{border-bottom-width:1px}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-menu-bar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-toolbar{border:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}",""]);const a=s},4132:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"اقتباس","help-center-wysiwyg.bold":"غامق","help-center-wysiwyg.bulleted-list":"قائمة نقطية","help-center-wysiwyg.cancel":"إلغاء","help-center-wysiwyg.centered-image":"صورة بمحاذاة في الوسط","help-center-wysiwyg.change-image-text-alternative":"تغيير النص البديل للصورة","help-center-wysiwyg.choose-heading":"اختر العنوان","help-center-wysiwyg.code":"أدخِل الرمز","help-center-wysiwyg.edit-link":"تحرير الرابط","help-center-wysiwyg.editor-toolbar":"شريط أدوات المحرر","help-center-wysiwyg.enter-image-caption":"أدخل شرحًا للصورة","help-center-wysiwyg.heading":"عنوان","help-center-wysiwyg.heading-1":"عنوان 1","help-center-wysiwyg.heading-2":"عنوان 2","help-center-wysiwyg.heading-3":"عنوان 3","help-center-wysiwyg.image_upload_generic_error":"يمكنك تحميل الصور فقط (jpeg أو gif أو png). تحميل الصور مقصور على {{max_size}} ميجابايت.","help-center-wysiwyg.in-line":"مُضمّن","help-center-wysiwyg.insert-code-block":"مجموعة تعليمات برمجية","help-center-wysiwyg.insert-image":"إدراج صورة","help-center-wysiwyg.italic":"مائل","help-center-wysiwyg.left-aligned-image":"صورة بمحاذاة إلى اليسار","help-center-wysiwyg.link":"إدراج/تحرير رابط","help-center-wysiwyg.link-url":"عنوان URL للرابط","help-center-wysiwyg.mentionable_user_limit_exceeded":"لقد بلغت الحد المسموح به للمستخدمين المسموح بالإشارة إليهم","help-center-wysiwyg.numbered-list":"قائمة مرقمة","help-center-wysiwyg.paragraph":"فقرة","help-center-wysiwyg.plain-text":"نص عاديّ","help-center-wysiwyg.redo":"معاودة","help-center-wysiwyg.right-aligned-image":"صورة بمحاذاة إلى اليمين","help-center-wysiwyg.save":"حفظ","help-center-wysiwyg.show-more-items":"إظهار المزيد من العناصر","help-center-wysiwyg.side-image":"صورة جانبية","help-center-wysiwyg.text-alternative":"النص البديل","help-center-wysiwyg.toggle-caption-off":"إيقاف التسميات التوضيحية","help-center-wysiwyg.toggle-caption-on":"تشغيل التسميات التوضيحية","help-center-wysiwyg.undo":"تراجع","help-center-wysiwyg.unlink":"إلغاء ربط","help-center-wysiwyg.upload-failed":"فشل التحميل"}}')},4235:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,':root{--zd-color-black:#000;--zd-color-green-100:#edf8f4;--zd-color-green-200:#d1e8df;--zd-color-green-300:#aecfc2;--zd-color-green-400:#5eae91;--zd-color-green-500:#228f67;--zd-color-green-600:#038153;--zd-color-green-700:#186146;--zd-color-green-800:#0b3b29;--zd-color-grey-100:#f8f9f9;--zd-color-grey-200:#e9ebed;--zd-color-grey-300:#d8dcde;--zd-color-grey-400:#c2c8cc;--zd-color-grey-500:#87929d;--zd-color-grey-600:#68737d;--zd-color-grey-700:#49545c;--zd-color-grey-800:#2f3941;--zd-color-blue-100:#edf7ff;--zd-color-blue-200:#cee2f2;--zd-color-blue-300:#adcce4;--zd-color-blue-400:#5293c7;--zd-color-blue-500:#337fbd;--zd-color-blue-600:#1f73b7;--zd-color-blue-700:#144a75;--zd-color-blue-800:#0f3554;--zd-color-kale-100:#f5fcfc;--zd-color-kale-200:#daeded;--zd-color-kale-300:#bdd9d7;--zd-color-kale-400:#90bbbb;--zd-color-kale-500:#467b7c;--zd-color-kale-600:#17494d;--zd-color-kale-700:#03363d;--zd-color-kale-800:#012b30;--zd-color-red-100:#fff0f1;--zd-color-red-200:#f5d5d8;--zd-color-red-300:#f5b5ba;--zd-color-red-400:#e35b66;--zd-color-red-500:#d93f4c;--zd-color-red-600:#cc3340;--zd-color-red-700:#8c232c;--zd-color-red-800:#681219;--zd-color-yellow-100:#fff7ed;--zd-color-yellow-200:#ffeedb;--zd-color-yellow-300:#fed6a8;--zd-color-yellow-400:#ffb057;--zd-color-yellow-500:#f79a3e;--zd-color-yellow-600:#ed8f1c;--zd-color-yellow-700:#ad5918;--zd-color-yellow-800:#703815;--zd-color-white:#fff;--zd-color-secondary-azure-400:#3091ec;--zd-color-secondary-azure-600:#1371d6;--zd-color-secondary-crimson-400:#e34f32;--zd-color-secondary-crimson-600:#c72a1c;--zd-color-secondary-fuschia-400:#d653c2;--zd-color-secondary-fuschia-600:#a81897;--zd-color-secondary-lemon-400:#ffd424;--zd-color-secondary-lemon-600:#ffbb10;--zd-color-secondary-lime-400:#43b324;--zd-color-secondary-lime-600:#2e8200;--zd-color-secondary-mint-400:#00a656;--zd-color-secondary-mint-600:#058541;--zd-color-secondary-orange-400:#de701d;--zd-color-secondary-orange-600:#bf5000;--zd-color-secondary-pink-400:#ec4d63;--zd-color-secondary-pink-600:#d42054;--zd-color-secondary-purple-400:#b552e2;--zd-color-secondary-purple-600:#6a27b8;--zd-color-secondary-royal-400:#5d7df5;--zd-color-secondary-royal-600:#3353e2;--zd-color-secondary-teal-400:#02a191;--zd-color-secondary-teal-600:#028079;--zd-color-secondary-azure-M400:#5f8dcf;--zd-color-secondary-azure-M600:#3a70b2;--zd-color-secondary-crimson-M400:#cc6c5b;--zd-color-secondary-crimson-M600:#b24a3c;--zd-color-secondary-fuschia-M400:#cf62a8;--zd-color-secondary-fuschia-M600:#a8458c;--zd-color-secondary-lemon-M400:#e7a500;--zd-color-secondary-lemon-M600:#c38f00;--zd-color-secondary-lime-M400:#519e2d;--zd-color-secondary-lime-M600:#47782c;--zd-color-secondary-mint-M400:#299c66;--zd-color-secondary-mint-M600:#2e8057;--zd-color-secondary-orange-M400:#d4772c;--zd-color-secondary-orange-M600:#b35827;--zd-color-secondary-pink-M400:#d57287;--zd-color-secondary-pink-M600:#b23a5d;--zd-color-secondary-purple-M400:#b072cc;--zd-color-secondary-purple-M600:#9358b0;--zd-color-secondary-royal-M400:#7986d8;--zd-color-secondary-royal-M600:#4b61c3;--zd-color-secondary-teal-M400:#2d9e8f;--zd-color-secondary-teal-M600:#3c7873;--zd-color-chat-orange:#f79a3e;--zd-color-connect-red:#ff6224;--zd-color-explore-blue:#30aabc;--zd-color-gather-pink:#f6c8be;--zd-color-guide-pink:#ff6224;--zd-color-message-green:#37b8af;--zd-color-sell-gold:#c38f00;--zd-color-support-green:#00a656;--zd-color-talk-yellow:#efc93d;--zd-font-family-monospace:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;--zd-font-family-system:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;--zd-font-size-xs:10px;--zd-font-size-sm:12px;--zd-font-size-md:14px;--zd-font-size-lg:18px;--zd-font-size-xl:22px;--zd-font-size-xxl:26px;--zd-font-size-xxxl:36px;--zd-font-size-sm-monospace:11px;--zd-font-size-md-monospace:13px;--zd-font-size-lg-monospace:17px;--zd-font-weight-thin:100;--zd-font-weight-extralight:200;--zd-font-weight-light:300;--zd-font-weight-regular:400;--zd-font-weight-medium:500;--zd-font-weight-semibold:600;--zd-font-weight-bold:700;--zd-font-weight-extrabold:800;--zd-font-weight-black:900;--zd-font-weight-ultralight:200;--zd-font-weight-ultrabold:800;--zd-font-weight-heavy:900;--zd-line-height-sm:16px;--zd-line-height-md:20px;--zd-line-height-lg:24px;--zd-line-height-xl:28px;--zd-line-height-xxl:32px;--zd-line-height-xxxl:44px;--zd-spacing-xxs:4px;--zd-spacing-xs:8px;--zd-spacing-sm:12px;--zd-spacing:20px;--zd-spacing-lg:32px;--zd-spacing-xl:40px;--zd-spacing-xxl:48px;--ck-color-text:var(--zd-color-grey-800);--ck-color-button-on-background:#e6e6e6;--ck-color-button-on-color:#1f73b7;--ck-color-base-border:var(--zd-color-grey-300);--ck-color-focus-border:var(--zd-color-grey-800);--ck-color-list-button-on-background:var(--ck-color-button-on-background);--ck-color-list-button-on-text:var(--ck-color-button-on-color);--ck-color-list-button-hover-background:#e6e6e6;--ck-color-list-button-on-background-focus:var(\n --ck-color-button-on-background\n );--ck-color-mention-background:rgba(31,115,183,.1);--ck-color-mention-text:#093960;--ck-border-radius:4px;--ck-drop-shadow:0 20px 30px 0 rgba(23,73,77,.15);--ck-z-modal:2147483649;--ck-icon-size:1.2em}.ck.ck-button{cursor:pointer}.ck.ck-button:focus-visible,.ck.ck-content.ck-editor__editable.ck-editor__editable_inline.ck-focused,.ck.ck-content.ck-editor__editable.ck-focused,.ck.ck-toolbar:focus-visible{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--zd-color-grey-800);outline:2px solid transparent;outline-offset:1px}.ck.ck-content.ck-editor__editable{min-height:210px}.ck.ck-content a{text-decoration:underline}.ck.ck-content ol,.ck.ck-content p,.ck.ck-content ul{color:#000!important}.ck .ck-content{font-size:15px;line-height:24px}.ck .ck-content p{font-size:15px;margin:15px 0}.ck .ck-content ul{list-style-type:disc;padding-inline-start:40px}.ck .ck-content pre{background-color:#f7f7f7!important;border:1px solid #ddd;border-radius:3px;overflow:auto;padding:10px 15px;white-space:pre}.ck.ck-balloon-panel{z-index:var(--ck-z-modal)}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:inherit}textarea[aria-invalid=true]+.ck.ck-editor .ck-editor__editable:not(.ck-focused),textarea[aria-invalid=true]+.ck.ck-editor .ck-sticky-panel__content{border-color:var(--zd-color-red-600)!important}textarea[aria-invalid=true]+.ck.ck-editor .ck-editor__editable.ck-focused{border-color:var(--zd-color-red-600);box-shadow:#fff 0 0 0 1px,var(--zd-color-red-600) 0 0 0 3px;outline:2px solid transparent;outline-offset:1px}',""]);const a=s},4241:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Cotización","help-center-wysiwyg.bold":"Negrita","help-center-wysiwyg.bulleted-list":"Lista con viñetas bala","help-center-wysiwyg.cancel":"Cancelar","help-center-wysiwyg.centered-image":"Imagen centrada","help-center-wysiwyg.change-image-text-alternative":"Cambiar la alternativa de texto de la imagen","help-center-wysiwyg.choose-heading":"Elegir encabezado","help-center-wysiwyg.code":"Insertar código","help-center-wysiwyg.edit-link":"Editar vínculo","help-center-wysiwyg.editor-toolbar":"Barra de herramientas del editor","help-center-wysiwyg.enter-image-caption":"Ingresar pie de foto","help-center-wysiwyg.heading":"Encabezado","help-center-wysiwyg.heading-1":"Encabezado 1","help-center-wysiwyg.heading-2":"Encabezado 2","help-center-wysiwyg.heading-3":"Encabezado 3","help-center-wysiwyg.image_upload_generic_error":"Solo se pueden cargar imágenes (jpeg, gif o png). La carga de imágenes está limitada a {{max_size}} MB.","help-center-wysiwyg.in-line":"En línea","help-center-wysiwyg.insert-code-block":"Bloque de código","help-center-wysiwyg.insert-image":"Insertar imagen","help-center-wysiwyg.italic":"Cursiva","help-center-wysiwyg.left-aligned-image":"Imagen alineada a la izquierda","help-center-wysiwyg.link":"Insertar/editar vínculo","help-center-wysiwyg.link-url":"URL del vínculo","help-center-wysiwyg.mentionable_user_limit_exceeded":"Se ha alcanzado el límite de usuarios que se pueden mencionar","help-center-wysiwyg.numbered-list":"Lista numerada","help-center-wysiwyg.paragraph":"Párrafo","help-center-wysiwyg.plain-text":"Texto sin formato","help-center-wysiwyg.redo":"Rehacer","help-center-wysiwyg.right-aligned-image":"Imagen alineada a la derecha","help-center-wysiwyg.save":"Guardar","help-center-wysiwyg.show-more-items":"Mostrar más elementos","help-center-wysiwyg.side-image":"Imagen lateral","help-center-wysiwyg.text-alternative":"Alternativa de texto","help-center-wysiwyg.toggle-caption-off":"Desactivar leyenda","help-center-wysiwyg.toggle-caption-on":"Activar leyenda","help-center-wysiwyg.undo":"Deshacer","help-center-wysiwyg.unlink":"Desvincular","help-center-wysiwyg.upload-failed":"Falló la carga."}}')},4284:e=>{var t,i=(t=[],function(e,i){return t[e]=i,t.filter(Boolean).join("\n")});function n(e,t,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,s&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(e.styleSheet)e.styleSheet.cssText=i(t,o);else{var a=document.createTextNode(o),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(a,l[t]):e.appendChild(a)}}var r={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=r.singletonCounter++,i=r.singleton||(r.singleton=e.insertStyleElement(e));return{update:function(e){n(i,t,!1,e)},remove:function(e){n(i,t,!0,e)}}}},4310:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},4313:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},4332:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}",""]);const a=s},4417:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},4419:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},4474:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,'.hc-ckeditor--mark-external-images .ck.ck-content :not(.ck-appear) img:not([src^="/hc/user_images/"]){border:4px dashed #000;opacity:.5}',""]);const a=s},4499:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Cotización","help-center-wysiwyg.bold":"Negrita","help-center-wysiwyg.bulleted-list":"Lista con viñetas bala","help-center-wysiwyg.cancel":"Cancelar","help-center-wysiwyg.centered-image":"Imagen centrada","help-center-wysiwyg.change-image-text-alternative":"Cambiar la alternativa de texto de la imagen","help-center-wysiwyg.choose-heading":"Elegir encabezado","help-center-wysiwyg.code":"Insertar código","help-center-wysiwyg.edit-link":"Editar vínculo","help-center-wysiwyg.editor-toolbar":"Barra de herramientas del editor","help-center-wysiwyg.enter-image-caption":"Ingresar pie de foto","help-center-wysiwyg.heading":"Encabezado","help-center-wysiwyg.heading-1":"Encabezado 1","help-center-wysiwyg.heading-2":"Encabezado 2","help-center-wysiwyg.heading-3":"Encabezado 3","help-center-wysiwyg.image_upload_generic_error":"Solo se pueden cargar imágenes (jpeg, gif o png). La carga de imágenes está limitada a {{max_size}} MB.","help-center-wysiwyg.in-line":"En línea","help-center-wysiwyg.insert-code-block":"Bloque de código","help-center-wysiwyg.insert-image":"Insertar imagen","help-center-wysiwyg.italic":"Cursiva","help-center-wysiwyg.left-aligned-image":"Imagen alineada a la izquierda","help-center-wysiwyg.link":"Insertar/editar vínculo","help-center-wysiwyg.link-url":"URL del vínculo","help-center-wysiwyg.mentionable_user_limit_exceeded":"Se ha alcanzado el límite de usuarios que se pueden mencionar","help-center-wysiwyg.numbered-list":"Lista numerada","help-center-wysiwyg.paragraph":"Párrafo","help-center-wysiwyg.plain-text":"Texto sin formato","help-center-wysiwyg.redo":"Rehacer","help-center-wysiwyg.right-aligned-image":"Imagen alineada a la derecha","help-center-wysiwyg.save":"Guardar","help-center-wysiwyg.show-more-items":"Mostrar más elementos","help-center-wysiwyg.side-image":"Imagen lateral","help-center-wysiwyg.text-alternative":"Alternativa de texto","help-center-wysiwyg.toggle-caption-off":"Desactivar leyenda","help-center-wysiwyg.toggle-caption-on":"Activar leyenda","help-center-wysiwyg.undo":"Deshacer","help-center-wysiwyg.unlink":"Desvincular","help-center-wysiwyg.upload-failed":"Falló la carga."}}')},4602:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},4652:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"הצעת מחיר","help-center-wysiwyg.bold":"מודגש","help-center-wysiwyg.bulleted-list":"רשימה עם תבליטים","help-center-wysiwyg.cancel":"ביטול","help-center-wysiwyg.centered-image":"תמונה ממורכזת","help-center-wysiwyg.change-image-text-alternative":"שנה חלופה לטקסט תמונה","help-center-wysiwyg.choose-heading":"בחירת כותרת","help-center-wysiwyg.code":"הוסף קוד","help-center-wysiwyg.edit-link":"עריכת הקישור","help-center-wysiwyg.editor-toolbar":"סרגל הכלים של העורך","help-center-wysiwyg.enter-image-caption":"הזן כיתוב לתמונה","help-center-wysiwyg.heading":"כותרת","help-center-wysiwyg.heading-1":"כותרת 1","help-center-wysiwyg.heading-2":"כותרת 2","help-center-wysiwyg.heading-3":"כותרת 3","help-center-wysiwyg.image_upload_generic_error":"אפשר להעלות רק תמונות (jpeg, gif או png). העלאות של תמונות מוגבלות ל-{{max_size}} MB.","help-center-wysiwyg.in-line":"בשורה","help-center-wysiwyg.insert-code-block":"בלוק קוד","help-center-wysiwyg.insert-image":"הוסף תמונה","help-center-wysiwyg.italic":"נטוי","help-center-wysiwyg.left-aligned-image":"תמונה מיושרת לשמאל","help-center-wysiwyg.link":"הוסף/ערוך קישור","help-center-wysiwyg.link-url":"כתובת ה-URL של הקישור","help-center-wysiwyg.mentionable_user_limit_exceeded":"הגעת למגבלת אזכורי המשתמשים","help-center-wysiwyg.numbered-list":"רשימה ממוספרת","help-center-wysiwyg.paragraph":"פסקה","help-center-wysiwyg.plain-text":"טקסט פשוט","help-center-wysiwyg.redo":"בצע שוב","help-center-wysiwyg.right-aligned-image":"תמונה מיושרת לימין","help-center-wysiwyg.save":"שמור","help-center-wysiwyg.show-more-items":"הצג פריטים נוספים","help-center-wysiwyg.side-image":"תמונת צד","help-center-wysiwyg.text-alternative":"חלופה לטקסט","help-center-wysiwyg.toggle-caption-off":"כבה כיתוב","help-center-wysiwyg.toggle-caption-on":"הפעל כיתוב","help-center-wysiwyg.undo":"בטל פעולה","help-center-wysiwyg.unlink":"בטל קישור","help-center-wysiwyg.upload-failed":"ההעלאה נכשלה"}}')},4668:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Idézet","help-center-wysiwyg.bold":"Félkövér","help-center-wysiwyg.bulleted-list":"Listajeles lista","help-center-wysiwyg.cancel":"Mégse","help-center-wysiwyg.centered-image":"Középre igazított kép","help-center-wysiwyg.change-image-text-alternative":"Kép helyettesítő szövegének módosítása","help-center-wysiwyg.choose-heading":"Címsor kiválasztása","help-center-wysiwyg.code":"Kód beszúrása","help-center-wysiwyg.edit-link":"Hivatkozás szerkesztése","help-center-wysiwyg.editor-toolbar":"Szerkesztői eszköztár","help-center-wysiwyg.enter-image-caption":"Adjon meg képfeliratot","help-center-wysiwyg.heading":"Címsor","help-center-wysiwyg.heading-1":"1. címsor","help-center-wysiwyg.heading-2":"2. címsor","help-center-wysiwyg.heading-3":"3. címsor","help-center-wysiwyg.image_upload_generic_error":"Csak képeket tölthet fel (jpeg, gif vagy png). A feltöltött képek mérete legfeljebb {{max_size}} MB lehet.","help-center-wysiwyg.in-line":"Beágyazott","help-center-wysiwyg.insert-code-block":"Kódblokk","help-center-wysiwyg.insert-image":"Kép beszúrása","help-center-wysiwyg.italic":"Dőlt","help-center-wysiwyg.left-aligned-image":"Balra igazított kép","help-center-wysiwyg.link":"Hivatkozás beszúrása/szerkesztése","help-center-wysiwyg.link-url":"Hivatkozás URL-címe","help-center-wysiwyg.mentionable_user_limit_exceeded":"Elérte a megemlíthető felhasználók maximális számát","help-center-wysiwyg.numbered-list":"Számozott lista","help-center-wysiwyg.paragraph":"Bekezdés","help-center-wysiwyg.plain-text":"Sima szöveg","help-center-wysiwyg.redo":"Mégis","help-center-wysiwyg.right-aligned-image":"Jobbra igazított kép","help-center-wysiwyg.save":"Mentés","help-center-wysiwyg.show-more-items":"További elemek megjelenítése","help-center-wysiwyg.side-image":"Oldalra igazított kép","help-center-wysiwyg.text-alternative":"Helyettesítő szöveg","help-center-wysiwyg.toggle-caption-off":"Felirat kikapcsolása","help-center-wysiwyg.toggle-caption-on":"Felirat bekapcsolása","help-center-wysiwyg.undo":"Visszavonás","help-center-wysiwyg.unlink":"Hivatkozás eltávolítása","help-center-wysiwyg.upload-failed":"A feltöltés nem sikerült"}}')},4672:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Cotización","help-center-wysiwyg.bold":"Negrita","help-center-wysiwyg.bulleted-list":"Lista con viñetas bala","help-center-wysiwyg.cancel":"Cancelar","help-center-wysiwyg.centered-image":"Imagen centrada","help-center-wysiwyg.change-image-text-alternative":"Cambiar la alternativa de texto de la imagen","help-center-wysiwyg.choose-heading":"Elegir encabezado","help-center-wysiwyg.code":"Insertar código","help-center-wysiwyg.edit-link":"Editar vínculo","help-center-wysiwyg.editor-toolbar":"Barra de herramientas del editor","help-center-wysiwyg.enter-image-caption":"Ingresar pie de foto","help-center-wysiwyg.heading":"Encabezado","help-center-wysiwyg.heading-1":"Encabezado 1","help-center-wysiwyg.heading-2":"Encabezado 2","help-center-wysiwyg.heading-3":"Encabezado 3","help-center-wysiwyg.image_upload_generic_error":"Solo se pueden cargar imágenes (jpeg, gif o png). La carga de imágenes está limitada a {{max_size}} MB.","help-center-wysiwyg.in-line":"En línea","help-center-wysiwyg.insert-code-block":"Bloque de código","help-center-wysiwyg.insert-image":"Insertar imagen","help-center-wysiwyg.italic":"Cursiva","help-center-wysiwyg.left-aligned-image":"Imagen alineada a la izquierda","help-center-wysiwyg.link":"Insertar/editar vínculo","help-center-wysiwyg.link-url":"URL del vínculo","help-center-wysiwyg.mentionable_user_limit_exceeded":"Se ha alcanzado el límite de usuarios que se pueden mencionar","help-center-wysiwyg.numbered-list":"Lista numerada","help-center-wysiwyg.paragraph":"Párrafo","help-center-wysiwyg.plain-text":"Texto sin formato","help-center-wysiwyg.redo":"Rehacer","help-center-wysiwyg.right-aligned-image":"Imagen alineada a la derecha","help-center-wysiwyg.save":"Guardar","help-center-wysiwyg.show-more-items":"Mostrar más elementos","help-center-wysiwyg.side-image":"Imagen lateral","help-center-wysiwyg.text-alternative":"Alternativa de texto","help-center-wysiwyg.toggle-caption-off":"Desactivar leyenda","help-center-wysiwyg.toggle-caption-on":"Activar leyenda","help-center-wysiwyg.undo":"Deshacer","help-center-wysiwyg.unlink":"Desvincular","help-center-wysiwyg.upload-failed":"Falló la carga."}}')},4841:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"인용","help-center-wysiwyg.bold":"굵게","help-center-wysiwyg.bulleted-list":"글머리 기호 목록","help-center-wysiwyg.cancel":"취소","help-center-wysiwyg.centered-image":"가운데 이미지","help-center-wysiwyg.change-image-text-alternative":"대체 이미지 텍스트 변경","help-center-wysiwyg.choose-heading":"제목 선택","help-center-wysiwyg.code":"코드 삽입","help-center-wysiwyg.edit-link":"링크 편집","help-center-wysiwyg.editor-toolbar":"편집기 도구 모음","help-center-wysiwyg.enter-image-caption":"이미지 캡션 입력","help-center-wysiwyg.heading":"머리글","help-center-wysiwyg.heading-1":"머리글 1","help-center-wysiwyg.heading-2":"머리글 2","help-center-wysiwyg.heading-3":"머리글 3","help-center-wysiwyg.image_upload_generic_error":"이미지(jpeg, gif 또는 png)만 업로드할 수 있습니다. 이미지 업로드 크기는 {{max_size}}MB로 제한됩니다.","help-center-wysiwyg.in-line":"인라인","help-center-wysiwyg.insert-code-block":"코드 블록","help-center-wysiwyg.insert-image":"이미지 삽입","help-center-wysiwyg.italic":"기울임꼴","help-center-wysiwyg.left-aligned-image":"왼쪽 정렬 이미지","help-center-wysiwyg.link":"링크 삽입/편집","help-center-wysiwyg.link-url":"링크 URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"멘션 가능한 사용자 수 제한에 도달했습니다.","help-center-wysiwyg.numbered-list":"번호 매기기 목록","help-center-wysiwyg.paragraph":"단락","help-center-wysiwyg.plain-text":"일반 텍스트","help-center-wysiwyg.redo":"다시 실행","help-center-wysiwyg.right-aligned-image":"오른쪽 정렬 이미지","help-center-wysiwyg.save":"저장","help-center-wysiwyg.show-more-items":"항목 더 보기","help-center-wysiwyg.side-image":"측면 이미지","help-center-wysiwyg.text-alternative":"대체 텍스트","help-center-wysiwyg.toggle-caption-off":"캡션 끄기","help-center-wysiwyg.toggle-caption-on":"캡션 켜기","help-center-wysiwyg.undo":"실행 취소","help-center-wysiwyg.unlink":"연결 해제","help-center-wysiwyg.upload-failed":"업로드 실패"}}')},4868:e=>{e.exports=function(e,t){Object.keys(t).forEach((function(i){e.setAttribute(i,t[i])}))}},4909:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},4938:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},4944:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Angebot","help-center-wysiwyg.bold":"Fett","help-center-wysiwyg.bulleted-list":"Aufzählungsliste","help-center-wysiwyg.cancel":"Abbrechen","help-center-wysiwyg.centered-image":"Zentriertes Bild","help-center-wysiwyg.change-image-text-alternative":"Alternativtext für Bild ändern","help-center-wysiwyg.choose-heading":"Überschrift auswählen","help-center-wysiwyg.code":"Code einfügen","help-center-wysiwyg.edit-link":"Link bearbeiten","help-center-wysiwyg.editor-toolbar":"Editor-Symbolleiste","help-center-wysiwyg.enter-image-caption":"Bildunterschrift eingeben","help-center-wysiwyg.heading":"Überschrift","help-center-wysiwyg.heading-1":"Überschrift 1","help-center-wysiwyg.heading-2":"Überschrift 2","help-center-wysiwyg.heading-3":"Überschrift 3","help-center-wysiwyg.image_upload_generic_error":"Sie können nur Bilder (jpeg, gif oder png) hochladen. Die Dateigröße von Bildern ist auf {{max_size}} MB beschränkt.","help-center-wysiwyg.in-line":"Inline","help-center-wysiwyg.insert-code-block":"Codeblock","help-center-wysiwyg.insert-image":"Bild einfügen","help-center-wysiwyg.italic":"Kursiv","help-center-wysiwyg.left-aligned-image":"Linksbündig ausgerichtetes Bild","help-center-wysiwyg.link":"Link einfügen/bearbeiten","help-center-wysiwyg.link-url":"URL des Links","help-center-wysiwyg.mentionable_user_limit_exceeded":"Sie haben den Höchstwert für Benutzererwähnungen erreicht","help-center-wysiwyg.numbered-list":"Nummerierte Liste","help-center-wysiwyg.paragraph":"Absatz","help-center-wysiwyg.plain-text":"Nur-Text","help-center-wysiwyg.redo":"Wiederholen","help-center-wysiwyg.right-aligned-image":"Rechtsbündig ausgerichtetes Bild","help-center-wysiwyg.save":"Speichern","help-center-wysiwyg.show-more-items":"Weitere Elemente anzeigen","help-center-wysiwyg.side-image":"Seitenbild","help-center-wysiwyg.text-alternative":"Alternativtext","help-center-wysiwyg.toggle-caption-off":"Untertitel deaktivieren","help-center-wysiwyg.toggle-caption-on":"Untertitel aktivieren","help-center-wysiwyg.undo":"Rückgängig","help-center-wysiwyg.unlink":"Trennen","help-center-wysiwyg.upload-failed":"Fehler beim Hochladen"}}')},4952:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},4987:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},5072:e=>{var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var o={},s=[],a=0;a<e.length;a++){var l=e[a],c=n.base?l[0]+n.base:l[0],d=o[c]||0,h="".concat(c," ").concat(d);o[c]=d+1;var g=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==g)t[g].references++,t[g].updater(u);else{var p=r(u,n);n.byIndex=a,t.splice(a,0,{identifier:h,updater:p,references:1})}s.push(h)}return s}function r(e,t){var i=t.domAPI(t);return i.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var o=n(e=e||[],r=r||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=i(o[s]);t[a].references--}for(var l=n(e,r),c=0;c<o.length;c++){var d=i(o[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=l}}},5113:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},5216:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},5241:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Alıntı","help-center-wysiwyg.bold":"Kalın","help-center-wysiwyg.bulleted-list":"Madde işaretli liste","help-center-wysiwyg.cancel":"İptal et","help-center-wysiwyg.centered-image":"Ortalanmış görsel","help-center-wysiwyg.change-image-text-alternative":"Görsel metni alternatifini değiştir","help-center-wysiwyg.choose-heading":"Başlık seçin","help-center-wysiwyg.code":"Kod ekle","help-center-wysiwyg.edit-link":"Bağlantıyı düzenle","help-center-wysiwyg.editor-toolbar":"Editör araç çubuğu","help-center-wysiwyg.enter-image-caption":"Görsel başlığı girin","help-center-wysiwyg.heading":"Başlık","help-center-wysiwyg.heading-1":"Başlık 1","help-center-wysiwyg.heading-2":"Başlık 2","help-center-wysiwyg.heading-3":"Başlık 3","help-center-wysiwyg.image_upload_generic_error":"Yalnızca görüntü dosyalarını (jpeg, gif veya png) karşıya yükleyebilirsiniz. Görüntü dosyaları için karşıya yükleme sınırı {{max_size}} MB\'tır.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Kod bloğu","help-center-wysiwyg.insert-image":"Görsel ekle","help-center-wysiwyg.italic":"İtalik","help-center-wysiwyg.left-aligned-image":"Sola hizalanmış görsel","help-center-wysiwyg.link":"Bağlantı ekle/düzenle","help-center-wysiwyg.link-url":"Bağlantı URL\'si","help-center-wysiwyg.mentionable_user_limit_exceeded":"Bahsedebileceğiniz kullanıcı sayısı sınırına ulaştınız","help-center-wysiwyg.numbered-list":"Numaralı liste","help-center-wysiwyg.paragraph":"Paragraf","help-center-wysiwyg.plain-text":"Düz metin","help-center-wysiwyg.redo":"Yinele","help-center-wysiwyg.right-aligned-image":"Sağa hizalanmış görsel","help-center-wysiwyg.save":"Kaydet","help-center-wysiwyg.show-more-items":"Daha fazla öğe göster","help-center-wysiwyg.side-image":"Yan resim","help-center-wysiwyg.text-alternative":"Metin alternatifi","help-center-wysiwyg.toggle-caption-off":"Altyazıyı aç/kapat","help-center-wysiwyg.toggle-caption-on":"Altyazıyı aç/kapat","help-center-wysiwyg.undo":"Geri al","help-center-wysiwyg.unlink":"Bağlantıyı kaldır","help-center-wysiwyg.upload-failed":"Karşıya yükleme başarısız oldu"}}')},5255:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centred image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},5302:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"[ผู้龍Ǫṵṵṓṓṭḛḛ龍ผู้]","help-center-wysiwyg.bold":"[ผู้龍Ḃṓṓḽḍ龍ผู้]","help-center-wysiwyg.bulleted-list":"[ผู้龍Ḃṵṵḽḽḛḛṭḛḛḍ ḽḭḭṡṭ龍ผู้]","help-center-wysiwyg.cancel":"[ผู้龍Ḉααṇͼḛḛḽ龍ผู้]","help-center-wysiwyg.centered-image":"[ผู้龍Ḉḛḛṇṭḛḛṛḛḛḍ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.change-image-text-alternative":"[ผู้龍Ḉḥααṇḡḛḛ ḭḭṃααḡḛḛ ṭḛḛẋṭ ααḽṭḛḛṛṇααṭḭḭṽḛḛ龍ผู้]","help-center-wysiwyg.choose-heading":"[ผู้龍Ḉḥṓṓṓṓṡḛḛ ḥḛḛααḍḭḭṇḡ龍ผู้]","help-center-wysiwyg.code":"[ผู้龍ḬḬṇṡḛḛṛṭ ͼṓṓḍḛḛ龍ผู้]","help-center-wysiwyg.edit-link":"[ผู้龍ḚḚḍḭḭṭ ḽḭḭṇḳ龍ผู้]","help-center-wysiwyg.editor-toolbar":"[ผู้龍ḚḚḍḭḭṭṓṓṛ ṭṓṓṓṓḽḅααṛ龍ผู้]","help-center-wysiwyg.enter-image-caption":"[ผู้龍ḚḚṇṭḛḛṛ ḭḭṃααḡḛḛ ͼααṗṭḭḭṓṓṇ龍ผู้]","help-center-wysiwyg.heading":"[ผู้龍Ḥḛḛααḍḭḭṇḡ龍ผู้]","help-center-wysiwyg.heading-1":"[ผู้龍Ḥḛḛααḍḭḭṇḡ 1龍ผู้]","help-center-wysiwyg.heading-2":"[ผู้龍Ḥḛḛααḍḭḭṇḡ 2龍ผู้]","help-center-wysiwyg.heading-3":"[ผู้龍Ḥḛḛααḍḭḭṇḡ 3龍ผู้]","help-center-wysiwyg.image_upload_generic_error":"[ผู้龍ŶŶṓṓṵṵ ͼααṇ ṓṓṇḽẏẏ ṵṵṗḽṓṓααḍ ḭḭṃααḡḛḛṡ (ĵṗḛḛḡ, ḡḭḭϝ ṓṓṛ ṗṇḡ). ḬḬṃααḡḛḛ ṵṵṗḽṓṓααḍṡ ααṛḛḛ ḽḭḭṃḭḭṭḛḛḍ ṭṓṓ {{max_size}} ṀḂ.龍ผู้]","help-center-wysiwyg.in-line":"[ผู้龍ḬḬṇ ḽḭḭṇḛḛ龍ผู้]","help-center-wysiwyg.insert-code-block":"[ผู้龍Ḉṓṓḍḛḛ ḅḽṓṓͼḳ龍ผู้]","help-center-wysiwyg.insert-image":"[ผู้龍ḬḬṇṡḛḛṛṭ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.italic":"[ผู้龍ḬḬṭααḽḭḭͼ龍ผู้]","help-center-wysiwyg.left-aligned-image":"[ผู้龍Ḻḛḛϝṭ ααḽḭḭḡṇḛḛḍ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.link":"[ผู้龍ḬḬṇṡḛḛṛṭ/ḚḚḍḭḭṭ ḽḭḭṇḳ龍ผู้]","help-center-wysiwyg.link-url":"[ผู้龍Ḻḭḭṇḳ ṲṲṚḺ龍ผู้]","help-center-wysiwyg.mentionable_user_limit_exceeded":"[ผู้龍ŶŶṓṓṵṵ ḥααṽḛḛ ṛḛḛααͼḥḛḛḍ ṭḥḛḛ ḽḭḭṃḭḭṭ ṓṓϝ ṃḛḛṇṭḭḭṓṓṇααḅḽḛḛ ṵṵṡḛḛṛṡ龍ผู้]","help-center-wysiwyg.numbered-list":"[ผู้龍Ṅṵṵṃḅḛḛṛḛḛḍ ḽḭḭṡṭ龍ผู้]","help-center-wysiwyg.paragraph":"[ผู้龍Ṕααṛααḡṛααṗḥ龍ผู้]","help-center-wysiwyg.plain-text":"[ผู้龍Ṕḽααḭḭṇ ṭḛḛẋṭ龍ผู้]","help-center-wysiwyg.redo":"[ผู้龍Ṛḛḛḍṓṓ龍ผู้]","help-center-wysiwyg.right-aligned-image":"[ผู้龍Ṛḭḭḡḥṭ ααḽḭḭḡṇḛḛḍ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.save":"[ผู้龍Ṣααṽḛḛ龍ผู้]","help-center-wysiwyg.show-more-items":"[ผู้龍Ṣḥṓṓẁ ṃṓṓṛḛḛ ḭḭṭḛḛṃṡ龍ผู้]","help-center-wysiwyg.side-image":"[ผู้龍Ṣḭḭḍḛḛ ḭḭṃααḡḛḛ龍ผู้]","help-center-wysiwyg.text-alternative":"[ผู้龍Ṫḛḛẋṭ ααḽṭḛḛṛṇααṭḭḭṽḛḛ龍ผู้]","help-center-wysiwyg.toggle-caption-off":"[ผู้龍Ṫṓṓḡḡḽḛḛ ͼααṗṭḭḭṓṓṇ ṓṓϝϝ龍ผู้]","help-center-wysiwyg.toggle-caption-on":"[ผู้龍Ṫṓṓḡḡḽḛḛ ͼααṗṭḭḭṓṓṇ ṓṓṇ龍ผู้]","help-center-wysiwyg.undo":"[ผู้龍ṲṲṇḍṓṓ龍ผู้]","help-center-wysiwyg.unlink":"[ผู้龍ṲṲṇḽḭḭṇḳ龍ผู้]","help-center-wysiwyg.upload-failed":"[ผู้龍ṲṲṗḽṓṓααḍ ϝααḭḭḽḛḛḍ龍ผู้]"}}')},5336:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},5526:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},5659:(e,t,i)=>{const n=i(8156),r={};for(const e of Object.keys(n))r[n[e]]=e;const o={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=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:i}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:i})}o.rgb.hsl=function(e){const t=e[0]/255,i=e[1]/255,n=e[2]/255,r=Math.min(t,i,n),o=Math.max(t,i,n),s=o-r;let a,l;o===r?a=0:t===o?a=(i-n)/s:i===o?a=2+(n-t)/s:n===o&&(a=4+(t-i)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(r+o)/2;return l=o===r?0:c<=.5?s/(o+r):s/(2-o-r),[a,100*l,100*c]},o.rgb.hsv=function(e){let t,i,n,r,o;const s=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(s,a,l),d=c-Math.min(s,a,l),h=function(e){return(c-e)/6/d+.5};return 0===d?(r=0,o=0):(o=d/c,t=h(s),i=h(a),n=h(l),s===c?r=n-i:a===c?r=1/3+t-n:l===c&&(r=2/3+i-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*c]},o.rgb.hwb=function(e){const t=e[0],i=e[1];let n=e[2];const r=o.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(i,n));return n=1-1/255*Math.max(t,Math.max(i,n)),[r,100*s,100*n]},o.rgb.cmyk=function(e){const t=e[0]/255,i=e[1]/255,n=e[2]/255,r=Math.min(1-t,1-i,1-n);return[100*((1-t-r)/(1-r)||0),100*((1-i-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*r]},o.rgb.keyword=function(e){const t=r[e];if(t)return t;let i,o=1/0;for(const t of Object.keys(n)){const r=(a=n[t],((s=e)[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2);r<o&&(o=r,i=t)}var s,a;return i},o.keyword.rgb=function(e){return n[e]},o.rgb.xyz=function(e){let t=e[0]/255,i=e[1]/255,n=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*i+.1805*n),100*(.2126*t+.7152*i+.0722*n),100*(.0193*t+.1192*i+.9505*n)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let i=t[0],n=t[1],r=t[2];return i/=95.047,n/=100,r/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(i-n),200*(n-r)]},o.hsl.rgb=function(e){const t=e[0]/360,i=e[1]/100,n=e[2]/100;let r,o,s;if(0===i)return s=255*n,[s,s,s];r=n<.5?n*(1+i):n+i-n*i;const a=2*n-r,l=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(r-a)*o:2*o<1?r:3*o<2?a+(r-a)*(2/3-o)*6:a,l[e]=255*s;return l},o.hsl.hsv=function(e){const t=e[0];let i=e[1]/100,n=e[2]/100,r=i;const o=Math.max(n,.01);return n*=2,i*=n<=1?n:2-n,r*=o<=1?o:2-o,[t,100*(0===n?2*r/(o+r):2*i/(n+i)),(n+i)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,i=e[1]/100;let n=e[2]/100;const r=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-i),a=255*n*(1-i*o),l=255*n*(1-i*(1-o));switch(n*=255,r){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}},o.hsv.hsl=function(e){const t=e[0],i=e[1]/100,n=e[2]/100,r=Math.max(n,.01);let o,s;s=(2-i)*n;const a=(2-i)*r;return o=i*r,o/=a<=1?a:2-a,o=o||0,s/=2,[t,100*o,100*s]},o.hwb.rgb=function(e){const t=e[0]/360;let i=e[1]/100,n=e[2]/100;const r=i+n;let o;r>1&&(i/=r,n/=r);const s=Math.floor(6*t),a=1-n;o=6*t-s,1&s&&(o=1-o);const l=i+o*(a-i);let c,d,h;switch(s){default:case 6:case 0:c=a,d=l,h=i;break;case 1:c=l,d=a,h=i;break;case 2:c=i,d=a,h=l;break;case 3:c=i,d=l,h=a;break;case 4:c=l,d=i,h=a;break;case 5:c=a,d=i,h=l}return[255*c,255*d,255*h]},o.cmyk.rgb=function(e){const t=e[0]/100,i=e[1]/100,n=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r))]},o.xyz.rgb=function(e){const t=e[0]/100,i=e[1]/100,n=e[2]/100;let r,o,s;return r=3.2406*t+-1.5372*i+-.4986*n,o=-.9689*t+1.8758*i+.0415*n,s=.0557*t+-.204*i+1.057*n,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*r,255*o,255*s]},o.xyz.lab=function(e){let t=e[0],i=e[1],n=e[2];return t/=95.047,i/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*i-16,500*(t-i),200*(i-n)]},o.lab.xyz=function(e){let t,i,n;i=(e[0]+16)/116,t=e[1]/500+i,n=i-e[2]/200;const r=i**3,o=t**3,s=n**3;return i=r>.008856?r:(i-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,i*=100,n*=108.883,[t,i,n]},o.lab.lch=function(e){const t=e[0],i=e[1],n=e[2];let r;return r=360*Math.atan2(n,i)/2/Math.PI,r<0&&(r+=360),[t,Math.sqrt(i*i+n*n),r]},o.lch.lab=function(e){const t=e[0],i=e[1],n=e[2]/360*2*Math.PI;return[t,i*Math.cos(n),i*Math.sin(n)]},o.rgb.ansi16=function(e,t=null){const[i,n,r]=e;let s=null===t?o.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return 2===s&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],i=e[1],n=e[2];return t===i&&i===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)},o.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 i=.5*(1+~~(e>50));return[(1&t)*i*255,(t>>1&1)*i*255,(t>>2&1)*i*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.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},o.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 i=t[0];3===t[0].length&&(i=i.split("").map((e=>e+e)).join(""));const n=parseInt(i,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){const t=e[0]/255,i=e[1]/255,n=e[2]/255,r=Math.max(Math.max(t,i),n),o=Math.min(Math.min(t,i),n),s=r-o;let a,l;return a=s<1?o/(1-s):0,l=s<=0?0:r===t?(i-n)/s%6:r===i?2+(n-t)/s:4+(t-i)/s,l/=6,l%=1,[360*l,100*s,100*a]},o.hsl.hcg=function(e){const t=e[1]/100,i=e[2]/100,n=i<.5?2*t*i:2*t*(1-i);let r=0;return n<1&&(r=(i-.5*n)/(1-n)),[e[0],100*n,100*r]},o.hsv.hcg=function(e){const t=e[1]/100,i=e[2]/100,n=t*i;let r=0;return n<1&&(r=(i-n)/(1-n)),[e[0],100*n,100*r]},o.hcg.rgb=function(e){const t=e[0]/360,i=e[1]/100,n=e[2]/100;if(0===i)return[255*n,255*n,255*n];const r=[0,0,0],o=t%1*6,s=o%1,a=1-s;let l=0;switch(Math.floor(o)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=a,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=a,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=a}return l=(1-i)*n,[255*(i*r[0]+l),255*(i*r[1]+l),255*(i*r[2]+l)]},o.hcg.hsv=function(e){const t=e[1]/100,i=t+e[2]/100*(1-t);let n=0;return i>0&&(n=t/i),[e[0],100*n,100*i]},o.hcg.hsl=function(e){const t=e[1]/100,i=e[2]/100*(1-t)+.5*t;let n=0;return i>0&&i<.5?n=t/(2*i):i>=.5&&i<1&&(n=t/(2*(1-i))),[e[0],100*n,100*i]},o.hcg.hwb=function(e){const t=e[1]/100,i=t+e[2]/100*(1-t);return[e[0],100*(i-t),100*(1-i)]},o.hwb.hcg=function(e){const t=e[1]/100,i=1-e[2]/100,n=i-t;let r=0;return n<1&&(r=(i-n)/(1-n)),[e[0],100*n,100*r]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},5811:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.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 a=s},5949:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}",""]);const a=s},6161:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.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 a=s},6235:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.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 a=s},6253:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centred image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);n&&s[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},6414:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}",""]);const a=s},6513:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},6589:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Nabídka","help-center-wysiwyg.bold":"Tučně","help-center-wysiwyg.bulleted-list":"Seznam s odrážkami","help-center-wysiwyg.cancel":"Zrušit","help-center-wysiwyg.centered-image":"Obrázek na střed","help-center-wysiwyg.change-image-text-alternative":"Změnit alternativu textu obrázku","help-center-wysiwyg.choose-heading":"Vybrat nadpis","help-center-wysiwyg.code":"Vložit kód","help-center-wysiwyg.edit-link":"Upravit odkaz","help-center-wysiwyg.editor-toolbar":"Panel nástrojů editoru","help-center-wysiwyg.enter-image-caption":"Zadejte popisek obrázku","help-center-wysiwyg.heading":"Nadpis","help-center-wysiwyg.heading-1":"Nadpis 1","help-center-wysiwyg.heading-2":"Nadpis 2","help-center-wysiwyg.heading-3":"Nadpis 3","help-center-wysiwyg.image_upload_generic_error":"Můžete uploadovat pouze obrázky (JPEG, GIF nebo PNG). Uploadované obrázky jsou omezeny na {{max_size}} MB.","help-center-wysiwyg.in-line":"V řadě","help-center-wysiwyg.insert-code-block":"Blok kódu","help-center-wysiwyg.insert-image":"Vložit obrázek","help-center-wysiwyg.italic":"Kurzíva","help-center-wysiwyg.left-aligned-image":"Obrázek zarovnaný doleva","help-center-wysiwyg.link":"Vložit/upravit odkaz","help-center-wysiwyg.link-url":"URL odkazu","help-center-wysiwyg.mentionable_user_limit_exceeded":"Dosáhli jste limitu počtu zmínění uživatelů.","help-center-wysiwyg.numbered-list":"Číslovaný seznam","help-center-wysiwyg.paragraph":"Odstavec","help-center-wysiwyg.plain-text":"Prostý text","help-center-wysiwyg.redo":"Znovu","help-center-wysiwyg.right-aligned-image":"Obrázek zarovnaný doprava","help-center-wysiwyg.save":"Uložit","help-center-wysiwyg.show-more-items":"Zobrazit více položek","help-center-wysiwyg.side-image":"Obrázek na straně","help-center-wysiwyg.text-alternative":"Alternativa textu","help-center-wysiwyg.toggle-caption-off":"Vypnout titulky","help-center-wysiwyg.toggle-caption-on":"Zapnout titulky","help-center-wysiwyg.undo":"Zpět","help-center-wysiwyg.unlink":"Odpojit","help-center-wysiwyg.upload-failed":"Chyba uploadu"}}')},6595:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}",""]);const a=s},6679:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Aspas","help-center-wysiwyg.bold":"Negrito","help-center-wysiwyg.bulleted-list":"Lista com marcadores","help-center-wysiwyg.cancel":"Cancelar","help-center-wysiwyg.centered-image":"Imagem centralizada","help-center-wysiwyg.change-image-text-alternative":"Alterar alternativa de texto da imagem","help-center-wysiwyg.choose-heading":"Escolher cabeçalho","help-center-wysiwyg.code":"Inserir código","help-center-wysiwyg.edit-link":"Editar link","help-center-wysiwyg.editor-toolbar":"Barra de ferramentas do editor","help-center-wysiwyg.enter-image-caption":"Inserir legenda da imagem","help-center-wysiwyg.heading":"Cabeçalho","help-center-wysiwyg.heading-1":"Cabeçalho 1","help-center-wysiwyg.heading-2":"Cabeçalho 2","help-center-wysiwyg.heading-3":"Cabeçalho 3","help-center-wysiwyg.image_upload_generic_error":"Você pode carregar apenas imagens (jpeg, gif ou png). Os carregamentos de imagens são limitados a {{max_size}} MB.","help-center-wysiwyg.in-line":"Na linha","help-center-wysiwyg.insert-code-block":"Bloco de código","help-center-wysiwyg.insert-image":"Inserir imagem","help-center-wysiwyg.italic":"Itálico","help-center-wysiwyg.left-aligned-image":"Imagem alinhada à esquerda","help-center-wysiwyg.link":"Inserir/editar link","help-center-wysiwyg.link-url":"URL do link","help-center-wysiwyg.mentionable_user_limit_exceeded":"Você atingiu o limite de menção de usuários","help-center-wysiwyg.numbered-list":"Lista numerada","help-center-wysiwyg.paragraph":"Parágrafo","help-center-wysiwyg.plain-text":"Texto sem formatação","help-center-wysiwyg.redo":"Refazer","help-center-wysiwyg.right-aligned-image":"Imagem alinhada à direita","help-center-wysiwyg.save":"Salvar","help-center-wysiwyg.show-more-items":"Mostrar mais itens","help-center-wysiwyg.side-image":"Imagem lateral","help-center-wysiwyg.text-alternative":"Alternativa de texto","help-center-wysiwyg.toggle-caption-off":"Desativar legenda","help-center-wysiwyg.toggle-caption-on":"Ativar legenda","help-center-wysiwyg.undo":"Desfazer","help-center-wysiwyg.unlink":"Desvincular","help-center-wysiwyg.upload-failed":"Erro ao carregar"}}')},6683:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},6709:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button{border-radius:0}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container,.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__panel>ul>.ck-menu-bar__menu__item>.ck-menu-bar__menu__item__button:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}",""]);const a=s},6840:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"कोट","help-center-wysiwyg.bold":"बोल्ड","help-center-wysiwyg.bulleted-list":"बुलेट वाली सूची","help-center-wysiwyg.cancel":"रद्द करें","help-center-wysiwyg.centered-image":"केंद्रित छवि","help-center-wysiwyg.change-image-text-alternative":"छवि पाठ विकल्प बदलें","help-center-wysiwyg.choose-heading":"शीर्षक चुनें","help-center-wysiwyg.code":"कोड शामिल करें","help-center-wysiwyg.edit-link":"लिंक संपादित करें","help-center-wysiwyg.editor-toolbar":"संपादक टूलबार","help-center-wysiwyg.enter-image-caption":"छवि कैप्शन दर्ज करें","help-center-wysiwyg.heading":"शीर्षक","help-center-wysiwyg.heading-1":"शीर्षक 1","help-center-wysiwyg.heading-2":"शीर्षक 2","help-center-wysiwyg.heading-3":"शीर्षक 3","help-center-wysiwyg.image_upload_generic_error":"आप केवल छवि (jpeg, gif या png) अपलोड कर सकते हैं। छवि अपलोड {{max_size}} MB तक सीमित हैं।","help-center-wysiwyg.in-line":"लाइन में","help-center-wysiwyg.insert-code-block":"कोड ब्लॉक","help-center-wysiwyg.insert-image":"छवि सम्मिलित करें","help-center-wysiwyg.italic":"इटैलिक","help-center-wysiwyg.left-aligned-image":"बाईं ओर संरेखित छवि","help-center-wysiwyg.link":"लिंक सम्मिलित/संपादित करें","help-center-wysiwyg.link-url":"URL लिंक करें","help-center-wysiwyg.mentionable_user_limit_exceeded":"आप उपयोगकर्ताओं के नामों का उल्लेख करने की सीमा पार कर चुके हैं","help-center-wysiwyg.numbered-list":"क्रमांकित सूची","help-center-wysiwyg.paragraph":"परिच्छेद","help-center-wysiwyg.plain-text":"सादा पाठ","help-center-wysiwyg.redo":"फिर से करें","help-center-wysiwyg.right-aligned-image":"दाईं ओर संरेखित छवि","help-center-wysiwyg.save":"सहेजें","help-center-wysiwyg.show-more-items":"और वस्तुएं दिखाएं","help-center-wysiwyg.side-image":"साइड इमेज","help-center-wysiwyg.text-alternative":"पाठ विकल्प","help-center-wysiwyg.toggle-caption-off":"टॉगल कैप्शन बंद करें","help-center-wysiwyg.toggle-caption-on":"टॉगल कैप्शन चालू करें","help-center-wysiwyg.undo":"पूर्ववत् करें","help-center-wysiwyg.unlink":"लिंक निकालें","help-center-wysiwyg.upload-failed":"अपलोड की प्रक्रिया पूरी नहीं हो सकी"}}')},6958:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Квота","help-center-wysiwyg.bold":"Жирный","help-center-wysiwyg.bulleted-list":"Маркированный список","help-center-wysiwyg.cancel":"Отмена","help-center-wysiwyg.centered-image":"Изображение по центру","help-center-wysiwyg.change-image-text-alternative":"Изменить альтернативный текст изображения","help-center-wysiwyg.choose-heading":"Выберите заголовок","help-center-wysiwyg.code":"Вставить код","help-center-wysiwyg.edit-link":"Изменить ссылку","help-center-wysiwyg.editor-toolbar":"Панель инструментов редактора","help-center-wysiwyg.enter-image-caption":"Введите подпись к изображению","help-center-wysiwyg.heading":"Заголовок","help-center-wysiwyg.heading-1":"Заголовок 1","help-center-wysiwyg.heading-2":"Заголовок 2","help-center-wysiwyg.heading-3":"Заголовок 3","help-center-wysiwyg.image_upload_generic_error":"Можно выкладывать только изображения (jpeg, gif или png). Размер выкладываемого файла изображения не может превышать {{max_size}} МБ.","help-center-wysiwyg.in-line":"В линию","help-center-wysiwyg.insert-code-block":"Блок кода","help-center-wysiwyg.insert-image":"Вставить изображение","help-center-wysiwyg.italic":"Курсив","help-center-wysiwyg.left-aligned-image":"Изображение по левому краю","help-center-wysiwyg.link":"Вставить/изменить ссылку","help-center-wysiwyg.link-url":"URL-адрес ссылки","help-center-wysiwyg.mentionable_user_limit_exceeded":"Достигнуто максимальное количество упоминаемых пользователей","help-center-wysiwyg.numbered-list":"Нумерованный список","help-center-wysiwyg.paragraph":"Абзац","help-center-wysiwyg.plain-text":"Обычный текст","help-center-wysiwyg.redo":"Вернуть","help-center-wysiwyg.right-aligned-image":"Изображение по правому краю","help-center-wysiwyg.save":"Сохранить","help-center-wysiwyg.show-more-items":"Показать больше позиций","help-center-wysiwyg.side-image":"Изображение сбоку","help-center-wysiwyg.text-alternative":"Альтернативный текст","help-center-wysiwyg.toggle-caption-off":"Отключить подпись","help-center-wysiwyg.toggle-caption-on":"Включить подпись","help-center-wysiwyg.undo":"Отменить","help-center-wysiwyg.unlink":"Отсоединить","help-center-wysiwyg.upload-failed":"Не удалось выложить"}}')},7013:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-menu-bar{background:var(--ck-color-base-background);border:1px solid var(--ck-color-toolbar-border);display:flex;flex-wrap:wrap;gap:var(--ck-spacing-small);justify-content:flex-start;padding:var(--ck-spacing-small);width:100%}",""]);const a=s},7061:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},7075:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highlighted-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-highlighted-background)}to{background-color:var(--ck-color-image-caption-background)}}",""]);const a=s},7131:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,":root{--ck-accessibility-help-dialog-max-width:600px;--ck-accessibility-help-dialog-max-height:400px;--ck-accessibility-help-dialog-border-color:#ccced1;--ck-accessibility-help-dialog-code-background-color:#ededed;--ck-accessibility-help-dialog-kbd-shadow-color:#9c9c9c}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{border:1px solid transparent;max-height:var(--ck-accessibility-help-dialog-max-height);max-width:var(--ck-accessibility-help-dialog-max-width);overflow:auto;padding:var(--ck-spacing-large);user-select:text}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{*{white-space:normal}}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content .ck-label{display:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3{font-size:1.2em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4{font-size:1em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content p,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content table{margin:1em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl{border-bottom:none;border-top:1px solid var(--ck-accessibility-help-dialog-border-color);display:grid;grid-template-columns:2fr 1fr}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{border-bottom:1px solid var(--ck-accessibility-help-dialog-border-color);padding:.4em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{grid-column-start:1}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{grid-column-start:2;text-align:right}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{background:var(--ck-accessibility-help-dialog-code-background-color);border-radius:2px;display:inline-block;font-size:.9em;line-height:1;padding:.4em;text-align:center;vertical-align:middle}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{font-family:monospace}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{box-shadow:0 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);margin:0 1px;min-width:1.8em}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd+kbd{margin-left:2px}",""]);const a=s},7144:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},7149:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},7159:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},7197:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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:44px}.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{--ck-font-size-base:15px;font-weight:700}",""]);const a=s},7233:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},7377:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},7415:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},7534:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Aspas","help-center-wysiwyg.bold":"Negrito","help-center-wysiwyg.bulleted-list":"Lista com marcadores","help-center-wysiwyg.cancel":"Cancelar","help-center-wysiwyg.centered-image":"Imagem centralizada","help-center-wysiwyg.change-image-text-alternative":"Alterar alternativa de texto da imagem","help-center-wysiwyg.choose-heading":"Escolher cabeçalho","help-center-wysiwyg.code":"Inserir código","help-center-wysiwyg.edit-link":"Editar link","help-center-wysiwyg.editor-toolbar":"Barra de ferramentas do editor","help-center-wysiwyg.enter-image-caption":"Inserir legenda da imagem","help-center-wysiwyg.heading":"Cabeçalho","help-center-wysiwyg.heading-1":"Cabeçalho 1","help-center-wysiwyg.heading-2":"Cabeçalho 2","help-center-wysiwyg.heading-3":"Cabeçalho 3","help-center-wysiwyg.image_upload_generic_error":"Você pode carregar apenas imagens (jpeg, gif ou png). Os carregamentos de imagens são limitados a {{max_size}} MB.","help-center-wysiwyg.in-line":"Na linha","help-center-wysiwyg.insert-code-block":"Bloco de código","help-center-wysiwyg.insert-image":"Inserir imagem","help-center-wysiwyg.italic":"Itálico","help-center-wysiwyg.left-aligned-image":"Imagem alinhada à esquerda","help-center-wysiwyg.link":"Inserir/editar link","help-center-wysiwyg.link-url":"URL do link","help-center-wysiwyg.mentionable_user_limit_exceeded":"Você atingiu o limite de menção de usuários","help-center-wysiwyg.numbered-list":"Lista numerada","help-center-wysiwyg.paragraph":"Parágrafo","help-center-wysiwyg.plain-text":"Texto sem formatação","help-center-wysiwyg.redo":"Refazer","help-center-wysiwyg.right-aligned-image":"Imagem alinhada à direita","help-center-wysiwyg.save":"Salvar","help-center-wysiwyg.show-more-items":"Mostrar mais itens","help-center-wysiwyg.side-image":"Imagem lateral","help-center-wysiwyg.text-alternative":"Alternativa de texto","help-center-wysiwyg.toggle-caption-off":"Desativar legenda","help-center-wysiwyg.toggle-caption-on":"Ativar legenda","help-center-wysiwyg.undo":"Desfazer","help-center-wysiwyg.unlink":"Desvincular","help-center-wysiwyg.upload-failed":"Erro ao carregar"}}')},7554:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},7568:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Angebot","help-center-wysiwyg.bold":"Fett","help-center-wysiwyg.bulleted-list":"Aufzählungsliste","help-center-wysiwyg.cancel":"Abbrechen","help-center-wysiwyg.centered-image":"Zentriertes Bild","help-center-wysiwyg.change-image-text-alternative":"Alternativtext für Bild ändern","help-center-wysiwyg.choose-heading":"Überschrift auswählen","help-center-wysiwyg.code":"Code einfügen","help-center-wysiwyg.edit-link":"Link bearbeiten","help-center-wysiwyg.editor-toolbar":"Editor-Symbolleiste","help-center-wysiwyg.enter-image-caption":"Bildunterschrift eingeben","help-center-wysiwyg.heading":"Überschrift","help-center-wysiwyg.heading-1":"Überschrift 1","help-center-wysiwyg.heading-2":"Überschrift 2","help-center-wysiwyg.heading-3":"Überschrift 3","help-center-wysiwyg.image_upload_generic_error":"Sie können nur Bilder (jpeg, gif oder png) hochladen. Die Dateigröße von Bildern ist auf {{max_size}} MB beschränkt.","help-center-wysiwyg.in-line":"Inline","help-center-wysiwyg.insert-code-block":"Codeblock","help-center-wysiwyg.insert-image":"Bild einfügen","help-center-wysiwyg.italic":"Kursiv","help-center-wysiwyg.left-aligned-image":"Linksbündig ausgerichtetes Bild","help-center-wysiwyg.link":"Link einfügen/bearbeiten","help-center-wysiwyg.link-url":"URL des Links","help-center-wysiwyg.mentionable_user_limit_exceeded":"Sie haben den Höchstwert für Benutzererwähnungen erreicht","help-center-wysiwyg.numbered-list":"Nummerierte Liste","help-center-wysiwyg.paragraph":"Absatz","help-center-wysiwyg.plain-text":"Nur-Text","help-center-wysiwyg.redo":"Wiederholen","help-center-wysiwyg.right-aligned-image":"Rechtsbündig ausgerichtetes Bild","help-center-wysiwyg.save":"Speichern","help-center-wysiwyg.show-more-items":"Weitere Elemente anzeigen","help-center-wysiwyg.side-image":"Seitenbild","help-center-wysiwyg.text-alternative":"Alternativtext","help-center-wysiwyg.toggle-caption-off":"Untertitel deaktivieren","help-center-wysiwyg.toggle-caption-on":"Untertitel aktivieren","help-center-wysiwyg.undo":"Rückgängig","help-center-wysiwyg.unlink":"Trennen","help-center-wysiwyg.upload-failed":"Fehler beim Hochladen"}}')},7583:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},7638:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},7659:e=>{var t={};e.exports=function(e,i){var n=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(e){i=null}t[e]=i}return t[e]}(e);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(i)}},7704:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},7756:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}",""]);const a=s},7948:(e,t,i)=>{i.d(t,{A:()=>g});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o),a=i(4417),l=i.n(a),c=new URL(i(8242),i.b),d=s()(r()),h=l()(c);d.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(${h});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 g=d},8029:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}",""]);const a=s},8037:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},8077:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},8142:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},8156:e=>{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]}},8163:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-panel)}.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 a=s},8166:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-panel)}.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 a=s},8242:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+"},8310:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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=s},8318:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Квота","help-center-wysiwyg.bold":"Жирный","help-center-wysiwyg.bulleted-list":"Маркированный список","help-center-wysiwyg.cancel":"Отмена","help-center-wysiwyg.centered-image":"Изображение по центру","help-center-wysiwyg.change-image-text-alternative":"Изменить альтернативный текст изображения","help-center-wysiwyg.choose-heading":"Выберите заголовок","help-center-wysiwyg.code":"Вставить код","help-center-wysiwyg.edit-link":"Изменить ссылку","help-center-wysiwyg.editor-toolbar":"Панель инструментов редактора","help-center-wysiwyg.enter-image-caption":"Введите подпись к изображению","help-center-wysiwyg.heading":"Заголовок","help-center-wysiwyg.heading-1":"Заголовок 1","help-center-wysiwyg.heading-2":"Заголовок 2","help-center-wysiwyg.heading-3":"Заголовок 3","help-center-wysiwyg.image_upload_generic_error":"Можно выкладывать только изображения (jpeg, gif или png). Размер выкладываемого файла изображения не может превышать {{max_size}} МБ.","help-center-wysiwyg.in-line":"В линию","help-center-wysiwyg.insert-code-block":"Блок кода","help-center-wysiwyg.insert-image":"Вставить изображение","help-center-wysiwyg.italic":"Курсив","help-center-wysiwyg.left-aligned-image":"Изображение по левому краю","help-center-wysiwyg.link":"Вставить/изменить ссылку","help-center-wysiwyg.link-url":"URL-адрес ссылки","help-center-wysiwyg.mentionable_user_limit_exceeded":"Достигнуто максимальное количество упоминаемых пользователей","help-center-wysiwyg.numbered-list":"Нумерованный список","help-center-wysiwyg.paragraph":"Абзац","help-center-wysiwyg.plain-text":"Обычный текст","help-center-wysiwyg.redo":"Вернуть","help-center-wysiwyg.right-aligned-image":"Изображение по правому краю","help-center-wysiwyg.save":"Сохранить","help-center-wysiwyg.show-more-items":"Показать больше позиций","help-center-wysiwyg.side-image":"Изображение сбоку","help-center-wysiwyg.text-alternative":"Альтернативный текст","help-center-wysiwyg.toggle-caption-off":"Отключить подпись","help-center-wysiwyg.toggle-caption-on":"Включить подпись","help-center-wysiwyg.undo":"Отменить","help-center-wysiwyg.unlink":"Отсоединить","help-center-wysiwyg.upload-failed":"Не удалось выложить"}}')},8331:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},8371:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},8389:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},8396:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Anførselstegn","help-center-wysiwyg.bold":"Fed skrift","help-center-wysiwyg.bulleted-list":"Punktopstilling","help-center-wysiwyg.cancel":"Annuller","help-center-wysiwyg.centered-image":"Centreret billede","help-center-wysiwyg.change-image-text-alternative":"Skift til alternativ billedtekst","help-center-wysiwyg.choose-heading":"Vælg overskrift","help-center-wysiwyg.code":"Indsæt kode","help-center-wysiwyg.edit-link":"Rediger link","help-center-wysiwyg.editor-toolbar":"Editorens værktøjslinje","help-center-wysiwyg.enter-image-caption":"Indtast billedtekst","help-center-wysiwyg.heading":"Overskrift","help-center-wysiwyg.heading-1":"Overskrift 1","help-center-wysiwyg.heading-2":"Overskrift 2","help-center-wysiwyg.heading-3":"Overskrift 3","help-center-wysiwyg.image_upload_generic_error":"Du kan kun uploade billeder (jpeg, gif eller png). Billeduploads er begrænset til {{max_size}} MB.","help-center-wysiwyg.in-line":"På linje","help-center-wysiwyg.insert-code-block":"Kodeblok","help-center-wysiwyg.insert-image":"Indsæt billede","help-center-wysiwyg.italic":"Kursiv","help-center-wysiwyg.left-aligned-image":"Venstrejusteret billede","help-center-wysiwyg.link":"Indsæt/rediger link","help-center-wysiwyg.link-url":"Linkets URL-adresse","help-center-wysiwyg.mentionable_user_limit_exceeded":"Du har nået grænsen for omtalte brugere","help-center-wysiwyg.numbered-list":"Nummereret liste","help-center-wysiwyg.paragraph":"Afsnit","help-center-wysiwyg.plain-text":"Almindelig tekst","help-center-wysiwyg.redo":"Gendan","help-center-wysiwyg.right-aligned-image":"Højrejusteret billede","help-center-wysiwyg.save":"Gem","help-center-wysiwyg.show-more-items":"Vis flere elementer","help-center-wysiwyg.side-image":"Sidebillede","help-center-wysiwyg.text-alternative":"Alternativ tekst","help-center-wysiwyg.toggle-caption-off":"Slå billedtekst fra","help-center-wysiwyg.toggle-caption-on":"Slå billedtekst til","help-center-wysiwyg.undo":"Fortryd","help-center-wysiwyg.unlink":"Fjern link","help-center-wysiwyg.upload-failed":"Upload mislykkedes"}}')},8473:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"報價","help-center-wysiwyg.bold":"粗體","help-center-wysiwyg.bulleted-list":"項目符號清單","help-center-wysiwyg.cancel":"取消","help-center-wysiwyg.centered-image":"影像置中","help-center-wysiwyg.change-image-text-alternative":"變更影像替代文字","help-center-wysiwyg.choose-heading":"選擇標題","help-center-wysiwyg.code":"插入程式碼","help-center-wysiwyg.edit-link":"編輯連結","help-center-wysiwyg.editor-toolbar":"編輯器工具列","help-center-wysiwyg.enter-image-caption":"輸入影像說明文字","help-center-wysiwyg.heading":"標題","help-center-wysiwyg.heading-1":"標題 1","help-center-wysiwyg.heading-2":"標題 2","help-center-wysiwyg.heading-3":"標題 3","help-center-wysiwyg.image_upload_generic_error":"您僅可上傳影像(jpeg、gif 或 png)。影像上傳的大小限於 {{max_size}} MB。","help-center-wysiwyg.in-line":"內嵌","help-center-wysiwyg.insert-code-block":"程式碼區塊","help-center-wysiwyg.insert-image":"插入影像","help-center-wysiwyg.italic":"斜體","help-center-wysiwyg.left-aligned-image":"影像靠左對齊","help-center-wysiwyg.link":"插入/編輯連結","help-center-wysiwyg.link-url":"連結 URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"您已達到可提及的使用者上限","help-center-wysiwyg.numbered-list":"編號清單","help-center-wysiwyg.paragraph":"段落","help-center-wysiwyg.plain-text":"純文字","help-center-wysiwyg.redo":"重做","help-center-wysiwyg.right-aligned-image":"影像靠右對齊","help-center-wysiwyg.save":"儲存","help-center-wysiwyg.show-more-items":"顯示更多項目","help-center-wysiwyg.side-image":"影像在旁","help-center-wysiwyg.text-alternative":"替代文字","help-center-wysiwyg.toggle-caption-off":"關閉說明文字","help-center-wysiwyg.toggle-caption-on":"開啟說明文字","help-center-wysiwyg.undo":"復原","help-center-wysiwyg.unlink":"取消連結","help-center-wysiwyg.upload-failed":"上傳失敗"}}')},8507:(e,t,i)=>{const n=i(5659);function r(e){const t=function(){const e={},t=Object.keys(n);for(let i=t.length,n=0;n<i;n++)e[t[n]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;){const e=i.pop(),r=Object.keys(n[e]);for(let n=r.length,o=0;o<n;o++){const n=r[o],s=t[n];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,i.unshift(n))}}return t}function o(e,t){return function(i){return t(e(i))}}function s(e,t){const i=[t[e].parent,e];let r=n[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)i.unshift(t[s].parent),r=o(n[t[s].parent][s],r),s=t[s].parent;return r.conversion=i,r}e.exports=function(e){const t=r(e),i={},n=Object.keys(t);for(let e=n.length,r=0;r<e;r++){const e=n[r];null!==t[e].parent&&(i[e]=s(e,t))}return i}},8571:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},8643:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centred image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},8646:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},8782:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},8788:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Cotație","help-center-wysiwyg.bold":"Aldin","help-center-wysiwyg.bulleted-list":"Listă cu marcatori","help-center-wysiwyg.cancel":"Anulare","help-center-wysiwyg.centered-image":"Imagine centrată","help-center-wysiwyg.change-image-text-alternative":"Modificarea textului imaginii alternative","help-center-wysiwyg.choose-heading":"Alegeți antetul","help-center-wysiwyg.code":"Introduceți codul","help-center-wysiwyg.edit-link":"Editare link","help-center-wysiwyg.editor-toolbar":"Bară de instrumente editor","help-center-wysiwyg.enter-image-caption":"Introduceți legenda imaginii","help-center-wysiwyg.heading":"Titlu","help-center-wysiwyg.heading-1":"Titlu 1","help-center-wysiwyg.heading-2":"Titlu 2","help-center-wysiwyg.heading-3":"Titlu 3","help-center-wysiwyg.image_upload_generic_error":"Puteți să încărcați numai imagini (jpeg, gif sau png). Dimensiunea imaginilor încărcate este limitată la {{max_size}} MB.","help-center-wysiwyg.in-line":"În linie","help-center-wysiwyg.insert-code-block":"Bloc de cod","help-center-wysiwyg.insert-image":"Introducere imagine","help-center-wysiwyg.italic":"Cursiv","help-center-wysiwyg.left-aligned-image":"Imagine aliniată la stânga","help-center-wysiwyg.link":"Introducere/editare link","help-center-wysiwyg.link-url":"Adresă URL link","help-center-wysiwyg.mentionable_user_limit_exceeded":"Ați atins deja limita de utilizatori care pot fi menționați","help-center-wysiwyg.numbered-list":"Listă numerotată","help-center-wysiwyg.paragraph":"Paragraf","help-center-wysiwyg.plain-text":"Text simplu","help-center-wysiwyg.redo":"Refacere","help-center-wysiwyg.right-aligned-image":"Imagine aliniată la dreapta","help-center-wysiwyg.save":"Salvare","help-center-wysiwyg.show-more-items":"Afișare mai multe elemente","help-center-wysiwyg.side-image":"Imagine laterală","help-center-wysiwyg.text-alternative":"Text alternativ","help-center-wysiwyg.toggle-caption-off":"Dezactivare legendă comutare","help-center-wysiwyg.toggle-caption-on":"Comutare legendă pornită","help-center-wysiwyg.undo":"Anulare","help-center-wysiwyg.unlink":"Anulare legătură","help-center-wysiwyg.upload-failed":"Încărcarea a eșuat"}}')},8795:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,":root{--ck-mention-list-max-height:300px}.ck.ck-mentions{max-height:var(--ck-mention-list-max-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.ck.ck-mentions>.ck-list__item{flex-shrink:0;overflow:hidden}",""]);const a=s},9014:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},9107:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},9214:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Báo giá","help-center-wysiwyg.bold":"In đậm","help-center-wysiwyg.bulleted-list":"Danh sách có dấu đầu dòng","help-center-wysiwyg.cancel":"Hủy bỏ","help-center-wysiwyg.centered-image":"Căn ảnh giữa trang","help-center-wysiwyg.change-image-text-alternative":"Thay đổi văn bản hình ảnh thay thế","help-center-wysiwyg.choose-heading":"Chọn đầu đề","help-center-wysiwyg.code":"Chèn mã","help-center-wysiwyg.edit-link":"Chỉnh sửa liên kết","help-center-wysiwyg.editor-toolbar":"Thanh công cụ của trình chỉnh sửa","help-center-wysiwyg.enter-image-caption":"Nhập chú thích hình ảnh","help-center-wysiwyg.heading":"Đầu đề","help-center-wysiwyg.heading-1":"Đầu đề 1","help-center-wysiwyg.heading-2":"Đầu đề 2","help-center-wysiwyg.heading-3":"Đầu đề 3","help-center-wysiwyg.image_upload_generic_error":"Bạn chỉ có thể tải hình ảnh lên (jpeg, gif hoặc png). Hình ảnh tải lên không được vượt quá {{max_size}} MB.","help-center-wysiwyg.in-line":"Căn ảnh trong dòng","help-center-wysiwyg.insert-code-block":"Khối mã","help-center-wysiwyg.insert-image":"Chèn ảnh","help-center-wysiwyg.italic":"Nghiêng","help-center-wysiwyg.left-aligned-image":"Căn ảnh lề trái","help-center-wysiwyg.link":"Chèn/Chỉnh sửa đường dẫn","help-center-wysiwyg.link-url":"URL liên kết","help-center-wysiwyg.mentionable_user_limit_exceeded":"Bạn đã đạt giới hạn số người dùng có thể đề cập","help-center-wysiwyg.numbered-list":"Danh sách được đánh số","help-center-wysiwyg.paragraph":"Đoạn","help-center-wysiwyg.plain-text":"Văn bản thuần","help-center-wysiwyg.redo":"Làm lại","help-center-wysiwyg.right-aligned-image":"Căn ảnh lề phải","help-center-wysiwyg.save":"Lưu","help-center-wysiwyg.show-more-items":"Hiển thị thêm mục","help-center-wysiwyg.side-image":"Căn ảnh bên","help-center-wysiwyg.text-alternative":"Văn bản thay thế","help-center-wysiwyg.toggle-caption-off":"Tắt phụ đề","help-center-wysiwyg.toggle-caption-on":"Bật phụ đề","help-center-wysiwyg.undo":"Hoàn tác","help-center-wysiwyg.unlink":"Bỏ liên kết","help-center-wysiwyg.upload-failed":"Tải lên không thành công"}}')},9321:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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-panel)}.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-panel) + 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 a=s},9323:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},9390:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s},9430:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck-content pre{background:hsla(0,0%,78%,.3);border:1px solid #c4c4c4;border-radius:2px;color:#353535;direction:ltr;font-style:normal;min-width:200px;padding:1em;tab-size:4;text-align:left;white-space:pre-wrap}.ck-content pre code{background:unset;border-radius:0;padding:0}.ck.ck-editor__editable pre{position:relative}.ck.ck-editor__editable pre[data-language]:after{content:attr(data-language);position:absolute}:root{--ck-color-code-block-label-background:#757575}.ck.ck-editor__editable pre[data-language]:after{background:var(--ck-color-code-block-label-background);color:#fff;font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);right:10px;top:-1px;white-space:nowrap}.ck.ck-code-block-dropdown .ck-dropdown__panel{max-height:250px;overflow-x:hidden;overflow-y:auto}",""]);const a=s},9455:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck.ck-dialog-overlay{bottom:0;left:0;overscroll-behavior:none;position:fixed;right:0;top:0;user-select:none}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{animation:none;background:none;pointer-events:none}.ck.ck-dialog{overscroll-behavior:none;position:absolute;width:fit-content}.ck.ck-dialog .ck.ck-form__header{flex-shrink:0}.ck.ck-dialog .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}:root{--ck-dialog-overlay-background-color:rgba(0,0,0,.5);--ck-dialog-drop-shadow:0px 0px 6px 2px rgba(0,0,0,.15);--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh;--ck-color-dialog-background:var(--ck-color-base-background);--ck-color-dialog-form-header-border:var(--ck-color-base-border)}.ck.ck-dialog-overlay{animation:ck-dialog-fade-in .3s;background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog)}.ck.ck-dialog{border-radius:0}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);border:1px solid var(--ck-color-base-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width)}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border)}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}",""]);const a=s},9538:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Virgolettato","help-center-wysiwyg.bold":"Grassetto","help-center-wysiwyg.bulleted-list":"Elenco puntato","help-center-wysiwyg.cancel":"Annulla","help-center-wysiwyg.centered-image":"Immagine centrata","help-center-wysiwyg.change-image-text-alternative":"Modifica testo alternativo immagine","help-center-wysiwyg.choose-heading":"Scegli intestazione","help-center-wysiwyg.code":"Inserisci codice","help-center-wysiwyg.edit-link":"Modifica link","help-center-wysiwyg.editor-toolbar":"Barra degli strumenti Redattore","help-center-wysiwyg.enter-image-caption":"Inserisci didascalia immagine","help-center-wysiwyg.heading":"Intestazione","help-center-wysiwyg.heading-1":"Intestazione 1","help-center-wysiwyg.heading-2":"Intestazione 2","help-center-wysiwyg.heading-3":"Intestazione 3","help-center-wysiwyg.image_upload_generic_error":"Puoi caricare solo immagini (jpeg, gif o png). I caricamenti delle immagini sono limitati a {{max_size}} MB.","help-center-wysiwyg.in-line":"In linea","help-center-wysiwyg.insert-code-block":"Blocco di codice","help-center-wysiwyg.insert-image":"Inserisci immagine","help-center-wysiwyg.italic":"Corsivo","help-center-wysiwyg.left-aligned-image":"Immagine allineata a sinistra","help-center-wysiwyg.link":"Inserisci/modifica link","help-center-wysiwyg.link-url":"URL link","help-center-wysiwyg.mentionable_user_limit_exceeded":"Hai raggiunto il limite di utenti menzionabili","help-center-wysiwyg.numbered-list":"Elenco numerato","help-center-wysiwyg.paragraph":"Paragrafo","help-center-wysiwyg.plain-text":"Solo testo","help-center-wysiwyg.redo":"Ripeti","help-center-wysiwyg.right-aligned-image":"Immagine allineata a destra","help-center-wysiwyg.save":"Salva","help-center-wysiwyg.show-more-items":"Mostra altri elementi","help-center-wysiwyg.side-image":"Immagine laterale","help-center-wysiwyg.text-alternative":"Testo alternativo","help-center-wysiwyg.toggle-caption-off":"Disattiva didascalia","help-center-wysiwyg.toggle-caption-on":"Attiva didascalia","help-center-wysiwyg.undo":"Annulla","help-center-wysiwyg.unlink":"Annulla link","help-center-wysiwyg.upload-failed":"Caricamento non riuscito"}}')},9653:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"引用","help-center-wysiwyg.bold":"加粗","help-center-wysiwyg.bulleted-list":"项目符号列表","help-center-wysiwyg.cancel":"取消","help-center-wysiwyg.centered-image":"图像居中","help-center-wysiwyg.change-image-text-alternative":"更改图像文本替代","help-center-wysiwyg.choose-heading":"选择标题","help-center-wysiwyg.code":"插入代码","help-center-wysiwyg.edit-link":"编辑链接","help-center-wysiwyg.editor-toolbar":"编辑器工具栏","help-center-wysiwyg.enter-image-caption":"输入图像标题","help-center-wysiwyg.heading":"标题","help-center-wysiwyg.heading-1":"标题 1","help-center-wysiwyg.heading-2":"标题 2","help-center-wysiwyg.heading-3":"标题 3","help-center-wysiwyg.image_upload_generic_error":"您只能上传图像(jpeg、gif 或 png)。上传的图像限于 {{max_size}} MB 以内。","help-center-wysiwyg.in-line":"嵌入","help-center-wysiwyg.insert-code-block":"代码块","help-center-wysiwyg.insert-image":"插入图像","help-center-wysiwyg.italic":"斜体","help-center-wysiwyg.left-aligned-image":"图像左对齐","help-center-wysiwyg.link":"插入/编辑链接","help-center-wysiwyg.link-url":"链接 URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"您已达到可提及用户的上限","help-center-wysiwyg.numbered-list":"编号列表","help-center-wysiwyg.paragraph":"段落","help-center-wysiwyg.plain-text":"纯文本","help-center-wysiwyg.redo":"重做","help-center-wysiwyg.right-aligned-image":"图像右对齐","help-center-wysiwyg.save":"保存","help-center-wysiwyg.show-more-items":"显示更多项目","help-center-wysiwyg.side-image":"侧视图","help-center-wysiwyg.text-alternative":"文本替代","help-center-wysiwyg.toggle-caption-off":"关闭标题","help-center-wysiwyg.toggle-caption-on":"打开标题","help-center-wysiwyg.undo":"撤消","help-center-wysiwyg.unlink":"取消链接","help-center-wysiwyg.upload-failed":"上传失败"}}')},9675:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,".ck-textarea{overflow-x:hidden}",""]);const a=s},9829:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,":root{--ck-color-mention-background:rgba(153,0,48,.1);--ck-color-mention-text:#990030}.ck-content .mention{background:var(--ck-color-mention-background);color:var(--ck-color-mention-text)}",""]);const a=s},9864:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.push([e.id,":root{--ck-menu-bar-menu-max-width:75vw;--ck-menu-bar-nested-menu-horizontal-offset:5px}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{max-width:var(--ck-menu-bar-menu-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{bottom:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{bottom:auto;top:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{left:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{right:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{left:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{right:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{bottom:0}:root{--ck-menu-bar-menu-panel-max-width:75vw}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{border-radius:0}.ck-rounded-corners .ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__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;height:fit-content;max-width:var(--ck-menu-bar-menu-panel-max-width)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{border-top-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{border-top-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne{border-bottom-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{border-bottom-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel:focus{outline:none}",""]);const a=s},9866:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"引用","help-center-wysiwyg.bold":"太字","help-center-wysiwyg.bulleted-list":"記号付きリスト","help-center-wysiwyg.cancel":"キャンセル","help-center-wysiwyg.centered-image":"画像を中央寄せ","help-center-wysiwyg.change-image-text-alternative":"画像の代替テキストを変更します","help-center-wysiwyg.choose-heading":"見出しを選択","help-center-wysiwyg.code":"コードを挿入","help-center-wysiwyg.edit-link":"リンクを編集","help-center-wysiwyg.editor-toolbar":"エディターのツールバー","help-center-wysiwyg.enter-image-caption":"画像のキャプションを入力します","help-center-wysiwyg.heading":"見出し","help-center-wysiwyg.heading-1":"見出し1","help-center-wysiwyg.heading-2":"見出し2","help-center-wysiwyg.heading-3":"見出し3","help-center-wysiwyg.image_upload_generic_error":"画像(jpeg、gifまたはpng)のみアップロードできます。画像のアップロードは{{max_size}}MBに制限されています。","help-center-wysiwyg.in-line":"左揃え","help-center-wysiwyg.insert-code-block":"コードブロック","help-center-wysiwyg.insert-image":"画像の挿入","help-center-wysiwyg.italic":"斜体","help-center-wysiwyg.left-aligned-image":"画像を左寄せ","help-center-wysiwyg.link":"リンクの挿入/編集","help-center-wysiwyg.link-url":"リンクURL","help-center-wysiwyg.mentionable_user_limit_exceeded":"メンションできるユーザーの数が上限に達しました","help-center-wysiwyg.numbered-list":"番号付きリスト","help-center-wysiwyg.paragraph":"パラグラフ","help-center-wysiwyg.plain-text":"プレーンテキスト","help-center-wysiwyg.redo":"やり直す","help-center-wysiwyg.right-aligned-image":"画像を右寄せ","help-center-wysiwyg.save":"保存","help-center-wysiwyg.show-more-items":"他の項目を表示","help-center-wysiwyg.side-image":"右揃え","help-center-wysiwyg.text-alternative":"代替テキスト","help-center-wysiwyg.toggle-caption-off":"キャプションをオフに切り替える","help-center-wysiwyg.toggle-caption-on":"キャプションをオンに切り替える","help-center-wysiwyg.undo":"元に戻す","help-center-wysiwyg.unlink":"リンクを解除","help-center-wysiwyg.upload-failed":"アップロードできませんでした"}}')},9870:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Devis","help-center-wysiwyg.bold":"Gras","help-center-wysiwyg.bulleted-list":"Liste à puces","help-center-wysiwyg.cancel":"Annuler","help-center-wysiwyg.centered-image":"Image centrée","help-center-wysiwyg.change-image-text-alternative":"Modifier le texte alternatif de l\'image","help-center-wysiwyg.choose-heading":"Choisir un titre","help-center-wysiwyg.code":"Insérer du code","help-center-wysiwyg.edit-link":"Modifier le lien","help-center-wysiwyg.editor-toolbar":"Barre d\'outils de l\'éditeur","help-center-wysiwyg.enter-image-caption":"Saisissez une légende pour l\'image","help-center-wysiwyg.heading":"Titre","help-center-wysiwyg.heading-1":"Titre 1","help-center-wysiwyg.heading-2":"Titre 2","help-center-wysiwyg.heading-3":"Titre 3","help-center-wysiwyg.image_upload_generic_error":"Vous pouvez uniquement télécharger des images (jpeg, gif ou png). Les images à télécharger ne peuvent pas dépasser {{max_size}} Mo.","help-center-wysiwyg.in-line":"En ligne","help-center-wysiwyg.insert-code-block":"Bloc de code","help-center-wysiwyg.insert-image":"Insérer une image","help-center-wysiwyg.italic":"Italique","help-center-wysiwyg.left-aligned-image":"Image alignée à gauche","help-center-wysiwyg.link":"Insérer un lien/modifier le lien","help-center-wysiwyg.link-url":"URL du lien","help-center-wysiwyg.mentionable_user_limit_exceeded":"Vous avez atteint la limite d’utilisateurs pouvant être mentionnés","help-center-wysiwyg.numbered-list":"Liste numérotée","help-center-wysiwyg.paragraph":"Paragraphe","help-center-wysiwyg.plain-text":"Texte brut","help-center-wysiwyg.redo":"Rétablir","help-center-wysiwyg.right-aligned-image":"Image alignée à droite","help-center-wysiwyg.save":"Enregistrer","help-center-wysiwyg.show-more-items":"Afficher plus d\'éléments","help-center-wysiwyg.side-image":"Image latérale","help-center-wysiwyg.text-alternative":"Texte alternatif","help-center-wysiwyg.toggle-caption-off":"Désactiver les légendes","help-center-wysiwyg.toggle-caption-on":"Activer les légendes","help-center-wysiwyg.undo":"Annuler","help-center-wysiwyg.unlink":"Délier","help-center-wysiwyg.upload-failed":"Échec du chargement"}}')},9886:(e,t,i)=>{var n={"./af.json":4952,"./ar-x-pseudo.json":686,"./ar.json":4132,"./az.json":2780,"./be.json":8318,"./bg.json":2364,"./bn.json":7159,"./bs.json":3264,"./ca.json":4499,"./cs.json":6589,"./cy.json":2315,"./da.json":8396,"./de-x-informal.json":7568,"./de.json":4944,"./el.json":3950,"./en-001.json":2794,"./en-150.json":8643,"./en-au.json":6253,"./en-ca.json":779,"./en-gb.json":2510,"./en-my.json":3005,"./en-ph.json":987,"./en-se.json":5255,"./en-us.json":9107,"./en-x-dev.json":1947,"./en-x-keys.json":2904,"./en-x-obsolete.json":4419,"./en-x-pseudo.json":5302,"./en-x-test.json":7704,"./es-419.json":4672,"./es-es.json":9966,"./es.json":3099,"./et.json":4310,"./eu.json":4241,"./fa-af.json":4938,"./fa.json":8646,"./fi.json":3646,"./fil.json":9014,"./fo.json":1840,"./fr-ca.json":9870,"./fr.json":4055,"./ga.json":7415,"./he.json":4652,"./hi.json":6840,"./hr.json":4602,"./hu.json":4668,"./hy.json":5336,"./id.json":2690,"./is.json":1903,"./it-ch.json":2718,"./it.json":9538,"./ja.json":9866,"./ka.json":795,"./kk.json":8077,"./kl-dk.json":8782,"./ko.json":4841,"./ku.json":9895,"./lt.json":4987,"./lv.json":8389,"./mk.json":9323,"./mn.json":2004,"./ms.json":3987,"./mt.json":174,"./my.json":2181,"./nl-be.json":3929,"./nl.json":277,"./no.json":2888,"./pl.json":1119,"./pt-br.json":7534,"./pt.json":6679,"./ro.json":8788,"./ru.json":6958,"./sk.json":7061,"./sl.json":356,"./sq.json":8371,"./sr-me.json":3747,"./sr.json":4066,"./sv.json":1326,"./th.json":1431,"./tr.json":5241,"./uk.json":723,"./ur.json":7144,"./uz.json":3584,"./vi.json":9214,"./zh-cn.json":9653,"./zh-tw.json":8473};function r(e){return Promise.resolve().then((()=>{if(!i.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var r=n[e];return i.t(r,19)}))}r.keys=()=>Object.keys(n),r.id=9886,e.exports=r},9895:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Quote","help-center-wysiwyg.bold":"Bold","help-center-wysiwyg.bulleted-list":"Bulleted list","help-center-wysiwyg.cancel":"Cancel","help-center-wysiwyg.centered-image":"Centered image","help-center-wysiwyg.change-image-text-alternative":"Change image text alternative","help-center-wysiwyg.choose-heading":"Choose heading","help-center-wysiwyg.code":"Insert code","help-center-wysiwyg.edit-link":"Edit link","help-center-wysiwyg.editor-toolbar":"Editor toolbar","help-center-wysiwyg.enter-image-caption":"Enter image caption","help-center-wysiwyg.heading":"Heading","help-center-wysiwyg.heading-1":"Heading 1","help-center-wysiwyg.heading-2":"Heading 2","help-center-wysiwyg.heading-3":"Heading 3","help-center-wysiwyg.image_upload_generic_error":"You can only upload images (jpeg, gif or png). Image uploads are limited to {{max_size}} MB.","help-center-wysiwyg.in-line":"In line","help-center-wysiwyg.insert-code-block":"Code block","help-center-wysiwyg.insert-image":"Insert image","help-center-wysiwyg.italic":"Italic","help-center-wysiwyg.left-aligned-image":"Left aligned image","help-center-wysiwyg.link":"Insert/Edit link","help-center-wysiwyg.link-url":"Link URL","help-center-wysiwyg.mentionable_user_limit_exceeded":"You have reached the limit of mentionable users","help-center-wysiwyg.numbered-list":"Numbered list","help-center-wysiwyg.paragraph":"Paragraph","help-center-wysiwyg.plain-text":"Plain text","help-center-wysiwyg.redo":"Redo","help-center-wysiwyg.right-aligned-image":"Right aligned image","help-center-wysiwyg.save":"Save","help-center-wysiwyg.show-more-items":"Show more items","help-center-wysiwyg.side-image":"Side image","help-center-wysiwyg.text-alternative":"Text alternative","help-center-wysiwyg.toggle-caption-off":"Toggle caption off","help-center-wysiwyg.toggle-caption-on":"Toggle caption on","help-center-wysiwyg.undo":"Undo","help-center-wysiwyg.unlink":"Unlink","help-center-wysiwyg.upload-failed":"Upload failed"}}')},9966:e=>{e.exports=JSON.parse('{"translations":{"help-center-wysiwyg.block-quote":"Cotización","help-center-wysiwyg.bold":"Negrita","help-center-wysiwyg.bulleted-list":"Lista con viñetas bala","help-center-wysiwyg.cancel":"Cancelar","help-center-wysiwyg.centered-image":"Imagen centrada","help-center-wysiwyg.change-image-text-alternative":"Cambiar la alternativa de texto de la imagen","help-center-wysiwyg.choose-heading":"Elegir encabezado","help-center-wysiwyg.code":"Insertar código","help-center-wysiwyg.edit-link":"Editar vínculo","help-center-wysiwyg.editor-toolbar":"Barra de herramientas del editor","help-center-wysiwyg.enter-image-caption":"Ingresar pie de foto","help-center-wysiwyg.heading":"Encabezado","help-center-wysiwyg.heading-1":"Encabezado 1","help-center-wysiwyg.heading-2":"Encabezado 2","help-center-wysiwyg.heading-3":"Encabezado 3","help-center-wysiwyg.image_upload_generic_error":"Solo se pueden cargar imágenes (jpeg, gif o png). La carga de imágenes está limitada a {{max_size}} MB.","help-center-wysiwyg.in-line":"En línea","help-center-wysiwyg.insert-code-block":"Bloque de código","help-center-wysiwyg.insert-image":"Insertar imagen","help-center-wysiwyg.italic":"Cursiva","help-center-wysiwyg.left-aligned-image":"Imagen alineada a la izquierda","help-center-wysiwyg.link":"Insertar/editar vínculo","help-center-wysiwyg.link-url":"URL del vínculo","help-center-wysiwyg.mentionable_user_limit_exceeded":"Se ha alcanzado el límite de usuarios que se pueden mencionar","help-center-wysiwyg.numbered-list":"Lista numerada","help-center-wysiwyg.paragraph":"Párrafo","help-center-wysiwyg.plain-text":"Texto sin formato","help-center-wysiwyg.redo":"Rehacer","help-center-wysiwyg.right-aligned-image":"Imagen alineada a la derecha","help-center-wysiwyg.save":"Guardar","help-center-wysiwyg.show-more-items":"Mostrar más elementos","help-center-wysiwyg.side-image":"Imagen lateral","help-center-wysiwyg.text-alternative":"Alternativa de texto","help-center-wysiwyg.toggle-caption-off":"Desactivar leyenda","help-center-wysiwyg.toggle-caption-on":"Activar leyenda","help-center-wysiwyg.undo":"Deshacer","help-center-wysiwyg.unlink":"Desvincular","help-center-wysiwyg.upload-failed":"Falló la carga."}}')},9977:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(1601),r=i.n(n),o=i(6314),s=i.n(o)()(r());s.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 a=s}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={id:e,exports:{}};return o[e](i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,i){if(1&i&&(e=this(e)),8&i)return e;if("object"==typeof e&&e){if(4&i&&e.__esModule)return e;if(16&i&&"function"==typeof e.then)return e}var n=Object.create(null);a.r(n);var o={};t=t||[null,r({}),r([]),r(r)];for(var s=2&i&&e;"object"==typeof s&&!~t.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>e[t]));return o.default=()=>e,a.d(n,o),n},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.e=()=>Promise.resolve(),a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.b=void 0;var l={};return(()=>{function t({emitter:e,activator:t,callback:i,contextElements:n}){e.listenTo(document,"mousedown",((e,r)=>{if(!t())return;const o="function"==typeof r.composedPath?r.composedPath():[],s="function"==typeof n?n():n;for(const e of s)if(e.contains(r.target)||o.includes(e))return;i()}))}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 o({view:e}){e.listenTo(e.element,"submit",((t,i)=>{i.preventDefault(),e.fire("submit")}),{useCapture:!0})}a.r(l),a.d(l,{createEditor:()=>Tx,default:()=>Ix,getEditorConfig:()=>Cx});const s=function(){try{return navigator.userAgent.toLowerCase()}catch(e){return""}}(),c={isMac:h(s),isWindows:function(e){return e.indexOf("windows")>-1}(s),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)||h(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}()}},d=c;function h(e){return e.indexOf("macintosh")>-1}function g(e,t,i,n){i=i||function(e,t){return e===t};const r=Array.isArray(e)?e:Array.prototype.slice.call(e),o=Array.isArray(t)?t:Array.prototype.slice.call(t),s=function(e,t,i){const n=u(e,t,i);if(-1===n)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const r=u(p(e,n),p(t,n),i);return{firstIndex:n,lastIndexOld:e.length-r,lastIndexNew:t.length-r}}(r,o,i),a=n?function(e,t){const{firstIndex:i,lastIndexOld:n,lastIndexNew:r}=e;if(-1===i)return Array(t).fill("equal");let o=[];return i>0&&(o=o.concat(Array(i).fill("equal"))),r-i>0&&(o=o.concat(Array(r-i).fill("insert"))),n-i>0&&(o=o.concat(Array(n-i).fill("delete"))),r<t&&(o=o.concat(Array(t-r).fill("equal"))),o}(s,o.length):function(e,t){const i=[],{firstIndex:n,lastIndexOld:r,lastIndexNew:o}=t;return o-n>0&&i.push({index:n,type:"insert",values:e.slice(n,o)}),r-n>0&&i.push({index:n+(o-n),type:"delete",howMany:r-n}),i}(o,s);return a}function u(e,t,i){for(let n=0;n<Math.max(e.length,t.length);n++)if(void 0===e[n]||void 0===t[n]||!i(e[n],t[n]))return n;return-1}function p(e,t){return e.slice(t).reverse()}function m(e,t,i){i=i||function(e,t){return e===t};const n=e.length,r=t.length;if(n>200||r>200||n+r>300)return m.fastDiff(e,t,i,!0);let o,s;if(r<n){const i=e;e=t,t=i,o="delete",s="insert"}else o="insert",s="delete";const a=e.length,l=t.length,c=l-a,d={},h={};function g(n){const r=(void 0!==h[n-1]?h[n-1]:-1)+1,c=void 0!==h[n+1]?h[n+1]:-1,g=r>c?-1:1;d[n+g]&&(d[n]=d[n+g].slice(0)),d[n]||(d[n]=[]),d[n].push(r>c?o:s);let u=Math.max(r,c),p=u-n;for(;p<a&&u<l&&i(e[p],t[u]);)p++,u++,d[n].push("equal");return u}let u,p=0;do{for(u=-p;u<c;u++)h[u]=g(u);for(u=c+p;u>c;u--)h[u]=g(u);h[c]=g(c),p++}while(h[c]!==l);return d[c].slice(1)}m.fastDiff=g;class w{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}}}const f=new Array(256).fill("").map(((e,t)=>("0"+t.toString(16)).slice(-2)));function y(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+f[255&e]+f[e>>8&255]+f[e>>16&255]+f[e>>24&255]+f[255&t]+f[t>>8&255]+f[t>>16&255]+f[t>>24&255]+f[255&i]+f[i>>8&255]+f[i>>16&255]+f[i>>24&255]+f[255&n]+f[n>>8&255]+f[n>>16&255]+f[n>>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 k(e,t){const i=b.get(t.priority);for(let n=0;n<e.length;n++)if(b.get(e[n].priority)<i)return void e.splice(n,0,t);e.push(t)}class _ extends Error{constructor(e,t,i){super(function(e,t){const i=new WeakSet,n=t?` ${JSON.stringify(t,((e,t)=>{if("object"==typeof t&&null!==t){if(i.has(t))return`[object ${t.constructor.name}]`;i.add(t)}return t}))}`:"";return e+n+x(e)}(e,i)),this.name="CKEditorError",this.context=t,this.data=i}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const i=new _(e.message,t);throw i.stack=e.stack,i}}function v(e,t){console.warn(...function(e,t){const i=x(e);return t?[e,t,i]:[e,i]}(e,t))}function x(e){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${e}`}const A=new Date(2024,3,10);if(globalThis.CKEDITOR_VERSION)throw new _("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="41.3.0";const E=Symbol("listeningTo"),C=Symbol("emitterId"),T=Symbol("delegations"),I=S(Object);function S(e){return e?class extends e{on(e,t,i){this.listenTo(this,e,t,i)}once(e,t,i){let n=!1;this.listenTo(this,e,((e,...i)=>{n||(n=!0,e.off(),t.call(this,e,...i))}),i)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,i,n={}){let r,o;this[E]||(this[E]={});const s=this[E];R(e)||P(e);const a=R(e);(r=s[a])||(r=s[a]={emitter:e,callbacks:{}}),(o=r.callbacks[t])||(o=r.callbacks[t]=[]),o.push(i),function(e,t,i,n,r){t._addEventListener?t._addEventListener(i,n,r):e._addEventListener.call(t,i,n,r)}(this,e,t,i,n)}stopListening(e,t,i){const n=this[E];let r=e&&R(e);const o=n&&r?n[r]:void 0,s=o&&t?o.callbacks[t]:void 0;if(!(!n||e&&!o||t&&!s))if(i)z(this,e,t,i),-1!==s.indexOf(i)&&(1===s.length?delete o.callbacks[t]:z(this,e,t,i));else if(s){for(;i=s.pop();)z(this,e,t,i);delete o.callbacks[t]}else if(o){for(t in o.callbacks)this.stopListening(e,t);delete n[r]}else{for(r in n)this.stopListening(n[r].emitter);delete this[E]}}fire(e,...t){try{const i=e instanceof w?e:new w(this,e),n=i.name;let r=B(this,n);if(i.path.push(this),r){const e=[i,...t];r=Array.from(r);for(let t=0;t<r.length&&(r[t].callback.apply(this,e),i.off.called&&(delete i.off.called,this._removeEventListener(n,r[t].callback)),!i.stop.called);t++);}const o=this[T];if(o){const e=o.get(n),r=o.get("*");e&&V(e,i,t),r&&V(r,i,t)}return i.return}catch(e){_.rethrowUnexpectedError(e,this)}}delegate(...e){return{to:(t,i)=>{this[T]||(this[T]=new Map),e.forEach((e=>{const n=this[T].get(e);n?n.set(t,i):this[T].set(e,new Map([[t,i]]))}))}}}stopDelegating(e,t){if(this[T])if(e)if(t){const i=this[T].get(e);i&&i.delete(t)}else this[T].delete(e);else this[T].clear()}_addEventListener(e,t,i){!function(e,t){const i=O(e);if(i[t])return;let n=t,r=null;const o=[];for(;""!==n&&!i[n];)i[n]={callbacks:[],childEvents:[]},o.push(i[n]),r&&i[n].childEvents.push(r),r=n,n=n.substr(0,n.lastIndexOf(":"));if(""!==n){for(const e of o)e.callbacks=i[n].callbacks.slice();i[n].childEvents.push(r)}}(this,e);const n=M(this,e),r={callback:t,priority:b.get(i.priority)};for(const e of n)k(e,r)}_removeEventListener(e,t){const i=M(this,e);for(const e of i)for(let i=0;i<e.length;i++)e[i].callback==t&&(e.splice(i,1),i--)}}:I}function P(e,t){e[C]||(e[C]=t||y())}function R(e){return e[C]}function O(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function M(e,t){const i=O(e)[t];if(!i)return[];let n=[i.callbacks];for(let t=0;t<i.childEvents.length;t++){const r=M(e,i.childEvents[t]);n=n.concat(r)}return n}function B(e,t){let i;return e._events&&(i=e._events[t])&&i.callbacks.length?i.callbacks:t.indexOf(":")>-1?B(e,t.substr(0,t.lastIndexOf(":"))):null}function V(e,t,i){for(let[n,r]of e){r?"function"==typeof r&&(r=r(t.name)):r=t.name;const e=new w(t.source,r);e.path=[...t.path],n.fire(e,...i)}}function z(e,t,i,n){t._removeEventListener?t._removeEventListener(i,n):e._removeEventListener.call(t,i,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{S[e]=I.prototype[e]}));const N=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=Symbol("observableProperties"),D=Symbol("boundObservables"),F=Symbol("boundProperties"),j=Symbol("decoratedMethods"),H=Symbol("decoratedOriginal"),U=q(S());function q(e){return e?class extends e{set(e,t){if(N(e))return void Object.keys(e).forEach((t=>{this.set(t,e[t])}),this);W(this);const i=this[L];if(e in this&&!i.has(e))throw new _("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>i.get(e),set(t){const n=i.get(e);let r=this.fire(`set:${e}`,e,t,n);void 0===r&&(r=t),n===r&&i.has(e)||(i.set(e,r),this.fire(`change:${e}`,e,r,n))}}),this[e]=t}bind(...e){if(!e.length||!J(e))throw new _("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new _("observable-bind-duplicate-properties",this);W(this);const t=this[F];e.forEach((e=>{if(t.has(e))throw new _("observable-bind-rebind",this)}));const i=new Map;return e.forEach((e=>{const n={property:e,to:[]};t.set(e,n),i.set(e,n)})),{to:$,toMany:K,_observable:this,_bindProperties:e,_to:[],_bindings:i}}unbind(...e){if(!this[L])return;const t=this[F],i=this[D];if(e.length){if(!J(e))throw new _("observable-unbind-wrong-properties",this);e.forEach((e=>{const n=t.get(e);n&&(n.to.forEach((([e,t])=>{const r=i.get(e),o=r[t];o.delete(n),o.size||delete r[t],Object.keys(r).length||(i.delete(e),this.stopListening(e,"change"))})),t.delete(e))}))}else i.forEach(((e,t)=>{this.stopListening(t,"change")})),i.clear(),t.clear()}decorate(e){W(this);const t=this[e];if(!t)throw new _("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,((e,i)=>{e.return=t.apply(this,i)})),this[e]=function(...t){return this.fire(e,t)},this[e][H]=t,this[j]||(this[j]=[]),this[j].push(e)}stopListening(e,t,i){if(!e&&this[j]){for(const e of this[j])this[e]=this[e][H];delete this[j]}super.stopListening(e,t,i)}}:U}function W(e){e[L]||(Object.defineProperty(e,L,{value:new Map}),Object.defineProperty(e,D,{value:new Map}),Object.defineProperty(e,F,{value:new Map}))}function $(...e){const t=function(...e){if(!e.length)throw new _("observable-bind-to-parse-error",null);const t={to:[]};let i;return"function"==typeof e[e.length-1]&&(t.callback=e.pop()),e.forEach((e=>{if("string"==typeof e)i.properties.push(e);else{if("object"!=typeof e)throw new _("observable-bind-to-parse-error",null);i={observable:e,properties:[]},t.to.push(i)}})),t}(...e),i=Array.from(this._bindings.keys()),n=i.length;if(!t.callback&&t.to.length>1)throw new _("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new _("observable-bind-to-extra-callback",this);var r;t.to.forEach((e=>{if(e.properties.length&&e.properties.length!==n)throw new _("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)})),this._to=t.to,t.callback&&(this._bindings.get(i[0]).callback=t.callback),r=this._observable,this._to.forEach((e=>{const t=r[D];let i;t.get(e.observable)||r.listenTo(e.observable,"change",((n,o)=>{i=t.get(e.observable)[o],i&&i.forEach((e=>{Z(r,e.property)}))}))})),function(e){let t;e._bindings.forEach(((i,n)=>{e._to.forEach((r=>{t=r.properties[i.callback?0:e._bindProperties.indexOf(n)],i.to.push([r.observable,t]),function(e,t,i,n){const r=e[D],o=r.get(i),s=o||{};s[n]||(s[n]=new Set),s[n].add(t),o||r.set(i,s)}(e._observable,i,r.observable,t)}))}))}(this),this._bindProperties.forEach((e=>{Z(this._observable,e)}))}function K(e,t,i){if(this._bindings.size>1)throw new _("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){const i=e.map((e=>[e,t]));return Array.prototype.concat.apply([],i)}(e,t),i)}function J(e){return e.every((e=>"string"==typeof e))}function Z(e,t){const i=e[F].get(t);let n;i.callback?n=i.callback.apply(e,i.to.map((e=>e[0][e[1]]))):(n=i.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{q[e]=U.prototype[e]}));class G{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 Y(e){let t=0;for(const i of e)t++;return t}function Q(e,t){const i=Math.min(e.length,t.length);for(let n=0;n<i;n++)if(e[n]!=t[n])return n;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}function X(e){return!(!e||!e[Symbol.iterator])}const ee="object"==typeof e&&e&&e.Object===Object&&e;var te="object"==typeof self&&self&&self.Object===Object&&self;const ie=ee||te||Function("return this")(),ne=ie.Symbol;var re=Object.prototype,oe=re.hasOwnProperty,se=re.toString,ae=ne?ne.toStringTag:void 0,le=Object.prototype.toString,ce=ne?ne.toStringTag:void 0;const de=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ce&&ce in Object(e)?function(e){var t=oe.call(e,ae),i=e[ae];try{e[ae]=void 0;var n=!0}catch(e){}var r=se.call(e);return n&&(t?e[ae]=i:delete e[ae]),r}(e):function(e){return le.call(e)}(e)},he=Array.isArray,ge=function(e){return null!=e&&"object"==typeof e},ue=function(e){return"string"==typeof e||!he(e)&&ge(e)&&"[object String]"==de(e)};function pe(e,t,i={},n=[]){const r=i&&i.xmlns,o=r?e.createElementNS(r,t):e.createElement(t);for(const e in i)o.setAttribute(e,i[e]);!ue(n)&&X(n)||(n=[n]);for(let t of n)ue(t)&&(t=e.createTextNode(t)),o.appendChild(t);return o}const me=function(e,t){return function(i){return e(t(i))}},we=me(Object.getPrototypeOf,Object);var fe=Function.prototype,ye=Object.prototype,be=fe.toString,ke=ye.hasOwnProperty,_e=be.call(Object);const ve=function(e){if(!ge(e)||"[object Object]"!=de(e))return!1;var t=we(e);if(null===t)return!0;var i=ke.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&be.call(i)==_e},xe=function(e,t){return e===t||e!=e&&t!=t},Ae=function(e,t){for(var i=e.length;i--;)if(xe(e[i][0],t))return i;return-1};var Ee=Array.prototype.splice;function Ce(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=function(){this.__data__=[],this.size=0},Ce.prototype.delete=function(e){var t=this.__data__,i=Ae(t,e);return!(i<0||(i==t.length-1?t.pop():Ee.call(t,i,1),--this.size,0))},Ce.prototype.get=function(e){var t=this.__data__,i=Ae(t,e);return i<0?void 0:t[i][1]},Ce.prototype.has=function(e){return Ae(this.__data__,e)>-1},Ce.prototype.set=function(e,t){var i=this.__data__,n=Ae(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};const Te=Ce,Ie=function(e){if(!N(e))return!1;var t=de(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Se=ie["__core-js_shared__"];var Pe=function(){var e=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Re=Function.prototype.toString;const Oe=function(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Me=/^\[object .+?Constructor\]$/,Be=Function.prototype,Ve=Object.prototype,ze=Be.toString,Ne=Ve.hasOwnProperty,Le=RegExp("^"+ze.call(Ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const De=function(e){return!(!N(e)||function(e){return!!Pe&&Pe in e}(e))&&(Ie(e)?Le:Me).test(Oe(e))},Fe=function(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return De(i)?i:void 0},je=Fe(ie,"Map"),He=Fe(Object,"create");var Ue=Object.prototype.hasOwnProperty,qe=Object.prototype.hasOwnProperty;function We(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}We.prototype.clear=function(){this.__data__=He?He(null):{},this.size=0},We.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},We.prototype.get=function(e){var t=this.__data__;if(He){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return Ue.call(t,e)?t[e]:void 0},We.prototype.has=function(e){var t=this.__data__;return He?void 0!==t[e]:qe.call(t,e)},We.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=He&&void 0===t?"__lodash_hash_undefined__":t,this};const $e=We,Ke=function(e,t){var i=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map};function Je(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}Je.prototype.clear=function(){this.size=0,this.__data__={hash:new $e,map:new(je||Te),string:new $e}},Je.prototype.delete=function(e){var t=Ke(this,e).delete(e);return this.size-=t?1:0,t},Je.prototype.get=function(e){return Ke(this,e).get(e)},Je.prototype.has=function(e){return Ke(this,e).has(e)},Je.prototype.set=function(e,t){var i=Ke(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};const Ze=Je;function Ge(e){var t=this.__data__=new Te(e);this.size=t.size}Ge.prototype.clear=function(){this.__data__=new Te,this.size=0},Ge.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Ge.prototype.get=function(e){return this.__data__.get(e)},Ge.prototype.has=function(e){return this.__data__.has(e)},Ge.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Te){var n=i.__data__;if(!je||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Ze(n)}return i.set(e,t),this.size=i.size,this};const Ye=Ge,Qe=function(){try{var e=Fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Xe=function(e,t,i){"__proto__"==t&&Qe?Qe(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i};var et=Object.prototype.hasOwnProperty;const tt=function(e,t,i){var n=e[t];et.call(e,t)&&xe(n,i)&&(void 0!==i||t in e)||Xe(e,t,i)},it=function(e,t,i,n){var r=!i;i||(i={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=n?n(i[a],e[a],a,i,e):void 0;void 0===l&&(l=e[a]),r?Xe(i,a,l):tt(i,a,l)}return i},nt=function(e){return ge(e)&&"[object Arguments]"==de(e)};var rt=Object.prototype,ot=rt.hasOwnProperty,st=rt.propertyIsEnumerable;const at=nt(function(){return arguments}())?nt:function(e){return ge(e)&&ot.call(e,"callee")&&!st.call(e,"callee")};var lt=n&&!n.nodeType&&n,ct=lt&&i&&!i.nodeType&&i,dt=ct&&ct.exports===lt?ie.Buffer:void 0;const ht=(dt?dt.isBuffer:void 0)||function(){return!1};var gt=/^(?:0|[1-9]\d*)$/;const ut=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&>.test(e))&&e>-1&&e%1==0&&e<t},pt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var mt={};mt["[object Float32Array]"]=mt["[object Float64Array]"]=mt["[object Int8Array]"]=mt["[object Int16Array]"]=mt["[object Int32Array]"]=mt["[object Uint8Array]"]=mt["[object Uint8ClampedArray]"]=mt["[object Uint16Array]"]=mt["[object Uint32Array]"]=!0,mt["[object Arguments]"]=mt["[object Array]"]=mt["[object ArrayBuffer]"]=mt["[object Boolean]"]=mt["[object DataView]"]=mt["[object Date]"]=mt["[object Error]"]=mt["[object Function]"]=mt["[object Map]"]=mt["[object Number]"]=mt["[object Object]"]=mt["[object RegExp]"]=mt["[object Set]"]=mt["[object String]"]=mt["[object WeakMap]"]=!1;const wt=function(e){return function(t){return e(t)}};var ft=n&&!n.nodeType&&n,yt=ft&&i&&!i.nodeType&&i,bt=yt&&yt.exports===ft&&ee.process;const kt=function(){try{return yt&&yt.require&&yt.require("util").types||bt&&bt.binding&&bt.binding("util")}catch(e){}}();var _t=kt&&kt.isTypedArray;const vt=_t?wt(_t):function(e){return ge(e)&&pt(e.length)&&!!mt[de(e)]};var xt=Object.prototype.hasOwnProperty;const At=function(e,t){var i=he(e),n=!i&&at(e),r=!i&&!n&&ht(e),o=!i&&!n&&!r&&vt(e),s=i||n||r||o,a=s?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],l=a.length;for(var c in e)!t&&!xt.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ut(c,l))||a.push(c);return a};var Et=Object.prototype;const Ct=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Et)},Tt=me(Object.keys,Object);var It=Object.prototype.hasOwnProperty;const St=function(e){return null!=e&&pt(e.length)&&!Ie(e)},Pt=function(e){return St(e)?At(e):function(e){if(!Ct(e))return Tt(e);var t=[];for(var i in Object(e))It.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)};var Rt=Object.prototype.hasOwnProperty;const Ot=function(e){if(!N(e))return function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}(e);var t=Ct(e),i=[];for(var n in e)("constructor"!=n||!t&&Rt.call(e,n))&&i.push(n);return i},Mt=function(e){return St(e)?At(e,!0):Ot(e)};var Bt=n&&!n.nodeType&&n,Vt=Bt&&i&&!i.nodeType&&i,zt=Vt&&Vt.exports===Bt?ie.Buffer:void 0,Nt=zt?zt.allocUnsafe:void 0;const Lt=function(e,t){if(t)return e.slice();var i=e.length,n=Nt?Nt(i):new e.constructor(i);return e.copy(n),n},Dt=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t},Ft=function(){return[]};var jt=Object.prototype.propertyIsEnumerable,Ht=Object.getOwnPropertySymbols;const Ut=Ht?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var s=e[i];t(s,i,e)&&(o[r++]=s)}return o}(Ht(e),(function(t){return jt.call(e,t)})))}:Ft,qt=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e},Wt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)qt(t,Ut(e)),e=we(e);return t}:Ft,$t=function(e,t,i){var n=t(e);return he(e)?n:qt(n,i(e))},Kt=function(e){return $t(e,Pt,Ut)},Jt=function(e){return $t(e,Mt,Wt)},Zt=Fe(ie,"DataView"),Gt=Fe(ie,"Promise"),Yt=Fe(ie,"Set"),Qt=Fe(ie,"WeakMap");var Xt="[object Map]",ei="[object Promise]",ti="[object Set]",ii="[object WeakMap]",ni="[object DataView]",ri=Oe(Zt),oi=Oe(je),si=Oe(Gt),ai=Oe(Yt),li=Oe(Qt),ci=de;(Zt&&ci(new Zt(new ArrayBuffer(1)))!=ni||je&&ci(new je)!=Xt||Gt&&ci(Gt.resolve())!=ei||Yt&&ci(new Yt)!=ti||Qt&&ci(new Qt)!=ii)&&(ci=function(e){var t=de(e),i="[object Object]"==t?e.constructor:void 0,n=i?Oe(i):"";if(n)switch(n){case ri:return ni;case oi:return Xt;case si:return ei;case ai:return ti;case li:return ii}return t});const di=ci;var hi=Object.prototype.hasOwnProperty;const gi=ie.Uint8Array,ui=function(e){var t=new e.constructor(e.byteLength);return new gi(t).set(new gi(e)),t};var pi=/\w*$/,mi=ne?ne.prototype:void 0,wi=mi?mi.valueOf:void 0;const fi=function(e,t){var i=t?ui(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)},yi=function(e,t,i){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return ui(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return function(e,t){var i=t?ui(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);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 fi(e,i);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,pi.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return wi?Object(wi.call(e)):{}}(e)}};var bi=Object.create;const ki=function(){function e(){}return function(t){if(!N(t))return{};if(bi)return bi(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),_i=function(e){return"function"!=typeof e.constructor||Ct(e)?{}:ki(we(e))};var vi=kt&&kt.isMap;const xi=vi?wt(vi):function(e){return ge(e)&&"[object Map]"==di(e)};var Ai=kt&&kt.isSet;const Ei=Ai?wt(Ai):function(e){return ge(e)&&"[object Set]"==di(e)};var Ci="[object Arguments]",Ti="[object Function]",Ii="[object Object]",Si={};Si[Ci]=Si["[object Array]"]=Si["[object ArrayBuffer]"]=Si["[object DataView]"]=Si["[object Boolean]"]=Si["[object Date]"]=Si["[object Float32Array]"]=Si["[object Float64Array]"]=Si["[object Int8Array]"]=Si["[object Int16Array]"]=Si["[object Int32Array]"]=Si["[object Map]"]=Si["[object Number]"]=Si[Ii]=Si["[object RegExp]"]=Si["[object Set]"]=Si["[object String]"]=Si["[object Symbol]"]=Si["[object Uint8Array]"]=Si["[object Uint8ClampedArray]"]=Si["[object Uint16Array]"]=Si["[object Uint32Array]"]=!0,Si["[object Error]"]=Si[Ti]=Si["[object WeakMap]"]=!1;const Pi=function e(t,i,n,r,o,s){var a,l=1&i,c=2&i,d=4&i;if(n&&(a=o?n(t,r,o,s):n(t)),void 0!==a)return a;if(!N(t))return t;var h=he(t);if(h){if(a=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&hi.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(t),!l)return Dt(t,a)}else{var g=di(t),u=g==Ti||"[object GeneratorFunction]"==g;if(ht(t))return Lt(t,l);if(g==Ii||g==Ci||u&&!o){if(a=c||u?{}:_i(t),!l)return c?function(e,t){return it(e,Wt(e),t)}(t,function(e,t){return e&&it(t,Mt(t),e)}(a,t)):function(e,t){return it(e,Ut(e),t)}(t,function(e,t){return e&&it(t,Pt(t),e)}(a,t))}else{if(!Si[g])return o?t:{};a=yi(t,g,l)}}s||(s=new Ye);var p=s.get(t);if(p)return p;s.set(t,a),Ei(t)?t.forEach((function(r){a.add(e(r,i,n,r,t,s))})):xi(t)&&t.forEach((function(r,o){a.set(o,e(r,i,n,o,t,s))}));var m=h?void 0:(d?c?Jt:Kt:c?Mt:Pt)(t);return function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););}(m||t,(function(r,o){m&&(r=t[o=r]),tt(a,o,e(r,i,n,o,t,s))})),a},Ri=function(e,t){return Pi(e,5,t="function"==typeof t?t:void 0)},Oi=function(e){return ge(e)&&1===e.nodeType&&!ve(e)};class Mi{constructor(e,t){this._config={},t&&this.define(Bi(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,i,n=!1){if(ve(t))return void this._setObjectToTarget(e,t,n);const r=t.split(".");t=r.pop();for(const t of r)ve(e[t])||(e[t]={}),e=e[t];if(ve(i))return ve(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,i,n);n&&void 0!==e[t]||(e[t]=i)}_getFromSource(e,t){const i=t.split(".");t=i.pop();for(const t of i){if(!ve(e[t])){e=null;break}e=e[t]}return e?Bi(e[t]):void 0}_setObjectToTarget(e,t,i){Object.keys(t).forEach((n=>{this._setToTarget(e,n,t[n],i)}))}}function Bi(e){return Ri(e,Vi)}function Vi(e){return Oi(e)||"function"==typeof e?e:void 0}function zi(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 Ni(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}const Li=Di(S());function Di(e){return e?class extends e{listenTo(e,t,i,n={}){if(zi(e)||Ni(e)){const r={capture:!!n.useCapture,passive:!!n.usePassive},o=this._getProxyEmitter(e,r)||new Fi(e,r);this.listenTo(o,t,i,n)}else super.listenTo(e,t,i,n)}stopListening(e,t,i){if(zi(e)||Ni(e)){const n=this._getAllProxyEmitters(e);for(const e of n)this.stopListening(e,t,i)}else super.stopListening(e,t,i)}_getProxyEmitter(e,t){return function(e,t){const i=e[E];return i&&i[t]?i[t].emitter:null}(this,ji(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))}}:Li}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{Di[e]=Li.prototype[e]}));class Fi extends(S()){constructor(e,t){super(),P(this,ji(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,i){this.attach(e),S().prototype._addEventListener.call(this,e,t,i)}_removeEventListener(e,t){S().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 ji(e,t){let i=function(e){return e["data-ck-expando"]||(e["data-ck-expando"]=y())}(e);for(const e of Object.keys(t).sort())t[e]&&(i+="-"+e);return i}let Hi;try{Hi={window:window,document:document}}catch(t){Hi={window:{},document:{}}}const Ui=Hi;function qi(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 Wi(e){return"[object Text]"==Object.prototype.toString.call(e)}function $i(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Ki(e){return e&&e.parentNode?e.offsetParent===Ui.document.body?null:e.offsetParent:null}const Ji=["top","right","bottom","left","width","height"];class Zi{constructor(e){const t=$i(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),Qi(e)||t)if(t){const t=Zi.getDomRangeRects(e);Gi(this,Zi.getBoundingRect(t))}else Gi(this,e.getBoundingClientRect());else if(Ni(e)){const{innerWidth:t,innerHeight:i}=e;Gi(this,{top:0,right:t,bottom:i,left:0,width:t,height:i})}else Gi(this,e)}clone(){return new Zi(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 Zi(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(Yi(e))return t;let i,n=e,r=e.parentNode||e.commonAncestorContainer;for(;r&&!Yi(r);){const e="visible"===((o=r)instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).overflow:"visible");n instanceof HTMLElement&&"absolute"===Xi(n)&&(i=n);const s=Xi(r);if(e||i&&("relative"===s&&e||"relative"!==s)){n=r,r=r.parentNode;continue}const a=new Zi(r),l=t.getIntersection(a);if(!l)return null;l.getArea()<t.getArea()&&(t=l),n=r,r=r.parentNode}var o;return t}isEqual(e){for(const t of Ji)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}=Ui.window,i=this.clone().moveBy(e,t);if(Qi(i._source)){const e=Ki(i._source);e&&function(e,t){const i=new Zi(t),n=qi(t);let r=0,o=0;r-=i.left,o-=i.top,r+=t.scrollLeft,o+=t.scrollTop,r-=n.left,o-=n.top,e.moveBy(r,o)}(i,e)}return i}excludeScrollbarsAndBorders(){const e=this._source;let t,i,n;if(Ni(e))t=e.innerWidth-e.document.documentElement.clientWidth,i=e.innerHeight-e.document.documentElement.clientHeight,n=e.getComputedStyle(e.document.documentElement).direction;else{const r=qi(e);t=e.offsetWidth-e.clientWidth-r.left-r.right,i=e.offsetHeight-e.clientHeight-r.top-r.bottom,n=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===n?this.right-=t:this.left+=t,this.height-=i,this.bottom-=i,this}static getDomRangeRects(e){const t=[],i=Array.from(e.getClientRects());if(i.length)for(const e of i)t.push(new Zi(e));else{let i=e.startContainer;Wi(i)&&(i=i.parentNode);const n=new Zi(i.getBoundingClientRect());n.right=n.left,n.width=0,t.push(n)}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 i=0;for(const n of e)i++,t.left=Math.min(t.left,n.left),t.top=Math.min(t.top,n.top),t.right=Math.max(t.right,n.right),t.bottom=Math.max(t.bottom,n.bottom);return 0==i?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new Zi(t))}}function Gi(e,t){for(const i of Ji)e[i]=t[i]}function Yi(e){return!!Qi(e)&&e===e.ownerDocument.body}function Qi(e){return null!==e&&"object"==typeof e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect}function Xi(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).position:"static"}class en{constructor(e,t){en._observerInstance||en._createObserver(),this._element=e,this._callback=t,en._addElementCallback(e,t),en._observerInstance.observe(e)}get element(){return this._element}destroy(){en._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){en._elementCallbacks||(en._elementCallbacks=new Map);let i=en._elementCallbacks.get(e);i||(i=new Set,en._elementCallbacks.set(e,i)),i.add(t)}static _deleteElementCallback(e,t){const i=en._getElementCallbacks(e);i&&(i.delete(t),i.size||(en._elementCallbacks.delete(e),en._observerInstance.unobserve(e))),en._elementCallbacks&&!en._elementCallbacks.size&&(en._observerInstance=null,en._elementCallbacks=null)}static _getElementCallbacks(e){return en._elementCallbacks?en._elementCallbacks.get(e):null}static _createObserver(){en._observerInstance=new Ui.window.ResizeObserver((e=>{for(const t of e){const e=en._getElementCallbacks(t.target);if(e)for(const i of e)i(t)}}))}}en._observerInstance=null,en._elementCallbacks=null;const tn=en;function nn(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function rn(e){return t=>t+e}function on(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function sn(e,t,i){e.insertBefore(i,e.childNodes[t]||null)}function an(e){return e&&e.nodeType===Node.COMMENT_NODE}function ln(e){return!!(e&&e.getClientRects&&e.getClientRects().length)}function cn({element:e,target:t,positions:i,limiter:n,fitInViewport:r,viewportOffsetConfig:o}){Ie(t)&&(t=t()),Ie(n)&&(n=n());const s=Ki(e),a=function(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new Zi(Ui.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t}(o),l=new Zi(e),c=dn(t,a);let d;if(!c||!a.getIntersection(c))return null;const h={targetRect:c,elementRect:l,positionedElementAncestor:s,viewportRect:a};if(n||r){if(n){const e=dn(n,a);e&&(h.limiterRect=e)}d=function(e,t){const{elementRect:i}=t,n=i.getArea(),r=e.map((e=>new hn(e,t))).filter((e=>!!e.name));let o=0,s=null;for(const e of r){const{limiterIntersectionArea:t,viewportIntersectionArea:i}=e;if(t===n)return e;const r=i**2+t**2;r>o&&(o=r,s=e)}return s}(i,h)}else d=new hn(i[0],h);return d}function dn(e,t){const i=new Zi(e).getVisible();return i?i.getIntersection(t):null}class hn{constructor(e,t){const i=e(t.targetRect,t.elementRect,t.viewportRect,t.limiterRect);if(!i)return;const{left:n,top:r,name:o,config:s}=i;this.name=o,this.config=s,this._positioningFunctionCoordinates={left:n,top:r},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 gn(e){const t=e.parentNode;t&&t.removeChild(e)}function un({window:e,rect:t,alignToTop:i,forceScroll:n,viewportOffset:r}){const o=t.clone().moveBy(0,r.bottom),s=t.clone().moveBy(0,-r.top),a=new Zi(e).excludeScrollbarsAndBorders(),l=i&&n,c=[s,o].every((e=>a.contains(e)));let{scrollX:d,scrollY:h}=e;const g=d,u=h;l?h-=a.top-t.top+r.top:c||(wn(s,a)?h-=a.top-t.top+r.top:mn(o,a)&&(h+=i?t.top-a.top-r.top:t.bottom-a.bottom+r.bottom)),c||(fn(t,a)?d-=a.left-t.left+r.left:yn(t,a)&&(d+=t.right-a.right+r.right)),d==g&&h===u||e.scrollTo(d,h)}function pn({parent:e,getRect:t,alignToTop:i,forceScroll:n,ancestorOffset:r=0,limiterElement:o}){const s=bn(e),a=i&&n;let l,c,d;const h=o||s.document.body;for(;e!=h;)c=t(),l=new Zi(e).excludeScrollbarsAndBorders(),d=l.contains(c),a?e.scrollTop-=l.top-c.top+r:d||(wn(c,l)?e.scrollTop-=l.top-c.top+r:mn(c,l)&&(e.scrollTop+=i?c.top-l.top-r:c.bottom-l.bottom+r)),d||(fn(c,l)?e.scrollLeft-=l.left-c.left+r:yn(c,l)&&(e.scrollLeft+=c.right-l.right+r)),e=e.parentNode}function mn(e,t){return e.bottom>t.bottom}function wn(e,t){return e.top<t.top}function fn(e,t){return e.left<t.left}function yn(e,t){return e.right>t.right}function bn(e){return $i(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function kn(e){if($i(e)){let t=e.commonAncestorContainer;return Wi(t)&&(t=t.parentNode),t}return e.parentNode}function _n(e,t){const i=bn(e),n=new Zi(e);if(i===t)return n;{let e=i;for(;e!=t;){const t=e.frameElement,i=new Zi(t).excludeScrollbarsAndBorders();n.moveBy(i.left,i.top),e=e.parent}}return n}const vn={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},xn={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},An={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},En=function(){const e={pageup:33,pagedown:34,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;return Object.assign(e,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),e}(),Cn=Object.fromEntries(Object.entries(En).map((([e,t])=>{let i;return i=t in An?An[t]:e.charAt(0).toUpperCase()+e.slice(1),[t,i]})));function Tn(e){let t;if("string"==typeof e){if(t=En[e.toLowerCase()],!t)throw new _("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?En.alt:0)+(e.ctrlKey?En.ctrl:0)+(e.shiftKey?En.shift:0)+(e.metaKey?En.cmd:0);return t}function In(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 Tn(e.slice(0,-1));const t=Tn(e);return(d.isMac||d.isiOS)&&t==En.ctrl?En.cmd:t}(e):e)).reduce(((e,t)=>t+e),0)}function Sn(e){let t=In(e);return Object.entries(d.isMac||d.isiOS?vn:xn).reduce(((e,[i,n])=>(t&En[i]&&(t&=~En[i],e+=n),e)),"")+(t?Cn[t]:"")}function Pn(e,t){const i="ltr"===t;switch(e){case En.arrowleft:return i?"left":"right";case En.arrowright:return i?"right":"left";case En.arrowup:return"up";case En.arrowdown:return"down"}}function Rn(e){return Array.isArray(e)?e:[e]}const On=function(e,t,i){(void 0!==i&&!xe(e[t],i)||void 0===i&&!(t in e))&&Xe(e,t,i)},Mn=function(e,t,i){for(var n=-1,r=Object(e),o=i(e),s=o.length;s--;){var a=o[++n];if(!1===t(r[a],a,r))break}return e},Bn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Vn=function(e,t,i,n,r,o,s){var a=Bn(e,i),l=Bn(t,i),c=s.get(l);if(c)On(e,i,c);else{var d=o?o(a,l,i+"",e,t,s):void 0,h=void 0===d;if(h){var g=he(l),u=!g&&ht(l),p=!g&&!u&&vt(l);d=l,g||u||p?he(a)?d=a:function(e){return ge(e)&&St(e)}(a)?d=Dt(a):u?(h=!1,d=Lt(l,!0)):p?(h=!1,d=fi(l,!0)):d=[]:ve(l)||at(l)?(d=a,at(a)?d=function(e){return it(e,Mt(e))}(a):N(a)&&!Ie(a)||(d=_i(l))):h=!1}h&&(s.set(l,d),r(d,l,n,o,s),s.delete(l)),On(e,i,d)}},zn=function e(t,i,n,r,o){t!==i&&Mn(i,(function(s,a){if(o||(o=new Ye),N(s))Vn(t,i,a,n,e,r,o);else{var l=r?r(Bn(t,a),s,a+"",t,i,o):void 0;void 0===l&&(l=s),On(t,a,l)}}),Mt)},Nn=function(e){return e};var Ln=Math.max;const Dn=function(e){return function(){return e}},Fn=Qe?function(e,t){return Qe(e,"toString",{configurable:!0,enumerable:!1,value:Dn(t),writable:!0})}:Nn;var jn=Date.now;const Hn=function(e){var t=0,i=0;return function(){var n=jn(),r=16-(n-i);if(i=n,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Fn),Un=function(e,t){return Hn(function(e,t,i){return t=Ln(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=Ln(n.length-t,0),s=Array(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}(e,this,a)}}(e,t,Nn),e+"")},qn=function(e){return Un((function(t,i){var n=-1,r=i.length,o=r>1?i[r-1]:void 0,s=r>2?i[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,s&&function(e,t,i){if(!N(i))return!1;var n=typeof t;return!!("number"==n?St(i)&&ut(t,i.length):"string"==n&&t in i)&&xe(i[t],e)}(i[0],i[1],s)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=i[n];a&&e(t,a,n,o)}return t}))},Wn=qn((function(e,t,i){zn(e,t,i)}));Ui.window.CKEDITOR_TRANSLATIONS||(Ui.window.CKEDITOR_TRANSLATIONS={});const $n=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig"];function Kn(e){return $n.includes(e)?"rtl":"ltr"}class Jn{constructor({uiLanguage:e="en",contentLanguage:t,translations:i}={}){this.uiLanguage=e,this.contentLanguage=t||this.uiLanguage,this.uiLanguageDirection=Kn(this.uiLanguage),this.contentLanguageDirection=Kn(this.contentLanguage),this.translations=function(e){return Array.isArray(e)?e.reduce(((e,t)=>Wn(e,t))):e}(i),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=Rn(t),"string"==typeof e&&(e={string:e});const i=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,((e,i)=>i<t.length?t[i]:e))}(function(e,t,i=1,n){if("number"!=typeof i)throw new _("translation-service-quantity-not-a-number",null,{quantity:i});const r=n||Ui.window.CKEDITOR_TRANSLATIONS,o=function(e){return Object.keys(e).length}(r);1===o&&(e=Object.keys(r)[0]);const s=t.id||t.string;if(0===o||!function(e,t,i){return!!i[e]&&!!i[e].dictionary[t]}(e,s,r))return 1!==i?t.plural:t.string;const a=r[e].dictionary,l=r[e].getPluralForm||(e=>1===e?0:1),c=a[s];return"string"==typeof c?c:c[Number(l(i))]}(this.uiLanguage,e,i,this.translations),t)}}class Zn extends(S()){constructor(e={},t={}){super();const i=X(e);if(i||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i)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 _("collection-add-item-invalid-index",this);let i=0;for(const n of e){const e=this._getItemIdBeforeAdding(n),r=t+i;this._items.splice(r,0,n),this._itemMap.set(e,n),this.fire("add",n,r),i++}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 _("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,i]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:i}),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 _("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,i=(i,n,r)=>{const o=t._bindToCollection==this,s=t._bindToInternalToExternalMap.get(n);if(o&&s)this._bindToExternalToInternalMap.set(n,s),this._bindToInternalToExternalMap.set(s,n);else{const i=e(n);if(!i)return void this._skippedIndexesFromExternal.push(r);let o=r;for(const e of this._skippedIndexesFromExternal)r>e&&o--;for(const e of t._skippedIndexesFromExternal)o>=e&&o++;this._bindToExternalToInternalMap.set(n,i),this._bindToInternalToExternalMap.set(i,n),this.add(i,o);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)o<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(const e of t)i(0,e,t.getIndex(e));this.listenTo(t,"add",i),this.listenTo(t,"remove",((e,t,i)=>{const n=this._bindToExternalToInternalMap.get(t);n&&this.remove(n),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((e,t)=>(i<t&&e.push(t-1),i>t&&e.push(t),e)),[])}))}_getItemIdBeforeAdding(e){const t=this._idProperty;let i;if(t in e){if(i=e[t],"string"!=typeof i)throw new _("collection-add-invalid-id",this);if(this.get(i))throw new _("collection-add-item-already-exists",this)}else e[t]=i=y();return i}_remove(e){let t,i,n,r=!1;const o=this._idProperty;if("string"==typeof e?(i=e,n=this._itemMap.get(i),r=!n,n&&(t=this._items.indexOf(n))):"number"==typeof e?(t=e,n=this._items[t],r=!n,n&&(i=n[o])):(n=e,i=n[o],t=this._items.indexOf(n),r=-1==t||!this._itemMap.get(i)),r)throw new _("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(i);const s=this._bindToInternalToExternalMap.get(n);return this._bindToInternalToExternalMap.delete(n),this._bindToExternalToInternalMap.delete(s),this.fire("remove",n,t),[n,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Gn(e){const t=e.next();return t.done?null:t.value}class Yn extends(Di(q())){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 _("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 Qn{constructor(){this._listener=new(Di())}listenTo(e){this._listener.listenTo(e,"keydown",((e,t)=>{this._listener.fire("_keydown:"+Tn(t),t)}))}set(e,t,i={}){const n=In(e),r=i.priority;this._listener.listenTo(this._listener,"_keydown:"+n,((e,i)=>{t(i,(()=>{i.preventDefault(),i.stopPropagation(),e.stop()})),e.return=!0}),{priority:r})}press(e){return!!this._listener.fire("_keydown:"+Tn(e),e)}stopListening(e){this._listener.stopListening(e)}destroy(){this.stopListening()}}function Xn(e){return X(e)?new Map(e):function(e){const t=new Map;for(const i in e)t.set(i,e[i]);return t}(e)}function er(e,t){let i;function n(...r){n.cancel(),i=setTimeout((()=>e(...r)),t)}return n.cancel=()=>{clearTimeout(i)},n}function tr(e,t){return!!(i=e.charAt(t-1))&&1==i.length&&/[\ud800-\udbff]/.test(i)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var i}function ir(e,t){return!!(i=e.charAt(t))&&1==i.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(i);var i}const nr=function(){const e=/\p{Regional_Indicator}{2}/u.source,t="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map((e=>e.source)).join("|")+")";return new RegExp(`${e}|${t}(?:${t})*`,"ug")}();function rr(e,t){const i=String(e).matchAll(nr);return Array.from(i).some((e=>e.index<t&&t<e.index+e[0].length))}class or extends(q()){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",sr,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",sr),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function sr(e){e.return=!1,e.stop()}class ar extends(q()){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 i=e.model.document.selection,n=!("$graveyard"==i.getFirstPosition().root.rootName)&&e.model.canEditAt(i);(e.isReadOnly||this._isEnabledBasedOnSelection&&!n)&&(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",lr,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",lr),this.refresh())}execute(...e){}destroy(){this.stopListening()}}function lr(e){e.return=!1,e.stop()}class cr extends(S()){constructor(e,t=[],i=[]){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 i)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 _("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e,t=[],i=[]){const n=this,r=this._context;!function e(t,i=new Set){t.forEach((t=>{a(t)&&(i.has(t)||(i.add(t),t.pluginName&&!n._availablePlugins.has(t.pluginName)&&n._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,i)))}))}(e),h(e);const o=[...function e(t,i=new Set){return t.map((e=>a(e)?e:n._availablePlugins.get(e))).reduce(((t,n)=>i.has(n)?t:(i.add(n),n.requires&&(h(n.requires,n),e(n.requires,i).forEach((e=>t.add(e)))),t.add(n))),new Set)}(e.filter((e=>!c(e,t))))];!function(e,t){for(const i of t){if("function"!=typeof i)throw new _("plugincollection-replace-plugin-invalid-type",null,{pluginItem:i});const t=i.pluginName;if(!t)throw new _("plugincollection-replace-plugin-missing-name",null,{pluginItem:i});if(i.requires&&i.requires.length)throw new _("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});const r=n._availablePlugins.get(t);if(!r)throw new _("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});const o=e.indexOf(r);if(-1===o){if(n._contextPlugins.has(r))return;throw new _("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(r.requires&&r.requires.length)throw new _("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(o,1,i),n._availablePlugins.set(t,i)}}(o,i);const s=function(e){return e.map((e=>{let t=n._contextPlugins.get(e);return t=t||new e(r),n._add(e,t),t}))}(o);return g(s,"init").then((()=>g(s,"afterInit"))).then((()=>s));function a(e){return"function"==typeof e}function l(e){return a(e)&&!!e.isContextPlugin}function c(e,t){return t.some((t=>t===e||d(e)===t||d(t)===e))}function d(e){return a(e)?e.pluginName||e.name:e}function h(e,i=null){e.map((e=>a(e)?e:n._availablePlugins.get(e)||e)).forEach((e=>{!function(e,t){if(!a(e)){if(t)throw new _("plugincollection-soft-required",r,{missingPlugin:e,requiredBy:d(t)});throw new _("plugincollection-plugin-not-found",r,{plugin:e})}}(e,i),function(e,t){if(l(t)&&!l(e))throw new _("plugincollection-context-required",r,{plugin:d(e),requiredBy:d(t)})}(e,i),function(e,i){if(i&&c(e,t))throw new _("plugincollection-required",r,{plugin:d(e),requiredBy:d(i)})}(e,i)}))}function g(e,t){return e.reduce(((e,i)=>i[t]?n._contextPlugins.has(i)?e:e.then(i[t].bind(i)):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 i=e.pluginName;if(i){if(this._plugins.has(i))throw new _("plugincollection-plugin-name-conflict",null,{pluginName:i,plugin1:this._plugins.get(i).constructor,plugin2:e});this._plugins.set(i,t)}}}class dr{constructor(e){this._contextOwner=null;const{translations:t,...i}=e||{};this.config=new Mi(i,this.constructor.defaultConfig);const n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new cr(this,n);const r=this.config.get("language")||{};this.locale=new Jn({uiLanguage:"string"==typeof r?r:r.ui,contentLanguage:this.config.get("language.content"),translations:t}),this.t=this.locale.t,this.editors=new Zn}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const i of e.concat(t)){if("function"!=typeof i)throw new _("context-initplugins-constructor-only",null,{Plugin:i});if(!0!==i.isContextPlugin)throw new _("context-initplugins-invalid-plugin",null,{Plugin:i})}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 _("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 i=new this(e);t(i.initPlugins().then((()=>i)))}))}}class hr extends(q()){constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var gr=a(5072),ur=a.n(gr),pr=a(4284),mr=a.n(pr),wr=a(7659),fr=a.n(wr),yr=a(4868),br=a.n(yr),kr=a(540),_r=a.n(kr),vr=a(7638),xr={attributes:{"data-cke":!0}};xr.setAttributes=br(),xr.insert=fr().bind(null,"head"),xr.domAPI=mr(),xr.insertStyleElement=_r(),ur()(vr.A,xr),vr.A&&vr.A.locals&&vr.A.locals;const Ar=new WeakMap;let Er=!1;function Cr({view:e,element:t,text:i,isDirectHost:n=!0,keepOnFocus:r=!1}){const o=e.document;function s(i){Ar.get(o).set(t,{text:i,isDirectHost:n,keepOnFocus:r,hostElement:n?t:null}),e.change((e=>Tr(o,e)))}Ar.has(o)||(Ar.set(o,new Map),o.registerPostFixer((e=>Tr(o,e))),o.on("change:isComposing",(()=>{e.change((e=>Tr(o,e)))}),{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",((e,t,i)=>{s(i)})),t.placeholder?s(t.placeholder):i&&s(i),i&&(Er||v("enableplaceholder-deprecated-text-option"),Er=!0)}function Tr(e,t){const i=Ar.get(e),n=[];let r=!1;for(const[e,o]of i)o.isDirectHost&&(n.push(e),Ir(t,e,o)&&(r=!0));for(const[e,o]of i){if(o.isDirectHost)continue;const i=Sr(e);i&&(n.includes(i)||(o.hostElement=i,Ir(t,e,o)&&(r=!0)))}return r}function Ir(e,t,i){const{text:n,isDirectHost:r,hostElement:o}=i;let s=!1;return o.getAttribute("data-placeholder")!==n&&(e.setAttribute("data-placeholder",n,o),s=!0),(r||1==t.childCount)&&function(e,t){if(!e.isAttached())return!1;const i=Array.from(e.getChildren()).some((e=>!e.is("uiElement")));if(i)return!1;const n=e.document,r=n.selection.anchor;return!(n.isComposing&&r&&r.parent===e||!t&&n.isFocused&&(!r||r.parent===e))}(o,i.keepOnFocus)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,o)&&(s=!0):function(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}(e,o)&&(s=!0),s}function Sr(e){if(e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class Pr{is(){throw new Error("is() method is abstract")}}const Rr=function(e){return Pi(e,4)};class Or extends(S(Pr)){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 _("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 i=e.includeSelf?this:this.parent;for(;i;)t[e.parentFirst?"push":"unshift"](i),i=i.parent;return t}getCommonAncestor(e,t={}){const i=this.getAncestors(t),n=e.getAncestors(t);let r=0;for(;i[r]==n[r]&&i[r];)r++;return 0===r?null:i[r-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),i=e.getPath(),n=Q(t,i);switch(n){case"prefix":return!0;case"extension":return!1;default:return t[n]<i[n]}}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=Rr(this);return delete e.parent,e}}Or.prototype.is=function(e){return"node"===e||"view:node"===e};class Mr extends Or{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 Mr&&(this===e||this.data===e.data)}_clone(){return new Mr(this.document,this.data)}}Mr.prototype.is=function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e};class Br extends Pr{constructor(e,t,i){if(super(),this.textNode=e,t<0||t>e.data.length)throw new _("view-textproxy-wrong-offsetintext",this);if(i<0||t+i>e.data.length)throw new _("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+i),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 i=e.includeSelf?this.textNode:this.parent;for(;null!==i;)t[e.parentFirst?"push":"unshift"](i),i=i.parent;return t}}Br.prototype.is=function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e};class Vr{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 i=zr(t,e);if(i)return{element:t,pattern:e,match:i}}return null}matchAll(...e){const t=[];for(const i of e)for(const e of this._patterns){const n=zr(i,e);n&&t.push({element:i,pattern:e,match:n})}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 zr(e,t){if("function"==typeof t)return t(e);const i={};return t.name&&(i.name=function(e,t){return e instanceof RegExp?!!t.match(e):e===t}(t.name,e.name),!i.name)||t.attributes&&(i.attributes=function(e,t){const i=new Set(t.getAttributeKeys());return ve(e)?(void 0!==e.style&&v("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&v("matcher-pattern-deprecated-attributes-class-key",e)):(i.delete("style"),i.delete("class")),Nr(e,i,(e=>t.getAttribute(e)))}(t.attributes,e),!i.attributes)||t.classes&&(i.classes=function(e,t){return Nr(e,t.getClassNames(),(()=>{}))}(t.classes,e),!i.classes)||t.styles&&(i.styles=function(e,t){return Nr(e,t.getStyleNames(!0),(e=>t.getStyle(e)))}(t.styles,e),!i.styles)?null:i}function Nr(e,t,i){const n=function(e){return Array.isArray(e)?e.map((e=>ve(e)?(void 0!==e.key&&void 0!==e.value||v("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0])):ve(e)?Object.entries(e):[[e,!0]]}(e),r=Array.from(t),o=[];if(n.forEach((([e,t])=>{r.forEach((n=>{(function(e,t){return!0===e||e===t||e instanceof RegExp&&t.match(e)})(e,n)&&function(e,t,i){if(!0===e)return!0;const n=i(t);return e===n||e instanceof RegExp&&!!String(n).match(e)}(t,n,i)&&o.push(n)}))})),n.length&&!(o.length<n.length))return o}const Lr=function(e){return"symbol"==typeof e||ge(e)&&"[object Symbol]"==de(e)};var Dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fr=/^\w*$/;const jr=function(e,t){if(he(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!Lr(e))||Fr.test(e)||!Dr.test(e)||null!=t&&e in Object(t)};function Hr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=e.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(Hr.Cache||Ze),i}Hr.Cache=Ze;const Ur=Hr;var qr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wr=/\\(\\)?/g;const $r=function(e){var t=Ur(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(qr,(function(e,i,n,r){t.push(n?r.replace(Wr,"$1"):i||e)})),t}));var Kr=ne?ne.prototype:void 0,Jr=Kr?Kr.toString:void 0;const Zr=function e(t){if("string"==typeof t)return t;if(he(t))return function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}(t,e)+"";if(Lr(t))return Jr?Jr.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i},Gr=function(e){return null==e?"":Zr(e)},Yr=function(e,t){return he(e)?e:jr(e,t)?[e]:$r(Gr(e))},Qr=function(e){if("string"==typeof e||Lr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Xr=function(e,t){for(var i=0,n=(t=Yr(t,e)).length;null!=e&&i<n;)e=e[Qr(t[i++])];return i&&i==n?e:void 0},eo=function(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++n<r;)o[n]=e[n+t];return o},to=function(e,t){return null==(e=function(e,t){return t.length<2?e:Xr(e,eo(t,0,-1))}(e,t=Yr(t,e)))||delete e[Qr(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]},io=function(e,t,i){var n=null==e?void 0:Xr(e,t);return void 0===n?i:n},no=function(e,t,i){return null==e?e:function(e,t,i,n){if(!N(e))return e;for(var r=-1,o=(t=Yr(t,e)).length,s=o-1,a=e;null!=a&&++r<o;){var l=Qr(t[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(r!=s){var d=a[l];void 0===(c=n?n(d,l,a):void 0)&&(c=N(d)?d:ut(t[r+1])?[]:{})}tt(a,l,c),a=a[l]}return e}(e,t,i)};class ro{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,i=0,n=0,r=null;const o=new Map;if(""===e)return o;";"!=e.charAt(e.length-1)&&(e+=";");for(let s=0;s<e.length;s++){const a=e.charAt(s);if(null===t)switch(a){case":":r||(r=e.substr(i,s-i),n=s+1);break;case'"':case"'":t=a;break;case";":{const t=e.substr(n,s-n);r&&o.set(r.trim(),t.trim()),r=null,i=s+1;break}}else a===t&&(t=null)}return o}(e);for(const[e,i]of t)this._styleProcessor.toNormalizedForm(e,i,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(N(e))for(const[t,i]of Object.entries(e))this._styleProcessor.toNormalizedForm(t,i,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t=so(e);(function(e,t){null==e||to(e,t)})(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]&&!N(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){return this.isEmpty?[]:e?this._styleProcessor.getStyleNames(this._styles):this.getStylesEntries().map((([e])=>e))}clear(){this._styles={}}getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const i of t)e.push(...this._styleProcessor.getReducedForm(i,this._styles));return e}_cleanEmptyObjectsOnPath(e){const t=e.split(".");if(!(t.length>1))return;const i=t.splice(0,t.length-1).join("."),n=io(this._styles,i);n&&!Object.keys(n).length&&this.remove(i)}}class oo{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,i){if(N(t))ao(i,so(e),t);else if(this._normalizers.has(e)){const n=this._normalizers.get(e),{path:r,value:o}=n(t);ao(i,r,o)}else ao(i,e,t)}getNormalized(e,t){if(!e)return Wn({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){const i=this._extractors.get(e);if("string"==typeof i)return io(t,i);const n=i(e,t);if(n)return n}return io(t,so(e))}getReducedForm(e,t){const i=this.getNormalized(e,t);return void 0===i?[]:this._reducers.has(e)?this._reducers.get(e)(i):[[e,i]]}getStyleNames(e){const t=Array.from(this._consumables.keys()).filter((t=>{const i=this.getNormalized(t,e);return i&&"object"==typeof i?Object.keys(i).length:i})),i=new Set([...t,...Object.keys(e)]);return Array.from(i)}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 i of t)this._mapStyleNames(i,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function so(e){return e.replace("-",".")}function ao(e,t,i){let n=i;N(i)&&(n=Wn({},io(e,t),i)),no(e,t,n)}class lo extends Or{constructor(e,t,i,n){if(super(e),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=t,this._attrs=function(e){const t=Xn(e);for(const[e,i]of t)null===i?t.delete(e):"string"!=typeof i&&t.set(e,String(i));return t}(i),this._children=[],n&&this._insertChild(0,n),this._classes=new Set,this._attrs.has("class")){const e=this._attrs.get("class");co(this._classes,e),this._attrs.delete("class")}this._styles=new ro(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 lo))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,i]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==i)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 Vr(...e);let i=this.parent;for(;i&&!i.is("documentFragment");){if(t.match(i))return i;i=i.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(),i=Array.from(this._attrs).map((e=>`${e[0]}="${e[1]}"`)).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==i?"":` ${i}`)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}_clone(e=!1){const t=[];if(e)for(const i of this.getChildren())t.push(i._clone(e));const i=new this.constructor(this.document,this.name,this._attrs,t);return i._classes=new Set(this._classes),i._styles.set(this._styles.getNormalized()),i._customProperties=new Map(this._customProperties),i.getFillerOffset=this.getFillerOffset,i._unsafeAttributesToRender=this._unsafeAttributesToRender,i}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this);let i=0;const n=function(e,t){return"string"==typeof t?[new Mr(e,t)]:(X(t)||(t=[t]),Array.from(t).map((t=>"string"==typeof t?new Mr(e,t):t instanceof Br?new Mr(e,t.data):t)))}(this.document,t);for(const t of n)null!==t.parent&&t._remove(),t.parent=this,t.document=this.document,this._children.splice(e,0,t),e++,i++;return i}_removeChildren(e,t=1){this._fireChange("children",this);for(let i=e;i<e+t;i++)this._children[i].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){const i=String(t);this._fireChange("attributes",this),"class"==e?co(this._classes,i):"style"==e?this._styles.setTo(i):this._attrs.set(e,i)}_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 Rn(e))this._classes.add(t)}_removeClass(e){this._fireChange("attributes",this);for(const t of Rn(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 Rn(e))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function co(e,t){const i=t.split(/\s+/);e.clear(),i.forEach((t=>e.add(t)))}lo.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 ho extends lo{constructor(e,t,i,n){super(e,t,i,n),this.getFillerOffset=go}}function go(){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}ho.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 uo extends(q(ho)){constructor(e,t,i,n){super(e,t,i,n),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()}}uo.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 po=Symbol("rootName");class mo extends uo{constructor(e,t){super(e,t),this.rootName="main"}get rootName(){return this.getCustomProperty(po)}set rootName(e){this._setCustomProperty(po,e)}set _name(e){this.name=e}}mo.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 wo{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new _("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new _("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this._position=fo._createAt(e.startPosition):this._position=fo._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,i;do{i=this.position,t=this.next()}while(!t.done&&e(t.value));t.done||(this._position=i)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,i=e.parent;if(null===i.parent&&e.offset===i.childCount)return{done:!0,value:void 0};if(i===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let n;if(i instanceof Mr){if(e.isAtEnd)return this._position=fo._createAfter(i),this._next();n=i.data[e.offset]}else n=i.getChild(e.offset);if(n instanceof lo){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e=new fo(n,0);return this._position=e,this._formatReturnValue("elementStart",n,t,e,1)}if(n instanceof Mr){if(this.singleCharacters)return e=new fo(n,0),this._position=e,this._next();let i,r=n.data.length;return n==this._boundaryEndParent?(r=this.boundaries.end.offset,i=new Br(n,0,r),e=fo._createAfter(i)):(i=new Br(n,0,n.data.length),e.offset++),this._position=e,this._formatReturnValue("text",i,t,e,r)}if("string"==typeof n){let n;n=this.singleCharacters?1:(i===this._boundaryEndParent?this.boundaries.end.offset:i.data.length)-e.offset;const r=new Br(i,e.offset,n);return e.offset+=n,this._position=e,this._formatReturnValue("text",r,t,e,n)}return e=fo._createAfter(i),this._position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",i,t,e)}_previous(){let e=this.position.clone();const t=this.position,i=e.parent;if(null===i.parent&&0===e.offset)return{done:!0,value:void 0};if(i==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let n;if(i instanceof Mr){if(e.isAtStart)return this._position=fo._createBefore(i),this._previous();n=i.data[e.offset-1]}else n=i.getChild(e.offset-1);if(n instanceof lo)return this.shallow?(e.offset--,this._position=e,this._formatReturnValue("elementStart",n,t,e,1)):(e=new fo(n,n.childCount),this._position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",n,t,e));if(n instanceof Mr){if(this.singleCharacters)return e=new fo(n,n.data.length),this._position=e,this._previous();let i,r=n.data.length;if(n==this._boundaryStartParent){const t=this.boundaries.start.offset;i=new Br(n,t,n.data.length-t),r=i.data.length,e=fo._createBefore(i)}else i=new Br(n,0,n.data.length),e.offset--;return this._position=e,this._formatReturnValue("text",i,t,e,r)}if("string"==typeof n){let n;if(this.singleCharacters)n=1;else{const t=i===this._boundaryStartParent?this.boundaries.start.offset:0;n=e.offset-t}e.offset-=n;const r=new Br(i,e.offset,n);return this._position=e,this._formatReturnValue("text",r,t,e,n)}return e=fo._createBefore(i),this._position=e,this._formatReturnValue("elementStart",i,t,e,1)}_formatReturnValue(e,t,i,n,r){return t instanceof Br&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?i=fo._createAfter(t.textNode):(n=fo._createAfter(t.textNode),this._position=n)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?i=fo._createBefore(t.textNode):(n=fo._createBefore(t.textNode),this._position=n))),{done:!1,value:{type:e,item:t,previousPosition:i,nextPosition:n,length:r}}}}class fo extends Pr{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 uo);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=fo._createAt(this),i=t.offset+e;return t.offset=i<0?0:i,t}getLastMatchingPosition(e,t={}){t.startPosition=this;const i=new wo(t);return i.skip(e),i.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),i=e.getAncestors();let n=0;for(;t[n]==i[n]&&t[n];)n++;return 0===n?null:t[n-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():[],i=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),i.push(e.offset);const n=Q(t,i);switch(n){case"prefix":return"before";case"extension":return"after";default:return t[n]<i[n]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new wo(e)}clone(){return new fo(this.parent,this.offset)}static _createAt(e,t){if(e instanceof fo)return new this(e.parent,e.offset);{const i=e;if("end"==t)t=i.is("$text")?i.data.length:i.childCount;else{if("before"==t)return this._createBefore(i);if("after"==t)return this._createAfter(i);if(0!==t&&!t)throw new _("view-createpositionat-offset-required",i)}return new fo(i,t)}}static _createAfter(e){if(e.is("$textProxy"))return new fo(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new _("view-position-after-root",e,{root:e});return new fo(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new fo(e.textNode,e.offsetInText);if(!e.parent)throw new _("view-position-before-root",e,{root:e});return new fo(e.parent,e.index)}}fo.prototype.is=function(e){return"position"===e||"view:position"===e};class yo extends Pr{constructor(e,t=null){super(),this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new wo({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(bo,{direction:"backward"}),t=this.end.getLastMatchingPosition(bo);return e.parent.is("$text")&&e.isAtStart&&(e=fo._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=fo._createAfter(t.parent)),new yo(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(bo);if(e.isAfter(this.end)||e.isEqual(this.end))return new yo(e,e);let t=this.end.getLastMatchingPosition(bo,{direction:"backward"});const i=e.nodeAfter,n=t.nodeBefore;return i&&i.is("$text")&&(e=new fo(i,0)),n&&n.is("$text")&&(t=new fo(n,n.data.length)),new yo(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 i=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),n=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return i&&n}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new yo(this.start,e.start)),this.containsPosition(e.end)&&t.push(new yo(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,i=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(i=e.end),new yo(t,i)}return null}getWalker(e={}){return e.boundaries=this,new wo(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 yo(this.start,this.end)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new wo(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new wo(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,i,n){return new this(new fo(e,t),new fo(i,n))}static _createFromPositionAndShift(e,t){const i=e,n=e.getShiftedBy(t);return t>0?new this(i,n):new this(n,i)}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(fo._createBefore(e),t)}}function bo(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}yo.prototype.is=function(e){return"range"===e||"view:range"===e};class ko extends(S(Pr)){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 i=!1;for(const n of e._ranges)if(t.isEqual(n)){i=!0;break}if(!i)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=Y(this.getRanges());if(t!=Y(e.getRanges()))return!1;if(0==t)return!0;for(let t of this.getRanges()){t=t.getTrimmed();let i=!1;for(let n of e.getRanges())if(n=n.getTrimmed(),t.start.isEqual(n.start)&&t.end.isEqual(n.end)){i=!0;break}if(!i)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...e){let[t,i,n]=e;if("object"==typeof i&&(n=i,i=void 0),null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof ko||t instanceof _o)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof yo)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof fo)this._setRanges([new yo(t)]),this._setFakeOptions(n);else if(t instanceof Or){const e=!!n&&!!n.backward;let r;if(void 0===i)throw new _("view-selection-setto-required-second-parameter",this);r="in"==i?yo._createIn(t):"on"==i?yo._createOn(t):new yo(fo._createAt(t,i)),this._setRanges([r],e),this._setFakeOptions(n)}else{if(!X(t))throw new _("view-selection-setto-not-selectable",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new _("view-selection-setfocus-no-ranges",this);const i=fo._createAt(e,t);if("same"==i.compareWith(this.focus))return;const n=this.anchor;this._ranges.pop(),"before"==i.compareWith(n)?this._addRange(new yo(i,n),!0):this._addRange(new yo(n,i)),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 yo))throw new _("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 _("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new yo(e.start,e.end))}}ko.prototype.is=function(e){return"selection"===e||"view:selection"===e};class _o extends(S(Pr)){constructor(...e){super(),this._selection=new ko,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)}}_o.prototype.is=function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e};class vo extends w{constructor(e,t,i){super(e,t),this.startRange=i,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const xo=Symbol("bubbling contexts");function Ao(e){return class extends e{fire(e,...t){try{const i=e instanceof w?e:new w(this,e),n=Io(this);if(!n.size)return;if(Eo(i,"capturing",this),Co(n,"$capture",i,...t))return i.return;const r=i.startRange||this.selection.getFirstRange(),o=r?r.getContainedElement():null,s=!!o&&Boolean(To(n,o));let a=o||function(e){if(!e)return null;const t=e.start.parent,i=e.end.parent,n=t.getPath(),r=i.getPath();return n.length>r.length?t:i}(r);if(Eo(i,"atTarget",a),!s){if(Co(n,"$text",i,...t))return i.return;Eo(i,"bubbling",a)}for(;a;){if(a.is("rootElement")){if(Co(n,"$root",i,...t))return i.return}else if(a.is("element")&&Co(n,a.name,i,...t))return i.return;if(Co(n,a,i,...t))return i.return;a=a.parent,Eo(i,"bubbling",a)}return Eo(i,"bubbling",this),Co(n,"$document",i,...t),i.return}catch(e){_.rethrowUnexpectedError(e,this)}}_addEventListener(e,t,i){const n=Rn(i.context||"$document"),r=Io(this);for(const o of n){let n=r.get(o);n||(n=new(S()),r.set(o,n)),this.listenTo(n,e,t,i)}}_removeEventListener(e,t){const i=Io(this);for(const n of i.values())this.stopListening(n,e,t)}}}{const e=Ao(Object);["fire","_addEventListener","_removeEventListener"].forEach((t=>{Ao[t]=e.prototype[t]}))}function Eo(e,t,i){e instanceof vo&&(e._eventPhase=t,e._currentTarget=i)}function Co(e,t,i,...n){const r="string"==typeof t?e.get(t):To(e,t);return!!r&&(r.fire(i,...n),i.stop.called)}function To(e,t){for(const[i,n]of e)if("function"==typeof i&&i(t))return n;return null}function Io(e){return e[xo]||(e[xo]=new Map),e[xo]}class So extends(Ao(q())){constructor(e){super(),this._postFixers=new Set,this.selection=new _o,this.roots=new Zn({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 i of this._postFixers)if(t=i(e),t)break}while(t)}}class Po extends lo{constructor(e,t,i,n){super(e,t,i,n),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=Oo}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new _("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}}Po.DEFAULT_PRIORITY=10;const Ro=Po;function Oo(){if(Mo(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(Mo(e)>1)return null;e=e.parent}return!e||Mo(e)>1?null:this.childCount}function Mo(e){return Array.from(e.getChildren()).filter((e=>!e.is("uiElement"))).length}Po.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 Bo extends lo{constructor(e,t,i,n){super(e,t,i,n),this.getFillerOffset=Vo}_insertChild(e,t){if(t&&(t instanceof Or||Array.from(t).length>0))throw new _("view-emptyelement-cannot-add",[this,t]);return 0}}function Vo(){return null}Bo.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 zo extends lo{constructor(e,t,i,n){super(e,t,i,n),this.getFillerOffset=No}_insertChild(e,t){if(t&&(t instanceof Or||Array.from(t).length>0))throw new _("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 No(){return null}zo.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 Lo extends lo{constructor(e,t,i,n){super(e,t,i,n),this.getFillerOffset=Do}_insertChild(e,t){if(t&&(t instanceof Or||Array.from(t).length>0))throw new _("view-rawelement-cannot-add",[this,t]);return 0}render(e,t){}}function Do(){return null}Lo.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 Fo extends(S(Pr)){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 i=0;const n=function(e,t){return"string"==typeof t?[new Mr(e,t)]:(X(t)||(t=[t]),Array.from(t).map((t=>"string"==typeof t?new Mr(e,t):t instanceof Br?new Mr(e,t.data):t)))}(this.document,t);for(const t of n)null!==t.parent&&t._remove(),t.parent=this,this._children.splice(e,0,t),e++,i++;return i}_removeChildren(e,t=1){this._fireChange("children",this);for(let i=e;i<e+t;i++)this._children[i].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)}}Fo.prototype.is=function(e){return"documentFragment"===e||"view:documentFragment"===e};class jo{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 Fo(this.document,e)}createText(e){return new Mr(this.document,e)}createAttributeElement(e,t,i={}){const n=new Ro(this.document,e,t);return"number"==typeof i.priority&&(n._priority=i.priority),i.id&&(n._id=i.id),i.renderUnsafeAttributes&&n._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),n}createContainerElement(e,t,i={},n={}){let r=null;ve(i)?n=i:r=i;const o=new ho(this.document,e,t,r);return n.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),o}createEditableElement(e,t,i={}){const n=new uo(this.document,e,t);return i.renderUnsafeAttributes&&n._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),n}createEmptyElement(e,t,i={}){const n=new Bo(this.document,e,t);return i.renderUnsafeAttributes&&n._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),n}createUIElement(e,t,i){const n=new zo(this.document,e,t);return i&&(n.render=i),n}createRawElement(e,t,i,n={}){const r=new Lo(this.document,e,t);return i&&(r.render=i),n.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),r}setAttribute(e,t,i){i._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,i){ve(e)&&void 0===i?t._setStyle(e):i._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,i){i._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof fo?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new _("view-writer-break-non-container-element",this.document);if(!t.parent)throw new _("view-writer-break-root",this.document);if(e.isAtStart)return fo._createBefore(t);if(!e.isAtEnd){const i=t._clone(!1);this.insert(fo._createAfter(t),i);const n=new yo(e,fo._createAt(t,"end")),r=new fo(i,0);this.move(n,r)}return fo._createAfter(t)}mergeAttributes(e){const t=e.offset,i=e.parent;if(i.is("$text"))return e;if(i.is("attributeElement")&&0===i.childCount){const e=i.parent,t=i.index;return i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new fo(e,t))}const n=i.getChild(t-1),r=i.getChild(t);if(!n||!r)return e;if(n.is("$text")&&r.is("$text"))return $o(n,r);if(n.is("attributeElement")&&r.is("attributeElement")&&n.isSimilar(r)){const e=n.childCount;return n._appendChild(r.getChildren()),r._remove(),this._removeFromClonedElementsGroup(r),this.mergeAttributes(new fo(n,e))}return e}mergeContainers(e){const t=e.nodeBefore,i=e.nodeAfter;if(!(t&&i&&t.is("containerElement")&&i.is("containerElement")))throw new _("view-writer-merge-containers-invalid-position",this.document);const n=t.getChild(t.childCount-1),r=n instanceof Mr?fo._createAt(n,"end"):fo._createAt(t,"end");return this.move(yo._createIn(i),fo._createAt(t,"end")),this.remove(yo._createOn(i)),r}insert(e,t){Jo(t=X(t)?[...t]:[t],this.document);const i=t.reduce(((e,t)=>{const i=e[e.length-1],n=!t.is("uiElement");return i&&i.breakAttributes==n?i.nodes.push(t):e.push({breakAttributes:n,nodes:[t]}),e}),[]);let n=null,r=e;for(const{nodes:e,breakAttributes:t}of i){const i=this._insertNodes(r,e,t);n||(n=i.start),r=i.end}return n?new yo(n,r):new yo(e)}remove(e){const t=e instanceof yo?e:yo._createOn(e);if(Go(t,this.document),t.isCollapsed)return new Fo(this.document);const{start:i,end:n}=this._breakAttributesRange(t,!0),r=i.parent,o=n.offset-i.offset,s=r._removeChildren(i.offset,o);for(const e of s)this._removeFromClonedElementsGroup(e);const a=this.mergeAttributes(i);return t.start=a,t.end=a.clone(),new Fo(this.document,s)}clear(e,t){Go(e,this.document);const i=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const n of i){const i=n.item;let r;if(i.is("element")&&t.isSimilar(i))r=yo._createOn(i);else if(!n.nextPosition.isAfter(e.start)&&i.is("$textProxy")){const e=i.getAncestors().find((e=>e.is("element")&&t.isSimilar(e)));e&&(r=yo._createIn(e))}r&&(r.end.isAfter(e.end)&&(r.end=e.end),r.start.isBefore(e.start)&&(r.start=e.start),this.remove(r))}}move(e,t){let i;if(t.isAfter(e.end)){const n=(t=this._breakAttributes(t,!0)).parent,r=n.childCount;e=this._breakAttributesRange(e,!0),i=this.remove(e),t.offset+=n.childCount-r}else i=this.remove(e);return this.insert(t,i)}wrap(e,t){if(!(t instanceof Ro))throw new _("view-writer-wrap-invalid-attribute",this.document);if(Go(e,this.document),e.isCollapsed){let n=e.start;n.parent.is("element")&&(i=n.parent,!Array.from(i.getChildren()).some((e=>!e.is("uiElement"))))&&(n=n.getLastMatchingPosition((e=>e.item.is("uiElement")))),n=this._wrapPosition(n,t);const r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new yo(n)}return this._wrapRange(e,t);var i}unwrap(e,t){if(!(t instanceof Ro))throw new _("view-writer-unwrap-invalid-attribute",this.document);if(Go(e,this.document),e.isCollapsed)return e;const{start:i,end:n}=this._breakAttributesRange(e,!0),r=i.parent,o=this._unwrapChildren(r,i.offset,n.offset,t),s=this.mergeAttributes(o.start);s.isEqual(o.start)||o.end.offset--;const a=this.mergeAttributes(o.end);return new yo(s,a)}rename(e,t){const i=new ho(this.document,e,t.getAttributes());return this.insert(fo._createAfter(t),i),this.move(yo._createIn(t),fo._createAt(i,0)),this.remove(yo._createOn(t)),i}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return fo._createAt(e,t)}createPositionAfter(e){return fo._createAfter(e)}createPositionBefore(e){return fo._createBefore(e)}createRange(e,t){return new yo(e,t)}createRangeOn(e){return yo._createOn(e)}createRangeIn(e){return yo._createIn(e)}createSelection(...e){return new ko(...e)}createSlot(e="children"){if(!this._slotFactory)throw new _("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,i){let n,r;if(n=i?Ho(e):e.parent.is("$text")?e.parent.parent:e.parent,!n)throw new _("view-writer-invalid-position-container",this.document);r=i?this._breakAttributes(e,!0):e.parent.is("$text")?Wo(e):e;const o=n._insertChild(r.offset,t);for(const e of t)this._addToClonedElementsGroup(e);const s=r.getShiftedBy(o),a=this.mergeAttributes(r);a.isEqual(r)||s.offset--;const l=this.mergeAttributes(s);return new yo(a,l)}_wrapChildren(e,t,i,n){let r=t;const o=[];for(;r<i;){const t=e.getChild(r),i=t.is("$text"),s=t.is("attributeElement");if(s&&this._wrapAttributeElement(n,t))o.push(new fo(e,r));else if(i||!s||Uo(n,t)){const i=n._clone();t._remove(),i._appendChild(t),e._insertChild(r,i),this._addToClonedElementsGroup(i),o.push(new fo(e,r))}else this._wrapChildren(t,0,t.childCount,n);r++}let s=0;for(const e of o)e.offset-=s,e.offset!=t&&(this.mergeAttributes(e).isEqual(e)||(s++,i--));return yo._createFromParentsAndOffsets(e,t,e,i)}_unwrapChildren(e,t,i,n){let r=t;const o=[];for(;r<i;){const t=e.getChild(r);if(t.is("attributeElement"))if(t.isSimilar(n)){const n=t.getChildren(),s=t.childCount;t._remove(),e._insertChild(r,n),this._removeFromClonedElementsGroup(t),o.push(new fo(e,r),new fo(e,r+s)),r+=s,i+=s-1}else this._unwrapAttributeElement(n,t)?(o.push(new fo(e,r),new fo(e,r+1)),r++):(this._unwrapChildren(t,0,t.childCount,n),r++);else r++}let s=0;for(const e of o)e.offset-=s,e.offset!=t&&e.offset!=i&&(this.mergeAttributes(e).isEqual(e)||(s++,i--));return yo._createFromParentsAndOffsets(e,t,e,i)}_wrapRange(e,t){const{start:i,end:n}=this._breakAttributesRange(e,!0),r=i.parent,o=this._wrapChildren(r,i.offset,n.offset,t),s=this.mergeAttributes(o.start);s.isEqual(o.start)||o.end.offset--;const a=this.mergeAttributes(o.end);return new yo(s,a)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return qo(e.clone());e.parent.is("$text")&&(e=Wo(e));const i=this.createAttributeElement("_wrapPosition-fake-element");i._priority=Number.POSITIVE_INFINITY,i.isSimilar=()=>!1,e.parent._insertChild(e.offset,i);const n=new yo(e,e.getShiftedBy(1));this.wrap(n,t);const r=new fo(i.parent,i.index);i._remove();const o=r.nodeBefore,s=r.nodeAfter;return o instanceof Mr&&s instanceof Mr?$o(o,s):qo(r)}_wrapAttributeElement(e,t){if(!Yo(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const i of e.getAttributeKeys())if("class"!==i&&"style"!==i&&t.hasAttribute(i)&&t.getAttribute(i)!==e.getAttribute(i))return!1;for(const i of e.getStyleNames())if(t.hasStyle(i)&&t.getStyle(i)!==e.getStyle(i))return!1;for(const i of e.getAttributeKeys())"class"!==i&&"style"!==i&&(t.hasAttribute(i)||this.setAttribute(i,e.getAttribute(i),t));for(const i of e.getStyleNames())t.hasStyle(i)||this.setStyle(i,e.getStyle(i),t);for(const i of e.getClassNames())t.hasClass(i)||this.addClass(i,t);return!0}_unwrapAttributeElement(e,t){if(!Yo(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const i of e.getAttributeKeys())if("class"!==i&&"style"!==i&&(!t.hasAttribute(i)||t.getAttribute(i)!==e.getAttribute(i)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(const i of e.getStyleNames())if(!t.hasStyle(i)||t.getStyle(i)!==e.getStyle(i))return!1;for(const i of e.getAttributeKeys())"class"!==i&&"style"!==i&&this.removeAttribute(i,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){const i=e.start,n=e.end;if(Go(e,this.document),e.isCollapsed){const i=this._breakAttributes(e.start,t);return new yo(i,i)}const r=this._breakAttributes(n,t),o=r.parent.childCount,s=this._breakAttributes(i,t);return r.offset+=r.parent.childCount-o,new yo(s,r)}_breakAttributes(e,t=!1){const i=e.offset,n=e.parent;if(e.parent.is("emptyElement"))throw new _("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new _("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new _("view-writer-cannot-break-raw-element",this.document);if(!t&&n.is("$text")&&Zo(n.parent))return e.clone();if(Zo(n))return e.clone();if(n.is("$text"))return this._breakAttributes(Wo(e),t);if(i==n.childCount){const e=new fo(n.parent,n.index+1);return this._breakAttributes(e,t)}if(0===i){const e=new fo(n.parent,n.index);return this._breakAttributes(e,t)}{const e=n.index+1,r=n._clone();n.parent._insertChild(e,r),this._addToClonedElementsGroup(r);const o=n.childCount-i,s=n._removeChildren(i,o);r._appendChild(s);const a=new fo(n.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 i=this._cloneGroups.get(t);i||(i=new Set,this._cloneGroups.set(t,i)),i.add(e),e._clonesGroup=i}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const t of e.getChildren())this._removeFromClonedElementsGroup(t);const t=e.id;if(!t)return;const i=this._cloneGroups.get(t);i&&i.delete(e)}}function Ho(e){let t=e.parent;for(;!Zo(t);){if(!t)return;t=t.parent}return t}function Uo(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function qo(e){const t=e.nodeBefore;if(t&&t.is("$text"))return new fo(t,t.data.length);const i=e.nodeAfter;return i&&i.is("$text")?new fo(i,0):e}function Wo(e){if(e.offset==e.parent.data.length)return new fo(e.parent.parent,e.parent.index+1);if(0===e.offset)return new fo(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 Mr(e.root.document,t)),new fo(e.parent.parent,e.parent.index+1)}function $o(e,t){const i=e.data.length;return e._data+=t.data,t._remove(),new fo(e,i)}const Ko=[Mr,Ro,ho,Bo,Lo,zo];function Jo(e,t){for(const i of e){if(!Ko.some((e=>i instanceof e)))throw new _("view-writer-insert-invalid-node-type",t);i.is("$text")||Jo(i.getChildren(),t)}}function Zo(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function Go(e,t){const i=Ho(e.start),n=Ho(e.end);if(!i||!n||i!==n)throw new _("view-writer-invalid-range-container",t)}function Yo(e,t){return null===e.id&&null===t.id}const Qo=e=>e.createTextNode(" "),Xo=e=>{const t=e.createElement("span");return t.dataset.ckeFiller="true",t.innerText=" ",t},es=e=>{const t=e.createElement("br");return t.dataset.ckeFiller="true",t},ts="".repeat(7);function is(e){return"string"==typeof e?e.substr(0,7)===ts:Wi(e)&&e.data.substr(0,7)===ts}function ns(e){return 7==e.data.length&&is(e)}function rs(e){const t="string"==typeof e?e:e.data;return is(e)?t.slice(7):t}function os(e,t){if(t.keyCode==En.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,i=e.getRangeAt(0).startOffset;is(t)&&i<=7&&e.collapse(t,0)}}}var ss=a(4332),as={attributes:{"data-cke":!0}};as.setAttributes=br(),as.insert=fr().bind(null,"head"),as.domAPI=mr(),as.insertStyleElement=_r(),ur()(ss.A,as),ss.A&&ss.A.locals&&ss.A.locals;class ls extends(q()){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),d.isBlink&&!d.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 _("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}render(){if(this.isComposing&&!d.isAndroid)return;let e=null;const t=!(d.isBlink&&!d.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=fo._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),i=t.parent.ownerDocument;is(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=cs(i,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 i=Array.from(t.childNodes),n=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),r=this._diffNodeLists(i,n),o=this._findUpdateActions(r,i,n,ds);if(-1!==o.indexOf("update")){const t={equal:0,insert:0,delete:0};for(const r of o)if("update"===r){const r=t.equal+t.insert,o=t.equal+t.delete,s=e.getChild(r);!s||s.is("uiElement")||s.is("rawElement")||this._updateElementMappings(s,i[o]),gn(n[r]),t.equal++}else t[r]++}}_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")?fo._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&&Wi(t.parent)&&is(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!is(e))throw new _("view-renderer-filler-was-lost",this);ns(e)?e.remove():e.data=e.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,i=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(i===t.getFillerOffset())return!1;const n=e.nodeBefore,r=e.nodeAfter;return!(n instanceof Mr||r instanceof Mr||d.isAndroid&&(n||r))}_updateText(e,t){const i=this.domConverter.findCorrespondingDomText(e);let n=this.domConverter.viewToDom(e).data;const r=t.inlineFillerPosition;r&&r.parent==e.parent&&r.offset==e.index&&(n=ts+n),us(i,n)}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const i=Array.from(t.attributes).map((e=>e.name)),n=e.getAttributeKeys();for(const i of n)this.domConverter.setDomElementAttribute(t,i,e.getAttribute(i),e);for(const n of i)e.hasAttribute(n)||this.domConverter.removeDomElementAttribute(t,n)}_updateChildren(e,t){const i=this.domConverter.mapViewToDom(e);if(!i)return;if(d.isAndroid){let e=null;for(const t of Array.from(i.childNodes)){if(e&&Wi(e)&&Wi(t)){i.normalize();break}e=t}}const n=t.inlineFillerPosition,r=i.childNodes,o=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));n&&n.parent===e&&cs(i.ownerDocument,o,n.offset);const s=this._diffNodeLists(r,o),a=this._findUpdateActions(s,r,o,hs);let l=0;const c=new Set;for(const e of a)"delete"===e?(c.add(r[l]),gn(r[l])):"equal"!==e&&"update"!==e||l++;l=0;for(const e of a)"insert"===e?(sn(i,l,o[l]),l++):"update"===e?(us(r[l],o[l].data),l++):"equal"===e&&(this._markDescendantTextToSync(this.domConverter.domToView(o[l])),l++);for(const e of c)e.parentNode||this.domConverter.unbindDomElement(e)}_diffNodeLists(e,t){return e=function(e,t){const i=Array.from(e);return 0!=i.length&&t?(i[i.length-1]==t&&i.pop(),i):i}(e,this._fakeSelectionContainer),m(e,t,gs.bind(null,this.domConverter))}_findUpdateActions(e,t,i,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let r=[],o=[],s=[];const a={equal:0,insert:0,delete:0};for(const l of e)"insert"===l?s.push(i[a.equal+a.insert]):"delete"===l?o.push(t[a.equal+a.delete]):(r=r.concat(m(o,s,n).map((e=>"equal"===e?"update":e))),r.push("equal"),o=[],s=[]),a[l]++;return r.concat(m(o,s,n).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(d.isBlink&&!d.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&&d.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 i=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(i,this.selection),!this._fakeSelectionNeedsUpdate(e))return;i.parentElement&&i.parentElement==e||e.appendChild(i),i.textContent=this.selection.fakeSelectionLabel||" ";const n=t.getSelection(),r=t.createRange();n.removeAllRanges(),r.selectNodeContents(i),n.addRange(r)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const i=this.domConverter.viewPositionToDom(this.selection.anchor),n=this.domConverter.viewPositionToDom(this.selection.focus);t.setBaseAndExtent(i.parent,i.offset,n.parent,n.offset),d.isGecko&&function(e,t){const i=e.parent;if(i.nodeType!=Node.ELEMENT_NODE||e.offset!=i.childNodes.length-1)return;const n=i.childNodes[e.offset];n&&"BR"==n.tagName&&t.addRange(t.getRangeAt(0))}(n,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,i=e.ownerDocument.getSelection();return!t||t.parentElement!==e||i.anchorNode!==t&&!t.contains(i.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const e of this.domDocuments){const t=e.getSelection();if(t.rangeCount){const i=e.activeElement,n=this.domConverter.mapDomToView(i);i&&n&&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 cs(e,t,i){const n=t instanceof Array?t:t.childNodes,r=n[i];if(Wi(r))return r.data=ts+r.data,r;{const r=e.createTextNode(ts);return Array.isArray(t)?n.splice(i,0,r):sn(t,i,r),r}}function ds(e,t){return zi(e)&&zi(t)&&!Wi(e)&&!Wi(t)&&!an(e)&&!an(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function hs(e,t){return zi(e)&&zi(t)&&Wi(e)&&Wi(t)}function gs(e,t,i){return t===i||(Wi(t)&&Wi(i)?t.data===i.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(i)))}function us(e,t){const i=e.data;if(i==t)return;const n=g(i,t);for(const t of n)"insert"===t.type?e.insertData(t.index,t.values.join("")):e.deleteData(t.index,t.howMany)}const ps=es(Ui.document),ms=Qo(Ui.document),ws=Xo(Ui.document),fs="data-ck-unsafe-attribute-",ys="data-ck-unsafe-element";class bs{constructor(e,{blockFillerMode:t,renderingMode:i="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new Vr,this._inlineObjectElementMatcher=new Vr,this._elementsWithTemporaryCustomProperties=new Set,this.document=e,this.renderingMode=i,this.blockFillerMode=t||("editing"===i?"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?Ui.document:Ui.document.implementation.createHTMLDocument("")}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new ko(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,i){return"data"===this.renderingMode||!(e=e.toLowerCase()).startsWith("on")&&("srcdoc"!==e||!t.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===i&&("src"===e||"srcset"===e)||"source"===i&&"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 i=(new DOMParser).parseFromString(t,"text/html"),n=i.createDocumentFragment(),r=i.body.childNodes;for(;r.length>0;)n.appendChild(r[0]);const o=i.createTreeWalker(n,NodeFilter.SHOW_ELEMENT),s=[];let a;for(;a=o.nextNode();)s.push(a);for(const e of s){for(const t of e.getAttributeNames())this.setDomElementAttribute(e,t,e.getAttribute(t));const t=e.tagName.toLowerCase();this._shouldRenameElement(t)&&(xs(t),e.replaceWith(this._createReplacementDomElement(t,e)))}for(;e.firstChild;)e.firstChild.remove();e.append(n)}viewToDom(e,t={}){if(e.is("$text")){const t=this._processDataFromViewText(e);return this._domDocument.createTextNode(t)}{const i=e;if(this.mapViewToDom(i)){if(!i.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(i);this._elementsWithTemporaryCustomProperties.add(i)}let n;if(i.is("documentFragment"))n=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(n,i);else{if(i.is("uiElement"))return n="$comment"===i.name?this._domDocument.createComment(i.getCustomProperty("$rawContent")):i.render(this._domDocument,this),t.bind&&this.bindElements(n,i),n;this._shouldRenameElement(i.name)?(xs(i.name),n=this._createReplacementDomElement(i.name)):n=i.hasAttribute("xmlns")?this._domDocument.createElementNS(i.getAttribute("xmlns"),i.name):this._domDocument.createElement(i.name),i.is("rawElement")&&i.render(n,this),t.bind&&this.bindElements(n,i);for(const e of i.getAttributeKeys())this.setDomElementAttribute(n,e,i.getAttribute(e),i)}if(!1!==t.withChildren)for(const e of this.viewChildrenToDom(i,t))n.appendChild(e);return n}}setDomElementAttribute(e,t,i,n){const r=this.shouldRenderAttribute(t,i,e.tagName.toLowerCase())||n&&n.shouldRenderUnsafeAttribute(t);r||v("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:i}),function(e){try{Ui.document.createAttribute(e)}catch(e){return!1}return!0}(t)?(e.hasAttribute(t)&&!r?e.removeAttribute(t):e.hasAttribute(fs+t)&&r&&e.removeAttribute(fs+t),e.setAttribute(r?t:fs+t,i)):v("domconverter-invalid-attribute-detected",{domElement:e,key:t,value:i})}removeDomElementAttribute(e,t){t!=ys&&(e.removeAttribute(t),e.removeAttribute(fs+t))}*viewChildrenToDom(e,t={}){const i=e.getFillerOffset&&e.getFillerOffset();let n=0;for(const r of e.getChildren()){i===n&&(yield this._getBlockFiller());const e=r.is("element")&&!!r.getCustomProperty("dataPipeline:transparentRendering")&&!Gn(r.getAttributes());e&&"data"==this.renderingMode?yield*this.viewChildrenToDom(r,t):(e&&v("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:r}),yield this.viewToDom(r,t)),n++}i===n&&(yield this._getBlockFiller())}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),i=this.viewPositionToDom(e.end),n=this._domDocument.createRange();return n.setStart(t.parent,t.offset),n.setEnd(i.parent,i.offset),n}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const i=this.findCorrespondingDomText(t);if(!i)return null;let n=e.offset;return is(i)&&(n+=7),{parent:i,offset:n}}{let i,n,r;if(0===e.offset){if(i=this.mapViewToDom(t),!i)return null;r=i.childNodes[0]}else{const t=e.nodeBefore;if(n=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(t),!n)return null;i=n.parentNode,r=n.nextSibling}return Wi(r)&&is(r)?{parent:r,offset:7}:{parent:i,offset:n?on(n)+1:0}}}domToView(e,t={}){const i=[],n=this._domToView(e,t,i),r=n.next().value;return r?(n.next(),this._processDomInlineNodes(null,i,t),r.is("$text")&&0==r.data.length?null:r):null}*domChildrenToView(e,t={},i=[]){for(let n=0;n<e.childNodes.length;n++){const r=e.childNodes[n],o=this._domToView(r,t,i),s=o.next().value;null!==s&&(this._isBlockViewElement(s)&&this._processDomInlineNodes(e,i,t),yield s,o.next())}this._processDomInlineNodes(e,i,t)}domSelectionToView(e){if(function(e){if(!d.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 ko([]);if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;Wi(t)&&(t=t.parentNode);const i=this.fakeSelectionToView(t);if(i)return i}const t=this.isDomSelectionBackward(e),i=[];for(let t=0;t<e.rangeCount;t++){const n=e.getRangeAt(t),r=this.domRangeToView(n);r&&i.push(r)}return new ko(i,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),i=this.domPositionToView(e.endContainer,e.endOffset);return t&&i?new yo(t,i):null}domPositionToView(e,t=0){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,on(e));const i=this.mapDomToView(e);if(i&&(i.is("uiElement")||i.is("rawElement")))return fo._createBefore(i);if(Wi(e)){if(ns(e))return this.domPositionToView(e.parentNode,on(e));const i=this.findCorrespondingViewText(e);let n=t;return i?(is(e)&&(n-=7,n=n<0?0:n),new fo(i,n)):null}if(0===t){const t=this.mapDomToView(e);if(t)return new fo(t,0)}else{const i=e.childNodes[t-1];if(Wi(i)&&ns(i)||i&&this.isBlockFiller(i))return this.domPositionToView(i.parentNode,on(i));const n=Wi(i)?this.findCorrespondingViewText(i):this.mapDomToView(i);if(n&&n.parent)return new fo(n.parent,n.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(ns(e))return null;const t=this.getHostViewElement(e);if(t)return t;const i=e.previousSibling;if(i){if(!this.isElement(i))return null;const e=this.mapDomToView(i);if(e){const t=e.nextSibling;return t instanceof Mr?t:null}}else{const t=this.mapDomToView(e.parentNode);if(t){const e=t.getChild(0);return e instanceof Mr?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:i}=Ui.window,n=[];_s(t,(e=>{const{scrollLeft:t,scrollTop:i}=e;n.push([t,i])})),t.focus(),_s(t,(e=>{const[t,i]=n.shift();e.scrollLeft=t,e.scrollTop=i})),Ui.window.scrollTo(e,i)}}_clearDomSelection(){const e=this.mapViewToDom(this.document.selection.editableElement);if(!e)return;const t=e.ownerDocument.defaultView.getSelection(),i=this.domSelectionToView(t);i&&i.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(ps):!("BR"!==e.tagName||!vs(e,this.blockElements)||1!==e.parentNode.childNodes.length)||e.isEqualNode(ws)||function(e,t){return e.isEqualNode(ms)&&vs(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 i=t.collapsed;return t.detach(),i}getHostViewElement(e){const t=function(e){const t=[];let i=e;for(;i&&i.nodeType!=Node.DOCUMENT_NODE;)t.unshift(i),i=i.parentNode;return t}(e);for(t.pop();t.length;){const e=t.pop(),i=this._domToViewMapping.get(e);if(i&&(i.is("uiElement")||i.is("rawElement")))return i}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 Qo(this._domDocument);case"markedNbsp":return Xo(this._domDocument);case"br":return es(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if(Wi(e)&&is(e)&&t<7)return!1;if(this.isElement(e)&&is(e.childNodes[t]))return!1;const i=this.mapDomToView(e);return!i||!i.is("uiElement")&&!i.is("rawElement")}*_domToView(e,t,i){if(this.isBlockFiller(e))return null;const n=this.getHostViewElement(e);if(n)return n;if(an(e)&&t.skipComments)return null;if(Wi(e)){if(ns(e))return null;{const t=e.data;if(""===t)return null;const n=new Mr(this.document,t);return i.push(n),n}}{let n=this.mapDomToView(e);if(n)return this._isInlineObjectElement(n)&&i.push(n),n;if(this.isDocumentFragment(e))n=new Fo(this.document),t.bind&&this.bindDocumentFragments(e,n);else{n=this._createViewElement(e,t),t.bind&&this.bindElements(e,n);const r=e.attributes;if(r)for(let e=r.length,t=0;t<e;t++)n._setAttribute(r[t].name,r[t].value);if(this._isViewElementWithRawContent(n,t))return n._setCustomProperty("$rawContent",e.innerHTML),this._isBlockViewElement(n)||i.push(n),n;if(an(e))return n._setCustomProperty("$rawContent",e.data),n}yield n;const r=[];if(!1!==t.withChildren)for(const i of this.domChildrenToView(e,t,r))n._appendChild(i);if(this._isInlineObjectElement(n))i.push(n);else for(const e of r)i.push(e)}}_processDomInlineNodes(e,t,i){if(!t.length)return;if(e&&!this.isDocumentFragment(e)&&!this._isBlockDomElement(e))return;let n=!1;for(let e=0;e<t.length;e++){const r=t[e];if(!r.is("$text")){n=!1;continue}let o,s=!1;if(ks(r,this.preElements))o=rs(r.data);else{o=r.data.replace(/[ \n\t\r]{1,}/g," "),s=/[^\S\u00A0]/.test(o.charAt(o.length-1));const a=e>0?t[e-1]:null,l=e+1<t.length?t[e+1]:null,c=!a||a.is("element")&&"br"==a.name||n,d=!l&&!is(r.data);!1!==i.withChildren&&(c&&(o=o.replace(/^ /,"")),d&&(o=o.replace(/ $/,""))),o=rs(o),o=o.replace(/ \u00A0/g," ");const h=l&&l.is("element")&&"br"!=l.name,g=l&&l.is("$text")&&" "==l.data.charAt(0);(/[ \u00A0]\u00A0$/.test(o)||!l||h||g)&&(o=o.replace(/\u00A0$/," ")),(c||a&&a.is("element")&&"br"!=a.name)&&(o=o.replace(/^\u00A0/," "))}0==o.length&&r.parent?(r._remove(),t.splice(e,1),e--):(r._data=o,n=s)}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 i=this._getTouchingInlineViewNode(e,!1);!(i&&i.is("$textProxy")&&this._nodeEndsWithSpace(i))&&i||(t=" "+t.substr(1))}if(" "==t.charAt(t.length-1)){const i=this._getTouchingInlineViewNode(e,!0),n=i&&i.is("$textProxy")&&" "==i.data.charAt(0);" "!=t.charAt(t.length-2)&&i&&!n||(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 i=new wo({startPosition:t?fo._createAfter(e):fo._createBefore(e),direction:t?"forward":"backward"});for(const e of i){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(an(e))return new zo(this.document,"$comment");const i=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new lo(this.document,i)}_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 i=this._domDocument.createElement("span");if(i.setAttribute(ys,e),t){for(;t.firstChild;)i.appendChild(t.firstChild);for(const e of t.getAttributeNames())i.setAttribute(e,t.getAttribute(e))}return i}}function ks(e,t){return e.getAncestors().some((e=>e.is("element")&&t.includes(e.name)))}function _s(e,t){let i=e;for(;i;)t(i),i=i.parentElement}function vs(e,t){const i=e.parentNode;return!!i&&!!i.tagName&&t.includes(i.tagName.toLowerCase())}function xs(e){"script"===e&&v("domconverter-unsafe-script-element-detected"),"style"===e&&v("domconverter-unsafe-style-element-detected")}class As extends(Di()){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] *")}}const Es=qn((function(e,t){it(t,Mt(t),e)}));class Cs{constructor(e,t,i){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,Es(this,i)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Ts extends As{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,i){this.isEnabled&&this.document.fire(e,new Cs(this.view,t,i))}}class Is extends Ts{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 Tn(this)}};this.fire(e.type,e,t)}}const Ss=function(){return ie.Date.now()};var Ps=/\s/,Rs=/^\s+/;const Os=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ps.test(e.charAt(t)););return t}(e)+1).replace(Rs,""):e};var Ms=/^[-+]0x[0-9a-f]+$/i,Bs=/^0b[01]+$/i,Vs=/^0o[0-7]+$/i,zs=parseInt;const Ns=function(e){if("number"==typeof e)return e;if(Lr(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Os(e);var i=Bs.test(e);return i||Vs.test(e)?zs(e.slice(2),i?2:8):Ms.test(e)?NaN:+e};var Ls=Math.max,Ds=Math.min;const Fs=function(e,t,i){var n,r,o,s,a,l,c=0,d=!1,h=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function u(t){var i=n,o=r;return n=r=void 0,c=t,s=e.apply(o,i)}function p(e){var i=e-l;return void 0===l||i>=t||i<0||h&&e-c>=o}function m(){var e=Ss();if(p(e))return w(e);a=setTimeout(m,function(e){var i=t-(e-l);return h?Ds(i,o-(e-c)):i}(e))}function w(e){return a=void 0,g&&n?u(e):(n=r=void 0,s)}function f(){var e=Ss(),i=p(e);if(n=arguments,r=this,l=e,i){if(void 0===a)return function(e){return c=e,a=setTimeout(m,t),d?u(e):s}(l);if(h)return clearTimeout(a),a=setTimeout(m,t),u(l)}return void 0===a&&(a=setTimeout(m,t)),s}return t=Ns(t)||0,N(i)&&(d=!!i.leading,o=(h="maxWait"in i)?Ls(Ns(i.maxWait)||0,t):o,g="trailing"in i?!!i.trailing:g),f.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=r=a=void 0},f.flush=function(){return void 0===a?s:w(Ss())},f};class js extends As{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=Fs((e=>{this.document.fire("selectionChangeDone",e)}),200)}observe(){const e=this.document;e.on("arrowKey",((t,i)=>{e.selection.isFake&&this.isEnabled&&i.preventDefault()}),{context:"$capture"}),e.on("arrowKey",((t,i)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(i.keyCode)}),{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,i=new ko(t.getRanges(),{backward:t.isBackward,fake:!1});e!=En.arrowleft&&e!=En.arrowup||i.setTo(i.getFirstPosition()),e!=En.arrowright&&e!=En.arrowdown||i.setTo(i.getLastPosition());const n={oldSelection:t,newSelection:i,domSelection:null};this.document.fire("selectionChange",n),this._fireSelectionChangeDoneDebounced(n)}}function Hs(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Ze;++t<i;)this.add(e[t])}Hs.prototype.add=Hs.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Hs.prototype.has=function(e){return this.__data__.has(e)};const Us=Hs,qs=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1},Ws=function(e,t){return e.has(t)},$s=function(e,t,i,n,r,o){var s=1&i,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var h=-1,g=!0,u=2&i?new Us:void 0;for(o.set(e,t),o.set(t,e);++h<a;){var p=e[h],m=t[h];if(n)var w=s?n(m,p,h,t,e,o):n(p,m,h,e,t,o);if(void 0!==w){if(w)continue;g=!1;break}if(u){if(!qs(t,(function(e,t){if(!Ws(u,t)&&(p===e||r(p,e,i,n,o)))return u.push(t)}))){g=!1;break}}else if(p!==m&&!r(p,m,i,n,o)){g=!1;break}}return o.delete(e),o.delete(t),g},Ks=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i},Js=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i};var Zs=ne?ne.prototype:void 0,Gs=Zs?Zs.valueOf:void 0,Ys=Object.prototype.hasOwnProperty,Qs="[object Arguments]",Xs="[object Array]",ea="[object Object]",ta=Object.prototype.hasOwnProperty;const ia=function(e,t,i,n,r,o){var s=he(e),a=he(t),l=s?Xs:di(e),c=a?Xs:di(t),d=(l=l==Qs?ea:l)==ea,h=(c=c==Qs?ea:c)==ea,g=l==c;if(g&&ht(e)){if(!ht(t))return!1;s=!0,d=!1}if(g&&!d)return o||(o=new Ye),s||vt(e)?$s(e,t,i,n,r,o):function(e,t,i,n,r,o,s){switch(i){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||!o(new gi(e),new gi(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xe(+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=Ks;case"[object Set]":var l=1&n;if(a||(a=Js),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var d=$s(a(e),a(t),n,r,o,s);return s.delete(e),d;case"[object Symbol]":if(Gs)return Gs.call(e)==Gs.call(t)}return!1}(e,t,l,i,n,r,o);if(!(1&i)){var u=d&&ta.call(e,"__wrapped__"),p=h&&ta.call(t,"__wrapped__");if(u||p){var m=u?e.value():e,w=p?t.value():t;return o||(o=new Ye),r(m,w,i,n,o)}}return!!g&&(o||(o=new Ye),function(e,t,i,n,r,o){var s=1&i,a=Kt(e),l=a.length;if(l!=Kt(t).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in t:Ys.call(t,d)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var u=!0;o.set(e,t),o.set(t,e);for(var p=s;++c<l;){var m=e[d=a[c]],w=t[d];if(n)var f=s?n(w,m,d,t,e,o):n(m,w,d,e,t,o);if(!(void 0===f?m===w||r(m,w,i,n,o):f)){u=!1;break}p||(p="constructor"==d)}if(u&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(u=!1)}return o.delete(e),o.delete(t),u}(e,t,i,n,r,o))},na=function e(t,i,n,r,o){return t===i||(null==t||null==i||!ge(t)&&!ge(i)?t!=t&&i!=i:ia(t,i,n,r,e,o))},ra=function(e,t,i){var n=(i="function"==typeof i?i:void 0)?i(e,t):void 0;return void 0===n?na(e,t,void 0,i):!!n};class oa extends As{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,i=new Set,n=new Set;for(const i of e){const e=t.mapDomToView(i.target);e&&(e.is("uiElement")||e.is("rawElement")||"childList"!==i.type||this._isBogusBrMutation(i)||n.add(e))}for(const r of e){const e=t.mapDomToView(r.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===r.type){const e=t.findCorrespondingViewText(r.target);e&&!n.has(e.parent)?i.add(e):!e&&is(r.target)&&n.add(t.mapDomToView(r.target.parentNode))}}let r=!1;for(const e of i)r=!0,this.renderer.markToSync("text",e);for(const e of n){const i=t.mapViewToDom(e),n=Array.from(e.getChildren()),o=Array.from(t.domChildrenToView(i,{withChildren:!1}));ra(n,o,sa)||(r=!0,this.renderer.markToSync("children",e))}r&&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 sa(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}class aa extends Ts{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",((i,n)=>{const r=t.selection.editableElement;null!==r&&r!==n.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 la extends As{constructor(e){super(e),this.mutationObserver=e.getObserver(oa),this.focusObserver=e.getObserver(aa),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Fs((e=>{this.document.fire("selectionChangeDone",e)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Fs((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(e){const t=e.ownerDocument,i=()=>{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",i,{priority:"highest",useCapture:!0}),this.listenTo(e,"keyup",i,{priority:"highest",useCapture:!0}),this._documents.has(t)||(this.listenTo(t,"mouseup",i,{priority:"highest",useCapture:!0}),this.listenTo(t,"selectionchange",((e,i)=>{this.document.isComposing&&!d.isAndroid||(this._handleSelectionChange(i,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 i=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(i.anchorNode))return;this.mutationObserver.flush();const n=this.domConverter.domSelectionToView(i);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(n)||!this.domConverter.isDomSelectionCorrect(i))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(n))this.view.forceRender();else{const e={oldSelection:this.selection,newSelection:n,domSelection:i};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class ca extends Ts{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 da{constructor(e,t={}){this._files=t.cacheFiles?ha(e):null,this._native=e}get files(){return this._files||(this._files=ha(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,i){this._native.setDragImage(e,t,i)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function ha(e){const t=Array.from(e.files||[]),i=Array.from(e.items||[]);return t.length?t:i.filter((e=>"file"===e.kind)).map((e=>e.getAsFile()))}class ga extends Ts{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(e){const t=e.getTargetRanges(),i=this.view,n=i.document;let r=null,o=null,s=[];if(e.dataTransfer&&(r=new da(e.dataTransfer)),null!==e.data?o=e.data:r&&(o=r.getData("text/plain")),n.selection.isFake)s=Array.from(n.selection.getRanges());else if(t.length)s=t.map((e=>{const t=i.domConverter.domPositionToView(e.startContainer,e.startOffset),n=i.domConverter.domPositionToView(e.endContainer,e.endOffset);return t?i.createRange(t,n):n?i.createRange(n):void 0})).filter((e=>!!e));else if(d.isAndroid){const t=e.target.ownerDocument.defaultView.getSelection();s=Array.from(i.domConverter.domSelectionToView(t).getRanges())}if(d.isAndroid&&"insertCompositionText"==e.inputType&&o&&o.endsWith("\n"))this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:[i.createRange(s[0].end)]});else if("insertText"==e.inputType&&o&&o.includes("\n")){const t=o.split(/\n{1,2}/g);let i=s;for(let o=0;o<t.length;o++){const s=t[o];""!=s&&(this.fire(e.type,e,{data:s,dataTransfer:r,targetRanges:i,inputType:e.inputType,isComposing:e.isComposing}),i=[n.selection.getFirstRange()]),o+1<t.length&&(this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:i}),i=[n.selection.getFirstRange()])}}else this.fire(e.type,e,{data:o,dataTransfer:r,targetRanges:s,inputType:e.inputType,isComposing:e.isComposing})}}class ua extends As{constructor(e){super(e),this.document.on("keydown",((e,t)=>{if(this.isEnabled&&((i=t.keyCode)==En.arrowright||i==En.arrowleft||i==En.arrowup||i==En.arrowdown)){const i=new vo(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(i,t),i.stop.called&&e.stop()}var i}))}observe(){}stopObserving(){}}class pa extends As{constructor(e){super(e);const t=this.document;t.on("keydown",((e,i)=>{if(!this.isEnabled||i.keyCode!=En.tab||i.ctrlKey)return;const n=new vo(t,"tab",t.selection.getFirstRange());t.fire(n,i),n.stop.called&&e.stop()}))}observe(){}stopObserving(){}}const ma=function(e){return Pi(e,5)};class wa extends(q()){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 So(e),this.domConverter=new bs(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new ls(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new jo(this.document),this.addObserver(oa),this.addObserver(aa),this.addObserver(la),this.addObserver(Is),this.addObserver(js),this.addObserver(ca),this.addObserver(ua),this.addObserver(ga),this.addObserver(pa),this.document.on("arrowKey",os,{priority:"low"}),function(e){e.document.on("arrowKey",((t,i)=>function(e,t,i){if(t.keyCode==En.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),n=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(n||t.shiftKey){const t=e.focusNode,r=e.focusOffset,o=i.domPositionToView(t,r);if(null===o)return;let s=!1;const a=o.getLastMatchingPosition((e=>(e.item.is("uiElement")&&(s=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement")))));if(s){const t=i.viewPositionToDom(a);n?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}(0,i,e.domConverter)),{priority:"low"})}(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})),d.isiOS&&this.listenTo(this.document,"blur",((e,t)=>{this.domConverter.mapDomToView(t.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}))}attachDomRoot(e,t="main"){const i=this.document.getRoot(t);i._name=e.tagName.toLowerCase();const n={};for(const{name:t,value:r}of Array.from(e.attributes))n[t]=r,"class"===t?this._writer.addClass(r.split(" "),i):this._writer.setAttribute(t,r,i);this._initialDomRootAttributes.set(e,n);const r=()=>{this._writer.setAttribute("contenteditable",(!i.isReadOnly).toString(),i),i.isReadOnly?this._writer.addClass("ck-read-only",i):this._writer.removeClass("ck-read-only",i)};r(),this.domRoots.set(t,e),this.domConverter.bindElements(e,i),this._renderer.markToSync("children",i),this._renderer.markToSync("attributes",i),this._renderer.domDocuments.add(e.ownerDocument),i.on("change:children",((e,t)=>this._renderer.markToSync("children",t))),i.on("change:attributes",((e,t)=>this._renderer.markToSync("attributes",t))),i.on("change:text",((e,t)=>this._renderer.markToSync("text",t))),i.on("change:isReadOnly",(()=>this.change(r))),i.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const i of this._observers.values())i.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach((({name:e})=>t.removeAttribute(e)));const i=this._initialDomRootAttributes.get(t);for(const e in i)t.setAttribute(e,i[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,i]of this.domRoots)t.observe(i,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:i=20,ancestorOffset:n=20}={}){const r=this.document.selection.getFirstRange();if(!r)return;const o=ma({alignToTop:e,forceScroll:t,viewportOffset:i,ancestorOffset:n});"number"==typeof i&&(i={top:i,bottom:i,left:i,right:i});const s={target:this.domConverter.viewRangeToDom(r),viewportOffset:i,ancestorOffset:n,alignToTop:e,forceScroll:t};this.fire("scrollToTheSelection",s,o),function({target:e,viewportOffset:t=0,ancestorOffset:i=0,alignToTop:n,forceScroll:r}){const o=bn(e);let s=o,a=null;for(t=function(e){return"number"==typeof e?{top:e,bottom:e,left:e,right:e}:e}(t);s;){let l;l=kn(s==o?e:a),pn({parent:l,getRect:()=>_n(e,s),alignToTop:n,ancestorOffset:i,forceScroll:r});const c=_n(e,s);if(un({window:s,rect:c,viewportOffset:t,alignToTop:n,forceScroll:r}),s.parent!=s){if(a=s.frameElement,s=s.parent,!a)return}else s=null}}(s)}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 _("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){_.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(aa).flush(),this.change((()=>{}))}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return fo._createAt(e,t)}createPositionAfter(e){return fo._createAfter(e)}createPositionBefore(e){return fo._createBefore(e)}createRange(e,t){return new yo(e,t)}createRangeOn(e){return yo._createOn(e)}createRangeIn(e){return yo._createIn(e)}createSelection(...e){return new ko(...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 fa{is(){throw new Error("is() method is abstract")}}class ya extends fa{constructor(e){super(),this.parent=null,this._attrs=Xn(e)}get document(){return null}get index(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new _("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 _("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 i=e.includeSelf?this:this.parent;for(;i;)t[e.parentFirst?"push":"unshift"](i),i=i.parent;return t}getCommonAncestor(e,t={}){const i=this.getAncestors(t),n=e.getAncestors(t);let r=0;for(;i[r]==n[r]&&i[r];)r++;return 0===r?null:i[r-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),i=e.getPath(),n=Q(t,i);switch(n){case"prefix":return!0;case"extension":return!1;default:return t[n]<i[n]}}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=Xn(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}ya.prototype.is=function(e){return"node"===e||"model:node"===e};class ba{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 _("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const i of this._nodes){if(e>=t&&e<t+i.offsetSize)return this.getNodeIndex(i);t+=i.offsetSize}if(t!=e)throw new _("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 ya))throw new _("model-nodelist-insertnodes-not-node",this);this._nodes=function(e,t,i,n){if(Math.max(t.length,e.length)>1e4)return e.slice(0,i).concat(t).concat(e.slice(i+0,e.length));{const n=Array.from(e);return n.splice(i,0,...t),n}}(this._nodes,Array.from(t),e)}_removeNodes(e,t=1){return this._nodes.splice(e,t)}toJSON(){return this._nodes.map((e=>e.toJSON()))}}class ka extends ya{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 ka(this.data,this.getAttributes())}static fromJSON(e){return new ka(e.data,e.attributes)}}ka.prototype.is=function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e};class _a extends fa{constructor(e,t,i){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new _("model-textproxy-wrong-offsetintext",this);if(i<0||t+i>e.offsetSize)throw new _("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+i),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 i=e.includeSelf?this:this.parent;for(;i;)t[e.parentFirst?"push":"unshift"](i),i=i.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()}}_a.prototype.is=function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e};class va extends ya{constructor(e,t,i){super(t),this._children=new ba,this.name=e,i&&this._insertChild(0,i)}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 i of e)t=t.getChild(t.offsetToIndex(i));return t}findAncestor(e,t={}){let i=t.includeSelf?this:this.parent;for(;i;){if(i.name===e)return i;i=i.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 va(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const i=function(e){return"string"==typeof e?[new ka(e)]:(X(e)||(e=[e]),Array.from(e).map((e=>"string"==typeof e?new ka(e):e instanceof _a?new ka(e.data,e.getAttributes()):e)))}(t);for(const e of i)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,i)}_removeChildren(e,t=1){const i=this._children._removeNodes(e,t);for(const e of i)e.parent=null;return i}static fromJSON(e){let t;if(e.children){t=[];for(const i of e.children)i.name?t.push(va.fromJSON(i)):t.push(ka.fromJSON(i))}return new va(e.name,e.attributes,t)}}va.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 xa{constructor(e){if(!e||!e.boundaries&&!e.startPosition)throw new _("model-tree-walker-no-start-position",null);const t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new _("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=Ea._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,i,n,r;do{n=this.position,r=this._visitedParent,({done:t,value:i}=this.next())}while(!t&&e(i));t||(this._position=n,this._visitedParent=r)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),i=this._visitedParent;if(null===i.parent&&t.offset===i.maxOffset)return{done:!0,value:void 0};if(i===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const n=Ca(t,i),r=n||Ta(t,i,n);if(r instanceof va){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=r;return this._position=t,Aa("elementStart",r,e,t,1)}if(r instanceof ka){let n;if(this.singleCharacters)n=1;else{let e=r.endOffset;this._boundaryEndParent==i&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),n=e-t.offset}const o=t.offset-r.startOffset,s=new _a(r,o,n);return t.offset+=n,this._position=t,Aa("text",s,e,t,n)}return t.path.pop(),t.offset++,this._position=t,this._visitedParent=i.parent,this.ignoreElementEnd?this._next():Aa("elementEnd",i,e,t)}_previous(){const e=this.position,t=this.position.clone(),i=this._visitedParent;if(null===i.parent&&0===t.offset)return{done:!0,value:void 0};if(i==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const n=t.parent,r=Ca(t,n),o=r||Ia(t,n,r);if(o instanceof va)return t.offset--,this.shallow?(this._position=t,Aa("elementStart",o,e,t,1)):(t.path.push(o.maxOffset),this._position=t,this._visitedParent=o,this.ignoreElementEnd?this._previous():Aa("elementEnd",o,e,t));if(o instanceof ka){let n;if(this.singleCharacters)n=1;else{let e=o.startOffset;this._boundaryStartParent==i&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),n=t.offset-e}const r=t.offset-o.startOffset,s=new _a(o,r-n,n);return t.offset-=n,this._position=t,Aa("text",s,e,t,n)}return t.path.pop(),this._position=t,this._visitedParent=i.parent,Aa("elementStart",i,e,t,1)}}function Aa(e,t,i,n,r){return{done:!1,value:{type:e,item:t,previousPosition:i,nextPosition:n,length:r}}}class Ea extends fa{constructor(e,t,i="toNone"){if(super(),!e.is("element")&&!e.is("documentFragment"))throw new _("model-position-root-invalid",e);if(!(t instanceof Array)||0===t.length)throw new _("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=i}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 _("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new _("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Ca(this,this.parent)}get nodeAfter(){const e=this.parent;return Ta(this,e,Ca(this,e))}get nodeBefore(){const e=this.parent;return Ia(this,e,Ca(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=Q(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 i=new xa(t);return i.skip(e),i.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=Q(this.path,e.path),i="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,i)}getCommonAncestor(e){const t=this.getAncestors(),i=e.getAncestors();let n=0;for(;t[n]==i[n]&&t[n];)n++;return 0===n?null:t[n-1]}getShiftedBy(e){const t=this.clone(),i=t.offset+e;return t.offset=i<0?0:i,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 i=0;i<t;i++){const t=this.path[i]-e.path[i];if(t<-1||t>1)return!1;if(1===t)return Sa(e,this,i);if(-1===t)return Sa(this,e,i)}return this.path.length===e.path.length||(this.path.length>e.path.length?Pa(this.path,t):Pa(e.path,t))}hasSameParentAs(e){return this.root===e.root&&"same"==Q(this.getParentPath(),e.getParentPath())}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=Ea._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 i;return t.containsPosition(this)||t.start.isEqual(this)?(i=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(i=i._getTransformedByDeletion(e.deletionPosition,1))):i=this.isEqual(e.deletionPosition)?Ea._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),i}_getTransformedByDeletion(e,t){const i=Ea._createAt(this);if(this.root!=e.root)return i;if("same"==Q(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;i.offset-=t}}else if("prefix"==Q(e.getParentPath(),this.getParentPath())){const n=e.path.length-1;if(e.offset<=this.path[n]){if(e.offset+t>this.path[n])return null;i.path[n]-=t}}return i}_getTransformedByInsertion(e,t){const i=Ea._createAt(this);if(this.root!=e.root)return i;if("same"==Q(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(i.offset+=t);else if("prefix"==Q(e.getParentPath(),this.getParentPath())){const n=e.path.length-1;e.offset<=this.path[n]&&(i.path[n]+=t)}return i}_getTransformedByMove(e,t,i){if(t=t._getTransformedByDeletion(e,i),e.isEqual(t))return Ea._createAt(this);const n=this._getTransformedByDeletion(e,i);return null===n||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(i).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):n._getTransformedByInsertion(t,i)}_getCombined(e,t){const i=e.path.length-1,n=Ea._createAt(t);return n.stickiness=this.stickiness,n.offset=n.offset+this.path[i]-e.offset,n.path=[...n.path,...this.path.slice(i+1)],n}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,i="toNone"){if(e instanceof Ea)return new Ea(e.root,e.path,e.stickiness);{const n=e;if("end"==t)t=n.maxOffset;else{if("before"==t)return this._createBefore(n,i);if("after"==t)return this._createAfter(n,i);if(0!==t&&!t)throw new _("model-createpositionat-offset-required",[this,e])}if(!n.is("element")&&!n.is("documentFragment"))throw new _("model-position-parent-incorrect",[this,e]);const r=n.getPath();return r.push(t),new this(n.root,r,i)}}static _createAfter(e,t){if(!e.parent)throw new _("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 _("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){const i=new Ea(t.graveyard,e.path);return i.stickiness=e.stickiness,i}if(!t.getRoot(e.root))throw new _("model-position-fromjson-no-root",t,{rootName:e.root});return new Ea(t.getRoot(e.root),e.path,e.stickiness)}}function Ca(e,t){const i=t.getChild(t.offsetToIndex(e.offset));return i&&i.is("$text")&&i.startOffset<e.offset?i:null}function Ta(e,t,i){return null!==i?null:t.getChild(t.offsetToIndex(e.offset))}function Ia(e,t,i){return null!==i?null:t.getChild(t.offsetToIndex(e.offset)-1)}function Sa(e,t,i){return i+1!==e.path.length&&!!Pa(t.path,i+1)&&!!function(e,t){let i=e.parent,n=e.path.length-1,r=0;for(;n>=t;){if(e.path[n]+r!==i.maxOffset)return!1;r=1,n--,i=i.parent}return!0}(e,i+1)}function Pa(e,t){for(;t<e.length;){if(0!==e[t])return!1;t++}return!0}Ea.prototype.is=function(e){return"position"===e||"model:position"===e};class Ra extends fa{constructor(e,t){super(),this.start=Ea._createAt(e),this.end=t?Ea._createAt(t):Ea._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new xa({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==Q(this.start.getParentPath(),this.end.getParentPath())}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 i=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),n=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return i&&n}containsItem(e){const t=Ea._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 Ra(this.start,e.start)),this.containsPosition(e.end)&&t.push(new Ra(e.end,this.end))):t.push(new Ra(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,i=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(i=e.end),new Ra(t,i)}return null}getJoined(e,t=!1){let i=this.isIntersecting(e);if(i||(i=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)),!i)return null;let n=this.start,r=this.end;return e.start.isBefore(n)&&(n=e.start),e.end.isAfter(r)&&(r=e.end),new Ra(n,r)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,i=Ea._createAt(this.start);let n=i.parent;for(;i.path.length>t+1;){const t=n.maxOffset-i.offset;0!==t&&e.push(new Ra(i,i.getShiftedBy(t))),i.path=i.path.slice(0,-1),i.offset++,n=n.parent}for(;i.path.length<=this.end.path.length;){const t=this.end.path[i.path.length-1],n=t-i.offset;0!==n&&e.push(new Ra(i,i.getShiftedBy(n))),i.offset=t,i.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new xa(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new xa(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new xa(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 Ra(this.start,this.end)]}getTransformedByOperations(e){const t=[new Ra(this.start,this.end)];for(const i of e)for(let e=0;e<t.length;e++){const n=t[e].getTransformedByOperation(i);t.splice(e,1,...n),e+=n.length-1}for(let e=0;e<t.length;e++){const i=t[e];for(let n=e+1;n<t.length;n++){const e=t[n];(i.containsRange(e)||e.containsRange(i)||i.isEqual(e))&&t.splice(n,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 i=e.sourcePosition,n=e.howMany,r=e.targetPosition;return this._getTransformedByMove(i,r,n,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let i=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(i=this.end.getShiftedBy(1)),t.root!=i.root&&(i=this.end.getShiftedBy(-1)),new Ra(t,i)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new Ra(this.start);let t=this.start._getTransformedByMergeOperation(e),i=this.end._getTransformedByMergeOperation(e);return t.root!=i.root&&(i=this.end.getShiftedBy(-1)),t.isAfter(i)?(e.sourcePosition.isBefore(e.targetPosition)?(t=Ea._createAt(i),t.offset=0):(e.deletionPosition.isEqual(t)||(i=e.deletionPosition),t=e.targetPosition),new Ra(t,i)):new Ra(t,i)}_getTransformedByInsertion(e,t,i=!1){if(i&&this.containsPosition(e))return[new Ra(this.start,e),new Ra(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const i=new Ra(this.start,this.end);return i.start=i.start._getTransformedByInsertion(e,t),i.end=i.end._getTransformedByInsertion(e,t),[i]}}_getTransformedByMove(e,t,i,n=!1){if(this.isCollapsed){const n=this.start._getTransformedByMove(e,t,i);return[new Ra(n)]}const r=Ra._createFromPositionAndShift(e,i),o=t._getTransformedByDeletion(e,i);if(this.containsPosition(t)&&!n&&(r.containsPosition(this.start)||r.containsPosition(this.end))){const n=this.start._getTransformedByMove(e,t,i),r=this.end._getTransformedByMove(e,t,i);return[new Ra(n,r)]}let s;const a=this.getDifference(r);let l=null;const c=this.getIntersection(r);if(1==a.length?l=new Ra(a[0].start._getTransformedByDeletion(e,i),a[0].end._getTransformedByDeletion(e,i)):2==a.length&&(l=new Ra(this.start,this.end._getTransformedByDeletion(e,i))),s=l?l._getTransformedByInsertion(o,i,null!==c||n):[],c){const e=new Ra(c.start._getCombined(r.start,o),c.end._getCombined(r.start,o));2==s.length?s.splice(1,0,e):s.push(e)}return s}_getTransformedByDeletion(e,t){let i=this.start._getTransformedByDeletion(e,t),n=this.end._getTransformedByDeletion(e,t);return null==i&&null==n?null:(null==i&&(i=e),null==n&&(n=e),new Ra(i,n))}static _createFromPositionAndShift(e,t){const i=e,n=e.getShiftedBy(t);return t>0?new this(i,n):new this(n,i)}static _createIn(e){return new this(Ea._createAt(e,0),Ea._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(Ea._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new _("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 i=e.indexOf(t),n=new this(t.start,t.end);if(i>0)for(let t=i-1;e[t].end.isEqual(n.start);t++)n.start=Ea._createAt(e[t].start);for(let t=i+1;t<e.length&&e[t].start.isEqual(n.end);t++)n.end=Ea._createAt(e[t].end);return n}static fromJSON(e,t){return new this(Ea.fromJSON(e.start,t),Ea.fromJSON(e.end,t))}}Ra.prototype.is=function(e){return"range"===e||"model:range"===e};class Oa extends(S()){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 i=this._modelToViewMapping.get(t.modelPosition.parent);if(!i)throw new _("mapping-model-position-view-parent-not-found",this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(i,t.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((e,t)=>{if(t.modelPosition)return;const i=this.findMappedViewAncestor(t.viewPosition),n=this._viewToModelMapping.get(i),r=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,i);t.modelPosition=Ea._createAt(n,r)}),{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){const i=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(i)==e&&this._modelToViewMapping.delete(i))}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const i=this._markerNameToElements.get(t)||new Set;i.add(e);const n=this._elementToMarkerNames.get(e)||new Set;n.add(t),this._markerNameToElements.set(t,i),this._elementToMarkerNames.set(e,n)}unbindElementFromMarkerName(e,t){const i=this._markerNameToElements.get(t);i&&(i.delete(e),0==i.size&&this._markerNameToElements.delete(t));const n=this._elementToMarkerNames.get(e);n&&(n.delete(t),0==n.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 Ra(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new yo(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 i={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",i),i.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const i=new Set;for(const e of t)if(e.is("attributeElement"))for(const t of e.getElementsWithSameId())i.add(t);else i.add(e);return i}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,i){if(i!=e)return this._toModelOffset(e.parent,e.index,i)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;let n=0;for(let i=0;i<t;i++)n+=this.getModelLength(e.getChild(i));return n}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 i of e.getChildren())t+=this.getModelLength(i);return t}}findPositionIn(e,t){let i,n=0,r=0,o=0;if(e.is("$text"))return new fo(e,t);for(;r<t;)i=e.getChild(o),n=this.getModelLength(i),r+=n,o++;return r==t?this._moveViewPositionToTextNode(new fo(e,o)):this.findPositionIn(i,t-(r-n))}_moveViewPositionToTextNode(e){const t=e.nodeBefore,i=e.nodeAfter;return t instanceof Mr?new fo(t,t.data.length):i instanceof Mr?new fo(i,0):e}}class Ma{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=Ba(t),e instanceof _a&&(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=Ba(t),e instanceof _a&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=Ba(t),e instanceof _a&&(e=this._getSymbolForTextProxy(e));const i=this._consumable.get(e);if(void 0===i)return null;const n=i.get(t);return void 0===n?null:n}revert(e,t){t=Ba(t),e instanceof _a&&(e=this._getSymbolForTextProxy(e));const i=this.test(e,t);return!1===i?(this._consumable.get(e).set(t,!0),!0):!0!==i&&null}verifyAllConsumed(e){const t=[];for(const[i,n]of this._consumable)for(const[r,o]of n){const n=r.split(":")[0];o&&e==n&&t.push({event:r,item:i.name||i.description})}if(t.length)throw new _("conversion-model-consumable-not-consumed",null,{items:t})}_getSymbolForTextProxy(e){let t=null;const i=this._textProxyRegistry.get(e.startOffset);if(i){const n=i.get(e.endOffset);n&&(t=n.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e)),t}_addSymbolForTextProxy(e){const t=e.startOffset,i=e.endOffset,n=e.parent,r=Symbol("$textProxy:"+e.data);let o,s;return o=this._textProxyRegistry.get(t),o||(o=new Map,this._textProxyRegistry.set(t,o)),s=o.get(i),s||(s=new Map,o.set(i,s)),s.set(n,r),r}}function Ba(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]}class Va extends(S()){constructor(e){super(),this._conversionApi={dispatcher:this,...e},this._firedEventsMap=new WeakMap}convertChanges(e,t,i){const n=this._createConversionApi(i,e.getRefreshedItems());for(const t of e.getMarkersToRemove())this._convertMarkerRemove(t.name,t.range,n);const r=this._reduceChanges(e.getChanges());for(const e of r)"insert"===e.type?this._convertInsert(Ra._createFromPositionAndShift(e.position,e.length),n):"reinsert"===e.type?this._convertReinsert(Ra._createFromPositionAndShift(e.position,e.length),n):"remove"===e.type?this._convertRemove(e.position,e.length,e.name,n):this._convertAttribute(e.range,e.attributeKey,e.attributeOldValue,e.attributeNewValue,n);n.mapper.flushDeferredBindings();for(const e of n.mapper.flushUnboundMarkerNames()){const i=t.get(e).getRange();this._convertMarkerRemove(e,i,n),this._convertMarkerAdd(e,i,n)}for(const t of e.getMarkersToAdd())this._convertMarkerAdd(t.name,t.range,n);n.consumable.verifyAllConsumed("insert")}convert(e,t,i,n={}){const r=this._createConversionApi(i,void 0,n);this._convertInsert(e,r);for(const[e,i]of t)this._convertMarkerAdd(e,i,r);r.consumable.verifyAllConsumed("insert")}convertSelection(e,t,i){const n=this._createConversionApi(i);this.fire("cleanSelection",{selection:e},n);const r=e.getFirstPosition().root;if(!n.mapper.toViewElement(r))return;const o=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this._addConsumablesForSelection(n.consumable,e,o),this.fire("selection",{selection:e},n),e.isCollapsed){for(const t of o)if(n.consumable.test(e,"addMarker:"+t.name)){const i=t.getRange();if(!za(e.getFirstPosition(),t,n.mapper))continue;const r={item:e,markerName:t.name,markerRange:i};this.fire(`addMarker:${t.name}`,r,n)}for(const t of e.getAttributeKeys())if(n.consumable.test(e,"attribute:"+t)){const i={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.fire(`attribute:${t}:$text`,i,n)}}}_convertInsert(e,t,i={}){i.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,e);for(const i of Array.from(e.getWalker({shallow:!0})).map(Na))this._testAndFire("insert",i,t)}_convertRemove(e,t,i,n){this.fire(`remove:${i}`,{position:e,length:t},n)}_convertAttribute(e,t,i,n,r){this._addConsumablesForRange(r.consumable,e,`attribute:${t}`);for(const o of e){const e={item:o.item,range:Ra._createFromPositionAndShift(o.previousPosition,o.length),attributeKey:t,attributeOldValue:i,attributeNewValue:n};this._testAndFire(`attribute:${t}`,e,r)}}_convertReinsert(e,t){const i=Array.from(e.getWalker({shallow:!0}));this._addConsumablesForInsert(t.consumable,i);for(const e of i.map(Na))this._testAndFire("insert",{...e,reconversion:!0},t)}_convertMarkerAdd(e,t,i){if("$graveyard"==t.root.rootName)return;const n=`addMarker:${e}`;if(i.consumable.add(t,n),this.fire(n,{markerName:e,markerRange:t},i),i.consumable.consume(t,n)){this._addConsumablesForRange(i.consumable,t,n);for(const r of t.getItems()){if(!i.consumable.test(r,n))continue;const o={item:r,range:Ra._createOn(r),markerName:e,markerRange:t};this.fire(n,o,i)}}}_convertMarkerRemove(e,t,i){"$graveyard"!=t.root.rootName&&this.fire(`removeMarker:${e}`,{markerName:e,markerRange:t},i)}_reduceChanges(e){const t={changes:e};return this.fire("reduceChanges",t),t.changes}_addConsumablesForInsert(e,t){for(const i of t){const t=i.item;if(null===e.test(t,"insert")){e.add(t,"insert");for(const i of t.getAttributeKeys())e.add(t,"attribute:"+i)}}return e}_addConsumablesForRange(e,t,i){for(const n of t.getItems())e.add(n,i);return e}_addConsumablesForSelection(e,t,i){e.add(t,"selection");for(const n of i)e.add(t,"addMarker:"+n.name);for(const i of t.getAttributeKeys())e.add(t,"attribute:"+i);return e}_testAndFire(e,t,i){const n=function(e,t){return`${e}:${t.item.is("element")?t.item.name:"$text"}`}(e,t),r=t.item.is("$textProxy")?i.consumable._getSymbolForTextProxy(t.item):t.item,o=this._firedEventsMap.get(i),s=o.get(r);if(s){if(s.has(n))return;s.add(n)}else o.set(r,new Set([n]));this.fire(n,t,i)}_testAndFireAddAttributes(e,t){const i={item:e,range:Ra._createOn(e)};for(const e of i.item.getAttributeKeys())i.attributeKey=e,i.attributeOldValue=null,i.attributeNewValue=i.item.getAttribute(e),this._testAndFire(`attribute:${e}`,i,t)}_createConversionApi(e,t=new Set,i={}){const n={...this._conversionApi,consumable:new Ma,writer:e,options:i,convertItem:e=>this._convertInsert(Ra._createOn(e),n),convertChildren:e=>this._convertInsert(Ra._createIn(e),n,{doNotAddConsumables:!0}),convertAttributes:e=>this._testAndFireAddAttributes(e,n),canReuseView:e=>!t.has(n.mapper.toModelElement(e))};return this._firedEventsMap.set(n,new Map),n}}function za(e,t,i){const n=t.getRange(),r=Array.from(e.getAncestors());return r.shift(),r.reverse(),!r.some((e=>{if(n.containsItem(e))return!!i.toViewElement(e).getCustomProperty("addHighlight")}))}function Na(e){return{item:e.item,range:Ra._createFromPositionAndShift(e.previousPosition,e.length)}}class La extends(S(fa)){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 i=!1;for(const n of e._ranges)if(t.isEqual(n)){i=!0;break}if(!i)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new Ra(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 Ra(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 Ra(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,i,n]=e;if("object"==typeof i&&(n=i,i=void 0),null===t)this._setRanges([]);else if(t instanceof La)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof Ra)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof Ea)this._setRanges([new Ra(t)]);else if(t instanceof ya){const e=!!n&&!!n.backward;let r;if("in"==i)r=Ra._createIn(t);else if("on"==i)r=Ra._createOn(t);else{if(void 0===i)throw new _("model-selection-setto-required-second-parameter",[this,t]);r=new Ra(Ea._createAt(t,i))}this._setRanges([r],e)}else{if(!X(t))throw new _("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,n&&!!n.backward)}}_setRanges(e,t=!1){const i=Array.from(e),n=i.some((t=>{if(!(t instanceof Ra))throw new _("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every((e=>!e.isEqual(t)))}));(i.length!==this._ranges.length||n)&&(this._replaceAllRanges(i),this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0}))}setFocus(e,t){if(null===this.anchor)throw new _("model-selection-setfocus-no-ranges",[this,e]);const i=Ea._createAt(e,t);if("same"==i.compareWith(this.focus))return;const n=this.anchor;this._ranges.length&&this._popRange(),"before"==i.compareWith(n)?(this._pushRange(new Ra(i,n)),this._lastRangeBackward=!0):(this._pushRange(new Ra(n,i)),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 i=ja(t.start,e);Ua(i,t)&&(yield i);for(const i of t.getWalker()){const n=i.item;"elementEnd"==i.type&&Fa(n,e,t)&&(yield n)}const n=ja(t.end,e);qa(n,t)&&(yield n)}}containsEntireContent(e=this.anchor.root){const t=Ea._createAt(e,0),i=Ea._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&i.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new Ra(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new _("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 Da(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&!!e.parent)}function Fa(e,t,i){return Da(e,t)&&Ha(e,i)}function ja(e,t){const i=e.parent.root.document.model.schema,n=e.parent.getAncestors({parentFirst:!0,includeSelf:!0});let r=!1;const o=n.find((e=>!r&&(r=i.isLimit(e),!r&&Da(e,t))));return n.forEach((e=>t.add(e))),o}function Ha(e,t){const i=function(e){const t=e.root.document.model.schema;let i=e.parent;for(;i;){if(t.isBlock(i))return i;i=i.parent}}(e);return!i||!t.containsRange(Ra._createOn(i),!0)}function Ua(e,t){return!!e&&(!(!t.isCollapsed&&!e.isEmpty)||!t.start.isTouching(Ea._createAt(e,e.maxOffset))&&Ha(e,t))}function qa(e,t){return!!e&&(!(!t.isCollapsed&&!e.isEmpty)||!t.end.isTouching(Ea._createAt(e,0))&&Ha(e,t))}La.prototype.is=function(e){return"selection"===e||"model:selection"===e};class Wa extends(S(Ra)){constructor(e,t){super(e,t),$a.call(this)}detach(){this.stopListening()}toRange(){return new Ra(this.start,this.end)}static fromRange(e){return new Wa(e.start,e.end)}}function $a(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const i=t[0];i.isDocumentOperation&&Ka.call(this,i)}),{priority:"low"})}function Ka(e){const t=this.getTransformedByOperation(e),i=Ra._createFromRanges(t),n=!i.isEqual(this),r=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 o=null;if(n){"$graveyard"==i.root.rootName&&(o="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=i.start,this.end=i.end,this.fire("change:range",t,{deletionPosition:o})}else r&&this.fire("change:content",this.toRange(),{deletionPosition:o})}Wa.prototype.is=function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e};const Ja="selection:";class Za extends(S(fa)){constructor(e){super(),this._selection=new Ga(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 Ja+e}static _isStoreAttributeKey(e){return e.startsWith(Ja)}}Za.prototype.is=function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e};class Ga extends La{constructor(e){super(),this.markers=new Zn({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 i=t[0];i.isDocumentOperation&&"marker"!=i.type&&"rename"!=i.type&&"noop"!=i.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,i,n)=>{this._updateMarker(t,n)})),this.listenTo(this._document,"change",((e,t)=>{!function(e,t){const i=e.document.differ;for(const n of i.getChanges()){if("insert"!=n.type)continue;const i=n.position.parent;n.length===i.maxOffset&&e.enqueueChange(t,(e=>{const t=Array.from(i.getAttributeKeys()).filter((e=>e.startsWith(Ja)));for(const n of t)e.removeAttribute(n,i)}))}}(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=y();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new _("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 _("document-selection-wrong-position",this,{range:t})}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=Wa.fromRange(e);return t.on("change:range",((e,i,n)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=n.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 i=t.name.split(":",1)[0];if(!this._observedMarkers.has(i))continue;const n=t.getRange();for(const i of this.getRanges())n.containsRange(i,!i.isCollapsed)&&e.push(t)}const i=Array.from(this.markers);for(const i of e)this.markers.has(i)||(this.markers.add(i),t=!0);for(const i of Array.from(this.markers))e.includes(i)||(this.markers.remove(i),t=!0);t&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateMarker(e,t){const i=e.name.split(":",1)[0];if(!this._observedMarkers.has(i))return;let n=!1;const r=Array.from(this.markers),o=this.markers.has(e);if(t){let i=!1;for(const e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){i=!0;break}i&&!o?(this.markers.add(e),n=!0):!i&&o&&(this.markers.remove(e),n=!0)}else o&&(this.markers.remove(e),n=!0);n&&this.fire("change:marker",{oldMarkers:r,directChange:!1})}_updateAttributes(e){const t=Xn(this._getSurroundingAttributes()),i=Xn(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 n=[];for(const[e,t]of this.getAttributes())i.has(e)&&i.get(e)===t||n.push(e);for(const[e]of i)this.hasAttribute(e)||n.push(e);n.length>0&&this.fire("change:attribute",{attributeKeys:n,directChange:!1})}_setAttribute(e,t,i=!0){const n=i?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(e))&&super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,n),!0)}_removeAttribute(e,t=!0){const i=t?"normal":"low";return!("low"==i&&"normal"==this._attributePriority.get(e)||(this._attributePriority.set(e,i),!super.hasAttribute(e)||(this._attrs.delete(e),0)))}_setAttributesTo(e){const t=new Set;for(const[t,i]of this.getAttributes())e.get(t)!==i&&this._removeAttribute(t,!1);for(const[i,n]of e)this._setAttribute(i,n,!1)&&t.add(i);return t}*getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())if(t.startsWith(Ja)){const i=t.substr(10);yield[i,e.getAttribute(t)]}}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;if("$graveyard"==e.root.rootName)return null;let i=null;if(this.isCollapsed){const n=e.textNode?e.textNode:e.nodeBefore,r=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(i=Ya(n,t)),i||(i=Ya(r,t)),!this.isGravityOverridden&&!i){let e=n;for(;e&&!i;)e=e.previousSibling,i=Ya(e,t)}if(!i){let e=r;for(;e&&!i;)e=e.nextSibling,i=Ya(e,t)}i||(i=this.getStoredAttributes())}else{const e=this.getFirstRange();for(const n of e){if(n.item.is("element")&&t.isObject(n.item)){i=Ya(n.item,t);break}if("text"==n.type){i=n.item.getAttributes();break}}}return i}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function Ya(e,t){if(!e)return null;if(e instanceof _a||e instanceof ka)return e.getAttributes();if(!t.isInline(e))return null;if(!t.isObject(e))return[];const i=[];for(const[n,r]of e.getAttributes())t.checkAttribute("$text",n)&&!1!==t.getAttributeProperties(n).copyFromObject&&i.push([n,r]);return i}class Qa{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}class Xa extends Qa{elementToElement(e){return this.add(function(e){const t=il(e.model),i=nl(e.view,"container");return t.attributes.length&&(t.children=!0),n=>{n.on(`insert:${t.name}`,function(e,t=hl){return(i,n,r)=>{if(!t(n.item,r.consumable,{preflight:!0}))return;const o=e(n.item,r,n);if(!o)return;t(n.item,r.consumable);const s=r.mapper.toViewPosition(n.range.start);r.mapper.bindElements(n.item,o),r.writer.insert(s,o),r.convertAttributes(n.item),cl(o,n.item.getChildren(),r,{reconversion:n.reconversion})}}(i,ll(t)),{priority:e.converterPriority||"normal"}),(t.children||t.attributes.length)&&n.on("reduceChanges",al(t),{priority:"low"})}}(e))}elementToStructure(e){return this.add(function(e){const t=il(e.model),i=nl(e.view,"container");return t.children=!0,n=>{if(n._conversionApi.schema.checkChild(t.name,"$text"))throw new _("conversion-element-to-structure-disallowed-text",n,{elementName:t.name});var r,o;n.on(`insert:${t.name}`,(r=i,o=ll(t),(e,t,i)=>{if(!o(t.item,i.consumable,{preflight:!0}))return;const n=new Map;i.writer._registerSlotFactory(function(e,t,i){return(n,r)=>{const o=n.createContainerElement("$slot");let s=null;if("children"===r)s=Array.from(e.getChildren());else{if("function"!=typeof r)throw new _("conversion-slot-mode-unknown",i.dispatcher,{modeOrFilter:r});s=Array.from(e.getChildren()).filter((e=>r(e)))}return t.set(o,s),o}}(t.item,n,i));const s=r(t.item,i,t);if(i.writer._clearSlotFactory(),!s)return;!function(e,t,i){const n=Array.from(t.values()).flat(),r=new Set(n);if(r.size!=n.length)throw new _("conversion-slot-filter-overlap",i.dispatcher,{element:e});if(r.size!=e.childCount)throw new _("conversion-slot-filter-incomplete",i.dispatcher,{element:e})}(t.item,n,i),o(t.item,i.consumable);const a=i.mapper.toViewPosition(t.range.start);i.mapper.bindElements(t.item,s),i.writer.insert(a,s),i.convertAttributes(t.item),function(e,t,i,n){i.mapper.on("modelToViewPosition",s,{priority:"highest"});let r=null,o=null;for([r,o]of t)cl(e,o,i,n),i.writer.move(i.writer.createRangeIn(r),i.writer.createPositionBefore(r)),i.writer.remove(r);function s(e,t){const i=t.modelPosition.nodeAfter,n=o.indexOf(i);n<0||(t.viewPosition=t.mapper.findPositionIn(r,n))}i.mapper.off("modelToViewPosition",s)}(s,n,i,{reconversion:t.reconversion})}),{priority:e.converterPriority||"normal"}),n.on("reduceChanges",al(t),{priority:"low"})}}(e))}attributeToElement(e){return this.add(function(e){let t=(e=ma(e)).model;"string"==typeof t&&(t={key:t});let i=`attribute:${t.key}`;if(t.name&&(i+=":"+t.name),t.values)for(const i of t.values)e.view[i]=nl(e.view[i],"attribute");else e.view=nl(e.view,"attribute");const n=rl(e);return t=>{t.on(i,function(e){return(t,i,n)=>{if(!n.consumable.test(i.item,t.name))return;const r=e(i.attributeOldValue,n,i),o=e(i.attributeNewValue,n,i);if(!r&&!o)return;n.consumable.consume(i.item,t.name);const s=n.writer,a=s.document.selection;if(i.item instanceof La||i.item instanceof Za)s.wrap(a.getFirstRange(),o);else{let e=n.mapper.toViewRange(i.range);null!==i.attributeOldValue&&r&&(e=s.unwrap(e,r)),null!==i.attributeNewValue&&o&&s.wrap(e,o)}}}(n),{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t=(e=ma(e)).model;"string"==typeof t&&(t={key:t});let i=`attribute:${t.key}`;if(t.name&&(i+=":"+t.name),t.values)for(const i of t.values)e.view[i]=ol(e.view[i]);else e.view=ol(e.view);const n=rl(e);return t=>{var r;t.on(i,(r=n,(e,t,i)=>{if(!i.consumable.test(t.item,e.name))return;const n=r(t.attributeOldValue,i,t),o=r(t.attributeNewValue,i,t);if(!n&&!o)return;i.consumable.consume(t.item,e.name);const s=i.mapper.toViewElement(t.item),a=i.writer;if(!s)throw new _("conversion-attribute-to-attribute-on-text",i.dispatcher,t);if(null!==t.attributeOldValue&&n)if("class"==n.key){const e="string"==typeof n.value?n.value.split(/\s+/):n.value;for(const t of e)a.removeClass(t,s)}else if("style"==n.key)if("string"==typeof n.value){const e=new ro(a.document.stylesProcessor);e.setTo(n.value);for(const[t]of e.getStylesEntries())a.removeStyle(t,s)}else{const e=Object.keys(n.value);for(const t of e)a.removeStyle(t,s)}else a.removeAttribute(n.key,s);if(null!==t.attributeNewValue&&o)if("class"==o.key){const e="string"==typeof o.value?o.value.split(/\s+/):o.value;for(const t of e)a.addClass(t,s)}else if("style"==o.key)if("string"==typeof o.value){const e=new ro(a.document.stylesProcessor);e.setTo(o.value);for(const[t,i]of e.getStylesEntries())a.setStyle(t,i,s)}else{const e=Object.keys(o.value);for(const t of e)a.setStyle(t,o.value[t],s)}else a.setAttribute(o.key,o.value,s)}),{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){const t=nl(e.view,"ui");return i=>{var n;i.on(`addMarker:${e.model}`,(n=t,(e,t,i)=>{t.isOpening=!0;const r=n(t,i);t.isOpening=!1;const o=n(t,i);if(!r||!o)return;const s=t.markerRange;if(s.isCollapsed&&!i.consumable.consume(s,e.name))return;for(const t of s)if(!i.consumable.consume(t.item,e.name))return;const a=i.mapper,l=i.writer;l.insert(a.toViewPosition(s.start),r),i.mapper.bindElementToMarker(r,t.markerName),s.isCollapsed||(l.insert(a.toViewPosition(s.end),o),i.mapper.bindElementToMarker(o,t.markerName)),e.stop()}),{priority:e.converterPriority||"normal"}),i.on(`removeMarker:${e.model}`,((e,t,i)=>{const n=i.mapper.markerNameToElements(t.markerName);if(n){for(const e of n)i.mapper.unbindElementFromMarkerName(e,t.markerName),i.writer.clear(i.writer.createRangeOn(e),e);i.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(e){return t=>{var i;t.on(`addMarker:${e.model}`,(i=e.view,(e,t,n)=>{if(!t.item)return;if(!(t.item instanceof La||t.item instanceof Za||t.item.is("$textProxy")))return;const r=sl(i,t,n);if(!r)return;if(!n.consumable.consume(t.item,e.name))return;const o=n.writer,s=el(o,r),a=o.document.selection;if(t.item instanceof La||t.item instanceof Za)o.wrap(a.getFirstRange(),s);else{const e=n.mapper.toViewRange(t.range),i=o.wrap(e,s);for(const e of i.getItems())if(e.is("attributeElement")&&e.isSimilar(s)){n.mapper.bindElementToMarker(e,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on(`addMarker:${e.model}`,function(e){return(t,i,n)=>{if(!i.item)return;if(!(i.item instanceof va))return;const r=sl(e,i,n);if(!r)return;if(!n.consumable.test(i.item,t.name))return;const o=n.mapper.toViewElement(i.item);if(o&&o.getCustomProperty("addHighlight")){n.consumable.consume(i.item,t.name);for(const e of Ra._createIn(i.item))n.consumable.consume(e.item,t.name);o.getCustomProperty("addHighlight")(o,r,n.writer),n.mapper.bindElementToMarker(o,i.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),t.on(`removeMarker:${e.model}`,function(e){return(t,i,n)=>{if(i.markerRange.isCollapsed)return;const r=sl(e,i,n);if(!r)return;const o=el(n.writer,r),s=n.mapper.markerNameToElements(i.markerName);if(s){for(const e of s)n.mapper.unbindElementFromMarkerName(e,i.markerName),e.is("attributeElement")?n.writer.unwrap(n.writer.createRangeOn(e),o):e.getCustomProperty("removeHighlight")(e,r.id,n.writer);n.writer.clearClonedElementsGroup(i.markerName),t.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(e){const t=(e=ma(e)).model;let i=e.view;return i||(i=i=>({group:t,name:i.substr(e.model.length+1)})),n=>{var r;n.on(`addMarker:${t}`,(r=i,(e,t,i)=>{const n=r(t.markerName,i);if(!n)return;const o=t.markerRange;i.consumable.consume(o,e.name)&&(tl(o,!1,i,t,n),tl(o,!0,i,t,n),e.stop())}),{priority:e.converterPriority||"normal"}),n.on(`removeMarker:${t}`,function(e){return(t,i,n)=>{const r=e(i.markerName,n);if(!r)return;const o=n.mapper.markerNameToElements(i.markerName);if(o){for(const e of o)n.mapper.unbindElementFromMarkerName(e,i.markerName),e.is("containerElement")?(s(`data-${r.group}-start-before`,e),s(`data-${r.group}-start-after`,e),s(`data-${r.group}-end-before`,e),s(`data-${r.group}-end-after`,e)):n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(i.markerName),t.stop()}function s(e,t){if(t.hasAttribute(e)){const i=new Set(t.getAttribute(e).split(","));i.delete(r.name),0==i.size?n.writer.removeAttribute(e,t):n.writer.setAttribute(e,Array.from(i).join(","),t)}}}}(i),{priority:e.converterPriority||"normal"})}}(e))}}function el(e,t){const i=e.createAttributeElement("span",t.attributes);return t.classes&&i._addClass(t.classes),"number"==typeof t.priority&&(i._priority=t.priority),i._id=t.id,i}function tl(e,t,i,n,r){const o=t?e.start:e.end,s=o.nodeAfter&&o.nodeAfter.is("element")?o.nodeAfter:null,a=o.nodeBefore&&o.nodeBefore.is("element")?o.nodeBefore:null;if(s||a){let e,o;t&&s||!t&&!a?(e=s,o=!0):(e=a,o=!1);const l=i.mapper.toViewElement(e);if(l)return void function(e,t,i,n,r,o){const s=`data-${o.group}-${t?"start":"end"}-${i?"before":"after"}`,a=e.hasAttribute(s)?e.getAttribute(s).split(","):[];a.unshift(o.name),n.writer.setAttribute(s,a.join(","),e),n.mapper.bindElementToMarker(e,r.markerName)}(l,t,o,i,n,r)}!function(e,t,i,n,r){const o=`${r.group}-${t?"start":"end"}`,s=r.name?{name:r.name}:null,a=i.writer.createUIElement(o,s);i.writer.insert(e,a),i.mapper.bindElementToMarker(a,n.markerName)}(i.mapper.toViewPosition(o),t,i,n,r)}function il(e){return"string"==typeof e&&(e={name:e}),{name:e.name,attributes:e.attributes?Rn(e.attributes):[],children:!!e.children}}function nl(e,t){return"function"==typeof e?e:(i,n)=>function(e,t,i){let n;"string"==typeof e&&(e={name:e});const r=t.writer,o=Object.assign({},e.attributes);if("container"==i)n=r.createContainerElement(e.name,o);else if("attribute"==i){const t={priority:e.priority||Ro.DEFAULT_PRIORITY};n=r.createAttributeElement(e.name,o,t)}else n=r.createUIElement(e.name,o);if(e.styles){const t=Object.keys(e.styles);for(const i of t)r.setStyle(i,e.styles[i],n)}if(e.classes){const t=e.classes;if("string"==typeof t)r.addClass(t,n);else for(const e of t)r.addClass(e,n)}return n}(e,n,t)}function rl(e){return e.model.values?(t,i,n)=>{const r=e.view[t];return r?r(t,i,n):null}:e.view}function ol(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function sl(e,t,i){const n="function"==typeof e?e(t,i):e;return n?(n.priority||(n.priority=10),n.id||(n.id=t.markerName),n):null}function al(e){const t=function(e){return(t,i)=>{if(!t.is("element",e.name))return!1;if("attribute"==i.type){if(e.attributes.includes(i.attributeKey))return!0}else if(e.children)return!0;return!1}}(e);return(e,i)=>{const n=[];i.reconvertedElements||(i.reconvertedElements=new Set);for(const e of i.changes){const r="attribute"==e.type?e.range.start.nodeAfter:e.position.parent;if(r&&t(r,e)){if(!i.reconvertedElements.has(r)){i.reconvertedElements.add(r);const e=Ea._createBefore(r);let t=n.length;for(let i=n.length-1;i>=0;i--){const r=n[i],o=("attribute"==r.type?r.range.start:r.position).compareWith(e);if("before"==o||"remove"==r.type&&"same"==o)break;t=i}n.splice(t,0,{type:"remove",name:r.name,position:e,length:1},{type:"reinsert",name:r.name,position:e,length:1})}}else n.push(e)}i.changes=n}}function ll(e){return(t,i,n={})=>{const r=["insert"];for(const i of e.attributes)t.hasAttribute(i)&&r.push(`attribute:${i}`);return!!r.every((e=>i.test(t,e)))&&(n.preflight||r.forEach((e=>i.consume(t,e))),!0)}}function cl(e,t,i,n){for(const r of t)dl(e.root,r,i,n)||i.convertItem(r)}function dl(e,t,i,n){const{writer:r,mapper:o}=i;if(!n.reconversion)return!1;const s=o.toViewElement(t);return!(!s||s.root==e||!i.canReuseView(s)||(r.move(r.createRangeOn(s),o.toViewPosition(Ea._createBefore(t))),0))}function hl(e,t,{preflight:i}={}){return i?t.test(e,"insert"):t.consume(e,"insert")}function gl(e){const{schema:t,document:i}=e.model;for(const n of i.getRoots())if(n.isEmpty&&!t.checkChild(n,"$text")&&t.checkChild(n,"paragraph"))return e.insertElement("paragraph",n),!0;return!1}function ul(e,t,i){const n=i.createContext(e);return!!i.checkChild(n,"paragraph")&&!!i.checkChild(n.push("paragraph"),t)}function pl(e,t){const i=t.createElement("paragraph");return t.insert(i,e),t.createPositionAt(i,0)}class ml extends Qa{elementToElement(e){return this.add(wl(e))}elementToAttribute(e){return this.add(function(e){bl(e=ma(e));const t=kl(e,!1),i=fl(e.view),n=i?`element:${i}`:"element";return i=>{i.on(n,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t=null;("string"==typeof(e=ma(e)).view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});const t=e.view.key,i=void 0===e.view.value?/[\s\S]*/:e.view.value;let n;if("class"==t||"style"==t){const e="class"==t?"classes":"styles";n={[e]:i}}else n={attributes:{[t]:i}};return e.view.name&&(n.name=e.view.name),e.view=n,t}(e)),bl(e,t);const i=kl(e,!0);return t=>{t.on("element",i,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(e){const t=function(e){return(t,i)=>{const n="string"==typeof e?e:e(t,i);return i.writer.createElement("$marker",{"data-name":n})}}(e.model);return wl({...e,model:t})}(e))}dataToMarker(e){return this.add(function(e){(e=ma(e)).model||(e.model=t=>t?e.view+":"+t:e.view);const t={view:e.view,model:e.model},i=yl(_l(t,"start")),n=yl(_l(t,"end"));return r=>{r.on(`element:${e.view}-start`,i,{priority:e.converterPriority||"normal"}),r.on(`element:${e.view}-end`,n,{priority:e.converterPriority||"normal"});const o=b.low,s=b.highest,a=b.get(e.converterPriority)/s;r.on("element",function(e){return(t,i,n)=>{const r=`data-${e.view}`;function o(t,r){for(const o of r){const r=e.model(o,n),s=n.writer.createElement("$marker",{"data-name":r});n.writer.insert(s,t),i.modelCursor.isEqual(t)?i.modelCursor=i.modelCursor.getShiftedBy(1):i.modelCursor=i.modelCursor._getTransformedByInsertion(t,1),i.modelRange=i.modelRange._getTransformedByInsertion(t,1)[0]}}(n.consumable.test(i.viewItem,{attributes:r+"-end-after"})||n.consumable.test(i.viewItem,{attributes:r+"-start-after"})||n.consumable.test(i.viewItem,{attributes:r+"-end-before"})||n.consumable.test(i.viewItem,{attributes:r+"-start-before"}))&&(i.modelRange||Object.assign(i,n.convertChildren(i.viewItem,i.modelCursor)),n.consumable.consume(i.viewItem,{attributes:r+"-end-after"})&&o(i.modelRange.end,i.viewItem.getAttribute(r+"-end-after").split(",")),n.consumable.consume(i.viewItem,{attributes:r+"-start-after"})&&o(i.modelRange.end,i.viewItem.getAttribute(r+"-start-after").split(",")),n.consumable.consume(i.viewItem,{attributes:r+"-end-before"})&&o(i.modelRange.start,i.viewItem.getAttribute(r+"-end-before").split(",")),n.consumable.consume(i.viewItem,{attributes:r+"-start-before"})&&o(i.modelRange.start,i.viewItem.getAttribute(r+"-start-before").split(",")))}}(t),{priority:o+a})}}(e))}}function wl(e){const t=yl(e=ma(e)),i=fl(e.view),n=i?`element:${i}`:"element";return i=>{i.on(n,t,{priority:e.converterPriority||"normal"})}}function fl(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function yl(e){const t=new Vr(e.view);return(i,n,r)=>{const o=t.match(n.viewItem);if(!o)return;const s=o.match;if(s.name=!0,!r.consumable.test(n.viewItem,s))return;const a=function(e,t,i){return e instanceof Function?e(t,i):i.writer.createElement(e)}(e.model,n.viewItem,r);a&&r.safeInsert(a,n.modelCursor)&&(r.consumable.consume(n.viewItem,s),r.convertChildren(n.viewItem,a),r.updateConversionResult(a,n))}}function bl(e,t=null){const i=null===t||(e=>e.getAttribute(t)),n="object"!=typeof e.model?e.model:e.model.key,r="object"!=typeof e.model||void 0===e.model.value?i:e.model.value;e.model={key:n,value:r}}function kl(e,t){const i=new Vr(e.view);return(n,r,o)=>{if(!r.modelRange&&t)return;const s=i.match(r.viewItem);if(!s)return;if(function(e,t){const i="function"==typeof e?e(t):e;return!("object"==typeof i&&!fl(i)||i.classes||i.attributes||i.styles)}(e.view,r.viewItem)?s.match.name=!0:delete s.match.name,!o.consumable.test(r.viewItem,s.match))return;const a=e.model.key,l="function"==typeof e.model.value?e.model.value(r.viewItem,o):e.model.value;if(null===l)return;r.modelRange||Object.assign(r,o.convertChildren(r.viewItem,r.modelCursor));const c=function(e,t,i,n){let r=!1;for(const o of Array.from(e.getItems({shallow:i})))n.schema.checkAttribute(o,t.key)&&(r=!0,o.hasAttribute(t.key)||n.writer.setAttribute(t.key,t.value,o));return r}(r.modelRange,{key:a,value:l},t,o);c&&(o.consumable.test(r.viewItem,{name:!0})&&(s.match.name=!0),o.consumable.consume(r.viewItem,s.match))}}function _l(e,t){return{view:`${e.view}-${t}`,model:(t,i)=>{const n=t.getAttribute("name"),r=e.model(n,i);return i.writer.createElement("$marker",{"data-name":r})}}}function vl(e,t){return e.isCollapsed?function(e,t){const i=e.start,n=t.getNearestSelectionRange(i);if(!n){const e=i.getAncestors().reverse().find((e=>t.isObject(e)));return e?Ra._createOn(e):null}if(!n.isCollapsed)return n;const r=n.start;return i.isEqual(r)?null:new Ra(r)}(e,t):function(e,t){const{start:i,end:n}=e,r=t.checkChild(i,"$text"),o=t.checkChild(n,"$text"),s=t.getLimitElement(i),a=t.getLimitElement(n);if(s===a){if(r&&o)return null;if(function(e,t,i){const n=e.nodeAfter&&!i.isLimit(e.nodeAfter)||i.checkChild(e,"$text"),r=t.nodeBefore&&!i.isLimit(t.nodeBefore)||i.checkChild(t,"$text");return n||r}(i,n,t)){const e=i.nodeAfter&&t.isSelectable(i.nodeAfter)?null:t.getNearestSelectionRange(i,"forward"),r=n.nodeBefore&&t.isSelectable(n.nodeBefore)?null:t.getNearestSelectionRange(n,"backward"),o=e?e.start:i,s=r?r.end:n;return new Ra(o,s)}}const l=s&&!s.is("rootElement"),c=a&&!a.is("rootElement");if(l||c){const e=i.nodeAfter&&n.nodeBefore&&i.nodeAfter.parent===n.nodeBefore.parent,r=l&&(!e||!Al(i.nodeAfter,t)),o=c&&(!e||!Al(n.nodeBefore,t));let d=i,h=n;return r&&(d=Ea._createBefore(xl(s,t))),o&&(h=Ea._createAfter(xl(a,t))),new Ra(d,h)}return null}(e,t)}function xl(e,t){let i=e,n=i;for(;t.isLimit(n)&&n.parent;)i=n,n=n.parent;return i}function Al(e,t){return e&&t.isSelectable(e)}class El extends(q()){constructor(e,t){super(),this.model=e,this.view=new wa(t),this.mapper=new Oa,this.downcastDispatcher=new Va({mapper:this.mapper,schema:e.schema});const i=this.model.document,n=i.selection,r=this.model.markers;var o,s,a;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(i,"change",(()=>{this.view.change((e=>{this.downcastDispatcher.convertChanges(i.differ,r,e),this.downcastDispatcher.convertSelection(n,r,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return(i,n)=>{const r=n.newSelection,o=[];for(const e of r.getRanges())o.push(t.toModelRange(e));const s=e.createSelection(o,{backward:r.isBackward});s.isEqual(e.document.selection)||e.change((e=>{e.setSelection(s)}))}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(o=this.mapper,s=this.model.schema,a=this.view,(e,t)=>{if(!a.document.isComposing||d.isAndroid)for(let e=0;e<t.targetRanges.length;e++){const i=t.targetRanges[e],n=o.toModelRange(i),r=vl(n,s);r&&!r.isEqual(n)&&(t.targetRanges[e]=o.toViewRange(r))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",((e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;const n=i.writer,r=i.mapper.toViewPosition(t.range.start),o=n.createText(t.item.data);n.insert(r,o)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((e,t,i)=>{i.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||i.convertChildren(t.item)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((e,t,i)=>{const n=i.mapper.toViewPosition(t.position),r=t.position.getShiftedBy(t.length),o=i.mapper.toViewPosition(r,{isPhantom:!0}),s=i.writer.createRange(n,o),a=i.writer.remove(s.getTrimmed());for(const e of i.writer.createRangeIn(a).getItems())i.mapper.unbindViewElement(e,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",((e,t,i)=>{const n=i.writer,r=n.document.selection;for(const e of r.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&i.writer.mergeAttributes(e.start);n.setSelection(null)})),this.downcastDispatcher.on("selection",((e,t,i)=>{const n=t.selection;if(n.isCollapsed)return;if(!i.consumable.consume(n,"selection"))return;const r=[];for(const e of n.getRanges())r.push(i.mapper.toViewRange(e));i.writer.setSelection(r,{backward:n.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((e,t,i)=>{const n=t.selection;if(!n.isCollapsed)return;if(!i.consumable.consume(n,"selection"))return;const r=i.writer,o=n.getFirstPosition(),s=i.mapper.toViewPosition(o),a=r.breakAttributes(s);r.setSelection(a)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((e=>{if("$graveyard"==e.rootName)return null;const t=new mo(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,i=this.model.markers.get(t);if(!i)throw new _("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:t});this.model.change((()=>{this.model.markers._refresh(i)}))}reconvertItem(e){this.model.change((()=>{this.model.document.differ._refreshItem(e)}))}}class Cl{constructor(){this._consumables=new Map}add(e,t){let i;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?i=this._consumables.get(e):(i=new Il(e),this._consumables.set(e,i)),i.add(t))}test(e,t){const i=this._consumables.get(e);return void 0===i?null:e.is("$text")||e.is("documentFragment")?i:i.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 i=this._consumables.get(e);void 0!==i&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):i.revert(t))}static consumablesFromElement(e){const t={element:e,name:!0,attributes:[],classes:[],styles:[]},i=e.getAttributeKeys();for(const e of i)"style"!=e&&"class"!=e&&t.attributes.push(e);const n=e.getClassNames();for(const e of n)t.classes.push(e);const r=e.getStyleNames();for(const e of r)t.styles.push(e);return t}static createFrom(e,t){if(t||(t=new Cl),e.is("$text"))return t.add(e),t;e.is("element")&&t.add(e,Cl.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e);for(const i of e.getChildren())t=Cl.createFrom(i,t);return t}}const Tl=["attributes","classes","styles"];class Il{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 Tl)t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const t of Tl)if(t in e){const i=this._test(t,e[t]);if(!0!==i)return i}return!0}consume(e){e.name&&(this._canConsumeName=!1);for(const t of Tl)t in e&&this._consume(t,e[t])}revert(e){e.name&&(this._canConsumeName=!0);for(const t of Tl)t in e&&this._revert(t,e[t])}_add(e,t){const i=Rn(t),n=this._consumables[e];for(const t of i){if("attributes"===e&&("class"===t||"style"===t))throw new _("viewconsumable-invalid-attribute",this);if(n.set(t,!0),"styles"===e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(t))n.set(e,!0)}}_test(e,t){const i=Rn(t),n=this._consumables[e];for(const t of i)if("attributes"!==e||"class"!==t&&"style"!==t){const e=n.get(t);if(void 0===e)return null;if(!e)return!1}else{const e="class"==t?"classes":"styles",i=this._test(e,[...this._consumables[e].keys()]);if(!0!==i)return i}return!0}_consume(e,t){const i=Rn(t),n=this._consumables[e];for(const t of i)if("attributes"!==e||"class"!==t&&"style"!==t){if(n.set(t,!1),"styles"==e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(t))n.set(e,!1)}else{const e="class"==t?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){const i=Rn(t),n=this._consumables[e];for(const t of i)if("attributes"!==e||"class"!==t&&"style"!==t)!1===n.get(t)&&n.set(t,!0);else{const e="class"==t?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class Sl extends(q()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((e,t)=>{t[0]=new Pl(t[0])}),{priority:"highest"}),this.on("checkChild",((e,t)=>{t[0]=new Pl(t[0]),t[1]=this.getDefinition(t[1])}),{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new _("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 _("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 i=this.getDefinition(e.last);return!!i&&i.allowAttributes.includes(t)}checkMerge(e,t){if(e instanceof Ea){const t=e.nodeBefore,i=e.nodeAfter;if(!(t instanceof va))throw new _("schema-check-merge-no-element-before",this);if(!(i instanceof va))throw new _("schema-check-merge-no-element-after",this);return this.checkMerge(t,i)}for(const i of t.getChildren())if(!this.checkChild(e,i))return!1;return!0}addChildCheck(e){this.on("checkChild",((t,[i,n])=>{if(!n)return;const r=e(i,n);"boolean"==typeof r&&(t.stop(),t.return=r)}),{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",((t,[i,n])=>{const r=e(i,n);"boolean"==typeof r&&(t.stop(),t.return=r)}),{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;for(t=e instanceof Ea?e.parent:(e instanceof Ra?[e]:Array.from(e.getRanges())).reduce(((e,t)=>{const i=t.getCommonAncestor();return e?e.getCommonAncestor(i,{includeSelf:!0}):i}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const i=[...e.getFirstPosition().getAncestors(),new ka("",e.getAttributes())];return this.checkAttribute(i,t)}{const i=e.getRanges();for(const e of i)for(const i of e)if(this.checkAttribute(i.item,t))return!0}return!1}*getValidRanges(e,t){e=function*(e){for(const t of e)yield*t.getMinimalFlatRanges()}(e);for(const i of e)yield*this._getValidRangesForRange(i,t)}getNearestSelectionRange(e,t="both"){if("$graveyard"==e.root.rootName)return null;if(this.checkChild(e,"$text"))return new Ra(e);let i,n;const r=e.getAncestors().reverse().find((e=>this.isLimit(e)))||e.root;"both"!=t&&"backward"!=t||(i=new xa({boundaries:Ra._createIn(r),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(n=new xa({boundaries:Ra._createIn(r),startPosition:e}));for(const e of function*(e,t){let i=!1;for(;!i;){if(i=!0,e){const t=e.next();t.done||(i=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(i=!1,yield{walker:t,value:e.value})}}}(i,n)){const t=e.walker==i?"elementEnd":"elementStart",n=e.value;if(n.type==t&&this.isObject(n.item))return Ra._createOn(n.item);if(this.checkChild(n.nextPosition,"$text"))return new Ra(n.nextPosition)}return null}findAllowedParent(e,t){let i=e.parent;for(;i;){if(this.checkChild(i,t))return i;if(this.isLimit(i))return null;i=i.parent}return null}setAllowedAttributes(e,t,i){const n=i.model;for(const[r,o]of Object.entries(t))n.schema.checkAttribute(e,r)&&i.setAttribute(r,o,e)}removeDisallowedAttributes(e,t){for(const i of e)if(i.is("$text"))Ul(this,i,t);else{const e=Ra._createIn(i).getPositions();for(const i of e)Ul(this,i.nodeBefore||i.parent,t)}}getAttributesWithProperty(e,t,i){const n={};for(const[r,o]of e.getAttributes()){const e=this.getAttributeProperties(r);void 0!==e[t]&&(void 0!==i&&i!==e[t]||(n[r]=o))}return n}createContext(e){return new Pl(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,i=Object.keys(t);for(const n of i)e[n]=Rl(t[n],n);for(const t of i)Ol(e,t);for(const t of i)Ml(e,t);for(const t of i)Bl(e,t);for(const t of i)Vl(e,t),zl(e,t);for(const t of i)Nl(e,t),Ll(e,t),Dl(e,t);this._compiledDefinitions=e}_checkContextMatch(e,t,i=t.length-1){const n=t.getItem(i);if(e.allowIn.includes(n.name)){if(0==i)return!0;{const e=this.getDefinition(n);return this._checkContextMatch(e,t,i-1)}}return!1}*_getValidRangesForRange(e,t){let i=e.start,n=e.start;for(const r of e.getItems({shallow:!0}))r.is("element")&&(yield*this._getValidRangesForRange(Ra._createIn(r),t)),this.checkAttribute(r,t)||(i.isEqual(n)||(yield new Ra(i,n)),i=Ea._createAfter(r)),n=Ea._createAfter(r);i.isEqual(n)||(yield new Ra(i,n))}findOptimalInsertionRange(e,t){const i=e.getSelectedElement();if(i&&this.isObject(i)&&!this.isInline(i))return"before"==t||"after"==t?new Ra(Ea._createAt(i,t)):Ra._createOn(i);const n=Gn(e.getSelectedBlocks());if(!n)return new Ra(e.focus);if(n.isEmpty)return new Ra(Ea._createAt(n,0));const r=Ea._createAfter(n);return e.focus.isTouching(r)?new Ra(r):new Ra(Ea._createBefore(n))}}class Pl{constructor(e){if(e instanceof Pl)return e;let t;t="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=t.map(Hl)}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 Pl([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 Rl(e,t){const i={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){for(const i of e){const e=Object.keys(i).filter((e=>e.startsWith("is")));for(const n of e)t[n]=!!i[n]}}(e,i),Fl(e,i,"allowIn"),Fl(e,i,"allowContentOf"),Fl(e,i,"allowWhere"),Fl(e,i,"allowAttributes"),Fl(e,i,"allowAttributesOf"),Fl(e,i,"allowChildren"),Fl(e,i,"inheritTypesFrom"),function(e,t){for(const i of e){const e=i.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}(e,i),i}function Ol(e,t){const i=e[t];for(const n of i.allowChildren){const i=e[n];i&&i.allowIn.push(t)}i.allowChildren.length=0}function Ml(e,t){for(const i of e[t].allowContentOf)e[i]&&jl(e,i).forEach((e=>{e.allowIn.push(t)}));delete e[t].allowContentOf}function Bl(e,t){for(const i of e[t].allowWhere){const n=e[i];if(n){const i=n.allowIn;e[t].allowIn.push(...i)}}delete e[t].allowWhere}function Vl(e,t){for(const i of e[t].allowAttributesOf){const n=e[i];if(n){const i=n.allowAttributes;e[t].allowAttributes.push(...i)}}delete e[t].allowAttributesOf}function zl(e,t){const i=e[t];for(const t of i.inheritTypesFrom){const n=e[t];if(n){const e=Object.keys(n).filter((e=>e.startsWith("is")));for(const t of e)t in i||(i[t]=n[t])}}delete i.inheritTypesFrom}function Nl(e,t){const i=e[t],n=i.allowIn.filter((t=>e[t]));i.allowIn=Array.from(new Set(n))}function Ll(e,t){const i=e[t];for(const n of i.allowIn)e[n].allowChildren.push(t)}function Dl(e,t){const i=e[t];i.allowAttributes=Array.from(new Set(i.allowAttributes))}function Fl(e,t,i){for(const n of e){const e=n[i];"string"==typeof e?t[i].push(e):Array.isArray(e)&&t[i].push(...e)}}function jl(e,t){const i=e[t];return(n=e,Object.keys(n).map((e=>n[e]))).filter((e=>e.allowIn.includes(i.name)));var n}function Hl(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 Ul(e,t,i){for(const n of t.getAttributeKeys())e.checkAttribute(t,n)||i.removeAttribute(n,t)}class ql extends(S()){constructor(e){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...e,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,i=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let i;for(const n of new Pl(e)){const e={};for(const t of n.getAttributeKeys())e[t]=n.getAttribute(t);const r=t.createElement(n.name,e);i&&t.insert(r,i),i=Ea._createAt(r,0)}return i}(i,t),this.conversionApi.writer=t,this.conversionApi.consumable=Cl.createFrom(e),this.conversionApi.store={};const{modelRange:n}=this._convertItem(e,this._modelCursor),r=t.createDocumentFragment();if(n){this._removeEmptyElements();for(const e of Array.from(this._modelCursor.parent.getChildren()))t.append(e,r);r.markers=function(e,t){const i=new Set,n=new Map,r=Ra._createIn(e).getItems();for(const e of r)e.is("element","$marker")&&i.add(e);for(const e of i){const i=e.getAttribute("data-name"),r=t.createPositionBefore(e);n.has(i)?n.get(i).end=r.clone():n.set(i,new Ra(r.clone())),t.remove(e)}return n}(r,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,r}_convertItem(e,t){const i={viewItem:e,modelCursor:t,modelRange:null};if(e.is("element")?this.fire(`element:${e.name}`,i,this.conversionApi):e.is("$text")?this.fire("text",i,this.conversionApi):this.fire("documentFragment",i,this.conversionApi),i.modelRange&&!(i.modelRange instanceof Ra))throw new _("view-conversion-dispatcher-incorrect-result",this);return{modelRange:i.modelRange,modelCursor:i.modelCursor}}_convertChildren(e,t){let i=t.is("position")?t:Ea._createAt(t,0);const n=new Ra(i);for(const t of Array.from(e.getChildren())){const e=this._convertItem(t,i);e.modelRange instanceof Ra&&(n.end=e.modelRange.end,i=e.modelCursor)}return{modelRange:n,modelCursor:i}}_safeInsert(e,t){const i=this._splitToAllowedParent(e,t);return!!i&&(this.conversionApi.writer.insert(e,i.position),!0)}_updateConversionResult(e,t){const i=this._getSplitParts(e),n=this.conversionApi.writer;t.modelRange||(t.modelRange=n.createRange(n.createPositionBefore(e),n.createPositionAfter(i[i.length-1])));const r=this._cursorParents.get(e);t.modelCursor=r?n.createPositionAt(r,0):t.modelRange.end}_splitToAllowedParent(e,t){const{schema:i,writer:n}=this.conversionApi;let r=i.findAllowedParent(t,e);if(r){if(r===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(r)&&(r=null)}if(!r)return ul(t,e,i)?{position:pl(t,n)}:null;const o=this.conversionApi.writer.split(t,r),s=[];for(const e of o.range.getWalker())if("elementEnd"==e.type)s.push(e.item);else{const t=s.pop(),i=e.item;this._registerSplitPair(t,i)}const a=o.range.end.parent;return this._cursorParents.set(e,a),{position:o.position,cursorParent:a}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const i=this._splitParts.get(e);this._splitParts.set(t,i),i.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 Wl{getHtml(e){const t=Ui.document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class $l{constructor(e){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new bs(e,{renderingMode:"data"}),this.htmlWriter=new Wl}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"),i=t.createDocumentFragment(),n=t.body.childNodes;for(;n.length>0;)i.appendChild(n[0]);return i}}class Kl extends(S()){constructor(e,t){super(),this.model=e,this.mapper=new Oa,this.downcastDispatcher=new Va({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",((e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;const n=i.writer,r=i.mapper.toViewPosition(t.range.start),o=n.createText(t.item.data);n.insert(r,o)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((e,t,i)=>{i.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||i.convertChildren(t.item)}),{priority:"lowest"}),this.upcastDispatcher=new ql({schema:e.schema}),this.viewDocument=new So(t),this.stylesProcessor=t,this.htmlProcessor=new $l(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new jo(this.viewDocument),this.upcastDispatcher.on("text",((e,t,{schema:i,consumable:n,writer:r})=>{let o=t.modelCursor;if(!n.test(t.viewItem))return;if(!i.checkChild(o,"$text")){if(!ul(o,"$text",i))return;if(0==t.viewItem.data.trim().length)return;const e=o.nodeBefore;o=pl(o,r),e&&e.is("element","$marker")&&(r.move(r.createRangeOn(e),o),o=r.createPositionAfter(e))}n.consume(t.viewItem);const s=r.createText(t.viewItem.data);r.insert(s,o),t.modelRange=r.createRange(o,o.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((e,t,i)=>{if(!t.modelRange&&i.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:n}=i.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=n}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((e,t,i)=>{if(!t.modelRange&&i.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:n}=i.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=n}}),{priority:"lowest"}),q().prototype.decorate.call(this,"init"),q().prototype.decorate.call(this,"set"),q().prototype.decorate.call(this,"get"),q().prototype.decorate.call(this,"toView"),q().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},gl)}),{priority:"lowest"})}get(e={}){const{rootName:t="main",trim:i="empty"}=e;if(!this._checkIfRootsExists([t]))throw new _("datacontroller-get-non-existent-root",this);const n=this.model.document.getRoot(t);return n.isAttached()||v("datacontroller-get-detached-root",this),"empty"!==i||this.model.hasContent(n,{ignoreWhitespaces:!0})?this.stringify(n,e):""}stringify(e,t={}){const i=this.toView(e,t);return this.processor.toData(i)}toView(e,t={}){const i=this.viewDocument,n=this._viewWriter;this.mapper.clearBindings();const r=Ra._createIn(e),o=new Fo(i);this.mapper.bindElements(e,o);const s=e.is("documentFragment")?e.markers:function(e){const t=[],i=e.root.document;if(!i)return new Map;const n=Ra._createIn(e);for(const e of i.model.markers){const i=e.getRange(),r=i.isCollapsed,o=i.start.isEqual(n.start)||i.end.isEqual(n.end);if(r&&o)t.push([e.name,i]);else{const r=n.getIntersection(i);r&&t.push([e.name,r])}}return t.sort((([e,t],[i,n])=>{if("after"!==t.end.compareWith(n.start))return 1;if("before"!==t.start.compareWith(n.end))return-1;switch(t.start.compareWith(n.start)){case"before":return 1;case"after":return-1;default:switch(t.end.compareWith(n.end)){case"before":return 1;case"after":return-1;default:return i.localeCompare(e)}}})),new Map(t)}(e);return this.downcastDispatcher.convert(r,s,n,t),o}init(e){if(this.model.document.version)throw new _("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new _("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(e=>{for(const i of Object.keys(t)){const n=this.model.document.getRoot(i);e.insert(this.parse(t[i],n),n,0)}})),Promise.resolve()}set(e,t={}){let i={};if("string"==typeof e?i.main=e:i=e,!this._checkIfRootsExists(Object.keys(i)))throw new _("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(i)){const n=this.model.document.getRoot(t);e.remove(e.createRangeIn(n)),e.insert(this.parse(i[t],n),n,0)}}))}parse(e,t="$root"){const i=this.processor.toView(e);return this.toModel(i,t)}toModel(e,t="$root"){return this.model.change((i=>this.upcastDispatcher.convert(e,i,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 Jl{constructor(e,t){this._helpers=new Map,this._downcast=Rn(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Rn(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const i=this._downcast.includes(t);if(!this._upcast.includes(t)&&!i)throw new _("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:i})}for(e){if(!this._helpers.has(e))throw new _("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:i}of Zl(e))this.for("upcast").elementToElement({model:t,view:i,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:i}of Zl(e))this.for("upcast").elementToAttribute({view:i,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:i}of Zl(e))this.for("upcast").attributeToAttribute({view:i,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:i}){if(this._helpers.has(e))throw new _("conversion-group-exists",this);const n=i?new Xa(t):new ml(t);this._helpers.set(e,n)}}function*Zl(e){if(e.model.values)for(const t of e.model.values){const i={key:e.model.key,value:t},n=e.view[t],r=e.upcastAlso?e.upcastAlso[t]:void 0;yield*Gl(i,n,r)}else yield*Gl(e.model,e.view,e.upcastAlso)}function*Gl(e,t,i){if(yield{model:e,view:t},i)for(const t of Rn(i))yield{model:e,view:t}}class Yl{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 Ql(e,t){const i=tc(t),n=i.reduce(((e,t)=>e+t.offsetSize),0),r=e.parent;nc(e);const o=e.index;return r._insertChild(o,i),ic(r,o+i.length),ic(r,o),new Ra(e,e.getShiftedBy(n))}function Xl(e){if(!e.isFlat)throw new _("operation-utils-remove-range-not-flat",this);const t=e.start.parent;nc(e.start),nc(e.end);const i=t._removeChildren(e.start.index,e.end.index-e.start.index);return ic(t,e.start.index),i}function ec(e,t){if(!e.isFlat)throw new _("operation-utils-move-range-not-flat",this);const i=Xl(e);return Ql(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),i)}function tc(e){const t=[];!function e(i){if("string"==typeof i)t.push(new ka(i));else if(i instanceof _a)t.push(new ka(i.data,i.getAttributes()));else if(i instanceof ya)t.push(i);else if(X(i))for(const t of i)e(t)}(e);for(let e=1;e<t.length;e++){const i=t[e],n=t[e-1];i instanceof ka&&n instanceof ka&&rc(i,n)&&(t.splice(e-1,2,new ka(n.data+i.data,n.getAttributes())),e--)}return t}function ic(e,t){const i=e.getChild(t-1),n=e.getChild(t);if(i&&n&&i.is("$text")&&n.is("$text")&&rc(i,n)){const r=new ka(i.data+n.data,i.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,r)}}function nc(e){const t=e.textNode,i=e.parent;if(t){const n=e.offset-t.startOffset,r=t.index;i._removeChildren(r,1);const o=new ka(t.data.substr(0,n),t.getAttributes()),s=new ka(t.data.substr(n),t.getAttributes());i._insertChild(r,[o,s])}}function rc(e,t){const i=e.getAttributes(),n=t.getAttributes();for(const e of i){if(e[1]!==t.getAttribute(e[0]))return!1;n.next()}return n.next().done}class oc extends Yl{constructor(e,t,i,n){super(n),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=i.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}get affectedSelectable(){return[Ra._createFromPositionAndShift(this.sourcePosition,this.howMany),Ra._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new oc(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 oc(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,i=this.sourcePosition.offset,n=this.targetPosition.offset;if(i+this.howMany>e.maxOffset)throw new _("move-operation-nodes-do-not-exist",this);if(e===t&&i<n&&n<i+this.howMany)throw new _("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==Q(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=i&&this.targetPosition.path[e]<i+this.howMany)throw new _("move-operation-node-into-itself",this)}}_execute(){ec(Ra._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 i=Ea.fromJSON(e.sourcePosition,t),n=Ea.fromJSON(e.targetPosition,t);return new this(i,e.howMany,n,e.baseVersion)}}class sc extends Yl{constructor(e,t,i){super(i),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new ba(tc(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const e=new ba([...this.nodes].map((e=>e._clone(!0)))),t=new sc(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new Ea(e,[0]);return new oc(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new _("insert-operation-position-invalid",this)}_execute(){const e=this.nodes;this.nodes=new ba([...e].map((e=>e._clone(!0)))),Ql(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 i=[];for(const t of e.nodes)t.name?i.push(va.fromJSON(t)):i.push(ka.fromJSON(t));const n=new sc(Ea.fromJSON(e.position,t),i,e.baseVersion);return n.shouldReceiveAttributes=e.shouldReceiveAttributes,n}}class ac extends Yl{constructor(e,t,i,n,r){super(r),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=i,this.graveyardPosition=n?n.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 Ea(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Ra(this.splitPosition,e)}get affectedSelectable(){const e=[Ra._createFromPositionAndShift(this.splitPosition,0),Ra._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&e.push(Ra._createFromPositionAndShift(this.graveyardPosition,0)),e}clone(){return new ac(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new Ea(e,[0]);return new lc(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 _("split-operation-position-invalid",this);if(!e.parent)throw new _("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new _("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new _("split-operation-graveyard-position-invalid",this)}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)ec(Ra._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();Ql(this.insertionPosition,t)}ec(new Ra(Ea._createAt(e,this.splitPosition.offset),Ea._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 Ea(e.root,t,"toPrevious")}static fromJSON(e,t){const i=Ea.fromJSON(e.splitPosition,t),n=Ea.fromJSON(e.insertionPosition,t),r=e.graveyardPosition?Ea.fromJSON(e.graveyardPosition,t):null;return new this(i,e.howMany,n,r,e.baseVersion)}}class lc extends Yl{constructor(e,t,i,n,r){super(r),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=i.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=n.clone()}get type(){return"merge"}get deletionPosition(){return new Ea(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Ra(this.sourcePosition,e)}get affectedSelectable(){const e=this.sourcePosition.parent;return[Ra._createOn(e),Ra._createFromPositionAndShift(this.targetPosition,0),Ra._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new lc(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),i=new Ea(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new ac(e,this.howMany,i,this.graveyardPosition,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new _("merge-operation-source-position-invalid",this);if(!t.parent)throw new _("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new _("merge-operation-how-many-invalid",this)}_execute(){const e=this.sourcePosition.parent;ec(Ra._createIn(e),this.targetPosition),ec(Ra._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 i=Ea.fromJSON(e.sourcePosition,t),n=Ea.fromJSON(e.targetPosition,t),r=Ea.fromJSON(e.graveyardPosition,t);return new this(i,e.howMany,n,r,e.baseVersion)}}class cc extends Yl{constructor(e,t,i,n,r,o){super(o),this.name=e,this.oldRange=t?t.clone():null,this.newRange=i?i.clone():null,this.affectsData=r,this._markers=n}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 cc(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new cc(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 cc(e.name,e.oldRange?Ra.fromJSON(e.oldRange,t):null,e.newRange?Ra.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}const dc=function(e,t){return na(e,t)};class hc extends Yl{constructor(e,t,i,n,r){super(r),this.range=e.clone(),this.key=t,this.oldValue=void 0===i?null:i,this.newValue=void 0===n?null:n}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new hc(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new hc(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 _("attribute-operation-range-not-flat",this);for(const e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!dc(e.getAttribute(this.key),this.oldValue))throw new _("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 _("attribute-operation-attribute-exists",this,{node:e,key:this.key})}}_execute(){dc(this.oldValue,this.newValue)||function(e,t,i){nc(e.start),nc(e.end);for(const n of e.getItems({shallow:!0})){const e=n.is("$textProxy")?n.textNode:n;null!==i?e._setAttribute(t,i):e._removeAttribute(t),ic(e.parent,e.index)}ic(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new hc(Ra.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class gc extends Yl{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new gc(this.baseVersion)}getReversed(){return new gc(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class uc extends Yl{constructor(e,t,i,n){super(n),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=i}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new uc(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new uc(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof va))throw new _("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new _("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 uc(Ea.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class pc extends Yl{constructor(e,t,i,n,r){super(r),this.root=e,this.key=t,this.oldValue=void 0===i?null:i,this.newValue=void 0===n?null:n}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new pc(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new pc(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new _("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 _("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 _("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 _("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new pc(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class mc extends Yl{constructor(e,t,i,n,r){super(r),this.rootName=e,this.elementName=t,this.isAdd=i,this._document=n,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 mc(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new mc(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 mc(e.rootName,e.elementName,e.isAdd,t,e.baseVersion)}}const wc={};wc[hc.className]=hc,wc[sc.className]=sc,wc[cc.className]=cc,wc[oc.className]=oc,wc[gc.className]=gc,wc[Yl.className]=Yl,wc[uc.className]=uc,wc[pc.className]=pc,wc[mc.className]=mc,wc[ac.className]=ac,wc[lc.className]=lc;class fc{static fromJSON(e,t){return wc[e.__className].fromJSON(e,t)}}const yc=new Map;function bc(e,t,i){let n=yc.get(e);n||(n=new Map,yc.set(e,n)),n.set(t,i)}function kc(e){return[e]}function _c(e,t,i={}){const n=function(e,t){const i=yc.get(e);return i&&i.has(t)?i.get(t):kc}(e.constructor,t.constructor);try{return n(e=e.clone(),t,i)}catch(e){throw e}}function vc(e,t,i){e=e.slice(),t=t.slice();const n=new xc(i.document,i.useRelations,i.forceWeakRemove);n.setOriginalOperations(e),n.setOriginalOperations(t);const r=n.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:r};const o=new WeakMap;for(const t of e)o.set(t,0);const s={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 i=e[a],r=o.get(i);if(r==t.length){a++;continue}const s=t[r],l=_c(i,s,n.getContext(i,s,!0)),c=_c(s,i,n.getContext(s,i,!1));n.updateRelation(i,s),n.setOriginalOperations(l,i),n.setOriginalOperations(c,s);for(const e of l)o.set(e,r+c.length);e.splice(a,1,...l),t.splice(r,1,...c)}if(i.padWithNoOps){const i=e.length-s.originalOperationsACount,n=t.length-s.originalOperationsBCount;Ec(e,n-i),Ec(t,i-n)}return Ac(e,s.nextBaseVersionB),Ac(t,s.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:r}}class xc{constructor(e,t,i=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!i,this._relations=new Map}setOriginalOperations(e,t=null){const i=t?this.originalOperations.get(t):null;for(const t of e)this.originalOperations.set(t,i||t)}updateRelation(e,t){if(e instanceof oc)t instanceof lc?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 oc&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof ac){if(t instanceof lc)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof oc)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{const i=Ra._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.splitPosition)){const n=i.end.offset-e.splitPosition.offset,r=e.splitPosition.offset-i.start.offset;this._setRelation(e,t,{howMany:n,offset:r})}}}else if(e instanceof lc)t instanceof lc?(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 ac?e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource"):t instanceof oc&&t.howMany>0&&(e.sourcePosition.isEqual(t.sourcePosition.getShiftedBy(t.howMany))&&this._setRelation(e,t,"mergeSourceAffected"),e.targetPosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeTargetWasBefore"));else if(e instanceof cc){const i=e.newRange;if(!i)return;if(t instanceof oc){const n=Ra._createFromPositionAndShift(t.sourcePosition,t.howMany),r=n.containsPosition(i.start)||n.start.isEqual(i.start),o=n.containsPosition(i.end)||n.end.isEqual(i.end);!r&&!o||n.containsRange(i)||this._setRelation(e,t,{side:r?"left":"right",path:r?i.start.path.slice():i.end.path.slice()})}else if(t instanceof lc){const n=i.start.isEqual(t.targetPosition),r=i.start.isEqual(t.deletionPosition),o=i.end.isEqual(t.deletionPosition),s=i.end.isEqual(t.sourcePosition);(n||r||o||s)&&this._setRelation(e,t,{wasInLeftElement:n,wasStartBeforeMergedElement:r,wasEndBeforeMergedElement:o,wasInRightElement:s})}}}getContext(e,t,i){return{aIsStrong:i,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 i=this.originalOperations.get(t),n=this._history.getUndoneOperation(i);if(!n)return null;const r=this.originalOperations.get(e),o=this._relations.get(r);return o&&o.get(n)||null}_setRelation(e,t,i){const n=this.originalOperations.get(e),r=this.originalOperations.get(t);let o=this._relations.get(n);o||(o=new Map,this._relations.set(n,o)),o.set(r,i)}}function Ac(e,t){for(const i of e)i.baseVersion=t++}function Ec(e,t){for(let i=0;i<t;i++)e.push(new gc(0))}function Cc(e,t,i){const n=e.nodes.getNode(0).getAttribute(t);if(n==i)return null;const r=new Ra(e.position,e.position.getShiftedBy(e.howMany));return new hc(r,t,n,i,0)}function Tc(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function Ic(e,t){const i=[];for(let n=0;n<e.length;n++){const r=e[n],o=new oc(r.start,r.end.offset-r.start.offset,t,0);i.push(o);for(let t=n+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];t=t._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return i}bc(hc,hc,((e,t,i)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){const n=e.range.getDifference(t.range).map((t=>new hc(t,e.key,e.oldValue,e.newValue,0))),r=e.range.getIntersection(t.range);return r&&i.aIsStrong&&n.push(new hc(r,t.key,t.newValue,e.newValue,0)),0==n.length?[new gc(0)]:n}return[e]})),bc(hc,sc,((e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){const i=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((t=>new hc(t,e.key,e.oldValue,e.newValue,e.baseVersion)));if(t.shouldReceiveAttributes){const n=Cc(t,e.key,e.oldValue);n&&i.unshift(n)}return i}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),bc(hc,lc,((e,t)=>{const i=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&i.push(Ra._createFromPositionAndShift(t.graveyardPosition,1));const n=e.range._getTransformedByMergeOperation(t);return n.isCollapsed||i.push(n),i.map((t=>new hc(t,e.key,e.oldValue,e.newValue,e.baseVersion)))})),bc(hc,oc,((e,t)=>{const i=function(e,t){const i=Ra._createFromPositionAndShift(t.sourcePosition,t.howMany);let n=null,r=[];i.containsRange(e,!0)?n=e:e.start.hasSameParentAs(i.start)?(r=e.getDifference(i),n=e.getIntersection(i)):r=[e];const o=[];for(let e of r){e=e._getTransformedByDeletion(t.sourcePosition,t.howMany);const i=t.getMovedRangeStart(),n=e.start.hasSameParentAs(i),r=e._getTransformedByInsertion(i,t.howMany,n);o.push(...r)}return n&&o.push(n._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),o}(e.range,t);return i.map((t=>new hc(t,e.key,e.oldValue,e.newValue,e.baseVersion)))})),bc(hc,ac,((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 i=e.clone();return i.range=new Ra(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,i]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),bc(sc,hc,((e,t)=>{const i=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){const n=Cc(e,t.key,t.newValue);n&&i.push(n)}return i})),bc(sc,sc,((e,t,i)=>(e.position.isEqual(t.position)&&i.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]))),bc(sc,oc,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),bc(sc,ac,((e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e]))),bc(sc,lc,((e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e]))),bc(cc,sc,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]))),bc(cc,cc,((e,t,i)=>{if(e.name==t.name){if(!i.aIsStrong)return[new gc(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),bc(cc,lc,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]))),bc(cc,oc,((e,t,i)=>{if(e.oldRange&&(e.oldRange=Ra._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(i.abRelation){const n=Ra._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==i.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.end=n.end,e.newRange.start.path=i.abRelation.path,[e];if("right"==i.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=n.start,e.newRange.end.path=i.abRelation.path,[e]}e.newRange=Ra._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),bc(cc,ac,((e,t,i)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(i.abRelation){const n=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&i.abRelation.wasStartBeforeMergedElement?e.newRange.start=Ea._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!i.abRelation.wasInLeftElement&&(e.newRange.start=Ea._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&i.abRelation.wasInRightElement?e.newRange.end=Ea._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&i.abRelation.wasEndBeforeMergedElement?e.newRange.end=Ea._createAt(t.insertionPosition):e.newRange.end=n.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),bc(lc,sc,((e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]))),bc(lc,lc,((e,t,i)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(i.bWasUndone){const i=t.graveyardPosition.path.slice();return i.push(0),e.sourcePosition=new Ea(t.graveyardPosition.root,i),e.howMany=0,[e]}return[new gc(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!i.bWasUndone&&"splitAtSource"!=i.abRelation){const n="$graveyard"==e.targetPosition.root.rootName,r="$graveyard"==t.targetPosition.root.rootName;if(r&&!n||(!n||r)&&i.aIsStrong){const i=t.targetPosition._getTransformedByMergeOperation(t),n=e.targetPosition._getTransformedByMergeOperation(t);return[new oc(i,e.howMany,n,0)]}return[new gc(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)&&i.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),bc(lc,oc,((e,t,i)=>{const n=Ra._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!i.bWasUndone&&!i.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.sourcePosition)?[new gc(0)]:(t.sourcePosition.getShiftedBy(t.howMany).isEqual(e.sourcePosition)?e.sourcePosition.stickiness="toNone":t.targetPosition.isEqual(e.sourcePosition)&&"mergeSourceAffected"==i.abRelation?e.sourcePosition.stickiness="toNext":t.sourcePosition.isEqual(e.targetPosition)?(e.targetPosition.stickiness="toNone",e.howMany-=t.howMany):t.targetPosition.isEqual(e.targetPosition)&&"mergeTargetWasBefore"==i.abRelation?(e.targetPosition.stickiness="toPrevious",e.howMany+=t.howMany):(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.sourcePosition.stickiness="toPrevious",e.targetPosition.stickiness="toNext",e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),bc(lc,ac,((e,t,i)=>{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 n=0!=t.howMany,r=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(n||r||"mergeTargetNotMoved"==i.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==i.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==i.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]})),bc(oc,sc,((e,t)=>{const i=Ra._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=i.start,e.howMany=i.end.offset-i.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),bc(oc,oc,((e,t,i)=>{const n=Ra._createFromPositionAndShift(e.sourcePosition,e.howMany),r=Ra._createFromPositionAndShift(t.sourcePosition,t.howMany);let o,s=i.aIsStrong,a=!i.aIsStrong;if("insertBefore"==i.abRelation||"insertAfter"==i.baRelation?a=!0:"insertAfter"!=i.abRelation&&"insertBefore"!=i.baRelation||(a=!1),o=e.targetPosition.isEqual(t.targetPosition)&&a?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Tc(e,t)&&Tc(t,e))return[t.getReversed()];if(n.containsPosition(t.targetPosition)&&n.containsRange(r,!0))return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ic([n],o);if(r.containsPosition(e.targetPosition)&&r.containsRange(n,!0))return n.start=n.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),n.end=n.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Ic([n],o);const l=Q(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ic([n],o);"remove"!=e.type||"remove"==t.type||i.aWasUndone||i.forceWeakRemove?"remove"==e.type||"remove"!=t.type||i.bWasUndone||i.forceWeakRemove||(s=!1):s=!0;const c=[],d=n.getDifference(r);for(const e of d){e.start=e.start._getTransformedByDeletion(t.sourcePosition,t.howMany),e.end=e.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const i="same"==Q(e.start.getParentPath(),t.getMovedRangeStart().getParentPath()),n=e._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,i);c.push(...n)}const h=n.getIntersection(r);return null!==h&&s&&(h.start=h.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),h.end=h.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===c.length?c.push(h):1==c.length?r.start.isBefore(n.start)||r.start.isEqual(n.start)?c.unshift(h):c.push(h):c.splice(1,0,h)),0===c.length?[new gc(e.baseVersion)]:Ic(c,o)})),bc(oc,ac,((e,t,i)=>{let n=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=i.abRelation||(n=e.targetPosition._getTransformedBySplitOperation(t));const r=Ra._createFromPositionAndShift(e.sourcePosition,e.howMany);if(r.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=n,[e];if(r.start.hasSameParentAs(t.splitPosition)&&r.containsPosition(t.splitPosition)){let e=new Ra(t.splitPosition,r.end);return e=e._getTransformedBySplitOperation(t),Ic([new Ra(r.start,t.splitPosition),e],n)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==i.abRelation&&(n=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==i.abRelation&&(n=e.targetPosition);const o=[r._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const n=r.start.isEqual(t.graveyardPosition)||r.containsPosition(t.graveyardPosition);e.howMany>1&&n&&!i.aWasUndone&&o.push(Ra._createFromPositionAndShift(t.insertionPosition,1))}return Ic(o,n)})),bc(oc,lc,((e,t,i)=>{const n=Ra._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.sourcePosition))if("remove"!=e.type||i.forceWeakRemove){if(1==e.howMany)return i.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new gc(0)]}else if(!i.aWasUndone){const i=[];let n=t.graveyardPosition.clone(),r=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(i.push(new oc(e.sourcePosition,e.howMany-1,e.targetPosition,0)),n=n._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),r=r._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));const o=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),s=new oc(n,1,o,0),a=s.getMovedRangeStart().path.slice();a.push(0);const l=new Ea(s.targetPosition.root,a);r=r._getTransformedByMove(n,o,1);const c=new oc(r,t.howMany,l,0);return i.push(s),i.push(c),i}const r=Ra._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=r.start,e.howMany=r.end.offset-r.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),bc(uc,sc,((e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e]))),bc(uc,lc,((e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e]))),bc(uc,oc,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),bc(uc,uc,((e,t,i)=>{if(e.position.isEqual(t.position)){if(!i.aIsStrong)return[new gc(0)];e.oldName=t.newName}return[e]})),bc(uc,ac,((e,t)=>{if("same"==Q(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){const t=new uc(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),bc(pc,pc,((e,t,i)=>{if(e.root===t.root&&e.key===t.key){if(!i.aIsStrong||e.newValue===t.newValue)return[new gc(0)];e.oldValue=t.newValue}return[e]})),bc(mc,mc,((e,t)=>e.rootName===t.rootName&&e.isAdd===t.isAdd?[new gc(0)]:[e])),bc(ac,sc,((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]))),bc(ac,lc,((e,t,i)=>{if(!e.graveyardPosition&&!i.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){const i=t.graveyardPosition.path.slice();i.push(0);const n=new Ea(t.graveyardPosition.root,i),r=ac.getInsertionPosition(new Ea(t.graveyardPosition.root,i)),o=new ac(n,0,r,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=ac.getInsertionPosition(e.splitPosition),e.graveyardPosition=o.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[o,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=ac.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),bc(ac,oc,((e,t,i)=>{const n=Ra._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){const r=n.start.isEqual(e.graveyardPosition)||n.containsPosition(e.graveyardPosition);if(!i.bWasUndone&&r){const i=e.splitPosition._getTransformedByMoveOperation(t),n=e.graveyardPosition._getTransformedByMoveOperation(t),r=n.path.slice();r.push(0);const o=new Ea(n.root,r);return[new oc(i,e.howMany,o,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}const r=e.splitPosition.isEqual(t.targetPosition);if(r&&("insertAtSource"==i.baRelation||"splitBefore"==i.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=ac.getInsertionPosition(e.splitPosition),[e];if(r&&i.abRelation&&i.abRelation.howMany){const{howMany:t,offset:n}=i.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(n),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){const i=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=i,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=ac.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=ac.getInsertionPosition(e.splitPosition),[e]})),bc(ac,ac,((e,t,i)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new gc(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new gc(0)];if("splitBefore"==i.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){const n="$graveyard"==e.splitPosition.root.rootName,r="$graveyard"==t.splitPosition.root.rootName;if(r&&!n||(!n||r)&&i.aIsStrong){const i=[];return t.howMany&&i.push(new oc(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&i.push(new oc(e.splitPosition,e.howMany,e.moveTargetPosition,0)),i}return[new gc(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==i.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==i.baRelation){const i=t.insertionPosition.path.slice();i.push(0);const n=new Ea(t.insertionPosition.root,i);return[e,new oc(e.insertionPosition,1,n,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=ac.getInsertionPosition(e.splitPosition),[e]}));class Sc extends(S(Ea)){constructor(e,t,i="toNone"){if(super(e,t,i),!this.root.is("rootElement"))throw new _("model-liveposition-root-not-rootelement",e);Pc.call(this)}detach(){this.stopListening()}toPosition(){return new Ea(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function Pc(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const i=t[0];i.isDocumentOperation&&Rc.call(this,i)}),{priority:"low"})}function Rc(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)}}Sc.prototype.is=function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e};class Oc{constructor(e={}){"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},v("batch-constructor-deprecated-string-type"));const{isUndoable:t=!0,isLocal:i=!0,isUndo:n=!1,isTyping:r=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=i,this.isUndo=n,this.isTyping=r}get type(){return v("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}}class Mc{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),i=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),i||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=Ra._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 i=t.graveyardPosition.parent;this._markInsert(i,t.graveyardPosition.offset,1);const n=t.targetPosition.parent;this._isInInsertedElement(n)||this._markInsert(n,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,i){t.range&&t.range.root.is("rootElement")&&!t.range.root._isLoaded&&(t.range=null),i.range&&i.range.root.is("rootElement")&&!i.range.root._isLoaded&&(i.range=null);let n=this._changedMarkers.get(e);n?n.newMarkerData=i:(n={newMarkerData:i,oldMarkerData:t},this._changedMarkers.set(e,n)),null==n.oldMarkerData.range&&null==i.range&&this._changedMarkers.delete(e)}getMarkersToRemove(){const e=[];for(const[t,i]of this._changedMarkers)null!=i.oldMarkerData.range&&e.push({name:t,range:i.oldMarkerData.range});return e}getMarkersToAdd(){const e=[];for(const[t,i]of this._changedMarkers)null!=i.newMarkerData.range&&e.push({name:t,range:i.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.getChanges().length)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 i=e.range&&!t.range,n=!e.range&&t.range,r=e.range&&t.range&&!e.range.isEqual(t.range);if(i||n||r)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 i=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)),n=this._elementSnapshots.get(e),r=Bc(e.getChildren()),o=Vc(n.length,i);let s=0,a=0;for(const i of o)if("i"===i)t.push(this._getInsertDiff(e,s,r[s])),s++;else if("r"===i)t.push(this._getRemoveDiff(e,s,n[a])),a++;else if("a"===i){const i=r[s].attributes,o=n[a].attributes;let l;if("$text"==r[s].name)l=new Ra(Ea._createAt(e,s),Ea._createAt(e,s+1));else{const t=e.offsetToIndex(s);l=new Ra(Ea._createAt(e,s),Ea._createAt(e.getChild(t),0))}t.push(...this._getAttributesDiff(l,o,i)),s++,a++}else s++,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,i=0;e<t.length;e++){const n=t[i],r=t[e],o="remove"==n.type&&"remove"==r.type&&"$text"==n.name&&"$text"==r.name&&n.position.isEqual(r.position),s="insert"==n.type&&"insert"==r.type&&"$text"==n.name&&"$text"==r.name&&n.position.parent==r.position.parent&&n.position.offset+n.length==r.position.offset,a="attribute"==n.type&&"attribute"==r.type&&n.position.parent==r.position.parent&&n.range.isFlat&&r.range.isFlat&&n.position.offset+n.length==r.position.offset&&n.attributeKey==r.attributeKey&&n.attributeOldValue==r.attributeOldValue&&n.attributeNewValue==r.attributeNewValue;o||s||a?(n.length++,a&&(n.range.end=n.range.end.getShiftedBy(1)),t[e]=null):i=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(zc),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map((e=>{const t={...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 i=this._changedRoots.get(e);void 0!==i.state?(delete i.state,void 0===i.attributes&&this._changedRoots.delete(e)):i.state=t?"attached":"detached"}_bufferRootAttributeChange(e,t,i,n){const r=this._changedRoots.get(e)||{name:e},o=r.attributes||{};if(o[t]){const e=o[t];n===e.oldValue?delete o[t]:e.newValue=n}else o[t]={oldValue:i,newValue:n};0===Object.entries(o).length?(delete r.attributes,void 0===r.state&&this._changedRoots.delete(e)):(r.attributes=o,this._changedRoots.set(e,r))}_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=Ra._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 t of this._markerCollection)if(t.getRange().root==e){const e=t.getData();this.bufferMarkerChange(t.name,{...e,range:null},e)}}}_markInsert(e,t,i){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const n={type:"insert",offset:t,howMany:i,count:this._changeCount++};this._markChange(e,n)}_markRemove(e,t,i){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const n={type:"remove",offset:t,howMany:i,count:this._changeCount++};this._markChange(e,n),this._removeAllNestedChanges(e,t,i)}_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 i=this._getChangesForElement(e);this._handleChange(t,i),i.push(t);for(let e=0;e<i.length;e++)i[e].howMany<1&&(i.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,Bc(e.getChildren()))}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const i of t){const n=e.offset+e.howMany,r=i.offset+i.howMany;if("insert"==e.type&&("insert"==i.type&&(e.offset<=i.offset?i.offset+=e.howMany:e.offset<r&&(i.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==i.type&&e.offset<i.offset&&(i.offset+=e.howMany),"attribute"==i.type))if(e.offset<=i.offset)i.offset+=e.howMany;else if(e.offset<r){const r=i.howMany;i.howMany=e.offset-i.offset,t.unshift({type:"attribute",offset:n,howMany:r-i.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==i.type)if(n<=i.offset)i.offset-=e.howMany;else if(n<=r)if(e.offset<i.offset){const t=n-i.offset;i.offset=e.offset,i.howMany-=t,e.nodesToHandle-=t}else i.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=i.offset)e.nodesToHandle-=i.howMany,i.howMany=0;else if(e.offset<r){const t=r-e.offset;i.howMany-=t,e.nodesToHandle-=t}if("remove"==i.type&&(n<=i.offset?i.offset-=e.howMany:e.offset<i.offset&&(e.nodesToHandle+=i.howMany,i.howMany=0)),"attribute"==i.type)if(n<=i.offset)i.offset-=e.howMany;else if(e.offset<i.offset){const t=n-i.offset;i.offset=e.offset,i.howMany-=t}else if(e.offset<r)if(n<=r){const n=i.howMany;i.howMany=e.offset-i.offset;const r=n-i.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:r,count:this._changeCount++})}else i.howMany-=r-e.offset}if("attribute"==e.type){if("insert"==i.type)if(e.offset<i.offset&&n>i.offset){if(n>r){const e={type:"attribute",offset:r,howMany:n-r,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=i.offset&&e.offset<r&&(n>r?(e.nodesToHandle=n-r,e.offset=r):e.nodesToHandle=0);if("remove"==i.type&&e.offset<i.offset&&n>i.offset){const r={type:"attribute",offset:i.offset,howMany:n-i.offset,count:this._changeCount++};this._handleChange(r,t),t.push(r),e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==i.type&&(e.offset>=i.offset&&n<=r?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=i.offset&&n>=r&&(i.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,i){return{type:"insert",position:Ea._createAt(e,t),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++,_element:i.element}}_getRemoveDiff(e,t,i){return{type:"remove",position:Ea._createAt(e,t),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++,_element:i.element}}_getAttributesDiff(e,t,i){const n=[];i=new Map(i);for(const[r,o]of t){const t=i.has(r)?i.get(r):null;t!==o&&n.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:r,attributeOldValue:o,attributeNewValue:t,changeCount:this._changeCount++}),i.delete(r)}for(const[t,r]of i)n.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:r,changeCount:this._changeCount++});return n}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const i=this._changesInElement.get(t),n=e.startOffset;if(i)for(const e of i)if("insert"==e.type&&n>=e.offset&&n<e.offset+e.howMany)return!0;return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,i){const n=new Ra(Ea._createAt(e,t),Ea._createAt(e,t+i));for(const e of n.getItems({shallow:!0}))e.is("element")&&(this._elementSnapshots.delete(e),this._changesInElement.delete(e),this._removeAllNestedChanges(e,0,e.maxOffset))}}function Bc(e){const t=[];for(const i of e)if(i.is("$text"))for(let e=0;e<i.data.length;e++)t.push({name:"$text",attributes:new Map(i.getAttributes())});else t.push({name:i.name,attributes:new Map(i.getAttributes()),element:i});return t}function Vc(e,t){const i=[];let n=0,r=0;for(const e of t){if(e.offset>n){for(let t=0;t<e.offset-n;t++)i.push("e");r+=e.offset-n}if("insert"==e.type){for(let t=0;t<e.howMany;t++)i.push("i");n=e.offset+e.howMany}else if("remove"==e.type){for(let t=0;t<e.howMany;t++)i.push("r");n=e.offset,r+=e.howMany}else i.push(..."a".repeat(e.howMany).split("")),n=e.offset+e.howMany,r+=e.howMany}if(r<e)for(let t=0;t<e-r-n;t++)i.push("e");return i}function zc(e){const t="position"in e&&"$graveyard"==e.position.root.rootName,i="range"in e&&"$graveyard"==e.range.root.rootName;return!t&&!i}class Nc{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 _("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 i=this._operations[0];void 0===e&&(e=i.baseVersion);let n=t-1;for(const[t,i]of this._gaps)e>t&&e<i&&(e=i),n>t&&n<i&&(n=t-1);if(n<i.baseVersion||e>this.lastOperation.baseVersion)return[];let r=this._baseVersionToOperationIndex.get(e);void 0===r&&(r=0);let o=this._baseVersionToOperationIndex.get(n);return void 0===o&&(o=this._operations.length-1),this._operations.slice(r,o+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 Lc extends va{constructor(e,t,i="main"){super(t),this._isAttached=!0,this._isLoaded=!0,this._document=e,this.rootName=i}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Lc.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};const Dc="$graveyard";class Fc extends(S()){constructor(e){super(),this.model=e,this.history=new Nc,this.selection=new Za(this),this.roots=new Zn({idProperty:"rootName"}),this.differ=new Mc(e.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Dc),this.listenTo(e,"applyOperation",((e,t)=>{const i=t[0];i.isDocumentOperation&&this.differ.bufferOperation(i)}),{priority:"high"}),this.listenTo(e,"applyOperation",((e,t)=>{const i=t[0];i.isDocumentOperation&&this.history.addOperation(i)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(e.markers,"update",((e,t,i,n,r)=>{const o={...t.getData(),range:n};this.differ.bufferMarkerChange(t.name,r,o),null===i&&t.on("change",((e,i)=>{const n=t.getData();this.differ.bufferMarkerChange(t.name,{...n,range:i},n)}))})),this.registerPostFixer((e=>{let t=!1;for(const i of this.roots)i.isAttached()||i.isEmpty||(e.remove(e.createRangeIn(i)),t=!0);for(const i of this.model.markers)i.getRange().root.isAttached()||(e.removeMarker(i),t=!0);return t}))}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(Dc)}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new _("model-document-createroot-name-exists",this,{name:t});const i=new Lc(this,e,t);return this.roots.add(i),i}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=Rr(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,i=t.schema,n=t.createPositionFromPath(e,[0]);return i.getNearestSelectionRange(n)||t.createRange(n)}_validateSelectionRange(e){return jc(e.start)&&jc(e.end)}_callPostFixers(e){let t=!1;do{for(const i of this._postFixers)if(this.selection.refresh(),t=i(e),t)break}while(t)}}function jc(e){const t=e.textNode;if(t){const i=t.data,n=e.offset-t.startOffset;return!tr(i,n)&&!ir(i,n)}return!0}class Hc extends(S()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){const t=e instanceof Uc?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,i=!1,n=!1){const r=e instanceof Uc?e.name:e;if(r.includes(","))throw new _("markercollection-incorrect-marker-name",this);const o=this._markers.get(r);if(o){const e=o.getData(),s=o.getRange();let a=!1;return s.isEqual(t)||(o._attachLiveRange(Wa.fromRange(t)),a=!0),i!=o.managedUsingOperations&&(o._managedUsingOperations=i,a=!0),"boolean"==typeof n&&n!=o.affectsData&&(o._affectsData=n,a=!0),a&&this.fire(`update:${r}`,o,s,t,e),o}const s=Wa.fromRange(t),a=new Uc(r,s,i,n);return this._markers.set(r,a),this.fire(`update:${r}`,a,null,t,{...a.getData(),range:null}),a}_remove(e){const t=e instanceof Uc?e.name:e,i=this._markers.get(t);return!!i&&(this._markers.delete(t),this.fire(`update:${t}`,i,i.getRange(),null,i.getData()),this._destroyMarker(i),!0)}_refresh(e){const t=e instanceof Uc?e.name:e,i=this._markers.get(t);if(!i)throw new _("markercollection-refresh-marker-not-exists",this);const n=i.getRange();this.fire(`update:${t}`,i,n,n,i.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 Uc extends(S(fa)){constructor(e,t,i,n){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=i,this._affectsData=n}get managedUsingOperations(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new _("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}}Uc.prototype.is=function(e){return"marker"===e||"model:marker"===e};class qc extends Yl{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 _("detach-operation-on-document-node",this)}_execute(){Xl(Ra._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Wc extends fa{constructor(e){super(),this.markers=new Map,this._children=new ba,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 i of e)t=t.getChild(t.offsetToIndex(i));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 i of e)i.name?t.push(va.fromJSON(i)):t.push(ka.fromJSON(i));return new Wc(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const i=function(e){return"string"==typeof e?[new ka(e)]:(X(e)||(e=[e]),Array.from(e).map((e=>"string"==typeof e?new ka(e):e instanceof _a?new ka(e.data,e.getAttributes()):e)))}(t);for(const e of i)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,i)}_removeChildren(e,t=1){const i=this._children._removeNodes(e,t);for(const e of i)e.parent=null;return i}}Wc.prototype.is=function(e){return"documentFragment"===e||"model:documentFragment"===e};class $c{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new ka(e,t)}createElement(e,t){return new va(e,t)}createDocumentFragment(){return new Wc}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,i=0){if(this._assertWriterUsedCorrectly(),e instanceof ka&&""==e.data)return;const n=Ea._createAt(t,i);if(e.parent){if(Yc(e.root,n.root))return void this.move(Ra._createOn(e),n);if(e.root.document)throw new _("model-writer-insert-forbidden-move",this);this.remove(e)}const r=n.root.document?n.root.document.version:null,o=new sc(n,e,r);if(e instanceof ka&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),e instanceof Wc)for(const[t,i]of e.markers){const e=Ea._createAt(i.root,0),r={range:new Ra(i.start._getCombined(e,n),i.end._getCombined(e,n)),usingOperation:!0,affectsData:!0};this.model.markers.has(t)?this.updateMarker(t,r):this.addMarker(t,r)}}insertText(e,t,i,n){t instanceof Wc||t instanceof va||t instanceof Ea?this.insert(this.createText(e),t,i):this.insert(this.createText(e,t),i,n)}insertElement(e,t,i,n){t instanceof Wc||t instanceof va||t instanceof Ea?this.insert(this.createElement(e),t,i):this.insert(this.createElement(e,t),i,n)}append(e,t){this.insert(e,t,"end")}appendText(e,t,i){t instanceof Wc||t instanceof va?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),i,"end")}appendElement(e,t,i){t instanceof Wc||t instanceof va?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),i,"end")}setAttribute(e,t,i){if(this._assertWriterUsedCorrectly(),i instanceof Ra){const n=i.getMinimalFlatRanges();for(const i of n)Kc(this,e,t,i)}else Jc(this,e,t,i)}setAttributes(e,t){for(const[i,n]of Xn(e))this.setAttribute(i,n,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof Ra){const i=t.getMinimalFlatRanges();for(const t of i)Kc(this,e,null,t)}else Jc(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=e=>{for(const t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof Ra)for(const i of e.getItems())t(i);else t(e)}move(e,t,i){if(this._assertWriterUsedCorrectly(),!(e instanceof Ra))throw new _("writer-move-invalid-range",this);if(!e.isFlat)throw new _("writer-move-range-not-flat",this);const n=Ea._createAt(t,i);if(n.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!Yc(e.root,n.root))throw new _("writer-move-different-document",this);const r=e.root.document?e.root.document.version:null,o=new oc(e.start,e.end.offset-e.start.offset,n,r);this.batch.addOperation(o),this.model.applyOperation(o)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof Ra?e:Ra._createOn(e)).getMinimalFlatRanges().reverse();for(const e of t)this._addOperationForAffectedMarkers("move",e),Gc(e.start,e.end.offset-e.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,i=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof va))throw new _("writer-merge-no-element-before",this);if(!(i instanceof va))throw new _("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,i){return this.model.createPositionFromPath(e,t,i)}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,i=e.nodeAfter;this.move(Ra._createIn(i),Ea._createAt(t,"end")),this.remove(i)}_merge(e){const t=Ea._createAt(e.nodeBefore,"end"),i=Ea._createAt(e.nodeAfter,0),n=e.root.document.graveyard,r=new Ea(n,[0]),o=e.root.document.version,s=new lc(i,e.nodeAfter.maxOffset,t,r,o);this.batch.addOperation(s),this.model.applyOperation(s)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof va))throw new _("writer-rename-not-element-instance",this);const i=e.root.document?e.root.document.version:null,n=new uc(Ea._createBefore(e),e.name,t,i);this.batch.addOperation(n),this.model.applyOperation(n)}split(e,t){this._assertWriterUsedCorrectly();let i,n,r=e.parent;if(!r.parent)throw new _("writer-split-element-no-parent",this);if(t||(t=r.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new _("writer-split-invalid-limit-element",this);do{const t=r.root.document?r.root.document.version:null,o=r.maxOffset-e.offset,s=ac.getInsertionPosition(e),a=new ac(e,o,s,null,t);this.batch.addOperation(a),this.model.applyOperation(a),i||n||(i=r,n=e.parent.nextSibling),r=(e=this.createPositionAfter(e.parent)).parent}while(r!==t);return{position:e,range:new Ra(Ea._createAt(i,"end"),Ea._createAt(n,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new _("writer-wrap-range-not-flat",this);const i=t instanceof va?t:new va(t);if(i.childCount>0)throw new _("writer-wrap-element-not-empty",this);if(null!==i.parent)throw new _("writer-wrap-element-attached",this);this.insert(i,e.start);const n=new Ra(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(n,Ea._createAt(i,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new _("writer-unwrap-element-no-parent",this);this.move(Ra._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new _("writer-addmarker-no-usingoperation",this);const i=t.usingOperation,n=t.range,r=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new _("writer-addmarker-marker-exists",this);if(!n)throw new _("writer-addmarker-no-range",this);return i?(Zc(this,e,null,n,r),this.model.markers.get(e)):this.model.markers._set(e,n,i,r)}updateMarker(e,t){this._assertWriterUsedCorrectly();const i="string"==typeof e?e:e.name,n=this.model.markers.get(i);if(!n)throw new _("writer-updatemarker-marker-not-exists",this);if(!t)return v("writer-updatemarker-reconvert-using-editingcontroller",{markerName:i}),void this.model.markers._refresh(n);const r="boolean"==typeof t.usingOperation,o="boolean"==typeof t.affectsData,s=o?t.affectsData:n.affectsData;if(!r&&!t.range&&!o)throw new _("writer-updatemarker-wrong-options",this);const a=n.getRange(),l=t.range?t.range:a;r&&t.usingOperation!==n.managedUsingOperations?t.usingOperation?Zc(this,i,null,l,s):(Zc(this,i,a,null,s),this.model.markers._set(i,l,void 0,s)):n.managedUsingOperations?Zc(this,i,a,l,s):this.model.markers._set(i,l,void 0,s)}removeMarker(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new _("writer-removemarker-no-marker",this);const i=this.model.markers.get(t);i.managedUsingOperations?Zc(this,t,i.getRange(),null,i.affectsData):this.model.markers._remove(t)}addRoot(e,t="$root"){this._assertWriterUsedCorrectly();const i=this.model.document.getRoot(e);if(i&&i.isAttached())throw new _("writer-addroot-root-exists",this);const n=this.model.document,r=new mc(e,t,!0,n,n.version);return this.batch.addOperation(r),this.model.applyOperation(r),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 _("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 i=this.model.document,n=new mc(t.rootName,t.name,!1,i,i.version);this.batch.addOperation(n),this.model.applyOperation(n)}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,i]of Xn(e))this._setSelectionAttribute(t,i)}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 i=this.model.document.selection;if(i.isCollapsed&&i.anchor.parent.isEmpty){const n=Za._getStoreAttributeKey(e);this.setAttribute(n,t,i.anchor.parent)}i._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const i=Za._getStoreAttributeKey(e);this.removeAttribute(i,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new _("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(const i of this.model.markers){if(!i.managedUsingOperations)continue;const n=i.getRange();let r=!1;if("move"===e){const e=t;r=e.containsPosition(n.start)||e.start.isEqual(n.start)||e.containsPosition(n.end)||e.end.isEqual(n.end)}else{const e=t,i=e.nodeBefore,o=e.nodeAfter,s=n.start.parent==i&&n.start.isAtEnd,a=n.end.parent==o&&0==n.end.offset,l=n.end.nodeAfter==o,c=n.start.nodeAfter==o;r=s||a||l||c}r&&this.updateMarker(i.name,{range:n})}}}function Kc(e,t,i,n){const r=e.model,o=r.document;let s,a,l,c=n.start;for(const e of n.getWalker({shallow:!0}))l=e.item.getAttribute(t),s&&a!=l&&(a!=i&&d(),c=s),s=e.nextPosition,a=l;function d(){const n=new Ra(c,s),l=n.root.document?o.version:null,d=new hc(n,t,a,i,l);e.batch.addOperation(d),r.applyOperation(d)}s instanceof Ea&&s!=c&&a!=i&&d()}function Jc(e,t,i,n){const r=e.model,o=r.document,s=n.getAttribute(t);let a,l;if(s!=i){if(n.root===n){const e=n.document?o.version:null;l=new pc(n,t,s,i,e)}else{a=new Ra(Ea._createBefore(n),e.createPositionAfter(n));const r=a.root.document?o.version:null;l=new hc(a,t,s,i,r)}e.batch.addOperation(l),r.applyOperation(l)}}function Zc(e,t,i,n,r){const o=e.model,s=o.document,a=new cc(t,i,n,o.markers,!!r,s.version);e.batch.addOperation(a),o.applyOperation(a)}function Gc(e,t,i,n){let r;if(e.root.document){const i=n.document,o=new Ea(i.graveyard,[0]);r=new oc(e,t,o,i.version)}else r=new qc(e,t);i.addOperation(r),n.applyOperation(r)}function Yc(e,t){return e===t||e instanceof Lc&&t instanceof Lc}function Qc(e,t,i={}){if(t.isCollapsed)return;const n=t.getFirstRange();if("$graveyard"==n.root.rootName)return;const r=e.schema;e.change((e=>{if(!i.doNotResetEntireContent&&function(e,t){const i=e.getLimitElement(t);if(!t.containsEntireContent(i))return!1;const n=t.getFirstRange();return n.start.parent!=n.end.parent&&e.checkChild(i,"paragraph")}(r,t))return void function(e,t){const i=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(i)),id(e,e.createPositionAt(i,0),t)}(e,t);const o={};if(!i.doNotAutoparagraph){const e=t.getSelectedElement();e&&Object.assign(o,r.getAttributesWithProperty(e,"copyOnReplace",!0))}const[s,a]=function(e){const t=e.root.document.model,i=e.start;let n=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){const i=function(e){const t=e.parent,i=t.root.document.model.schema,n=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const e of n){if(i.isLimit(e))return null;if(i.isBlock(e))return e}}(n);if(i&&n.isTouching(t.createPositionAt(i,0))){const i=t.createSelection(e);t.modifySelection(i,{direction:"backward"});const r=i.getLastPosition(),o=t.createRange(r,n);t.hasContent(o,{ignoreMarkers:!0})||(n=r)}}return[Sc.fromPosition(i,"toPrevious"),Sc.fromPosition(n,"toNext")]}(n);s.isTouching(a)||e.remove(e.createRange(s,a)),i.leaveUnmerged||(function(e,t,i){const n=e.model;if(!td(e.model.schema,t,i))return;const[r,o]=function(e,t){const i=e.getAncestors(),n=t.getAncestors();let r=0;for(;i[r]&&i[r]==n[r];)r++;return[i[r],n[r]]}(t,i);r&&o&&(!n.hasContent(r,{ignoreMarkers:!0})&&n.hasContent(o,{ignoreMarkers:!0})?ed(e,t,i,r.parent):Xc(e,t,i,r.parent))}(e,s,a),r.removeDisallowedAttributes(s.parent.getChildren(),e)),nd(e,t,s),!i.doNotAutoparagraph&&function(e,t){const i=e.checkChild(t,"$text"),n=e.checkChild(t,"paragraph");return!i&&n}(r,s)&&id(e,s,t,o),s.detach(),a.detach()}))}function Xc(e,t,i,n){const r=t.parent,o=i.parent;if(r!=n&&o!=n){for(t=e.createPositionAfter(r),(i=e.createPositionBefore(o)).isEqual(t)||e.insert(o,t),e.merge(t);i.parent.isEmpty;){const t=i.parent;i=e.createPositionBefore(t),e.remove(t)}td(e.model.schema,t,i)&&Xc(e,t,i,n)}}function ed(e,t,i,n){const r=t.parent,o=i.parent;if(r!=n&&o!=n){for(t=e.createPositionAfter(r),(i=e.createPositionBefore(o)).isEqual(t)||e.insert(r,i);t.parent.isEmpty;){const i=t.parent;t=e.createPositionBefore(i),e.remove(i)}i=e.createPositionBefore(o),function(e,t){const i=t.nodeBefore,n=t.nodeAfter;i.name!=n.name&&e.rename(i,n.name),e.clearAttributes(i),e.setAttributes(Object.fromEntries(n.getAttributes()),i),e.merge(t)}(e,i),td(e.model.schema,t,i)&&ed(e,t,i,n)}}function td(e,t,i){const n=t.parent,r=i.parent;return n!=r&&!e.isLimit(n)&&!e.isLimit(r)&&function(e,t,i){const n=new Ra(e,t);for(const e of n.getWalker())if(i.isLimit(e.item))return!1;return!0}(t,i,e)}function id(e,t,i,n={}){const r=e.createElement("paragraph");e.model.schema.setAllowedAttributes(r,n,e),e.insert(r,t),nd(e,i,e.createPositionAt(r,0))}function nd(e,t,i){t instanceof Za?e.setSelection(i):t.setTo(i)}function rd(e,t){const i=[];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=>{i.push(e.start.parent),t.remove(e)})),i.forEach((e=>{let i=e;for(;i.parent&&i.isEmpty;){const e=t.createRangeOn(i);i=i.parent,t.remove(e)}}))}class od{constructor(e,t,i){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=i,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),i=this.writer.createPositionAfter(e);if(i.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new _("insertcontent-invalid-insertion-position",this);this.position=i,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Ra._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Ra(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=Sc.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 _("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=Sc.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Sc.fromPosition(e,"toNext"))}_mergeOnLeft(){const e=this._firstNode;if(!(e instanceof va))return;if(!this._canMergeLeft(e))return;const t=Sc._createBefore(e);t.stickiness="toNext";const i=Sc.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=Sc._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=Sc._createAt(t.nodeBefore,"end","toNext")),this.position=i.toPosition(),i.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_mergeOnRight(){const e=this._lastNode;if(!(e instanceof va))return;if(!this._canMergeRight(e))return;const t=Sc._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new _("insertcontent-invalid-insertion-position",this);this.position=Ea._createAt(t.nodeBefore,"end");const i=Sc.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=Sc._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=Sc._createAt(t.nodeBefore,0,"toPrevious")),this.position=i.toPosition(),i.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_canMergeLeft(e){const t=e.previousSibling;return t instanceof va&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){const t=e.nextSibling;return t instanceof va&&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 sd(e,t){const{isForward:i,walker:n,unit:r,schema:o,treatEmojiAsSingleUnit:s}=e,{type:a,item:l,nextPosition:c}=t;if("text"==a)return"word"===e.unit?function(e,t){let i=e.position.textNode;for(i||(i=t?e.position.nodeAfter:e.position.nodeBefore);i&&i.is("$text");){const n=e.position.offset-i.startOffset;if(cd(i,n,t))i=t?e.position.nodeAfter:e.position.nodeBefore;else{if(ld(i.data,n,t))break;e.next()}}return e.position}(n,i):function(e,t,i){const n=e.position.textNode;if(n){const r=n.data;let o=e.position.offset-n.startOffset;for(;tr(r,o)||"character"==t&&ir(r,o)||i&&rr(r,o);)e.next(),o=e.position.offset-n.startOffset}return e.position}(n,r,s);if(a==(i?"elementStart":"elementEnd")){if(o.isSelectable(l))return Ea._createAt(l,i?"after":"before");if(o.checkChild(c,"$text"))return c}else{if(o.isLimit(l))return void n.skip((()=>!0));if(o.checkChild(c,"$text"))return c}}function ad(e,t){const i=e.root,n=Ea._createAt(i,t?"end":0);return t?new Ra(e,n):new Ra(n,e)}function ld(e,t,i){const n=t+(i?0:-1);return' ,.?!:;"-()'.includes(e.charAt(n))}function cd(e,t,i){return t===(i?e.offsetSize:0)}class dd extends(q()){constructor(){super(),this.markers=new Hc,this.document=new Fc(this),this.schema=new Sl,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})),function(e){e.document.registerPostFixer((t=>function(e,t){const i=t.document.selection,n=t.schema,r=[];let o=!1;for(const e of i.getRanges()){const t=vl(e,n);t&&!t.isEqual(e)?(r.push(t),o=!0):r.push(e)}return o&&e.setSelection(function(e){const t=[...e],i=new Set;let n=1;for(;n<t.length;){const e=t[n],r=t.slice(0,n);for(const[o,s]of r.entries())if(!i.has(o))if(e.isEqual(s))i.add(o);else if(e.isIntersecting(s)){i.add(o),i.add(n);const r=e.getJoined(s);t.push(r)}n++}return t.filter(((e,t)=>!i.has(t)))}(r),{backward:i.isBackward}),!1}(t,e)))}(this),this.document.registerPostFixer(gl),this.on("insertContent",((e,[t,i])=>{e.return=function(e,t,i){return e.change((n=>{const r=i||e.document.selection;r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0});const o=new od(e,n,r.anchor),s=[];let a;if(t.is("documentFragment")){if(t.markers.size){const e=[];for(const[i,n]of t.markers){const{start:t,end:r}=n,o=t.isEqual(r);e.push({position:t,name:i,isCollapsed:o},{position:r,name:i,isCollapsed:o})}e.sort((({position:e},{position:t})=>e.isBefore(t)?1:-1));for(const{position:i,name:r,isCollapsed:o}of e){let e=null,a=null;const l=i.parent===t&&i.isAtStart,c=i.parent===t&&i.isAtEnd;l||c?o&&(a=l?"start":"end"):(e=n.createElement("$marker"),n.insert(e,i)),s.push({name:r,element:e,collapsed:a})}}a=t.getChildren()}else a=[t];o.handleNodes(a);let l=o.getSelectionRange();if(t.is("documentFragment")&&s.length){const e=l?Wa.fromRange(l):null,t={};for(let e=s.length-1;e>=0;e--){const{name:i,element:r,collapsed:a}=s[e],l=!t[i];if(l&&(t[i]=[]),r){const e=n.createPositionAt(r,"before");t[i].push(e),n.remove(r)}else{const e=o.getAffectedRange();if(!e){a&&t[i].push(o.position);continue}a?t[i].push(e[a]):t[i].push(l?e.start:e.end)}}for(const[e,[i,r]]of Object.entries(t))i&&r&&i.root===r.root&&i.root.document&&!n.model.markers.has(e)&&n.addMarker(e,{usingOperation:!0,affectsData:!0,range:new Ra(i,r)});e&&(l=e.toRange(),e.detach())}l&&(r instanceof Za?n.setSelection(l):r.setTo(l));const c=o.getAffectedRange()||e.createRange(r.anchor);return o.destroy(),c}))}(this,t,i)})),this.on("insertObject",((e,[t,i,n])=>{e.return=function(e,t,i,n={}){if(!e.schema.isObject(t))throw new _("insertobject-element-not-an-object",e,{object:t});const r=i||e.document.selection;let o=r;n.findOptimalPosition&&e.schema.isBlock(t)&&(o=e.createSelection(e.schema.findOptimalInsertionRange(r,n.findOptimalPosition)));const s=Gn(r.getSelectedBlocks()),a={};return s&&Object.assign(a,e.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),e.change((i=>{o.isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0});let r=t;const s=o.anchor.parent;!e.schema.checkChild(s,t)&&e.schema.checkChild(s,"paragraph")&&e.schema.checkChild("paragraph",t)&&(r=i.createElement("paragraph"),i.insert(t,r)),e.schema.setAllowedAttributes(r,a,i);const l=e.insertContent(r,o);return l.isCollapsed||n.setSelection&&function(e,t,i,n){const r=e.model;if("on"==i)return void e.setSelection(t,"on");if("after"!=i)throw new _("insertobject-invalid-place-parameter-value",r);let o=t.nextSibling;r.schema.isInline(t)?e.setSelection(t,"after"):(!(o&&r.schema.checkChild(o,"$text"))&&r.schema.checkChild(t.parent,"paragraph")&&(o=e.createElement("paragraph"),r.schema.setAllowedAttributes(o,n,e),r.insertContent(o,e.createPositionAfter(t))),o&&e.setSelection(o,0))}(i,t,n.setSelection,a),l}))}(this,t,i,n)})),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 Oc,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){_.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{e?"function"==typeof e?(t=e,e=new Oc):e instanceof Oc||(e=new Oc(e)):e=new Oc,this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){_.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,i,...n){const r=hd(t,i);return this.fire("insertContent",[e,r,i,...n])}insertObject(e,t,i,n,...r){const o=hd(t,i);return this.fire("insertObject",[e,o,n,n,...r])}deleteContent(e,t){Qc(this,e,t)}modifySelection(e,t){!function(e,t,i={}){const n=e.schema,r="backward"!=i.direction,o=i.unit?i.unit:"character",s=!!i.treatEmojiAsSingleUnit,a=t.focus,l=new xa({boundaries:ad(a,r),singleCharacters:!0,direction:r?"forward":"backward"}),c={walker:l,schema:n,isForward:r,unit:o,treatEmojiAsSingleUnit:s};let d;for(;d=l.next();){if(d.done)return;const i=sd(c,d.value);if(i)return void(t instanceof Za?e.change((e=>{e.setSelectionFocus(i)})):t.setFocus(i))}}(this,e,t)}getSelectedContent(e){return function(e,t){return e.change((e=>{const i=e.createDocumentFragment(),n=t.getFirstRange();if(!n||n.isCollapsed)return i;const r=n.start.root,o=n.start.getCommonPath(n.end),s=r.getNodeByPath(o);let a;a=n.start.parent==n.end.parent?n:e.createRange(e.createPositionAt(s,n.start.path[o.length]),e.createPositionAt(s,n.end.path[o.length]+1));const l=a.end.offset-a.start.offset;for(const t of a.getItems({shallow:!0}))t.is("$textProxy")?e.appendText(t.data,t.getAttributes(),i):e.append(e.cloneElement(t,!0),i);if(a!=n){const t=n._getTransformedByMove(a.start,e.createPositionAt(i,0),l)[0],r=e.createRange(e.createPositionAt(i,0),t.start);rd(e.createRange(t.end,e.createPositionAt(i,"end")),e),rd(r,e)}return i}))}(this,e)}hasContent(e,t={}){const i=e instanceof Ra?e:Ra._createIn(e);if(i.isCollapsed)return!1;const{ignoreWhitespaces:n=!1,ignoreMarkers:r=!1}=t;if(!r)for(const e of this.markers.getMarkersIntersectingRange(i))if(e.affectsData)return!0;for(const e of i.getItems())if(this.schema.isContent(e)){if(!e.is("$textProxy"))return!0;if(!n)return!0;if(-1!==e.data.search(/\S/))return!0}return!1}canEditAt(e){const t=hd(e);return this.fire("canEditAt",[t])}createPositionFromPath(e,t,i){return new Ea(e,t,i)}createPositionAt(e,t){return Ea._createAt(e,t)}createPositionAfter(e){return Ea._createAfter(e)}createPositionBefore(e){return Ea._createBefore(e)}createRange(e,t){return new Ra(e,t)}createRangeIn(e){return Ra._createIn(e)}createRangeOn(e){return Ra._createOn(e)}createSelection(...e){return new La(...e)}createBatch(e){return new Oc(e)}createOperationFromJSON(e){return fc.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 $c(this,t);const i=this._pendingChanges[0].callback(this._currentWriter);e.push(i),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 hd(e,t){if(e)return e instanceof La||e instanceof Za?e:e instanceof ya?t||0===t?new La(e,t):e.is("rootElement")?new La(e,"in"):new La(e,"on"):new La(e)}class gd extends Ts{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}class ud extends Ts{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}class pd{constructor(e){this.document=e}createDocumentFragment(e){return new Fo(this.document,e)}createElement(e,t,i){return new lo(this.document,e,t,i)}createText(e){return new Mr(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,i){return i._insertChild(e,t)}removeChildren(e,t,i){return i._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const i=e.parent;if(i){const n=i.getChildIndex(e);return this.removeChildren(n,1,i),this.insertChild(n,t,i),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const i=t.getChildIndex(e);this.remove(e),this.insertChild(i,e.getChildren(),t)}}rename(e,t){const i=new lo(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,i)?i:null}setAttribute(e,t,i){i._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,i){ve(e)&&void 0===i?t._setStyle(e):i._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,i){i._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return fo._createAt(e,t)}createPositionAfter(e){return fo._createAfter(e)}createPositionBefore(e){return fo._createBefore(e)}createRange(e,t){return new yo(e,t)}createRangeOn(e){return yo._createOn(e)}createRangeIn(e){return yo._createIn(e)}createSelection(...e){return new ko(...e)}}class md{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const i=this.get(e);if(!i)throw new _("commandcollection-command-not-found",this,{commandName:e});return i.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 wd extends Qn{constructor(e){super(),this.editor=e}set(e,t,i={}){if("string"==typeof t){const e=t;t=(t,i)=>{this.editor.execute(e),i()}}super.set(e,t,i)}}const fd="contentEditing",yd="common";class bd{constructor(e){this.keystrokeInfos=new Map,this._editor=e;const t=e.config.get("menuBar.isVisible"),i=e.locale.t;this.addKeystrokeInfoCategory({id:fd,label:i("Content editing keystrokes"),description:i("These keyboard shortcuts allow for quick access to content editing features.")});const n=[{label:i("Close contextual balloons, dropdowns, and dialogs"),keystroke:"Esc"},{label:i("Open the accessibility help dialog"),keystroke:"Alt+0"},{label:i("Move focus between form fields (inputs, buttons, etc.)"),keystroke:[["Tab"],["Shift+Tab"]]},{label:i("Move focus to the toolbar, navigate between toolbars"),keystroke:"Alt+F10",mayRequireFn:!0},{label:i("Navigate through the toolbar or menu bar"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]},{label:i("Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."),keystroke:[["Enter"],["Space"]]}];t&&n.push({label:i("Move focus to the menu bar, navigate between menu bars"),keystroke:"Alt+F9",mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:"navigation",label:i("User interface and content navigation keystrokes"),description:i("Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."),groups:[{id:"common",keystrokes:n}]})}addKeystrokeInfoCategory({id:e,label:t,description:i,groups:n}){this.keystrokeInfos.set(e,{id:e,label:t,description:i,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:e,id:yd}),n&&n.forEach((t=>{this.addKeystrokeInfoGroup({categoryId:e,...t})}))}addKeystrokeInfoGroup({categoryId:e=fd,id:t,label:i,keystrokes:n}){const r=this.keystrokeInfos.get(e);if(!r)throw new _("accessibility-unknown-keystroke-info-category",this._editor,{groupId:t,categoryId:e});r.groups.set(t,{id:t,label:i,keystrokes:n||[]})}addKeystrokeInfos({categoryId:e=fd,groupId:t=yd,keystrokes:i}){if(!this.keystrokeInfos.has(e))throw new _("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:e,keystrokes:i});const n=this.keystrokeInfos.get(e);if(!n.groups.has(t))throw new _("accessibility-unknown-keystroke-info-group",this._editor,{groupId:t,categoryId:e,keystrokes:i});n.groups.get(t).keystrokes.push(...i)}}class kd extends(q()){constructor(e={}){super();const t=this.constructor,{translations:i,...n}=t.defaultConfig||{},{translations:r=i,...o}=e,s=e.language||n.language;this._context=e.context||new dr({language:s,translations:r}),this._context._addEditor(this,!e.context);const a=Array.from(t.builtinPlugins||[]);this.config=new Mi(o,n),this.config.define("plugins",a),this.config.define(this._context._getEditorConfig()),this.plugins=new cr(this,a,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new md,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new dd,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const l=new oo;this.data=new Kl(this.model,l),this.editing=new El(this.model,l),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Jl([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 wd(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new bd(this)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new _("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new _("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 _("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))}setData(e){this.data.set(e)}getData(e){return this.data.get(e)}initPlugins(){const e=this.config,t=e.get("plugins"),i=e.get("removePlugins")||[],n=e.get("extraPlugins")||[],r=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(n),i,r)}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){_.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}static create(...e){throw new Error("This is an abstract method.")}}function _d(e){return class extends e{updateSourceElement(e){if(!this.sourceElement)throw new _("editor-missing-sourceelement",this);const t=this.config.get("updateSourceElementOnDestroy"),i=this.sourceElement instanceof HTMLTextAreaElement;if(!t&&!i)return void nn(this.sourceElement,"");const n="string"==typeof e?e:this.data.get();nn(this.sourceElement,n)}}}_d.updateSourceElement=_d(Object).prototype.updateSourceElement;class vd extends hr{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Zn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new _("pendingactions-add-invalid-message",this);const t=new(q());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]()}}const xd={bold:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="currentColor" d="M5.4 1c1.69 0 3.1 1.336 3.1 3 0 .95-.46 1.794-1.17 2.342C8.317 6.842 9 7.842 9 9c0 1.664-1.41 3-3.1 3H2.5a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5h2.9zM3 11h2.9C7.05 11 8 10.1 8 9s-.95-2-2.1-2H3v4zm2.4-9H3v4h2.4c1.15 0 2.1-.9 2.1-2s-.95-2-2.1-2z"/>\n</svg>\n',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',colorPalette:'<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>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',history:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v14.362c0 .64-.532 1.038-1.184 1.038H2.184C1.532 17.5 1 17.103 1 16.462V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.128 2.128 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7Z"/></svg>',imageUpload:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <g fill="none" stroke="currentColor">\n <rect width="11" height="9" x=".5" y="1.5" rx=".5" ry=".5"/>\n <path d="M.5 10.5l3.65-3.65a.5.5 0 01.71 0l1.79 1.8a.5.5 0 00.71 0l.79-.79a.5.5 0 01.71 0L11 10"/>\n </g>\n <circle cx="8" cy="4" r="1" fill="currentColor"/>\n</svg>\n',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1c-.662 0-1.2.47-1.2 1.1v14.248c0 .64.533 1.152 1.185 1.152h6.623v-7.236L6.617 9.15a.694.694 0 0 0-.957-.033L1.602 13.55V2.553l14.798.003V9.7H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.094 2.094 0 0 0-1.621.832 2.127 2.127 0 0 0 1.136 3.357 2.13 2.13 0 0 0 2.611-1.506 2.133 2.133 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path clip-rule="evenodd" d="M19.898 12.369v6.187a.844.844 0 0 1-.844.844h-8.719a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.531a.843.843 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.844.844 0 0 1 .247.597Zm-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h7.029a5.401 5.401 0 0 1 .615-4.338l.762-1.232-2.975-2.78a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v6.023c.449.131.887.32 1.307.573l.058.033c.046.028.09.057.135.086V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.15 2.15 0 0 0-1.611.834 2.118 2.118 0 0 0-.438 1.158 2.14 2.14 0 0 0 1.277 2.096 2.132 2.132 0 0 0 2.645-3.11 2.13 2.13 0 0 0-1.873-.978Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.647.647 0 0 0-.096.492.664.664 0 0 0 .278.418.7.7 0 0 0 .944-.234 1.741 1.741 0 0 1 2.478-.463 1.869 1.869 0 0 1 .476 2.55.637.637 0 0 0-.071.5.646.646 0 0 0 .309.396.627.627 0 0 0 .869-.19l.027-.041a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.78-.044.066a3.228 3.228 0 0 0 .82 4.403 3.005 3.005 0 0 0 4.275-.798l.13-.197a.626.626 0 0 0 .092-.475.638.638 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.029a1.741 1.741 0 0 1-2.477.461 1.87 1.87 0 0 1-.475-2.55l.029-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.408l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.838-.19-1.067-.346-.23-.82-.124-1.059.236l-1.268 1.907c-.239.36-.153.838.192 1.067.345.23.818.123 1.057-.236l1.268-1.907Z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.903 1.903 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598ZM7.463 8.163a.611.611 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.628.628 0 0 0-.417-.185Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.618.618 0 0 0-.42-.165ZM.91 11.5a.91.91 0 0 0-.91.912v6.877c0 .505.405.91.91.91h18.178a.91.91 0 0 0 .912-.91v-6.877a.908.908 0 0 0-.912-.912H.91ZM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516L3.668 13Zm4.947 0h1.801v4.3h2.7v1.4h-4.5V13h-.001Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9V13h-.001Zm-8.517 1.457-.614 2.059h1.262l-.648-2.059Z"/></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>',previousArrow:'<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>',nextArrow:'<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>',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 viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-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 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M13 5.5H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2ZM13 7a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-8A.5.5 0 0 1 2 7h11Z"/></svg>',objectSizeSmall:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-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 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M7 9.5H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2ZM7 11a.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 2 11h5Z"/></svg>',objectSizeMedium:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-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 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M10 7.5H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2ZM10 9a.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 2 9h8Z"/></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 xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="none" stroke="currentColor" stroke-linecap="round" d="M5 6.5H3c-.3 0-.5-.2-.5-.5V4c0-.3.2-.5.5-.5h2c.3 0 .5.2.5.5v2c0 .3-.2.5-.5.5zm5 0H8c-.3 0-.5-.2-.5-.5V4c0-.3.2-.5.5-.5h2c.3 0 .5.2.5.5v2c0 .3-.2.5-.5.5zM9.5 10c.5-.5 1-1.5 1-3V5.5m-6 4.5c.5-.5 1-1.5 1-3V5.5"/>\n</svg>\n',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>',redo:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="none" stroke="currentColor" stroke-linecap="round" d="M.5 8.2C.5 5 3.1 2.4 6.3 2.4 9 2.5 9.9 3.8 11 5m-2.5.5H11c.3 0 .5-.2.5-.5V2.5"/>\n</svg>\n',undo:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="none" stroke="currentColor" stroke-linecap="round" d="M11.5 8.2c0-3.2-2.6-5.8-5.8-5.8C3 2.5 2.1 3.8 1 5m2.5.5H1C.7 5.5.5 5.3.5 5V2.5"/>\n</svg>\n',bulletedList:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="none" stroke="currentColor" stroke-linecap="round" d="M5 2.5h5.5M5 6.5h5.5m-5.5 4h5.5"/>\n <g fill="currentColor">\n <circle cx="2" cy="2.5" r="1"/>\n <circle cx="2" cy="6.5" r="1"/>\n <circle cx="2" cy="10.5" r="1"/>\n </g>\n</svg>\n',numberedList:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="currentColor" d="M4.5 3a.5.5 0 010-1h6a.5.5 0 110 1h-6zm0 4a.5.5 0 010-1h6a.5.5 0 110 1h-6zm0 4a.5.5 0 110-1h6a.5.5 0 110 1h-6zM1.49 3.22c-.13 0-.21-.08-.21-.22v-.09c0-.13.08-.21.21-.21h.28V1.57l-.05.05c-.05.05-.1.07-.15.07-.04 0-.1-.01-.15-.08l-.07-.06a.242.242 0 01-.06-.15c0-.04.01-.09.07-.15l.41-.39c.07-.07.14-.1.22-.1h.14c.13 0 .21.08.21.22V2.7h.28c.13 0 .22.08.22.21V3c0 .13-.08.22-.22.22H1.49zm-.12 4.02c-.14 0-.23-.09-.23-.22 0-.58.38-.85.69-1.06.21-.15.39-.27.39-.42 0-.18-.14-.24-.27-.24-.15 0-.24.1-.28.14-.05.06-.11.09-.17.09a.21.21 0 01-.13-.05l-.08-.07c-.1-.08-.12-.19-.05-.29.13-.17.36-.38.75-.38.49 0 .83.31.83.76 0 .46-.37.71-.66.9-.17.11-.31.21-.37.32h.84c.13 0 .22.08.22.21v.09c0 .14-.08.22-.22.22H1.37zm.59 4c-.32 0-.56-.13-.71-.24-.1-.08-.12-.19-.04-.3l.06-.1c.05-.08.12-.1.16-.1.04 0 .09.01.13.04.08.06.21.13.37.13.19 0 .33-.11.33-.26 0-.25-.31-.28-.41-.28-.15 0-.22-.04-.27-.14a.239.239 0 01.03-.29s.37-.44.38-.45h-.56c-.13 0-.21-.08-.21-.21v-.08c0-.13.08-.22.21-.22h1.13c.13 0 .22.08.22.21s-.03.19-.08.26l-.41.48c.3.09.56.33.56.72-.01.41-.31.83-.89.83z"/>\n</svg>\n',todoList:'<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>',codeBlock:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="currentColor" d="M11 0a1 1 0 011 1v10a1 1 0 01-1 1H1a1 1 0 01-1-1V1a1 1 0 011-1h10zM5.5 10a.5.5 0 010-1h4a.5.5 0 010 1h-4zM2.146 4.854a.5.5 0 11.708-.708l2.148 2.149a1 1 0 010 1.42l-2.15 2.14a.5.5 0 11-.705-.71l2.15-2.14-2.15-2.151zM11 3H1v8h10V3zm0-2H1v1h10V1z"/>\n</svg>\n',browseFiles:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',heading1:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 9v10h-2v-8h-2V9h4zM4 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1V11H4v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v4.5z"/></svg>',heading2:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm16.076 8.343V18.5h-6.252c.067-.626.27-1.22.61-1.78.338-.561 1.006-1.305 2.005-2.232.804-.749 1.297-1.257 1.479-1.523.245-.368.368-.732.368-1.092 0-.398-.107-.703-.32-.917-.214-.214-.51-.32-.886-.32-.372 0-.669.111-.889.336-.22.224-.347.596-.38 1.117l-1.778-.178c.106-.982.438-1.686.997-2.114.558-.427 1.257-.64 2.095-.64.918 0 1.64.247 2.164.742.525.495.787 1.11.787 1.847 0 .419-.075.818-.225 1.197-.15.378-.388.775-.714 1.19-.216.275-.605.67-1.168 1.187-.563.516-.92.859-1.07 1.028a3.11 3.11 0 0 0-.365.495h3.542z"/></svg>',heading3:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm9.989 7.53 1.726-.209c.055.44.203.777.445 1.01.24.232.533.349.876.349.368 0 .678-.14.93-.42.251-.279.377-.655.377-1.13 0-.448-.12-.803-.362-1.066a1.153 1.153 0 0 0-.882-.393c-.228 0-.501.044-.819.133l.197-1.453c.482.012.85-.092 1.105-.315.253-.222.38-.517.38-.885 0-.313-.093-.563-.279-.75-.186-.185-.434-.278-.743-.278a1.07 1.07 0 0 0-.78.317c-.216.212-.347.52-.394.927l-1.644-.28c.114-.562.287-1.012.517-1.348.231-.337.553-.601.965-.794a3.24 3.24 0 0 1 1.387-.289c.876 0 1.579.28 2.108.838.436.457.653.973.653 1.549 0 .817-.446 1.468-1.339 1.955.533.114.96.37 1.28.768.319.398.478.878.478 1.441 0 .817-.298 1.513-.895 2.088-.596.576-1.339.864-2.228.864-.842 0-1.54-.243-2.094-.727-.555-.485-.876-1.118-.965-1.901z"/></svg>',heading4:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm13.55 10v-1.873h-3.81v-1.561l4.037-5.91h1.498v5.904h1.156v1.567h-1.156V18.5H17.05zm0-3.44v-3.18l-2.14 3.18h2.14z"/></svg>',heading5:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm9.578 7.607 1.777-.184c.05.402.201.72.45.955a1.223 1.223 0 0 0 1.81-.101c.258-.303.387-.759.387-1.368 0-.572-.128-1-.384-1.286-.256-.285-.59-.428-1-.428-.512 0-.971.226-1.377.679l-1.448-.21.915-4.843h4.716v1.67H15.56l-.28 1.58a2.697 2.697 0 0 1 1.219-.298 2.68 2.68 0 0 1 2.012.863c.55.576.825 1.323.825 2.241a3.36 3.36 0 0 1-.666 2.05c-.605.821-1.445 1.232-2.52 1.232-.86 0-1.56-.23-2.101-.692-.542-.461-.866-1.081-.971-1.86z"/></svg>',heading6:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm15.595 2.973-1.726.19c-.043-.355-.153-.617-.33-.787-.178-.169-.409-.253-.692-.253-.377 0-.695.169-.956.507-.26.339-.424 1.043-.492 2.114.445-.525.997-.787 1.657-.787.745 0 1.383.284 1.914.85.531.568.797 1.3.797 2.197 0 .952-.28 1.716-.838 2.291-.559.576-1.276.864-2.152.864-.94 0-1.712-.365-2.317-1.095-.605-.73-.908-1.927-.908-3.59 0-1.705.316-2.935.946-3.688.63-.753 1.45-1.13 2.457-1.13.706 0 1.291.198 1.755.594.463.395.758.97.885 1.723zm-4.043 3.891c0 .58.133 1.028.4 1.343.266.315.57.473.914.473.33 0 .605-.13.825-.388.22-.258.33-.68.33-1.27 0-.604-.118-1.047-.355-1.329a1.115 1.115 0 0 0-.89-.422c-.342 0-.632.134-.869.403s-.355.666-.355 1.19z"/></svg>',horizontalLine:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',html:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17 0a2 2 0 0 1 2 2v7a1 1 0 0 1 1 1v5a1 1 0 0 1-.883.993l-.118.006L19 17a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2l-.001-1.001-.116-.006A1 1 0 0 1 0 15v-5a1 1 0 0 1 .999-1L1 2a2 2 0 0 1 2-2h14zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5l-.001-1.001zm-3.478-6.013-.014.014H14v.007l-1.525 1.525-1.46-1.46-.015.013V10h-1v5h1v-3.53l1.428 1.43.048.043.131-.129L14 11.421V15h1v-5h-.965l-.014-.014zM2 10H1v5h1v-2h2v2h1v-5H4v2H2v-2zm7 0H6v1h1v4h1v-4h1v-1zm8 0h-1v5h3v-1h-2v-4zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5zM10 7v1H4V7h6zm3-2v1H4V5h9zm-3-2v1H4V3h6z"/></svg>',indent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',outdent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',table:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5.5v3h4v-3H3Zm0 4v3h4v-3H3Zm0 4v3h4v-3H3Zm5 3h4v-3H8v3Zm5 0h4v-3h-4v3Zm4-4v-3h-4v3h4Zm0-4v-3h-4v3h4Zm1.5 8A1.5 1.5 0 0 1 17 18H3a1.5 1.5 0 0 1-1.5-1.5V3c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13.5Zm-6.5-4v-3H8v3h4Zm0-4v-3H8v3h4Z"/></svg>'};class Ad extends Zn{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",((e,t,i)=>{this._renderViewIntoCollectionParent(t,i)})),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 _("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const i of this)for(const n of e)i.delegate(n).to(t);this.on("add",((i,n)=>{for(const i of e)n.delegate(i).to(t)})),this.on("remove",((i,n)=>{for(const i of e)n.stopDelegating(i,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)}}class Ed extends(S()){constructor(e){super(),Object.assign(this,Vd(Bd(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 _("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const i of t.children)jd(i)?yield i:Hd(i)&&(yield*e(i))}(this)}static bind(e,t){return{to:(i,n)=>new Td({eventNameOrFunction:i,attribute:i,observable:e,emitter:t,callback:n}),if:(i,n,r)=>new Id({observable:e,emitter:t,attribute:i,valueIfTrue:n,callback:r})}}static extend(e,t){if(e._isRendered)throw new _("template-extend-render",[this,e]);Dd(e,Vd(Bd(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new _("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(""),Sd(this.text)?this._bindToObservable({schema:this.text,updater:Rd(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,i=e.revertData;for(const n in this.attributes){const r=t.getAttribute(n),o=this.attributes[n];i&&(i.attributes[n]=r);const s=qd(o)?o[0].ns:null;if(Sd(o)){const a=qd(o)?o[0].value:o;i&&Wd(n)&&a.unshift(r),this._bindToObservable({schema:a,updater:Od(t,n,s),data:e})}else if("style"==n&&"string"!=typeof o[0])this._renderStyleAttribute(o[0],e);else{i&&r&&Wd(n)&&o.unshift(r);const e=o.map((e=>e&&e.value||e)).reduce(((e,t)=>e.concat(t)),[]).reduce(Nd,"");Fd(e)||t.setAttributeNS(s,n,e)}}}_renderStyleAttribute(e,t){const i=t.node;for(const n in e){const r=e[n];Sd(r)?this._bindToObservable({schema:[r],updater:Md(i,n),data:t}):i.style[n]=r}}_renderElementChildren(e){const t=e.node,i=e.intoFragment?document.createDocumentFragment():t,n=e.isApplying;let r=0;for(const o of this.children)if(Ud(o)){if(!n){o.setParent(t);for(const e of o)i.appendChild(e.element)}}else if(jd(o))n||(o.isRendered||o.render(),i.appendChild(o.element));else if(zi(o))i.appendChild(o);else if(n){const t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),o._renderNode({intoFragment:!1,node:i.childNodes[r++],isApplying:!0,revertData:t})}else i.appendChild(o.render());e.intoFragment&&t.appendChild(i)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const i=this.eventListeners[t].map((i=>{const[n,r]=t.split("@");return i.activateDomEventListener(n,r,e)}));e.revertData&&e.revertData.bindings.push(i)}}_bindToObservable({schema:e,updater:t,data:i}){const n=i.revertData;Pd(e,t,i);const r=e.filter((e=>!Fd(e))).filter((e=>e.observable)).map((n=>n.activateAttributeListener(e,t,i)));n&&n.bindings.push(r)}_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 i=e;for(const e in t.attributes){const n=t.attributes[e];null===n?i.removeAttribute(e):i.setAttribute(e,n)}for(let e=0;e<t.children.length;++e)this._revertTemplateFromNode(i.childNodes[e],t.children[e])}}class Cd{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,i){const n=()=>Pd(e,t,i);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,n),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,n)}}}class Td extends Cd{constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,i){const n=(e,i)=>{t&&!i.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(i):this.observable.fire(this.eventNameOrFunction,i))};return this.emitter.listenTo(i.node,e,n),()=>{this.emitter.stopListening(i.node,e,n)}}}class Id extends Cd{constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){return!Fd(super.getValue(e))&&(this.valueIfTrue||!0)}}function Sd(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(Sd):e instanceof Cd)}function Pd(e,t,{node:i}){const n=function(e,t){return e.map((e=>e instanceof Cd?e.getValue(t):e))}(e,i);let r;r=1==e.length&&e[0]instanceof Id?n[0]:n.reduce(Nd,""),Fd(r)?t.remove():t.set(r)}function Rd(e){return{set(t){e.textContent=t},remove(){e.textContent=""}}}function Od(e,t,i){return{set(n){e.setAttributeNS(i,t,n)},remove(){e.removeAttributeNS(i,t)}}}function Md(e,t){return{set(i){e.style[t]=i},remove(){e.style[t]=null}}}function Bd(e){return Ri(e,(e=>{if(e&&(e instanceof Cd||Hd(e)||jd(e)||Ud(e)))return e}))}function Vd(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=Rn(e.text)}(e),e.on&&(e.eventListeners=function(e){for(const t in e)zd(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=Rn(e[t].value)),zd(e,t)}(e.attributes);const t=[];if(e.children)if(Ud(e.children))t.push(e.children);else for(const i of e.children)Hd(i)||jd(i)||zi(i)?t.push(i):t.push(new Ed(i));e.children=t}return e}function zd(e,t){e[t]=Rn(e[t])}function Nd(e,t){return Fd(t)?e:Fd(e)?t:`${e} ${t}`}function Ld(e,t){for(const i in t)e[i]?e[i].push(...t[i]):e[i]=t[i]}function Dd(e,t){if(t.attributes&&(e.attributes||(e.attributes={}),Ld(e.attributes,t.attributes)),t.eventListeners&&(e.eventListeners||(e.eventListeners={}),Ld(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 _("ui-template-extend-children-mismatch",e);let i=0;for(const n of t.children)Dd(e.children[i++],n)}}function Fd(e){return!e&&0!==e}function jd(e){return e instanceof Jd}function Hd(e){return e instanceof Ed}function Ud(e){return e instanceof Ad}function qd(e){return N(e[0])&&e[0].ns}function Wd(e){return"class"==e||"style"==e}var $d=a(424),Kd={attributes:{"data-cke":!0}};Kd.setAttributes=br(),Kd.insert=fr().bind(null,"head"),Kd.domAPI=mr(),Kd.insertStyleElement=_r(),ur()($d.A,Kd),$d.A&&$d.A.locals&&$d.A.locals;class Jd extends(Di(q())){constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new Zn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((t,i)=>{i.locale=e,i.t=e&&e.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ed.bind(this,this)}createCollection(e){const t=new Ad(e);return this._viewCollections.add(t),t}registerChild(e){X(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){X(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new Ed(e)}extendTemplate(e){Ed.extend(this.template,e)}render(){if(this.isRendered)throw new _("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 Zd=a(8029),Gd={attributes:{"data-cke":!0}};Gd.setAttributes=br(),Gd.insert=fr().bind(null,"head"),Gd.domAPI=mr(),Gd.insertStyleElement=_r(),ur()(Zd.A,Gd),Zd.A&&Zd.A.locals&&Zd.A.locals;class Yd extends Jd{constructor(e){super(e),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${y()}`;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")}]})}}class Qd extends Jd{constructor(e,t){super(e);const i=e.t,n=new Yd;n.text=i("Help Contents. To close this dialog press ESC."),this.setTemplate({tag:"div",attributes:{class:["ck","ck-accessibility-help-dialog__content"],"aria-labelledby":n.id,role:"document",tabindex:-1},children:[pe(document,"p",{},i("Below, you can find a list of keyboard shortcuts that can be used in the editor.")),...this._createCategories(Array.from(t.values())),n]})}focus(){this.element.focus()}_createCategories(e){return e.map((e=>{const t=[pe(document,"h3",{},e.label),...Array.from(e.groups.values()).map((e=>this._createGroup(e))).flat()];return e.description&&t.splice(1,0,pe(document,"p",{},e.description)),pe(document,"section",{},t)}))}_createGroup(e){const t=e.keystrokes.sort(((e,t)=>e.label.localeCompare(t.label))).map((e=>this._createGroupRow(e))).flat(),i=[pe(document,"dl",{},t)];return e.label&&i.unshift(pe(document,"h4",{},e.label)),i}_createGroupRow(e){const t=this.locale.t,i=pe(document,"dt"),n=pe(document,"dd"),r=function(e){return"string"==typeof e?[[e]]:"string"==typeof e[0]?[e]:e}(e.keystroke),o=[];for(const e of r)o.push(e.map(Xd).join(""));return i.innerHTML=e.label,n.innerHTML=o.join(", ")+(e.mayRequireFn&&d.isMac?` ${t("(may require <kbd>Fn</kbd>)")}`:""),[i,n]}}function Xd(e){return Sn(e).split("+").map((e=>`<kbd>${e}</kbd>`)).join("+")}const eh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 6.628a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/><path d="M8.5 9.125a.3.3 0 0 0-.253-.296L5.11 8.327a.75.75 0 1 1 .388-1.449l4.04.716c.267.072.624.08.893.009l4.066-.724a.75.75 0 1 1 .388 1.45l-3.132.5a.3.3 0 0 0-.253.296v1.357a.3.3 0 0 0 .018.102l1.615 4.438a.75.75 0 0 1-1.41.513l-1.35-3.71a.3.3 0 0 0-.281-.197h-.209a.3.3 0 0 0-.282.198l-1.35 3.711a.75.75 0 0 1-1.41-.513l1.64-4.509a.3.3 0 0 0 .019-.103V9.125Z"/><path clip-rule="evenodd" d="M10 18.5a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17Zm0 1.5c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10Z"/></svg>';var th=a(7131),ih={attributes:{"data-cke":!0}};ih.setAttributes=br(),ih.insert=fr().bind(null,"head"),ih.domAPI=mr(),ih.insertStyleElement=_r(),ur()(th.A,ih),th.A&&th.A.locals&&th.A.locals;class nh extends or{constructor(){super(...arguments),this.contentView=null}static get requires(){return[jg]}static get pluginName(){return"AccessibilityHelp"}init(){const e=this.editor,t=e.locale.t;e.ui.componentFactory.add("accessibilityHelp",(()=>{const e=this._createButton(gh);return e.set({tooltip:!0,withText:!1,label:t("Accessibility help")}),e})),e.ui.componentFactory.add("menuBar:accessibilityHelp",(()=>{const e=this._createButton(Op);return e.label=t("Accessibility"),e})),e.keystrokes.set("Alt+0",((e,t)=>{this._showDialog(),t()})),this._setupRootLabels()}_createButton(e){const t=new e(this.editor.locale);return t.set({keystroke:"Alt+0",icon:eh}),t.on("execute",(()=>this._showDialog())),t}_setupRootLabels(){const e=this.editor,t=e.editing.view,i=e.t;function n(e,t){const n=`${t.getAttribute("aria-label")}. ${i("Press %0 for help.",[Sn("Alt+0")])}`;e.setAttribute("aria-label",n,t)}e.ui.on("ready",(()=>{t.change((e=>{for(const i of t.document.roots)n(e,i)})),e.on("addRoot",((i,r)=>{const o=e.editing.view.document.getRoot(r.rootName);t.change((e=>n(e,o)))}),{priority:"low"})}))}_showDialog(){const e=this.editor,t=e.plugins.get("Dialog"),i=e.locale.t;this.contentView||(this.contentView=new Qd(e.locale,e.accessibility.keystrokeInfos)),t.show({id:"accessibilityHelp",className:"ck-accessibility-help-dialog",title:i("Accessibility help"),icon:eh,hasCloseButton:!0,content:this.contentView})}}class rh extends Ad{constructor(e,t=[]){super(t),this.locale=e}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Ed({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=pe(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 oh=a(4313),sh={attributes:{"data-cke":!0}};sh.setAttributes=br(),sh.insert=fr().bind(null,"head"),sh.domAPI=mr(),sh.insertStyleElement=_r(),ur()(oh.A,sh),oh.A&&oh.A.locals&&oh.A.locals;class ah extends Jd{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:i}of Array.from(e.attributes))ah.presentationalAttributeNames.includes(t)&&this.element.setAttribute(t,i);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}))}}ah.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"];const lh=ah;class ch extends Jd{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 dh=a(1191),hh={attributes:{"data-cke":!0}};hh.setAttributes=br(),hh.insert=fr().bind(null,"head"),hh.domAPI=mr(),hh.insertStyleElement=_r(),ur()(dh.A,hh),dh.A&&dh.A.locals&&dh.A.locals;class gh extends Jd{constructor(e,t=new ch){super(e),this._focusDelayed=null;const i=this.bindTemplate,n=y();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${n}`),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 lh,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const r={tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(e=>!e)),i.if("isVisible","ck-hidden",(e=>!e)),i.to("isOn",(e=>e?"ck-on":"ck-off")),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],role:i.to("role"),type:i.to("type",(e=>e||"button")),tabindex:i.to("tabindex"),"aria-checked":i.to("ariaChecked"),"aria-label":i.to("ariaLabel"),"aria-labelledby":i.to("ariaLabelledBy"),"aria-disabled":i.if("isEnabled",!0,(e=>!e)),"aria-pressed":i.to("isOn",(e=>!!this.isToggleable&&String(!!e))),"data-cke-tooltip-text":i.to("_tooltipString"),"data-cke-tooltip-position":i.to("tooltipPosition")},children:this.children,on:{click:i.to((e=>{this.isEnabled?this.fire("execute"):e.preventDefault()}))}};d.isSafari&&(this._focusDelayed||(this._focusDelayed=er((()=>this.focus()),0)),r.on.mousedown=i.to((()=>{this._focusDelayed()})),r.on.mouseup=i.to((()=>{this._focusDelayed.cancel()}))),this.setTemplate(r)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(e){return e.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),e}_createKeystrokeView(){const e=new Jd;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(e=>Sn(e)))}]}),e}_getTooltipString(e,t,i){return e?"string"==typeof e?e:(i&&(i=Sn(i)),e instanceof Function?e(t,i):`${t}${i?` (${i})`:""}`):""}}var uh=a(3963),ph={attributes:{"data-cke":!0}};ph.setAttributes=br(),ph.insert=fr().bind(null,"head"),ph.domAPI=mr(),ph.insertStyleElement=_r(),ur()(uh.A,ph),uh.A&&uh.A.locals&&uh.A.locals;class mh extends gh{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 Jd;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}class wh extends gh{constructor(e){super(e),this.buttonView=this,this._fileInputView=new fh(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 fh extends Jd{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()}}const yh='<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>';var bh=a(4909),kh={attributes:{"data-cke":!0}};kh.setAttributes=br(),kh.insert=fr().bind(null,"head"),kh.domAPI=mr(),kh.insertStyleElement=_r(),ur()(bh.A,kh),bh.A&&bh.A.locals&&bh.A.locals;class _h extends Jd{constructor(e,t){super(e);const i=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",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}focus(){this.buttonView.focus()}_createButtonView(){const e=new gh(this.locale),t=e.bindTemplate;return e.set({withText:!0,icon:yh}),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 vh=a(5113),xh={attributes:{"data-cke":!0}};xh.setAttributes=br(),xh.insert=fr().bind(null,"head"),xh.domAPI=mr(),xh.insertStyleElement=_r(),ur()(vh.A,xh),vh.A&&vh.A.locals&&vh.A.locals,a(8156),a(734);var Ah=a(1758),Eh={attributes:{"data-cke":!0}};Eh.setAttributes=br(),Eh.insert=fr().bind(null,"head"),Eh.domAPI=mr(),Eh.insertStyleElement=_r(),ur()(Ah.A,Eh),Ah.A&&Ah.A.locals&&Ah.A.locals;class Ch extends Jd{constructor(e,t){super(e);const i=`ck-labeled-field-view-${y()}`,n=`ck-labeled-field-view-status-${y()}`;this.fieldView=t(this,i,n),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(i),this.statusView=this._createStatusView(n),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",((e,t)=>e||t));const r=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",r.to("class"),r.if("isEnabled","ck-disabled",(e=>!e)),r.if("isEmpty","ck-labeled-field-view_empty"),r.if("isFocused","ck-labeled-field-view_focused"),r.if("placeholder","ck-labeled-field-view_placeholder"),r.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(e){const t=new Yd(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new Jd(this.locale),i=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",i.if("errorText","ck-labeled-field-view__status_error"),i.if("_statusText","ck-hidden",(e=>!e))],id:e,role:i.if("errorText","alert")},children:[{text:i.to("_statusText")}]}),t}focus(e){this.fieldView.focus(e)}}class Th extends Jd{constructor(e){super(e),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("tabIndex",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.set("ariaLabel",void 0),this.focusTracker=new Yn,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"),tabindex:t.to("tabIndex"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById"),"aria-label":t.to("ariaLabel")},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,i)=>{this._setDomElementValue(i),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 Ih=a(7377),Sh={attributes:{"data-cke":!0}};Sh.setAttributes=br(),Sh.insert=fr().bind(null,"head"),Sh.domAPI=mr(),Sh.insertStyleElement=_r(),ur()(Ih.A,Sh),Ih.A&&Ih.A.locals&&Ih.A.locals;class Ph extends Th{constructor(e){super(e),this.set("inputMode","text");const t=this.bindTemplate;this.extendTemplate({attributes:{inputmode:t.to("inputMode")}})}}class Rh extends Ph{constructor(e){super(e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var Oh=a(9675),Mh={attributes:{"data-cke":!0}};Mh.setAttributes=br(),Mh.insert=fr().bind(null,"head"),Mh.domAPI=mr(),Mh.insertStyleElement=_r(),ur()(Oh.A,Mh),Oh.A&&Oh.A.locals&&Oh.A.locals;class Bh extends Jd{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():v("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 Vh=a(9321),zh={attributes:{"data-cke":!0}};zh.setAttributes=br(),zh.insert=fr().bind(null,"head"),zh.domAPI=mr(),zh.insertStyleElement=_r(),ur()(Vh.A,zh),Vh.A&&Vh.A.locals&&Vh.A.locals;class Nh extends Jd{constructor(e,t,i){super(e);const n=this.bindTemplate;this.buttonView=t,this.panelView=i,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 Qn,this.focusTracker=new Yn,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",n.to("class"),n.if("isEnabled","ck-disabled",(e=>!e))],id:n.to("id"),"aria-describedby":n.to("ariaDescribedById")},children:[t,i]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":n.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,i)=>{if(i)if("auto"===this.panelPosition){const e=Nh._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:i,southWest:n,northEast:r,northWest:o,southMiddleEast:s,southMiddleWest:a,northMiddleEast:l,northMiddleWest:c}=Nh.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[i,n,s,a,e,r,o,l,c,t]:[n,i,a,s,e,o,r,c,l,t]}}Nh.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"})},Nh._getOptimalPosition=cn;const Lh=Nh;class Dh extends gh{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 lh;return e.content=yh,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}class Fh extends(S()){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 i=e.actions[t];"string"==typeof i&&(i=[i]);for(const n of i)e.keystrokeHandler.set(n,((e,i)=>{this[t](),i()}))}this.on("forwardCycle",(()=>this.focusFirst()),{priority:"low"}),this.on("backwardCycle",(()=>this.focusLast()),{priority:"low"})}get first(){return this.focusables.find(jh)||null}get last(){return this.focusables.filter(jh).slice(-1)[0]||null}get next(){return this._getDomFocusableItem(1)}get previous(){return this._getDomFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((t,i)=>{const n=t.element===this.focusTracker.focusedElement;return n&&(e=i),n})),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&&this.focusTracker.focusedElement!==e.element&&e.focus(t)}_getDomFocusableItem(e){const t=this.focusables.length;if(!t)return null;const i=this.current;if(null===i)return this[1===e?"first":"last"];let n=this.focusables.get(i),r=(i+t+e)%t;do{const i=this.focusables.get(r);if(jh(i)){n=i;break}r=(r+t+e)%t}while(r!==i);return n}}function jh(e){return Hh(e)&&ln(e.element)}function Hh(e){return!(!("focus"in e)||"function"!=typeof e.focus)}class Uh extends Jd{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class qh extends Jd{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function Wh(e){if(Array.isArray(e))return{items:e,removeItems:[]};const t={items:[],removeItems:[]};return e?{...t,...e}:t}var $h=a(2385),Kh={attributes:{"data-cke":!0}};Kh.setAttributes=br(),Kh.insert=fr().bind(null,"head"),Kh.domAPI=mr(),Kh.insertStyleElement=_r(),ur()($h.A,Kh),$h.A&&$h.A.locals&&$h.A.locals;const{threeVerticalDots:Jh}=xd,Zh={alignLeft:xd.alignLeft,bold:xd.bold,importExport:xd.importExport,paragraph:xd.paragraph,plus:xd.plus,text:xd.text,threeVerticalDots:xd.threeVerticalDots,pilcrow:xd.pilcrow,dragIndicator:xd.dragIndicator};class Gh extends Jd{constructor(e,t){super(e);const i=this.bindTemplate,n=this.t;this.options=t||{},this.set("ariaLabel",n("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Yn,this.keystrokes=new Qn,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Yh(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const r="rtl"===e.uiLanguageDirection;this._focusCycler=new Fh({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[r?"arrowright":"arrowleft","arrowup"],focusNext:[r?"arrowleft":"arrowright","arrowdown"]}});const o=["ck","ck-toolbar",i.to("class"),i.if("isCompact","ck-toolbar_compact")];var s;this.options.shouldGroupWhenFull&&this.options.isFloating&&o.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:o,role:"toolbar","aria-label":i.to("ariaLabel"),style:{maxWidth:i.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(s=this,s.bindTemplate.to((e=>{e.target===s.element&&e.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new Xh(this):new Qh(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,i){this.items.addMany(this._buildItemsFromConfig(e,t,i))}_buildItemsFromConfig(e,t,i){const n=Wh(e),r=i||n.removeItems;return this._cleanItemsConfiguration(n.items,t,r).map((e=>N(e)?this._createNestedToolbarDropdown(e,t,r):"|"===e?new Uh:"-"===e?new qh:t.create(e))).filter((e=>!!e))}_cleanItemsConfiguration(e,t,i){const n=e.filter(((e,n,r)=>"|"===e||-1===i.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||(v("toolbarview-line-break-ignored-when-grouping-items",r),!1):!(!N(e)&&!t.has(e)&&(v("toolbarview-item-unavailable",{item:e}),1)))));return this._cleanSeparatorsAndLineBreaks(n)}_cleanSeparatorsAndLineBreaks(e){const t=e=>"-"!==e&&"|"!==e,i=e.length,n=e.findIndex(t);if(-1===n)return[];const r=i-e.slice().reverse().findIndex(t);return e.slice(n,r).filter(((e,i,n)=>!!t(e)||!(i>0&&n[i-1]===e)))}_createNestedToolbarDropdown(e,t,i){let{label:n,icon:r,items:o,tooltip:s=!0,withText:a=!1}=e;if(o=this._cleanItemsConfiguration(o,t,i),!o.length)return null;const l=ug(this.locale);return n||v("toolbarview-nested-toolbar-dropdown-missing-label",e),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:n,tooltip:s,withText:!!a}),!1!==r?l.buttonView.icon=Zh[r]||r||Jh:l.buttonView.withText=!0,pg(l,(()=>l.toolbarView._buildItemsFromConfig(o,t,i))),l}}class Yh extends Jd{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class Qh{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=>Hh(e)?e:null)),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class Xh{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._updateFocusCyclableItems.bind(this)),e.children.on("change",this._updateFocusCyclableItems.bind(this)),e.items.on("change",((e,t)=>{const i=t.index,n=Array.from(t.added);for(const e of t.removed)i>=this.ungroupedItems.length?this.groupedItems.remove(e):this.ungroupedItems.remove(e);for(let e=i;e<i+n.length;e++){const t=n[e-i];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(!ln(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,i=new Zi(e.lastChild),n=new Zi(e);if(!this.cachedPadding){const i=Ui.window.getComputedStyle(e),n="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(i[n])}return"ltr"===t?i.right>n.right-this.cachedPadding:i.left<n.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new tn(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 Uh),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,i=ug(e);return i.class="ck-toolbar__grouped-dropdown",i.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",pg(i,this.groupedItems),i.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:Jh}),i}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((e=>{Hh(e)&&this.viewFocusables.add(e)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class eg extends Jd{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 tg extends Jd{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class ig extends Jd{constructor(e,t=new Yd){super(e);const i=this.bindTemplate,n=new og(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,n]),n.set({role:"group",ariaLabelledBy:t.id}),n.focusTracker.destroy(),n.keystrokes.destroy(),this.items=n.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",i.if("isVisible","ck-hidden",(e=>!e))]},children:this.children})}focus(){if(this.items){const e=this.items.find((e=>!(e instanceof tg)));e&&e.focus()}}}var ng=a(3619),rg={attributes:{"data-cke":!0}};rg.setAttributes=br(),rg.insert=fr().bind(null,"head"),rg.domAPI=mr(),rg.insertStyleElement=_r(),ur()(ng.A,rg),ng.A&&ng.A.locals&&ng.A.locals;class og extends Jd{constructor(e){super(e),this._listItemGroupToChangeListeners=new WeakMap;const t=this.bindTemplate;this.focusables=new Ad,this.items=this.createCollection(),this.focusTracker=new Yn,this.keystrokes=new Qn,this._focusCycler=new Fh({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 ig?this._registerFocusableItemsGroup(e):e instanceof eg&&this._registerFocusableListItem(e);this.items.on("change",((e,t)=>{for(const e of t.removed)e instanceof ig?this._deregisterFocusableItemsGroup(e):e instanceof eg&&this._deregisterFocusableListItem(e);for(const e of Array.from(t.added).reverse())e instanceof ig?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,i)=>{for(const e of i.removed)this._deregisterFocusableListItem(e);for(const t of Array.from(i.added).reverse())this._registerFocusableListItem(t,this.items.getIndex(e)+i.index)}}_registerFocusableItemsGroup(e,t){Array.from(e.items).forEach(((e,i)=>{const n=void 0!==t?t+i:void 0;this._registerFocusableListItem(e,n)}));const i=this._getOnGroupItemsChangeCallback(e);this._listItemGroupToChangeListeners.set(e,i),e.items.on("change",i)}_deregisterFocusableItemsGroup(e){for(const t of e.items)this._deregisterFocusableListItem(t);e.items.off("change",this._listItemGroupToChangeListeners.get(e)),this._listItemGroupToChangeListeners.delete(e)}}var sg=a(228),ag={attributes:{"data-cke":!0}};ag.setAttributes=br(),ag.insert=fr().bind(null,"head"),ag.domAPI=mr(),ag.insertStyleElement=_r(),ur()(sg.A,ag),sg.A&&sg.A.locals&&sg.A.locals;class lg extends Jd{constructor(e,t){super(e);const i=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 Qn,this.focusTracker=new Yn,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.to("class"),i.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 gh;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 gh,t=e.bindTemplate;return e.icon=yh,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 cg=a(8142),dg={attributes:{"data-cke":!0}};dg.setAttributes=br(),dg.insert=fr().bind(null,"head"),dg.domAPI=mr(),dg.insertStyleElement=_r(),ur()(cg.A,dg),cg.A&&cg.A.locals&&cg.A.locals;var hg=a(2209),gg={attributes:{"data-cke":!0}};function ug(e,i=Dh){const n="function"==typeof i?new i(e):i,r=new Bh(e),o=new Lh(e,n,r);return n.bind("isEnabled").to(o),n instanceof lg?n.arrowView.bind("isOn").to(o,"isOpen"):n.bind("isOn").to(o,"isOpen"),function(e){(function(e){e.on("render",(()=>{t({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 mh||(e.isOpen=!1)}))}(e),function(e){e.focusTracker.on("change:isFocused",((t,i,n)=>{e.isOpen&&!n&&(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",((t,i)=>{e.isOpen&&(e.panelView.focus(),i())})),e.keystrokes.set("arrowup",((t,i)=>{e.isOpen&&(e.panelView.focusLast(),i())}))}(e),function(e){e.on("change:isOpen",((t,i,n)=>{if(n)return;const r=e.panelView.element;r&&r.contains(Ui.document.activeElement)&&e.buttonView.focus()}))}(e),function(e){e.on("change:isOpen",((t,i,n)=>{n&&e.panelView.focus()}),{priority:"low"})}(e)}(o),o}function pg(e,t,i={}){e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.isOpen?mg(e,t,i):e.once("change:isOpen",(()=>mg(e,t,i)),{priority:"highest"}),i.enableActiveItemFocusOnDropdownOpen&&yg(e,(()=>e.toolbarView.items.find((e=>e.isOn))))}function mg(e,t,i){const n=e.locale,r=n.t,o=e.toolbarView=new Gh(n),s="function"==typeof t?t():t;o.ariaLabel=i.ariaLabel||r("Dropdown toolbar"),i.maxWidth&&(o.maxWidth=i.maxWidth),i.class&&(o.class=i.class),i.isCompact&&(o.isCompact=i.isCompact),i.isVertical&&(o.isVertical=!0),s instanceof Ad?o.items.bindTo(s).using((e=>e)):o.items.addMany(s),e.panelView.children.add(o),o.items.delegate("execute").to(e)}function wg(e,t,i={}){e.isOpen?fg(e,t,i):e.once("change:isOpen",(()=>fg(e,t,i)),{priority:"highest"}),yg(e,(()=>e.listView.items.find((e=>e instanceof eg&&e.children.first.isOn))))}function fg(e,t,i){const n=e.locale,r=e.listView=new og(n),o="function"==typeof t?t():t;r.ariaLabel=i.ariaLabel,r.role=i.role,bg(e,r.items,o,n),e.panelView.children.add(r),r.items.delegate("execute").to(e)}function yg(e,t){e.on("change:isOpen",(()=>{if(!e.isOpen)return;const i=t();i&&("function"==typeof i.focus?i.focus():v("ui-dropdown-focus-child-on-open-child-missing-focus",{view:i}))}),{priority:b.low-10})}function bg(e,t,i,n){t.bindTo(i).using((t=>{if("separator"===t.type)return new tg(n);if("group"===t.type){const i=new ig(n);return i.set({label:t.label}),bg(e,i.items,t.items,n),i.items.delegate("execute").to(e),i}if("button"===t.type||"switchbutton"===t.type){const e=new eg(n);let i;return"button"===t.type?(i=new gh(n),i.bind("ariaChecked").to(i,"isOn")):i=new mh(n),i.bind(...Object.keys(t.model)).to(t.model),i.delegate("execute").to(e),e.children.add(i),e}return null}))}gg.setAttributes=br(),gg.insert=fr().bind(null,"head"),gg.domAPI=mr(),gg.insertStyleElement=_r(),ur()(hg.A,gg),hg.A&&hg.A.locals&&hg.A.locals;const kg=(e,t,i)=>{const n=new Rh(e.locale);return n.set({id:t,ariaDescribedById:i}),n.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),n.bind("hasError").to(e,"errorText",(e=>!!e)),n.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(n),n};var _g=a(3557),vg={attributes:{"data-cke":!0}};vg.setAttributes=br(),vg.insert=fr().bind(null,"head"),vg.domAPI=mr(),vg.insertStyleElement=_r(),ur()(_g.A,vg),_g.A&&_g.A.locals&&_g.A.locals;var xg=a(9977),Ag={attributes:{"data-cke":!0}};Ag.setAttributes=br(),Ag.insert=fr().bind(null,"head"),Ag.domAPI=mr(),Ag.insertStyleElement=_r(),ur()(xg.A,Ag),xg.A&&xg.A.locals&&xg.A.locals;class Eg{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(Cg(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new _("componentfactory-item-missing",this,{name:e});return this._components.get(Cg(e)).callback(this.editor.locale)}has(e){return this._components.has(Cg(e))}}function Cg(e){return String(e).toLowerCase()}var Tg=a(7197),Ig={attributes:{"data-cke":!0}};Ig.setAttributes=br(),Ig.insert=fr().bind(null,"head"),Ig.domAPI=mr(),Ig.insertStyleElement=_r(),ur()(Tg.A,Ig),Tg.A&&Tg.A.locals&&Tg.A.locals;class Sg extends Jd{constructor(e,t={}){super(e);const i=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",i.to("class")]},children:this.children}),t.icon&&(this.iconView=new lh,this.iconView.content=t.icon,this.children.add(this.iconView));const n=new Jd(e);n.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"],role:"presentation"},children:[{text:i.to("label")}]}),this.children.add(n)}}var Pg=a(2274),Rg={attributes:{"data-cke":!0}};Rg.setAttributes=br(),Rg.insert=fr().bind(null,"head"),Rg.domAPI=mr(),Rg.insertStyleElement=_r(),ur()(Pg.A,Rg),Pg.A&&Pg.A.locals&&Pg.A.locals;class Og extends Jd{constructor(e){super(e),this.children=this.createCollection(),this.keystrokes=new Qn,this._focusTracker=new Yn,this._focusables=new Ad,this.focusCycler=new Fh({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__actions"]},children:this.children})}render(){super.render(),this.keystrokes.listenTo(this.element)}setButtons(e){for(const t of e){const e=new gh(this.locale);let i;for(i in e.on("execute",(()=>t.onExecute())),t.onCreate&&t.onCreate(e),t)"onExecute"!=i&&"onCreate"!=i&&e.set(i,t[i]);this.children.add(e)}this._updateFocusCyclableItems()}focus(e){-1===e?this.focusCycler.focusLast():this.focusCycler.focusFirst()}_updateFocusCyclableItems(){Array.from(this.children).forEach((e=>{this._focusables.add(e),this._focusTracker.add(e.element)}))}}class Mg extends Jd{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__content"]},children:this.children})}reset(){for(;this.children.length;)this.children.remove(0)}}var Bg=a(9455),Vg={attributes:{"data-cke":!0}};Vg.setAttributes=br(),Vg.insert=fr().bind(null,"head"),Vg.domAPI=mr(),Vg.insertStyleElement=_r(),ur()(Bg.A,Vg),Bg.A&&Bg.A.locals&&Bg.A.locals;const zg="screen-center",Ng="editor-center",Lg=rn("px");class Dg extends(function(e){return class extends e{constructor(...e){super(...e),this._onDragBound=this._onDrag.bind(this),this._onDragEndBound=this._onDragEnd.bind(this),this._lastDraggingCoordinates={x:0,y:0},this.on("render",(()=>{this._attachListeners()})),this.set("isDragging",!1)}_attachListeners(){this.listenTo(this.element,"mousedown",this._onDragStart.bind(this)),this.listenTo(this.element,"touchstart",this._onDragStart.bind(this))}_attachDragListeners(){this.listenTo(Ui.document,"mouseup",this._onDragEndBound),this.listenTo(Ui.document,"touchend",this._onDragEndBound),this.listenTo(Ui.document,"mousemove",this._onDragBound),this.listenTo(Ui.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(Ui.document,"mouseup",this._onDragEndBound),this.stopListening(Ui.document,"touchend",this._onDragEndBound),this.stopListening(Ui.document,"mousemove",this._onDragBound),this.stopListening(Ui.document,"touchmove",this._onDragBound)}_onDragStart(e,t){if(!this._isHandleElementPressed(t))return;this._attachDragListeners();let i=0,n=0;t instanceof MouseEvent?(i=t.clientX,n=t.clientY):(i=t.touches[0].clientX,n=t.touches[0].clientY),this._lastDraggingCoordinates={x:i,y:n},this.isDragging=!0}_onDrag(e,t){if(!this.isDragging)return void this._detachDragListeners();let i=0,n=0;t instanceof MouseEvent?(i=t.clientX,n=t.clientY):(i=t.touches[0].clientX,n=t.touches[0].clientY),t.preventDefault(),this.fire("drag",{deltaX:Math.round(i-this._lastDraggingCoordinates.x),deltaY:Math.round(n-this._lastDraggingCoordinates.y)}),this._lastDraggingCoordinates={x:i,y:n}}_onDragEnd(){this._detachDragListeners(),this.isDragging=!1}_isHandleElementPressed(e){return!!this.dragHandleElement&&(this.dragHandleElement===e.target||e.target instanceof HTMLElement&&this.dragHandleElement.contains(e.target))}}}(Jd)){constructor(e,{getCurrentDomRoot:t,getViewportOffset:i}){super(e),this.wasMoved=!1;const n=this.bindTemplate,r=e.t;this.set("className",""),this.set("ariaLabel",r("Editor dialog")),this.set("isModal",!1),this.set("position",zg),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=t,this._getViewportOffset=i,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new Qn,this.focusTracker=new Yn,this._focusables=new Ad,this._focusCycler=new Fh({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog-overlay",n.if("isModal","ck-dialog-overlay__transparent",(e=>!e)),n.if("_isVisible","ck-hidden",(e=>!e))],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",n.to("className")],role:"dialog","aria-label":n.to("ariaLabel"),style:{top:n.to("_top",(e=>Lg(e))),left:n.to("_left",(e=>Lg(e))),visibility:n.if("_isTransparent","hidden")}},children:this.parts}]})}render(){super.render(),this.keystrokes.set("Esc",((e,t)=>{this.fire("close",{source:"escKeyPress"}),t()})),this.on("drag",((e,{deltaX:t,deltaY:i})=>{this.wasMoved=!0,this.moveBy(t,i)})),this.listenTo(Ui.window,"resize",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.listenTo(Ui.document,"scroll",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.on("change:_isVisible",((e,t,i)=>{i&&(this._isTransparent=!0,setTimeout((()=>{this.updatePosition(),this._isTransparent=!1,this.focus()}),10))})),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView?this.headerView.element:null}setupParts({icon:e,title:t,hasCloseButton:i=!0,content:n,actionButtons:r}){t&&(this.headerView=new Sg(this.locale,{icon:e}),i&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=t,this.ariaLabel=t,this.parts.add(this.headerView,0)),n&&(n instanceof Jd&&(n=[n]),this.contentView=new Mg(this.locale),this.contentView.children.addMany(n),this.parts.add(this.contentView)),r&&(this.actionsView=new Og(this.locale),this.actionsView.setButtons(r),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(e,t){const i=this._getViewportRect(),n=this._getDialogRect();e+n.width>i.right&&(e=i.right-n.width),e<i.left&&(e=i.left),t<i.top&&(t=i.top),this._moveTo(e,t)}_moveTo(e,t){this._left=e,this._top=t}moveBy(e,t){this.moveTo(this._left+e,this._top+t)}_moveOffScreen(){this._moveTo(-9999,-9999)}updatePosition(){if(!this.element||!this.element.parentNode)return;const e=this._getViewportRect();let t,i=this.position;this._getCurrentDomRoot()?t=this._getVisibleDomRootRect(e):i=zg;const n=Dg.defaultOffset,r=this._getDialogRect();switch(i){case"editor-top-side":if(t){const e="ltr"===this.locale.contentLanguageDirection?t.right-r.width-n:t.left+n;this.moveTo(e,t.top+n)}else this._moveOffScreen();break;case Ng:t?this.moveTo(Math.round(t.left+t.width/2-r.width/2),Math.round(t.top+t.height/2-r.height/2)):this._moveOffScreen();break;case zg:this.moveTo(Math.round((e.width-r.width)/2),Math.round((e.height-r.height)/2));break;case"editor-top-center":t?this.moveTo(Math.round(t.left+t.width/2-r.width/2),t.top+n):this._moveOffScreen();break;case"editor-bottom-center":t?this.moveTo(Math.round(t.left+t.width/2-r.width/2),t.bottom-r.height-n):this._moveOffScreen();break;case"editor-above-center":t?this.moveTo(Math.round(t.left+t.width/2-r.width/2),t.top-r.height-n):this._moveOffScreen();break;case"editor-below-center":t?this.moveTo(Math.round(t.left+t.width/2-r.width/2),t.bottom+n):this._moveOffScreen()}}_getVisibleDomRootRect(e){let t=new Zi(this._getCurrentDomRoot()).getVisible();return t?(t=e.getIntersection(t),t||null):null}_getDialogRect(){return new Zi(this.element.firstElementChild)}_getViewportRect(){return function(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new Zi(Ui.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t.left+=e.left,t.right-=e.right,t.width-=e.left+e.right,t}(this._getViewportOffset())}_updateFocusCyclableItems(){const e=[];if(this.contentView)for(const t of this.contentView.children)Hh(t)&&e.push(t);this.actionsView&&e.push(this.actionsView),this.closeButtonView&&e.push(this.closeButtonView),e.forEach((e=>{var t;this._focusables.add(e),this.focusTracker.add(e.element),Hh(t=e)&&"focusCycler"in t&&t.focusCycler instanceof Fh&&(this.listenTo(e.focusCycler,"forwardCycle",(e=>{this._focusCycler.focusNext(),this._focusCycler.next!==this._focusCycler.focusables.get(this._focusCycler.current)&&e.stop()})),this.listenTo(e.focusCycler,"backwardCycle",(e=>{this._focusCycler.focusPrevious(),this._focusCycler.previous!==this._focusCycler.focusables.get(this._focusCycler.current)&&e.stop()})))}))}_createCloseButton(){const e=new gh(this.locale),t=this.locale.t;return e.set({label:t("Close"),tooltip:!0,icon:xd.cancel}),e.on("execute",(()=>this.fire("close",{source:"closeButton"}))),e}}Dg.defaultOffset=15;const Fg=Dg;class jg extends or{static get pluginName(){return"Dialog"}constructor(e){super(e);const t=e.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set("id",null),e.accessibility.addKeystrokeInfos({categoryId:"navigation",keystrokes:[{label:t("Move focus in and out of an active dialog window"),keystroke:"Ctrl+F6",mayRequireFn:!0}]})}_initShowHideListeners(){this.on("show",((e,t)=>{this._show(t)})),this.on("show",((e,t)=>{t.onShow&&t.onShow(this)}),{priority:"low"}),this.on("hide",(()=>{jg._visibleDialogPlugin&&jg._visibleDialogPlugin._hide()})),this.on("hide",(()=>{this._onHide&&(this._onHide(this),this._onHide=void 0)}),{priority:"low"})}_initFocusToggler(){const e=this.editor;e.keystrokes.set("Ctrl+F6",((t,i)=>{this.isOpen&&!this.view.isModal&&(this.view.focusTracker.isFocused?e.editing.view.focus():this.view.focus(),i())}))}_initMultiRootIntegration(){const e=this.editor.model;e.document.on("change:data",(()=>{if(!this.view)return;const t=e.document.differ.getChangedRoots();for(const e of t)e.state&&this.view.updatePosition()}))}show(e){this.hide(),this.fire(`show:${e.id}`,e)}_show({id:e,icon:t,title:i,hasCloseButton:n=!0,content:r,actionButtons:o,className:s,isModal:a,position:l,onHide:c}){const d=this.editor;this.view=new Fg(d.locale,{getCurrentDomRoot:()=>d.editing.view.getDomRoot(d.model.document.selection.anchor.root.rootName),getViewportOffset:()=>d.ui.viewportOffset});const h=this.view;h.on("close",(()=>{this.hide()})),d.ui.view.body.add(h),d.ui.focusTracker.add(h.element),d.keystrokes.listenTo(h.element),l||(l=a?zg:Ng),h.set({position:l,_isVisible:!0,className:s,isModal:a}),h.setupParts({icon:t,title:i,hasCloseButton:n,content:r,actionButtons:o}),this.id=e,c&&(this._onHide=c),this.isOpen=!0,jg._visibleDialogPlugin=this}hide(){jg._visibleDialogPlugin&&jg._visibleDialogPlugin.fire(`hide:${jg._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;const e=this.editor,t=this.view;t.contentView&&t.contentView.reset(),e.ui.view.body.remove(t),e.ui.focusTracker.remove(t.element),e.keystrokes.stopListening(t.element),t.destroy(),e.editing.view.focus(),this.id=null,this.isOpen=!1,jg._visibleDialogPlugin=null}}var Hg=a(2210),Ug={attributes:{"data-cke":!0}};Ug.setAttributes=br(),Ug.insert=fr().bind(null,"head"),Ug.domAPI=mr(),Ug.insertStyleElement=_r(),ur()(Hg.A,Ug),Hg.A&&Hg.A.locals&&Hg.A.locals;const qg=rn("px"),Wg=Ui.document.body,$g={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class Kg extends Jd{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",qg),left:t.to("left",qg)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){this.show();const t=Kg.defaultPositions,i=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:Wg,fitInViewport:!0},e),n=Kg._getOptimalPosition(i)||$g,r=parseInt(n.left),o=parseInt(n.top),s=n.name,a=n.config||{},{withArrow:l=!0}=a;this.top=o,this.left=r,this.position=s,this.withArrow=l}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=Zg(e.target),i=e.limiter?Zg(e.limiter):Wg;this.listenTo(Ui.document,"scroll",((n,r)=>{const o=r.target,s=t&&o.contains(t),a=i&&o.contains(i);!s&&!a&&t&&i||this.attachTo(e)}),{useCapture:!0}),this.listenTo(Ui.window,"resize",(()=>{this.attachTo(e)}))}_stopPinning(){this.stopListening(Ui.document,"scroll"),this.stopListening(Ui.window,"resize")}}Kg.arrowSideOffset=25,Kg.arrowHeightOffset=10,Kg.stickyVerticalOffset=20,Kg._getOptimalPosition=cn,Kg.defaultPositions=Gg();const Jg=Kg;function Zg(e){return Oi(e)?e:$i(e)?e.commonAncestorContainer:"function"==typeof e?Zg(e()):null}function Gg(e={}){const{sideOffset:t=Kg.arrowSideOffset,heightOffset:i=Kg.arrowHeightOffset,stickyVerticalOffset:n=Kg.stickyVerticalOffset,config:r}=e;return{northWestArrowSouthWest:(e,i)=>({top:o(e,i),left:e.left-t,name:"arrow_sw",...r&&{config:r}}),northWestArrowSouthMiddleWest:(e,i)=>({top:o(e,i),left:e.left-.25*i.width-t,name:"arrow_smw",...r&&{config:r}}),northWestArrowSouth:(e,t)=>({top:o(e,t),left:e.left-t.width/2,name:"arrow_s",...r&&{config:r}}),northWestArrowSouthMiddleEast:(e,i)=>({top:o(e,i),left:e.left-.75*i.width+t,name:"arrow_sme",...r&&{config:r}}),northWestArrowSouthEast:(e,i)=>({top:o(e,i),left:e.left-i.width+t,name:"arrow_se",...r&&{config:r}}),northArrowSouthWest:(e,i)=>({top:o(e,i),left:e.left+e.width/2-t,name:"arrow_sw",...r&&{config:r}}),northArrowSouthMiddleWest:(e,i)=>({top:o(e,i),left:e.left+e.width/2-.25*i.width-t,name:"arrow_smw",...r&&{config:r}}),northArrowSouth:(e,t)=>({top:o(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s",...r&&{config:r}}),northArrowSouthMiddleEast:(e,i)=>({top:o(e,i),left:e.left+e.width/2-.75*i.width+t,name:"arrow_sme",...r&&{config:r}}),northArrowSouthEast:(e,i)=>({top:o(e,i),left:e.left+e.width/2-i.width+t,name:"arrow_se",...r&&{config:r}}),northEastArrowSouthWest:(e,i)=>({top:o(e,i),left:e.right-t,name:"arrow_sw",...r&&{config:r}}),northEastArrowSouthMiddleWest:(e,i)=>({top:o(e,i),left:e.right-.25*i.width-t,name:"arrow_smw",...r&&{config:r}}),northEastArrowSouth:(e,t)=>({top:o(e,t),left:e.right-t.width/2,name:"arrow_s",...r&&{config:r}}),northEastArrowSouthMiddleEast:(e,i)=>({top:o(e,i),left:e.right-.75*i.width+t,name:"arrow_sme",...r&&{config:r}}),northEastArrowSouthEast:(e,i)=>({top:o(e,i),left:e.right-i.width+t,name:"arrow_se",...r&&{config:r}}),southWestArrowNorthWest:e=>({top:s(e),left:e.left-t,name:"arrow_nw",...r&&{config:r}}),southWestArrowNorthMiddleWest:(e,i)=>({top:s(e),left:e.left-.25*i.width-t,name:"arrow_nmw",...r&&{config:r}}),southWestArrowNorth:(e,t)=>({top:s(e),left:e.left-t.width/2,name:"arrow_n",...r&&{config:r}}),southWestArrowNorthMiddleEast:(e,i)=>({top:s(e),left:e.left-.75*i.width+t,name:"arrow_nme",...r&&{config:r}}),southWestArrowNorthEast:(e,i)=>({top:s(e),left:e.left-i.width+t,name:"arrow_ne",...r&&{config:r}}),southArrowNorthWest:e=>({top:s(e),left:e.left+e.width/2-t,name:"arrow_nw",...r&&{config:r}}),southArrowNorthMiddleWest:(e,i)=>({top:s(e),left:e.left+e.width/2-.25*i.width-t,name:"arrow_nmw",...r&&{config:r}}),southArrowNorth:(e,t)=>({top:s(e),left:e.left+e.width/2-t.width/2,name:"arrow_n",...r&&{config:r}}),southArrowNorthMiddleEast:(e,i)=>({top:s(e),left:e.left+e.width/2-.75*i.width+t,name:"arrow_nme",...r&&{config:r}}),southArrowNorthEast:(e,i)=>({top:s(e),left:e.left+e.width/2-i.width+t,name:"arrow_ne",...r&&{config:r}}),southEastArrowNorthWest:e=>({top:s(e),left:e.right-t,name:"arrow_nw",...r&&{config:r}}),southEastArrowNorthMiddleWest:(e,i)=>({top:s(e),left:e.right-.25*i.width-t,name:"arrow_nmw",...r&&{config:r}}),southEastArrowNorth:(e,t)=>({top:s(e),left:e.right-t.width/2,name:"arrow_n",...r&&{config:r}}),southEastArrowNorthMiddleEast:(e,i)=>({top:s(e),left:e.right-.75*i.width+t,name:"arrow_nme",...r&&{config:r}}),southEastArrowNorthEast:(e,i)=>({top:s(e),left:e.right-i.width+t,name:"arrow_ne",...r&&{config:r}}),westArrowEast:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.left-t.width-i,name:"arrow_e",...r&&{config:r}}),eastArrowWest:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.right+i,name:"arrow_w",...r&&{config:r}}),viewportStickyNorth:(e,t,i,o)=>{const s=o||i;return e.getIntersection(s)?s.height-e.height>n?null:{top:s.top+n,left:e.left+e.width/2-t.width/2,name:"arrowless",config:{withArrow:!1,...r}}:null}};function o(e,t){return e.top-t.height-i}function s(e){return e.bottom+i}}var Yg=a(697),Qg={attributes:{"data-cke":!0}};Qg.setAttributes=br(),Qg.insert=fr().bind(null,"head"),Qg.domAPI=mr(),Qg.insertStyleElement=_r(),ur()(Yg.A,Qg),Yg.A&&Yg.A.locals&&Yg.A.locals;const Xg="ck-tooltip";class eu extends(Di()){constructor(e){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,this._mutationObserver=null,eu._editors.add(e),eu._instance)return eu._instance;eu._instance=this,this.tooltipTextView=new Jd(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 Jg(e.locale),this.balloonPanelView.class=Xg,this.balloonPanelView.content.add(this.tooltipTextView),this._mutationObserver=function(e){const t=new MutationObserver((()=>{e()}));return{attach(e){t.observe(e,{attributes:!0,attributeFilter:["data-cke-tooltip-text","data-cke-tooltip-position"]})},detach(){t.disconnect()}}}((()=>{this._updateTooltipPosition()})),this._pinTooltipDebounced=Fs(this._pinTooltip,600),this._unpinTooltipDebounced=Fs(this._unpinTooltip,400),this.listenTo(Ui.document,"keydown",this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(Ui.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Ui.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Ui.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Ui.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Ui.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(e){const t=e.ui.view&&e.ui.view.body;eu._editors.delete(e),this.stopListening(e.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),eu._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),eu._instance=null)}static getPositioningFunctions(e){const t=eu.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]}_onKeyDown(e,t){"Escape"===t.key&&this._currentElementWithTooltip&&(this._unpinTooltip(),t.stopPropagation())}_onEnterOrFocus(e,{target:t}){const i=iu(t);i?i!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(i,nu(i))):"focus"===e.name&&this._unpinTooltip()}_onLeaveOrBlur(e,{target:t,relatedTarget:i}){if("mouseleave"===e.name){if(!Oi(t))return;const e=this.balloonPanelView.element,n=e&&(e===i||e.contains(i)),r=!n&&t===e;if(n)return void this._unpinTooltipDebounced.cancel();if(!r&&this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;const o=iu(t),s=iu(i);(r||o&&o!==s)&&this._unpinTooltipDebounced()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltipDebounced()}}_onScroll(e,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(e,{text:t,position:i,cssClass:n}){this._unpinTooltip();const r=Gn(eu._editors.values()).ui.view.body;r.has(this.balloonPanelView)||r.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.pin({target:e,positions:eu.getPositioningFunctions(i)}),this._resizeObserver=new tn(e,(()=>{ln(e)||this._unpinTooltip()})),this._mutationObserver.attach(e),this.balloonPanelView.class=[Xg,n].filter((e=>e)).join(" ");for(const e of eu._editors)this.listenTo(e.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=e,this._currentTooltipPosition=i}_unpinTooltip(){this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const e of eu._editors)this.stopListening(e.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text="",this._resizeObserver&&this._resizeObserver.destroy(),this._mutationObserver.detach()}_updateTooltipPosition(){const e=nu(this._currentElementWithTooltip);ln(this._currentElementWithTooltip)&&e.text?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:eu.getPositioningFunctions(e.position)}):this._unpinTooltip()}}eu.defaultBalloonPositions=Gg({heightOffset:5,sideOffset:13}),eu._editors=new Set,eu._instance=null;const tu=eu;function iu(e){return Oi(e)?e.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function nu(e){return{text:e.dataset.ckeTooltipText,position:e.dataset.ckeTooltipPosition||"s",cssClass:e.dataset.ckeTooltipClass||""}}const ru=function(e,t,i){var n=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return N(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),Fs(e,t,{leading:n,maxWait:t,trailing:r})};class ou extends(Di()){constructor(e){super(),this.editor=e,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=ru(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"!==function(e){function t(e){return e.length>=40&&e.length<=255?"VALID":"INVALID"}if(!e)return"INVALID";let i="";try{i=atob(e)}catch(e){return"INVALID"}const n=i.split("-"),r=n[0],o=n[1];if(!o)return t(e);try{atob(o)}catch(i){try{if(atob(r),!atob(r).length)return t(e)}catch(i){return t(e)}}if(r.length<40||r.length>255)return"INVALID";let s="";try{atob(r),s=atob(o)}catch(e){return"INVALID"}if(8!==s.length)return"INVALID";const a=Number(s.substring(0,4)),l=Number(s.substring(4,6))-1,c=Number(s.substring(6,8)),d=new Date(a,l,c);return d<A||isNaN(Number(d))?"INVALID":"VALID"}(e.config.get("licenseKey")))&&e.ui.view&&(e.ui.focusTracker.on("change:isFocused",((e,t,i)=>{this._updateLastFocusedEditableElement(),i?this._showBalloon():this._hideBalloon()})),e.ui.focusTracker.on("change:focusedElement",((e,t,i)=>{this._updateLastFocusedEditableElement(),i&&this._showBalloon()})),e.ui.on("update",(()=>{this._showBalloonThrottled()})))}_createBalloonView(){const e=this.editor,t=this._balloonView=new Jg,i=lu(e),n=new su(e.locale,i.label);t.content.add(n),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 i=lu(e),n="right"===i.side?function(e,t){return au(e,t,((e,i)=>e.left+e.width-i.width-t.horizontalOffset))}(t,i):function(e,t){return au(e,t,(e=>e.left+t.horizontalOffset))}(t,i);return{target:t,positions:[n]}}(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,i=e.ui.focusTracker.focusedElement;if(!t||!i)return void(this._lastFocusedEditableElement=null);const n=Array.from(e.ui.getEditableElementsNames()).map((t=>e.ui.getEditableElement(t)));n.includes(i)?this._lastFocusedEditableElement=i:this._lastFocusedEditableElement=n[0]}}class su extends Jd{constructor(e,t){super(e);const i=new lh,n=this.bindTemplate;i.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}),i.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]}]:[],i],on:{dragstart:n.to((e=>e.preventDefault()))}}]})}}function au(e,t,i){return(n,r)=>{const o=new Zi(e);if(o.width<350||o.height<50)return null;let s;s="inside"===t.position?o.bottom-r.height:o.bottom-r.height/2,s-=t.verticalOffset;const a=i(o,r),l=n.clone().moveTo(a,s).getIntersection(r.clone().moveTo(a,s)).getVisible();return!l||l.getArea()<r.getArea()?null:{top:s,left:a,name:`position_${t.position}-side_${t.side}`,config:{withArrow:!1}}}}function lu(e){const t=e.config.get("ui.poweredBy"),i=t&&t.position||"border";return{position:i,label:"Powered by",verticalOffset:"inside"===i?5:0,horizontalOffset:5,side:"ltr"===e.locale.contentLanguageDirection?"right":"left",...t}}var cu=a(5949),du={attributes:{"data-cke":!0}};du.setAttributes=br(),du.insert=fr().bind(null,"head"),du.domAPI=mr(),du.insertStyleElement=_r(),ur()(cu.A,du),cu.A&&cu.A.locals&&cu.A.locals;const hu="polite";class gu{constructor(e){this.editor=e}announce(e,t,i=hu){const n=this.editor;this.view||(this.view=new uu(n.locale),n.ui.view.body.add(this.view));let r=this.view.regionViews.find((t=>t.regionName===e));r||(r=new pu(this.view.locale),this.view.regionViews.add(r)),r.set({regionName:e,text:t,politeness:i})}}class uu extends Jd{constructor(e){super(e),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class pu extends Jd{constructor(e){super(e);const t=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness",hu),this.setTemplate({tag:"div",attributes:{role:"region","data-region":t.to("regionName"),"aria-live":t.to("politeness")},children:[{text:t.to("text")}]})}}class mu extends(q()){constructor(e){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const t=e.editing.view;this.editor=e,this.componentFactory=new Eg(e),this.focusTracker=new Yn,this.tooltipManager=new tu(e),this.poweredBy=new ou(e),this.ariaLiveAnnouncer=new gu(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 i=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?i():this.once("ready",i)}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 i=e.config.get("toolbar.viewportTopOffset");return i?(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:i}):{top:0}}_initFocusTracking(){const e=this.editor,t=e.editing.view;let i,n;e.keystrokes.set("Alt+F10",((e,r)=>{const o=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(o)&&!Array.from(t.domRoots.values()).includes(o)&&(i=o);const s=this._getCurrentFocusedToolbarDefinition();s&&n||(n=this._getFocusableCandidateToolbarDefinitions());for(let e=0;e<n.length;e++){const e=n.shift();if(n.push(e),e!==s&&this._focusFocusableCandidateToolbar(e)){s&&s.options.afterBlur&&s.options.afterBlur();break}}r()})),e.keystrokes.set("Esc",((t,n)=>{const r=this._getCurrentFocusedToolbarDefinition();r&&(i?(i.focus(),i=null):e.editing.view.focus(),r.options.afterBlur&&r.options.afterBlur(),n())}))}_getFocusableCandidateToolbarDefinitions(){const e=[];for(const t of this._focusableToolbarDefinitions){const{toolbarView:i,options:n}=t;(ln(i.element)||n.beforeFocus)&&e.push(t)}return e.sort(((e,t)=>wu(e)-wu(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:i}}=e;return i&&i(),!!ln(t.element)&&(t.focus(),!0)}_handleScrollToTheSelection(e,t){const i={top:0,bottom:0,left:0,right:0,...this.viewportOffset};t.viewportOffset.top+=i.top,t.viewportOffset.bottom+=i.bottom,t.viewportOffset.left+=i.left,t.viewportOffset.right+=i.right}}function wu(e){const{toolbarView:t,options:i}=e;let n=10;return ln(t.element)&&n--,i.isContextual&&n--,n}var fu=a(1605),yu={attributes:{"data-cke":!0}};yu.setAttributes=br(),yu.insert=fr().bind(null,"head"),yu.domAPI=mr(),yu.insertStyleElement=_r(),ur()(fu.A,yu),fu.A&&fu.A.locals&&fu.A.locals;class bu extends Jd{constructor(e){super(e),this.body=new rh(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class ku extends bu{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 Yd;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class _u extends Jd{constructor(e,t,i){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=i,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((i=>{const n=e.document.getRoot(t.name);i.addClass(t.isFocused?"ck-focused":"ck-blurred",n),i.removeClass(t.isFocused?"ck-blurred":"ck-focused",n)}))}e.isRenderingInProgress?function i(n){e.once("change:isRenderingInProgress",((e,r,o)=>{o?i(n):t(n)}))}(this):t(this)}}class vu extends _u{constructor(e,t,i,n={}){super(e,t,i);const r=e.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=n.label||(()=>r("Editor editing area: %0",this.name))}render(){super.render();const e=this._editingView;e.change((t=>{const i=e.document.getRoot(this.name);t.setAttribute("aria-label",this._generateLabel(this),i)}))}}class xu extends hr{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||""})}}class Au extends(q()){constructor(e,t){super(),t&&Es(this,t),e&&this.set(e)}}var Eu=a(8331),Cu={attributes:{"data-cke":!0}};Cu.setAttributes=br(),Cu.insert=fr().bind(null,"head"),Cu.domAPI=mr(),Cu.insertStyleElement=_r(),ur()(Eu.A,Cu),Eu.A&&Eu.A.locals&&Eu.A.locals;var Tu=a(3608),Iu={attributes:{"data-cke":!0}};Iu.setAttributes=br(),Iu.insert=fr().bind(null,"head"),Iu.domAPI=mr(),Iu.insertStyleElement=_r(),ur()(Tu.A,Iu),Tu.A&&Tu.A.locals&&Tu.A.locals;const Su=rn("px");class Pu extends or{static get pluginName(){return"ContextualBalloon"}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)}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 _("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 i=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),i.set(e.view,e),this._viewToStack.set(e.view,i),i===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new _("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 _("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}_createPanelView(){this._view=new Jg(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 Ru(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,i)=>{if(i<2)return"";const n=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[n,i])})),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 Ou(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:i=!0,singleViewMode:n=!1}){this.view.class=t,this.view.withArrow=i,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),n&&(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 Ru extends Jd{constructor(e){super(e);const t=e.t,i=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Yn,this.buttonPrevView=this._createButtonView(t("Previous"),xd.previousArrow),this.buttonNextView=this._createButtonView(t("Next"),xd.nextArrow),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",i.to("isNavigationVisible",(e=>e?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:i.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 i=new gh(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i}}class Ou extends Jd{constructor(e,t){super(e);const i=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",i.to("numberOfPanels",(e=>e?"":"ck-hidden"))],style:{top:i.to("top",Su),left:i.to("left",Su),width:i.to("width",Su),height:i.to("height",Su)}},children:this.content}),this.on("change:numberOfPanels",((e,t,i,n)=>{i>n?this._addPanels(i-n):this._removePanels(n-i),this.updatePosition()}))}_addPanels(e){for(;e--;){const e=new Jd;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:i,height:n}=new Zi(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:i,height:n})}}}var Mu=a(8166),Bu={attributes:{"data-cke":!0}};Bu.setAttributes=br(),Bu.insert=fr().bind(null,"head"),Bu.domAPI=mr(),Bu.insertStyleElement=_r(),ur()(Mu.A,Bu),Mu.A&&Mu.A.locals&&Mu.A.locals;const Vu=rn("px");class zu extends Jd{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 Ed({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",(e=>e?"block":"none")),height:t.to("isSticky",(e=>e?Vu(this._contentPanelRect.height):null))}}}).render(),this.contentPanelElement=new Ed({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?Vu(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:t.to("_stickyTopOffset",(e=>e?Vu(e):e)),bottom:t.to("_stickyBottomOffset",(e=>e?Vu(e):e)),marginLeft:t.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this.contentPanelElement]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Ui.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 Zi(this.limiterElement);let t=e.getVisible();if(t){const e=new Zi(Ui.window);e.top+=this.viewportTopOffset,e.height-=this.viewportTopOffset,t=t.getIntersection(e)}if(t&&e.top<t.top){const i=t.top;if(i+this._contentPanelRect.height+this.limiterBottomOffset>t.bottom){const i=Math.max(e.bottom-t.bottom,0)+this.limiterBottomOffset;e.bottom-i>e.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(i):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<e.height?this._stickToTopOfAncestors(i):this._unstick()}else this._unstick()}_stickToTopOfAncestors(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=e,this._stickyBottomOffset=null,this._marginLeft=Vu(-Ui.window.scrollX)}_stickToBottomOfLimiter(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=e,this._marginLeft=Vu(-Ui.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new Zi(this.contentPanelElement)}}class Nu extends Ch{constructor(e,t){const i=e.t,n=Object.assign({},{showResetButton:!0,showIcon:!0,creator:kg},t);super(e,n.creator),this.label=t.label,this._viewConfig=n,this._viewConfig.showIcon&&(this.iconView=new lh,this.iconView.content=xd.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new gh(e),this.resetButtonView.set({label:i("Clear"),icon:xd.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 Lu extends Jd{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 Du extends Jd{constructor(e){super(e),this.children=this.createCollection(),this.focusTracker=new Yn,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new Fh({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 Fu=/[\\^$.*+?()[\]{}|]/g,ju=RegExp(Fu.source);const Hu=function(e){return(e=Gr(e))&&ju.test(e)?e.replace(Fu,"\\$&"):e};var Uu=a(7583),qu={attributes:{"data-cke":!0}};qu.setAttributes=br(),qu.insert=fr().bind(null,"head"),qu.domAPI=mr(),qu.insertStyleElement=_r(),ur()(Uu.A,qu),Uu.A&&Uu.A.locals&&Uu.A.locals;class Wu extends Jd{constructor(e,t){super(e),this._config=t,this.filteredView=t.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new Yn,this.keystrokes=new Qn,this.resultsView=new Du(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 Lu,this._enableDefaultInfoViewBehavior(),this.on("render",(()=>{this.search("")}))),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new Fh({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",((e,{resultsCount:t,totalItemsCount:i})=>{this.resultsCount=t,this.totalItemsCount=i})),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(Hu(e),"ig"):null,i=this.filteredView.filter(t);this.fire("search",{query:e,...i})}_createSearchTextQueryView(){const e=new Nu(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 i(e,{query:t,resultsCount:i,totalItemsCount:n}){return"function"==typeof e?e(t,i,n):e}this.on("search",((n,r)=>{if(r.resultsCount)t.set({isVisible:!1});else{const n=this._config.infoView&&this._config.infoView.text;let o,s;r.totalItemsCount?n&&n.notFound?(o=n.notFound.primary,s=n.notFound.secondary):(o=e("No results found"),s=""):n&&n.noSearchableItems?(o=n.noSearchableItems.primary,s=n.noSearchableItems.secondary):(o=e("No searchable items"),s=""),t.set({primaryText:i(o,r),secondaryText:i(s,r),isVisible:!0})}}))}}var $u=a(8163),Ku={attributes:{"data-cke":!0}};Ku.setAttributes=br(),Ku.insert=fr().bind(null,"head"),Ku.domAPI=mr(),Ku.insertStyleElement=_r(),ur()($u.A,Ku),$u.A&&$u.A.locals&&$u.A.locals;class Ju extends Wu{constructor(e,t){super(e,t),this._config=t;const i=rn("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const n=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[n.if("isVisible","ck-hidden",(e=>!e)),n.to("_position",(e=>`ck-search__results_${e}`))],style:{width:n.to("_width",i)}}}),this.focusTracker.on("change:isFocused",((e,i,n)=>{this._updateResultsVisibility(),n?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(Ui.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 Zi(this.queryView.fieldView.element).width;const e=Ju._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:Ju.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}}Ju.defaultResultsPositions=[e=>({top:e.bottom,left:e.left,name:"s"}),(e,t)=>({top:e.top-t.height,left:e.left,name:"n"})],Ju._getOptimalPosition=cn;var Zu=a(7149),Gu={attributes:{"data-cke":!0}};Gu.setAttributes=br(),Gu.insert=fr().bind(null,"head"),Gu.domAPI=mr(),Gu.insertStyleElement=_r(),ur()(Zu.A,Gu),Zu.A&&Zu.A.locals&&Zu.A.locals;var Yu=a(7233),Qu={attributes:{"data-cke":!0}};Qu.setAttributes=br(),Qu.insert=fr().bind(null,"head"),Qu.domAPI=mr(),Qu.insertStyleElement=_r(),ur()(Yu.A,Qu),Yu.A&&Yu.A.locals&&Yu.A.locals;var Xu=a(2066),ep={attributes:{"data-cke":!0}};ep.setAttributes=br(),ep.insert=fr().bind(null,"head"),ep.domAPI=mr(),ep.insertStyleElement=_r(),ur()(Xu.A,ep),Xu.A&&Xu.A.locals&&Xu.A.locals;var tp=a(2828),ip={attributes:{"data-cke":!0}};ip.setAttributes=br(),ip.insert=fr().bind(null,"head"),ip.domAPI=mr(),ip.insertStyleElement=_r(),ur()(tp.A,ip),tp.A&&tp.A.locals&&tp.A.locals;class np extends gh{constructor(e){super(e);const t=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__button"],"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",(e=>String(e))),"data-cke-tooltip-disabled":t.to("isOn")},on:{mouseenter:t.to("mouseenter")}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const e=new lh;return e.content=yh,e.extendTemplate({attributes:{class:"ck-menu-bar__menu__button__arrow"}}),e}}var rp=a(2245),op={attributes:{"data-cke":!0}};op.setAttributes=br(),op.insert=fr().bind(null,"head"),op.domAPI=mr(),op.insertStyleElement=_r(),ur()(rp.A,op),rp.A&&rp.A.locals&&rp.A.locals;class sp extends eg{constructor(e,t){super(e);const i=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item"]},on:{mouseenter:i.to("mouseenter")}}),this.delegate("mouseenter").to(t)}}const ap={toggleMenusAndFocusItemsOnHover(e){e.on("menu:mouseenter",(t=>{if(e.isOpen){for(const i of e.menus){const e=t.path[0],n=e instanceof sp&&e.children.first===i;i.isOpen=(t.path.includes(i)||n)&&i.isEnabled}t.source.focus()}}))},focusCycleMenusOnArrows(e){const t="rtl"===e.locale.uiLanguageDirection;function i(t,i){const n=e.children.getIndex(t),r=t.isOpen,o=e.children.length,s=e.children.get((n+o+i)%o);t.isOpen=!1,r&&(s.isOpen=!0),s.buttonView.focus()}e.on("menu:arrowright",(e=>{i(e.source,t?-1:1)})),e.on("menu:arrowleft",(e=>{i(e.source,t?1:-1)}))},closeMenusWhenTheBarCloses(e){e.on("change:isOpen",(()=>{e.isOpen||e.menus.forEach((e=>{e.isOpen=!1}))}))},closeMenuWhenAnotherOnTheSameLevelOpens(e){e.on("menu:change:isOpen",((t,i,n)=>{n&&e.menus.filter((e=>t.source.parentMenuView===e.parentMenuView&&t.source!==e&&e.isOpen)).forEach((e=>{e.isOpen=!1}))}))},closeOnClickOutside(e){t({emitter:e,activator:()=>e.isOpen,callback:()=>e.close(),contextElements:()=>e.children.map((e=>e.element))})}},lp={openAndFocusPanelOnArrowDownKey(e){e.keystrokes.set("arrowdown",((t,i)=>{e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen||(e.isOpen=!0),e.panelView.focus(),i())}))},openOnArrowRightKey(e){const t="rtl"===e.locale.uiLanguageDirection?"arrowleft":"arrowright";e.keystrokes.set(t,((t,i)=>{e.focusTracker.focusedElement===e.buttonView.element&&e.isEnabled&&(e.isOpen||(e.isOpen=!0),e.panelView.focus(),i())}))},openOnButtonClick(e){e.buttonView.on("execute",(()=>{e.isOpen=!0,e.panelView.focus()}))},toggleOnButtonClick(e){e.buttonView.on("execute",(()=>{e.isOpen=!e.isOpen,e.isOpen&&e.panelView.focus()}))},closeOnArrowLeftKey(e){const t="rtl"===e.locale.uiLanguageDirection?"arrowright":"arrowleft";e.keystrokes.set(t,((t,i)=>{e.isOpen&&(e.isOpen=!1,e.focus(),i())}))},closeOnEscKey(e){e.keystrokes.set("esc",((t,i)=>{e.isOpen&&(e.isOpen=!1,e.focus(),i())}))},closeOnParentClose(e){e.parentMenuView.on("change:isOpen",((t,i,n)=>{n||t.source!==e.parentMenuView||(e.isOpen=!1)}))}},cp={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"}),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"}),eastSouth:e=>({top:e.top,left:e.right-5,name:"es"}),eastNorth:(e,t)=>({top:e.top-t.height,left:e.right-5,name:"en"}),westSouth:(e,t)=>({top:e.top,left:e.left-t.width+5,name:"ws"}),westNorth:(e,t)=>({top:e.top-t.height,left:e.left-t.width+5,name:"wn"})},dp=[{menuId:"file",label:"File",groups:[{groupId:"export",items:["menuBar:exportPdf","menuBar:exportWord"]},{groupId:"import",items:["menuBar:importWord"]},{groupId:"revisionHistory",items:["menuBar:revisionHistory"]}]},{menuId:"edit",label:"Edit",groups:[{groupId:"undo",items:["menuBar:undo","menuBar:redo"]},{groupId:"selectAll",items:["menuBar:selectAll"]},{groupId:"findAndReplace",items:["menuBar:findAndReplace"]}]},{menuId:"view",label:"View",groups:[{groupId:"sourceEditing",items:["menuBar:sourceEditing"]},{groupId:"showBlocks",items:["menuBar:showBlocks"]},{groupId:"restrictedEditingException",items:["menuBar:restrictedEditingException"]}]},{menuId:"insert",label:"Insert",groups:[{groupId:"insertMainWidgets",items:["menuBar:uploadImage","menuBar:ckbox","menuBar:ckfinder","menuBar:insertTable"]},{groupId:"insertInline",items:["menuBar:link","menuBar:comment"]},{groupId:"insertMinorWidgets",items:["menuBar:insertTemplate","menuBar:blockQuote","menuBar:codeBlock","menuBar:htmlEmbed"]},{groupId:"insertStructureWidgets",items:["menuBar:horizontalLine","menuBar:pageBreak","menuBar:tableOfContents"]},{groupId:"restrictedEditing",items:["menuBar:restrictedEditing"]}]},{menuId:"format",label:"Format",groups:[{groupId:"textAndFont",items:[{menuId:"text",label:"Text",groups:[{groupId:"basicStyles",items:["menuBar:bold","menuBar:italic","menuBar:underline","menuBar:strikethrough","menuBar:superscript","menuBar:subscript","menuBar:code"]},{groupId:"textPartLanguage",items:["menuBar:textPartLanguage"]}]},{menuId:"font",label:"Font",groups:[{groupId:"fontProperties",items:["menuBar:fontSize","menuBar:fontFamily"]},{groupId:"fontColors",items:["menuBar:fontColor","menuBar:fontBackgroundColor"]},{groupId:"highlight",items:["menuBar:highlight"]}]},"menuBar:heading"]},{groupId:"list",items:["menuBar:bulletedList","menuBar:numberedList","menuBar:todoList"]},{groupId:"indent",items:["menuBar:alignment","menuBar:indent","menuBar:outdent"]},{groupId:"caseChange",items:["menuBar:caseChange"]},{groupId:"removeFormat",items:["menuBar:removeFormat"]}]},{menuId:"tools",label:"Tools",groups:[{groupId:"aiTools",items:["menuBar:aiAssistant","menuBar:aiCommands"]},{groupId:"tools",items:["menuBar:trackChanges","menuBar:commentsArchive"]}]},{menuId:"help",label:"Help",groups:[{groupId:"help",items:["menuBar:accessibilityHelp"]}]}];function hp({normalizedConfig:e,locale:t,componentFactory:i}){const n=ma(e);return function(e,t){const i=t.removeItems,n=[];t.items=t.items.filter((({menuId:e})=>!i.includes(e)||(n.push(e),!1))),mp(t.items,(e=>{e.groups=e.groups.filter((({groupId:e})=>!i.includes(e)||(n.push(e),!1)));for(const t of e.groups)t.items=t.items.filter((e=>{const t=kp(e);return!i.includes(t)||(n.push(t),!1)}))}));for(const t of i)n.includes(t)||v("menu-bar-item-could-not-be-removed",{menuBarConfig:e,itemName:t})}(e,n),function(e,t){const i=t.addItems,n=[];for(const e of i){const i=yp(e.position),r=bp(e.position);if(wp(e))if(r){const o=t.items.findIndex((e=>e.menuId===r));-1!=o?"before"===i?(t.items.splice(o,0,e.menu),n.push(e)):"after"===i&&(t.items.splice(o+1,0,e.menu),n.push(e)):gp(t,e.menu,r,i)&&n.push(e)}else"start"===i?(t.items.unshift(e.menu),n.push(e)):"end"===i&&(t.items.push(e.menu),n.push(e));else fp(e)?mp(t.items,(t=>{if(t.menuId===r)"start"===i?(t.groups.unshift(e.group),n.push(e)):"end"===i&&(t.groups.push(e.group),n.push(e));else{const o=t.groups.findIndex((e=>e.groupId===r));-1!==o&&("before"===i?(t.groups.splice(o,0,e.group),n.push(e)):"after"===i&&(t.groups.splice(o+1,0,e.group),n.push(e)))}})):gp(t,e.item,r,i)&&n.push(e)}for(const t of i)n.includes(t)||v("menu-bar-item-could-not-be-added",{menuBarConfig:e,addedItemConfig:t})}(e,n),function(e,t,i){mp(t.items,(n=>{for(const r of n.groups)r.items=r.items.filter((r=>{const o="string"==typeof r&&!i.has(r);return o&&!t.isUsingDefaultConfig&&v("menu-bar-item-unavailable",{menuBarConfig:e,parentMenuConfig:ma(n),componentName:r}),!o}))}))}(e,n,i),up(e,n),function(e,t){const i=t.t,n={File:i({string:"File",id:"MENU_BAR_MENU_FILE"}),Edit:i({string:"Edit",id:"MENU_BAR_MENU_EDIT"}),View:i({string:"View",id:"MENU_BAR_MENU_VIEW"}),Insert:i({string:"Insert",id:"MENU_BAR_MENU_INSERT"}),Format:i({string:"Format",id:"MENU_BAR_MENU_FORMAT"}),Tools:i({string:"Tools",id:"MENU_BAR_MENU_TOOLS"}),Help:i({string:"Help",id:"MENU_BAR_MENU_HELP"}),Text:i({string:"Text",id:"MENU_BAR_MENU_TEXT"}),Font:i({string:"Font",id:"MENU_BAR_MENU_FONT"})};mp(e.items,(e=>{e.label in n&&(e.label=n[e.label])}))}(n,t),n}function gp(e,t,i,n){let r=!1;return mp(e.items,(e=>{for(const{groupId:o,items:s}of e.groups){if(r)return;if(o===i)"start"===n?(s.unshift(t),r=!0):"end"===n&&(s.push(t),r=!0);else{const e=s.findIndex((e=>kp(e)===i));-1!==e&&("before"===n?(s.splice(e,0,t),r=!0):"after"===n&&(s.splice(e+1,0,t),r=!0))}}})),r}function up(e,t){const i=t.isUsingDefaultConfig;let n=!1;t.items=t.items.filter((t=>!!t.groups.length||(pp(e,t,i),!1))),t.items.length?(mp(t.items,(t=>{t.groups=t.groups.filter((e=>!!e.items.length||(n=!0,!1)));for(const r of t.groups)r.items=r.items.filter((t=>!(_p(t)&&!t.groups.length&&(pp(e,t,i),n=!0,1))))})),n&&up(e,t)):pp(e,e,i)}function pp(e,t,i){i||v("menu-bar-menu-empty",{menuBarConfig:e,emptyMenuConfig:t})}function mp(e,t){if(Array.isArray(e))for(const t of e)i(t);function i(e){t(e);for(const t of e.groups)for(const e of t.items)_p(e)&&i(e)}}function wp(e){return"object"==typeof e&&"menu"in e}function fp(e){return"object"==typeof e&&"group"in e}function yp(e){return e.startsWith("start")?"start":e.startsWith("end")?"end":e.startsWith("after")?"after":"before"}function bp(e){const t=e.match(/^[^:]+:(.+)/);return t?t[1]:null}function kp(e){return"string"==typeof e?e:e.menuId}function _p(e){return"object"==typeof e&&"menuId"in e}var vp=a(9864),xp={attributes:{"data-cke":!0}};xp.setAttributes=br(),xp.insert=fr().bind(null,"head"),xp.domAPI=mr(),xp.insertStyleElement=_r(),ur()(vp.A,xp),vp.A&&vp.A.locals&&vp.A.locals;class Ap extends Jd{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-menu-bar__menu__panel",t.to("position",(e=>`ck-menu-bar__menu__panel_position_${e}`)),t.if("isVisible","ck-hidden",(e=>!e))],tabindex:"-1"},children:this.children,on:{selectstart:t.to((e=>{"input"!==e.target.tagName.toLocaleLowerCase()&&e.preventDefault()}))}})}focus(e=1){this.children.length&&(1===e?this.children.first.focus():this.children.last.focus())}}var Ep=a(2920),Cp={attributes:{"data-cke":!0}};Cp.setAttributes=br(),Cp.insert=fr().bind(null,"head"),Cp.domAPI=mr(),Cp.insertStyleElement=_r(),ur()(Ep.A,Cp),Ep.A&&Ep.A.locals&&Ep.A.locals;class Tp extends Jd{constructor(e){super(e);const t=this.bindTemplate;this.buttonView=new np(e),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.panelView=new Ap(e),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new Qn,this.focusTracker=new Yn,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("panelPosition","w"),this.set("class",void 0),this.set("parentMenuView",null),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar__menu",t.to("class"),t.if("isEnabled","ck-disabled",(e=>!e)),t.if("parentMenuView","ck-menu-bar__menu_top-level",(e=>!e))]},children:[this.buttonView,this.panelView]})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.keystrokes.listenTo(this.element),lp.closeOnEscKey(this),this._repositionPanelOnOpen()}_attachBehaviors(){this.parentMenuView?(lp.openOnButtonClick(this),lp.openOnArrowRightKey(this),lp.closeOnArrowLeftKey(this),lp.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),lp.openAndFocusPanelOnArrowDownKey(this),lp.toggleOnButtonClick(this))}_propagateArrowKeystrokeEvents(){this.keystrokes.set("arrowright",((e,t)=>{this.fire("arrowright"),t()})),this.keystrokes.set("arrowleft",((e,t)=>{this.fire("arrowleft"),t()}))}_repositionPanelOnOpen(){this.on("change:isOpen",((e,t,i)=>{if(!i)return;const n=Tp._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=n?n.name:this._panelPositions[0].name}))}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:e,southWest:t,northEast:i,northWest:n,westSouth:r,eastSouth:o,westNorth:s,eastNorth:a}=cp;return"ltr"===this.locale.uiLanguageDirection?this.parentMenuView?[o,a,r,s]:[e,t,i,n]:this.parentMenuView?[r,s,o,a]:[t,e,n,i]}}Tp._getOptimalPosition=cn;const Ip=Tp;class Sp extends og{constructor(e){super(e),this.role="menu"}}var Pp=a(6709),Rp={attributes:{"data-cke":!0}};Rp.setAttributes=br(),Rp.insert=fr().bind(null,"head"),Rp.domAPI=mr(),Rp.insertStyleElement=_r(),ur()(Pp.A,Rp),Pp.A&&Pp.A.locals&&Pp.A.locals;class Op extends gh{constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}class Mp extends wh{constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var Bp=a(7013),Vp={attributes:{"data-cke":!0}};Vp.setAttributes=br(),Vp.insert=fr().bind(null,"head"),Vp.domAPI=mr(),Vp.insertStyleElement=_r(),ur()(Bp.A,Vp),Bp.A&&Bp.A.locals&&Bp.A.locals;const zp=["mouseenter","arrowleft","arrowright","change:isOpen"];class Np extends Jd{constructor(e){super(e),this.menus=[];const t=e.t;this.set("isOpen",!1),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar"],"aria-label":t("Editor menu bar"),role:"menubar"},children:this.children})}fillFromConfig(e,t){const i=hp({normalizedConfig:e,locale:this.locale,componentFactory:t}).items.map((e=>this._createMenu({componentFactory:t,menuDefinition:e})));this.children.addMany(i)}render(){super.render(),ap.toggleMenusAndFocusItemsOnHover(this),ap.closeMenusWhenTheBarCloses(this),ap.closeMenuWhenAnotherOnTheSameLevelOpens(this),ap.focusCycleMenusOnArrows(this),ap.closeOnClickOutside(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(const e of this.children)e.isOpen=!1}registerMenu(e,t=null){t?(e.delegate(...zp).to(t),e.parentMenuView=t):e.delegate(...zp).to(this,(e=>"menu:"+e)),e._attachBehaviors(),this.menus.push(e)}_createMenu({componentFactory:e,menuDefinition:t,parentMenuView:i}){const n=this.locale,r=new Ip(n);return this.registerMenu(r,i),r.buttonView.set({label:t.label}),r.once("change:isOpen",(()=>{const i=new Sp(n);i.ariaLabel=t.label,r.panelView.children.add(i),i.items.addMany(this._createMenuItems({menuDefinition:t,parentMenuView:r,componentFactory:e}))})),r}_createMenuItems({menuDefinition:e,parentMenuView:t,componentFactory:i}){const n=this.locale,r=[];for(const o of e.groups){for(const e of o.items){const o=new sp(n,t);if(N(e))o.children.add(this._createMenu({componentFactory:i,menuDefinition:e,parentMenuView:t}));else{const n=this._createMenuItemContentFromFactory({componentName:e,componentFactory:i,parentMenuView:t});if(!n)continue;o.children.add(n)}r.push(o)}o!==e.groups[e.groups.length-1]&&r.push(new tg(n))}return r}_createMenuItemContentFromFactory({componentName:e,parentMenuView:t,componentFactory:i}){const n=i.create(e);return n instanceof Ip||n instanceof Op||n instanceof Mp?(this._registerMenuTree(n,t),n.on("execute",(()=>{this.close()})),n):(v("menu-bar-component-unsupported",{componentName:e,componentView:n}),null)}_registerMenuTree(e,t){if(!(e instanceof Ip))return void e.delegate("mouseenter").to(t);this.registerMenu(e,t);const i=e.panelView.children.filter((e=>e instanceof Sp))[0];if(!i)return void e.delegate("mouseenter").to(t);const n=i.items.filter((e=>e instanceof eg));for(const t of n)this._registerMenuTree(t.children.get(0),e)}_setupIsOpenUpdater(){let e;this.on("menu:change:isOpen",((t,i,n)=>{clearTimeout(e),n?this.isOpen=!0:e=setTimeout((()=>{this.isOpen=Array.from(this.children).some((e=>e.isOpen))}),0)}))}}class Lp extends mu{constructor(e,t){super(e),this.view=t,this._toolbarConfig=Wh(e.config.get("toolbar")),this._menuBarConfig=function(e){let t;return t="items"in e&&e.items?{items:e.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1,...e}:{items:ma(dp),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0,...e},t}(e.config.get("menuBar")||{}),this._elementReplacer=new G,this.listenTo(e.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(e){const t=this.editor,i=this.view,n=t.editing.view,r=i.editable,o=n.document.getRoot();r.name=o.rootName,i.render();const s=r.element;this.setEditableElement(r.name,s),i.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(s),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this._initMenuBar(),this._initDialogPluginIntegration(),this.fire("ready")}destroy(){super.destroy();const e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy()}_initToolbar(){const e=this.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,e.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(({top:e})=>e||0)),e.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(e.toolbar)}_initMenuBar(){const e=this.view;e.menuBarView&&(this._setupMenuBarBehaviors(e.menuBarView.element),e.menuBarView.fillFromConfig(this._menuBarConfig,this.componentFactory))}_initPlaceholder(){const e=this.editor,t=e.editing.view,i=t.document.getRoot(),n=e.sourceElement;let r;const o=e.config.get("placeholder");o&&(r="string"==typeof o?o:o[this.view.editable.name]),!r&&n&&"textarea"===n.tagName.toLowerCase()&&(r=n.getAttribute("placeholder")),r&&(i.placeholder=r),Cr({view:t,element:i,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(e,t,i){const n=this.view.stickyPanel;if(n.isSticky){const e=new Zi(n.element).height;t.viewportOffset.top+=e}else{const e=()=>{this.editor.editing.view.scrollToTheSelection(i)};this.listenTo(n,"change:isSticky",e),setTimeout((()=>{this.stopListening(n,"change:isSticky",e)}),20)}}_initDialogPluginIntegration(){if(!this.editor.plugins.has("Dialog"))return;const e=this.view.stickyPanel,t=this.editor.plugins.get("Dialog");t.on("show",(()=>{const i=t.view;i.on("moveTo",((t,n)=>{if(!e.isSticky||i.wasMoved)return;const r=new Zi(e.contentPanelElement);n[1]<r.bottom+Fg.defaultOffset&&(n[1]=r.bottom+Fg.defaultOffset)}),{priority:"high"})}),{priority:"low"})}_setupMenuBarBehaviors(e){const t=this.editor;this.focusTracker.add(e),t.keystrokes.listenTo(e),t.keystrokes.set("Esc",((i,n)=>{e.contains(this.focusTracker.focusedElement)&&(t.editing.view.focus(),n())})),t.keystrokes.set("Alt+F9",((t,i)=>{e.contains(this.focusTracker.focusedElement)||(this.view.menuBarView.focus(),i())}))}}var Dp=a(4080),Fp={attributes:{"data-cke":!0}};Fp.setAttributes=br(),Fp.insert=fr().bind(null,"head"),Fp.domAPI=mr(),Fp.insertStyleElement=_r(),ur()(Dp.A,Fp),Dp.A&&Dp.A.locals&&Dp.A.locals;class jp extends ku{constructor(e,t,i={}){super(e),this.stickyPanel=new zu(e),this.toolbar=new Gh(e,{shouldGroupWhenFull:i.shouldToolbarGroupWhenFull}),i.useMenuBar&&(this.menuBarView=new Np(e)),this.editable=new vu(e,t)}render(){super.render(),this.menuBarView?this.stickyPanel.content.addMany([this.menuBarView,this.toolbar]):this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Hp{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 i=this._listeners[e]||[];for(const e of i)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 i=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:i}),i?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(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function Up(e,t=new Set){const i=[e],n=new Set;let r=0;for(;i.length>r;){const o=i[r++];if(!n.has(o)&&qp(o)&&!t.has(o))if(n.add(o),Symbol.iterator in o)try{for(const e of o)i.push(e)}catch(e){}else for(const e in o)"defaultValue"!==e&&i.push(o[e])}return n}function qp(e){const t=Object.prototype.toString.call(e),i=typeof e;return!("number"===i||"boolean"===i||"string"===i||"symbol"===i||"function"===i||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e._watchdogExcluded||e instanceof EventTarget||e instanceof Event)}function Wp(e,t,i=new Set){if(e===t&&"object"==typeof(n=e)&&null!==n)return!0;var n;const r=Up(e,i),o=Up(t,i);for(const e of r)if(o.has(e))return!0;return!1}class $p extends Hp{constructor(e,t={}){super(t),this._editor=null,this._lifecyclePromise=null,this._initUsingData=!0,this._editables={},this._throttledSave=ru(this._save.bind(this),"number"==typeof t.saveInterval?t.saveInterval:5e3),e&&(this._creator=(t,i)=>e.create(t,i)),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=[],i=this._config.rootsAttributes||{},n={};for(const[r,o]of Object.entries(this._data.roots))o.isLoaded?(e[r]="",n[r]=i[r]||{}):t.push(r);const r={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:t,rootsAttributes:n,_watchdogInitialData:this._data};return delete r.initialData,r.extraPlugins.push(Kp),this._initUsingData?this.create(e,r,r.context):Oi(this._elementOrData)?this.create(this._elementOrData,r,r.context):this.create(this._editables,r,r.context)})).then((()=>{this._fire("restart")}))}create(e=this._elementOrData,t=this._config,i){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).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=i,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")})).finally((()=>{this._lifecyclePromise=null})),this._lifecyclePromise}destroy(){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))).finally((()=>{this._lifecyclePromise=null})),this._lifecyclePromise}_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:i}=e,n=i.has("CommentsRepository")&&i.get("CommentsRepository"),r=i.has("TrackChanges")&&i.get("TrackChanges"),o={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};t.forEach((e=>{o.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&&(o.markers[t.name]={rangeJSON:t.getRange().toJSON(),usingOperation:t._managedUsingOperations,affectsData:t._affectsData});return n&&(o.commentThreads=JSON.stringify(n.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),r&&(o.suggestions=JSON.stringify(r.getSuggestions({toJSON:!0,skipNotAttached:!0}))),o}_getEditables(){const e={};for(const t of this.editor.model.document.getRootNames()){const i=this.editor.ui.getEditableElement(t);i&&(e[t]=i)}return e}_isErrorComingFromThisItem(e){return Wp(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return Ri(e,((e,t)=>Oi(e)||"context"===t?e:void 0))}}class Kp{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 i=e.createElement(t.name,t.attributes);if(t.children)for(const n of t.children)i._appendChild(this._createNode(e,n));return i}return e.createText(t.data,t.attributes)}_restoreEditorData(e){const t=this.editor;Object.entries(this._data.roots).forEach((([i,{content:n,attributes:r}])=>{const o=JSON.parse(n),s=JSON.parse(r),a=t.model.document.getRoot(i);for(const[t,i]of s)e.setAttribute(t,i,a);for(const t of o){const i=this._createNode(e,t);e.insert(i,a,"end")}})),Object.entries(this._data.markers).forEach((([i,n])=>{const{document:r}=t.model,{rangeJSON:{start:o,end:s},...a}=n,l=r.getRoot(o.root),c=e.createPositionFromPath(l,o.path,o.stickiness),d=e.createPositionFromPath(l,s.path,s.stickiness),h=e.createRange(c,d);e.addMarker(i,{range:h,...a})}))}_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"),i=this.editor.plugins.get("CommentsRepository");i.hasCommentThread(e.threadId)&&i.getCommentThread(e.threadId).remove(),i.addCommentThread({channelId:t,...e})})),t.forEach((e=>{const t=this.editor.plugins.get("TrackChangesEditing");t.hasSuggestion(e.id)?t.getSuggestion(e.id).attributes=e.attributes:t.addSuggestionData(e)}))}}const Jp=Symbol("MainQueueId");class Zp{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e,t){const i=e===Jp;this._activeActions++,this._queues.get(e)||this._queues.set(e,Promise.resolve());const n=(i?Promise.all(this._queues.values()):Promise.all([this._queues.get(Jp),this._queues.get(e)])).then(t),r=n.catch((()=>{}));return this._queues.set(e,r),n.finally((()=>{this._activeActions--,this._queues.get(e)===r&&0===this._activeActions&&this._onEmptyCallbacks.forEach((e=>e()))}))}}function Gp(e){return Array.isArray(e)?e:[e]}class Yp extends(_d(kd)){constructor(e,t={}){if(!Xp(e)&&void 0!==t.initialData)throw new _("editor-create-initial-data",null);super(t),this.config.define("menuBar.isVisible",!1),void 0===this.config.get("initialData")&&this.config.set("initialData",function(e){return Xp(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e)),Xp(e)&&(this.sourceElement=e),this.model.document.createRoot();const i=!this.config.get("toolbar.shouldNotGroupWhenFull"),n=this.config.get("menuBar"),r=new jp(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:i,useMenuBar:n.isVisible});this.ui=new Lp(this,r),function(e){if(!Ie(e.updateSourceElement))throw new _("attachtoform-missing-elementapi-interface",e);const t=e.sourceElement;if(function(e){return!!e&&"textarea"===e.tagName.toLowerCase()}(t)&&t.form){let i;const n=t.form,r=()=>e.updateSourceElement();Ie(n.submit)&&(i=n.submit,n.submit=()=>{r(),i.apply(n)}),n.addEventListener("submit",r),e.on("destroy",(()=>{n.removeEventListener("submit",r),i&&(n.submit=i)}))}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(e,t={}){return new Promise((i=>{const n=new this(e,t);i(n.initPlugins().then((()=>n.ui.init(Xp(e)?e:null))).then((()=>n.data.init(n.config.get("initialData")))).then((()=>n.fire("ready"))).then((()=>n)))}))}}Yp.Context=dr,Yp.EditorWatchdog=$p,Yp.ContextWatchdog=class extends Hp{constructor(e,t={}){super(t),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new Zp,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(Jp,(()=>(this._contextConfig=e,this._create())))}getItem(e){return this._getWatchdog(e)._item}getItemState(e){return this._getWatchdog(e).state}add(e){const t=Gp(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 $p(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",((i,{error:n,causesRestart:r})=>{this._fire("itemError",{itemId:e.id,error:n}),r&&this._actionQueues.enqueue(e.id,(()=>new Promise((i=>{const n=()=>{t.off("restart",n),this._fire("itemRestart",{itemId:e.id}),i()};t.on("restart",n)}))))})),t.create(e.sourceElementOrData,e.config,this._context);throw new Error(`Not supported item type: '${e.type}'.`)})))))}remove(e){const t=Gp(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(Jp,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(Jp,(()=>(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=Up(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 Wp(this._context,e.context)}};const Qp=Yp;function Xp(e){return Oi(e)}function*em(e,t){for(const i of t)i&&e.getAttributeProperties(i[0]).copyOnEnter&&(yield i)}class tm extends ar{execute(){this.editor.model.change((e=>{this.enterBlock(e),this.fire("afterExecute",{writer:e})}))}enterBlock(e){const t=this.editor.model,i=t.document.selection,n=t.schema,r=i.isCollapsed,o=i.getFirstRange(),s=o.start.parent,a=o.end.parent;if(n.isLimit(s)||n.isLimit(a))return r||s!=a||t.deleteContent(i),!1;if(r){const t=em(e.model.schema,i.getAttributes());return im(e,o.start),e.setSelectionAttribute(t),!0}{const n=!(o.start.isAtStart&&o.end.isAtEnd),r=s==a;if(t.deleteContent(i,{leaveUnmerged:n}),n){if(r)return im(e,i.focus),!0;e.setSelection(a,0)}}return!1}}function im(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}const nm={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class rm extends As{constructor(e){super(e);const t=this.document;let i=!1;t.on("keydown",((e,t)=>{i=t.shiftKey})),t.on("beforeinput",((n,r)=>{if(!this.isEnabled)return;let o=r.inputType;d.isSafari&&i&&"insertParagraph"==o&&(o="insertLineBreak");const s=r.domEvent,a=nm[o];if(!a)return;const l=new vo(t,"enter",r.targetRanges[0]);t.fire(l,new Cs(e,s,{isSoft:a.isSoft})),l.stop.called&&n.stop()}))}observe(){}stopObserving(){}}class om extends or{static get pluginName(){return"Enter"}init(){const e=this.editor,t=e.editing.view,i=t.document,n=this.editor.t;t.addObserver(rm),e.commands.add("enter",new tm(e)),this.listenTo(i,"enter",((n,r)=>{i.isComposing||r.preventDefault(),r.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert a hard break (a new paragraph)"),keystroke:"Enter"}]})}}class sm extends ar{execute(){const e=this.editor.model,t=e.document;e.change((i=>{!function(e,t,i){const n=i.isCollapsed,r=i.getFirstRange(),o=r.start.parent,s=r.end.parent,a=o==s;if(n){const n=em(e.schema,i.getAttributes());am(e,t,r.end),t.removeSelectionAttribute(i.getAttributeKeys()),t.setSelectionAttribute(n)}else{const n=!(r.start.isAtStart&&r.end.isAtEnd);e.deleteContent(i,{leaveUnmerged:n}),a?am(e,t,i.focus):n&&t.setSelection(s,0)}}(e,i,t.selection),this.fire("afterExecute",{writer:i})}))}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;const i=t.anchor;if(!i||!e.checkChild(i,"softBreak"))return!1;const n=t.getFirstRange(),r=n.start.parent,o=n.end.parent;return!lm(r,e)&&!lm(o,e)||r===o}(e.schema,t.selection)}}function am(e,t,i){const n=t.createElement("softBreak");e.insertContent(n,i),t.setSelection(n,"after")}function lm(e,t){return!e.is("rootElement")&&(t.isLimit(e)||lm(e.parent,t))}class cm extends or{static get pluginName(){return"ShiftEnter"}init(){const e=this.editor,t=e.model.schema,i=e.conversion,n=e.editing.view,r=n.document,o=this.editor.t;t.register("softBreak",{allowWhere:"$text",isInline:!0}),i.for("upcast").elementToElement({model:"softBreak",view:"br"}),i.for("downcast").elementToElement({model:"softBreak",view:(e,{writer:t})=>t.createEmptyElement("br")}),n.addObserver(rm),e.commands.add("shiftEnter",new sm(e)),this.listenTo(r,"enter",((t,i)=>{r.isComposing||i.preventDefault(),i.isSoft&&(e.execute("shiftEnter"),n.scrollToTheSelection())}),{priority:"low"}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert a soft break (a <code><br></code> element)"),keystroke:"Shift+Enter"}]})}}class dm{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 hm extends ar{constructor(e,t){super(e),this._buffer=new dm(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,i=t.document,n=e.text||"",r=n.length;let o=i.selection;if(e.selection?o=e.selection:e.range&&(o=t.createSelection(e.range)),!t.canEditAt(o))return;const s=e.resultRange;t.enqueueChange(this._buffer.batch,(e=>{this._buffer.lock();const a=Array.from(i.selection.getAttributes());t.deleteContent(o),n&&t.insertContent(e.createText(n,a),o),s?e.setSelection(s):o.is("documentSelection")||e.setSelection(o),this._buffer.unlock(),this._buffer.input(r)}))}}const gm=["insertText","insertReplacementText"];class um extends As{constructor(e){super(e),this.focusObserver=e.getObserver(aa),d.isAndroid&&gm.push("insertCompositionText");const t=e.document;t.on("beforeinput",((i,n)=>{if(!this.isEnabled)return;const{data:r,targetRanges:o,inputType:s,domEvent:a}=n;if(!gm.includes(s))return;this.focusObserver.flush();const l=new w(t,"insertText");t.fire(l,new Cs(e,a,{text:r,selection:e.createSelection(o)})),l.stop.called&&i.stop()})),t.on("compositionend",((i,{data:n,domEvent:r})=>{this.isEnabled&&!d.isAndroid&&n&&t.fire("insertText",new Cs(e,r,{text:n,selection:t.selection}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class pm extends or{static get pluginName(){return"Input"}init(){const e=this.editor,t=e.model,i=e.editing.view,n=t.document.selection;i.addObserver(um);const r=new hm(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",r),e.commands.add("input",r),this.listenTo(i.document,"insertText",((n,r)=>{i.document.isComposing||r.preventDefault();const{text:o,selection:s,resultRange:a}=r,l=Array.from(s.getRanges()).map((t=>e.editing.mapper.toModelRange(t)));let c=o;if(d.isAndroid){const e=Array.from(l[0].getItems()).reduce(((e,t)=>e+(t.is("$textProxy")?t.data:"")),"");e&&(e.length<=c.length?c.startsWith(e)&&(c=c.substring(e.length),l[0].start=l[0].start.getShiftedBy(e.length)):e.startsWith(c)&&(l[0].start=l[0].start.getShiftedBy(c.length),c=""))}const h={text:c,selection:t.createSelection(l)};a&&(h.resultRange=e.editing.mapper.toModelRange(a)),e.execute("insertText",h),i.scrollToTheSelection()})),d.isAndroid?this.listenTo(i.document,"keydown",((e,o)=>{!n.isCollapsed&&229==o.keyCode&&i.document.isComposing&&mm(t,r)})):this.listenTo(i.document,"compositionstart",(()=>{n.isCollapsed||mm(t,r)}))}}function mm(e,t){if(!t.isEnabled)return;const i=t.buffer;i.lock(),e.enqueueChange(i.batch,(()=>{e.deleteContent(e.document.selection)})),i.unlock()}class wm extends ar{constructor(e,t){super(e),this.direction=t,this._buffer=new dm(e.model,e.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,i=t.document;t.enqueueChange(this._buffer.batch,(n=>{this._buffer.lock();const r=n.createSelection(e.selection||i.selection);if(!t.canEditAt(r))return;const o=e.sequence||1,s=r.isCollapsed;if(r.isCollapsed&&t.modifySelection(r,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(o))return void this._replaceEntireContentWithParagraph(n);if(this._shouldReplaceFirstBlockWithParagraph(r,o))return void this.editor.execute("paragraph",{selection:r});if(r.isCollapsed)return;let a=0;r.getFirstRange().getMinimalFlatRanges().forEach((e=>{a+=Y(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),t.deleteContent(r,{doNotResetEntireContent:s,direction:this.direction}),this._buffer.input(a),n.setSelection(r),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,i=t.document.selection,n=t.schema.getLimitElement(i);if(!i.isCollapsed||!i.containsEntireContent(n))return!1;if(!t.schema.checkChild(n,"paragraph"))return!1;const r=n.getChild(0);return!r||!r.is("element","paragraph")}_replaceEntireContentWithParagraph(e){const t=this.editor.model,i=t.document.selection,n=t.schema.getLimitElement(i),r=e.createElement("paragraph");e.remove(e.createRangeIn(n)),e.insert(r,n),e.setSelection(r,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const i=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;const n=e.getFirstPosition(),r=i.schema.getLimitElement(n),o=r.getChild(0);return n.parent==o&&!!e.containsEntireContent(o)&&!!i.schema.checkChild(r,"paragraph")&&"paragraph"!=o.name}}const fm="word",ym="selection",bm="backward",km="forward",_m={deleteContent:{unit:ym,direction:bm},deleteContentBackward:{unit:"codePoint",direction:bm},deleteWordBackward:{unit:fm,direction:bm},deleteHardLineBackward:{unit:ym,direction:bm},deleteSoftLineBackward:{unit:ym,direction:bm},deleteContentForward:{unit:"character",direction:km},deleteWordForward:{unit:fm,direction:km},deleteHardLineForward:{unit:ym,direction:km},deleteSoftLineForward:{unit:ym,direction:km}};class vm extends As{constructor(e){super(e);const t=e.document;let i=0;t.on("keydown",(()=>{i++})),t.on("keyup",(()=>{i=0})),t.on("beforeinput",((n,r)=>{if(!this.isEnabled)return;const{targetRanges:o,domEvent:s,inputType:a}=r,l=_m[a];if(!l)return;const c={direction:l.direction,unit:l.unit,sequence:i};c.unit==ym&&(c.selectionToRemove=e.createSelection(o[0])),"deleteContentBackward"===a&&(d.isAndroid&&(c.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 i=0;for(const{nextPosition:e}of t){if(e.parent.is("$text")){const t=e.parent.data,n=e.offset;if(tr(t,n)||ir(t,n)||rr(t,n))continue;i++}else i++;if(i>1)return!0}return!1}(o)&&(c.unit=ym,c.selectionToRemove=e.createSelection(o)));const h=new vo(t,"delete",o[0]);t.fire(h,new Cs(e,s,c)),h.stop.called&&n.stop()})),d.isBlink&&function(e){const t=e.view,i=t.document;let n=null,r=!1;function o(e){return e==En.backspace||e==En.delete}function s(e){return e==En.backspace?bm:km}i.on("keydown",((e,{keyCode:t})=>{n=t,r=!1})),i.on("keyup",((a,{keyCode:l,domEvent:c})=>{const d=i.selection,h=e.isEnabled&&l==n&&o(l)&&!d.isCollapsed&&!r;if(n=null,h){const e=d.getFirstRange(),n=new vo(i,"delete",e),r={unit:ym,direction:s(l),selectionToRemove:d};i.fire(n,new Cs(t,c,r))}})),i.on("beforeinput",((e,{inputType:t})=>{const i=_m[t];o(n)&&i&&i.direction==s(n)&&(r=!0)}),{priority:"high"}),i.on("beforeinput",((e,{inputType:t,data:i})=>{n==En.delete&&"insertText"==t&&""==i&&e.stop()}),{priority:"high"})}(this)}observe(){}stopObserving(){}}class xm extends or{static get pluginName(){return"Delete"}init(){const e=this.editor,t=e.editing.view,i=t.document,n=e.model.document;t.addObserver(vm),this._undoOnBackspace=!1;const r=new wm(e,"forward");e.commands.add("deleteForward",r),e.commands.add("forwardDelete",r),e.commands.add("delete",new wm(e,"backward")),this.listenTo(i,"delete",((n,r)=>{i.isComposing||r.preventDefault();const{direction:o,sequence:s,selectionToRemove:a,unit:l}=r,c="forward"===o?"deleteForward":"delete",d={sequence:s};if("selection"==l){const t=Array.from(a.getRanges()).map((t=>e.editing.mapper.toModelRange(t)));d.selection=e.model.createSelection(t)}else d.unit=l;e.execute(c,d),t.scrollToTheSelection()}),{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(i,"delete",((t,i)=>{this._undoOnBackspace&&"backward"==i.direction&&1==i.sequence&&"codePoint"==i.unit&&(this._undoOnBackspace=!1,e.execute("undo"),i.preventDefault(),t.stop())}),{context:"$capture"}),this.listenTo(n,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Am extends or{static get requires(){return[pm,xm]}static get pluginName(){return"Typing"}}function Em(e,t){let i=e.start;return{text:Array.from(e.getWalker({ignoreElementEnd:!1})).reduce(((e,{item:n})=>n.is("$text")||n.is("$textProxy")?e+n.data:(i=t.createPositionAfter(n),"")),""),range:t.createRange(i,e.end)}}class Cm extends(q()){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:i})=>{i&&(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 i=this.model,n=i.document.selection,r=i.createRange(i.createPositionAt(n.focus.parent,0),n.focus),{text:o,range:s}=Em(r,i),a=this.testCallback(o);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const i=Object.assign(t,{text:o,range:s});"object"==typeof a&&Object.assign(i,a),this.fire(`matched:${e}`,i)}}}class Tm extends or{static get pluginName(){return"TwoStepCaretMovement"}constructor(e){super(e),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}init(){const e=this.editor,t=e.model,i=e.editing.view,n=e.locale,r=t.document.selection;this.listenTo(i.document,"arrowKey",((e,t)=>{if(!r.isCollapsed)return;if(t.shiftKey||t.altKey||t.ctrlKey)return;const i=t.keyCode==En.arrowright,o=t.keyCode==En.arrowleft;if(!i&&!o)return;const s=n.contentLanguageDirection;let a=!1;a="ltr"===s&&i||"rtl"===s&&o?this._handleForwardMovement(t):this._handleBackwardMovement(t),!0===a&&e.stop()}),{context:"$text",priority:"highest"}),this.listenTo(r,"change:range",((e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&Mm(r.getFirstPosition(),this.attributes)||this._restoreGravity())})),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,i=this.editor.model,n=i.document.selection,r=n.getFirstPosition();return!(this._isGravityOverridden||r.isAtStart&&Im(n,t)||!Mm(r,t)||(Rm(e),Im(n,t)&&Mm(r,t,!0)?Pm(i,t):this._overrideGravity(),0))}_handleBackwardMovement(e){const t=this.attributes,i=this.editor.model,n=i.document.selection,r=n.getFirstPosition();return this._isGravityOverridden?(Rm(e),this._restoreGravity(),Mm(r,t,!0)?Pm(i,t):Sm(i,t,r),!0):r.isAtStart?!!Im(n,t)&&(Rm(e),Sm(i,t,r),!0):!Im(n,t)&&Mm(r,t,!0)?(Rm(e),Sm(i,t,r),!0):!!Om(r,t)&&(r.isAtEnd&&!Im(n,t)&&Mm(r,t)?(Rm(e),Sm(i,t,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const e=this.editor,t=e.model,i=t.document.selection,n=e.editing.view.document;e.editing.view.addObserver(ud);let r=!1;this.listenTo(n,"mousedown",(()=>{r=!0})),this.listenTo(n,"selectionChange",(()=>{const e=this.attributes;if(!r)return;if(r=!1,!i.isCollapsed)return;if(!Im(i,e))return;const n=i.getFirstPosition();Mm(n,e)&&(n.isAtStart||Mm(n,e,!0)?Pm(t,e):this._isGravityOverridden||this._overrideGravity())}))}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection,i=this.attributes;this.listenTo(e,"insertContent",(()=>{const n=t.getFirstPosition();Im(t,i)&&Mm(n,i)&&Pm(e,i)}),{priority:"low"})}_handleDeleteContentAfterNode(){const e=this.editor,t=e.model,i=t.document.selection,n=e.editing.view;let r=!1,o=!1;this.listenTo(n.document,"delete",((e,t)=>{r="backward"===t.direction}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{if(!r)return;const e=i.getFirstPosition();o=Im(i,this.attributes)&&!Om(e,this.attributes)}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{r&&(r=!1,o||e.model.enqueueChange((()=>{const e=i.getFirstPosition();Im(i,this.attributes)&&Mm(e,this.attributes)&&(e.isAtStart||Mm(e,this.attributes,!0)?Pm(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 Im(e,t){for(const i of t)if(e.hasAttribute(i))return!0;return!1}function Sm(e,t,i){const n=i.nodeBefore;e.change((i=>{if(n){const t=[],r=e.schema.isObject(n)&&e.schema.isInline(n);for(const[i,o]of n.getAttributes())!e.schema.checkAttribute("$text",i)||r&&!1===e.schema.getAttributeProperties(i).copyFromObject||t.push([i,o]);i.setSelectionAttribute(t)}else i.removeSelectionAttribute(t)}))}function Pm(e,t){e.change((e=>{e.removeSelectionAttribute(t)}))}function Rm(e){e.preventDefault()}function Om(e,t){return Mm(e.getShiftedBy(-1),t)}function Mm(e,t,i=!1){const{nodeBefore:n,nodeAfter:r}=e;for(const e of t){const t=n?n.getAttribute(e):void 0,o=r?r.getAttribute(e):void 0;if((!i||void 0!==t&&void 0!==o)&&o!==t)return!0}return!1}const Bm={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:Fm('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Fm("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Fm("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Fm('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Fm('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Fm("'"),to:[null,"‚",null,"’"]}},Vm={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},zm=["symbols","mathematical","typography","quotes"];function Nm(e){return"string"==typeof e?new RegExp(`(${Hu(e)})$`):e}function Lm(e){return"string"==typeof e?()=>[e]:e instanceof Array?()=>e:e}function Dm(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Fm(e){return new RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function jm(e,t,i,n){return n.createRange(Hm(e,t,i,!0,n),Hm(e,t,i,!1,n))}function Hm(e,t,i,n,r){let o=e.textNode||(n?e.nodeBefore:e.nodeAfter),s=null;for(;o&&o.getAttribute(t)==i;)s=o,o=n?o.previousSibling:o.nextSibling;return s?r.createPositionAt(s,n?"before":"after"):e}function Um(e,t,i,n){const r=e.editing.view,o=new Set;r.document.registerPostFixer((r=>{const s=e.model.document.selection;let a=!1;if(s.hasAttribute(t)){const l=jm(s.getFirstPosition(),t,s.getAttribute(t),e.model),c=e.editing.mapper.toViewRange(l);for(const e of c.getItems())e.is("element",i)&&!e.hasClass(n)&&(r.addClass(n,e),o.add(e),a=!0)}return a})),e.conversion.for("editingDowncast").add((e=>{function t(){r.change((e=>{for(const t of o.values())e.removeClass(n,t),o.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"})}))}class qm extends ar{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,i=t.schema,n=t.document.selection,r=Array.from(n.getSelectedBlocks()),o=void 0===e.forceValue?!this.value:e.forceValue;t.change((e=>{if(o){const t=r.filter((e=>Wm(e)||Km(i,e)));this._applyQuote(e,t)}else this._removeQuote(e,r.filter(Wm))}))}_getValue(){const e=Gn(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!Wm(e))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,i=Gn(e.getSelectedBlocks());return!!i&&Km(t,i)}_removeQuote(e,t){$m(e,t).reverse().forEach((t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){const i=e.createPositionBefore(t.start.parent);return void e.move(t,i)}t.end.isAtEnd||e.split(t.end);const i=e.createPositionAfter(t.end.parent);e.move(t,i)}))}_applyQuote(e,t){const i=[];$m(e,t).reverse().forEach((t=>{let n=Wm(t.start);n||(n=e.createElement("blockQuote"),e.wrap(t,n)),i.push(n)})),i.reverse().reduce(((t,i)=>t.nextSibling==i?(e.merge(e.createPositionAfter(t)),t):i))}}function Wm(e){return"blockQuote"==e.parent.name?e.parent:null}function $m(e,t){let i,n=0;const r=[];for(;n<t.length;){const o=t[n],s=t[n+1];i||(i=e.createPositionBefore(o)),s&&o.nextSibling==s||(r.push(e.createRange(i,e.createPositionAfter(o))),i=null),n++}return r}function Km(e,t){const i=e.checkChild(t.parent,"blockQuote"),n=e.checkChild(["$root","blockQuote"],t);return i&&n}class Jm extends or{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[om,xm]}init(){const e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new qm(e)),t.register("blockQuote",{inheritAllFrom:"$container"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer((i=>{const n=e.model.document.differ.getChanges();for(const e of n)if("insert"==e.type){const n=e.position.nodeAfter;if(!n)continue;if(n.is("element","blockQuote")&&n.isEmpty)return i.remove(n),!0;if(n.is("element","blockQuote")&&!t.checkChild(e.position,n))return i.unwrap(n),!0;if(n.is("element")){const e=i.createRangeIn(n);for(const n of e.getItems())if(n.is("element","blockQuote")&&!t.checkChild(i.createPositionBefore(n),n))return i.unwrap(n),!0}}else if("remove"==e.type){const t=e.position.parent;if(t.is("element","blockQuote")&&t.isEmpty)return i.remove(t),!0}return!1}));const i=this.editor.editing.view.document,n=e.model.document.selection,r=e.commands.get("blockQuote");this.listenTo(i,"enter",((t,i)=>{n.isCollapsed&&r.value&&n.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),i.preventDefault(),t.stop())}),{context:"blockquote"}),this.listenTo(i,"delete",((t,i)=>{if("backward"!=i.direction||!n.isCollapsed||!r.value)return;const o=n.getLastPosition().parent;o.isEmpty&&!o.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),i.preventDefault(),t.stop())}),{context:"blockquote"})}}var Zm=a(3256),Gm={attributes:{"data-cke":!0}};Gm.setAttributes=br(),Gm.insert=fr().bind(null,"head"),Gm.domAPI=mr(),Gm.insertStyleElement=_r(),ur()(Zm.A,Gm),Zm.A&&Zm.A.locals&&Zm.A.locals;class Ym extends or{static get pluginName(){return"BlockQuoteUI"}init(){const e=this.editor,t=e.commands.get("blockQuote");e.ui.componentFactory.add("blockQuote",(()=>{const e=this._createButton(gh);return e.set({tooltip:!0}),e.bind("isOn").to(t,"value"),e})),e.ui.componentFactory.add("menuBar:blockQuote",(()=>this._createButton(Op)))}_createButton(e){const t=this.editor,i=t.locale,n=t.commands.get("blockQuote"),r=new e(t.locale),o=i.t;return r.set({label:o("Block quote"),icon:xd.quote,isToggleable:!0}),r.bind("isEnabled").to(n,"isEnabled"),this.listenTo(r,"execute",(()=>{t.execute("blockQuote"),t.editing.view.focus()})),r}}class Qm extends ar{constructor(e,t){super(e),this.attributeKey=t}refresh(){const e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){const t=this.editor.model,i=t.document.selection,n=void 0===e.forceValue?!this.value:e.forceValue;t.change((e=>{if(i.isCollapsed)n?e.setSelectionAttribute(this.attributeKey,!0):e.removeSelectionAttribute(this.attributeKey);else{const r=t.schema.getValidRanges(i.getRanges(),this.attributeKey);for(const t of r)n?e.setAttribute(this.attributeKey,n,t):e.removeAttribute(this.attributeKey,t)}}))}_getValueFromFirstAllowedNode(){const e=this.editor.model,t=e.schema,i=e.document.selection;if(i.isCollapsed)return i.hasAttribute(this.attributeKey);for(const e of i.getRanges())for(const i of e.getItems())if(t.checkAttribute(i,this.attributeKey))return i.hasAttribute(this.attributeKey);return!1}}const Xm="bold";class ew extends or{static get pluginName(){return"BoldEditing"}init(){const e=this.editor,t=this.editor.t;e.model.schema.extend("$text",{allowAttributes:Xm}),e.model.schema.setAttributeProperties(Xm,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Xm,view:"strong",upcastAlso:["b",e=>{const t=e.getStyle("font-weight");return t&&("bold"==t||Number(t)>=600)?{name:!0,styles:["font-weight"]}:null}]}),e.commands.add(Xm,new Qm(e,Xm)),e.keystrokes.set("CTRL+B",Xm),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Bold text"),keystroke:"CTRL+B"}]})}}function tw({editor:e,commandName:t,plugin:i,icon:n,label:r,keystroke:o}){return s=>{const a=e.commands.get(t),l=new s(e.locale);return l.set({label:r,icon:n,keystroke:o,isToggleable:!0}),l.bind("isEnabled").to(a,"isEnabled"),i.listenTo(l,"execute",(()=>{e.execute(t),e.editing.view.focus()})),l}}const iw="bold";class nw extends or{static get pluginName(){return"BoldUI"}init(){const e=this.editor,t=e.locale.t,i=e.commands.get(iw),n=tw({editor:e,commandName:iw,plugin:this,icon:xd.bold,label:t("Bold"),keystroke:"CTRL+B"});e.ui.componentFactory.add(iw,(()=>{const e=n(gh);return e.set({tooltip:!0}),e.bind("isOn").to(i,"value"),e})),e.ui.componentFactory.add("menuBar:"+iw,(()=>n(Op)))}}const rw="code";class ow extends or{static get pluginName(){return"CodeEditing"}static get requires(){return[Tm]}init(){const e=this.editor,t=this.editor.t;e.model.schema.extend("$text",{allowAttributes:rw}),e.model.schema.setAttributeProperties(rw,{isFormatting:!0,copyOnEnter:!1}),e.conversion.attributeToElement({model:rw,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),e.commands.add(rw,new Qm(e,rw)),e.plugins.get(Tm).registerAttribute(rw),Um(e,rw,"code","ck-code_selected"),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Move out of an inline code style"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}}var sw=a(6595),aw={attributes:{"data-cke":!0}};aw.setAttributes=br(),aw.insert=fr().bind(null,"head"),aw.domAPI=mr(),aw.insertStyleElement=_r(),ur()(sw.A,aw),sw.A&&sw.A.locals&&sw.A.locals;const lw="code";class cw extends or{static get pluginName(){return"CodeUI"}init(){const e=this.editor,t=e.locale.t,i=tw({editor:e,commandName:lw,plugin:this,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="currentColor" d="M1 1h10a1 1 0 011 1v8a1 1 0 01-1 1H1a1 1 0 01-1-1V2a1 1 0 011-1zm4.5 8a.5.5 0 010-1h4a.5.5 0 010 1h-4zM2.146 3.854a.5.5 0 11.708-.708L4.957 5.25a.999.999 0 01.005 1.395l-2.1 2.2a.5.5 0 11-.724-.69L4.243 5.95 2.146 3.854zM1 2v8h10V2H1z"/>\n</svg>\n',label:t("Code")});e.ui.componentFactory.add(lw,(()=>{const t=i(gh),n=e.commands.get(lw);return t.set({tooltip:!0}),t.bind("isOn").to(n,"value"),t})),e.ui.componentFactory.add("menuBar:"+lw,(()=>i(Op)))}}const dw="italic";class hw extends or{static get pluginName(){return"ItalicEditing"}init(){const e=this.editor,t=this.editor.t;e.model.schema.extend("$text",{allowAttributes:dw}),e.model.schema.setAttributeProperties(dw,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:dw,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(dw,new Qm(e,dw)),e.keystrokes.set("CTRL+I",dw),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Italic text"),keystroke:"CTRL+I"}]})}}const gw="italic";class uw extends or{static get pluginName(){return"ItalicUI"}init(){const e=this.editor,t=e.commands.get(gw),i=e.locale.t,n=tw({editor:e,commandName:gw,plugin:this,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="none" stroke="currentColor" stroke-linecap="round" d="M5.5 1.5h2m-1 0l-2 10m-1 0h2"/>\n</svg>\n',keystroke:"CTRL+I",label:i("Italic")});e.ui.componentFactory.add(gw,(()=>{const e=n(gh);return e.set({tooltip:!0}),e.bind("isOn").to(t,"value"),e})),e.ui.componentFactory.add("menuBar:"+gw,(()=>n(Op)))}}function pw(e){const t=e.t,i=e.config.get("codeBlock.languages");for(const e of i)"Plain text"===e.label&&(e.label=t("Plain text")),void 0===e.class&&(e.class=`language-${e.language}`);return i}function mw(e,t,i){const n={};for(const r of e)"class"===t?n[r[t].split(" ").shift()]=r[i]:n[r[t]]=r[i];return n}function ww(e){return e.data.match(/^(\s*)/)[0]}function fw(e){const t=e.document.selection,i=[];if(t.isCollapsed)return[t.anchor];const n=t.getFirstRange().getWalker({ignoreElementEnd:!0,direction:"backward"});for(const{item:t}of n){if(!t.is("$textProxy"))continue;const{parent:n,startOffset:r}=t.textNode;if(!n.is("element","codeBlock"))continue;const o=ww(t.textNode),s=e.createPositionAt(n,r+o.length);i.push(s)}return i}function yw(e){const t=Gn(e.getSelectedBlocks());return!!t&&t.is("element","codeBlock")}function bw(e,t){return!t.is("rootElement")&&!e.isLimit(t)&&e.checkChild(t.parent,"codeBlock")}class kw extends ar{constructor(e){super(e),this._lastLanguage=null}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor,i=t.model,n=i.document.selection,r=pw(t)[0],o=Array.from(n.getSelectedBlocks()),s=null==e.forceValue?!this.value:e.forceValue,a=function(e,t,i){return e.language?e.language:e.usePreviousLanguageChoice&&t?t:i}(e,this._lastLanguage,r.language);i.change((e=>{s?this._applyCodeBlock(e,o,a):this._removeCodeBlock(e,o)}))}_getValue(){const e=Gn(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!e.is("element","codeBlock"))&&e.getAttribute("language")}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,i=Gn(e.getSelectedBlocks());return!!i&&bw(t,i)}_applyCodeBlock(e,t,i){this._lastLanguage=i;const n=this.editor.model.schema,r=t.filter((e=>bw(n,e)));for(const t of r)e.rename(t,"codeBlock"),e.setAttribute("language",i,t),n.removeDisallowedAttributes([t],e),Array.from(t.getChildren()).filter((e=>!n.checkChild(t,e))).forEach((t=>e.remove(t)));r.reverse().forEach(((t,i)=>{const n=r[i+1];t.previousSibling===n&&(e.appendElement("softBreak",n),e.merge(e.createPositionBefore(t)))}))}_removeCodeBlock(e,t){const i=t.filter((e=>e.is("element","codeBlock")));for(const t of i){const i=e.createRangeOn(t);for(const t of Array.from(i.getItems()).reverse())if(t.is("element","softBreak")&&t.parent.is("element","codeBlock")){const{position:i}=e.split(e.createPositionBefore(t)),n=i.nodeAfter;e.rename(n,"paragraph"),e.removeAttribute("language",n),e.remove(t)}e.rename(t,"paragraph"),e.removeAttribute("language",t)}}}class _w extends ar{constructor(e){super(e),this._indentSequence=e.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model;e.change((t=>{const i=fw(e);for(const n of i){const i=t.createText(this._indentSequence);e.insertContent(i,n)}}))}_checkEnabled(){return!!this._indentSequence&&yw(this.editor.model.document.selection)}}class vw extends ar{constructor(e){super(e),this._indentSequence=e.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model;e.change((()=>{const t=fw(e);for(const i of t){const t=xw(e,i,this._indentSequence);t&&e.deleteContent(e.createSelection(t))}}))}_checkEnabled(){if(!this._indentSequence)return!1;const e=this.editor.model;return!!yw(e.document.selection)&&fw(e).some((t=>xw(e,t,this._indentSequence)))}}function xw(e,t,i){const n=function(e){let t=e.parent.getChild(e.index);return t&&!t.is("element","softBreak")||(t=e.nodeBefore),!t||t.is("element","softBreak")?null:t}(t);if(!n)return null;const r=ww(n),o=r.lastIndexOf(i);if(o+i.length!==r.length)return null;if(-1===o)return null;const{parent:s,startOffset:a}=n;return e.createRange(e.createPositionAt(s,a+o),e.createPositionAt(s,a+o+i.length))}function Aw(e,t,i=!1){const n=mw(t,"language","class"),r=mw(t,"language","label");return(t,o,s)=>{const{writer:a,mapper:l,consumable:c}=s;if(!c.consume(o.item,"insert"))return;const d=o.item.getAttribute("language"),h=l.toViewPosition(e.createPositionBefore(o.item)),g={};i&&(g["data-language"]=r[d],g.spellcheck="false");const u=n[d]?{class:n[d]}:void 0,p=a.createContainerElement("code",u),m=a.createContainerElement("pre",g,p);a.insert(h,m),l.bindElements(o.item,p)}}const Ew="paragraph";class Cw extends or{static get pluginName(){return"CodeBlockEditing"}static get requires(){return[cm]}constructor(e){super(e),e.config.define("codeBlock",{languages:[{language:"plaintext",label:"Plain text"},{language:"c",label:"C"},{language:"cs",label:"C#"},{language:"cpp",label:"C++"},{language:"css",label:"CSS"},{language:"diff",label:"Diff"},{language:"html",label:"HTML"},{language:"java",label:"Java"},{language:"javascript",label:"JavaScript"},{language:"php",label:"PHP"},{language:"python",label:"Python"},{language:"ruby",label:"Ruby"},{language:"typescript",label:"TypeScript"},{language:"xml",label:"XML"}],indentSequence:"\t"})}init(){const e=this.editor,t=e.model.schema,i=e.model,n=e.editing.view,r=e.plugins.has("ListEditing")?e.plugins.get("ListEditing"):null,o=pw(e);e.commands.add("codeBlock",new kw(e)),e.commands.add("indentCodeBlock",new _w(e)),e.commands.add("outdentCodeBlock",new vw(e)),this.listenTo(n.document,"tab",((t,i)=>{const n=i.shiftKey?"outdentCodeBlock":"indentCodeBlock";e.commands.get(n).isEnabled&&(e.execute(n),i.stopPropagation(),i.preventDefault(),t.stop())}),{context:"pre"}),t.register("codeBlock",{allowWhere:"$block",allowChildren:"$text",isBlock:!0,allowAttributes:["language"]}),t.addAttributeCheck(((e,t)=>!!(e.endsWith("codeBlock")&&r&&r.getListAttributeNames().includes(t))||!e.endsWith("codeBlock $text")&&void 0)),e.model.schema.addChildCheck(((e,t)=>{if(e.endsWith("codeBlock")&&t.isObject)return!1})),e.editing.downcastDispatcher.on("insert:codeBlock",Aw(i,o,!0)),e.data.downcastDispatcher.on("insert:codeBlock",Aw(i,o)),e.data.downcastDispatcher.on("insert:softBreak",function(e){return(t,i,n)=>{if("codeBlock"!==i.item.parent.name)return;const{writer:r,mapper:o,consumable:s}=n;if(!s.consume(i.item,"insert"))return;const a=o.toViewPosition(e.createPositionBefore(i.item));r.insert(a,r.createText("\n"))}}(i),{priority:"high"}),e.data.upcastDispatcher.on("element:code",function(e,t){const i=mw(t,"class","language"),n=t[0].language;return(e,t,r)=>{const o=t.viewItem,s=o.parent;if(!s||!s.is("element","pre"))return;if(t.modelCursor.findAncestor("codeBlock"))return;const{consumable:a,writer:l}=r;if(!a.test(o,{name:!0}))return;const c=l.createElement("codeBlock"),d=[...o.getClassNames()];d.length||d.push("");for(const e of d){const t=i[e];if(t){l.setAttribute("language",t,c);break}}c.hasAttribute("language")||l.setAttribute("language",n,c),r.convertChildren(o,c),r.safeInsert(c,t.modelCursor)&&(a.consume(o,{name:!0}),r.updateConversionResult(c,t))}}(0,o)),e.data.upcastDispatcher.on("text",((e,t,{consumable:i,writer:n})=>{let r=t.modelCursor;if(!i.test(t.viewItem))return;if(!r.findAncestor("codeBlock"))return;i.consume(t.viewItem);const o=t.viewItem.data.split("\n").map((e=>n.createText(e))),s=o[o.length-1];for(const e of o)if(n.insert(e,r),r=r.getShiftedBy(e.offsetSize),e!==s){const e=n.createElement("softBreak");n.insert(e,r),r=n.createPositionAfter(e)}t.modelRange=n.createRange(t.modelCursor,r),t.modelCursor=r})),e.data.upcastDispatcher.on("element:pre",((e,t,{consumable:i})=>{const n=t.viewItem;if(n.findAncestor("pre"))return;const r=Array.from(n.getChildren()),o=r.find((e=>e.is("element","code")));if(o)for(const e of r)e!==o&&e.is("$text")&&i.consume(e,{name:!0})}),{priority:"high"}),this.listenTo(e.editing.view.document,"clipboardInput",((t,n)=>{let r=i.createRange(i.document.selection.anchor);if(n.targetRanges&&(r=e.editing.mapper.toModelRange(n.targetRanges[0])),!r.start.parent.is("element","codeBlock"))return;const o=n.dataTransfer.getData("text/plain"),s=new pd(e.editing.view.document);n.content=function(e,t){const i=e.createDocumentFragment(),n=t.split("\n"),r=n.reduce(((t,i,r)=>(t.push(i),r<n.length-1&&t.push(e.createElement("br")),t)),[]);return e.appendChild(r,i),i}(s,o)})),this.listenTo(i,"getSelectedContent",((e,[n])=>{const r=n.anchor;!n.isCollapsed&&r.parent.is("element","codeBlock")&&r.hasSameParentAs(n.focus)&&i.change((i=>{const o=e.return;if(r.parent.is("element")&&(o.childCount>1||n.containsEntireContent(r.parent))){const t=i.createElement("codeBlock",r.parent.getAttributes());i.append(o,t);const n=i.createDocumentFragment();return i.append(t,n),void(e.return=n)}const s=o.getChild(0);t.checkAttribute(s,"code")&&i.setAttribute("code",!0,s)}))}))}afterInit(){const e=this.editor,t=e.commands,i=t.get("indent"),n=t.get("outdent");i&&i.registerChildCommand(t.get("indentCodeBlock"),{priority:"highest"}),n&&n.registerChildCommand(t.get("outdentCodeBlock")),this.listenTo(e.editing.view.document,"enter",((t,i)=>{e.model.document.selection.getLastPosition().parent.is("element","codeBlock")&&(function(e,t){const i=e.model.document,n=e.editing.view,r=i.selection.getLastPosition(),o=r.nodeAfter;return!(t||!i.selection.isCollapsed||!r.isAtStart||!Iw(o)||(e.model.change((t=>{e.execute("enter");const n=i.selection.anchor.parent.previousSibling;t.rename(n,Ew),t.setSelection(n,"in"),e.model.schema.removeDisallowedAttributes([n],t),t.remove(o)})),n.scrollToTheSelection(),0))}(e,i.isSoft)||function(e,t){const i=e.model,n=i.document,r=e.editing.view,o=n.selection.getLastPosition(),s=o.nodeBefore;let a;if(t||!n.selection.isCollapsed||!o.isAtEnd||!s||!s.previousSibling)return!1;if(Iw(s)&&Iw(s.previousSibling))a=i.createRange(i.createPositionBefore(s.previousSibling),i.createPositionAfter(s));else if(Tw(s)&&Iw(s.previousSibling)&&Iw(s.previousSibling.previousSibling))a=i.createRange(i.createPositionBefore(s.previousSibling.previousSibling),i.createPositionAfter(s));else{if(!(Tw(s)&&Iw(s.previousSibling)&&Tw(s.previousSibling.previousSibling)&&s.previousSibling.previousSibling&&Iw(s.previousSibling.previousSibling.previousSibling)))return!1;a=i.createRange(i.createPositionBefore(s.previousSibling.previousSibling.previousSibling),i.createPositionAfter(s))}return e.model.change((t=>{t.remove(a),e.execute("enter");const i=n.selection.anchor.parent;t.rename(i,Ew),e.model.schema.removeDisallowedAttributes([i],t)})),r.scrollToTheSelection(),!0}(e,i.isSoft)||function(e){const t=e.model.document,i=t.selection.getLastPosition(),n=i.nodeBefore||i.textNode;let r;n&&n.is("$text")&&(r=ww(n)),e.model.change((i=>{e.execute("shiftEnter"),r&&i.insertText(r,t.selection.anchor)}))}(e),i.preventDefault(),t.stop())}),{context:"pre"})}}function Tw(e){return e&&e.is("$text")&&!e.data.match(/\S/)}function Iw(e){return e&&e.is("element","softBreak")}var Sw=a(9430),Pw={attributes:{"data-cke":!0}};Pw.setAttributes=br(),Pw.insert=fr().bind(null,"head"),Pw.domAPI=mr(),Pw.insertStyleElement=_r(),ur()(Sw.A,Pw),Sw.A&&Sw.A.locals&&Sw.A.locals;class Rw extends or{static get pluginName(){return"CodeBlockUI"}init(){const e=this.editor,t=e.t,i=e.ui.componentFactory,n=pw(e),r=this._getLanguageListItemDefinitions(n),o=e.commands.get("codeBlock");i.add("codeBlock",(i=>{const n=ug(i,lg),s=n.buttonView,a=t("Insert code block");return s.set({label:a,tooltip:!0,icon:xd.codeBlock,isToggleable:!0}),s.bind("isOn").to(o,"value",(e=>!!e)),s.on("execute",(()=>{e.execute("codeBlock",{usePreviousLanguageChoice:!0}),e.editing.view.focus()})),n.on("execute",(t=>{e.execute("codeBlock",{language:t.source._codeBlockLanguage,forceValue:!0}),e.editing.view.focus()})),n.class="ck-code-block-dropdown",n.bind("isEnabled").to(o),wg(n,r,{role:"menu",ariaLabel:a}),n})),i.add("menuBar:codeBlock",(i=>{const n=new Ip(i);n.buttonView.set({label:t("Code block"),icon:xd.codeBlock}),n.bind("isEnabled").to(o);const s=new Sp(i);s.set({ariaLabel:t("Insert code block")});for(const t of r){const r=new sp(i,n),a=new Op(i);a.bind(...Object.keys(t.model)).to(t.model),a.bind("ariaChecked").to(a,"isOn"),a.delegate("execute").to(n),a.on("execute",(()=>{e.execute("codeBlock",{language:t.model._codeBlockLanguage,forceValue:o.value!=t.model._codeBlockLanguage}),e.editing.view.focus()})),r.children.add(a),s.items.add(r)}return n.panelView.children.add(s),n}))}_getLanguageListItemDefinitions(e){const t=this.editor.commands.get("codeBlock"),i=new Zn;for(const n of e){const e={type:"button",model:new Au({_codeBlockLanguage:n.language,label:n.label,role:"menuitemradio",withText:!0})};e.model.bind("isOn").to(t,"value",(t=>t===e.model._codeBlockLanguage)),i.add(e)}return i}}class Ow extends Ts{constructor(e){super(e),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const t=this.document;function i(e){return(i,n)=>{n.preventDefault();const r=n.dropRange?[n.dropRange]:null,o=new w(t,e);t.fire(o,{dataTransfer:n.dataTransfer,method:i.name,targetRanges:r,target:n.target,domEvent:n.domEvent}),o.stop.called&&n.stopPropagation()}}this.listenTo(t,"paste",i("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",i("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",i("dragging"),{priority:"low"})}onDomEvent(e){const t="clipboardData"in e?e.clipboardData:e.dataTransfer,i="drop"==e.type||"paste"==e.type,n={dataTransfer:new da(t,{cacheFiles:i})};"drop"!=e.type&&"dragover"!=e.type||(n.dropRange=function(e,t){const i=t.target.ownerDocument,n=t.clientX,r=t.clientY;let o;return i.caretRangeFromPoint&&i.caretRangeFromPoint(n,r)?o=i.caretRangeFromPoint(n,r):t.rangeParent&&(o=i.createRange(),o.setStart(t.rangeParent,t.rangeOffset),o.collapse(!0)),o?e.domConverter.domRangeToView(o):null}(this.view,e)),this.fire(e.type,e,n)}}const Mw=["figcaption","li"],Bw=["ol","ul"];function Vw(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="",i=null;for(const n of e.getChildren())t+=zw(n,i)+Vw(n),i=n;return t}function zw(e,t){return t?e.is("element","li")&&!e.isEmpty&&e.getChild(0).is("containerElement")||Bw.includes(e.name)&&Bw.includes(t.name)?"\n\n":e.is("containerElement")||t.is("containerElement")?Mw.includes(e.name)||Mw.includes(t.name)?"\n":"\n\n":"":""}const Nw=function(e){return e==e&&!N(e)},Lw=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}},Dw=function(e){var t=function(e){for(var t=Pt(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,Nw(r)]}return t}(e);return 1==t.length&&t[0][2]?Lw(t[0][0],t[0][1]):function(i){return i===e||function(e,t,i,n){var r=i.length,o=r,s=!n;if(null==e)return!o;for(e=Object(e);r--;){var a=i[r];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<o;){var l=(a=i[r])[0],c=e[l],d=a[1];if(s&&a[2]){if(void 0===c&&!(l in e))return!1}else{var h=new Ye;if(n)var g=n(c,d,l,e,t,h);if(!(void 0===g?na(d,c,3,n,h):g))return!1}}return!0}(i,e,t)}},Fw=function(e,t){return null!=e&&t in Object(e)},jw=function(e,t){return null!=e&&function(e,t,i){for(var n=-1,r=(t=Yr(t,e)).length,o=!1;++n<r;){var s=Qr(t[n]);if(!(o=null!=e&&i(e,s)))break;e=e[s]}return o||++n!=r?o:!!(r=null==e?0:e.length)&&pt(r)&&ut(s,r)&&(he(e)||at(e))}(e,t,Fw)},Hw=function(e){return jr(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Qr(e)):function(e){return function(t){return Xr(t,e)}}(e)},Uw=function(e){return"function"==typeof e?e:null==e?Nn:"object"==typeof e?he(e)?function(e,t){return jr(e)&&Nw(t)?Lw(Qr(e),t):function(i){var n=io(i,e);return void 0===n&&n===t?jw(i,e):na(t,n,3)}}(e[0],e[1]):Dw(e):Hw(e)},qw=function(e,t){var i={};return t=Uw(t),function(e,t){e&&Mn(e,t,Pt)}(e,(function(e,n,r){Xe(i,n,t(e,n,r))})),i};class Ww extends or{constructor(){super(...arguments),this._markersToCopy=new Map}static get pluginName(){return"ClipboardMarkersUtils"}_registerMarkerToCopy(e,t){this._markersToCopy.set(e,t)}_copySelectedFragmentWithMarkers(e,t,i=(e=>e.model.getSelectedContent(e.model.document.selection))){return this.editor.model.change((n=>{const r=n.model.document.selection;n.setSelection(t);const o=this._insertFakeMarkersIntoSelection(n,n.model.document.selection,e),s=i(n),a=this._removeFakeMarkersInsideElement(n,s);for(const[e,t]of Object.entries(o)){a[e]||(a[e]=n.createRangeIn(s));for(const e of t)n.remove(e)}s.markers.clear();for(const[e,t]of Object.entries(a))s.markers.set(e,t);return n.setSelection(r),s}))}_pasteMarkersIntoTransformedElement(e,t){const i=this._getPasteMarkersFromRangeMap(e);return this.editor.model.change((e=>{const n=this._insertFakeMarkersElements(e,i),r=t(e),o=this._removeFakeMarkersInsideElement(e,r);for(const t of Object.values(n).flat())e.remove(t);for(const[t,i]of Object.entries(o))e.model.markers.has(t)||e.addMarker(t,{usingOperation:!0,affectsData:!0,range:i});return r}))}_pasteFragmentWithMarkers(e){const t=this._getPasteMarkersFromRangeMap(e.markers);e.markers.clear();for(const i of t)e.markers.set(i.name,i.range);return this.editor.model.insertContent(e)}_forceMarkersCopy(e,t,i={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){const n=this._markersToCopy.get(e);this._markersToCopy.set(e,i),t(),n?this._markersToCopy.set(e,n):this._markersToCopy.delete(e)}_isMarkerCopyable(e,t){const i=this._getMarkerClipboardConfig(e);if(!i)return!1;if(!t)return!0;const{allowedActions:n}=i;return"all"===n||n.includes(t)}_hasMarkerConfiguration(e){return!!this._getMarkerClipboardConfig(e)}_getMarkerClipboardConfig(e){const[t]=e.split(":");return this._markersToCopy.get(t)||null}_insertFakeMarkersIntoSelection(e,t,i){const n=this._getCopyableMarkersFromSelection(e,t,i);return this._insertFakeMarkersElements(e,n)}_getCopyableMarkersFromSelection(e,t,i){const n=Array.from(t.getRanges()),r=new Set(n.flatMap((t=>Array.from(e.model.markers.getMarkersIntersectingRange(t)))));return Array.from(r).filter((e=>{if(!this._isMarkerCopyable(e.name,i))return!1;const{copyPartiallySelected:t}=this._getMarkerClipboardConfig(e.name);if(!t){const t=e.getRange();return n.some((e=>e.containsRange(t,!0)))}return!0})).map((e=>({name:"dragstart"===i?this._getUniqueMarkerName(e.name):e.name,range:e.getRange()})))}_getPasteMarkersFromRangeMap(e,t=null){const{model:i}=this.editor;return(e instanceof Map?Array.from(e.entries()):Object.entries(e)).flatMap((([e,n])=>{if(!this._hasMarkerConfiguration(e))return[{name:e,range:n}];if(this._isMarkerCopyable(e,t)){const t=this._getMarkerClipboardConfig(e),r=i.markers.has(e)&&"$graveyard"===i.markers.get(e).getRange().root.rootName;return(t.duplicateOnPaste||r)&&(e=this._getUniqueMarkerName(e)),[{name:e,range:n}]}return[]}))}_insertFakeMarkersElements(e,t){const i={},n=t.flatMap((e=>{const{start:t,end:i}=e.range;return[{position:t,marker:e,type:"start"},{position:i,marker:e,type:"end"}]})).sort((({position:e},{position:t})=>e.isBefore(t)?1:-1));for(const{position:t,marker:r,type:o}of n){const n=e.createElement("$marker",{"data-name":r.name,"data-type":o});i[r.name]||(i[r.name]=[]),i[r.name].push(n),e.insert(n,t)}return i}_removeFakeMarkersInsideElement(e,t){const i=this._getAllFakeMarkersFromElement(e,t).reduce(((t,i)=>{const n=i.markerElement&&e.createPositionBefore(i.markerElement);let r=t[i.name],o=!1;return r&&r.start&&r.end&&(this._getMarkerClipboardConfig(i.name).duplicateOnPaste?t[this._getUniqueMarkerName(i.name)]=t[i.name]:o=!0,r=null),o||(t[i.name]={...r,[i.type]:n}),i.markerElement&&e.remove(i.markerElement),t}),{});return qw(i,(i=>new Ra(i.start||e.createPositionFromPath(t,[0]),i.end||e.createPositionAt(t,"end"))))}_getAllFakeMarkersFromElement(e,t){const i=Array.from(e.createRangeIn(t)).flatMap((({item:e})=>{if(!e.is("element","$marker"))return[];const t=e.getAttribute("data-name"),i=e.getAttribute("data-type");return[{markerElement:e,name:t,type:i}]})),n=[],r=[];for(const e of i)"end"===e.type&&(i.some((t=>t.name===e.name&&"start"===t.type))||n.push({markerElement:null,name:e.name,type:"start"})),"start"===e.type&&(i.some((t=>t.name===e.name&&"end"===t.type))||r.unshift({markerElement:null,name:e.name,type:"end"}));return[...n,...i,...r]}_getUniqueMarkerName(e){const t=e.split(":"),i=y().substring(1,6);return 3===t.length?`${t.slice(0,2).join(":")}:${i}`:`${t.join(":")}:${i}`}}class $w extends or{static get pluginName(){return"ClipboardPipeline"}static get requires(){return[Ww]}init(){this.editor.editing.view.addObserver(Ow),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(e,t,i){const n=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:"cut"===i},(()=>{const r=n._copySelectedFragmentWithMarkers(i,t);this.fire("outputTransformation",{dataTransfer:e,content:r,method:i})}))}_setupPasteDrop(){const e=this.editor,t=e.model,i=e.editing.view,n=i.document,r=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(n,"clipboardInput",((t,i)=>{"paste"!=i.method||e.model.canEditAt(e.model.document.selection)||t.stop()}),{priority:"highest"}),this.listenTo(n,"clipboardInput",((e,t)=>{const n=t.dataTransfer;let r;if(t.content)r=t.content;else{let e="";n.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,"")}(n.getData("text/html")):n.getData("text/plain")&&(((o=(o=n.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>")||o.includes("<br>"))&&(o=`<p>${o}</p>`),e=o),r=this.editor.data.htmlProcessor.toView(e)}var o;const s=new w(this,"inputTransformation");this.fire(s,{content:r,dataTransfer:n,targetRanges:t.targetRanges,method:t.method}),s.stop.called&&e.stop(),i.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((e,i)=>{if(i.content.isEmpty)return;const n=this.editor.data.toModel(i.content,"$clipboardHolder");0!=n.childCount&&(e.stop(),t.change((()=>{this.fire("contentInsertion",{content:n,method:i.method,dataTransfer:i.dataTransfer,targetRanges:i.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((e,t)=>{t.resultRange=r._pasteFragmentWithMarkers(t.content)}),{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,i=e.editing.view.document,n=(e,i)=>{const n=i.dataTransfer;i.preventDefault(),this._fireOutputTransformationEvent(n,t.selection,e.name)};this.listenTo(i,"copy",n,{priority:"low"}),this.listenTo(i,"cut",((t,i)=>{e.model.canEditAt(e.model.document.selection)?n(t,i):i.preventDefault()}),{priority:"low"}),this.listenTo(this,"outputTransformation",((t,n)=>{const r=e.data.toView(n.content);i.fire("clipboardOutput",{dataTransfer:n.dataTransfer,content:r,method:n.method})}),{priority:"low"}),this.listenTo(i,"clipboardOutput",((i,n)=>{n.content.isEmpty||(n.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(n.content)),n.dataTransfer.setData("text/plain",Vw(n.content))),"cut"==n.method&&e.model.deleteContent(t.selection)}),{priority:"low"})}}class Kw extends(S()){constructor(){super(...arguments),this._stack=[]}add(e,t){const i=this._stack,n=i[0];this._insertDescriptor(e);const r=i[0];n===r||Jw(n,r)||this.fire("change:top",{oldDescriptor:n,newDescriptor:r,writer:t})}remove(e,t){const i=this._stack,n=i[0];this._removeDescriptor(e);const r=i[0];n===r||Jw(n,r)||this.fire("change:top",{oldDescriptor:n,newDescriptor:r,writer:t})}_insertDescriptor(e){const t=this._stack,i=t.findIndex((t=>t.id===e.id));if(Jw(e,t[i]))return;i>-1&&t.splice(i,1);let n=0;for(;t[n]&&Zw(t[n],e);)n++;t.splice(n,0,e)}_removeDescriptor(e){const t=this._stack,i=t.findIndex((t=>t.id===e));i>-1&&t.splice(i,1)}}function Jw(e,t){return e&&t&&e.priority==t.priority&&Gw(e.classes)==Gw(t.classes)}function Zw(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&Gw(e.classes)>Gw(t.classes)}function Gw(e){return Array.isArray(e)?e.sort().join(","):e}const Yw="ck-widget_selected";function Qw(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Xw(e,t,i){if(t.classes&&i.addClass(Rn(t.classes),e),t.attributes)for(const n in t.attributes)i.setAttribute(n,t.attributes[n],e)}function ef(e,t,i){if(t.classes&&i.removeClass(Rn(t.classes),e),t.attributes)for(const n in t.attributes)i.removeAttribute(n,e)}function tf(e,t,i=Xw,n=ef){const r=new Kw;r.on("change:top",((t,r)=>{r.oldDescriptor&&n(e,r.oldDescriptor,r.writer),r.newDescriptor&&i(e,r.newDescriptor,r.writer)})),t.setCustomProperty("addHighlight",((e,t,i)=>r.add(t,i)),e),t.setCustomProperty("removeHighlight",((e,t,i)=>r.remove(t,i)),e)}function nf(){return null}const rf="widget-type-around";function of(e,t,i){return!!e&&Qw(e)&&!i.isInline(t)}function sf(e){return e.getAttribute(rf)}var af=a(5216),lf={attributes:{"data-cke":!0}};lf.setAttributes=br(),lf.insert=fr().bind(null,"head"),lf.domAPI=mr(),lf.insertStyleElement=_r(),ur()(af.A,lf),af.A&&af.A.locals&&af.A.locals;const cf=["before","after"],df=(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,hf="ck-widget__type-around_disabled";class gf extends or{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[om,xm]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",((i,n,r)=>{t.change((e=>{for(const i of t.document.roots)r?e.removeClass(hf,i):e.addClass(hf,i)})),r||e.model.change((e=>{e.removeSelectionAttribute(rf)}))})),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 i=this.editor,n=i.editing.view,r=i.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);i.execute("insertParagraph",{position:i.model.createPositionAt(e,t),attributes:r}),n.focus(),n.scrollToTheSelection()}_listenToIfEnabled(e,t,i,n){this.listenTo(e,t,((...e)=>{this.isEnabled&&i(...e)}),n)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=sf(e);if(!t)return!1;const i=e.getSelectedElement();return this._insertParagraph(i,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,i=e.locale.t,n={before:i("Insert paragraph before block"),after:i("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",((e,r,o)=>{const s=o.mapper.toViewElement(r.item);s&&of(s,r.item,t)&&(function(e,t,i){const n=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){const i=this.toDomElement(e);return function(e,t){for(const i of cf){const n=new Ed({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${i}`],title:t[i],"aria-hidden":"true"},children:[e.ownerDocument.importNode(df,!0)]});e.appendChild(n.render())}}(i,t),function(e){const t=new Ed({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(i),i}));e.insert(e.createPositionAt(i,"end"),n)}(o.writer,n,s),s.getCustomProperty("widgetLabel").push((()=>this.isEnabled?i("Press Enter to type after or press Shift + Enter to type before the widget"):"")))}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,i=t.document.selection,n=t.schema,r=e.editing.view;function o(e){return`ck-widget_type-around_show-fake-caret_${e}`}this._listenToIfEnabled(r.document,"arrowKey",((e,t)=>{this._handleArrowKeyPress(e,t)}),{context:[Qw,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",((t,i)=>{i.directChange&&e.model.change((e=>{e.removeSelectionAttribute(rf)}))})),this._listenToIfEnabled(t.document,"change:data",(()=>{const t=i.getSelectedElement();t&&of(e.editing.mapper.toViewElement(t),t,n)||e.model.change((e=>{e.removeSelectionAttribute(rf)}))})),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",((e,t,i)=>{const r=i.writer;if(this._currentFakeCaretModelElement){const e=i.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(r.removeClass(cf.map(o),e),this._currentFakeCaretModelElement=null)}const s=t.selection.getSelectedElement();if(!s)return;const a=i.mapper.toViewElement(s);if(!of(a,s,n))return;const l=sf(t.selection);l&&(r.addClass(o(l),a),this._currentFakeCaretModelElement=s)})),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",((t,i,n)=>{n||e.model.change((e=>{e.removeSelectionAttribute(rf)}))}))}_handleArrowKeyPress(e,t){const i=this.editor,n=i.model,r=n.document.selection,o=n.schema,s=i.editing.view,a=function(e,t){const i=Pn(e,t);return"down"===i||"right"===i}(t.keyCode,i.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();let c;of(l,i.editing.mapper.toModelElement(l),o)?c=this._handleArrowKeyPressOnSelectedWidget(a):r.isCollapsed?c=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):t.shiftKey||(c=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),c&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,i=sf(t.document.selection);return t.change((t=>i?i!==(e?"after":"before")&&(t.removeSelectionAttribute(rf),!0):(t.setSelectionAttribute(rf,e?"after":"before"),!0)))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,i=t.model,n=i.schema,r=t.plugins.get("Widget"),o=r._getObjectElementNextToSelection(e);return!!of(t.editing.mapper.toViewElement(o),o,n)&&(i.change((t=>{r._setSelectionOverElement(o),t.setSelectionAttribute(rf,e?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,i=t.model,n=i.schema,r=t.editing.mapper,o=i.document.selection,s=e?o.getLastPosition().nodeBefore:o.getFirstPosition().nodeAfter;return!!of(r.toViewElement(s),s,n)&&(i.change((t=>{t.setSelection(s,"on"),t.setSelectionAttribute(rf,e?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",((i,n)=>{const r=n.domTarget.closest(".ck-widget__type-around__button");if(!r)return;const o=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(r),s=function(e,t){const i=e.closest(".ck-widget");return t.mapDomToView(i)}(r,t.domConverter),a=e.editing.mapper.toModelElement(s);this._insertParagraph(a,o),n.preventDefault(),i.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",((i,n)=>{if("atTarget"!=i.eventPhase)return;const r=t.getSelectedElement(),o=e.editing.mapper.toViewElement(r),s=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:of(o,r,s)&&(this._insertParagraph(r,n.isSoft?"before":"after"),a=!0),a&&(n.preventDefault(),i.stop())}),{context:Qw})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",((t,i)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(i.selection=e.selection)}),{priority:"high"}),d.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,i=e.model,n=i.schema;this._listenToIfEnabled(t.document,"delete",((t,r)=>{if("atTarget"!=t.eventPhase)return;const o=sf(i.document.selection);if(!o)return;const s=r.direction,a=i.document.selection.getSelectedElement(),l="forward"==s;if("before"===o===l)e.execute("delete",{selection:i.createSelection(a,"on")});else{const t=n.getNearestSelectionRange(i.createPositionAt(a,o),s);if(t)if(t.isCollapsed){const r=i.createSelection(t.start);if(i.modifySelection(r,{direction:s}),r.focus.isEqual(t.start)){const e=function(e,t){let i=t;for(const n of t.getAncestors({parentFirst:!0})){if(n.childCount>1||e.isLimit(n))break;i=n}return i}(n,t.start.parent);i.deleteContent(i.createSelection(e,"on"),{doNotAutoparagraph:!0})}else i.change((i=>{i.setSelection(t),e.execute(l?"deleteForward":"delete")}))}else i.change((i=>{i.setSelection(t),e.execute(l?"deleteForward":"delete")}))}r.preventDefault(),t.stop()}),{context:Qw})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,i=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",((e,[n,r])=>{if(r&&!r.is("documentSelection"))return;const o=sf(i);return o?(e.stop(),t.change((e=>{const r=i.getSelectedElement(),s=t.createPositionAt(r,o),a=e.createSelection(s),l=t.insertContent(n,a);return e.setSelection(a),l}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",((e,i)=>{const[,n,r={}]=i;if(n&&!n.is("documentSelection"))return;const o=sf(t);o&&(r.findOptimalPosition=o,i[3]=r)}),{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",((e,[i])=>{i&&!i.is("documentSelection")||sf(t)&&e.stop()}),{priority:"high"})}}function uf(e,t,i){const n=e.schema,r=e.createRangeIn(t.root),o="forward"==i?"elementStart":"elementEnd";for(const{previousPosition:e,item:s,type:a}of r.getWalker({startPosition:t,direction:i})){if(n.isLimit(s)&&!n.isInline(s))return e;if(a==o&&n.isBlock(s))return null}return null}function pf(e,t,i){const n="backward"==i?t.end:t.start;if(e.checkChild(n,"$text"))return n;for(const{nextPosition:n}of t.getWalker({direction:i}))if(e.checkChild(n,"$text"))return n;return null}var mf=a(6683),wf={attributes:{"data-cke":!0}};wf.setAttributes=br(),wf.insert=fr().bind(null,"head"),wf.domAPI=mr(),wf.insertStyleElement=_r(),ur()(mf.A,wf),mf.A&&mf.A.locals&&mf.A.locals;class ff extends or{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[gf,xm]}init(){const e=this.editor,t=e.editing.view,i=t.document,n=e.t;this.editor.editing.downcastDispatcher.on("selection",((t,i,n)=>{const r=n.writer,o=i.selection;if(o.isCollapsed)return;const s=o.getSelectedElement();if(!s)return;const a=e.editing.mapper.toViewElement(s);var l;Qw(a)&&n.consumable.consume(o,"selection")&&r.setSelection(r.createRangeOn(a),{fake:!0,label:(l=a,l.getCustomProperty("widgetLabel").reduce(((e,t)=>"function"==typeof t?e?e+". "+t():t():e?e+". "+t:t),""))})})),this.editor.editing.downcastDispatcher.on("selection",((e,t,i)=>{this._clearPreviouslySelectedWidgets(i.writer);const n=i.writer,r=n.document.selection;let o=null;for(const e of r.getRanges())for(const t of e){const e=t.item;Qw(e)&&!yf(e,o)&&(n.addClass(Yw,e),this._previouslySelected.add(e),o=e)}}),{priority:"low"}),t.addObserver(ud),this.listenTo(i,"mousedown",((...e)=>this._onMousedown(...e))),this.listenTo(i,"arrowKey",((...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)}),{context:[Qw,"$text"]}),this.listenTo(i,"arrowKey",((...e)=>{this._preventDefaultOnArrowKeyPress(...e)}),{context:"$root"}),this.listenTo(i,"arrowKey",function(e){const t=e.model;return(i,n)=>{const r=n.keyCode==En.arrowup,o=n.keyCode==En.arrowdown,s=n.shiftKey,a=t.document.selection;if(!r&&!o)return;const l=o;if(s&&function(e,t){return!e.isCollapsed&&e.isBackward==t}(a,l))return;const c=function(e,t,i){const n=e.model;if(i){const e=t.isCollapsed?t.focus:t.getLastPosition(),i=uf(n,e,"forward");if(!i)return null;const r=n.createRange(e,i),o=pf(n.schema,r,"backward");return o?n.createRange(e,o):null}{const e=t.isCollapsed?t.focus:t.getFirstPosition(),i=uf(n,e,"backward");if(!i)return null;const r=n.createRange(i,e),o=pf(n.schema,r,"forward");return o?n.createRange(o,e):null}}(e,a,l);if(c){if(c.isCollapsed){if(a.isCollapsed)return;if(s)return}(c.isCollapsed||function(e,t,i){const n=e.model,r=e.view.domConverter;if(i){const e=n.createSelection(t.start);n.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=n.createRange(e.focus,t.end))}const o=e.mapper.toViewRange(t),s=r.viewRangeToDom(o),a=Zi.getDomRangeRects(s);let l;for(const e of a)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,c,l))&&(t.change((e=>{const i=l?c.end:c.start;if(s){const n=t.createSelection(a.anchor);n.setFocus(i),e.setSelection(n)}else e.setSelection(i)})),i.stop(),n.preventDefault(),n.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(i,"delete",((e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())}),{context:"$root"}),this.listenTo(i,"tab",((e,t)=>{"atTarget"==e.eventPhase&&(t.shiftKey||this._selectFirstNestedEditable()&&(t.preventDefault(),e.stop()))}),{context:Qw,priority:"low"}),this.listenTo(i,"tab",((e,t)=>{t.shiftKey&&this._selectAncestorWidget()&&(t.preventDefault(),e.stop())}),{priority:"low"}),this.listenTo(i,"keydown",((e,t)=>{t.keystroke==En.esc&&this._selectAncestorWidget()&&(t.preventDefault(),e.stop())}),{priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:n("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:n("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:n("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:n("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:n("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){const i=this.editor,n=i.editing.view,r=n.document;let o=t.target;if(t.domEvent.detail>=3)return void(this._selectBlockContent(o)&&t.preventDefault());if(function(e){let t=e;for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(Qw(t))return!1;t=t.parent}return!1}(o))return;if(!Qw(o)&&(o=o.findAncestor(Qw),!o))return;d.isAndroid&&t.preventDefault(),r.isFocused||n.focus();const s=i.editing.mapper.toModelElement(o);this._setSelectionOverElement(s)}_selectBlockContent(e){const t=this.editor,i=t.model,n=t.editing.mapper,r=i.schema,o=n.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),s=function(e,t){for(const i of e.getAncestors({includeSelf:!0,parentFirst:!0})){if(t.checkChild(i,"$text"))return i;if(t.isLimit(i)&&!t.isObject(i))break}return null}(n.toModelElement(o),i.schema);return!!s&&(i.change((e=>{const t=r.isLimit(s)?null:function(e,t){const i=new xa({startPosition:e});for(const{item:e}of i){if(t.isLimit(e)||!e.is("element"))return null;if(t.checkChild(e,"$text"))return e}return null}(e.createPositionAfter(s),r),i=e.createPositionAt(s,0),n=t?e.createPositionAt(t,0):e.createPositionAt(s,"end");e.setSelection(e.createRange(i,n))})),!0)}_handleSelectionChangeOnArrowKeyPress(e,t){const i=t.keyCode,n=this.editor.model,r=n.schema,o=n.document.selection,s=o.getSelectedElement(),a=Pn(i,this.editor.locale.contentLanguageDirection),l="down"==a||"right"==a,c="up"==a||"down"==a;if(s&&r.isObject(s)){const i=l?o.getLastPosition():o.getFirstPosition(),s=r.getNearestSelectionRange(i,l?"forward":"backward");return void(s&&(n.change((e=>{e.setSelection(s)})),t.preventDefault(),e.stop()))}if(!o.isCollapsed&&!t.shiftKey){const i=o.getFirstPosition(),s=o.getLastPosition(),a=i.nodeAfter,c=s.nodeBefore;return void((a&&r.isObject(a)||c&&r.isObject(c))&&(n.change((e=>{e.setSelection(l?s:i)})),t.preventDefault(),e.stop()))}if(!o.isCollapsed)return;const d=this._getObjectElementNextToSelection(l);if(d&&r.isObject(d)){if(r.isInline(d)&&c)return;this._setSelectionOverElement(d),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const i=this.editor.model,n=i.schema,r=i.document.selection.getSelectedElement();r&&n.isObject(r)&&(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 i=this._getObjectElementNextToSelection(e);return i?(this.editor.model.change((e=>{let n=t.anchor.parent;for(;n.isEmpty;){const t=n;n=t.parent,e.remove(t)}this._setSelectionOverElement(i)})),!0):void 0}_setSelectionOverElement(e){this.editor.model.change((t=>{t.setSelection(t.createRangeOn(e))}))}_getObjectElementNextToSelection(e){const t=this.editor.model,i=t.schema,n=t.document.selection,r=t.createSelection(n);if(t.modifySelection(r,{direction:e?"forward":"backward"}),r.isEqual(n))return null;const o=e?r.focus.nodeBefore:r.focus.nodeAfter;return o&&i.isObject(o)?o:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(Yw,t);this._previouslySelected.clear()}_selectFirstNestedEditable(){const e=this.editor,t=this.editor.editing.view.document;for(const i of t.selection.getFirstRange().getItems())if(i.is("editableElement")){const t=e.editing.mapper.toModelElement(i);if(!t)continue;const n=e.model.createPositionAt(t,0),r=e.model.schema.getNearestSelectionRange(n,"forward");return e.model.change((e=>{e.setSelection(r)})),!0}return!1}_selectAncestorWidget(){const e=this.editor,t=e.editing.mapper,i=e.editing.view.document.selection.getFirstPosition().parent,n=(i.is("$text")?i.parent:i).findAncestor(Qw);if(!n)return!1;const r=t.toModelElement(n);return!!r&&(e.model.change((e=>{e.setSelection(r,"on")})),!0)}}function yf(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}class bf extends or{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Pu]}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||!Qw(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:i,getRelatedElement:n,balloonClassName:r="ck-toolbar-container"}){if(!i.length)return void v("widget-toolbar-no-items",{toolbarId:e});const o=this.editor,s=o.t,a=new Gh(o.locale);if(a.ariaLabel=t||s("Widget toolbar"),this._toolbarDefinitions.has(e))throw new _("widget-toolbar-duplicated",this,{toolbarId:e});const l={view:a,getRelatedElement:n,balloonClassName:r,itemsConfig:i,initialized:!1};o.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const e=n(o.editing.view.document.selection);e&&this._showToolbar(l,e)},afterBlur:()=>{this._hideToolbar(l)}}),this._toolbarDefinitions.set(e,l)}_updateToolbarsVisibility(){let e=0,t=null,i=null;for(const n of this._toolbarDefinitions.values()){const r=n.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&r)if(this.editor.ui.focusTracker.isFocused){const o=r.getAncestors().length;o>e&&(e=o,t=r,i=n)}else this._isToolbarVisible(n)&&this._hideToolbar(n);else this._isToolbarInBalloon(n)&&this._hideToolbar(n)}i&&this._showToolbar(i,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?kf(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:_f(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);kf(this.editor,t)}})))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function kf(e,t){const i=e.plugins.get("ContextualBalloon"),n=_f(e,t);i.updatePosition(n)}function _f(e,t){const i=e.editing.view,n=Jg.defaultPositions;return{target:i.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class vf extends(q()){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,i){const n=new Zi(t);this.activeHandlePosition=function(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const i of t)if(e.classList.contains(xf(i)))return i}(e),this._referenceCoordinates=function(e,t){const i=new Zi(e),n=t.split("-"),r={x:"right"==n[1]?i.right:i.left,y:"bottom"==n[0]?i.bottom:i.top};return r.x+=e.ownerDocument.defaultView.scrollX,r.y+=e.ownerDocument.defaultView.scrollY,r}(t,function(e){const t=e.split("-"),i={top:"bottom",bottom:"top",left:"right",right:"left"};return`${i[t[0]]}-${i[t[1]]}`}(this.activeHandlePosition)),this._originalWidth=n.width,this._originalHeight=n.height,this._aspectRatio=n.width/n.height;const r=i.style.width;r&&r.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(r):this._originalWidthPercents=function(e,t){const i=e.parentElement;let n=parseFloat(i.ownerDocument.defaultView.getComputedStyle(i).width),r=0,o=i;for(;isNaN(n);){if(o=o.parentElement,++r>5)return 0;n=parseFloat(i.ownerDocument.defaultView.getComputedStyle(o).width)}return t.width/n*100}(i,n)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function xf(e){return`ck-widget__resizer__handle-${e}`}class Af extends Jd{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,i,n)=>"px"===e.unit?`${t}×${i}`:`${n}%`)),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",((e,t,i)=>t<50||i<50?"above-center":e))}_dismiss(){this.unbind(),this._isVisible=!1}}class Ef extends(q()){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((i=>{const n=i.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){const i=this.toDomElement(t);return e._appendHandles(i),e._appendSizeUI(i),i}));i.insert(i.createPositionAt(t,"end"),n),i.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=n,this.isVisible||this.hide()})),this.on("change:isVisible",(()=>{this.isVisible?(this.show(),this.redraw()):this.hide()}))}begin(e){this._state=new vf(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 i=this._options.unit||"%",n=("%"===i?t.widthPercents:t.width)+i;e.setStyle("width",n,this._options.viewElement)}));const i=this._getHandleHost(),n=new Zi(i),r=Math.round(n.width),o=Math.round(n.height),s=new Zi(i);t.width=Math.round(s.width),t.height=Math.round(s.height),this.redraw(n),this.state.update({...t,handleHostWidth:r,handleHostHeight:o})}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(!((i=t)&&i.ownerDocument&&i.ownerDocument.contains(i)))return;var i;const n=t.parentElement,r=this._getHandleHost(),o=this._viewResizerWrapper,s=[o.getStyle("width"),o.getStyle("height"),o.getStyle("left"),o.getStyle("top")];let a;if(n.isSameNode(r)){const t=e||new Zi(r);a=[t.width+"px",t.height+"px",void 0,void 0]}else a=[r.offsetWidth+"px",r.offsetHeight+"px",r.offsetLeft+"px",r.offsetTop+"px"];"same"!==Q(s,a)&&this._options.editor.editing.view.change((e=>{e.setStyle({width:a[0],height:a[1],left:a[2],top:a[3]},o)}))}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,i=(r=e).pageX,n=r.pageY;var r;const o=!this._options.isCentered||this._options.isCentered(this),s={x:t._referenceCoordinates.x-(i+t.originalWidth),y:n-t.originalHeight-t._referenceCoordinates.y};o&&t.activeHandlePosition.endsWith("-right")&&(s.x=i-(t._referenceCoordinates.x+t.originalWidth)),o&&(s.x*=2);let a=Math.abs(t.originalWidth+s.x),l=Math.abs(t.originalHeight+s.y);return"width"==(a/t.aspectRatio>l?"width":"height")?l=a/t.aspectRatio:a=l*t.aspectRatio,{width:Math.round(a),height:Math.round(l),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*a*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 n of t)e.appendChild(new Ed({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(i=n,`ck-widget__resizer__handle-${i}`)}}).render());var i}_appendSizeUI(e){this._sizeView=new Af,this._sizeView.render(),e.appendChild(this._sizeView.element)}}var Cf=a(1587),Tf={attributes:{"data-cke":!0}};Tf.setAttributes=br(),Tf.insert=fr().bind(null,"head"),Tf.domAPI=mr(),Tf.insertStyleElement=_r(),ur()(Cf.A,Tf),Cf.A&&Cf.A.locals&&Cf.A.locals;class If extends or{constructor(){super(...arguments),this._resizers=new Map}static get pluginName(){return"WidgetResize"}init(){const e=this.editor.editing,t=Ui.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(ud),this._observer=new(Di()),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=ru((()=>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(Ui.window,"resize",this._redrawSelectedResizerThrottled);const i=this.editor.editing.view.document.selection;i.on("change",(()=>{const e=i.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 Ef(e),i=this.editor.plugins;if(t.attach(),i.has("WidgetToolbarRepository")){const e=i.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 n=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(n)==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 i=t.domTarget;Ef.isResizeHandle(i)&&(this._activeResizer=this._getResizerByHandle(i)||null,this._activeResizer&&(this._activeResizer.begin(i),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}const Sf=rn("px");class Pf extends Jd{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=>Sf(e))),top:e.to("top",(e=>Sf(e))),width:e.to("width",(e=>Sf(e)))}}})}}class Rf extends or{constructor(){super(...arguments),this.removeDropMarkerDelayed=er((()=>this.removeDropMarker()),40),this._updateDropMarkerThrottled=ru((e=>this._updateDropMarker(e)),40),this._reconvertMarkerThrottled=ru((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0),this._dropTargetLineView=new Pf,this._domEmitter=new(Di()),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,i,n,r,o){this.removeDropMarkerDelayed.cancel();const s=Of(this.editor,e,t,i,n,r,o);if(s)return o&&o.containsRange(s)?this.removeDropMarker():void this._updateDropMarkerThrottled(s)}getFinalDropRange(e,t,i,n,r,o){const s=Of(this.editor,e,t,i,n,r,o);return this.removeDropMarker(),s}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:i})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(i);t.markerRange.isCollapsed?this._updateDropTargetLine(t.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){const t=this.editor,i=t.model.markers;t.model.change((t=>{i.has("drop-target")?i.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,i=e.start.nodeBefore,n=e.start.nodeAfter,r=e.start.parent,o=i?t.mapper.toViewElement(i):null,s=o?t.view.domConverter.mapViewToDom(o):null,a=n?t.mapper.toViewElement(n):null,l=a?t.view.domConverter.mapViewToDom(a):null,c=t.mapper.toViewElement(r);if(!c)return;const d=t.view.domConverter.mapViewToDom(c),h=this._getScrollableRect(c),{scrollX:g,scrollY:u}=Ui.window,p=s?new Zi(s):null,m=l?new Zi(l):null,w=new Zi(d).excludeScrollbarsAndBorders(),f=p?p.bottom:w.top,y=m?m.top:w.bottom,b=Ui.window.getComputedStyle(d),k=f<=y?(f+y)/2:y;if(h.top<k&&k<h.bottom){const e=w.left+parseFloat(b.paddingLeft),t=w.right-parseFloat(b.paddingRight),i=Math.max(e+g,h.left),n=Math.min(t+g,h.right);this._dropTargetLineView.set({isVisible:!0,left:i,top:k+u,width:n-i})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(e){const t=e.root.rootName;let i;if(this._scrollables.has(t))i=this._scrollables.get(t).domElement;else{i=function(e){let t=e;do{t=t.parentElement;const e=Ui.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(i,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const n=new tn(i,this._reconvertMarkerThrottled);this._scrollables.set(t,{domElement:i,resizeObserver:n})}return new Zi(i).excludeScrollbarsAndBorders()}}function Of(e,t,i,n,r,o,s){const a=e.model,l=e.editing.mapper;let c=zf(e,t);for(;c;){if(!o)if(a.schema.checkChild(c,"$text")){if(i){const t=i[0].start,o=l.toModelPosition(t);if(!s||Array.from(s.getItems()).every((e=>a.schema.checkChild(o,e)))){if(a.schema.checkChild(o,"$text"))return a.createRange(o);if(t)return Bf(e,zf(e,t.parent),n,r)}}}else if(a.schema.isInline(c))return Bf(e,c,n,r);if(a.schema.isBlock(c))return Bf(e,c,n,r);if(a.schema.checkChild(c,"$block")){const t=Array.from(c.getChildren()).filter((t=>t.is("element")&&!Mf(e,t)));let i=0,o=t.length;if(0==o)return a.createRange(a.createPositionAt(c,"end"));for(;i<o-1;){const s=Math.floor((i+o)/2);"before"==Vf(e,t[s],n,r)?o=s:i=s}return Bf(e,t[i],n,r)}c=c.parent}return null}function Mf(e,t){const i=e.editing.mapper,n=e.editing.view.domConverter,r=i.toViewElement(t);if(!r)return!0;const o=n.mapViewToDom(r);return"none"!=Ui.window.getComputedStyle(o).float}function Bf(e,t,i,n){const r=e.model;return r.createRange(r.createPositionAt(t,Vf(e,t,i,n)))}function Vf(e,t,i,n){const r=e.editing.mapper,o=e.editing.view.domConverter,s=r.toViewElement(t),a=o.mapViewToDom(s),l=new Zi(a);return e.model.schema.isInline(t)?i<(l.left+l.right)/2?"before":"after":n<(l.top+l.bottom)/2?"before":"after"}function zf(e,t){const i=e.editing.mapper,n=e.editing.view,r=i.toModelElement(t);if(r)return r;const o=n.createPositionBefore(t),s=i.findMappedViewAncestor(o);return i.toModelElement(s)}class Nf extends or{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(Di())}static get pluginName(){return"DragDropBlockToolbar"}init(){const e=this.editor;if(this.listenTo(e,"change:isReadOnly",((e,t,i)=>{i?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")})),d.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(Ui.document,"dragover",((e,t)=>this._handleBlockDragging(t))),this._domEmitter.listenTo(Ui.document,"drop",((e,t)=>this._handleBlockDragging(t))),this._domEmitter.listenTo(Ui.document,"dragend",(()=>this._handleBlockDragEnd()),{useCapture:!0}),this.isEnabled&&t.setAttribute("draggable","true"),this.on("change:isEnabled",((e,i,n)=>{t.setAttribute("draggable",n?"true":"false")}))}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;const t=this.editor.model,i=t.document.selection,n=this.editor.editing.view,r=Array.from(i.getSelectedBlocks()),o=t.createRange(t.createPositionBefore(r[0]),t.createPositionAfter(r[r.length-1]));t.change((e=>e.setSelection(o))),this._isBlockDragging=!0,n.focus(),n.getObserver(Ow).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;const t=e.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),i=e.clientY,n=document.elementFromPoint(t,i),r=this.editor.editing.view;n&&n.closest(".ck-editor__editable")&&r.getObserver(Ow).onDomEvent({...e,type:e.type,dataTransfer:e.dataTransfer,target:n,clientX:t,clientY:i,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var Lf=a(2277),Df={attributes:{"data-cke":!0}};Df.setAttributes=br(),Df.insert=fr().bind(null,"head"),Df.domAPI=mr(),Df.insertStyleElement=_r(),ur()(Lf.A,Df),Lf.A&&Lf.A.locals&&Lf.A.locals;class Ff extends or{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=er((()=>this._clearDraggableAttributes()),40),this._blockMode=!1,this._domEmitter=new(Di())}static get pluginName(){return"DragDrop"}static get requires(){return[$w,ff,Rf,Nf]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,t.addObserver(Ow),t.addObserver(ud),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",((e,t,i)=>{i?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((e,t,i)=>{i||this._finalizeDragging(!1)})),d.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,i=e.editing.view,n=i.document,r=e.plugins.get(Rf);this.listenTo(n,"dragstart",((e,i)=>{if(i.target&&i.target.is("editableElement"))return void i.preventDefault();if(this._prepareDraggedRange(i.target),!this._draggedRange)return void i.preventDefault();this._draggingUid=y(),i.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",i.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const n=t.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(i.dataTransfer,n,"dragstart");const{dataTransfer:r,domTarget:o,domEvent:s}=i,{clientX:a}=s;this._updatePreview({dataTransfer:r,domTarget:o,clientX:a}),i.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(n,"dragend",((e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)}),{priority:"low"}),this._domEmitter.listenTo(Ui.document,"dragend",(()=>{this._blockMode=!1}),{useCapture:!0}),this.listenTo(n,"dragenter",(()=>{this.isEnabled&&i.focus()})),this.listenTo(n,"dragleave",(()=>{r.removeDropMarkerDelayed()})),this.listenTo(n,"dragging",((e,t)=>{if(!this.isEnabled)return void(t.dataTransfer.dropEffect="none");const{clientX:i,clientY:n}=t.domEvent;r.updateDropMarker(t.target,t.targetRanges,i,n,this._blockMode,this._draggedRange),this._draggedRange||(t.dataTransfer.dropEffect="copy"),d.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,i=e.plugins.get(Rf);this.listenTo(t,"clipboardInput",((t,n)=>{if("drop"!=n.method)return;const{clientX:r,clientY:o}=n.domEvent,s=i.getFinalDropRange(n.target,n.targetRanges,r,o,this._blockMode,this._draggedRange);return s?(this._draggedRange&&this._draggingUid!=n.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==jf(n.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(s,!0)?(this._finalizeDragging(!1),void t.stop()):void(n.targetRanges=[e.editing.mapper.toViewRange(s)])):(this._finalizeDragging(!1),void t.stop())}),{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get($w);e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const i=t.targetRanges.map((e=>this.editor.editing.mapper.toModelRange(e)));this.editor.model.change((e=>e.setSelection(i)))}),{priority:"high"}),e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const i="move"==jf(t.dataTransfer),n=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(n&&i)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,i=t.document;this.listenTo(i,"mousedown",((n,r)=>{if(d.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let o=Hf(r.target);if(d.isBlink&&!e.isReadOnly&&!o&&!i.selection.isCollapsed){const e=i.selection.getSelectedElement();e&&Qw(e)||(o=i.selection.editableElement)}o&&(t.change((e=>{e.setAttribute("draggable","true",o)})),this._draggableElement=e.editing.mapper.toModelElement(o))})),this.listenTo(i,"mouseup",(()=>{d.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,i=t.model;t.plugins.get(Rf).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&&i.change((e=>{const t=i.createSelection(this._draggedRange);i.deleteContent(t,{doNotAutoparagraph:!0});const n=t.getFirstPosition().parent;n.isEmpty&&!i.schema.checkChild(n,"$text")&&i.schema.checkChild(n,"paragraph")&&e.insertElement("paragraph",n,0)})),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(e){const t=this.editor,i=t.model,n=i.document.selection,r=e?Hf(e):null;if(r){const e=t.editing.mapper.toModelElement(r);return this._draggedRange=Wa.fromRange(i.createRangeOn(e)),this._blockMode=i.schema.isBlock(e),void(t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(n.isCollapsed&&!n.getFirstPosition().parent.isEmpty)return;const o=Array.from(n.getSelectedBlocks()),s=n.getFirstRange();if(0==o.length)return void(this._draggedRange=Wa.fromRange(s));const a=Uf(i,o);if(o.length>1)this._draggedRange=Wa.fromRange(a),this._blockMode=!0;else if(1==o.length){const e=s.start.isTouching(a.start)&&s.end.isTouching(a.end);this._draggedRange=Wa.fromRange(e?a:s),this._blockMode=e}i.change((e=>e.setSelection(this._draggedRange.toRange())))}_updatePreview({dataTransfer:e,domTarget:t,clientX:i}){const n=this.editor.editing.view,r=n.document.selection.editableElement,o=n.domConverter.mapViewToDom(r),s=Ui.window.getComputedStyle(o);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=pe(Ui.document,"div",{style:"position: fixed; left: -999999px;"}),Ui.document.body.appendChild(this._previewContainer));const a=new Zi(o);if(o.contains(t))return;const l=parseFloat(s.paddingLeft),c=pe(Ui.document,"div");c.className="ck ck-content",c.style.width=s.width,c.style.paddingLeft=`${a.left-i+l}px`,d.isiOS&&(c.style.backgroundColor="white"),c.innerHTML=e.getData("text/html"),e.setDragImage(c,0,0),this._previewContainer.appendChild(c)}}function jf(e){return d.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function Hf(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(Qw);if(Qw(e))return e;const t=e.findAncestor((e=>Qw(e)||e.is("editableElement")));return Qw(t)?t:null}function Uf(e,t){const i=t[0],n=t[t.length-1],r=i.getCommonAncestor(n),o=e.createPositionBefore(i),s=e.createPositionAfter(n);if(r&&r.is("element")&&!e.schema.isLimit(r)){const t=e.createRangeOn(r),i=o.isTouching(t.start),n=s.isTouching(t.end);if(i&&n)return Uf(e,[r])}return e.createRange(o,s)}class qf extends or{static get pluginName(){return"PastePlainText"}static get requires(){return[$w]}init(){const e=this.editor,t=e.model,i=e.editing.view,n=i.document,r=t.document.selection;let o=!1;i.addObserver(Ow),this.listenTo(n,"keydown",((e,t)=>{o=t.shiftKey})),e.plugins.get($w).on("contentInsertion",((e,i)=>{(o||function(e,t){if(e.childCount>1)return!1;const i=e.getChild(0);return!t.isObject(i)&&0==Array.from(i.getAttributeKeys()).length}(i.content,t.schema))&&t.change((e=>{const n=Array.from(r.getAttributes()).filter((([e])=>t.schema.getAttributeProperties(e).isFormatting));r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0}),n.push(...r.getAttributes());const o=e.createRangeIn(i.content);for(const t of o.getItems())t.is("$textProxy")&&e.setAttributes(n,t)}))}))}}class Wf extends or{static get pluginName(){return"Clipboard"}static get requires(){return[Ww,$w,Ff,qf]}init(){const e=this.editor,t=this.editor.t;e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Copy selected content"),keystroke:"CTRL+C"},{label:t("Paste content"),keystroke:"CTRL+V"},{label:t("Paste content as plain text"),keystroke:"CTRL+SHIFT+V"}]})}}class $f extends ar{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let i=e.schema.getLimitElement(t);if(t.containsEntireContent(i)||!Kf(e.schema,i))do{if(i=i.parent,!i)return}while(!Kf(e.schema,i));e.change((e=>{e.setSelection(i,"in")}))}}function Kf(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const Jf=In("Ctrl+A");class Zf extends or{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.t,i=e.editing.view.document;e.commands.add("selectAll",new $f(e)),this.listenTo(i,"keydown",((t,i)=>{Tn(i)===Jf&&(e.execute("selectAll"),i.preventDefault())})),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Select all"),keystroke:"CTRL+A"}]})}}class Gf extends or{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",(()=>{const e=this._createButton(gh);return e.set({tooltip:!0}),e})),e.ui.componentFactory.add("menuBar:selectAll",(()=>this._createButton(Op)))}_createButton(e){const t=this.editor,i=t.locale,n=t.commands.get("selectAll"),r=new e(t.locale),o=i.t;return r.set({label:o("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"}),r.bind("isEnabled").to(n,"isEnabled"),this.listenTo(r,"execute",(()=>{t.execute("selectAll"),t.editing.view.focus()})),r}}class Yf extends or{static get requires(){return[Zf,Gf]}static get pluginName(){return"SelectAll"}}class Qf extends ar{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(e.data,"set",((e,t)=>{t[1]={...t[1]};const i=t[1];i.batchType||(i.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,i={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:i}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,i){const n=this.editor.model,r=n.document,o=[],s=e.map((e=>e.getTransformedByOperations(i))),a=s.flat();for(const e of s){const t=e.filter((e=>e.root!=r.graveyard)).filter((e=>!ey(e,a)));t.length&&(Xf(t),o.push(t[0]))}o.length&&n.change((e=>{e.setSelection(o,{backward:t})}))}_undo(e,t){const i=this.editor.model,n=i.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,o=Array.from(n.history.getOperations(r)),s=vc([e.getReversed()],o,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let r of s){const o=r.affectedSelectable;o&&!i.canEditAt(o)&&(r=new gc(r.baseVersion)),t.addOperation(r),i.applyOperation(r),n.history.setOperationAsUndone(e,r)}}}}function Xf(e){e.sort(((e,t)=>e.start.isBefore(t.start)?-1:1));for(let t=1;t<e.length;t++){const i=e[t-1].getJoined(e[t],!0);i&&(t--,e.splice(t,2,i))}}function ey(e,t){return t.some((t=>t!==e&&t.containsRange(e,!0)))}class ty extends Qf{execute(e=null){const t=e?this._stack.findIndex((t=>t.batch==e)):this._stack.length-1,i=this._stack.splice(t,1)[0],n=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(n,(()=>{this._undo(i.batch,n);const e=this.editor.model.document.history.getOperations(i.batch.baseVersion);this._restoreSelection(i.selection.ranges,i.selection.isBackward,e)})),this.fire("revert",i.batch,n),this.refresh()}}class iy extends Qf{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,(()=>{const i=e.batch.operations[e.batch.operations.length-1].baseVersion+1,n=this.editor.model.document.history.getOperations(i);this._restoreSelection(e.selection.ranges,e.selection.isBackward,n),this._undo(e.batch,t)})),this.refresh()}}class ny extends or{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const e=this.editor,t=e.t;this._undoCommand=new ty(e),this._redoCommand=new iy(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",((e,t)=>{const i=t[0];if(!i.isDocumentOperation)return;const n=i.batch,r=this._redoCommand.createdBatches.has(n),o=this._undoCommand.createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(r?this._undoCommand.addBatch(n):o||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((e,t,i)=>{this._redoCommand.addBatch(i)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo"),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Undo"),keystroke:"CTRL+Z"},{label:t("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class ry extends or{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,i=e.t,n="ltr"==t.uiLanguageDirection?xd.undo:xd.redo,r="ltr"==t.uiLanguageDirection?xd.redo:xd.undo;this._addButtonsToFactory("undo",i("Undo"),"CTRL+Z",n),this._addButtonsToFactory("redo",i("Redo"),"CTRL+Y",r)}_addButtonsToFactory(e,t,i,n){const r=this.editor;r.ui.componentFactory.add(e,(()=>{const r=this._createButton(gh,e,t,i,n);return r.set({tooltip:!0}),r})),r.ui.componentFactory.add("menuBar:"+e,(()=>this._createButton(Op,e,t,i,n)))}_createButton(e,t,i,n,r){const o=this.editor,s=o.locale,a=o.commands.get(t),l=new e(s);return l.set({label:i,icon:r,keystroke:n}),l.bind("isEnabled").to(a,"isEnabled"),this.listenTo(l,"execute",(()=>{o.execute(t),o.editing.view.focus()})),l}}class oy extends or{static get requires(){return[ny,ry]}static get pluginName(){return"Undo"}}class sy extends ar{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){const e=this.editor.model,t=Gn(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&ay(t,e.schema)}execute(e={}){const t=this.editor.model,i=t.document,n=e.selection||i.selection;t.canEditAt(n)&&t.change((e=>{const i=n.getSelectedBlocks();for(const n of i)!n.is("element","paragraph")&&ay(n,t.schema)&&e.rename(n,"paragraph")}))}}function ay(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class ly extends ar{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){const t=this.editor.model,i=e.attributes;let n=e.position;t.canEditAt(n)&&t.change((e=>{if(n=this._findPositionToInsertParagraph(n,e),!n)return;const r=e.createElement("paragraph");i&&t.schema.setAllowedAttributes(r,i,e),t.insertContent(r,n),e.setSelection(r,"in")}))}_findPositionToInsertParagraph(e,t){const i=this.editor.model;if(i.schema.checkChild(e,"paragraph"))return e;const n=i.schema.findAllowedParent(e,"paragraph");if(!n)return null;const r=e.parent,o=i.schema.checkChild(r,"$text");return r.isEmpty||o&&e.isAtEnd?i.createPositionAfter(r):!r.isEmpty&&o&&e.isAtStart?i.createPositionBefore(r):t.split(e,n).position}}class cy extends or{static get pluginName(){return"Paragraph"}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new sy(e)),e.commands.add("insertParagraph",new ly(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>cy.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}cy.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);const dy=cy;class hy extends ar{constructor(e,t){super(e),this.modelElements=t}refresh(){const e=Gn(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some((t=>gy(e,t,this.editor.model.schema)))}execute(e){const t=this.editor.model,i=t.document,n=e.value;t.change((e=>{const r=Array.from(i.selection.getSelectedBlocks()).filter((e=>gy(e,n,t.schema)));for(const t of r)t.is("element",n)||e.rename(t,n)}))}}function gy(e,t,i){return i.checkChild(e.parent,t)&&!i.isObject(e)}const uy="paragraph";class py extends or{static get pluginName(){return"HeadingEditing"}constructor(e){super(e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[dy]}init(){const e=this.editor,t=e.config.get("heading.options"),i=[];for(const n of t)"paragraph"!==n.model&&(e.model.schema.register(n.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(n),i.push(n.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new hy(e,i))}afterInit(){const e=this.editor,t=e.commands.get("enter"),i=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",((t,n)=>{const r=e.model.document.selection.getFirstPosition().parent;i.some((e=>r.is("element",e.model)))&&!r.is("element",uy)&&0===r.childCount&&n.writer.rename(r,uy)}))}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:b.low+1})}}var my=a(2433),wy={attributes:{"data-cke":!0}};wy.setAttributes=br(),wy.insert=fr().bind(null,"head"),wy.domAPI=mr(),wy.insertStyleElement=_r(),ur()(my.A,wy),my.A&&my.A.locals&&my.A.locals;class fy extends or{static get pluginName(){return"HeadingUI"}init(){const e=this.editor,t=e.t,i=function(e){const t=e.t,i={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((e=>{const t=i[e.title];return t&&t!=e.title&&(e.title=t),e}))}(e),n=t("Choose heading"),r=t("Heading");e.ui.componentFactory.add("heading",(t=>{const o={},s=new Zn,a=e.commands.get("heading"),l=e.commands.get("paragraph"),c=[a];for(const e of i){const t={type:"button",model:new Au({label:e.title,class:e.class,role:"menuitemradio",withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(l,"value"),t.model.set("commandName","paragraph"),c.push(l)):(t.model.bind("isOn").to(a,"value",(t=>t===e.model)),t.model.set({commandName:"heading",commandValue:e.model})),s.add(t),o[e.model]=e.title}const d=ug(t);return wg(d,s,{ariaLabel:r,role:"menu"}),d.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(c,"isEnabled",((...e)=>e.some((e=>e)))),d.buttonView.bind("label").to(a,"value",l,"value",((e,t)=>{const i=t?"paragraph":e;return"boolean"==typeof i?n:o[i]?o[i]:n})),d.buttonView.bind("ariaLabel").to(a,"value",l,"value",((e,t)=>{const i=t?"paragraph":e;return"boolean"==typeof i?r:o[i]?`${o[i]}, ${r}`:r})),this.listenTo(d,"execute",(t=>{const{commandName:i,commandValue:n}=t.source;e.execute(i,n?{value:n}:void 0),e.editing.view.focus()})),d})),e.ui.componentFactory.add("menuBar:heading",(n=>{const r=new Ip(n),o=e.commands.get("heading"),s=e.commands.get("paragraph"),a=[o],l=new Sp(n);r.set({class:"ck-heading-dropdown"}),l.set({ariaLabel:t("Heading"),role:"menu"}),r.buttonView.set({label:t("Heading")}),r.panelView.children.add(l);for(const t of i){const i=new sp(n,r),c=new Op(n);i.children.add(c),l.items.add(i),c.set({label:t.title,role:"menuitemradio",class:t.class}),c.bind("ariaChecked").to(c,"isOn"),c.delegate("execute").to(r),c.on("execute",(()=>{const i="paragraph"===t.model?"paragraph":"heading";e.execute(i,{value:t.model}),e.editing.view.focus()})),"paragraph"===t.model?(c.bind("isOn").to(s,"value"),a.push(s)):c.bind("isOn").to(o,"value",(e=>e===t.model))}return r.bind("isEnabled").toMany(a,"isEnabled",((...e)=>e.some((e=>e)))),r}))}}function yy(e){return e.createContainerElement("figure",{class:"image"},[e.createEmptyElement("img"),e.createSlot("children")])}function by(e,t){const i=e.plugins.get("ImageUtils"),n=e.plugins.has("ImageInlineEditing")&&e.plugins.has("ImageBlockEditing");return e=>i.isInlineImageView(e)?n&&("block"==e.getStyle("display")||e.findAncestor(i.isBlockImageView)?"imageBlock":"imageInline")!==t?null:r(e):null;function r(e){const t={name:!0};return e.hasAttribute("src")&&(t.attributes=["src"]),t}}function ky(e,t){const i=Gn(t.getSelectedBlocks());return!i||e.isObject(i)||i.isEmpty&&"listItem"!=i.name?"imageBlock":"imageInline"}function _y(e){return e&&e.endsWith("px")?parseInt(e):null}function vy(e){const t=_y(e.getStyle("width")),i=_y(e.getStyle("height"));return!(!t||!i)}const xy=/^(image|image-inline)$/;class Ay extends or{constructor(){super(...arguments),this._domEmitter=new(Di())}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 r=this.editor,o=r.model,s=o.document.selection,a=Ey(r,t||s,i);e={...Object.fromEntries(s.getAttributes()),...e};for(const t in e)o.schema.checkAttribute(a,t)||delete e[t];return o.change((i=>{const{setImageSizes:r=!0}=n,s=i.createElement(a,e);return o.insertObject(s,t,null,{setSelection:"on",findOptimalPosition:t||"imageInline"==a?void 0:"auto"}),s.parent?(r&&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 Ui.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:xy})}isImageAllowed(){const e=this.editor.model.document.selection;return function(e,t){if("imageBlock"==Ey(e,t,null)){const i=function(e,t){const i=function(e,t){const i=e.getSelectedElement();if(i){const n=sf(e);if(n)return t.createRange(t.createPositionAt(i,n))}return t.schema.findOptimalInsertionRange(e)}(e,t),n=i.start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent: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){return t.setCustomProperty("image",!0,e),function(e,t,i={}){if(!e.is("containerElement"))throw new _("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=nf,t.setCustomProperty("widgetLabel",[],e),i.label&&function(e,t){e.getCustomProperty("widgetLabel").push(t)}(e,i.label),i.hasSelectionHandle&&function(e,t){const i=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){const t=this.toDomElement(e),i=new lh;return i.set("content",'<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>'),i.render(),t.appendChild(i.element),t}));t.insert(t.createPositionAt(e,0),i),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),tf(e,t),e}(e,t,{label:()=>{const t=this.findViewImgElement(e).getAttribute("alt");return t?`${t} ${i}`:i}})}isImageWidget(e){return!!e.getCustomProperty("image")&&Qw(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 Ey(e,t,i){const n=e.model.schema,r=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?i||("inline"===r?"imageInline":"auto"!==r?"imageBlock":t.is("selection")?ky(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class Cy extends ar{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,r=i.getClosestSelectedImageElement(n.document.selection);n.change((t=>{t.setAttribute("alt",e.newValue,r)}))}}class Ty extends or{static get requires(){return[Ay]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Cy(this.editor))}}var Iy=a(7554),Sy={attributes:{"data-cke":!0}};Sy.setAttributes=br(),Sy.insert=fr().bind(null,"head"),Sy.domAPI=mr(),Sy.insertStyleElement=_r(),ur()(Iy.A,Sy),Iy.A&&Iy.A.locals&&Iy.A.locals;var Py=a(5526),Ry={attributes:{"data-cke":!0}};Ry.setAttributes=br(),Ry.insert=fr().bind(null,"head"),Ry.domAPI=mr(),Ry.insertStyleElement=_r(),ur()(Py.A,Ry),Py.A&&Py.A.locals&&Py.A.locals;class Oy extends Jd{constructor(e){super(e);const t=this.locale.t;this.focusTracker=new Yn,this.keystrokes=new Qn,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(t("Save"),xd.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),xd.cancel,"ck-button-cancel","cancel"),this._focusables=new Ad,this._focusCycler=new Fh({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),o({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 r=new gh(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:i}}),n&&r.delegate("execute").to(this,n),r}_createLabeledInputView(){const e=this.locale.t,t=new Ch(this.locale,kg);return t.label=e("Text alternative"),t}}function My(e){const t=e.editing.view,i=Jg.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 By extends or{static get requires(){return[Pu]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",(i=>{const n=e.commands.get("imageTextAlternative"),r=new gh(i);return r.set({label:t("Change image text alternative"),icon:xd.textAlternative,tooltip:!0}),r.bind("isEnabled").to(n,"isEnabled"),r.bind("isOn").to(n,"value",(e=>!!e)),this.listenTo(r,"execute",(()=>{this._showForm()})),r}))}_createForm(){const e=this.editor,i=e.editing.view.document,n=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(r(Oy))(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",(()=>{n.getClosestSelectedImageWidget(i.selection)?this._isVisible&&function(e){const t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){const i=My(e);t.updatePosition(i)}}(e):this._hideForm(!0)})),t({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:My(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 Vy extends or{static get requires(){return[Ty,By]}static get pluginName(){return"ImageTextAlternative"}}function zy(e,t){const i=(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const r=n.writer,o=n.mapper.toViewElement(i.item),s=e.findViewImgElement(o);null===i.attributeNewValue?(r.removeAttribute("srcset",s),r.removeAttribute("sizes",s)):i.attributeNewValue&&(r.setAttribute("srcset",i.attributeNewValue,s),r.setAttribute("sizes","100vw",s))};return e=>{e.on(`attribute:srcset:${t}`,i)}}function Ny(e,t,i){const n=(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const r=n.writer,o=n.mapper.toViewElement(i.item),s=e.findViewImgElement(o);r.setAttribute(i.attributeKey,i.attributeNewValue||"",s)};return e=>{e.on(`attribute:${i}:${t}`,n)}}class Ly extends As{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 Dy extends ar{constructor(e){super(e);const t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||"block"===t&&v("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===t&&v("image-inline-plugin-required")}refresh(){const e=this.editor.plugins.get("ImageUtils");this.isEnabled=e.isImageAllowed()}execute(e){const t=Rn(e.source),i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(i.getAttributes());t.forEach(((e,t)=>{const o=i.getSelectedElement();if("string"==typeof e&&(e={src:e}),t&&o&&n.isImage(o)){const t=this.editor.model.createPositionAfter(o);n.insertImage({...e,...r},t)}else n.insertImage({...e,...r})}))}}class Fy extends ar{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 jy extends or{static get requires(){return[Ay]}static get pluginName(){return"ImageEditing"}init(){const e=this.editor,t=e.conversion;e.editing.view.addObserver(Ly),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const i=new Dy(e),n=new Fy(e);e.commands.add("insertImage",i),e.commands.add("replaceImageSource",n),e.commands.add("imageInsert",i)}}class Hy extends or{static get requires(){return[Ay]}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 r(t,n,r,o){t.on(`attribute:${n}:${e}`,((t,n,s)=>{if(!s.consumable.consume(n.item,t.name))return;const a=s.writer,l=s.mapper.toViewElement(n.item),c=i.findViewImgElement(l);if(null!==n.attributeNewValue?a.setAttribute(r,n.attributeNewValue,c):a.removeAttribute(r,c),n.item.hasAttribute("sources"))return;const d=n.item.hasAttribute("resizedWidth");if("imageInline"===e&&!d&&!o)return;const h=n.item.getAttribute("width"),g=n.item.getAttribute("height");h&&g&&a.setStyle("aspect-ratio",`${h}/${g}`,c)}))}t.conversion.for("upcast").attributeToAttribute({view:{name:n,styles:{width:/.+/}},model:{key:"width",value:e=>vy(e)?_y(e.getStyle("width")):null}}).attributeToAttribute({view:{name:n,key:"width"},model:"width"}).attributeToAttribute({view:{name:n,styles:{height:/.+/}},model:{key:"height",value:e=>vy(e)?_y(e.getStyle("height")):null}}).attributeToAttribute({view:{name:n,key:"height"},model:"height"}),t.conversion.for("editingDowncast").add((e=>{r(e,"width","width",!0),r(e,"height","height",!0)})),t.conversion.for("dataDowncast").add((e=>{r(e,"width","width",!1),r(e,"height","height",!1)}))}}class Uy extends ar{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"),r=n.getClosestSelectedImageElement(i.document.selection),o=Object.fromEntries(r.getAttributes());return o.src||o.uploadId?i.change((t=>{const{setImageSizes:s=!0}=e,a=Array.from(i.markers).filter((e=>e.getRange().containsItem(r))),l=n.insertImage(o,i.createSelection(r,"on"),this._modelElementName,{setImageSizes:s});if(!l)return null;const c=t.createRangeOn(l);for(const e of a){const i=e.getRange(),n="$graveyard"!=i.root.rootName?i.getJoined(c,!0):c;t.updateMarker(e,{range:n})}return{oldElement:r,newElement:l}})):null}}var qy=a(6414),Wy={attributes:{"data-cke":!0}};Wy.setAttributes=br(),Wy.insert=fr().bind(null,"head"),Wy.domAPI=mr(),Wy.insertStyleElement=_r(),ur()(qy.A,Wy),qy.A&&qy.A.locals&&qy.A.locals;class $y extends or{static get requires(){return[Ay]}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 r=n.writer,o=n.mapper.toViewElement(t.item),s=i.findViewImgElement(o);t.attributeNewValue?(r.addClass("image_placeholder",s),r.setStyle("background-image",`url(${t.attributeNewValue})`,s),r.setCustomProperty("editingPipeline:doNotReuseOnce",!0,s)):(r.removeClass("image_placeholder",s),r.removeStyle("background-image",s))}))}))}_setupLoadListener(){const e=this.editor,t=e.model,i=e.editing,n=i.view,r=e.plugins.get("ImageUtils");n.addObserver(Ly),this.listenTo(n.document,"imageLoaded",((e,o)=>{const s=n.domConverter.mapDomToView(o.target);if(!s)return;const a=r.getImageWidgetFromImageView(s);if(!a)return;const l=i.mapper.toModelElement(a);l&&l.hasAttribute("placeholder")&&t.enqueueChange({isUndoable:!1},(e=>{e.removeAttribute("placeholder",l)}))}))}}class Ky extends or{static get requires(){return[jy,Hy,Ay,$y,$w]}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 Uy(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})=>yy(t)}),i.for("editingDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:i})=>n.toImageWidget(yy(i),i,t("image widget"))}),i.for("downcast").add(Ny(n,"imageBlock","src")).add(Ny(n,"imageBlock","alt")).add(zy(n,"imageBlock")),i.for("upcast").elementToElement({view:by(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 r=e.findViewImgElement(i.viewItem);if(!r||!n.consumable.test(r,{name:!0}))return;n.consumable.consume(i.viewItem,{name:!0,classes:"image"});const o=Gn(n.convertItem(r,i.modelCursor).modelRange.getItems());o?(n.convertChildren(i.viewItem,o),n.updateConversionResult(o,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"),r=e.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",((r,o)=>{const s=Array.from(o.content.getChildren());let a;if(!s.every(n.isInlineImageView))return;a=o.targetRanges?e.editing.mapper.toModelRange(o.targetRanges[0]):t.document.selection.getFirstRange();const l=t.createSelection(a);if("imageBlock"===ky(t.schema,l)){const e=new pd(i.document),t=s.map((t=>e.createElement("figure",{class:"image"},t)));o.content=e.createDocumentFragment(t)}})),this.listenTo(r,"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 Jy=a(1842),Zy={attributes:{"data-cke":!0}};Zy.setAttributes=br(),Zy.insert=fr().bind(null,"head"),Zy.domAPI=mr(),Zy.insertStyleElement=_r(),ur()(Jy.A,Zy),Jy.A&&Jy.A.locals&&Jy.A.locals;class Gy extends Jd{constructor(e,t=[]){super(e),this.focusTracker=new Yn,this.keystrokes=new Qn,this._focusables=new Ad,this.children=this.createCollection(),this._focusCycler=new Fh({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 _h&&this._focusables.addMany(e.children);if(this._focusables.length>1)for(const e of this._focusables)Yy(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(),o({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 Yy(e){return"focusCycler"in e}class Qy extends or{static get pluginName(){return"ImageInsertUI"}static get requires(){return[Ay]}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:r}){this._integrations.has(e)&&v("image-insert-integration-exists",{name:e}),this._integrations.set(e,{observable:t,buttonViewCreator:i,formViewCreator:n,requiresForm:!!r})}_createToolbarComponent(e){const t=this.editor,i=e.t,n=this._prepareIntegrations();if(!n.length)return null;let r;const o=n[0];if(1==n.length){if(!o.requiresForm)return o.buttonViewCreator(!0);r=o.buttonViewCreator(!0)}else{const t=o.buttonViewCreator(!1);r=new lg(e,t),r.tooltip=!0,r.bind("label").to(this,"isImageSelected",(e=>i(e?"Replace image":"Insert image")))}const s=this.dropdownView=ug(e,r),a=n.map((({observable:e})=>"function"==typeof e?e():e));return s.bind("isEnabled").toMany(a,"isEnabled",((...e)=>e.some((e=>e)))),s.once("change:isOpen",(()=>{const e=n.map((({formViewCreator:e})=>e(1==n.length))),i=new Gy(t.locale,e);s.panelView.children.add(i)})),s}_prepareIntegrations(){const e=this.editor.config.get("image.insert.integrations"),t=[];if(!e.length)return v("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)||v("image-insert-unknown-integration",{item:i});return t.length||v("image-insert-integrations-not-registered"),t}}var Xy=a(2221),eb={attributes:{"data-cke":!0}};eb.setAttributes=br(),eb.insert=fr().bind(null,"head"),eb.domAPI=mr(),eb.insertStyleElement=_r(),ur()(Xy.A,eb),Xy.A&&Xy.A.locals&&Xy.A.locals;class tb extends or{static get requires(){return[Ky,ff,Vy,Qy]}static get pluginName(){return"ImageBlock"}}class ib extends or{static get requires(){return[jy,Hy,Ay,$y,$w]}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 Uy(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(Ny(n,"imageInline","src")).add(Ny(n,"imageInline","alt")).add(zy(n,"imageInline")),i.for("upcast").elementToElement({view:by(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"),r=e.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",((r,o)=>{const s=Array.from(o.content.getChildren());let a;if(!s.every(n.isBlockImageView))return;a=o.targetRanges?e.editing.mapper.toModelRange(o.targetRanges[0]):t.document.selection.getFirstRange();const l=t.createSelection(a);if("imageInline"===ky(t.schema,l)){const e=new pd(i.document),t=s.map((t=>1===t.childCount?(Array.from(t.getAttributes()).forEach((i=>e.setAttribute(...i,n.findViewImgElement(t)))),t.getChild(0)):t));o.content=e.createDocumentFragment(t)}})),this.listenTo(r,"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 nb extends or{static get requires(){return[ib,ff,Vy,Qy]}static get pluginName(){return"ImageInline"}}class rb extends or{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Ay]}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 ob extends ar{refresh(){const e=this.editor,t=e.plugins.get("ImageCaptionUtils"),i=e.plugins.get("ImageUtils");if(!e.plugins.has(Ky))return this.isEnabled=!1,void(this.value=!1);const n=e.model.document.selection,r=n.getSelectedElement();if(!r){const e=t.getCaptionFromModelSelection(n);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=i.isImage(r),this.isEnabled?this.value=!!t.getCaptionFromImageModelElement(r):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"),r=this.editor.plugins.get("ImageUtils");let o=i.getSelectedElement();const s=n._getSavedCaption(o);r.isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=i.getSelectedElement());const a=s||e.createElement("caption");e.append(a,o),t&&e.setSelection(a,"in")}_hideImageCaption(e){const t=this.editor,i=t.model.document.selection,n=t.plugins.get("ImageCaptionEditing"),r=t.plugins.get("ImageCaptionUtils");let o,s=i.getSelectedElement();s?o=r.getCaptionFromImageModelElement(s):(o=r.getCaptionFromModelSelection(i),s=o.parent),n._saveCaption(s,o),e.setSelection(s,"on"),e.remove(o)}}class sb extends or{static get requires(){return[Ay,rb]}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 ob(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"),r=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 o=n.createEditableElement("figcaption");n.setCustomProperty("imageCaption",!0,o),o.placeholder=r("Enter image caption"),Cr({view:t,element:o,keepOnFocus:!0});const s=e.parent.getAttribute("alt");return function(e,t,i={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("role","textbox",e),t.setAttribute("tabindex","-1",e),i.label&&t.setAttribute("aria-label",i.label,e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",((i,n,r)=>{t.setAttribute("contenteditable",r?"false":"true",e)})),e.on("change:isFocused",((i,n,r)=>{r?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),tf(e,t),e}(o,n,{label:s?r("Caption for image: %0",[s]):r("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),i=e.plugins.get("ImageCaptionUtils"),n=e.commands.get("imageTypeInline"),r=e.commands.get("imageTypeBlock"),o=e=>{if(!e.return)return;const{oldElement:n,newElement:r}=e.return;if(!n)return;if(t.isBlockImage(n)){const e=i.getCaptionFromImageModelElement(n);if(e)return void this._saveCaption(r,e)}const o=this._getSavedCaption(n);o&&this._saveCaption(r,o)};n&&this.listenTo(n,"execute",o,{priority:"low"}),r&&this.listenTo(r,"execute",o,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?va.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 r=t.document.differ.getChanges();for(const t of r){if("alt"!==t.attributeKey)continue;const r=t.range.start.nodeAfter;if(i.isBlockImage(r)){const t=n.getCaptionFromImageModelElement(r);if(!t)return;e.editing.reconvertItem(t)}}}))}}class ab extends or{static get requires(){return[rb]}static get pluginName(){return"ImageCaptionUI"}init(){const e=this.editor,t=e.editing.view,i=e.plugins.get("ImageCaptionUtils"),n=e.t;e.ui.componentFactory.add("toggleImageCaption",(r=>{const o=e.commands.get("toggleImageCaption"),s=new gh(r);return s.set({icon:xd.caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(o,"value","isEnabled"),s.bind("label").to(o,"value",(e=>n(e?"Toggle caption off":"Toggle caption on"))),this.listenTo(s,"execute",(()=>{e.execute("toggleImageCaption",{focusCaptionOnShow:!0});const n=i.getCaptionFromModelSelection(e.model.document.selection);if(n){const i=e.editing.mapper.toViewElement(n);t.scrollToTheSelection(),t.change((e=>{e.addClass("image__caption_highlighted",i)}))}e.editing.view.focus()})),s}))}}var lb=a(7075),cb={attributes:{"data-cke":!0}};function db(e){const t=e.map((e=>e.replace("+","\\+")));return new RegExp(`^image\\/(${t.join("|")})$`)}function hb(e){return new Promise(((t,i)=>{const n=e.getAttribute("src");fetch(n).then((e=>e.blob())).then((e=>{const i=gb(e,n),r=i.replace("image/",""),o=new File([e],`image.${r}`,{type:i});t(o)})).catch((e=>e&&"TypeError"===e.name?function(e){return function(e){return new Promise(((t,i)=>{const n=Ui.document.createElement("img");n.addEventListener("load",(()=>{const e=Ui.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=gb(t,e),n=i.replace("image/","");return new File([t],`image.${n}`,{type:i})}))}(n).then(t).catch(i):i(e)))}))}function gb(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}cb.setAttributes=br(),cb.insert=fr().bind(null,"head"),cb.domAPI=mr(),cb.insertStyleElement=_r(),ur()(lb.A,cb),lb.A&&lb.A.locals&&lb.A.locals;class ub extends or{static get pluginName(){return"ImageUploadUI"}init(){const e=this.editor,t=e.t,i=()=>{const e=this._createButton(wh);return e.set({label:t("Upload image from computer"),tooltip:!0}),e};if(e.ui.componentFactory.add("uploadImage",i),e.ui.componentFactory.add("imageUpload",i),e.ui.componentFactory.add("menuBar:uploadImage",(()=>{const e=this._createButton(Mp);return e.label=t("Image from computer"),e})),e.plugins.has("ImageInsertUI")){const i=e.plugins.get("ImageInsertUI");i.registerIntegration({name:"upload",observable:()=>e.commands.get("uploadImage"),buttonViewCreator:()=>{const n=e.ui.componentFactory.create("uploadImage");return n.bind("label").to(i,"isImageSelected",(e=>t(e?"Replace image from computer":"Upload image from computer"))),n},formViewCreator:()=>{const n=e.ui.componentFactory.create("uploadImage");return n.withText=!0,n.bind("label").to(i,"isImageSelected",(e=>t(e?"Replace from computer":"Upload from computer"))),n.on("execute",(()=>{i.dropdownView.isOpen=!1})),n}})}}_createButton(e){const t=this.editor,i=t.locale,n=t.commands.get("uploadImage"),r=t.config.get("image.upload.types"),o=db(r),s=new e(t.locale),a=i.t;return s.set({acceptedType:r.map((e=>`image/${e}`)).join(","),allowMultipleFiles:!0,label:a("Upload image from computer"),icon:xd.imageUpload}),s.bind("isEnabled").to(n),s.on("done",((e,i)=>{const n=Array.from(i).filter((e=>o.test(e.type)));n.length&&(t.execute("uploadImage",{file:n}),t.editing.view.focus())})),s}}class pb extends(q()){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(((i,n)=>{t.onload=()=>{const e=t.result;this._data=e,i(e)},t.onerror=()=>{n("error")},t.onabort=()=>{n("aborted")},this._reader.readAsDataURL(e)}))}abort(){this._reader.abort()}}class mb extends or{constructor(){super(...arguments),this.loaders=new Zn,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[vd]}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 v("filerepository-no-upload-adapter"),null;const t=new wb(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 wb?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach(((e,i)=>{e===t&&this._loadersMap.delete(i)}))}_updatePendingAction(){const e=this.editor.plugins.get(vd);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,i=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(i(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",i)}}else e.remove(this._pendingAction),this._pendingAction=null}}class wb extends(q()){constructor(e,t){super(),this.id=y(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new pb,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 _("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 _("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(((i,n)=>{t.rejecter=n,t.isFulfilled=!1,e.then((e=>{t.isFulfilled=!0,i(e)})).catch((e=>{t.isFulfilled=!0,n(e)}))})),t}}var fb=a(1255),yb={attributes:{"data-cke":!0}};yb.setAttributes=br(),yb.insert=fr().bind(null,"head"),yb.domAPI=mr(),yb.insertStyleElement=_r(),ur()(fb.A,yb),fb.A&&fb.A.locals&&fb.A.locals;var bb=a(1217),kb={attributes:{"data-cke":!0}};kb.setAttributes=br(),kb.insert=fr().bind(null,"head"),kb.domAPI=mr(),kb.insertStyleElement=_r(),ur()(bb.A,kb),bb.A&&bb.A.locals&&bb.A.locals;var _b=a(40),vb={attributes:{"data-cke":!0}};vb.setAttributes=br(),vb.insert=fr().bind(null,"head"),vb.domAPI=mr(),vb.insertStyleElement=_r(),ur()(_b.A,vb),_b.A&&_b.A.locals&&_b.A.locals;class xb extends or{static get pluginName(){return"ImageUploadProgress"}constructor(e){super(e),this.uploadStatusChange=(e,t,i)=>{const n=this.editor,r=t.item,o=r.getAttribute("uploadId");if(!i.consumable.consume(t.item,e.name))return;const s=n.plugins.get("ImageUtils"),a=n.plugins.get(mb),l=o?t.attributeNewValue:null,c=this.placeholder,d=n.editing.mapper.toViewElement(r),h=i.writer;if("reading"==l)return Ab(d,h),void Eb(s,c,d,h);if("uploading"==l){const e=a.loaders.get(o);return Ab(d,h),void(e?(Cb(d,h),function(e,t,i,n){const r=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"),r),i.on("change:uploadedPercent",((e,t,i)=>{n.change((e=>{e.setStyle("width",i+"%",r)}))}))}(d,h,e,n.editing.view),function(e,t,i,n){if(n.data){const r=e.findViewImgElement(t);i.setAttribute("src",n.data,r)}}(s,d,h,e)):Eb(s,c,d,h))}"complete"==l&&a.loaders.get(o)&&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)}(d,h,n.editing.view),function(e,t){Ib(e,t,"progressBar")}(d,h),Cb(d,h),function(e,t){t.removeClass("ck-appear",e)}(d,h)},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 Ab(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function Eb(e,t,i,n){i.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",i);const r=e.findViewImgElement(i);r.getAttribute("src")!==t&&n.setAttribute("src",t,r),Tb(i,"placeholder")||n.insert(n.createPositionAfter(r),function(e){const t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function Cb(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Ib(e,t,"placeholder")}function Tb(e,t){for(const i of e.getChildren())if(i.getCustomProperty(t))return i}function Ib(e,t,i){const n=Tb(e,i);n&&t.remove(t.createRangeOn(n))}class Sb extends ar{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=Rn(e.file),i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(i.getAttributes());t.forEach(((e,t)=>{const o=i.getSelectedElement();if(t&&o&&n.isImage(o)){const t=this.editor.model.createPositionAfter(o);this._uploadImage(e,r,t)}else this._uploadImage(e,r)}))}_uploadImage(e,t,i){const n=this.editor,r=n.plugins.get(mb).createLoader(e),o=n.plugins.get("ImageUtils");r&&o.insertImage({...t,uploadId:r.id},i)}}class Pb extends or{static get requires(){return[mb,xu,$w,Ay]}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(mb),r=e.plugins.get("ImageUtils"),o=e.plugins.get("ClipboardPipeline"),s=db(e.config.get("image.upload.types")),a=new Sb(e);e.commands.add("uploadImage",a),e.commands.add("imageUpload",a),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 r=Array.from(i.dataTransfer.files).filter((e=>!!e&&s.test(e.type)));r.length&&(t.stop(),e.model.change((t=>{i.targetRanges&&t.setSelection(i.targetRanges.map((t=>e.editing.mapper.toModelRange(t)))),e.execute("uploadImage",{file:r})})))})),this.listenTo(o,"inputTransformation",((t,i)=>{const o=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))}(r,e)&&!e.getAttribute("uploadProcessed"))).map((e=>({promise:hb(e),imageElement:e})));if(!o.length)return;const s=new pd(e.editing.view.document);for(const e of o){s.setAttribute("uploadProcessed",!0,e.imageElement);const t=n.createLoader(e.promise);t&&(s.setAttribute("src","",e.imageElement),s.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(),r=new Set;for(const t of i)if("insert"==t.type&&"$text"!=t.name){const i=t.position.nodeAfter,o="$graveyard"==t.position.root.rootName;for(const t of Rb(e,i)){const e=t.getAttribute("uploadId");if(!e)continue;const i=n.loaders.get(e);i&&(o?r.has(e)||i.abort():(r.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),r.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,r=t.plugins.get(mb),o=t.plugins.get(xu),s=t.plugins.get("ImageUtils"),a=this._uploadImageElements;return i.enqueueChange({isUndoable:!1},(t=>{t.setAttribute("uploadStatus","reading",a.get(e.id))})),e.read().then((()=>{const n=e.upload(),r=a.get(e.id);if(d.isSafari){const e=t.editing.mapper.toViewElement(r),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",r)})),n})).then((t=>{i.enqueueChange({isUndoable:!1},(i=>{const n=a.get(e.id);i.setAttribute("uploadStatus","complete",n),this.fire("uploadComplete",{data:t,imageElement:n})})),l()})).catch((t=>{if("error"!==e.status&&"aborted"!==e.status)throw t;"error"==e.status&&t&&o.showWarning(t,{title:n("Upload failed"),namespace:"upload"}),i.enqueueChange({isUndoable:!1},(t=>{t.remove(a.get(e.id))})),l()}));function l(){i.enqueueChange({isUndoable:!1},(t=>{const i=a.get(e.id);t.removeAttribute("uploadId",i),t.removeAttribute("uploadStatus",i),a.delete(e.id)})),r.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,i){let n=0;const r=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(""!=r){const e={srcset:r};t.hasAttribute("width")||t.hasAttribute("height")||(e.width=n),i.setAttributes(e,t)}}}function Rb(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 Ob extends ar{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"),r=n.getClosestSelectedImageElement(i.document.selection);this.value={width:e.width,height:null},r&&i.change((t=>{t.setAttribute("resizedWidth",e.width,r),t.removeAttribute("resizedHeight",r),n.setImageNaturalSizeAttributes(r)}))}}class Mb extends or{static get requires(){return[Ay]}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 Ob(e);this._registerConverters("imageBlock"),this._registerConverters("imageInline"),e.commands.add("resizeImage",t),e.commands.add("imageResize",t)}afterInit(){this._registerSchema()}_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,r=i.mapper.toViewElement(t.item);null!==t.attributeNewValue?(n.setStyle("width",t.attributeNewValue,r),n.addClass("image_resized",r)):(n.removeStyle("width",r),n.removeClass("image_resized",r))})))),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,r)=>{if(!r.consumable.consume(n.item,t.name))return;const o=r.writer,s=r.mapper.toViewElement(n.item),a="imageInline"===e?i.findViewImgElement(s):s;null!==n.attributeNewValue?o.setStyle("height",n.attributeNewValue,a):o.removeStyle("height",a)})))),t.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===e?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:e=>vy(e)?null:e.getStyle("width")}}),t.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===e?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:e=>vy(e)?null:e.getStyle("height")}})}}const Bb={small:xd.objectSizeSmall,medium:xd.objectSizeMedium,large:xd.objectSizeLarge,original:xd.objectSizeFull};class Vb extends or{static get requires(){return[Mb]}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:r}=e,o=n?n+this._resizeUnit:null;t.ui.componentFactory.add(i,(i=>{const n=new gh(i),s=t.commands.get("resizeImage"),a=this._getOptionLabelValue(e,!0);if(!Bb[r])throw new _("imageresizebuttons-missing-icon",t,e);return n.set({label:a,icon:Bb[r],tooltip:a,isToggleable:!0}),n.bind("isEnabled").to(this),n.bind("isOn").to(s,"value",zb(o)),this.listenTo(n,"execute",(()=>{t.execute("resizeImage",{width:o})})),n}))}_registerImageResizeDropdown(e){const t=this.editor,i=t.t,n=e.find((e=>!e.value)),r=r=>{const o=t.commands.get("resizeImage"),s=ug(r,Dh),a=s.buttonView,l=i("Resize image");return a.set({tooltip:l,commandValue:n.value,icon:Bb.medium,isToggleable:!0,label:this._getOptionLabelValue(n),withText:!0,class:"ck-resize-image-button",ariaLabel:l,ariaLabelledBy:void 0}),a.bind("label").to(o,"value",(e=>e&&e.width?e.width:this._getOptionLabelValue(n))),s.bind("isEnabled").to(this),wg(s,(()=>this._getResizeDropdownListItemDefinitions(e,o)),{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",r),t.ui.componentFactory.add("imageResize",r)}_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 Zn;return e.map((e=>{const n=e.value?e.value+this._resizeUnit:null,r={type:"button",model:new Au({commandName:"resizeImage",commandValue:n,label:this._getOptionLabelValue(e),role:"menuitemradio",withText:!0,icon:null})};r.model.bind("isOn").to(t,"value",zb(n)),i.add(r)})),i}}function zb(e){return t=>null===e&&t===e||null!==t&&t.width===e}const Nb="image_resized";class Lb extends or{static get requires(){return[If,Ay]}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(Ly),this.listenTo(t.document,"imageLoaded",((n,r)=>{if(!r.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 o=e.editing.view.domConverter,s=o.domToView(r.target),a=i.getImageWidgetFromImageView(s);let l=this.editor.plugins.get(If).getResizerByViewElement(a);if(l)return void l.redraw();const c=e.editing.mapper,d=c.toModelElement(a);l=e.plugins.get(If).attachTo({unit:e.config.get("image.resizeUnit"),modelElement:d,viewElement:a,editor:e,getHandleHost:e=>e.querySelector("img"),getResizeHost:()=>o.mapViewToDom(c.toViewElement(d.parent)),isCentered:()=>"alignCenter"==d.getAttribute("imageStyle"),onCommit(i){t.change((e=>{e.removeClass(Nb,a)})),e.execute("resizeImage",{width:i})}}),l.on("updateSize",(()=>{a.hasClass(Nb)||t.change((e=>{e.addClass(Nb,a)}));const e="imageInline"===d.name?s:a;e.getStyle("height")&&t.change((t=>{t.removeStyle("height",e)}))})),l.bind("isEnabled").to(this)}))}}var Db=a(6513),Fb={attributes:{"data-cke":!0}};Fb.setAttributes=br(),Fb.insert=fr().bind(null,"head"),Fb.domAPI=mr(),Fb.insertStyleElement=_r(),ur()(Db.A,Fb),Db.A&&Db.A.locals&&Db.A.locals;class jb extends ar{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 r=e.value,{setImageSizes:o=!0}=e;let s=n.getClosestSelectedImageElement(i.document.selection);r&&this.shouldConvertImageType(r,s)&&(this.editor.execute(n.isBlockImage(s)?"imageTypeInline":"imageTypeBlock",{setImageSizes:o}),s=n.getClosestSelectedImageElement(i.document.selection)),!r||this._styles.get(r).isDefault?t.removeAttribute("imageStyle",s):t.setAttribute("imageStyle",r,s),o&&n.setImageNaturalSizeAttributes(s)}))}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}const{objectFullWidth:Hb,objectInline:Ub,objectLeft:qb,objectRight:Wb,objectCenter:$b,objectBlockLeft:Kb,objectBlockRight:Jb}=xd,Zb={get inline(){return{name:"inline",title:"In line",icon:Ub,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:qb,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Kb,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:$b,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Wb,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Jb,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:$b,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Wb,modelElements:["imageBlock"],className:"image-style-side"}}},Gb={full:Hb,left:Kb,right:Jb,center:$b,inlineLeft:qb,inlineRight:Wb,inline:Ub},Yb=[{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 Qb(e){v("image-style-configuration-definition-invalid",e)}const Xb={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map((e=>function(e){return e="string"==typeof e?Zb[e]?{...Zb[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}(Zb[e.name],e),"string"==typeof e.icon&&(e.icon=Gb[e.icon]||e.icon),e}(e))).filter((t=>function(e,{isBlockPluginLoaded:t,isInlinePluginLoaded:i}){const{modelElements:n,name:r}=e;if(!(n&&n.length&&r))return Qb({style:e}),!1;{const r=[t?"imageBlock":null,i?"imageInline":null];if(!n.some((e=>r.includes(e))))return v("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")?[...Yb]:[]},warnInvalidStyle:Qb,DEFAULT_OPTIONS:Zb,DEFAULT_ICONS:Gb,DEFAULT_DROPDOWN_DEFINITIONS:Yb};function ek(e,t){for(const i of t)if(i.name===e)return i}class tk extends or{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Ay]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=Xb,i=this.editor,n=i.plugins.has("ImageBlockEditing"),r=i.plugins.has("ImageInlineEditing");i.config.define("image.styles",t(n,r)),this.normalizedStyles=e({configuredStyles:i.config.get("image.styles"),isBlockPluginLoaded:n,isInlinePluginLoaded:r}),this._setupConversion(n,r),this._setupPostFixer(),i.commands.add("imageStyle",new jb(i,this.normalizedStyles))}_setupConversion(e,t){const i=this.editor,n=i.model.schema,r=function(e){return(t,i,n)=>{if(!n.consumable.consume(i.item,t.name))return;const r=ek(i.attributeNewValue,e),o=ek(i.attributeOldValue,e),s=n.mapper.toViewElement(i.item),a=n.writer;o&&a.removeClass(o.className,s),r&&a.addClass(r.className,s)}}(this.normalizedStyles),o=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 r=i.viewItem,o=Gn(i.modelRange.getItems());if(o&&n.schema.checkAttribute(o,"imageStyle"))for(const e of t[o.name])n.consumable.consume(r,{classes:e.className})&&n.writer.setAttribute("imageStyle",e.name,o)}}(this.normalizedStyles);i.editing.downcastDispatcher.on("attribute:imageStyle",r),i.data.downcastDispatcher.on("attribute:imageStyle",r),e&&(n.extend("imageBlock",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:figure",o,{priority:"low"})),t&&(n.extend("imageInline",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:img",o,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,i=e.plugins.get(Ay),n=new Map(this.normalizedStyles.map((e=>[e.name,e])));t.registerPostFixer((e=>{let r=!1;for(const o of t.differ.getChanges())if("insert"==o.type||"attribute"==o.type&&"imageStyle"==o.attributeKey){let t="insert"==o.type?o.position.nodeAfter:o.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 a=n.get(s);a&&a.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),r=!0)}return r}))}}var ik=a(8310),nk={attributes:{"data-cke":!0}};nk.setAttributes=br(),nk.insert=fr().bind(null,"head"),nk.domAPI=mr(),nk.insertStyleElement=_r(),ur()(ik.A,nk),ik.A&&ik.A.locals&&ik.A.locals;class rk extends or{static get requires(){return[tk]}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=ok(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const e of i)this._createButton(e);const n=ok([...t.filter(N),...Xb.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 r;const{defaultItem:o,items:s,title:a}=e,l=s.filter((e=>t.find((({name:t})=>sk(t)===e)))).map((e=>{const t=i.create(e);return e===o&&(r=t),t}));s.length!==l.length&&Xb.warnInvalidStyle({dropdown:e});const c=ug(n,lg),d=c.buttonView,h=d.arrowView;return pg(c,l,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:ak(a,r.label),class:null,tooltip:!0}),h.unbind("label"),h.set({label:a}),d.bind("icon").toMany(l,"isOn",((...e)=>{const t=e.findIndex(Nn);return t<0?r.icon:l[t].icon})),d.bind("label").toMany(l,"isOn",((...e)=>{const t=e.findIndex(Nn);return ak(a,t<0?r.label:l[t].label)})),d.bind("isOn").toMany(l,"isOn",((...e)=>e.some(Nn))),d.bind("class").toMany(l,"isOn",((...e)=>e.some(Nn)?"ck-splitbutton_flatten":void 0)),d.on("execute",(()=>{l.some((({isOn:e})=>e))?c.isOpen=!c.isOpen:r.fire("execute")})),c.bind("isEnabled").toMany(l,"isEnabled",((...e)=>e.some(Nn))),this.listenTo(c,"execute",(()=>{this.editor.editing.view.focus()})),c}))}_createButton(e){const t=e.name;this.editor.ui.componentFactory.add(sk(t),(i=>{const n=this.editor.commands.get("imageStyle"),r=new gh(i);return r.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(n,"isEnabled"),r.bind("isOn").to(n,"value",(e=>e===t)),r.on("execute",this._executeCommand.bind(this,t)),r}))}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function ok(e,t){for(const i of e)t[i.title]&&(i.title=t[i.title]);return e}function sk(e){return`imageStyle:${e}`}function ak(e,t){return(e?e+": ":"")+t}class lk{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,r=n.document.selection;for(const e of this._definitions){const o=n.createAttributeElement("a",e.attributes,{priority:5});e.classes&&n.addClass(e.classes,o);for(const t in e.styles)n.setStyle(t,e.styles[t],o);n.setCustomProperty("link",!0,o),e.callback(t.attributeNewValue)?t.item.is("selection")?n.wrap(r.getFirstRange(),o):n.wrap(i.mapper.toViewRange(t.range),o):n.unwrap(i.mapper.toViewRange(t.range),o)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",((e,t,{writer:i,mapper:n})=>{const r=n.toViewElement(t.item),o=Array.from(r.getChildren()).find((e=>e.is("element","a")));for(const e of this._definitions){const n=Xn(e.attributes);if(e.callback(t.attributeNewValue)){for(const[e,t]of n)"class"===e?i.addClass(t,o):i.setAttribute(e,t,o);e.classes&&i.addClass(e.classes,o);for(const t in e.styles)i.setStyle(t,e.styles[t],o)}else{for(const[e,t]of n)"class"===e?i.removeClass(t,o):i.removeAttribute(e,o);e.classes&&i.removeClass(e.classes,o);for(const t in e.styles)i.removeStyle(t,o)}}}))}}}var ck=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const dk=function(e){return ck.test(e)};var hk="\\ud800-\\udfff",gk="["+hk+"]",uk="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pk="\\ud83c[\\udffb-\\udfff]",mk="[^"+hk+"]",wk="(?:\\ud83c[\\udde6-\\uddff]){2}",fk="[\\ud800-\\udbff][\\udc00-\\udfff]",yk="(?:"+uk+"|"+pk+")?",bk="[\\ufe0e\\ufe0f]?",kk=bk+yk+"(?:\\u200d(?:"+[mk,wk,fk].join("|")+")"+bk+yk+")*",_k="(?:"+[mk+uk+"?",uk,wk,fk,gk].join("|")+")",vk=RegExp(pk+"(?="+pk+")|"+_k+kk,"g");const xk=function(e){return dk(e)?function(e){return e.match(vk)||[]}(e):function(e){return e.split("")}(e)},Ak=function(e){e=Gr(e);var t=dk(e)?xk(e):void 0,i=t?t[0]:e.charAt(0),n=t?function(e,t,i){var n=e.length;return i=void 0===i?n:i,!t&&i>=n?e:eo(e,t,i)}(t,1).join(""):e.slice(1);return i.toUpperCase()+n},Ek=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ck=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Tk=/^((\w+:(\/{2,})?)|(\W))/i,Ik=["https?","ftps?","mailto"],Sk="Ctrl+K";function Pk(e,{writer:t}){const i=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,i),i}function Rk(e,t=Ik){const i=String(e),n=t.join("|");return function(e,t){return!!e.replace(Ek,"").match(t)}(i,new RegExp(`${"^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))".replace("<protocols>",n)}`,"i"))?i:"#"}function Ok(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function Mk(e,t){const i=(n=e,Ck.test(n)?"mailto:":t);var n;const r=!!i&&!Bk(e);return e&&r?i+e:e}function Bk(e){return Tk.test(e)}function Vk(e){window.open(e,"_blank","noopener")}class zk extends ar{constructor(){super(...arguments),this.manualDecorators=new Zn,this.automaticDecorators=new lk}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()||Gn(t.getSelectedBlocks());Ok(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,r=[],o=[];for(const e in t)t[e]?r.push(e):o.push(e);i.change((t=>{if(n.isCollapsed){const s=n.getFirstPosition();if(n.hasAttribute("linkHref")){const a=Nk(n);let l=jm(s,"linkHref",n.getAttribute("linkHref"),i);n.getAttribute("linkHref")===a&&(l=this._updateLinkContent(i,t,l,e)),t.setAttribute("linkHref",e,l),r.forEach((e=>{t.setAttribute(e,!0,l)})),o.forEach((e=>{t.removeAttribute(e,l)})),t.setSelection(t.createPositionAfter(l.end.nodeBefore))}else if(""!==e){const o=Xn(n.getAttributes());o.set("linkHref",e),r.forEach((e=>{o.set(e,!0)}));const{end:a}=i.insertContent(t.createText(e,o),s);t.setSelection(a)}["linkHref",...r,...o].forEach((e=>{t.removeSelectionAttribute(e)}))}else{const s=i.schema.getValidRanges(n.getRanges(),"linkHref"),a=[];for(const e of n.getSelectedBlocks())i.schema.checkAttribute(e,"linkHref")&&a.push(t.createRangeOn(e));const l=a.slice();for(const e of s)this._isRangeToUpdate(e,a)&&l.push(e);for(const s of l){let a=s;if(1===l.length){const r=Nk(n);n.getAttribute("linkHref")===r&&(a=this._updateLinkContent(i,t,s,e),t.setSelection(t.createSelection(a)))}t.setAttribute("linkHref",e,a),r.forEach((e=>{t.setAttribute(e,!0,a)})),o.forEach((e=>{t.removeAttribute(e,a)}))}}}))}_getDecoratorStateFromModel(e){const t=this.editor.model,i=t.document.selection,n=i.getSelectedElement();return Ok(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 r=t.createText(n,{linkHref:n});return e.insertContent(r,i)}}function Nk(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 Lk extends ar{refresh(){const e=this.editor.model,t=e.document.selection,i=t.getSelectedElement();Ok(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 r=i.isCollapsed?[jm(i.getFirstPosition(),"linkHref",i.getAttribute("linkHref"),t)]:t.schema.getValidRanges(i.getRanges(),"linkHref");for(const t of r)if(e.removeAttribute("linkHref",t),n)for(const i of n.manualDecorators)e.removeAttribute(i.id,t)}))}}class Dk extends(q()){constructor({id:e,label:t,attributes:i,classes:n,styles:r,defaultValue:o}){super(),this.id=e,this.set("value",void 0),this.defaultValue=o,this.label=t,this.attributes=i,this.classes=n,this.styles=r}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Fk=a(8571),jk={attributes:{"data-cke":!0}};jk.setAttributes=br(),jk.insert=fr().bind(null,"head"),jk.domAPI=mr(),jk.insertStyleElement=_r(),ur()(Fk.A,jk),Fk.A&&Fk.A.locals&&Fk.A.locals;const Hk="automatic",Uk=/^(https?:)?\/\//;class qk extends or{static get pluginName(){return"LinkEditing"}static get requires(){return[Tm,pm,$w]}constructor(e){super(e),e.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){const e=this.editor,t=this.editor.config.get("link.allowedProtocols");e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Pk}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,i)=>Pk(Rk(e,t),i)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new zk(e)),e.commands.add("unlink",new Lk(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${Ak(i)}`});t.push(e)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(i.filter((e=>e.mode===Hk))),this._enableManualDecorators(i.filter((e=>"manual"===e.mode))),e.plugins.get(Tm).registerAttribute("linkHref"),Um(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:Hk,callback:e=>!!e&&Uk.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 Dk(e);i.add(n),t.conversion.for("downcast").attributeToElement({model:n.id,view:(e,{writer:t,schema:i},{item:r})=>{if((r.is("selection")||i.isInline(r))&&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(!(d.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(),Vk(n))}),{context:"$capture"}),this.listenTo(t,"keydown",((t,i)=>{const n=e.commands.get("link").value;n&&i.keyCode===En.enter&&i.altKey&&(t.stop(),Vk(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=Mk(n.getAttribute("linkHref"),i);e.setAttribute("linkHref",t,n)}}))}))}}var Wk=a(8037),$k={attributes:{"data-cke":!0}};$k.setAttributes=br(),$k.insert=fr().bind(null,"head"),$k.domAPI=mr(),$k.insertStyleElement=_r(),ur()(Wk.A,$k),Wk.A&&Wk.A.locals&&Wk.A.locals;class Kk extends Jd{constructor(e,t){super(e),this.focusTracker=new Yn,this.keystrokes=new Qn,this._focusables=new Ad;const i=e.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(i("Save"),xd.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),xd.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusCycler=new Fh({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const n=["ck","ck-link-form","ck-responsive-form"];t.manualDecorators.length&&n.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:n,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((e,t)=>(e[t.name]=t.isOn,e)),{})}render(){super.render(),o({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 Ch(this.locale,kg);return t.label=e("Link URL"),t}_createButton(e,t,i,n){const r=new gh(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:i}}),n&&r.delegate("execute").to(this,n),r}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const i of e.manualDecorators){const n=new mh(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 Jd;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 Jk=a(9390),Zk={attributes:{"data-cke":!0}};Zk.setAttributes=br(),Zk.insert=fr().bind(null,"head"),Zk.domAPI=mr(),Zk.insertStyleElement=_r(),ur()(Jk.A,Zk),Jk.A&&Jk.A.locals&&Jk.A.locals;const Gk='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12">\n <path fill="currentColor" d="M3.328 5.176l.673.673-.701.715-.325-.326-1.397 1.396a1.975 1.975 0 000 2.792l.108.1c.776.67 1.95.637 2.685-.1l1.396-1.395-.345-.346.7-.715.706.706a.5.5 0 010 .708l-1.75 1.75A2.975 2.975 0 01.871 6.926l1.75-1.75a.5.5 0 01.707 0zm4.892-2.09a.5.5 0 01.689.702l-.059.07-2.525 2.474L3.857 8.85l-.069.059a.5.5 0 01-.702-.69l.057-.069 2.475-2.525L8.15 3.143l.07-.057zM11.134.87a2.975 2.975 0 010 4.207l-1.75 1.75a.5.5 0 01-.708 0l-.705-.705.715-.701.344.345 1.396-1.396a1.975 1.975 0 000-2.793l-.108-.1a1.975 1.975 0 00-2.684.1L6.238 2.974l.326.327-.715.7-.673-.673a.5.5 0 010-.707l1.75-1.75a2.975 2.975 0 014.208 0z"/>\n</svg>\n';class Yk extends Jd{constructor(e,t={}){super(e),this.focusTracker=new Yn,this.keystrokes=new Qn,this._focusables=new Ad;const i=e.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(i("Unlink"),Gk,"unlink"),this.editButtonView=this._createButton(i("Edit link"),xd.pencil,"edit"),this.set("href",void 0),this._linkConfig=t,this._focusCycler=new Fh({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 gh(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n.delegate("execute").to(this,i),n}_createPreviewButton(){const e=new gh(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&&Rk(e,this._linkConfig.allowedProtocols))),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 Qk="link-ui";class Xk extends or{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Pu]}static get pluginName(){return"LinkUI"}init(){const e=this.editor,t=this.editor.t;e.editing.view.addObserver(gd),this._balloon=e.plugins.get(Pu),this._createToolbarLinkButton(),this._enableBalloonActivators(),e.conversion.for("editingDowncast").markerToHighlight({model:Qk,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:Qk,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Create link"),keystroke:Sk},{label:t("Move out of a link"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}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 Yk(e.locale,e.config.get("link")),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(Sk,((e,t)=>{this._addFormView(),t()})),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),i=e.config.get("link.defaultProtocol"),n=e.config.get("link.allowCreatingEmptyLinks"),o=new(r(Kk))(e.locale,t);return o.urlInputView.fieldView.bind("value").to(t,"value"),o.urlInputView.bind("isEnabled").to(t,"isEnabled"),o.saveButtonView.bind("isEnabled").to(t,"isEnabled",o.urlInputView,"isEmpty",((e,t)=>e&&(n||!t))),this.listenTo(o,"submit",(()=>{const{value:t}=o.urlInputView.fieldView.element,n=Mk(t,i);e.execute("link",n,o.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(o,"cancel",(()=>{this._closeFormView()})),o.keystrokes.set("Esc",((e,t)=>{this._closeFormView(),t()})),o}_createToolbarLinkButton(){const e=this.editor,t=e.commands.get("link");e.ui.componentFactory.add("link",(()=>{const e=this._createButton(gh);return e.set({tooltip:!0,isToggleable:!0}),e.bind("isOn").to(t,"value",(e=>!!e)),e})),e.ui.componentFactory.add("menuBar:link",(()=>this._createButton(Op)))}_createButton(e){const t=this.editor,i=t.locale,n=t.commands.get("link"),r=new e(t.locale),o=i.t;return r.set({label:o("Link"),icon:Gk,keystroke:Sk}),r.bind("isEnabled").to(n,"isEnabled"),this.listenTo(r,"execute",(()=>this._showUI(!0))),r}_enableBalloonActivators(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),e.keystrokes.set(Sk,((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())})),t({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.formView.urlInputView.fieldView.value=e.value||"",this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_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.formView.urlInputView.fieldView.reset(),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=o();const r=()=>{const e=this._getSelectedLinkElement(),t=o();i&&!e||!i&&t!==n?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),i=e,n=t};function o(){return t.selection.focus.getAncestors().reverse().find((e=>e.is("element")))}this.listenTo(e.ui,"update",r),this.listenTo(this._balloon,"change:visibleView",r)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const 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(Qk)){const t=Array.from(this.editor.editing.mapper.markerNameToElements(Qk)),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&&Qw(i))return e_(t.getFirstPosition());{const i=t.getFirstRange().getTrimmed(),n=e_(i.start),r=e_(i.end);return n&&n==r&&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(Qk))t.updateMarker(Qk,{range:i});else if(i.start.isAtEnd){const n=i.start.getLastMatchingPosition((({item:t})=>!e.schema.isContent(t)),{boundaries:i});t.addMarker(Qk,{usingOperation:!1,affectsData:!1,range:t.createRange(n,i.end)})}else t.addMarker(Qk,{usingOperation:!1,affectsData:!1,range:i})}))}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has(Qk)&&e.change((e=>{e.removeMarker(Qk)}))}}function e_(e){return e.getAncestors().find((e=>{return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))||null}const t_=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 i_ extends or{static get requires(){return[xm,qk]}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,t){return t.textNode&&t.textNode.hasAttribute("linkHref")?jm(t,"linkHref",t.textNode.getAttribute("linkHref"),e):null}_selectEntireLinks(e,t){const i=this.editor.model,n=i.document.selection,r=n.getFirstPosition(),o=n.getLastPosition();let s=t.getJoined(this._expandLinkRange(i,r)||t);s&&(s=s.getJoined(this._expandLinkRange(i,o)||t)),s&&(s.start.isBefore(r)||s.end.isAfter(o))&&e.setSelection(s)}_enablePasteLinking(){const e=this.editor,t=e.model,i=t.document.selection,n=e.plugins.get("ClipboardPipeline"),r=e.commands.get("link");n.on("inputTransformation",((e,n)=>{if(!this.isEnabled||!r.isEnabled||i.isCollapsed||"paste"!==n.method)return;if(i.rangeCount>1)return;const o=i.getFirstRange(),s=n.dataTransfer.getData("text/plain");if(!s)return;const a=s.match(t_);a&&a[2]===s&&(t.change((e=>{this._selectEntireLinks(e,o),r.execute(s)})),e.stop())}),{priority:"high"})}_enableTypingHandling(){const e=this.editor,t=new Cm(e.model,(e=>{if(!function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e))return;const t=n_(e.substr(0,e.length-1));return t?{url:t}:void 0}));t.on("matched:data",((t,i)=>{const{batch:n,range:r,url:o}=i;if(!n.isTyping)return;const s=r.end.getShiftedBy(-1),a=s.getShiftedBy(-o.length),l=e.model.createRange(a,s);this._applyAutoLink(o,l)})),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}=Em(e,t),r=n_(i);if(r){const e=t.createRange(n.end.getShiftedBy(-r.length),n.end);this._applyAutoLink(r,e)}}_applyAutoLink(e,t){const i=this.editor.model,n=Mk(e,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,i)&&Bk(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((r=>{r.setAttribute("linkHref",e,t),i.enqueueChange((()=>{n.requestUndoOnBackspace()}))}))}}function n_(e){const t=t_.exec(e);return t?t[2]:null}var r_=a(7948),o_={attributes:{"data-cke":!0}};o_.setAttributes=br(),o_.insert=fr().bind(null,"head"),o_.domAPI=mr(),o_.insertStyleElement=_r(),ur()(r_.A,o_),r_.A&&r_.A.locals&&r_.A.locals;class s_{constructor(e,t){this._startElement=e,this._referenceIndent=e.getAttribute("listIndent"),this._isForward="forward"==t.direction,this._includeSelf=!!t.includeSelf,this._sameAttributes=Rn(t.sameAttributes||[]),this._sameIndent=!!t.sameIndent,this._lowerIndent=!!t.lowerIndent,this._higherIndent=!!t.higherIndent}static first(e,t){return Gn(new this(e,t)[Symbol.iterator]())}*[Symbol.iterator](){const e=[];for(const{node:t}of a_(this._getStartNode(),this._isForward?"forward":"backward")){const i=t.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){e.push(t);continue}}else{if(!this._sameIndent){if(this._higherIndent){e.length&&(yield*e,e.length=0);break}continue}if(this._sameAttributes.some((e=>t.getAttribute(e)!==this._startElement.getAttribute(e))))break}e.length&&(yield*e,e.length=0),yield t}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*a_(e,t="forward"){const i="forward"==t,n=[];let r=null;for(;d_(e);){let t=null;if(r){const i=e.getAttribute("listIndent"),o=r.getAttribute("listIndent");i>o?n[o]=r:i<o?(t=n[i],n.length=i):t=r}yield{node:e,previous:r,previousNodeInList:t},r=e,e=i?e.nextSibling:e.previousSibling}}class l_{constructor(e){this._listHead=e}[Symbol.iterator](){return a_(this._listHead,"forward")}}class c_{static next(){return y()}}function d_(e){return!!e&&e.is("element")&&e.hasAttribute("listItemId")}function h_(e,t={}){return[...g_(e,{...t,direction:"backward"}),...g_(e,{...t,direction:"forward"})]}function g_(e,t={}){const i="forward"==t.direction,n=Array.from(new s_(e,{...t,includeSelf:i,sameIndent:!0,sameAttributes:"listItemId"}));return i?n:n.reverse()}function u_(e,t){const i=new s_(e,{sameIndent:!0,sameAttributes:"listType",...t}),n=new s_(e,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...t});return[...Array.from(i).reverse(),...n]}function p_(e){return!s_.first(e,{sameIndent:!0,sameAttributes:"listItemId"})}function m_(e){return!s_.first(e,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function w_(e,t={}){e=Rn(e);const i=!1!==t.withNested,n=new Set;for(const t of e)for(const e of h_(t,{higherIndent:i}))n.add(e);return v_(n)}function f_(e,t){const i=g_(e,{direction:"forward"}),n=c_.next();for(const e of i)t.setAttribute("listItemId",n,e);return i}function y_(e,t,i){const n={};for(const[e,i]of t.getAttributes())e.startsWith("list")&&(n[e]=i);const r=g_(e,{direction:"forward"});for(const e of r)i.setAttributes(n,e);return r}function b_(e,t,{expand:i,indentBy:n=1}={}){e=Rn(e);const r=i?w_(e):e;for(const e of r){const i=e.getAttribute("listIndent")+n;i<0?k_(e,t):t.setAttribute("listIndent",i,e)}return r}function k_(e,t){e=Rn(e);for(const i of e)i.is("element","listItem")&&t.rename(i,"paragraph");for(const i of e)for(const e of i.getAttributeKeys())e.startsWith("list")&&t.removeAttribute(e,i);return e}function __(e){if(!e.length)return!1;const t=e[0].getAttribute("listItemId");return!!t&&!e.some((e=>e.getAttribute("listItemId")!=t))}function v_(e){return Array.from(e).filter((e=>"$graveyard"!==e.root.rootName)).sort(((e,t)=>e.index-t.index))}function x_(e){const t=e.document.selection.getSelectedElement();return t&&e.schema.isObject(t)&&e.schema.isBlock(t)?t:null}function A_(e,t){return t.checkChild(e.parent,"listItem")&&t.checkChild(e,"$text")&&!t.isObject(e)}function E_(e,t,i){return g_(t,{direction:"forward"}).pop().index>e.index?y_(e,t,i):[]}class C_ extends ar{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model,t=T_(e.document.selection);e.change((e=>{const i=[];__(t)&&!p_(t[0])?("forward"==this._direction&&i.push(...b_(t,e)),i.push(...f_(t[0],e))):"forward"==this._direction?i.push(...b_(t,e,{expand:!0})):i.push(...function(e,t){const i=w_(e=Rn(e)),n=new Set,r=Math.min(...i.map((e=>e.getAttribute("listIndent")))),o=new Map;for(const e of i)o.set(e,s_.first(e,{lowerIndent:!0}));for(const e of i){if(n.has(e))continue;n.add(e);const i=e.getAttribute("listIndent")-1;if(i<0)k_(e,t);else{if(e.getAttribute("listIndent")==r){const i=E_(e,o.get(e),t);for(const e of i)n.add(e);if(i.length)continue}t.setAttribute("listIndent",i,e)}}return v_(n)}(t,e));for(const t of i){if(!t.hasAttribute("listType"))continue;const i=s_.first(t,{sameIndent:!0});i&&e.setAttribute("listType",i.getAttribute("listType"),t)}this._fireAfterExecute(i)}))}_fireAfterExecute(e){this.fire("afterExecute",v_(new Set(e)))}_checkEnabled(){let e=T_(this.editor.model.document.selection),t=e[0];if(!t)return!1;if("backward"==this._direction)return!0;if(__(e)&&!p_(e[0]))return!0;e=w_(e),t=e[0];const i=s_.first(t,{sameIndent:!0});return!!i&&i.getAttribute("listType")==t.getAttribute("listType")}}function T_(e){const t=Array.from(e.getSelectedBlocks()),i=t.findIndex((e=>!d_(e)));return-1!=i&&(t.length=i),t}class I_ extends ar{constructor(e,t,i={}){super(e),this.type=t,this._listWalkerOptions=i.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,i=t.document,n=x_(t),r=Array.from(i.selection.getSelectedBlocks()).filter((e=>t.schema.checkAttribute(e,"listType")||A_(e,t.schema))),o=void 0!==e.forceValue?!e.forceValue:this.value;t.change((s=>{if(o){const e=r[r.length-1],t=g_(e,{direction:"forward"}),i=[];t.length>1&&i.push(...f_(t[1],s)),i.push(...k_(r,s)),i.push(...function(e,t){const i=[];let n=Number.POSITIVE_INFINITY;for(const{node:r}of a_(e.nextSibling,"forward")){const e=r.getAttribute("listIndent");if(0==e)break;e<n&&(n=e);const o=e-n;t.setAttribute("listIndent",o,r),i.push(r)}return i}(e,s)),this._fireAfterExecute(i)}else if((n||i.selection.isCollapsed)&&d_(r[0])){const t=u_(n||r[0],this._listWalkerOptions);for(const i of t)s.setAttributes({...e.additionalAttributes,listType:this.type},i);this._fireAfterExecute(t)}else{const i=[];for(const n of r)if(n.hasAttribute("listType"))for(const t of w_(n,{withNested:!1}))t.getAttribute("listType")!=this.type&&(s.setAttributes({...e.additionalAttributes,listType:this.type},t),i.push(t));else!n.is("element","listItem")&&A_(n,t.schema)&&s.rename(n,"listItem"),s.setAttributes({...e.additionalAttributes,listIndent:0,listItemId:c_.next(),listType:this.type},n),i.push(n);this._fireAfterExecute(i)}}))}_fireAfterExecute(e){this.fire("afterExecute",v_(new Set(e)))}_getValue(){const e=this.editor.model.document.selection,t=Array.from(e.getSelectedBlocks());if(!t.length)return!1;for(const e of t)if(e.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const e=this.editor.model,t=e.schema,i=e.document.selection,n=Array.from(i.getSelectedBlocks());if(!n.length)return!1;if(this.value)return!0;for(const e of n)if(t.checkAttribute(e,"listType")||A_(e,t))return!0;return!1}}class S_ extends ar{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:e=!1}={}){const t=this.editor.model,i=t.document.selection,n=[];t.change((r=>{const{firstElement:o,lastElement:s}=this._getMergeSubjectElements(i,e),a=o.getAttribute("listIndent")||0,l=s.getAttribute("listIndent"),c=s.getAttribute("listItemId");if(a!=l){const e=(d=s,Array.from(new s_(d,{direction:"forward",higherIndent:!0})));n.push(...b_([s,...e],r,{indentBy:a-l,expand:a<l}))}var d;if(e){let e=i;i.isCollapsed&&(e=r.createSelection(r.createRange(r.createPositionAt(o,"end"),r.createPositionAt(s,0)))),t.deleteContent(e,{doNotResetEntireContent:i.isCollapsed});const a=e.getLastPosition().parent,l=a.nextSibling;n.push(a),l&&l!==s&&l.getAttribute("listItemId")==c&&n.push(...y_(l,a,r))}else n.push(...y_(s,o,r));this._fireAfterExecute(n)}))}_fireAfterExecute(e){this.fire("afterExecute",v_(new Set(e)))}_checkEnabled(){const e=this.editor.model,t=e.document.selection,i=x_(e);if(t.isCollapsed||i){const e=i||t.getFirstPosition().parent;if(!d_(e))return!1;const n="backward"==this._direction?e.previousSibling:e.nextSibling;if(!n)return!1;if(__([e,n]))return!1}else{const e=t.getLastPosition(),i=t.getFirstPosition();if(e.parent===i.parent)return!1;if(!d_(e.parent))return!1}return!0}_getMergeSubjectElements(e,t){const i=x_(this.editor.model);let n,r;if(e.isCollapsed||i){const o=i||e.getFirstPosition().parent,s=p_(o);"backward"==this._direction?(r=o,n=s&&!t?s_.first(o,{sameIndent:!0,lowerIndent:!0}):o.previousSibling):(n=o,r=o.nextSibling)}else n=e.getFirstPosition().parent,r=e.getLastPosition().parent;return{firstElement:n,lastElement:r}}}class P_ extends ar{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change((e=>{const t=f_(this._getStartBlock(),e);this._fireAfterExecute(t)}))}_fireAfterExecute(e){this.fire("afterExecute",v_(new Set(e)))}_checkEnabled(){const e=this.editor.model.document.selection,t=this._getStartBlock();return e.isCollapsed&&d_(t)&&!p_(t)}_getStartBlock(){const e=this.editor.model.document.selection.getFirstPosition().parent;return"before"==this._direction?e:e.nextSibling}}class R_ extends or{static get pluginName(){return"ListUtils"}expandListBlocksToCompleteList(e){return function(e){e=Rn(e);const t=new Set;for(const i of e)for(const e of u_(i))t.add(e);return v_(t)}(e)}isFirstBlockOfListItem(e){return p_(e)}isListItemBlock(e){return d_(e)}expandListBlocksToCompleteItems(e,t={}){return w_(e,t)}isNumberedListType(e){return function(e){return"numbered"==e||"customNumbered"==e}(e)}}function O_(e){return e.is("element","ol")||e.is("element","ul")}function M_(e){return e.is("element","li")}function B_(e,t,i,n=N_(i,t)){return e.createAttributeElement(z_(i),null,{priority:2*t/100-100,id:n})}function V_(e,t,i){return e.createAttributeElement("li",null,{priority:(2*t+1)/100-100,id:i})}function z_(e){return"numbered"==e||"customNumbered"==e?"ol":"ul"}function N_(e,t){return`list-${e}-${t}`}function L_(e,t){const i=e.nodeBefore;if(d_(i)){let e=i;for(const{node:i}of a_(e,"backward"))if(e=i,t.has(e))return;t.set(i,e)}else{const i=e.nodeAfter;d_(i)&&t.set(i,i)}}function D_(){return(e,t,i)=>{if(!i.consumable.test(t.viewItem,{name:!0}))return;const n=new pd(t.viewItem.document);for(const e of Array.from(t.viewItem.getChildren()))M_(e)||O_(e)||n.remove(e)}}function F_(e,t,i,{dataPipeline:n}={}){const r=function(e){return(t,i)=>{const n=[];for(const i of e)t.hasAttribute(i)&&n.push(`attribute:${i}`);return!!n.every((e=>!1!==i.test(t,e)))&&(n.forEach((e=>i.consume(t,e))),!0)}}(e);return(o,s,a)=>{const{writer:l,mapper:c,consumable:d}=a,h=s.item;if(!e.includes(s.attributeKey))return;if(!r(h,d))return;const g=function(e,t,i){const n=i.createRangeOn(e);return t.toViewRange(n).getTrimmed().end.nodeBefore}(h,c,i);H_(g,l,c),function(e,t){let i=e.parent;for(;i.is("attributeElement")&&["ul","ol","li"].includes(i.name);){const n=i.parent;t.unwrap(t.createRangeOn(e),i),i=n}}(g,l);const u=function(e,t,i,n,{dataPipeline:r}){let o=n.createRangeOn(t);if(!p_(e))return o;for(const s of i){if("itemMarker"!=s.scope)continue;const i=s.createElement(n,e,{dataPipeline:r});if(!i)continue;if(n.setCustomProperty("listItemMarker",!0,i),s.canInjectMarkerIntoElement&&s.canInjectMarkerIntoElement(e)?n.insert(n.createPositionAt(t,0),i):(n.insert(o.start,i),o=n.createRange(n.createPositionBefore(i),n.createPositionAfter(t))),!s.createWrapperElement||!s.canWrapElement)continue;const a=s.createWrapperElement(n,e,{dataPipeline:r});n.setCustomProperty("listItemWrapper",!0,a),s.canWrapElement(e)?o=n.wrap(o,a):(o=n.wrap(n.createRangeOn(i),a),o=n.createRange(o.start,n.createPositionAfter(t)))}return o}(h,g,t,l,{dataPipeline:n});!function(e,t,i,n){if(!e.hasAttribute("listIndent"))return;const r=e.getAttribute("listIndent");let o=e;for(let e=r;e>=0;e--){const r=V_(n,e,o.getAttribute("listItemId")),s=B_(n,e,o.getAttribute("listType"));for(const e of i)"list"!=e.scope&&"item"!=e.scope||!o.hasAttribute(e.attributeName)||e.setAttributeOnDowncast(n,o.getAttribute(e.attributeName),"list"==e.scope?s:r);if(t=n.wrap(t,r),t=n.wrap(t,s),0==e)break;if(o=s_.first(o,{lowerIndent:!0}),!o)break}}(h,u,t,l)}}function j_(e,{dataPipeline:t}={}){return(i,{writer:n})=>{if(!U_(i,e))return null;if(!t)return n.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const r=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,r),r}}function H_(e,t,i){for(;e.parent.is("attributeElement")&&e.parent.getCustomProperty("listItemWrapper");)t.unwrap(t.createRangeOn(e),e.parent);const n=[];r(t.createPositionBefore(e).getWalker({direction:"backward"})),r(t.createRangeIn(e).getWalker());for(const e of n)t.remove(e);function r(e){for(const{item:t}of e){if(t.is("element")&&i.toModelElement(t))break;t.is("element")&&t.getCustomProperty("listItemMarker")&&n.push(t)}}}function U_(e,t,i=h_(e)){if(!d_(e))return!1;for(const i of e.getAttributeKeys())if(!i.startsWith("selection:")&&!t.includes(i))return!1;return i.length<2}var q_=a(7756),W_={attributes:{"data-cke":!0}};W_.setAttributes=br(),W_.insert=fr().bind(null,"head"),W_.domAPI=mr(),W_.insertStyleElement=_r(),ur()(q_.A,W_),q_.A&&q_.A.locals&&q_.A.locals;var $_=a(6235),K_={attributes:{"data-cke":!0}};K_.setAttributes=br(),K_.insert=fr().bind(null,"head"),K_.domAPI=mr(),K_.insertStyleElement=_r(),ur()($_.A,K_),$_.A&&$_.A.locals&&$_.A.locals;const J_=["listType","listIndent","listItemId"];class Z_ extends or{static get pluginName(){return"ListEditing"}static get requires(){return[om,xm,R_,$w]}constructor(e){super(e),this._downcastStrategies=[],e.config.define("list.multiBlock",!0)}init(){const e=this.editor,t=e.model,i=e.config.get("list.multiBlock");if(e.plugins.has("LegacyListEditing"))throw new _("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});t.schema.register("$listItem",{allowAttributes:J_}),i?(t.schema.extend("$container",{allowAttributesOf:"$listItem"}),t.schema.extend("$block",{allowAttributesOf:"$listItem"}),t.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):t.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const e of J_)t.schema.setAttributeProperties(e,{copyOnReplace:!0});e.commands.add("numberedList",new I_(e,"numbered")),e.commands.add("bulletedList",new I_(e,"bulleted")),e.commands.add("customNumberedList",new I_(e,"customNumbered",{multiLevel:!0})),e.commands.add("customBulletedList",new I_(e,"customBulleted",{multiLevel:!0})),e.commands.add("indentList",new C_(e,"forward")),e.commands.add("outdentList",new C_(e,"backward")),e.commands.add("splitListItemBefore",new P_(e,"before")),e.commands.add("splitListItemAfter",new P_(e,"after")),i&&(e.commands.add("mergeListItemBackward",new S_(e,"backward")),e.commands.add("mergeListItemForward",new S_(e,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration()}afterInit(){const e=this.editor.commands,t=e.get("indent"),i=e.get("outdent");t&&t.registerChildCommand(e.get("indentList"),{priority:"high"}),i&&i.registerChildCommand(e.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(e){this._downcastStrategies.push(e)}getListAttributeNames(){return[...J_,...this._downcastStrategies.map((e=>e.attributeName))]}_setupDeleteIntegration(){const e=this.editor,t=e.commands.get("mergeListItemBackward"),i=e.commands.get("mergeListItemForward");this.listenTo(e.editing.view.document,"delete",((n,r)=>{const o=e.model.document.selection;x_(e.model)||e.model.change((()=>{const s=o.getFirstPosition();if(o.isCollapsed&&"backward"==r.direction){if(!s.isAtStart)return;const i=s.parent;if(!d_(i))return;if(s_.first(i,{sameAttributes:"listType",sameIndent:!0})||0!==i.getAttribute("listIndent")){if(!t||!t.isEnabled)return;t.execute({shouldMergeOnBlocksContentLevel:G_(e.model,"backward")})}else m_(i)||e.execute("splitListItemAfter"),e.execute("outdentList");r.preventDefault(),n.stop()}else{if(o.isCollapsed&&!o.getLastPosition().isAtEnd)return;if(!i||!i.isEnabled)return;i.execute({shouldMergeOnBlocksContentLevel:G_(e.model,"forward")}),r.preventDefault(),n.stop()}}))}),{context:"li"})}_setupEnterIntegration(){const e=this.editor,t=e.model,i=e.commands,n=i.get("enter");this.listenTo(e.editing.view.document,"enter",((i,n)=>{const r=t.document,o=r.selection.getFirstPosition().parent;if(r.selection.isCollapsed&&d_(o)&&o.isEmpty&&!n.isSoft){const t=p_(o),r=m_(o);t&&r?(e.execute("outdentList"),n.preventDefault(),i.stop()):t&&!r?(e.execute("splitListItemAfter"),n.preventDefault(),i.stop()):r&&(e.execute("splitListItemBefore"),n.preventDefault(),i.stop())}}),{context:"li"}),this.listenTo(n,"afterExecute",(()=>{const t=i.get("splitListItemBefore");t.refresh(),t.isEnabled&&2===h_(e.model.document.selection.getLastPosition().parent).length&&t.execute()}))}_setupTabIntegration(){const e=this.editor;this.listenTo(e.editing.view.document,"tab",((t,i)=>{const n=i.shiftKey?"outdentList":"indentList";this.editor.commands.get(n).isEnabled&&(e.execute(n),i.stopPropagation(),i.preventDefault(),t.stop())}),{context:"li"})}_setupConversion(){const e=this.editor,t=e.model,i=this.getListAttributeNames(),n=e.config.get("list.multiBlock"),r=n?"paragraph":"listItem";e.conversion.for("upcast").elementToElement({view:"li",model:(e,{writer:t})=>t.createElement(r,{listType:""})}).elementToElement({view:"p",model:(e,{writer:t})=>e.parent&&e.parent.is("element","li")?t.createElement(r,{listType:""}):null,converterPriority:"high"}).add((e=>{e.on("element:li",((e,t,i)=>{const{writer:n,schema:r}=i;if(!t.modelRange)return;const o=Array.from(t.modelRange.getItems({shallow:!0})).filter((e=>r.checkAttribute(e,"listItemId")));if(!o.length)return;const s=c_.next(),a=function(e){let t=0,i=e.parent;for(;i;){if(M_(i))t++;else{const e=i.previousSibling;e&&M_(e)&&t++}i=i.parent}return t}(t.viewItem);let l=t.viewItem.parent&&t.viewItem.parent.is("element","ol")?"numbered":"bulleted";const c=o[0].getAttribute("listType");c&&(l=c);const d={listItemId:s,listIndent:a,listType:l};for(const e of o)e.hasAttribute("listItemId")||n.setAttributes(d,e);o.length>1&&o[1].getAttribute("listItemId")!=d.listItemId&&i.keepEmptyElement(o[0])})),e.on("element:ul",D_(),{priority:"high"}),e.on("element:ol",D_(),{priority:"high"})})),n||e.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),e.conversion.for("editingDowncast").elementToElement({model:r,view:j_(i),converterPriority:"high"}).add((e=>{var n;e.on("attribute",F_(i,this._downcastStrategies,t)),e.on("remove",(n=t.schema,(e,t,i)=>{const{writer:r,mapper:o}=i,s=e.name.split(":")[1];if(!n.checkAttribute(s,"listItemId"))return;const a=o.toViewPosition(t.position),l=t.position.getShiftedBy(t.length),c=o.toViewPosition(l,{isPhantom:!0}),d=r.createRange(a,c).getTrimmed().end.nodeBefore;d&&H_(d,r,o)}))})),e.conversion.for("dataDowncast").elementToElement({model:r,view:j_(i,{dataPipeline:!0}),converterPriority:"high"}).add((e=>{e.on("attribute",F_(i,this._downcastStrategies,t,{dataPipeline:!0}))}));const o=(s=this._downcastStrategies,a=e.editing.view,(e,t)=>{if(t.modelPosition.offset>0)return;const i=t.modelPosition.parent;if(!d_(i))return;if(!s.some((e=>"itemMarker"==e.scope&&e.canInjectMarkerIntoElement&&e.canInjectMarkerIntoElement(i))))return;const n=t.mapper.toViewElement(i),r=a.createRangeIn(n),o=r.getWalker();let l=r.start;for(const{item:e}of o){if(e.is("element")&&t.mapper.toModelElement(e)||e.is("$textProxy"))break;e.is("element")&&e.getCustomProperty("listItemMarker")&&(l=a.createPositionAfter(e),o.skip((({previousPosition:e})=>!e.isEqual(l))))}t.viewPosition=l});var s,a;e.editing.mapper.on("modelToViewPosition",o),e.data.mapper.on("modelToViewPosition",o),this.listenTo(t.document,"change:data",function(e,t,i,n){return()=>{const n=e.document.differ.getChanges(),s=[],a=new Map,l=new Set;for(const e of n)if("insert"==e.type&&"$text"!=e.name)L_(e.position,a),e.attributes.has("listItemId")?l.add(e.position.nodeAfter):L_(e.position.getShiftedBy(e.length),a);else if("remove"==e.type&&e.attributes.has("listItemId"))L_(e.position,a);else if("attribute"==e.type){const t=e.range.start.nodeAfter;i.includes(e.attributeKey)?(L_(e.range.start,a),null===e.attributeNewValue?(L_(e.range.start.getShiftedBy(1),a),o(t)&&s.push(t)):l.add(t)):d_(t)&&o(t)&&s.push(t)}for(const e of a.values())s.push(...r(e,l));for(const e of new Set(s))t.reconvertItem(e)};function r(e,t){const n=[],r=new Set,a=[];for(const{node:l,previous:c}of a_(e,"forward")){if(r.has(l))continue;const e=l.getAttribute("listIndent");c&&e<c.getAttribute("listIndent")&&(a.length=e+1),a[e]=Object.fromEntries(Array.from(l.getAttributes()).filter((([e])=>i.includes(e))));const d=g_(l,{direction:"forward"});for(const e of d)r.add(e),(o(e,d)||s(e,a,t))&&n.push(e)}return n}function o(e,r){const o=t.mapper.toViewElement(e);if(!o)return!1;if(n.fire("checkElement",{modelElement:e,viewElement:o}))return!0;if(!e.is("element","paragraph")&&!e.is("element","listItem"))return!1;const s=U_(e,i,r);return!(!s||!o.is("element","p"))||!(s||!o.is("element","span"))}function s(e,i,r){if(r.has(e))return!1;const o=t.mapper.toViewElement(e);let s=i.length-1;for(let e=o.parent;!e.is("editableElement");e=e.parent){const t=M_(e),r=O_(e);if(!r&&!t)continue;const o="checkAttributes:"+(t?"item":"list");if(n.fire(o,{viewElement:e,modelAttributes:i[s]}))break;if(r&&(s--,s<0))return!1}return!0}}(t,e.editing,i,this),{priority:"high"}),this.on("checkAttributes:item",((e,{viewElement:t,modelAttributes:i})=>{t.id!=i.listItemId&&(e.return=!0,e.stop())})),this.on("checkAttributes:list",((e,{viewElement:t,modelAttributes:i})=>{t.name==z_(i.listType)&&t.id==N_(i.listType,i.listIndent)||(e.return=!0,e.stop())}))}_setupModelPostFixing(){const e=this.editor.model,t=this.getListAttributeNames();e.document.registerPostFixer((i=>function(e,t,i,n){const r=e.document.differ.getChanges(),o=new Map,s=n.editor.config.get("list.multiBlock");let a=!1;for(const n of r){if("insert"==n.type&&"$text"!=n.name){const r=n.position.nodeAfter;if(!e.schema.checkAttribute(r,"listItemId"))for(const e of Array.from(r.getAttributeKeys()))i.includes(e)&&(t.removeAttribute(e,r),a=!0);L_(n.position,o),n.attributes.has("listItemId")||L_(n.position.getShiftedBy(n.length),o);for(const{item:t,previousPosition:i}of e.createRangeIn(r))d_(t)&&L_(i,o)}else"remove"==n.type?L_(n.position,o):"attribute"==n.type&&i.includes(n.attributeKey)&&(L_(n.range.start,o),null===n.attributeNewValue&&L_(n.range.start.getShiftedBy(1),o));if(!s&&"attribute"==n.type&&J_.includes(n.attributeKey)){const e=n.range.start.nodeAfter;null===n.attributeNewValue&&e&&e.is("element","listItem")?(t.rename(e,"paragraph"),a=!0):null===n.attributeOldValue&&e&&e.is("element")&&"listItem"!=e.name&&(t.rename(e,"listItem"),a=!0)}}const l=new Set;for(const e of o.values())a=n.fire("postFixer",{listNodes:new l_(e),listHead:e,writer:t,seenIds:l})||a;return a}(e,i,t,this))),this.on("postFixer",((e,{listNodes:t,writer:i})=>{e.return=function(e,t){let i=0,n=-1,r=null,o=!1;for(const{node:s}of e){const e=s.getAttribute("listIndent");if(e>i){let a;null===r?(r=e-i,a=i):(r>e&&(r=e),a=e-r),a>n+1&&(a=n+1),t.setAttribute("listIndent",a,s),o=!0,n=a}else r=null,i=e+1,n=e}return o}(t,i)||e.return}),{priority:"high"}),this.on("postFixer",((e,{listNodes:t,writer:i,seenIds:n})=>{e.return=function(e,t,i){const n=new Set;let r=!1;for(const{node:o}of e){if(n.has(o))continue;let e=o.getAttribute("listType"),s=o.getAttribute("listItemId");if(t.has(s)&&(s=c_.next()),t.add(s),o.is("element","listItem"))o.getAttribute("listItemId")!=s&&(i.setAttribute("listItemId",s,o),r=!0);else for(const t of g_(o,{direction:"forward"}))n.add(t),t.getAttribute("listType")!=e&&(s=c_.next(),e=t.getAttribute("listType")),t.getAttribute("listItemId")!=s&&(i.setAttribute("listItemId",s,t),r=!0)}return r}(t,n,i)||e.return}),{priority:"high"})}_setupClipboardIntegration(){const e=this.editor.model,t=this.editor.plugins.get("ClipboardPipeline");this.listenTo(e,"insertContent",function(e){return(t,[i,n])=>{const r=i.is("documentFragment")?Array.from(i.getChildren()):[i];if(!r.length)return;const o=(n?e.createSelection(n):e.document.selection).getFirstPosition();let s;if(d_(o.parent))s=o.parent;else{if(!d_(o.nodeBefore))return;s=o.nodeBefore}e.change((e=>{const t=s.getAttribute("listType"),i=s.getAttribute("listIndent"),n=r[0].getAttribute("listIndent")||0,o=Math.max(i-n,0);for(const i of r){const n=d_(i);s.is("element","listItem")&&i.is("element","paragraph")&&e.rename(i,"listItem"),e.setAttributes({listIndent:(n?i.getAttribute("listIndent"):0)+o,listItemId:n?i.getAttribute("listItemId"):c_.next(),listType:t},i)}}))}}(e),{priority:"high"}),this.listenTo(t,"outputTransformation",((t,i)=>{e.change((e=>{const t=Array.from(i.content.getChildren()),n=t[t.length-1];if(t.length>1&&n.is("element")&&n.isEmpty&&t.slice(0,-1).every(d_)&&e.remove(n),"copy"==i.method||"cut"==i.method){const t=Array.from(i.content.getChildren());__(t)&&k_(t,e)}}))}))}_setupAccessibilityIntegration(){const e=this.editor,t=e.t;e.accessibility.addKeystrokeInfoGroup({id:"list",label:t("Keystrokes that can be used in a list"),keystrokes:[{label:t("Increase list item indent"),keystroke:"Tab"},{label:t("Decrease list item indent"),keystroke:"Shift+Tab"}]})}}function G_(e,t){const i=e.document.selection;if(!i.isCollapsed)return!x_(e);if("forward"===t)return!0;const n=i.getFirstPosition().parent,r=n.previousSibling;return!e.schema.isObject(r)&&(!!r.isEmpty||__([n,r]))}function Y_(e,t,i,n){e.ui.componentFactory.add(t,(()=>{const r=Q_(gh,e,t,i,n);return r.set({tooltip:!0,isToggleable:!0}),r})),e.ui.componentFactory.add(`menuBar:${t}`,(()=>Q_(Op,e,t,i,n)))}function Q_(e,t,i,n,r){const o=t.commands.get(i),s=new e(t.locale);return s.set({label:n,icon:r}),s.bind("isOn","isEnabled").to(o,"value","isEnabled"),s.on("execute",(()=>{t.execute(i),t.editing.view.focus()})),s}class X_ extends or{static get pluginName(){return"ListUI"}init(){const e=this.editor.t;Y_(this.editor,"numberedList",e("Numbered List"),xd.numberedList),Y_(this.editor,"bulletedList",e("Bulleted List"),xd.bulletedList)}}const ev=[{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:e,typeAttribute:t,listType:i}of ev);var tv=a(3252),iv={attributes:{"data-cke":!0}};iv.setAttributes=br(),iv.insert=fr().bind(null,"head"),iv.domAPI=mr(),iv.insertStyleElement=_r(),ur()(tv.A,iv),tv.A&&tv.A.locals&&tv.A.locals;var nv=a(6161),rv={attributes:{"data-cke":!0}};rv.setAttributes=br(),rv.insert=fr().bind(null,"head"),rv.domAPI=mr(),rv.insertStyleElement=_r(),ur()(nv.A,rv),nv.A&&nv.A.locals&&nv.A.locals,In("Ctrl+Enter");var ov=a(5811),sv={attributes:{"data-cke":!0}};function av(e){return void 0!==e&&e.endsWith("px")}function lv(e){return e.toFixed(2).replace(/\.?0+$/,"")+"px"}function cv(e){return function(e){return e.is("element","ol")||e.is("element","ul")}(e.element.previousSibling||e.element.parent)}function dv(e,t){const i=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi"),n=/mso-level-number-format:([^;]{0,100});/gi,r=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,o=new RegExp(`@list\\s+l${e.id}:level\\d\\s*{[^{]*mso-level-text:"%\\d\\\\.`,"gi"),s=new RegExp(`@list l${e.id}:level\\d\\s*{[^{]*mso-level-number-format:`,"gi"),a=o.exec(t),l=s.exec(t),c=a&&!l,d=i.exec(t);let h="decimal",g="ol",u=null;if(d&&d[1]){const t=n.exec(d[1]);if(t&&t[1]&&(h=t[1].trim(),g="bullet"!==h&&"image"!==h?"ol":"ul"),"bullet"===h){const t=function(e){if("li"==e.name&&"ul"==e.parent.name&&e.parent.hasAttribute("type"))return e.parent.getAttribute("type");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 i=t._data;return"o"===i?"circle":"·"===i?"disc":"§"===i?"square":null}(e.element);t&&(h=t)}else{const e=r.exec(d[1]);e&&e[1]&&(u=parseInt(e[1]))}c&&(g="ol")}return{type:g,startIndex:u,style:hv(h),isLegalStyleList:c}}function hv(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 gv(e,t,i){const n=t.createElement(e.type);return e.style&&t.setStyle("list-style-type",e.style,n),e.startIndex&&e.startIndex>1&&t.setAttribute("start",e.startIndex,n),e.isLegalStyleList&&i&&t.addClass("legal-list",n),n}function uv(e){const t=e.getStyle("mso-list");if(void 0===t)return{};const i=t.match(/(^|\s{1,100})l(\d+)/i),n=t.match(/\s{0,100}lfo(\d+)/i),r=t.match(/\s{0,100}level(\d+)/i);return i&&n&&r?{id:i[2],order:n[1],indent:parseInt(r[1])}:{indent:1}}function pv(e,t){const i=new Vr({name:"span",styles:{"mso-list":"Ignore"}}),n=t.createRangeIn(e);for(const e of n)"elementStart"===e.type&&i.match(e.item)&&t.remove(e.item)}function mv(e){const t=e.getStyle("margin-left");return void 0===t||t.endsWith("px")?t:function(e){const t=parseFloat(e);return e.endsWith("pt")?lv(96*t/72):e.endsWith("pc")?lv(12*t*96/72):e.endsWith("in")?lv(96*t):e.endsWith("cm")?lv(96*t/2.54):e.endsWith("mm")?lv(t/10*96/2.54):e}(t)}function wv(e){return btoa(e.match(/\w{2}/g).map((e=>String.fromCharCode(parseInt(e,16)))).join(""))}sv.setAttributes=br(),sv.insert=fr().bind(null,"head"),sv.domAPI=mr(),sv.insertStyleElement=_r(),ur()(ov.A,sv),ov.A&&ov.A.locals&&ov.A.locals,In("Ctrl+Enter");const fv=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,yv=/xmlns:o="urn:schemas-microsoft-com/i;class bv{constructor(e,t=!1){this.document=e,this.hasMultiLevelListPlugin=t}isActive(e){return fv.test(e)||yv.test(e)}execute(e){const{body:t,stylesString:i}=e._parsedData;(function(e,t,i){if(!e.childCount)return;const n=new pd(e.document),r=function(e,t){const i=t.createRangeIn(e),n=[],r=new Set;for(const e of i.getItems()){if(!e.is("element")||!e.name.match(/^(p|h\d+|li|div)$/))continue;let t=mv(e);if(void 0===t||0!=parseFloat(t)||Array.from(e.getClassNames()).find((e=>e.startsWith("MsoList")))||(t=void 0),e.hasStyle("mso-list")||void 0!==t&&r.has(t)){const i=uv(e);n.push({element:e,id:i.id,order:i.order,indent:i.indent,marginLeft:t}),void 0!==t&&r.add(t)}else r.clear()}return n}(e,n);if(!r.length)return;const o={},s=[];for(const e of r)if(void 0!==e.indent){cv(e)||(s.length=0);const r=`${e.id}:${e.indent}`,a=Math.min(e.indent-1,s.length);if(a<s.length&&s[a].id!==e.id&&(s.length=a),a<s.length-1)s.length=a+1;else{const l=dv(e,t);if(a>s.length-1||s[a].listElement.name!=l.type){0==a&&"ol"==l.type&&void 0!==e.id&&o[r]&&(l.startIndex=o[r]);const t=gv(l,n,i);if(av(e.marginLeft)&&(0==a||av(s[a-1].marginLeft))){let i=e.marginLeft;a>0&&(i=lv(parseFloat(i)-parseFloat(s[a-1].marginLeft))),n.setStyle("padding-left",i,t)}if(0==s.length){const i=e.element.parent,r=i.getChildIndex(e.element)+1;n.insertChild(r,t,i)}else{const e=s[a-1].listItemElements;n.appendChild(t,e[e.length-1])}s[a]={...e,listElement:t,listItemElements:[]},0==a&&void 0!==e.id&&(o[r]=l.startIndex||1)}}const l="li"==e.element.name?e.element:n.createElement("li");n.appendChild(l,s[a].listElement),s[a].listItemElements.push(l),0==a&&void 0!==e.id&&o[r]++,e.element!=l&&n.appendChild(e.element,l),pv(e.element,n),n.removeStyle("text-indent",e.element),n.removeStyle("margin-left",e.element)}else{const t=s.find((t=>t.marginLeft==e.marginLeft));if(t){const i=t.listItemElements;n.appendChild(e.element,i[i.length-1]),n.removeStyle("margin-left",e.element)}else s.length=0}})(t,i,this.hasMultiLevelListPlugin),function(e,t){if(!e.childCount)return;const i=new pd(e.document),n=function(e,t){const i=t.createRangeIn(e),n=new Vr({name:/v:(.+)/}),r=[];for(const e of i){if("elementStart"!=e.type)continue;const t=e.item,i=t.previousSibling,o=i&&i.is("element")?i.name:null,s=["Chart"],a=n.match(t),l=t.getAttribute("o:gfxdata"),c="v:shapetype"===o,d=l&&s.some((e=>t.getAttribute("id").includes(e)));a&&l&&!c&&!d&&r.push(e.item.getAttribute("id"))}return r}(e,i);!function(e,t,i){const n=i.createRangeIn(t),r=new Vr({name:"img"}),o=[];for(const t of n)if(t.item.is("element")&&r.match(t.item)){const i=t.item,n=i.getAttribute("v:shapes")?i.getAttribute("v:shapes").split(" "):[];n.length&&n.every((t=>e.indexOf(t)>-1))?o.push(i):i.getAttribute("src")||o.push(i)}for(const e of o)i.remove(e)}(n,e,i),function(e,t,i){const n=i.createRangeIn(t),r=[];for(const t of n)if("elementStart"==t.type&&t.item.is("element","v:shape")){const i=t.item.getAttribute("id");if(e.includes(i))continue;o(t.item.parent.getChildren(),i)||r.push(t.item)}for(const e of r){const t={src:s(e)};e.hasAttribute("alt")&&(t.alt=e.getAttribute("alt"));const n=i.createElement("img",t);i.insertChild(e.index+1,n,e.parent)}function o(e,t){for(const i of e)if(i.is("element")){if("img"==i.name&&i.getAttribute("v:shapes")==t)return!0;if(o(i.getChildren(),t))return!0}return!1}function s(e){for(const t of e.getChildren())if(t.is("element")&&t.getAttribute("src"))return t.getAttribute("src")}}(n,e,i),function(e,t){const i=t.createRangeIn(e),n=new Vr({name:/v:(.+)/}),r=[];for(const e of i)"elementStart"==e.type&&n.match(e.item)&&r.push(e.item);for(const e of r)t.remove(e)}(e,i);const r=function(e,t){const i=t.createRangeIn(e),n=new Vr({name:"img"}),r=[];for(const e of i)e.item.is("element")&&n.match(e.item)&&e.item.getAttribute("src").startsWith("file://")&&r.push(e.item);return r}(e,i);r.length&&function(e,t,i){if(e.length===t.length)for(let n=0;n<e.length;n++){const r=`data:${t[n].type};base64,${wv(t[n].hex)}`;i.setAttribute("src",r,e[n])}}(r,function(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,i=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),n=e.match(i),r=[];if(n)for(const e of n){let i=!1;e.includes("\\pngblip")?i="image/png":e.includes("\\jpegblip")&&(i="image/jpeg"),i&&r.push({hex:e.replace(t,"").replace(/[^\da-fA-F]/g,""),type:i})}return r}(t),i)}(t,e.dataTransfer.getData("text/rtf")),function(e){const t=[],i=new pd(e.document);for(const{item:n}of i.createRangeIn(e))if(n.is("element")){for(const e of n.getClassNames())/\bmso/gi.exec(e)&&i.removeClass(e,n);for(const e of n.getStyleNames())/\bmso/gi.exec(e)&&i.removeStyle(e,n);(n.is("element","w:sdt")||n.is("element","w:sdtpr")&&n.isEmpty||n.is("element","o:p")&&n.isEmpty)&&t.push(n)}for(const e of t){const t=e.parent,n=t.getChildIndex(e);i.insertChild(n,e.getChildren(),t),i.remove(e)}}(t),e.content=t}}function kv(e,t,i,{blockElements:n,inlineObjectElements:r}){let o=i.createPositionAt(e,"forward"==t?"after":"before");return o=o.getLastMatchingPosition((({item:e})=>e.is("element")&&!n.includes(e.name)&&!r.includes(e.name)),{direction:t}),"forward"==t?o.nodeAfter:o.nodeBefore}function _v(e,t){return!!e&&e.is("element")&&t.includes(e.name)}const vv=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class xv{constructor(e){this.document=e}isActive(e){return vv.test(e)}execute(e){const t=new pd(this.document),{body:i}=e._parsedData;!function(e,t){for(const i of e.getChildren())if(i.is("element","b")&&"normal"===i.getStyle("font-weight")){const n=e.getChildIndex(i);t.remove(i),t.insertChild(n,i.getChildren(),e)}}(i,t),function(e,t){for(const i of t.createRangeIn(e)){const e=i.item;if(e.is("element","li")){const i=e.getChild(0);i&&i.is("element","p")&&t.unwrapElement(i)}}}(i,t),function(e,t){const i=new So(t.document.stylesProcessor),n=new bs(i,{renderingMode:"data"}),r=n.blockElements,o=n.inlineObjectElements,s=[];for(const i of t.createRangeIn(e)){const e=i.item;if(e.is("element","br")){const i=kv(e,"forward",t,{blockElements:r,inlineObjectElements:o}),n=kv(e,"backward",t,{blockElements:r,inlineObjectElements:o}),a=_v(i,r);(_v(n,r)||a)&&s.push(e)}}for(const e of s)e.hasClass("Apple-interchange-newline")?t.remove(e):t.replace(e,t.createElement("p"))}(i,t),e.content=i}}const Av=/<google-sheets-html-origin/i;class Ev{constructor(e){this.document=e}isActive(e){return Av.test(e)}execute(e){const t=new pd(this.document),{body:i}=e._parsedData;!function(e,t){for(const i of e.getChildren())if(i.is("element","google-sheets-html-origin")){const n=e.getChildIndex(i);t.remove(i),t.insertChild(n,i.getChildren(),e)}}(i,t),function(e,t){for(const i of e.getChildren())i.is("element","table")&&i.hasAttribute("xmlns")&&t.removeAttribute("xmlns",i)}(i,t),function(e,t){for(const i of e.getChildren())i.is("element","table")&&"0px"===i.getStyle("width")&&t.removeStyle("width",i)}(i,t),function(e,t){for(const i of Array.from(e.getChildren()))i.is("element","style")&&t.remove(i)}(i,t),e.content=i}}function Cv(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)))}const Tv={"(":")","[":"]","{":"}"};class Iv extends ar{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"mention")}execute(e){const t=this.editor.model,i=t.document.selection,n="string"==typeof e.mention?{id:e.mention}:e.mention,r=n.id,o=e.range||i.getFirstRange();if(!t.canEditAt(o))return;const s=e.text||r,a=Pv({_text:s,id:r},n);if(1!=e.marker.length)throw new _("mentioncommand-incorrect-marker",this);if(r.charAt(0)!=e.marker)throw new _("mentioncommand-incorrect-id",this);t.change((e=>{const n=Xn(i.getAttributes()),r=new Map(n.entries());r.set("mention",a);const l=t.insertContent(e.createText(s,r),o),c=l.start.nodeBefore,d=l.end.nodeAfter,h=d&&d.is("$text")&&d.data.startsWith(" ");let g=!1;if(c&&d&&c.is("$text")&&d.is("$text")){const e=c.data.slice(-1),t=e in Tv,i=t&&d.data.startsWith(Tv[e]);g=t&&i}g||h||t.insertContent(e.createText(" ",n),o.start.getShiftedBy(s.length))}))}}class Sv extends or{static get pluginName(){return"MentionEditing"}init(){const e=this.editor,t=e.model,i=t.document;t.schema.extend("$text",{allowAttributes:"mention"}),e.conversion.for("upcast").elementToAttribute({view:{name:"span",key:"data-mention",classes:"mention"},model:{key:"mention",value:e=>Rv(e)}}),e.conversion.for("downcast").attributeToElement({model:"mention",view:Mv}),e.conversion.for("downcast").add(Ov),i.registerPostFixer((e=>function(e,t,i){const n=t.differ.getChanges();let r=!1;for(const t of n){if("attribute"==t.type)continue;const n=t.position;if("$text"==t.name){const t=n.textNode&&n.textNode.nextSibling;r=Vv(n.textNode,e)||r,r=Vv(t,e)||r,r=Vv(n.nodeBefore,e)||r,r=Vv(n.nodeAfter,e)||r}if("$text"!=t.name&&"insert"==t.type){const t=n.nodeAfter;for(const i of e.createRangeIn(t).getItems())r=Vv(i,e)||r}if("insert"==t.type&&i.isInline(t.name)){const t=n.nodeAfter&&n.nodeAfter.nextSibling;r=Vv(n.nodeBefore,e)||r,r=Vv(t,e)||r}}return r}(e,i,t.schema))),i.registerPostFixer((e=>function(e,t){const i=t.differ.getChanges();let n=!1;for(const t of i)if("attribute"===t.type&&"mention"!=t.attributeKey){const i=t.range.start.nodeBefore,r=t.range.end.nodeAfter;for(const o of[i,r])Bv(o)&&o.getAttribute(t.attributeKey)!=t.attributeNewValue&&(e.setAttribute(t.attributeKey,t.attributeNewValue,o),n=!0)}return n}(e,i))),i.registerPostFixer((e=>function(e,t){const i=t.selection,n=i.focus;return!!(i.isCollapsed&&i.hasAttribute("mention")&&function(e){const t=e.isAtStart;return e.nodeBefore&&e.nodeBefore.is("$text")||t}(n))&&(e.removeSelectionAttribute("mention"),!0)}(e,i))),e.commands.add("mention",new Iv(e))}}function Pv(e,t){return Object.assign({uid:y()},e,t||{})}function Rv(e,t){const i=e.getAttribute("data-mention"),n=e.getChild(0);if(n)return Pv({id:i,_text:n.data},t)}function Ov(e){e.on("attribute:mention",((e,t,i)=>{const n=t.attributeNewValue;if(!t.item.is("$textProxy")||!n)return;const r=t.range.start;(r.textNode||r.nodeAfter).data!=n._text&&i.consumable.consume(t.item,e.name)}),{priority:"highest"})}function Mv(e,{writer:t}){if(!e)return;const i={class:"mention","data-mention":e.id},n={id:e.uid,priority:20};return t.createAttributeElement("span",i,n)}function Bv(e){return!(!e||!e.is("$text")&&!e.is("$textProxy")||!e.hasAttribute("mention"))&&e.data!=e.getAttribute("mention")._text}function Vv(e,t){return!!Bv(e)&&(t.removeAttribute("mention",e),!0)}var zv=a(8795),Nv={attributes:{"data-cke":!0}};Nv.setAttributes=br(),Nv.insert=fr().bind(null,"head"),Nv.domAPI=mr(),Nv.insertStyleElement=_r(),ur()(zv.A,Nv),zv.A&&zv.A.locals&&zv.A.locals;class Lv extends og{constructor(e){super(e),this.extendTemplate({attributes:{class:["ck-mentions"],tabindex:"-1"}})}selectFirst(){this.select(0)}selectNext(){const e=this.selected,t=this.items.getIndex(e);this.select(t+1)}selectPrevious(){const e=this.selected,t=this.items.getIndex(e);this.select(t-1)}select(e){let t=0;e>0&&e<this.items.length?t=e:e<0&&(t=this.items.length-1);const i=this.items.get(t);this.selected!==i&&(this.selected&&this.selected.removeHighlight(),i.highlight(),this.selected=i,this._isItemVisibleInScrolledArea(i)||(this.element.scrollTop=i.element.offsetTop))}executeSelected(){this.selected.fire("execute")}_isItemVisibleInScrolledArea(e){return new Zi(this.element).contains(new Zi(e.element))}}class Dv extends Jd{constructor(e,t){super(e),this.template=void 0,this.domElement=t,this.domElement.classList.add("ck-button"),this.set("isOn",!1),this.on("change:isOn",((e,t,i)=>{i?(this.domElement.classList.add("ck-on"),this.domElement.classList.remove("ck-off")):(this.domElement.classList.add("ck-off"),this.domElement.classList.remove("ck-on"))})),this.listenTo(this.domElement,"click",(()=>{this.fire("execute")}))}render(){super.render(),this.element=this.domElement}focus(){this.domElement.focus()}}class Fv extends eg{highlight(){this.children.first.isOn=!0}removeHighlight(){this.children.first.isOn=!1}}const jv=[En.arrowup,En.arrowdown,En.esc],Hv=[En.enter,En.tab];class Uv extends or{static get pluginName(){return"MentionUI"}static get requires(){return[Pu]}constructor(e){super(e),this._items=new Zn,this._mentionsView=this._createMentionView(),this._mentionsConfigurations=new Map,this._requestFeedDebounced=Fs(this._requestFeed,100),e.config.define("mention",{feeds:[]})}init(){const e=this.editor,i=e.config.get("mention.commitKeys")||Hv,n=jv.concat(i);this._balloon=e.plugins.get(Pu),e.editing.view.document.on("keydown",((e,t)=>{var r;r=t.keyCode,n.includes(r)&&this._isUIVisible&&(t.preventDefault(),e.stop(),t.keyCode==En.arrowdown&&this._mentionsView.selectNext(),t.keyCode==En.arrowup&&this._mentionsView.selectPrevious(),i.includes(t.keyCode)&&this._mentionsView.executeSelected(),t.keyCode==En.esc&&this._hideUIAndRemoveMarker())}),{priority:"highest"}),t({emitter:this._mentionsView,activator:()=>this._isUIVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUIAndRemoveMarker()});const r=e.config.get("mention.feeds");for(const e of r){const{feed:t,marker:i,dropdownLimit:n}=e;if(!Jv(i))throw new _("mentionconfig-incorrect-marker",null,{marker:i});const r={marker:i,feedCallback:"function"==typeof t?t.bind(this.editor):Kv(t),itemRenderer:e.itemRenderer,dropdownLimit:n};this._mentionsConfigurations.set(i,r)}this._setupTextWatcher(r),this.listenTo(e,"change:isReadOnly",(()=>{this._hideUIAndRemoveMarker()})),this.on("requestFeed:response",((e,t)=>this._handleFeedResponse(t))),this.on("requestFeed:error",(()=>this._hideUIAndRemoveMarker()))}destroy(){super.destroy(),this._mentionsView.destroy()}get _isUIVisible(){return this._balloon.visibleView===this._mentionsView}_createMentionView(){const e=this.editor.locale,t=new Lv(e);return t.items.bindTo(this._items).using((i=>{const{item:n,marker:r}=i,{dropdownLimit:o}=this._mentionsConfigurations.get(r),s=o||this.editor.config.get("mention.dropdownLimit")||10;if(t.items.length>=s)return null;const a=new Fv(e),l=this._renderItem(n,r);return l.delegate("execute").to(a),a.children.add(l),a.item=n,a.marker=r,a.on("execute",(()=>{t.fire("execute",{item:n,marker:r})})),a})),t.on("execute",((e,t)=>{const i=this.editor,n=i.model,r=t.item,o=t.marker,s=i.model.markers.get("mention"),a=n.createPositionAt(n.document.selection.focus),l=n.createPositionAt(s.getStart()),c=n.createRange(l,a);this._hideUIAndRemoveMarker(),i.execute("mention",{mention:r,text:r.text,marker:o,range:c}),i.editing.view.focus()})),t}_getItemRenderer(e){const{itemRenderer:t}=this._mentionsConfigurations.get(e);return t}_requestFeed(e,t){this._lastRequested=t;const{feedCallback:i}=this._mentionsConfigurations.get(e),n=i(t);n instanceof Promise?n.then((i=>{this._lastRequested==t?this.fire("requestFeed:response",{feed:i,marker:e,feedText:t}):this.fire("requestFeed:discarded",{feed:i,marker:e,feedText:t})})).catch((t=>{this.fire("requestFeed:error",{error:t}),v("mention-feed-callback-error",{marker:e})})):this.fire("requestFeed:response",{feed:n,marker:e,feedText:t})}_setupTextWatcher(e){const t=this.editor,i=e.map((e=>({...e,pattern:$v(e.marker,e.minimumCharacters||0)}))),n=new Cm(t.model,function(e){return t=>{const i=Wv(e,t);if(!i)return!1;let n=0;0!==i.position&&(n=i.position-1);const r=t.substring(n);return i.pattern.test(r)}}(i));n.on("matched",((e,n)=>{const r=Wv(i,n.text),o=t.model.document.selection.focus,s=t.model.createPositionAt(o.parent,r.position);if(function(e){const t=e.textNode&&e.textNode.hasAttribute("mention"),i=e.nodeBefore;return t||i&&i.is("$text")&&i.hasAttribute("mention")}(o)||function(e){const t=e.nodeAfter;return t&&t.is("$text")&&t.hasAttribute("mention")}(s))return void this._hideUIAndRemoveMarker();const a=function(e,t){let i=0;0!==e.position&&(i=e.position-1);const n=$v(e.marker,0);return t.substring(i).match(n)[2]}(r,n.text),l=r.marker.length+a.length,c=o.getShiftedBy(-l),d=o.getShiftedBy(-a.length),h=t.model.createRange(c,d);if(Zv(t)){const e=t.model.markers.get("mention");t.model.change((t=>{t.updateMarker(e,{range:h})}))}else t.model.change((e=>{e.addMarker("mention",{range:h,usingOperation:!1,affectsData:!1})}));this._requestFeedDebounced(r.marker,a)})),n.on("unmatched",(()=>{this._hideUIAndRemoveMarker()}));const r=t.commands.get("mention");return n.bind("isEnabled").to(r),n}_handleFeedResponse(e){const{feed:t,marker:i}=e;if(!Zv(this.editor))return;this._items.clear();for(const e of t){const t="object"!=typeof e?{id:e,text:e}:e;this._items.add({item:t,marker:i})}const n=this.editor.model.markers.get("mention");this._items.length?this._showOrUpdateUI(n):this._hideUIAndRemoveMarker()}_showOrUpdateUI(e){this._isUIVisible?this._balloon.updatePosition(this._getBalloonPanelPositionData(e,this._mentionsView.position)):this._balloon.add({view:this._mentionsView,position:this._getBalloonPanelPositionData(e,this._mentionsView.position),singleViewMode:!0}),this._mentionsView.position=this._balloon.view.position,this._mentionsView.selectFirst()}_hideUIAndRemoveMarker(){this._balloon.hasView(this._mentionsView)&&this._balloon.remove(this._mentionsView),Zv(this.editor)&&this.editor.model.change((e=>e.removeMarker("mention"))),this._mentionsView.position=void 0}_renderItem(e,t){const i=this.editor;let n,r=e.id;const o=this._getItemRenderer(t);if(o){const t=o(e);"string"!=typeof t?n=new Dv(i.locale,t):r=t}if(!n){const e=new gh(i.locale);e.label=r,e.withText=!0,n=e}return n}_getBalloonPanelPositionData(e,t){const i=this.editor,n=i.editing,r=n.view.domConverter,o=n.mapper;return{target:()=>{let t=e.getRange();"$graveyard"==t.start.root.rootName&&(t=i.model.document.selection.getFirstRange());const n=o.toViewRange(t);return Zi.getDomRangeRects(r.viewRangeToDom(n)).pop()},limiter:()=>{const e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},positions:qv(t,i.locale.uiLanguageDirection)}}}function qv(e,t){const i={caret_se:e=>({top:e.bottom+3,left:e.right,name:"caret_se",config:{withArrow:!1}}),caret_ne:(e,t)=>({top:e.top-t.height-3,left:e.right,name:"caret_ne",config:{withArrow:!1}}),caret_sw:(e,t)=>({top:e.bottom+3,left:e.right-t.width,name:"caret_sw",config:{withArrow:!1}}),caret_nw:(e,t)=>({top:e.top-t.height-3,left:e.right-t.width,name:"caret_nw",config:{withArrow:!1}})};return Object.prototype.hasOwnProperty.call(i,e)?[i[e]]:"rtl"!==t?[i.caret_se,i.caret_sw,i.caret_ne,i.caret_nw]:[i.caret_sw,i.caret_se,i.caret_nw,i.caret_ne]}function Wv(e,t){let i;for(const n of e){const e=t.lastIndexOf(n.marker);e>0&&!t.substring(e-1).match(n.pattern)||(!i||e>=i.position)&&(i={marker:n.marker,position:e,minimumCharacters:n.minimumCharacters,pattern:n.pattern})}return i}function $v(e,t){const i=0==t?"*":`{${t},}`,n=d.features.isRegExpUnicodePropertySupported?"\\p{Ps}\\p{Pi}\"'":"\\(\\[{\"'";return new RegExp(`(?:^|[ ${n}])([${e}])(.${i})$`,"u")}function Kv(e){return t=>e.filter((e=>("string"==typeof e?e:String(e.id)).toLowerCase().includes(t.toLowerCase())))}function Jv(e){return e&&1==e.length}function Zv(e){return e.model.markers.has("mention")}var Gv=a(9829),Yv={attributes:{"data-cke":!0}};Yv.setAttributes=br(),Yv.insert=fr().bind(null,"head"),Yv.domAPI=mr(),Yv.insertStyleElement=_r(),ur()(Gv.A,Yv),Gv.A&&Gv.A.locals&&Gv.A.locals;class Qv extends or{toMentionAttribute(e,t){return Rv(e,t)}static get pluginName(){return"Mention"}static get requires(){return[Sv,Uv]}}var Xv=a(181),ex=a.n(Xv);const tx={Bold:"help-center-wysiwyg.bold",Italic:"help-center-wysiwyg.italic",Link:"help-center-wysiwyg.link",Code:"help-center-wysiwyg.code","Insert image":"help-center-wysiwyg.insert-image","Upload image from computer":"help-center-wysiwyg.insert-image","Block quote":"help-center-wysiwyg.block-quote","Insert code block":"help-center-wysiwyg.insert-code-block","Bulleted List":"help-center-wysiwyg.bulleted-list","Numbered List":"help-center-wysiwyg.numbered-list",Heading:"help-center-wysiwyg.heading","Heading 1":"help-center-wysiwyg.heading-1","Heading 2":"help-center-wysiwyg.heading-2","Heading 3":"help-center-wysiwyg.heading-3",Paragraph:"help-center-wysiwyg.paragraph","Choose heading":"help-center-wysiwyg.choose-heading","Change image text alternative":"help-center-wysiwyg.change-image-text-alternative","Text alternative":"help-center-wysiwyg.text-alternative",Save:"help-center-wysiwyg.save",Cancel:"help-center-wysiwyg.cancel","In line":"help-center-wysiwyg.in-line","Left aligned image":"help-center-wysiwyg.left-aligned-image","Right aligned image":"help-center-wysiwyg.right-aligned-image","Centered image":"help-center-wysiwyg.centered-image","Side image":"help-center-wysiwyg.side-image","Toggle caption on":"help-center-wysiwyg.toggle-caption-on","Toggle caption off":"help-center-wysiwyg.toggle-caption-off","Plain text":"help-center-wysiwyg.plain-text","Upload failed":"help-center-wysiwyg.upload-failed","Link URL":"help-center-wysiwyg.link-url","Edit link":"help-center-wysiwyg.edit-link",Unlink:"help-center-wysiwyg.unlink",Undo:"help-center-wysiwyg.undo",Redo:"help-center-wysiwyg.redo","Enter image caption":"help-center-wysiwyg.enter-image-caption","Show more items":"help-center-wysiwyg.show-more-items","Editor toolbar":"help-center-wysiwyg.editor-toolbar"};let ix={};function nx(e,t){let i=ix[e];if(void 0!==i&&"object"==typeof t)for(const[e,n]of Object.entries(t))i=i.replaceAll(`{{${e}}}`,n);return i}const rx=class{constructor(e){this._editor=e}toData(e){const t=e=>{for(const i of e)"span"===i.name&&i.hasAttribute("data-mention")?(i.name="x-zendesk-user",i.getChild(0)._textData=i.getAttribute("data-user-id"),i._classes=new Set,i._attrs=new Map,i._attrs.set("data-user-name",i.getAttribute("data-mention"))):i.getChildren&&t(i.getChildren())};return t(e.getChildren()),this._editor.data.htmlProcessor.toData(e)}toView(e){const t=(new window.DOMParser).parseFromString(e,"text/html");return t.querySelectorAll("x-zendesk-user").forEach((e=>{const i=e.textContent,n=e.getAttribute("data-user-name"),r=t.createElement("span");r.classList.add("mention"),r.setAttribute("data-user-id",i),r.setAttribute("data-mention",n),r.textContent=`@${n}`,e.parentElement.replaceChild(r,e)})),this._editor.data.htmlProcessor.toView(t.body.innerHTML)}};var ox=a(4014),sx={attributes:{"data-cke":!0}};sx.setAttributes=br(),sx.insert=fr().bind(null,"head"),sx.domAPI=mr(),sx.insertStyleElement=_r(),ur()(ox.A,sx),ox.A&&ox.A.locals&&ox.A.locals;const ax=()=>{const e=lx.getData();return(new DOMParser).parseFromString(e,"text/html").body.querySelectorAll("x-zendesk-user").length};let lx;function cx(e){lx=e,e.data.processor=new rx(e),e.conversion.for("upcast").elementToAttribute({view:{name:"span",key:"data-mention",classes:"mention",attributes:{"data-user-id":!0}},model:{key:"mention",value:t=>e.plugins.get("Mention").toMentionAttribute(t,{userId:t.getAttribute("data-user-id"),userName:t.getAttribute("data-mention")})},converterPriority:"high"}),e.conversion.for("downcast").attributeToElement({model:"mention",view:(e,{writer:t})=>{if(e)return t.createAttributeElement("span",{class:"mention","data-user-name":e.userName,"data-user-id":e.userId,"data-mention":e.uid},{priority:20,id:e.uid})},converterPriority:"high"});const t=e.plugins.get(Qv),i=e.plugins.get(xu);e.model.document.on("change:data",ex()((()=>{const e=ax();t.set("count",e)}),600)),t.on("change:count",((e,t,n,r)=>{15===n&&i.showWarning("Mentions limit reeched",{namespace:"mention:limit",title:nx("help-center-wysiwyg.mentionable_user_limit_exceeded")}),15===r&&n<15&&i.showSuccess("Mentions within limit",{namespace:"mention:limit"})}))}cx.config={dropdownLimit:10,feeds:[{marker:"@",minimumCharacters:1,feed:async e=>{if(ax()>=15)return Promise.resolve([]);const t=await(async e=>{const t=await fetch(`/hc/api/internal/communities/mentions.json?query=${e}`);return t.ok?t.json():Promise.reject(t)})(e);return t.map((e=>({id:`@${e.name}`,userId:e.id,userName:e.name,avatarUrl:e.avatar_url})))},itemRenderer:e=>{const t=document.createElement("div");t.classList.add("hc-mentions__item"),t.setAttribute("data-test-id",`at-mentions-suggestion-${e.userId}`);const i=document.createElement("span");if(i.classList.add("hc-mentions__name"),i.innerText=e.userName,e.avatarUrl){const i=document.createElement("div");i.classList.add("hc-mentions__avatar"),i.style.backgroundImage=`url(${e.avatarUrl})`,t.append(i)}return t.append(i),t}}]};const dx=cx;class hx{constructor(e,t){this.loader=e,this.editor=t}upload(){return this.loader.file.then((e=>this._upload(e)))}abort(){this.xhr&&this.xhr.abort()}async _upload(e){const t=this.editor.config.get("imageUpload.brandId"),{user:{authenticity_token:i}}=await fetch("/api/v2/users/me.json").then((e=>e.json())),{upload:n,errors:r}=await fetch("/api/v2/guide/user_images/uploads",{method:"POST",credentials:"same-origin",headers:{"x-csrf-token":i},body:JSON.stringify({content_type:e.type,file_size:e.size})}).then((e=>e.json()));if(r)throw new Error(nx("help-center-wysiwyg.image_upload_generic_error",{max_size:2}));await fetch(n.url,{method:"PUT",headers:n.headers,body:e});const{errors:o,user_image:{path:s}}=await fetch("/api/v2/guide/user_images",{method:"POST",credentials:"same-origin",headers:{"x-csrf-token":i},body:JSON.stringify({token:n.token,brand_id:t.toString()})}).then((e=>e.json()));if(o)throw new Error(nx("help-center-wysiwyg.image_upload_generic_error",{max_size:2}));return{default:s}}}function gx(e){if("number"!=typeof e.config.get("imageUpload.brandId"))throw new Error("AUSImageUploadPlugin: config.imageUpload.brandId must be defined");e.plugins.get("FileRepository").createUploadAdapter=t=>new hx(t,e)}class ux{constructor(e,t){this.loader=e,this.config=t}upload(){return this.loader.file.then((e=>new Promise(((t,i)=>{this._initRequest(),this._initListeners(t,i,e),this._sendRequest(t,i,e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.withCredentials=!0,e.open("POST",this.config.endpoint,!0),e.responseType="json"}_initListeners(e,t){const i=this.xhr,n=this.loader,r=nx("help-center-wysiwyg.image_upload_generic_error",{max_size:50});i.addEventListener("error",(()=>t(r))),i.addEventListener("abort",(()=>t())),i.addEventListener("load",(()=>{const n=i.response;if(!n||n.error||n[0]?.error)return t(n&&n.error?n.error.message:r);e({urls:{default:this.config.urlFromResponse(n)},token:n.id})})),i.upload&&i.upload.addEventListener("progress",(e=>{e.lengthComputable&&(n.uploadTotal=e.total,n.uploaded=e.loaded)}))}async _sendRequest(e,t,i){const n=new FormData,r=await fetch("/api/v2/help_center/sessions.json");if(r.ok){const{current_session:{csrf_token:e}}=await r.json();n.append("authenticity_token",e),n.append("inline",!0),n.append("file",i),this.xhr.send(n)}else t()}}function px(e){if("string"!=typeof e.config.get("imageUpload.endpoint"))throw new Error("XHRImageUploadAdapter: config.imageUpload.endpoint must be defined");if("function"!=typeof e.config.get("imageUpload.urlFromResponse"))throw new Error("XHRImageUploadAdapter: config.imageUpload.urlFromResponse must be defined");e.plugins.get("FileRepository").createUploadAdapter=t=>new ux(t,e.config.get("imageUpload"))}function mx(e){const t=e.sourceElement?.form;if(!t)throw new Error("AttachInlineImagesPlugin: No form found for editor");e.plugins.get("ImageUploadEditing").on("uploadComplete",((e,{data:i})=>{const{token:n,urls:{default:r}}=i,o=document.createElement("input");o.hidden=!0,o.name="request[attachments][]",o.value=JSON.stringify({id:n,inline:!0,_src:r}),t.appendChild(o)})),t.addEventListener("submit",(i=>{i.preventDefault(),i.stopPropagation();const n=e.getData(),r=(new DOMParser).parseFromString(n,"text/html");document.querySelectorAll("input[name='request[attachments][]']").forEach((e=>{const{inline:t,_src:i}=JSON.parse(e.value);t&&(r.querySelector(`img[src="${i}"]`)||e.remove())})),setTimeout(t.submit.bind(t),0)}),!0)}var wx=a(4474),fx={attributes:{"data-cke":!0}};function yx(e){e.sourceElement.parentNode.classList.add("hc-ckeditor--mark-external-images")}function bx(e){const t=e.sourceElement?.form;if(t){if(!Array.isArray(e.config.get("hiddenFormFields.fields")))throw new Error("HiddenFormFieldsPlugin: config.hiddenFormFields.fields must be an array of [name, value] pairs");return e.config.get("hiddenFormFields.fields").forEach((([e,i])=>{const n=document.createElement("input");n.type="hidden",n.name=e,n.value=i,t.appendChild(n)})),e}}function kx(e,t){const i={};for(const n of t)e.hasAttribute(n)&&(i[n]=e.getAttribute(n));return i}function _x(e){const t=e.sourceElement,i=e.ui.view,n=e.ui.view.editable;if(t){const e=kx(t,["aria-labelledby"]);i.extendTemplate({attributes:e});const r=kx(t,["aria-describedby","aria-invalid"]);t.hasAttribute("required")&&(r["aria-required"]="true"),n.extendTemplate({attributes:r})}}function vx(e){e.model.document.on("change:data",(()=>{const t=e.getData(),i=e.sourceElement;i.value=t,i.dispatchEvent(new Event("input",{bubbles:!0}))}))}fx.setAttributes=br(),fx.insert=fr().bind(null,"head"),fx.domAPI=mr(),fx.insertStyleElement=_r(),ur()(wx.A,fx),wx.A&&wx.A.locals&&wx.A.locals;var xx=a(4235),Ax={attributes:{"data-cke":!0}};Ax.setAttributes=br(),Ax.insert=fr().bind(null,"head"),Ax.domAPI=mr(),Ax.insertStyleElement=_r(),ur()(xx.A,Ax),xx.A&&xx.A.locals&&xx.A.locals;class Ex extends Qp{}Ex.builtinPlugins=[class extends or{static get requires(){return[Jm,Ym]}static get pluginName(){return"BlockQuote"}},class extends or{static get requires(){return[ew,nw]}static get pluginName(){return"Bold"}},class extends or{static get requires(){return[ow,cw]}static get pluginName(){return"Code"}},class extends or{static get requires(){return[Cw,Rw]}static get pluginName(){return"CodeBlock"}},class extends or{static get requires(){return[nh,Wf,om,Yf,cm,Am,oy]}static get pluginName(){return"Essentials"}},class extends or{static get requires(){return[py,fy]}static get pluginName(){return"Heading"}},class extends or{static get requires(){return[tb,nb]}static get pluginName(){return"Image"}},class extends or{static get requires(){return[sb,ab]}static get pluginName(){return"ImageCaption"}},class extends or{static get requires(){return[Mb,Lb,Vb]}static get pluginName(){return"ImageResize"}},class extends or{static get requires(){return[bf,Ay]}static get pluginName(){return"ImageToolbar"}afterInit(){const e=this.editor,t=e.t,i=e.plugins.get(bf),n=e.plugins.get("ImageUtils");var r;i.register("image",{ariaLabel:t("Image toolbar"),items:(r=e.config.get("image.toolbar")||[],r.map((e=>N(e)?e.name:e))),getRelatedElement:e=>n.getClosestSelectedImageWidget(e)})}},class extends or{static get requires(){return[tk,rk]}static get pluginName(){return"ImageStyle"}},class extends or{static get pluginName(){return"ImageUpload"}static get requires(){return[Pb,ub,xb]}},class extends or{static get requires(){return[hw,uw]}static get pluginName(){return"Italic"}},class extends or{static get requires(){return[qk,Xk,i_]}static get pluginName(){return"Link"}},class extends or{static get requires(){return[Z_,X_]}static get pluginName(){return"List"}},xu,dy,class extends or{static get pluginName(){return"PasteFromOffice"}static get requires(){return[$w]}init(){const e=this.editor,t=e.plugins.get("ClipboardPipeline"),i=e.editing.view.document,n=[],r=this.editor.plugins.has("MultiLevelList");n.push(new bv(i,r)),n.push(new xv(i)),n.push(new Ev(i)),t.on("inputTransformation",((t,r)=>{if(r._isTransformedWithPasteFromOffice)return;if(e.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const o=r.dataTransfer.getData("text/html"),s=n.find((e=>e.isActive(o)));s&&(r._parsedData||(r._parsedData=function(e,t){const i=new DOMParser,n=function(e){return Cv(Cv(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>",i=e.indexOf(t);if(i<0)return e;const n=e.indexOf("</html>",i+7);return e.substring(0,i+7)+(n>=0?e.substring(n):"")}(e=(e=e.replace(/<!--\[if gte vml 1]>/g,"")).replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,""))),r=i.parseFromString(n,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((e=>{const t=e,i=t.innerText.length||0;t.innerText=Array(i+1).join(" ").substr(0,i)}))}(r);const o=r.body.innerHTML,s=function(e,t){const i=new So(t),n=new bs(i,{renderingMode:"data"}),r=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)r.appendChild(o[0]);return n.domToView(r,{skipComments:!0})}(r,t),a=function(e){const t=[],i=[],n=Array.from(e.getElementsByTagName("style"));for(const e of n)e.sheet&&e.sheet.cssRules&&e.sheet.cssRules.length&&(t.push(e.sheet),i.push(e.innerHTML));return{styles:t,stylesString:i.join(" ")}}(r);return{body:s,bodyString:o,styles:a.styles,stylesString:a.stylesString}}(o,i.stylesProcessor)),s.execute(r),r._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}},class extends or{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(e){super(e),e.config.define("typing",{transformations:{include:zm}})}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,i=e.plugins.get("Delete"),n=function(e){const t=e.extra||[],i=e.remove||[],n=e=>!i.includes(e);return function(e){const t=new Set;for(const i of e)if("string"==typeof i&&Vm[i])for(const e of Vm[i])t.add(e);else t.add(i);return Array.from(t)}(e.include.concat(t).filter(n)).filter(n).map((e=>"string"==typeof e&&Bm[e]?Bm[e]:e)).filter((e=>"object"==typeof e)).map((e=>({from:Nm(e.from),to:Lm(e.to)})))}(e.config.get("typing.transformations")),r=new Cm(e.model,(e=>{for(const t of n)if(t.from.test(e))return{normalizedTransformation:t}}));r.on("matched:data",((e,n)=>{if(!n.batch.isTyping)return;const{from:r,to:o}=n.normalizedTransformation,s=r.exec(n.text),a=o(s.slice(1)),l=n.range;let c=s.index;t.enqueueChange((e=>{for(let i=1;i<s.length;i++){const n=s[i],r=a[i-1];if(null==r){c+=n.length;continue}const o=l.start.getShiftedBy(c),d=t.createRange(o,o.getShiftedBy(n.length)),h=Dm(o);t.insertContent(e.createText(r,h),d),c+=r.length}t.enqueueChange((()=>{i.requestUndoOnBackspace()}))}))})),r.bind("isEnabled").to(this)}},function(e){const t=e.sourceElement?.form;t&&t.addEventListener("submit",(e=>{e.preventDefault(),t.submit()}))},function(e){e.on("ready",(()=>{e.ui.view.element.setAttribute("data-test-id","zd-wysiwyg-editor")}))},function(e){e.on("ready",(()=>{e.ui.view.toolbar.element.setAttribute("tabindex","0")}))}],Ex.defaultConfig={toolbar:{items:["heading","|","bold","italic","code","|","codeBlock","link","bulletedList","numberedList","|","imageUpload","blockQuote","undo","redo"]},link:{defaultProtocol:"https://"},codeBlock:{languages:[{language:"plaintext",label:"Plain text"}]},ui:{viewportOffset:{top:document.querySelector("zd-hc-navbar")?.offsetHeight||0}},image:{upload:{types:["jpeg","png","gif"]}}};const Cx=({editorType:e,hasAtMentions:t,userRole:i,brandId:n,baseLocale:r})=>{const o="anonymous"===i,s={licenseKey:"Q0E0TmpJakhUSWtMaUdIRjJpekVtTUtyQVlwWGUrU0xoSlB6L1huVWFvZDhYRWRCZVhsV0JGYnFhR1RPZWJLSk9LdGpMeUdEZnh0RERYbW84ZjJPU0V0SHFKbHI0TU1kaTA4PS1NakF5TlRBeU1qUT0=",language:r},a={...s,extraPlugins:[t&&Qv,t&&dx,gx,yx].filter(Boolean),mention:dx.config,image:{toolbar:["imageTextAlternative","|","imageStyle:inline","imageStyle:block","imageStyle:alignLeft","imageStyle:alignRight","imageStyle:alignBlockLeft","imageStyle:alignBlockRight","|","toggleImageCaption"]},imageUpload:{brandId:n}};switch(e){case"comments":return{...a,extraPlugins:[...a.extraPlugins,bx],hiddenFormFields:{fields:[["content_type","text/html"]]},image:{styles:{options:["inline"]}}};case"communityPosts":return a;case"supportRequests":return{...s,extraPlugins:[px,mx,_x,vx],removePlugins:[o&&"Image"].filter(Boolean),toolbar:{removeItems:[o&&"imageUpload"].filter(Boolean)},imageUpload:{endpoint:"/hc/request_uploads",urlFromResponse:e=>e.url},image:{styles:{options:["inline"]}}};default:throw new Error(`No configuration exists for editor type: "${e}"`)}},Tx=async(e,t)=>(await(async e=>{const{translations:t}=await a(9886)(`./${e}.json`);var i;ix=t,function(e,t,i){Ui.window.CKEDITOR_TRANSLATIONS[e]||(Ui.window.CKEDITOR_TRANSLATIONS[e]={});const n=Ui.window.CKEDITOR_TRANSLATIONS[e];n.dictionary=n.dictionary||{},n.getPluralForm=n.getPluralForm,Object.assign(n.dictionary,t)}(e,(i=tx,Object.fromEntries(Object.entries(i).map((([e,t])=>[e,nx(t)])))))})(t.baseLocale),await Ex.create(e,Cx(t))),Ix=Ex})(),l})(),i.exports=r();var s=t({__proto__:null},[o.exports]);export{s as m};
|