
| Current Path : /var/www/html/c12park/web/core/assets/vendor/ckeditor5/ckeditor5-dll/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/c12park/web/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js |
!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(may require <kbd>Fn</kbd>)","%0 of %1":"%0 of %1",Accept:"Accept",Accessibility:"Accessibility","Accessibility help":"Accessibility help",Aquamarine:"Aquamarine",Back:"Back","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Below, you can find a list of keyboard shortcuts that can be used in the editor.",Black:"Black",Blue:"Blue",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:",Clear:"Clear","Click to edit block":"Click to edit block",Close:"Close","Close contextual balloons, dropdowns, and dialogs":"Close contextual balloons, dropdowns, and dialogs","Color picker":"Color picker","Content editing keystrokes":"Content editing keystrokes","Copy selected content":"Copy selected content","Dim grey":"Dim grey","Drag to move":"Drag to move","Dropdown menu":"Dropdown menu","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor dialog":"Editor dialog","Editor menu bar":"Editor menu bar","Editor toolbar":"Editor toolbar","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.",File:"File",Green:"Green",Grey:"Grey","Help Contents. To close this dialog press ESC.":"Help Contents. To close this dialog press ESC.",HEX:"HEX",Insert:"Insert","Insert a hard break (a new paragraph)":"Insert a hard break (a new paragraph)","Insert a new paragraph directly after a widget":"Insert a new paragraph directly after a widget","Insert a new paragraph directly before a widget":"Insert a new paragraph directly before a widget","Insert a soft break (a <code><br></code> element)":"Insert a soft break (a <code><br></code> element)","Insert image with file manager":"Insert image with file manager","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert with file manager":"Insert with file manager","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Keystrokes that can be used when a widget is selected (for example: image, table, etc.)","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",MENU_BAR_MENU_EDIT:"Edit",MENU_BAR_MENU_FILE:"File",MENU_BAR_MENU_FONT:"Font",MENU_BAR_MENU_FORMAT:"Format",MENU_BAR_MENU_HELP:"Help",MENU_BAR_MENU_INSERT:"Insert",MENU_BAR_MENU_TEXT:"Text",MENU_BAR_MENU_TOOLS:"Tools",MENU_BAR_MENU_VIEW:"View","Move focus between form fields (inputs, buttons, etc.)":"Move focus between form fields (inputs, buttons, etc.)","Move focus from an editable area back to the parent widget":"Move focus from an editable area back to the parent widget","Move focus in and out of an active dialog window":"Move focus in and out of an active dialog window","Move focus to the menu bar, navigate between menu bars":"Move focus to the menu bar, navigate between menu bars","Move focus to the toolbar, navigate between toolbars":"Move focus to the toolbar, navigate between toolbars","Move the caret to allow typing directly after a widget":"Move the caret to allow typing directly after a widget","Move the caret to allow typing directly before a widget":"Move the caret to allow typing directly before a widget","Navigate through the toolbar or menu bar":"Navigate through the toolbar or menu bar",Next:"Next","No results found":"No results found","No searchable items":"No searchable items","Open the accessibility help dialog":"Open the accessibility help dialog",Orange:"Orange",Paragraph:"Paragraph","Paste content":"Paste content","Paste content as plain text":"Paste content as plain text",'Please enter a valid color (e.g. "ff0000").':'Please enter a valid color (e.g. "ff0000").',"Please try a different phrase or check the spelling.":"Please try a different phrase or check the spelling.","Press %0 for help.":"Press %0 for help.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Restore default":"Restore default","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Save:"Save","Select all":"Select all","Show more items":"Show more items",Source:"Source","These keyboard shortcuts allow for quick access to content editing features.":"These keyboard shortcuts allow for quick access to content editing features.","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on",Turquoise:"Turquoise",Undo:"Undo",Update:"Update","Upload in progress":"Upload in progress","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.","User interface and content navigation keystrokes":"User interface and content navigation keystrokes",White:"White","Widget toolbar":"Widget toolbar","With file manager":"With file manager",Yellow:"Yellow"}),t.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
/*!
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/(()=>{var e={"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-clipboard/theme/clipboard.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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;z-index:var(--ck-z-default)}: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{outline:none!important;zoom:.6}.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-core/theme/core.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,":root{--ck-content-font-family:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-content-font-size:medium;--ck-content-font-color:#000;--ck-content-line-height:1.5;--ck-content-word-break:break-word}.ck-content{color:var(--ck-content-font-color);font-family:var(--ck-content-font-family);font-size:var(--ck-content-font-size);line-height:var(--ck-content-line-height);word-break:var(--ck-content-word-break)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-engine/theme/placeholder.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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}@media (forced-colors:active){.ck .ck-placeholder,.ck.ck-placeholder{forced-color-adjust:preserve-parent-color}}.ck .ck-placeholder:before,.ck.ck-placeholder:before{cursor:text}@media (forced-colors:none){.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text)}}@media (forced-colors:active){.ck .ck-placeholder:before,.ck.ck-placeholder:before{font-style:italic;margin-left:1px}}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-engine/theme/renderer.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}.ck.ck-aria-live-region-list{list-style-type:none}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/autocomplete/autocomplete.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;max-height:200px;min-width:auto;overflow-y:auto}.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{box-shadow:var(--ck-drop-shadow),0 0}.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/button/button.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{-webkit-appearance:none;background:var(--ck-color-button-default-background);border:1px solid transparent;border-radius:0;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: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-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)}@media (prefers-reduced-motion:reduce){.ck.ck-button,a.ck.ck-button{transition:none}}.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;opacity:.5}[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-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-right:var(--ck-spacing-medium)}[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-medium)}.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);color:var(--ck-color-button-on-color)}.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-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);color:var(--ck-color-button-action-text)}.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-bold,a.ck.ck-button-bold{font-weight:700}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/button/listitembutton.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-list-item-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list-item-button{text-align:left}[dir=rtl] .ck.ck-list-item-button{text-align:right}[dir=ltr] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-right:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-holder{display:inline-flex;height:.9em;width:.9em}[dir=ltr] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-left:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-icon{height:100%}.ck.ck-button.ck-list-item-button{padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2)}.ck.ck-button.ck-list-item-button,.ck.ck-button.ck-list-item-button.ck-on{background:var(--ck-color-list-background);color:var(--ck-color-text)}[dir=ltr] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-right:var(--ck-spacing-small)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable):not(.ck-disabled),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled):not(.ck-disabled){color:var(--ck-color-text)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/button/switchbutton.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;border-radius:0;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.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 .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);border-radius:0;height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.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)}@media (prefers-reduced-motion:reduce){.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{transition:none}}.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/collapsible/collapsible.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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;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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/colorgrid/colorgrid.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{transition:box-shadow .2s ease}@media (forced-colors:none){.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;width:var(--ck-color-grid-tile-size)}.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.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.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: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)}}@media (forced-colors:active){.ck.ck-color-grid__tile{height:unset;min-height:unset;min-width:unset;padding:0 var(--ck-spacing-small);width:unset}.ck.ck-color-grid__tile .ck-button__label{display:inline-block}}@media (prefers-reduced-motion:reduce){.ck.ck-color-grid__tile{transition:none}}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.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 .ck.ck-icon{display:block}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/colorpicker/colorpicker.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/colorselector/colorselector.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dialog/dialog.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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:not(.ck-dialog_modal) .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-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);border:1px solid var(--ck-color-base-border);max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width);overscroll-behavior:contain}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border)}.ck-dialog-scroll-locked{overflow:hidden}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dialog/dialogactions.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/dropdown.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;bottom:0;min-width:100%}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0}.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/listdropdown.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenu.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-dropdown-menu-list__nested-menu{display:block}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenubutton.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button{border-radius:0;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus{border-color:transparent;box-shadow:none}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-icon-spacing:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:calc(var(--ck-spacing-small)*-1);transform:rotate(90deg)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-dropdown-menu-list__nested-menu__button__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenulistitem.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,":root{--ck-dropdown-menu-menu-item-min-width:18em}.ck.ck-dropdown-menu-list__nested-menu__item{min-width:var(--ck-dropdown-menu-menu-item-min-width)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenulistitembutton.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck-button.ck-dropdown-menu-list__nested-menu__item__button{border-radius:0}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container,.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus{border-color:transparent;box-shadow:none}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenupanel.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{max-height:314px;overflow-y:auto;position:absolute;z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-menu-menu-panel-max-width:75vw}.ck.ck-balloon-panel.ck-dropdown-menu__nested-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-dropdown-menu-menu-panel-max-width)}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:after,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:before{display:none}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_es,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_se{border-top-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_sw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ws{border-top-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_en,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ne{border-bottom-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_nw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_wn{border-bottom-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:focus{outline:none}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/splitbutton.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{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}.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}',""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/editorui/accessibilityhelp.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/editorui/editorui.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/formheader/formheader.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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;overflow:hidden;text-overflow:ellipsis}:root{--ck-form-header-height:3.384em}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);flex-shrink:0;height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header>.ck-icon{flex-shrink:0;margin-inline-end:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:1.153em;font-weight:700}.ck.ck-form__header:has(.ck-button-back.ck-hidden){padding-inline:var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-form__header:has(.ck-button-back:not(.ck-hidden)){padding-inline:var(--ck-spacing-small) var(--ck-spacing-small)}.ck.ck-form__header>.ck-button-back{margin-inline-end:var(--ck-spacing-small)}.ck.ck-form__header>.ck.ck-button{flex-shrink:0}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/formrow/formrow.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-form__row{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}.ck.ck-form__row.ck-form__row_large-top-padding{padding-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-form__row_large-bottom-padding{padding-bottom:var(--ck-spacing-large)}.ck.ck-form__row.ck-form__row_with-submit{flex-wrap:nowrap}.ck.ck-form__row.ck-form__row_with-submit>:not(:first-child){margin-inline-start:var(--ck-spacing-standard)}.ck.ck-form__row>.ck.ck-form__row{padding:0}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/icon/icon.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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-icon-font-size:.8333350694em}.ck.ck-icon{font-size:var(--ck-icon-font-size);height:var(--ck-icon-size);width:var(--ck-icon-size)}.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/input/input.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);border-radius:0;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-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}@media (prefers-reduced-motion:reduce){.ck.ck-input{transition:none}}.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)}@media (prefers-reduced-motion:reduce){.ck.ck-input.ck-error{animation:none}}.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/label/label.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{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;top:0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}[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}@media (prefers-reduced-motion:reduce){.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transition:none}}.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)}.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}[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.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))}.ck.ck-labeled-field-view.ck-labeled-field-view_full-width{flex-grow:1}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/labeledinput/labeledinput.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-labeled-input .ck-labeled-input__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-input .ck-labeled-input__status_error{color:var(--ck-color-base-error)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/list/list.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{background:var(--ck-color-list-background);border-radius:0;list-style-type:none;padding:var(--ck-spacing-small) 0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list__item{cursor:default;min-width:15em}.ck.ck-list__item>.ck-button:not(.ck-list-item-button){border-radius:0;min-height:unset;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}[dir=ltr] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:left}[dir=rtl] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:right}.ck.ck-list__item>.ck-button:not(.ck-list-item-button) .ck-button__label{line-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button){background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item>.ck-button.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)}.ck-list .ck-list__group:first-child{padding-top:0}:not(.ck-hidden)~.ck-list .ck-list__group{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-large) 0}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;margin:var(--ck-spacing-small) 0;width:100%}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubar.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenu.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenubutton.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{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;overflow:visible;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>.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{margin-left:var(--ck-spacing-standard);margin-right:calc(var(--ck-spacing-small)*-1);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{left:var(--ck-spacing-standard);margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small);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)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenulistitem.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenulistitembutton.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{font-size:var(--ck-icon-font-size)}[dir=ltr] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-left:var(--ck-spacing-medium)}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenupanel.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;bottom:0;height:fit-content;max-width:var(--ck-menu-bar-menu-panel-max-width)}.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{box-shadow:var(--ck-drop-shadow),0 0}.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}.ck.ck-menu-bar .ck-list-item-button:active,.ck.ck-menu-bar .ck-list-item-button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:active,.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none;position:relative;z-index:2}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/panel/balloonpanel.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);border-radius:0;min-height:15px}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0}.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/panel/balloonrotator.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/panel/fakepanel.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/panel/stickypanel.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/search/search.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/spinner/spinner.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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:ck-spinner-rotate 1.5s linear infinite;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-spinner-container{animation-duration:3s}}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@keyframes ck-spinner-rotate{to{transform:rotate(1turn)}}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/textarea/textarea.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck-textarea{overflow-x:hidden}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/toolbar/toolbar.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);border-radius:0;padding:0 var(--ck-spacing-small)}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar .ck.ck-toolbar__separator{background:var(--ck-color-toolbar-border);height:var(--ck-icon-size);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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/tooltip/tooltip.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck.ck-balloon-panel.ck-tooltip{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:calc(var(--ck-z-dialog) + 100);--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);box-shadow:none;padding:0 var(--ck-spacing-medium)}.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:before{display:none}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/globals/globals.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.push([e.id,".ck-hidden{display:none!important}: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-font-size:calc(var(--ck-font-size-base)*7.5/13);--ck-powered-by-line-height:calc(var(--ck-font-size-base)*10/13);--ck-powered-by-letter-spacing:calc(var(--ck-font-size-base)*-0.2/13);--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-powered-by-svg-width:53;--ck-powered-by-svg-height:10;--ck-powered-by-icon-width:calc(var(--ck-font-size-base)*var(--ck-powered-by-svg-width)/13);--ck-powered-by-icon-height:calc(var(--ck-font-size-base)*var(--ck-powered-by-svg-height)/13)}.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:var(--ck-powered-by-font-size);font-weight:700;letter-spacing:var(--ck-powered-by-letter-spacing);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;height:var(--ck-powered-by-icon-height);width:var(--ck-powered-by-icon-width)}.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-evaluation-badge-font-size:calc(var(--ck-font-size-base)*7.5/13);--ck-evaluation-badge-line-height:calc(var(--ck-font-size-base)*7.5/13);--ck-evaluation-badge-letter-spacing:calc(var(--ck-font-size-base)*-0.2/13);--ck-evaluation-badge-padding-vertical:2px;--ck-evaluation-badge-padding-horizontal:4px;--ck-evaluation-badge-text-color:#4f4f4f;--ck-evaluation-badge-border-radius:var(--ck-border-radius);--ck-evaluation-badge-background:#fff;--ck-evaluation-badge-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-evaluation-badge-balloon{--ck-border-radius:var(--ck-evaluation-badge-border-radius);background:var(--ck-evaluation-badge-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-panel) - 1)}.ck.ck-balloon-panel.ck-evaluation-badge-balloon .ck.ck-evaluation-badge{line-height:var(--ck-evaluation-badge-line-height);padding:var(--ck-evaluation-badge-padding-vertical) var(--ck-evaluation-badge-padding-horizontal)}.ck.ck-balloon-panel.ck-evaluation-badge-balloon .ck.ck-evaluation-badge .ck-evaluation-badge__label{color:var(--ck-evaluation-badge-text-color);display:block;font-size:var(--ck-evaluation-badge-font-size);font-weight:700;letter-spacing:var(--ck-evaluation-badge-letter-spacing);line-height:normal;padding:0 2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-evaluation-badge-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-evaluation-badge-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-evaluation-badge-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{background:transparent;border:0;box-sizing:border-box;height:auto;margin:0;padding:0;position:static;text-decoration:none;transition:none;vertical-align:middle;width:auto;word-wrap:break-word}.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-extra-large:calc(var(--ck-spacing-unit)*2);--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-medium-small:calc(var(--ck-spacing-unit)*0.667);--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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-widget/theme/widget.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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)}@media (prefers-reduced-motion:reduce){.ck .ck-widget{transition:none}}.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{box-shadow:var(--ck-inner-shadow),0 0}@media (forced-colors:none){.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)}}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused:not(td,th),.ck .ck-editor__nested-editable:focus:not(td,th){border:var(--ck-focus-ring);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)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{transition:none}}.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)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{transition:none}}.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-widget:has(.ck-widget.table:hover){outline-color:transparent}.ck .ck-widget.ck-widget_with-selection-handle:has(.ck-widget.table:hover)>.ck-widget__selection-handle{opacity:0;visibility:hidden}.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:not(.ck-pagination-view) blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable:not(.ck-pagination-view)>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}",""]);const a=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-widget/theme/widgetresize.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-widget/theme/widgettypearound.css":(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var s=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js"),r=o.n(n)()(i());r.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}.ck.ck-editor__editable.ck-restricted-editing_mode_restricted div.restricted-editing-exception .ck-widget__type-around{display:initial}: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)}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button svg{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg *{fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-dasharray:10;stroke-dashoffset:0;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}.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}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button:hover,.ck .ck-widget .ck-widget__type-around__button:hover svg line,.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:none}}.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_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_selected>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.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_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 .ck-widget:has(.ck-widget.table: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=r},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o="",s=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),s&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),s&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o}).join("")},t.i=function(e,o,s,i,n){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(s)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);s&&r[d[0]]||(void 0!==n&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=n),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),i&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=i):d[4]="".concat(i)),t.push(d))}},t}},"../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/runtime/noSourceMaps.js":e=>{"use strict";e.exports=function(e){return e[1]}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs":(e,t,o)=>{"use strict";function s(e){return"__proto__"===e}o.d(t,{w:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs":(e,t,o)=>{"use strict";function s(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}o.d(t,{O:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs":(e,t,o)=>{"use strict";function s(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}o.d(t,{b:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs":(e,t,o)=>{"use strict";function s(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}o.d(t,{A:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs":(e,t,o)=>{"use strict";o.d(t,{n:()=>i});const s=/^(?:0|[1-9]\d*)$/;function i(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return s.test(e)}}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/tags.mjs":(e,t,o)=>{"use strict";o.d(t,{$V:()=>r,Av:()=>s,GX:()=>g,ML:()=>T,N1:()=>f,NA:()=>u,OG:()=>i,Qb:()=>b,R_:()=>a,Uw:()=>h,VP:()=>c,XZ:()=>x,ZR:()=>v,_u:()=>C,cT:()=>m,g5:()=>y,i1:()=>A,iq:()=>_,kj:()=>n,pj:()=>d,q:()=>w,ri:()=>S,tx:()=>p,vC:()=>l,x6:()=>k,xh:()=>E});const s="[object RegExp]",i="[object String]",n="[object Number]",r="[object Boolean]",a="[object Arguments]",c="[object Symbol]",l="[object Date]",d="[object Map]",u="[object Set]",h="[object Array]",p="[object Function]",m="[object ArrayBuffer]",g="[object Object]",f="[object Error]",_="[object DataView]",b="[object Uint8Array]",w="[object Uint8ClampedArray]",k="[object Uint16Array]",v="[object Uint32Array]",y="[object BigUint64Array]",x="[object Int8Array]",A="[object Int16Array]",C="[object Int32Array]",E="[object BigInt64Array]",S="[object Float32Array]",T="[object Float64Array]"},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs":(e,t,o)=>{"use strict";function s(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}o.d(t,{f:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.mjs":(e,t,o)=>{"use strict";function s(e,t,{signal:o,edges:s}={}){let i,n=null;const r=null!=s&&s.includes("leading"),a=null==s||s.includes("trailing"),c=()=>{null!==n&&(e.apply(i,n),i=void 0,n=null)};let l=null;const d=()=>{null!=l&&clearTimeout(l),l=setTimeout(()=>{l=null,a&&c(),h()},t)},u=()=>{null!==l&&(clearTimeout(l),l=null)},h=()=>{u(),i=void 0,n=null},p=function(...e){if(o?.aborted)return;i=this,n=e;const t=null==l;d(),r&&t&&c()};return p.schedule=d,p.cancel=h,p.flush=()=>{u(),c()},o?.addEventListener("abort",h,{once:!0}),p}function i(e,t=0,o={}){"object"!=typeof o&&(o={});const{leading:i=!1,trailing:n=!0,maxWait:r}=o,a=Array(2);let c;i&&(a[0]="leading"),n&&(a[1]="trailing");let l=null;const d=s(function(...t){c=e.apply(this,t),l=null},t,{edges:a}),u=function(...t){return null!=r&&(null===l&&(l=Date.now()),Date.now()-l>=r)?(c=e.apply(this,t),l=Date.now(),d.cancel(),d.schedule(),c):(d.apply(this,t),c)};return u.cancel=d.cancel,u.flush=()=>(d.flush(),c),u}o.d(t,{s:()=>i})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.mjs":(e,t,o)=>{"use strict";o.d(t,{n:()=>i});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.mjs");function i(e,t=0,o={}){"object"!=typeof o&&(o={});const{leading:i=!0,trailing:n=!0}=o;return(0,s.s)(e,t,{leading:i,trailing:n,maxWait:t})}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/assignIn.mjs":(e,t,o)=>{"use strict";function s(e){return null!=e&&"function"!=typeof e&&function(e){return Number.isSafeInteger(e)&&e>=0}(e.length)}o.d(t,{J:()=>u});var i=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs"),n=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs");function r(e){if(!e)return 0===e?e:0;if((e=function(e){return(0,n.B)(e)?NaN:Number(e)}(e))===1/0||e===-1/0){return(e<0?-1:1)*Number.MAX_VALUE}return e==e?e:0}function a(e,t){if((e=function(e){const t=r(e),o=t%1;return o?t-o:t}(e))<1||!Number.isSafeInteger(e))return[];const o=new Array(e);for(let s=0;s<e;s++)o[s]="function"==typeof t?t(s):s;return o}function c(e){if(null==e)return[];switch(typeof e){case"object":case"function":return s(e)?function(e){const t=a(e.length,e=>`${e}`),o=new Set(t);s=e,"undefined"!=typeof Buffer&&Buffer.isBuffer(s)&&(o.add("offset"),o.add("parent"));var s;(0,i.i)(e)&&(o.add("buffer"),o.add("byteLength"),o.add("byteOffset"));return[...t,...l(e).filter(e=>!o.has(e))]}(e):function(e){const t=e?.constructor;return e===("function"==typeof t?t.prototype:Object.prototype)}(e)?function(e){const t=l(e);return t.filter(e=>"constructor"!==e)}(e):l(e);default:return l(Object(e))}}function l(e){const t=[];for(const o in e)t.push(o);return t}var d=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/eq.mjs");function u(e,...t){for(let o=0;o<t.length;o++)h(e,t[o]);return e}function h(e,t){const o=c(t);for(let s=0;s<o.length;s++){const i=o[s];i in e&&(0,d.eq)(e[i],t[i])||(e[i]=t[i])}}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs":(e,t,o)=>{"use strict";o.d(t,{m:()=>i});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs");function i(e){return(0,s.s)(e)}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs":(e,t,o)=>{"use strict";o.d(t,{s:()=>n});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs"),i=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/tags.mjs");function n(e,t){return(0,s.sj)(e,(o,n,r,a)=>{const c=t?.(o,n,r,a);if(null!=c)return c;if("object"==typeof e)switch(Object.prototype.toString.call(e)){case i.kj:case i.OG:case i.$V:{const t=new e.constructor(e?.valueOf());return(0,s.Lb)(t,e),t}case i.R_:{const t={};return(0,s.Lb)(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}})}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/get.mjs":(e,t,o)=>{"use strict";o.d(t,{J:()=>a});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs"),i=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs"),n=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs"),r=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/toPath.mjs");function a(e,t,o){if(null==e)return o;switch(typeof t){case"string":{if((0,s.w)(t))return o;const n=e[t];return void 0===n?(0,i.A)(t)?a(e,(0,r.b)(t),o):o:n}case"number":case"symbol":{"number"==typeof t&&(t=(0,n.f)(t));const s=e[t];return void 0===s?o:s}default:{if(Array.isArray(t))return function(e,t,o){if(0===t.length)return o;let i=e;for(let e=0;e<t.length;e++){if(null==i)return o;if((0,s.w)(t[e]))return o;i=i[t[e]]}if(void 0===i)return o;return i}(e,t,o);if(t=Object.is(t?.valueOf(),-0)?"-0":String(t),(0,s.w)(t))return o;const i=e[t];return void 0===i?o:i}}}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/merge.mjs":(e,t,o)=>{"use strict";o.d(t,{h:()=>m});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs"),i=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs"),n=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs"),r=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs");var a=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs"),c=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs"),l=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs"),d=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs"),u=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs");function h(e,t,o,p){if((0,n.s)(e)&&(e=Object(e)),null==t||"object"!=typeof t)return e;if(p.has(t))return function(e){if((0,n.s)(e))return e;if(Array.isArray(e)||(0,r.i)(e)||e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e),o=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new o(e);if(e instanceof RegExp){const t=new o(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new o(e.buffer.slice(0));if(e instanceof Error){const t=new o(e.message);return t.stack=e.stack,t.name=e.name,t.cause=e.cause,t}if("undefined"!=typeof File&&e instanceof File)return new o([e],e.name,{type:e.type,lastModified:e.lastModified});if("object"==typeof e){const o=Object.create(t);return Object.assign(o,e)}return e}(p.get(t));if(p.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]=t[e]??void 0}const m=[...Object.keys(t),...(0,a.O)(t)];for(let n=0;n<m.length;n++){const r=m[n];if((0,i.w)(r))continue;let a=t[r],g=e[r];if((0,c.N)(a)&&(a={...a}),(0,c.N)(g)&&(g={...g}),"undefined"!=typeof Buffer&&Buffer.isBuffer(a)&&(a=(0,s.m)(a)),Array.isArray(a))if("object"==typeof g&&null!=g){const e=[],t=Reflect.ownKeys(g);for(let o=0;o<t.length;o++){const s=t[o];e[s]=g[s]}g=e}else g=[];const f=o(g,a,r,e,t,p);null!=f?e[r]=f:Array.isArray(a)||(0,l.Z)(g)&&(0,l.Z)(a)?e[r]=h(g,a,o,p):null==g&&(0,d.Q)(a)?e[r]=h({},a,o,p):null==g&&(0,u.i)(a)?e[r]=(0,s.m)(a):void 0!==g&&void 0===a||(e[r]=a)}return e}var p=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/function/noop.mjs");function m(e,...t){return function(e,...t){const o=t.slice(0,-1),s=t[t.length-1];let i=e;for(let e=0;e<o.length;e++)i=h(i,o[e],s,new Map);return i}(e,...t,p.l)}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/set.mjs":(e,t,o)=>{"use strict";o.d(t,{h:()=>m});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs"),i=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/eq.mjs");const n=(e,t,o)=>{const s=e[t];Object.hasOwn(e,t)&&(0,i.eq)(s,o)&&(void 0!==o||t in e)||(e[t]=o)};var r=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs"),a=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs");const c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;var d=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs"),u=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs"),h=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/toPath.mjs");function p(e,t,o,i){if(null==e&&!(0,u.G)(e))return e;const p=(m=t,g=e,!Array.isArray(m)&&("number"==typeof m||"boolean"==typeof m||null==m||(0,a.B)(m)||"string"==typeof m&&(l.test(m)||!c.test(m))||null!=g&&Object.hasOwn(g,m))?[t]:Array.isArray(t)?t:"string"==typeof t?(0,h.b)(t):[t]);var m,g;let f=e;for(let t=0;t<p.length&&null!=f;t++){const a=(0,d.f)(p[t]);if((0,s.w)(a))continue;let c;if(t===p.length-1)c=o(f[a]);else{const o=f[a],s=i?.(o,a,e);c=void 0!==s?s:(0,u.G)(o)?o:(0,r.n)(p[t+1])?[]:{}}n(f,a,c),f=f[a]}return e}function m(e,t,o){return p(e,t,()=>o,()=>{})}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs":(e,t,o)=>{"use strict";o.d(t,{N:()=>i});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs");function i(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===(0,s.b)(e)}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.mjs":(e,t,o)=>{"use strict";o.d(t,{v:()=>n});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs"),i=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs");function n(e){return(0,s.Z)(e)&&1===e.nodeType&&!(0,i.Q)(e)}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isFunction.mjs":(e,t,o)=>{"use strict";function s(e){return"function"==typeof e}o.d(t,{T:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs":(e,t,o)=>{"use strict";function s(e){return null!==e&&("object"==typeof e||"function"==typeof e)}o.d(t,{G:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs":(e,t,o)=>{"use strict";function s(e){return"object"==typeof e&&null!==e}o.d(t,{Z:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs":(e,t,o)=>{"use strict";function s(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];if(null==t)return!1;return!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}o.d(t,{Q:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs":(e,t,o)=>{"use strict";function s(e){return"symbol"==typeof e||e instanceof Symbol}o.d(t,{B:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs":(e,t,o)=>{"use strict";o.d(t,{i:()=>i});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs");function i(e){return(0,s.i)(e)}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/string/escapeRegExp.mjs":(e,t,o)=>{"use strict";o.d(t,{N:()=>i});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/toString.mjs");function i(e){return function(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}((0,s.d)(e))}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/eq.mjs":(e,t,o)=>{"use strict";function s(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}o.d(t,{eq:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/toPath.mjs":(e,t,o)=>{"use strict";function s(e){const t=[],o=e.length;if(0===o)return t;let s=0,i="",n="",r=!1;for(46===e.charCodeAt(0)&&(t.push(""),s++);s<o;){const a=e[s];n?"\\"===a&&s+1<o?(s++,i+=e[s]):a===n?n="":i+=a:r?'"'===a||"'"===a?n=a:"]"===a?(r=!1,t.push(i),i=""):i+=a:"["===a?(r=!0,i&&(t.push(i),i="")):"."===a?i&&(t.push(i),i=""):i+=a,s++}return i&&t.push(i),t}o.d(t,{b:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/toString.mjs":(e,t,o)=>{"use strict";function s(e){if(null==e)return"";if("string"==typeof e)return e;if(Array.isArray(e))return e.map(s).join(",");const t=String(e);return"0"===t&&Object.is(Number(e),-0)?"-0":t}o.d(t,{d:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/function/noop.mjs":(e,t,o)=>{"use strict";function s(){}o.d(t,{l:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs":(e,t,o)=>{"use strict";o.d(t,{Lb:()=>d,UU:()=>l,sj:()=>c});var s=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs"),i=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs"),n=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/tags.mjs"),r=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs"),a=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs");function c(e,t){return l(e,void 0,e,new Map,t)}function l(e,t,o,s=new Map,c=void 0){const u=c?.(e,t,o,s);if(null!=u)return u;if((0,r.s)(e))return e;if(s.has(e))return s.get(e);if(Array.isArray(e)){const t=new Array(e.length);s.set(e,t);for(let i=0;i<e.length;i++)t[i]=l(e[i],i,o,s,c);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;s.set(e,t);for(const[i,n]of e)t.set(i,l(n,i,o,s,c));return t}if(e instanceof Set){const t=new Set;s.set(e,t);for(const i of e)t.add(l(i,void 0,o,s,c));return t}if("undefined"!=typeof Buffer&&Buffer.isBuffer(e))return e.subarray();if((0,a.i)(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);s.set(e,t);for(let i=0;i<e.length;i++)t[i]=l(e[i],i,o,s,c);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return s.set(e,t),d(t,e,o,s,c),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return s.set(e,t),d(t,e,o,s,c),t}if(e instanceof Blob){const t=new Blob([e],{type:e.type});return s.set(e,t),d(t,e,o,s,c),t}if(e instanceof Error){const t=new e.constructor;return s.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,d(t,e,o,s,c),t}if("object"==typeof e&&function(e){switch((0,i.b)(e)){case n.R_:case n.Uw:case n.cT:case n.iq:case n.$V:case n.vC:case n.ri:case n.ML:case n.XZ:case n.i1:case n._u:case n.pj:case n.kj:case n.GX:case n.Av:case n.NA:case n.OG:case n.VP:case n.Qb:case n.q:case n.x6:case n.ZR:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return s.set(e,t),d(t,e,o,s,c),t}return e}function d(e,t,o=e,i,n){const r=[...Object.keys(t),...(0,s.O)(t)];for(let s=0;s<r.length;s++){const a=r[s],c=Object.getOwnPropertyDescriptor(e,a);(null==c||c.writable)&&(e[a]=l(t[a],a,o,i,n))}}},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs":(e,t,o)=>{"use strict";function s(e){return null==e||"object"!=typeof e&&"function"!=typeof e}o.d(t,{s:()=>s})},"../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs":(e,t,o)=>{"use strict";function s(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}o.d(t,{i:()=>s})},"../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":e=>{"use strict";var t=[];function o(e){for(var o=-1,s=0;s<t.length;s++)if(t[s].identifier===e){o=s;break}return o}function s(e,s){for(var n={},r=[],a=0;a<e.length;a++){var c=e[a],l=s.base?c[0]+s.base:c[0],d=n[l]||0,u="".concat(l," ").concat(d);n[l]=d+1;var h=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var m=i(p,s);s.byIndex=a,t.splice(a,0,{identifier:u,updater:m,references:1})}r.push(u)}return r}function i(e,t){var o=t.domAPI(t);o.update(e);return 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;o.update(e=t)}else o.remove()}}e.exports=function(e,i){var n=s(e=e||[],i=i||{});return function(e){e=e||[];for(var r=0;r<n.length;r++){var a=o(n[r]);t[a].references--}for(var c=s(e,i),l=0;l<n.length;l++){var d=o(n[l]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}n=c}}},"../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js":e=>{"use strict";var t={};e.exports=function(e,o){var s=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(o)}},"../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js":e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},"../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js":e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach(function(o){e.setAttribute(o,t[o])})}},"../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js":e=>{"use strict";var t,o=(t=[],function(e,o){return t[e]=o,t.filter(Boolean).join("\n")});function s(e,t,s,i){var n;if(s)n="";else{n="",i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,r&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}")}if(e.styleSheet)e.styleSheet.cssText=o(t,n);else{var a=document.createTextNode(n),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(a,c[t]):e.appendChild(a)}}var i={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=i.singletonCounter++,o=i.singleton||(i.singleton=e.insertStyleElement(e));return{update:function(e){s(o,t,!1,e)},remove:function(e){s(o,t,!0,e)}}}},"../ckeditor5-core/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{hH:()=>k,uB:()=>r,Qc:()=>l,ob:()=>u,HY:()=>h,k6:()=>p,KE:()=>L,mJ:()=>q,fE:()=>c,TS:()=>$,k_:()=>i,Wi:()=>w,o:()=>v,JF:()=>H,Jl:()=>W});var s=o("../ckeditor5-utils/src/index.ts");class i extends((0,s.VM)()){editor;_disableStack=new Set;constructor(e){super(),this.editor=e,this.set("isEnabled",!0)}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",n,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",n),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}}function n(e){e.return=!1,e.stop()}class r extends((0,s.VM)()){editor;_isEnabledBasedOnSelection;_affectsData;_disableStack;static get _throwErrorWhenUsedAsAPlugin(){return!0}constructor(e){super(),this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(e,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",t=>{if(!this.affectsData)return;const o=e.model.document.selection,s=!("$graveyard"==o.getFirstPosition().root.rootName)&&e.model.canEditAt(o);(e.isReadOnly||this._isEnabledBasedOnSelection&&!s)&&(t.return=!1,t.stop())},{priority:"highest"}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(e){this._affectsData=e}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",a,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",a),this.refresh())}execute(...e){}destroy(){this.stopListening()}}function a(e){e.return=!1,e.stop()}class c extends r{_childCommandsDefinitions=[];refresh(){}execute(...e){const t=this._getFirstEnabledCommand();return!!t&&t.execute(e)}registerChildCommand(e,t={}){(0,s.Yy)(this._childCommandsDefinitions,{command:e,priority:t.priority||"normal"}),e.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const e=this._childCommandsDefinitions.find(({command:e})=>e.isEnabled);return e&&e.command}}class l{_commands;constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const o=this.get(e);if(!o)throw new s.Yb("commandcollection-command-not-found",this,{commandName:e});return o.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}class d extends((0,s.Mm)()){_context;_plugins=new Map;_availablePlugins;_contextPlugins;constructor(e,t=[],o=[]){super(),this._context=e,this._availablePlugins=new Map;for(const e of t)e.pluginName&&this._availablePlugins.set(e.pluginName,e);this._contextPlugins=new Map;for(const[e,t]of o)this._contextPlugins.set(e,t),this._contextPlugins.set(t,e),e.pluginName&&this._availablePlugins.set(e.pluginName,e)}*[Symbol.iterator](){for(const e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new s.Yb("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}async init(e,t=[],o=[]){const i=this,n=this._context;!function e(t,o=new Set){t.forEach(t=>{c(t)&&(o.has(t)||(o.add(t),t.pluginName&&!i._availablePlugins.has(t.pluginName)&&i._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,o)))})}(e),h(e);const r=[...function e(t,o=new Set){return t.map(e=>c(e)?e:i._availablePlugins.get(e)).reduce((t,s)=>o.has(s)?t:(o.add(s),s.requires&&(h(s.requires,s),e(s.requires,o).forEach(e=>t.add(e))),t.add(s)),new Set)}(e.filter(e=>!d(e,t)))];!function(e,t){for(const o of t){if("function"!=typeof o)throw new s.Yb("plugincollection-replace-plugin-invalid-type",null,{pluginItem:o});const t=o.pluginName;if(!t)throw new s.Yb("plugincollection-replace-plugin-missing-name",null,{pluginItem:o});if(o.requires&&o.requires.length)throw new s.Yb("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});const n=i._availablePlugins.get(t);if(!n)throw new s.Yb("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});const r=e.indexOf(n);if(-1===r){if(i._contextPlugins.has(n))return;throw new s.Yb("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(n.requires&&n.requires.length)throw new s.Yb("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(r,1,o),i._availablePlugins.set(t,o)}}(r,o);const a=function(e){return e.map(e=>{let t=i._contextPlugins.get(e);return t=t||new e(n),i._add(e,t),t})}(r);return await p(a,"init"),await p(a,"afterInit"),a;function c(e){return"function"==typeof e}function l(e){return c(e)&&!!e.isContextPlugin}function d(e,t){return t.some(t=>t===e||(u(e)===t||u(t)===e))}function u(e){return c(e)?e.pluginName||e.name:e}function h(e,o=null){e.map(e=>c(e)?e:i._availablePlugins.get(e)||e).forEach(e=>{!function(e){if("function"!=typeof e)return;if(e._throwErrorWhenUsedAsAPlugin)throw new s.Yb("plugincollection-plugin-invalid-constructor",n,{name:e.name})}(e),function(e,t){if(c(e))return;if(t)throw new s.Yb("plugincollection-soft-required",n,{missingPlugin:e,requiredBy:u(t)});throw new s.Yb("plugincollection-plugin-not-found",n,{plugin:e})}(e,o),function(e,t){if(!l(t))return;if(l(e))return;throw new s.Yb("plugincollection-context-required",n,{plugin:u(e),requiredBy:u(t)})}(e,o),function(e,o){if(!o)return;if(!d(e,t))return;throw new s.Yb("plugincollection-required",n,{plugin:u(e),requiredBy:u(o)})}(e,o)})}function p(e,t){return e.reduce((e,o)=>o[t]?i._contextPlugins.has(o)?e:e.then(o[t].bind(o)):e,Promise.resolve())}}destroy(){const e=[];for(const[,t]of this)"function"!=typeof t.destroy||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const o=e.pluginName;if(o){if(this._plugins.has(o))throw new s.Yb("plugincollection-plugin-name-conflict",null,{pluginName:o,plugin1:this._plugins.get(o).constructor,plugin2:e});this._plugins.set(o,t)}}}class u{config;plugins;locale;t;editors;static defaultConfig;static builtinPlugins;_contextOwner=null;constructor(e){const{translations:t,...o}=e||{};this.config=new s.TS(o,this.constructor.defaultConfig);const i=this.constructor.builtinPlugins;this.config.define("plugins",i),this.plugins=new d(this,i);const n=this.config.get("language")||{};this.locale=new s.hT({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content"),translations:t}),this.t=this.locale.t,this.editors=new s.pM}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const o of e.concat(t)){if("function"!=typeof o)throw new s.Yb("context-initplugins-constructor-only",null,{Plugin:o});if(!0!==o.isContextPlugin)throw new s.Yb("context-initplugins-invalid-plugin",null,{Plugin:o})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,e=>e.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner)throw new s.Yb("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise(t=>{const o=new this(e);t(o.initPlugins().then(()=>o))})}static get _throwErrorWhenUsedAsAPlugin(){return!0}}class h extends((0,s.VM)()){context;constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}}class p extends s.EP{editor;constructor(e){super(),this.editor=e}set(e,t,o={}){if("string"==typeof t){const e=t;t=(t,o)=>{this.editor.execute(e),o()}}super.set(e,t,o)}}var m=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/get.mjs"),g=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/set.mjs"),f=o("../ckeditor5-engine/src/index.ts"),_=o("../ckeditor5-watchdog/src/index.ts");const b="contentEditing",w="common";class k{keystrokeInfos=new Map;_editor;constructor(e){this._editor=e;const t=e.config.get("menuBar.isVisible"),o=e.locale.t;this.addKeystrokeInfoCategory({id:b,label:o("Content editing keystrokes"),description:o("These keyboard shortcuts allow for quick access to content editing features.")});const s=[{label:o("Close contextual balloons, dropdowns, and dialogs"),keystroke:"Esc"},{label:o("Open the accessibility help dialog"),keystroke:"Alt+0"},{label:o("Move focus between form fields (inputs, buttons, etc.)"),keystroke:[["Tab"],["Shift+Tab"]]},{label:o("Move focus to the toolbar, navigate between toolbars"),keystroke:"Alt+F10",mayRequireFn:!0},{label:o("Navigate through the toolbar or menu bar"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]},{label:o("Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."),keystroke:[["Enter"],["Space"]]}];t&&s.push({label:o("Move focus to the menu bar, navigate between menu bars"),keystroke:"Alt+F9",mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:"navigation",label:o("User interface and content navigation keystrokes"),description:o("Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."),groups:[{id:"common",keystrokes:s}]})}addKeystrokeInfoCategory({id:e,label:t,description:o,groups:s}){this.keystrokeInfos.set(e,{id:e,label:t,description:o,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:e,id:w}),s&&s.forEach(t=>{this.addKeystrokeInfoGroup({categoryId:e,...t})})}addKeystrokeInfoGroup({categoryId:e=b,id:t,label:o,keystrokes:i}){const n=this.keystrokeInfos.get(e);if(!n)throw new s.Yb("accessibility-unknown-keystroke-info-category",this._editor,{groupId:t,categoryId:e});n.groups.set(t,{id:t,label:o,keystrokes:i||[]})}addKeystrokeInfos({categoryId:e=b,groupId:t=w,keystrokes:o}){if(!this.keystrokeInfos.has(e))throw new s.Yb("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:e,keystrokes:o});const i=this.keystrokeInfos.get(e);if(!i.groups.has(t))throw new s.Yb("accessibility-unknown-keystroke-info-group",this._editor,{groupId:t,categoryId:e,keystrokes:o});i.groups.get(t).keystrokes.push(...o)}}function v(e){return{sessionId:C(),pageSessionId:E(),hostname:window.location.hostname,version:globalThis.CKEDITOR_VERSION,type:y(e),plugins:(t=e.plugins,Array.from(t).filter(([e])=>!!e.pluginName).map(([e])=>{const{pluginName:t,isContextPlugin:o,isOfficialPlugin:s,isPremiumPlugin:i}=e;return{isContext:!!o,isOfficial:!!s,isPremium:!!i,name:t}})),distribution:{channel:window[Symbol.for("cke distribution")]||"sh"},env:A(),integration:Object.create(null),menuBar:{isVisible:!!e.config.get("menuBar.isVisible")},language:{ui:e.locale.uiLanguage,content:e.locale.contentLanguage},toolbar:{main:x(e.config.get("toolbar")),block:x(e.config.get("blockToolbar")),balloon:x(e.config.get("balloonToolbar"))}};var t}function y(e){return Object.getPrototypeOf(e).constructor.editorName}function x(e){if(!e)return;const t=Array.isArray(e)?{items:e}:e,o=function e(t){return t.flatMap(t=>"string"==typeof t?[t]:e(t.items))}(t.items||[]);return{isMultiline:o.includes("-"),shouldNotGroupWhenFull:!!t.shouldNotGroupWhenFull,items:(s=o,s.filter(e=>"|"!==e&&"-"!==e))};var s}function A(){let e="unknown",t="unknown";return s._K.isMac?e="mac":s._K.isWindows?e="windows":s._K.isiOS?e="ios":s._K.isAndroid&&(e="android"),s._K.isGecko?t="gecko":s._K.isBlink?t="blink":s._K.isSafari&&(t="safari"),{os:e,browser:t}}function C(){return localStorage.getItem("__ckeditor-session-id")||localStorage.setItem("__ckeditor-session-id",(0,s.Ld)()),localStorage.getItem("__ckeditor-session-id")}function E(){return s.Sf.window.CKEDITOR_PAGE_SESSION_ID=s.Sf.window.CKEDITOR_PAGE_SESSION_ID||(0,s.Ld)(),s.Sf.window.CKEDITOR_PAGE_SESSION_ID}var S=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),T=o.n(S),P=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),M=o.n(P),V=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),O=o.n(V),I=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),R=o.n(I),j=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),z=o.n(j),B=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-core/theme/core.css"),N={attributes:{"data-cke":!0}};N.setAttributes=R(),N.insert=O().bind(null,"head"),N.domAPI=M(),N.insertStyleElement=z();T()(B.A,N);B.A&&B.A.locals&&B.A.locals;class L extends((0,s.VM)()){static get editorName(){return"Editor"}accessibility;commands;config;conversion;data;editing;locale;model;plugins;keystrokes;t;static defaultConfig;static builtinPlugins;_context;_readOnlyLocks;static get _throwErrorWhenUsedAsAPlugin(){return!0}constructor(e={}){if(super(),"object"!=typeof e||Array.isArray(e))throw new s.Yb("editor-config-invalid-type");if("sanitizeHtml"in e)throw new s.Yb("editor-config-sanitizehtml-not-supported");const t=this.constructor,{translations:o,...i}=t.defaultConfig||{},{translations:n=o,...r}=e,a=e.language||i.language;this._context=e.context||new u({language:a,translations:n}),this._context._addEditor(this,!e.context);const c=Array.from(t.builtinPlugins||[]);this.config=new s.TS(r,i),this.config.define("plugins",c),this.config.define(this._context._getEditorConfig()),function(e){let t=e.get("licenseKey");!t&&window.CKEDITOR_GLOBAL_LICENSE_KEY&&(t=window.CKEDITOR_GLOBAL_LICENSE_KEY,e.set("licenseKey",t));if(!t)throw new s.Yb("license-key-missing")}(this.config),this.plugins=new d(this,c,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new l,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new f.Kxg(this.config),this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const h=new f.tG;this.data=new f.P3x(this.model,h),this.editing=new f.L_G(this.model,h),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new f.dY0([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 p(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new k(this),function(e){const t=e.config.get("licenseKey"),o=window[Symbol.for("cke distribution")]||"sh";function i(t,o){e.enableReadOnlyMode(Symbol("invalidLicense")),e._showLicenseError(t,o)}if("GPL"==t)return void("cloud"==o&&i("distributionChannel"));const n=(0,s.Tx)(t);if(!n)return void i("invalid");if(!function(e){return["exp","jti","vc"].every(t=>t in e)}(n))return void i("invalid");if(n.distributionChannel&&!(0,s.$r)(n.distributionChannel).includes(o))return void i("distributionChannel");if((0,s.QR)(function(e){return Object.getOwnPropertyNames(e).sort().filter(t=>"vc"!=t&&null!=e[t]).map(t=>e[t])}(n))!=n.vc.toLowerCase())return void i("invalid");if(new Date(1e3*n.exp)<s.kM)return void i("expired");const r=n.licensedHosts;if(r&&r.length>0&&!function(e){const{hostname:t}=new URL(window.location.href);if(e.includes(t))return!0;const o=t.split(".");return e.filter(e=>e.includes("*")).map(e=>e.split(".")).filter(e=>e.length<=o.length).map(e=>Array(o.length-e.length).fill("*"===e[0]?"*":"").concat(e)).some(e=>o.every((t,o)=>e[o]===t||"*"===e[o]))}(r))return void i("domainLimit");if(["evaluation","trial"].includes(n.licenseType)&&1e3*n.exp<Date.now())return void i("expired");if(["development","evaluation","trial"].includes(n.licenseType)){const{licenseType:e}=n;window.CKEDITOR_WARNING_SUPPRESSIONS=window.CKEDITOR_WARNING_SUPPRESSIONS||{},window.CKEDITOR_WARNING_SUPPRESSIONS[e]||(!function(e){const t=e[0].toUpperCase()+e.slice(1),o="evaluation"===e?"an":"a";console.info(`%cCKEditor 5 ${t} License`,"color: #ffffff; background: #743CCD; font-size: 14px; padding: 4px 8px; border-radius: 4px;"),console.warn(`⚠️ You are using ${o} ${e} license of CKEditor 5`+("trial"===e?" which is for evaluation purposes only":"")+". For production usage, please obtain a production license at https://portal.ckeditor.com/")}(e),window.CKEDITOR_WARNING_SUPPRESSIONS[e]=!0)}if("evaluation"===n.licenseType){const t=setTimeout(()=>{i("evaluationLimit")},6e5);e.on("destroy",()=>{clearTimeout(t)})}n.usageEndpoint&&e.once("ready",()=>{const o={requestId:(0,s.Ld)(),requestTime:Math.round(Date.now()/1e3),license:t,editor:D(e)};e._sendUsageRequest(n.usageEndpoint,o).then(e=>{const{status:t,message:o}=e;o&&console.warn(o),"ok"!=t&&i("usageLimit")},()=>{(0,s.vV)("license-key-validation-endpoint-not-reachable",{url:n.usageEndpoint})})},{priority:"high"})}(this)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new s.Yb("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new s.Yb("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new s.Yb("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"),o=e.get("removePlugins")||[],i=e.get("extraPlugins")||[],n=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(i),o,n).then(e=>(function(e){const t=e.config.get("licenseKey");if("GPL"===t)return;const o=(0,s.Tx)(t);if(!o)return;const i=[...e.plugins].map(([e])=>e).find(e=>!!e.pluginName&&(!!e.licenseFeatureCode&&(0,s.SE)(o,e.licenseFeatureCode)));i&&(e.enableReadOnlyMode(Symbol("invalidLicense")),e._showLicenseError("pluginNotAllowed",i.pluginName))}(this),e))}destroy(){let e=Promise.resolve();return"initializing"==this.state&&(e=new Promise(e=>this.once("ready",e))),e.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(e,...t){try{return this.commands.execute(e,...t)}catch(e){s.Yb.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}static create(...e){throw new Error("This is an abstract method.")}static Context=u;static EditorWatchdog=_.VJ;static ContextWatchdog=_.Zd;_showLicenseError(e,t){setTimeout(()=>{if("invalid"==e)throw new s.Yb("invalid-license-key");if("expired"==e)throw new s.Yb("license-key-expired");if("domainLimit"==e)throw new s.Yb("license-key-domain-limit");if("pluginNotAllowed"==e){const e=t.replace(/(Editing|UI)$/,""),o=this.plugins.has(e);throw new s.Yb("license-key-plugin-not-allowed",null,{pluginName:o?e:t})}if("featureNotAllowed"==e)throw new s.Yb("license-key-feature-not-allowed",null,{featureName:t});if("evaluationLimit"==e)throw new s.Yb("license-key-evaluation-limit");if("trialLimit"==e)throw new s.Yb("license-key-trial-limit");if("developmentLimit"==e)throw new s.Yb("license-key-development-limit");if("usageLimit"==e)throw new s.Yb("license-key-usage-limit");if("distributionChannel"==e)throw new s.Yb("license-key-invalid-distribution-channel")},0),this._showLicenseError=()=>{}}async _sendUsageRequest(e,t){const o=new Headers({"Content-Type":"application/json"}),s=await fetch(new URL(e),{method:"POST",headers:o,body:JSON.stringify(t)});if(!s.ok)throw new Error(`HTTP Response: ${s.status}`);return s.json()}}function D(e){const t=v(e);return e.fire("collectUsageData",{setUsageData:function(e,o){if(void 0!==(0,m.J)(t,e))throw new s.Yb("editor-usage-data-path-already-set",{path:e});(0,g.h)(t,e,o)}}),t}var F=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isFunction.mjs");function H(e){if(!(0,F.T)(e.updateSourceElement))throw new s.Yb("attachtoform-missing-elementapi-interface",e);const t=e.sourceElement;if(function(e){return!!e&&"textarea"===e.tagName.toLowerCase()}(t)&&t.form){let o;const s=t.form,i=()=>e.updateSourceElement();(0,F.T)(s.submit)&&(o=s.submit,s.submit=()=>{i(),o.apply(s)}),s.addEventListener("submit",i),e.on("destroy",()=>{s.removeEventListener("submit",i),o&&(s.submit=o)})}}function q(e){return class extends e{sourceElement;updateSourceElement(e){if(!this.sourceElement)throw new s.Yb("editor-missing-sourceelement",this);const t=this.config.get("updateSourceElementOnDestroy"),o=this.sourceElement instanceof HTMLTextAreaElement;if(!t&&!o)return void(0,s.C_)(this.sourceElement,"");const i="string"==typeof e?e:this.data.get();(0,s.C_)(this.sourceElement,i)}}}function W(e,t){if(t.ckeditorInstance)throw new s.Yb("editor-source-element-already-used",e);t.ckeditorInstance=e,e.once("destroy",()=>{delete t.ckeditorInstance})}class $ extends h{_actions;static get pluginName(){return"PendingActions"}static get isOfficialPlugin(){return!0}init(){this.set("hasAny",!1),this._actions=new s.pM({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new s.Yb("pendingactions-add-invalid-message",this);const t=new((0,s.VM)());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]()}}},"../ckeditor5-engine/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{ML1:()=>Qs,lPp:()=>vi,pvE:()=>ue,cJK:()=>ae,Rer:()=>_n,nU6:()=>Bt,dY0:()=>Is,up0:()=>To,P3x:()=>Os,t_S:()=>yi,$AX:()=>wt,TEV:()=>Po,L_G:()=>ps,gKr:()=>Wt,uGe:()=>yt,vpM:()=>jt,BZB:()=>Si,q6B:()=>Vs,bP4:()=>Dt,ZGI:()=>Ks,wI3:()=>kt,uIc:()=>oo,fq9:()=>zi,m46:()=>Js,PNe:()=>R,GY5:()=>Gs,Kxg:()=>gn,$q2:()=>Ri,dBg:()=>Li,$Ul:()=>xo,WXz:()=>So,LwR:()=>bi,JkJ:()=>bo,sqQ:()=>lo,QIV:()=>Eo,ZAs:()=>Gt,BNg:()=>to,gQY:()=>Ti,$3W:()=>ms,_O1:()=>gs,C8B:()=>uo,PFv:()=>vo,rM$:()=>Ut,oDe:()=>Kt,wMK:()=>$t,fN5:()=>Di,q$Y:()=>bn,hW$:()=>Us,_SL:()=>It,fS6:()=>ei,nun:()=>ft,crW:()=>ni,oXW:()=>kn,EZJ:()=>ti,gf2:()=>oi,atR:()=>si,Vzs:()=>zt,_A9:()=>Ys,DGI:()=>F,tG:()=>H,YiE:()=>Ht,Y2A:()=>wn,CsX:()=>ss,WqJ:()=>vn,UJu:()=>be,xQ8:()=>J,Tkc:()=>Nt,Vgs:()=>_e,Nu4:()=>bt,f5n:()=>Te,ZmG:()=>re,oZK:()=>ct,kty:()=>Me,OQX:()=>X,m2z:()=>K,VtL:()=>ve,eu8:()=>S,JTF:()=>oe,vRA:()=>se,aZU:()=>Ee,dV5:()=>Xe,Unn:()=>ee,aB0:()=>ne,HQb:()=>T,dKi:()=>P,hoX:()=>U,u$J:()=>te,UZe:()=>E,cwS:()=>xe,HZz:()=>vn,ibF:()=>zs,QIq:()=>Ms,izB:()=>Ni,N7:()=>so,vc2:()=>zr,dzf:()=>He,eEd:()=>We,p4y:()=>qe,TXF:()=>Fe,kGh:()=>De,xfD:()=>V,YZz:()=>es,FzX:()=>Mr,xc4:()=>Pr,XkY:()=>Zi,uA_:()=>zo,$vc:()=>jo,FOI:()=>Ro,Y3V:()=>Io,Zgy:()=>Vo,U3T:()=>No,D76:()=>Lo,Dml:()=>Mo,aLF:()=>Do,dkX:()=>Oo,PvF:()=>Bo,bXc:()=>Ir,TB6:()=>Ke,XI$:()=>vr,Se$:()=>Zt,$ge:()=>Xt,SDY:()=>Jt,pOb:()=>sn,vQH:()=>mr,DzD:()=>Rr,gNt:()=>Ui,IP7:()=>Ye,tyV:()=>Ae,sAD:()=>Ns,Fky:()=>rn,noH:()=>cn,qw1:()=>Ue,br0:()=>ts,fN9:()=>j,dcq:()=>jr,u65:()=>Gi,FIx:()=>dn,hwn:()=>Ds,bCO:()=>O,HeW:()=>Hs,HTi:()=>li,IGK:()=>Ar,kFO:()=>_r,$wz:()=>Ls,A_x:()=>Fs,jeU:()=>yr,JVg:()=>gr,_GA:()=>$e,aUw:()=>xr,_$L:()=>fr,ghV:()=>Ki,NFF:()=>rs,YRy:()=>ns,xtq:()=>is,Gm6:()=>os,$xF:()=>Gn,fY7:()=>Jn,FZK:()=>rr,mtt:()=>ar,YMT:()=>es,ZP9:()=>w,M5m:()=>b,hsS:()=>Un,efn:()=>$n,ju7:()=>Wn,Jhi:()=>Kn,YS5:()=>Yn,T4G:()=>Z,Jc5:()=>v,w4q:()=>Fn,AA7:()=>Pn,n0Z:()=>In,z72:()=>Vn,JSs:()=>ts,r_y:()=>jn,GQ0:()=>Ln,WcD:()=>Bn,Yn4:()=>qn,aWV:()=>y,ck8:()=>k,dq5:()=>di,mm5:()=>os});var s=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),r=o.n(n),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-engine/theme/placeholder.css"),m={attributes:{"data-cke":!0}};m.setAttributes=d(),m.insert=c().bind(null,"head"),m.domAPI=r(),m.insertStyleElement=h();i()(p.A,m);p.A&&p.A.locals&&p.A.locals;var g=o("../ckeditor5-utils/src/index.ts");const f=new WeakMap;let _=!1;function b({view:e,element:t,text:o,isDirectHost:s=!0,keepOnFocus:i=!1}){const n=e.document;function r(o){const r={text:o,isDirectHost:s,keepOnFocus:i,hostElement:s?t:null};f.get(n).set(t,r),e.change(e=>x([[t,r]],e))}f.has(n)||(f.set(n,new Map),n.registerPostFixer(e=>x(f.get(n),e)),n.on("change:isComposing",()=>{e.change(e=>x(f.get(n),e))},{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",(e,t,o)=>r(o)),t.placeholder?r(t.placeholder):o&&r(o),o&&function(){_||(0,g.FF)("enableViewPlaceholder-deprecated-text-option");_=!0}()}function w(e,t){const o=t.document;f.has(o)&&e.change(e=>{const s=f.get(o),i=s.get(t);e.removeAttribute("data-placeholder",i.hostElement),v(e,i.hostElement),s.delete(t)})}function k(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}function v(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function y(e,t){if(!e.isAttached())return!1;if(function(e){for(const t of e.getChildren())if(!t.is("uiElement"))return!0;return!1}(e))return!1;const o=e.document,s=o.selection.anchor;return(!o.isComposing||!s||s.parent!==e)&&(!!t||(!o.isFocused||!!s&&s.parent!==e))}function x(e,t){const o=[];let s=!1;for(const[i,n]of e)n.isDirectHost&&(o.push(i),A(t,i,n)&&(s=!0));for(const[i,n]of e){if(n.isDirectHost)continue;const e=C(i);e!==n.hostElement&&n.hostElement&&(t.removeAttribute("data-placeholder",n.hostElement),v(t,n.hostElement),n.hostElement=null,s=!0),e&&(o.includes(e)||(n.hostElement=e,A(t,i,n)&&(s=!0)))}return s}function A(e,t,o){const{text:s,isDirectHost:i,hostElement:n}=o;let r=!1;n.getAttribute("data-placeholder")!==s&&(e.setAttribute("data-placeholder",s,n),r=!0);return(i||1==t.childCount)&&y(n,o.keepOnFocus)?k(e,n)&&(r=!0):v(e,n)&&(r=!0),r}function C(e){if(e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class E{is(){throw new Error("is() method is abstract")}}class S extends((0,g.Mm)(E)){document;parent;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 g.Yb("view-node-not-found-in-parent",this);return e}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}getCommonAncestor(e,t={}){const o=this.getAncestors(t),s=e.getAncestors(t);let i=0;for(;o[i]==s[i]&&o[i];)i++;return 0===i?null:o[i-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),o=e.getPath(),s=(0,g.ww)(t,o);switch(s){case"prefix":return!0;case"extension":return!1;default:return t[s]<o[s]}}isAfter(e){return this!=e&&(this.root===e.root&&!this.isBefore(e))}_remove(){this.parent._removeChildren(this.index)}_fireChange(e,t,o){this.fire(`change:${e}`,t,o),this.parent&&this.parent._fireChange(e,t,o)}toJSON(){const e={path:this.getPath(),type:"Node"};return this!==this.root&&this.root.is("rootElement")&&(e.root=this.root.toJSON()),e}}S.prototype.is=function(e){return"node"===e||"view:node"===e};class T extends S{_textData;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 T&&(this===e||this.data===e.data)}toJSON(){const e=super.toJSON();return e.type="Text",e.data=this.data,e}_clone(){return new T(this.document,this.data)}}T.prototype.is=function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e};class P extends E{textNode;data;offsetInText;constructor(e,t,o){if(super(),this.textNode=e,t<0||t>e.data.length)throw new g.Yb("view-textproxy-wrong-offsetintext",this);if(o<0||t+o>e.data.length)throw new g.Yb("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+o),this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(e={}){const t=[];let o=e.includeSelf?this.textNode:this.parent;for(;null!==o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}}P.prototype.is=function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e};class M{_consumables=new Map;add(e,t){let o;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?o=this._consumables.get(e):(o=new V(e),this._consumables.set(e,o)),o.add(t?O(t):e._getConsumables()))}test(e,t){const o=this._consumables.get(e);return void 0===o?null:e.is("$text")||e.is("documentFragment")?o:o.test(O(t))}consume(e,t){if(e.is("$text")||e.is("documentFragment"))return!!this.test(e,t)&&(this._consumables.set(e,!1),!0);const o=this._consumables.get(e);return void 0!==o&&o.consume(O(t))}revert(e,t){const o=this._consumables.get(e);void 0!==o&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):o.revert(O(t)))}static createFrom(e,t){if(t||(t=new M),e.is("$text"))t.add(e);else if(e.is("element")||e.is("documentFragment")){t.add(e);for(const o of e.getChildren())M.createFrom(o,t)}return t}}class V{element;_canConsumeName=null;_attributes=new Map;constructor(e){this.element=e}add(e){e.name&&(this._canConsumeName=!0);for(const[t,o]of e.attributes)if(o){let e=this._attributes.get(t);e&&"boolean"!=typeof e||(e=new Map,this._attributes.set(t,e)),e.set(o,!0)}else{if("style"==t||"class"==t)throw new g.Yb("viewconsumable-invalid-attribute",this);this._attributes.set(t,!0)}}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const[t,o]of e.attributes){const e=this._attributes.get(t);if(void 0===e)return null;if(!1===e)return!1;if(!0!==e)if(o){const t=e.get(o);if(void 0===t)return null;if(!t)return!1}else for(const t of e.values())if(!t)return!1}return!0}consume(e){if(!this.test(e))return!1;e.name&&(this._canConsumeName=!1);for(const[t,o]of e.attributes){const e=this._attributes.get(t);if("boolean"==typeof e)for(const[e]of this.element._getConsumables(t,o).attributes)this._attributes.set(e,!1);else if(o)for(const[,s]of this.element._getConsumables(t,o).attributes)e.set(s,!1);else for(const t of e.keys())e.set(t,!1)}return!0}revert(e){e.name&&(this._canConsumeName=!0);for(const[t,o]of e.attributes){const e=this._attributes.get(t);if(!1!==e){if(void 0!==e&&!0!==e)if(o){!1===e.get(o)&&e.set(o,!0)}else for(const t of e.keys())e.set(t,!0)}else this._attributes.set(t,!0)}}}function O(e){const t=[];return"attributes"in e&&e.attributes&&I(t,e.attributes),"classes"in e&&e.classes&&I(t,e.classes,"class"),"styles"in e&&e.styles&&I(t,e.styles,"style"),{name:e.name||!1,attributes:t}}function I(e,t,o){if("string"!=typeof t)for(const s of t)Array.isArray(s)?e.push(s):e.push(o?[o,s]:[s]);else e.push(o?[o,t]:[t])}class R{_patterns=[];constructor(...e){this.add(...e)}add(...e){for(let t of e)("string"==typeof t||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(const t of e)for(const e of this._patterns){const o=this._isElementMatching(t,e);if(o)return{element:t,pattern:e,match:o}}return null}matchAll(...e){const t=[];for(const o of e)for(const e of this._patterns){const s=this._isElementMatching(o,e);s&&t.push({element:o,pattern:e,match:s})}return t.length>0?t:null}getElementName(){if(1!==this._patterns.length)return null;const e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}_isElementMatching(e,t){if("function"==typeof t){const o=t(e);return o&&"object"==typeof o?O(o):o}const o={};if(t.name&&(o.name=function(e,t){if(e instanceof RegExp)return!!t.match(e);return e===t}(t.name,e.name),!o.name))return null;const s=[];return t.attributes&&!function(e,t,o){let s;"object"!=typeof e||e instanceof RegExp||Array.isArray(e)?s=["class","style"]:(void 0!==e.style&&(0,g.FF)("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&(0,g.FF)("matcher-pattern-deprecated-attributes-class-key",e));return t._collectAttributesMatch(z(e),o,s)}(t.attributes,e,s)||t.classes&&!function(e,t,o){return t._collectAttributesMatch(z(e,"class"),o)}(t.classes,e,s)||t.styles&&!function(e,t,o){return t._collectAttributesMatch(z(e,"style"),o)}(t.styles,e,s)?null:(s.length&&(o.attributes=s),o)}}function j(e,t){return!0===e||e===t||e instanceof RegExp&&!!String(t).match(e)}function z(e,t){if(Array.isArray(e))return e.map(e=>"object"!=typeof e||e instanceof RegExp?t?[t,e,!0]:[e,!0]:(void 0!==e.key&&void 0!==e.value||(0,g.FF)("matcher-pattern-missing-key-or-value",e),t?[t,e.key,e.value]:[e.key,e.value]));if("object"!=typeof e||e instanceof RegExp)return[t?[t,e,!0]:[e,!0]];const o=[];for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&o.push(t?[t,s,e[s]]:[s,e[s]]);return o}var B=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs"),N=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/get.mjs"),L=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/merge.mjs"),D=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/set.mjs");class F{_styles;_cachedStyleNames=null;_cachedExpandedStyleNames=null;_styleProcessor;constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();const t=function(e){let t=null,o=0,s=0,i=null;const n=new Map;if(""===e)return n;";"!=e.charAt(e.length-1)&&(e+=";");for(let r=0;r<e.length;r++){const a=e.charAt(r);if(null===t)switch(a){case":":i||(i=e.substr(o,r-o),s=r+1);break;case'"':case"'":t=a;break;case";":{const t=e.substr(s,r-s);i&&n.set(i.trim(),t.trim()),i=null,o=r+1;break}}else a===t&&(t=null)}return n}(e);for(const[e,o]of t)this._styleProcessor.toNormalizedForm(e,o,this._styles);return this}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(this._cachedStyleNames=null,this._cachedExpandedStyleNames=null,(0,B.G)(e))for(const[t,o]of Object.entries(e))this._styleProcessor.toNormalizedForm(t,o,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t={};for(const o of(0,g.$r)(e)){const e=q(o),s=(0,N.J)(this._styles,e);if(s)W(t,e,s);else{const e=this.getAsString(o);void 0!==e&&this._styleProcessor.toNormalizedForm(o,e,t)}}Object.keys(t).length&&($(this._styles,t),this._cachedStyleNames=null,this._cachedExpandedStyleNames=null)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this.getStylesEntries().map(e=>e.join(":")).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!(0,B.G)(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._cachedExpandedStyleNames||=this._styleProcessor.getStyleNames(this._styles),this._cachedExpandedStyleNames):(this._cachedStyleNames||=this.getStylesEntries().map(([e])=>e),this._cachedStyleNames)}keys(){return this.getStyleNames()}clear(){this._styles={},this._cachedStyleNames=null,this._cachedExpandedStyleNames=null}isSimilar(e){if(this.size!==e.size)return!1;for(const t of this.getStyleNames())if(!e.has(t)||e.getAsString(t)!==this.getAsString(t))return!1;return!0}getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const o of t)e.push(...this._styleProcessor.getReducedForm(o,this._styles));return e}_clone(){const e=new this.constructor(this._styleProcessor);return e.set(this.getNormalized()),e}_getTokensMatch(e,t){const o=[];for(const s of this.getStyleNames(!0))if(j(e,s)){if(!0===t){o.push(s);continue}j(t,this.getAsString(s))&&o.push(s)}return o.length?o:void 0}_getConsumables(e){const t=[];if(e){t.push(e);for(const o of this._styleProcessor.getRelatedStyles(e))t.push(o)}else for(const e of this.getStyleNames()){for(const o of this._styleProcessor.getRelatedStyles(e))t.push(o);t.push(e)}return t}_canMergeFrom(e){for(const t of e.getStyleNames())if(this.has(t)&&this.getAsString(t)!==e.getAsString(t))return!1;return!0}_mergeFrom(e){for(const t of e.getStyleNames())this.has(t)||this.set(t,e.getAsString(t))}_isMatching(e){for(const t of e.getStyleNames())if(!this.has(t)||this.getAsString(t)!==e.getAsString(t))return!1;return!0}}class H{_normalizers;_extractors;_reducers;_consumables;constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,o){if((0,B.G)(t))W(o,q(e),t);else if(this._normalizers.has(e)){const s=this._normalizers.get(e),{path:i,value:n}=s(t);W(o,i,n)}else W(o,e,t)}getNormalized(e,t){if(!e)return(0,L.h)({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){const o=this._extractors.get(e);if("string"==typeof o)return(0,N.J)(t,o);const s=o(e,t);if(s)return s}return(0,N.J)(t,q(e))}getReducedForm(e,t){const o=this.getNormalized(e,t);if(void 0===o)return[];if(this._reducers.has(e)){return this._reducers.get(e)(o)}return[[e,o]]}getStyleNames(e){const t=new Set;for(const o of this._consumables.keys()){const s=this.getNormalized(o,e);s&&("object"!=typeof s||Object.keys(s).length)&&t.add(o)}for(const o of Object.keys(e))t.add(o);return Array.from(t)}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const o of t)this._mapStyleNames(o,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function q(e){return e.replace("-",".")}function W(e,t,o){let s=o;(0,B.G)(o)&&(s=(0,L.h)({},(0,N.J)(e,t),o)),(0,D.h)(e,t,s)}function $(e,t){for(const o of Object.keys(t))null===e[o]||Array.isArray(e[o])||"object"!=typeof e[o]||"object"!=typeof t[o]?delete e[o]:($(e[o],t[o]),Object.keys(e[o]).length||delete e[o])}class U{_set=new Set;get isEmpty(){return 0==this._set.size}get size(){return this._set.size}has(e){return this._set.has(e)}keys(){return Array.from(this._set.keys())}setTo(e){this.clear();for(const t of e.split(/\s+/))t&&this._set.add(t);return this}set(e){for(const t of(0,g.$r)(e))t&&this._set.add(t)}remove(e){for(const t of(0,g.$r)(e))this._set.delete(t)}clear(){this._set.clear()}toString(){return Array.from(this._set).join(" ")}isSimilar(e){if(this.size!==e.size)return!1;for(const t of this.keys())if(!e.has(t))return!1;return!0}_clone(){const e=new this.constructor;return e._set=new Set(this._set),e}_getTokensMatch(e){const t=[];if(!0===e){for(const e of this._set.keys())t.push(e);return t}if("string"==typeof e){for(const o of e.split(/\s+/)){if(!this._set.has(o))return;t.push(o)}return t}for(const o of this._set.keys())o.match(e)&&t.push(o);return t.length?t:void 0}_getConsumables(e){return e?[e]:this.keys()}_canMergeFrom(){return!0}_mergeFrom(e){for(const t of e._set.keys())this._set.has(t)||this._set.add(t)}_isMatching(e){for(const t of e._set.keys())if(!this._set.has(t))return!1;return!0}}class K extends S{name;_unsafeAttributesToRender=[];_attrs;_children;_customProperties=new Map;get _classes(){return this._attrs.get("class")}get _styles(){return this._attrs.get("style")}constructor(e,t,o,s){super(e),this.name=t,this._attrs=this._parseAttributes(o),this._children=[],s&&this._insertChild(0,s)}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&&(yield"class"),this._styles&&(yield"style");for(const e of this._attrs.keys())"class"!=e&&"style"!=e&&(yield e)}*getAttributes(){for(const[e,t]of this._attrs.entries())yield[e,String(t)]}getAttribute(e){return this._attrs.has(e)?String(this._attrs.get(e)):void 0}hasAttribute(e,t){return!!this._attrs.has(e)&&(void 0===t||(G(this.name,e)||Y(this.name,e)?this._attrs.get(e).has(t):this._attrs.get(e)===t))}isSimilar(e){if(!(e instanceof K))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size)return!1;for(const[t,o]of this._attrs){const s=e._attrs.get(t);if(void 0===s)return!1;if("string"==typeof o||"string"==typeof s){if(s!==o)return!1}else if(!o.isSimilar(s))return!1}return!0}hasClass(...e){for(const t of e)if(!this._classes||!this._classes.has(t))return!1;return!0}getClassNames(){const e=this._classes?this._classes.keys():[],t=e[Symbol.iterator]();return Object.assign(e,{next:t.next.bind(t)})}getStyle(e){return this._styles&&this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles&&this._styles.getNormalized(e)}getStyleNames(e){return this._styles?this._styles.getStyleNames(e):[]}hasStyle(...e){for(const t of e)if(!this._styles||!this._styles.has(t))return!1;return!0}findAncestor(...e){const t=new R(...e);let o=this.parent;for(;o&&!o.is("documentFragment");){if(t.match(o))return o;o=o.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=this._classes?this._classes.keys().sort().join(","):"",t=this._styles&&String(this._styles),o=Array.from(this._attrs).filter(([e])=>"style"!=e&&"class"!=e).map(e=>`${e[0]}="${e[1]}"`).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==o?"":` ${o}`)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}toJSON(){const e=super.toJSON();if(e.name=this.name,e.type="Element",this._attrs.size&&(e.attributes=Object.fromEntries(this.getAttributes())),this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){const t=[];if(e)for(const o of this.getChildren())t.push(o._clone(e));const o=new this.constructor(this.document,this.name,this._attrs,t);return o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o._unsafeAttributesToRender=this._unsafeAttributesToRender,o}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this,{index:e});let o=0;const s=function(e,t){if("string"==typeof t)return[new T(e,t)];(0,g.xZ)(t)||(t=[t]);const o=[];for(const s of t)"string"==typeof s?o.push(new T(e,s)):s instanceof P?o.push(new T(e,s.data)):o.push(s);return o}(this.document,t);for(const t of s)null!==t.parent&&t._remove(),t.parent=this,t.document=this.document,this._children.splice(e,0,t),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this,{index:e});for(let o=e;o<e+t;o++)this._children[o].parent=null;return this._children.splice(e,t)}_setAttribute(e,t,o=!0){if(this._fireChange("attributes",this),G(this.name,e)||Y(this.name,e)){let s=this._attrs.get(e);s||(s=G(this.name,e)?new F(this.document.stylesProcessor):new U,this._attrs.set(e,s)),o?s.setTo(String(t)):G(this.name,e)?Array.isArray(t)?s.set(t[0],t[1]):s.set(t):s.set("string"==typeof t?t.split(/\s+/):t)}else this._attrs.set(e,String(t))}_removeAttribute(e,t){if(this._fireChange("attributes",this),void 0!==t&&(G(this.name,e)||Y(this.name,e))){const o=this._attrs.get(e);return!!o&&(Y(this.name,e)&&"string"==typeof t&&(t=t.split(/\s+/)),o.remove(t),!!o.isEmpty&&this._attrs.delete(e))}return this._attrs.delete(e)}_addClass(e){this._setAttribute("class",e,!1)}_removeClass(e){this._removeAttribute("class",e)}_setStyle(e,t){"string"!=typeof e?this._setAttribute("style",e,!1):this._setAttribute("style",[e,t],!1)}_removeStyle(e){this._removeAttribute("style",e)}_collectAttributesMatch(e,t,o){for(const[s,i,n]of e){let e=!1,r=!1;for(const[a,c]of this._attrs)if(!(o&&o.includes(a)||!j(s,a)))if(e=!0,"string"==typeof c){if(j(i,c))t.push([a]),r=!0;else if(!(s instanceof RegExp))return!1}else{const e=c._getTokensMatch(i,n||!0);if(e){r=!0;for(const o of e)t.push([a,o])}else if(!(s instanceof RegExp))return!1}if(!e||!r)return!1}return!0}_getConsumables(e,t){const o=[];if(e){const s=this._attrs.get(e);if(void 0!==s)if("string"==typeof s)o.push([e]);else for(const i of s._getConsumables(t))o.push([e,i])}else for(const[e,t]of this._attrs)if("string"==typeof t)o.push([e]);else for(const s of t._getConsumables())o.push([e,s]);return{name:!e,attributes:o}}_canMergeAttributesFrom(e){if(this.name!=e.name)return!1;for(const[t,o]of e._attrs){const e=this._attrs.get(t);if(void 0!==e)if("string"==typeof e||"string"==typeof o){if(e!==o)return!1}else if(!e._canMergeFrom(o))return!1}return!0}_mergeAttributesFrom(e){this._fireChange("attributes",this);for(const[t,o]of e._attrs){const e=this._attrs.get(t);void 0===e||"string"==typeof e||"string"==typeof o?this._setAttribute(t,o):e._mergeFrom(o)}}_canSubtractAttributesOf(e){if(this.name!=e.name)return!1;for(const[t,o]of e._attrs){const e=this._attrs.get(t);if(void 0===e)return!1;if("string"==typeof e||"string"==typeof o){if(e!==o)return!1}else if(!e._isMatching(o))return!1}return!0}_subtractAttributesOf(e){this._fireChange("attributes",this);for(const[t,o]of e._attrs){const e=this._attrs.get(t);"string"==typeof e||"string"==typeof o?this._attrs.delete(t):(e.remove(o.keys()),e.isEmpty&&this._attrs.delete(t))}}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}_parseAttributes(e){const t=(0,g.av)(e);for(const[e,o]of t)if(null===o)t.delete(e);else if(G(this.name,e)){const s=o instanceof F?o._clone():new F(this.document.stylesProcessor).setTo(String(o));t.set(e,s)}else if(Y(this.name,e)){const s=o instanceof U?o._clone():(new U).setTo(String(o));t.set(e,s)}else"string"!=typeof o&&t.set(e,String(o));return t}}function Y(e,t){return"class"==t||"a"==e&&"rel"==t}function G(e,t){return"style"==t}K.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 J extends K{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=Z}toJSON(){const e=super.toJSON();return e.type="ContainerElement",e}}function Z(){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}J.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 X extends((0,g.VM)(J)){constructor(e,t,o,s){super(e,t,o,s),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",t=>t&&e.selection.editableElement==this),this.listenTo(e.selection,"change",()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this})}destroy(){this.stopListening()}toJSON(){const e=super.toJSON();return e.type="EditableElement",e.isReadOnly=this.isReadOnly,e.isFocused=this.isFocused,e}}X.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 Q=Symbol("rootName");class ee extends X{constructor(e,t){super(e,t),this.rootName="main"}get rootName(){return this.getCustomProperty(Q)}set rootName(e){this._setCustomProperty(Q,e)}toJSON(){return this.rootName}set _name(e){this.name=e}}ee.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 te{direction;boundaries;singleCharacters;shallow;ignoreElementEnd;_position;_boundaryStartParent;_boundaryEndParent;constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new g.Yb("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new g.Yb("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this._position=oe._createAt(e.startPosition):this._position=oe._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(e){let t,o;do{o=this.position,t=this.next()}while(!t.done&&e(t.value));t.done||(this._position=o)}jumpTo(e){this._boundaryStartParent&&e.isBefore(this.boundaries.start)?e=this.boundaries.start:this._boundaryEndParent&&e.isAfter(this.boundaries.end)&&(e=this.boundaries.end),this._position=e.clone()}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,o=e.parent;if(null===o.parent&&e.offset===o.childCount)return{done:!0,value:void 0};if(o===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let s;if(o&&o.is("view:$text")){if(e.isAtEnd)return this._position=oe._createAfter(o),this._next();s=o.data[e.offset]}else s=o.getChild(e.offset);if("string"==typeof s){let s;if(this.singleCharacters)s=1;else{s=(o===this._boundaryEndParent?this.boundaries.end.offset:o.data.length)-e.offset}const i=new P(o,e.offset,s);return e.offset+=s,this._position=e,this._formatReturnValue("text",i,t,e,s)}if(s&&s.is("view:element")){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e=new oe(s,0);return this._position=e,this._formatReturnValue("elementStart",s,t,e,1)}if(s&&s.is("view:$text")){if(this.singleCharacters)return e=new oe(s,0),this._position=e,this._next();let o,i=s.data.length;return s==this._boundaryEndParent?(i=this.boundaries.end.offset,o=new P(s,0,i),e=oe._createAfter(o)):(o=new P(s,0,s.data.length),e.offset++),this._position=e,this._formatReturnValue("text",o,t,e,i)}return e=oe._createAfter(o),this._position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",o,t,e)}_previous(){let e=this.position.clone();const t=this.position,o=e.parent;if(null===o.parent&&0===e.offset)return{done:!0,value:void 0};if(o==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let s;if(o.is("view:$text")){if(e.isAtStart)return this._position=oe._createBefore(o),this._previous();s=o.data[e.offset-1]}else s=o.getChild(e.offset-1);if("string"==typeof s){let s;if(this.singleCharacters)s=1;else{const t=o===this._boundaryStartParent?this.boundaries.start.offset:0;s=e.offset-t}e.offset-=s;const i=new P(o,e.offset,s);return this._position=e,this._formatReturnValue("text",i,t,e,s)}if(s&&s.is("view:element"))return this.shallow?(e.offset--,this._position=e,this._formatReturnValue("elementStart",s,t,e,1)):(e=new oe(s,s.childCount),this._position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",s,t,e));if(s&&s.is("view:$text")){if(this.singleCharacters)return e=new oe(s,s.data.length),this._position=e,this._previous();let o,i=s.data.length;if(s==this._boundaryStartParent){const t=this.boundaries.start.offset;o=new P(s,t,s.data.length-t),i=o.data.length,e=oe._createBefore(o)}else o=new P(s,0,s.data.length),e.offset--;return this._position=e,this._formatReturnValue("text",o,t,e,i)}return e=oe._createBefore(o),this._position=e,this._formatReturnValue("elementStart",o,t,e,1)}_formatReturnValue(e,t,o,s,i){return t.is("view:$textProxy")&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?o=oe._createAfter(t.textNode):(s=oe._createAfter(t.textNode),this._position=s)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?o=oe._createBefore(t.textNode):(s=oe._createBefore(t.textNode),this._position=s))),{done:!1,value:{type:e,item:t,previousPosition:o,nextPosition:s,length:i}}}}class oe extends E{parent;offset;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 X);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=oe._createAt(this),o=t.offset+e;return t.offset=o<0?0:o,t}getLastMatchingPosition(e,t={}){t.startPosition=this;const o=new te(t);return o.skip(e),o.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),o=e.getAncestors();let s=0;for(;t[s]==o[s]&&t[s];)s++;return 0===s?null:t[s-1]}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";const t=this.parent.is("node")?this.parent.getPath():[],o=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),o.push(e.offset);const s=(0,g.ww)(t,o);switch(s){case"prefix":return"before";case"extension":return"after";default:return t[s]<o[s]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new te(e)}clone(){return new oe(this.parent,this.offset)}toJSON(){return{parent:this.parent.toJSON(),offset:this.offset}}static _createAt(e,t){if(e instanceof oe)return new this(e.parent,e.offset);{const o=e;if("end"==t)t=o.is("$text")?o.data.length:o.childCount;else{if("before"==t)return this._createBefore(o);if("after"==t)return this._createAfter(o);if(0!==t&&!t)throw new g.Yb("view-createpositionat-offset-required",o)}return new oe(o,t)}}static _createAfter(e){if(e.is("$textProxy"))return new oe(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new g.Yb("view-position-after-root",e,{root:e});return new oe(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new oe(e.textNode,e.offsetInText);if(!e.parent)throw new g.Yb("view-position-before-root",e,{root:e});return new oe(e.parent,e.index)}}oe.prototype.is=function(e){return"position"===e||"view:position"===e};class se extends E{start;end;constructor(e,t=null){super(),this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new te({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(ie,{direction:"backward"}),t=this.end.getLastMatchingPosition(ie);return e.parent.is("$text")&&e.isAtStart&&(e=oe._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=oe._createAfter(t.parent)),new se(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(ie);if(e.isAfter(this.end)||e.isEqual(this.end))return new se(e,e);let t=this.end.getLastMatchingPosition(ie,{direction:"backward"});const o=e.nodeAfter,s=t.nodeBefore;return o&&o.is("$text")&&(e=new oe(o,0)),s&&s.is("$text")&&(t=new oe(s,s.data.length)),new se(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const o=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),s=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return o&&s}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new se(this.start,e.start)),this.containsPosition(e.end)&&t.push(new se(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,o=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(o=e.end),new se(t,o)}return null}getWalker(e={}){return e.boundaries=this,new te(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 se(this.start,this.end)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new te(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new te(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)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}static _createFromParentsAndOffsets(e,t,o,s){return new this(new oe(e,t),new oe(o,s))}static _createFromPositionAndShift(e,t){const o=e,s=e.getShiftedBy(t);return t>0?new this(o,s):new this(s,o)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(oe._createBefore(e),t)}}function ie(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}se.prototype.is=function(e){return"range"===e||"view:range"===e};class ne extends((0,g.Mm)(E)){_ranges;_lastRangeBackward;_isFake;_fakeSelectionLabel;constructor(...e){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",e.length&&this.setTo(...e)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let o=!1;for(const s of e._ranges)if(t.isEqual(s)){o=!0;break}if(!o)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=(0,g.U9)(this.getRanges());if(t!=(0,g.U9)(e.getRanges()))return!1;if(0==t)return!0;for(let t of this.getRanges()){t=t.getTrimmed();let o=!1;for(let s of e.getRanges())if(s=s.getTrimmed(),t.start.isEqual(s.start)&&t.end.isEqual(s.end)){o=!0;break}if(!o)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...e){let[t,o,s]=e;if("object"==typeof o&&(s=o,o=void 0),null===t)this._setRanges([]),this._setFakeOptions(s);else if(t instanceof ne||t instanceof re)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof se)this._setRanges([t],s&&s.backward),this._setFakeOptions(s);else if(t instanceof oe)this._setRanges([new se(t)]),this._setFakeOptions(s);else if(t instanceof S){const e=!!s&&!!s.backward;let i;if(void 0===o)throw new g.Yb("view-selection-setto-required-second-parameter",this);i="in"==o?se._createIn(t):"on"==o?se._createOn(t):new se(oe._createAt(t,o)),this._setRanges([i],e),this._setFakeOptions(s)}else{if(!(0,g.xZ)(t))throw new g.Yb("view-selection-setto-not-selectable",this);this._setRanges(t,s&&s.backward),this._setFakeOptions(s)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new g.Yb("view-selection-setfocus-no-ranges",this);const o=oe._createAt(e,t);if("same"==o.compareWith(this.focus))return;const s=this.anchor;this._ranges.pop(),"before"==o.compareWith(s)?this._addRange(new se(o,s),!0):this._addRange(new se(s,o)),this.fire("change")}toJSON(){const e={ranges:Array.from(this.getRanges()).map(e=>e.toJSON())};return this.isBackward&&(e.isBackward=!0),this.isFake&&(e.isFake=!0),e}_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 se))throw new g.Yb("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 g.Yb("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new se(e.start,e.end))}}ne.prototype.is=function(e){return"selection"===e||"view:selection"===e};class re extends((0,g.Mm)(E)){_selection;constructor(...e){super(),this._selection=new ne,this._selection.delegate("change").to(this),e.length&&this._selection.setTo(...e)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}toJSON(){return this._selection.toJSON()}_setTo(...e){this._selection.setTo(...e)}_setFocus(e,t){this._selection.setFocus(e,t)}}re.prototype.is=function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e};class ae extends g.vY{startRange;_eventPhase;_currentTarget;constructor(e,t,o){super(e,t),this.startRange=o,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const ce=Symbol("bubblingEmitter"),le=Symbol("bubblingCallbacks"),de=Symbol("bubblingContexts");function ue(e){return class extends e{fire(e,...t){try{const o=e instanceof g.vY?e:new g.vY(this,e),s=me(this),i=fe(this);if(he(o,"capturing",this),pe(s,"$capture",o,...t))return o.return;const n=o.startRange||this.selection.getFirstRange(),r=n?n.getContainedElement():null,a=!!r&&function(e,t){for(const o of e)if(o(t))return!0;return!1}(i,r);let c=r||function(e){if(!e)return null;const t=e.start.parent,o=e.end.parent,s=t.getPath(),i=o.getPath();return s.length>i.length?t:o}(n);if(he(o,"atTarget",c),!a){if(pe(s,"$text",o,...t))return o.return;he(o,"bubbling",c)}for(;c;){if(c.is("element")&&pe(s,c,o,...t))return o.return;c=c.parent,he(o,"bubbling",c)}return he(o,"bubbling",this),pe(s,"$document",o,...t),o.return}catch(e){g.Yb.rethrowUnexpectedError(e,this)}}_addEventListener(e,t,o){const s=(0,g.$r)(o.context||"$document"),i=me(this),n=ge(this);for(const e of s)"function"==typeof e&&fe(this).add(e);const r=function(e,t,o){return function(s,i){const{currentTarget:n,eventArgs:r}=i;if("string"!=typeof n){if(n.is("rootElement")&&t.includes("$root"))o.call(e,s,...r);else if(t.includes(n.name))o.call(e,s,...r);else for(const i of t)if("function"==typeof i&&i(n))return void o.call(e,s,...r)}else t.includes(n)&&o.call(e,s,...r)}}(this,s,t);n.set(t,r),this.listenTo(i,e,r,o)}_removeEventListener(e,t){const o=me(this),s=ge(this),i=s.get(t);i&&(s.delete(t),this.stopListening(o,e,i))}}}function he(e,t,o){e instanceof ae&&(e._eventPhase=t,e._currentTarget=o)}function pe(e,t,o,...s){return e.fire(o,{currentTarget:t,eventArgs:s}),!!o.stop.called}function me(e){return e[ce]||(e[ce]=new((0,g.Mm)())),e[ce]}function ge(e){return e[le]||(e[le]=new Map),e[le]}function fe(e){return e[de]||(e[de]=new Set),e[de]}class _e extends(ue((0,g.VM)())){selection;roots;stylesProcessor;_postFixers=new Set;constructor(e){super(),this.selection=new re,this.roots=new g.pM({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.forEach(e=>e.destroy()),this.stopListening()}_callPostFixers(e){let t=!1;do{for(const o of this._postFixers)if(t=o(e),t)break}while(t)}}class be extends K{static DEFAULT_PRIORITY=10;_priority=10;_id=null;_clonesGroup=null;constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=we}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new g.Yb("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}toJSON(){const e=super.toJSON();return e.type="AttributeElement",e}_clone(e=!1){const t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}_canMergeAttributesFrom(e){return null===this.id&&null===e.id&&this.priority===e.priority&&super._canMergeAttributesFrom(e)}_canSubtractAttributesOf(e){return null===this.id&&null===e.id&&this.priority===e.priority&&super._canSubtractAttributesOf(e)}}function we(){if(ke(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(ke(e)>1)return null;e=e.parent}return!e||ke(e)>1?null:this.childCount}function ke(e){return Array.from(e.getChildren()).filter(e=>!e.is("uiElement")).length}be.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 ve extends K{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=ye}toJSON(){const e=super.toJSON();return e.type="EmptyElement",e}_insertChild(e,t){if(t&&(t instanceof S||Array.from(t).length>0))throw new g.Yb("view-emptyelement-cannot-add",[this,t]);return 0}}function ye(){return null}ve.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 xe extends K{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=Ce}_insertChild(e,t){if(t&&(t instanceof S||Array.from(t).length>0))throw new g.Yb("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}toJSON(){const e=super.toJSON();return e.type="UIElement",e}}function Ae(e){e.document.on("arrowKey",(t,o)=>function(e,t,o){if(t.keyCode==g.uP.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),s=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(s||t.shiftKey){const t=e.focusNode,i=e.focusOffset,n=o.domPositionToView(t,i);if(null===n)return;let r=!1;const a=n.getLastMatchingPosition(e=>(e.item.is("uiElement")&&(r=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))));if(r){const t=o.viewPositionToDom(a);s?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}(0,o,e.domConverter),{priority:"low"})}function Ce(){return null}xe.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 Ee extends K{constructor(e,t,o,s){super(e,t,o,s),this.getFillerOffset=Se}toJSON(){const e=super.toJSON();return e.type="RawElement",e}_insertChild(e,t){if(t&&(t instanceof S||Array.from(t).length>0))throw new g.Yb("view-rawelement-cannot-add",[this,t]);return 0}render(e,t){}}function Se(){return null}Ee.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 Te extends((0,g.Mm)(E)){document;_children=[];_customProperties=new Map;constructor(e,t){super(),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()}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}_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,{index:e});let o=0;const s=function(e,t){if("string"==typeof t)return[new T(e,t)];(0,g.xZ)(t)||(t=[t]);return Array.from(t).map(t=>"string"==typeof t?new T(e,t):t instanceof P?new T(e,t.data):t)}(this.document,t);for(const t of s)null!==t.parent&&t._remove(),t.parent=this,this._children.splice(e,0,t),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this,{index:e});for(let o=e;o<e+t;o++)this._children[o].parent=null;return this._children.splice(e,t)}_fireChange(e,t,o){this.fire(`change:${e}`,t,o)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}Te.prototype.is=function(e){return"documentFragment"===e||"view:documentFragment"===e};var Pe=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs");class Me{document;_cloneGroups=new Map;_slotFactory=null;constructor(e){this.document=e}setSelection(...e){this.document.selection._setTo(...e)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createDocumentFragment(e){return new Te(this.document,e)}createText(e){return new T(this.document,e)}createAttributeElement(e,t,o={}){const s=new be(this.document,e,t);return"number"==typeof o.priority&&(s._priority=o.priority),o.id&&(s._id=o.id),o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createContainerElement(e,t,o={},s={}){let i;!function(e){return(0,Pe.Q)(e)}(o)?i=o:s=o;const n=new J(this.document,e,t,i);return s.renderUnsafeAttributes&&n._unsafeAttributesToRender.push(...s.renderUnsafeAttributes),n}createEditableElement(e,t,o={}){const s=new X(this.document,e,t);return o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createEmptyElement(e,t,o={}){const s=new ve(this.document,e,t);return o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createUIElement(e,t,o){const s=new xe(this.document,e,t);return o&&(s.render=o),s}createRawElement(e,t,o,s={}){const i=new Ee(this.document,e,t);return o&&(i.render=o),s.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...s.renderUnsafeAttributes),i}setAttribute(e,t,o,s){void 0!==s?s._setAttribute(e,t,o):o._setAttribute(e,t)}removeAttribute(e,t,o){void 0!==o?o._removeAttribute(e,t):t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,o){(0,Pe.Q)(e)&&void 0===o?t._setStyle(e):o._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,o){o._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof oe?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new g.Yb("view-writer-break-non-container-element",this.document);if(!t.parent)throw new g.Yb("view-writer-break-root",this.document);if(e.isAtStart)return oe._createBefore(t);if(!e.isAtEnd){const o=t._clone(!1);this.insert(oe._createAfter(t),o);const s=new se(e,oe._createAt(t,"end")),i=new oe(o,0);this.move(s,i)}return oe._createAfter(t)}mergeAttributes(e){const t=e.offset,o=e.parent;if(o.is("$text"))return e;if(o.is("attributeElement")&&0===o.childCount){const e=o.parent,t=o.index;return o._remove(),this._removeFromClonedElementsGroup(o),this.mergeAttributes(new oe(e,t))}const s=o.getChild(t-1),i=o.getChild(t);if(!s||!i)return e;if(s.is("$text")&&i.is("$text"))return je(s,i);if(s.is("attributeElement")&&i.is("attributeElement")&&s.isSimilar(i)){const e=s.childCount;return s._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new oe(s,e))}return e}mergeContainers(e){const t=e.nodeBefore,o=e.nodeAfter;if(!(t&&o&&t.is("containerElement")&&o.is("containerElement")))throw new g.Yb("view-writer-merge-containers-invalid-position",this.document);const s=t.getChild(t.childCount-1),i=s instanceof T?oe._createAt(s,"end"):oe._createAt(t,"end");return this.move(se._createIn(o),oe._createAt(t,"end")),this.remove(se._createOn(o)),i}insert(e,t){Be(t=(0,g.xZ)(t)?[...t]:[t],this.document);const o=t.reduce((e,t)=>{const o=e[e.length-1],s=!t.is("uiElement");return o&&o.breakAttributes==s?o.nodes.push(t):e.push({breakAttributes:s,nodes:[t]}),e},[]);let s=null,i=e;for(const{nodes:e,breakAttributes:t}of o){const o=this._insertNodes(i,e,t);s||(s=o.start),i=o.end}return s?new se(s,i):new se(e)}remove(e){const t=e instanceof se?e:se._createOn(e);if(Le(t,this.document),t.isCollapsed)return new Te(this.document);const{start:o,end:s}=this._breakAttributesRange(t,!0),i=o.parent,n=s.offset-o.offset,r=i._removeChildren(o.offset,n);for(const e of r)this._removeFromClonedElementsGroup(e);const a=this.mergeAttributes(o);return t.start=a,t.end=a.clone(),new Te(this.document,r)}clear(e,t){Le(e,this.document);const o=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const s of o){const o=s.item;let i;if(o.is("element")&&t.isSimilar(o))i=se._createOn(o);else if(!s.nextPosition.isAfter(e.start)&&o.is("$textProxy")){const e=o.getAncestors().find(e=>e.is("element")&&t.isSimilar(e));e&&(i=se._createIn(e))}i&&(i.end.isAfter(e.end)&&(i.end=e.end),i.start.isBefore(e.start)&&(i.start=e.start),this.remove(i))}}move(e,t){let o;if(t.isAfter(e.end)){const s=(t=this._breakAttributes(t,!0)).parent,i=s.childCount;e=this._breakAttributesRange(e,!0),o=this.remove(e),t.offset+=s.childCount-i}else o=this.remove(e);return this.insert(t,o)}wrap(e,t){if(!(t instanceof be))throw new g.Yb("view-writer-wrap-invalid-attribute",this.document);if(Le(e,this.document),e.isCollapsed){let s=e.start;s.parent.is("element")&&(o=s.parent,!Array.from(o.getChildren()).some(e=>!e.is("uiElement")))&&(s=s.getLastMatchingPosition(e=>e.item.is("uiElement"))),s=this._wrapPosition(s,t);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(e.start)&&this.setSelection(s),new se(s)}return this._wrapRange(e,t);var o}unwrap(e,t){if(!(t instanceof be))throw new g.Yb("view-writer-unwrap-invalid-attribute",this.document);if(Le(e,this.document),e.isCollapsed)return e;const{start:o,end:s}=this._breakAttributesRange(e,!0),i=o.parent,n=this._unwrapChildren(i,o.offset,s.offset,t),r=this.mergeAttributes(n.start);r.isEqual(n.start)||n.end.offset--;const a=this.mergeAttributes(n.end);return new se(r,a)}rename(e,t){const o=new J(this.document,e,t.getAttributes());return this.insert(oe._createAfter(t),o),this.move(se._createIn(t),oe._createAt(o,0)),this.remove(se._createOn(t)),o}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return oe._createAt(e,t)}createPositionAfter(e){return oe._createAfter(e)}createPositionBefore(e){return oe._createBefore(e)}createRange(e,t){return new se(e,t)}createRangeOn(e){return se._createOn(e)}createRangeIn(e){return se._createIn(e)}createSelection(...e){return new ne(...e)}createSlot(e="children"){if(!this._slotFactory)throw new g.Yb("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,e)}_registerSlotFactory(e){this._slotFactory=e}_clearSlotFactory(){this._slotFactory=null}_insertNodes(e,t,o){let s,i;if(s=o?Ve(e):e.parent.is("$text")?e.parent.parent:e.parent,!s)throw new g.Yb("view-writer-invalid-position-container",this.document);i=o?this._breakAttributes(e,!0):e.parent.is("$text")?Re(e):e;const n=s._insertChild(i.offset,t);for(const e of t)this._addToClonedElementsGroup(e);const r=i.getShiftedBy(n),a=this.mergeAttributes(i);a.isEqual(i)||r.offset--;const c=this.mergeAttributes(r);return new se(a,c)}_wrapChildren(e,t,o,s){let i=t;const n=[];for(;i<o;){const t=e.getChild(i),o=t.is("$text"),r=t.is("attributeElement");if(r&&t._canMergeAttributesFrom(s))t._mergeAttributesFrom(s),n.push(new oe(e,i));else if(o||!r||Oe(s,t)){const o=s._clone();t._remove(),o._appendChild(t),e._insertChild(i,o),this._addToClonedElementsGroup(o),n.push(new oe(e,i))}else this._wrapChildren(t,0,t.childCount,s);i++}let r=0;for(const e of n){if(e.offset-=r,e.offset==t)continue;this.mergeAttributes(e).isEqual(e)||(r++,o--)}return se._createFromParentsAndOffsets(e,t,e,o)}_unwrapChildren(e,t,o,s){let i=t;const n=[];for(;i<o;){const t=e.getChild(i);if(t.is("attributeElement")){if(t.isSimilar(s)){const s=t.getChildren(),r=t.childCount;t._remove(),e._insertChild(i,s),this._removeFromClonedElementsGroup(t),n.push(new oe(e,i),new oe(e,i+r)),i+=r,o+=r-1;continue}t._canSubtractAttributesOf(s)?(t._subtractAttributesOf(s),n.push(new oe(e,i),new oe(e,i+1)),i++):(this._unwrapChildren(t,0,t.childCount,s),i++)}else i++}let r=0;for(const e of n){if(e.offset-=r,e.offset==t||e.offset==o)continue;this.mergeAttributes(e).isEqual(e)||(r++,o--)}return se._createFromParentsAndOffsets(e,t,e,o)}_wrapRange(e,t){const{start:o,end:s}=this._breakAttributesRange(e,!0),i=o.parent,n=this._wrapChildren(i,o.offset,s.offset,t),r=this.mergeAttributes(n.start);r.isEqual(n.start)||n.end.offset--;const a=this.mergeAttributes(n.end);return new se(r,a)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return Ie(e.clone());e.parent.is("$text")&&(e=Re(e));const o=this.createAttributeElement("_wrapPosition-fake-element");o._priority=Number.POSITIVE_INFINITY,o.isSimilar=()=>!1,e.parent._insertChild(e.offset,o);const s=new se(e,e.getShiftedBy(1));this.wrap(s,t);const i=new oe(o.parent,o.index);o._remove();const n=i.nodeBefore,r=i.nodeAfter;return n&&n.is("view:$text")&&r&&r.is("view:$text")?je(n,r):Ie(i)}_breakAttributesRange(e,t=!1){const o=e.start,s=e.end;if(Le(e,this.document),e.isCollapsed){const o=this._breakAttributes(e.start,t);return new se(o,o)}const i=this._breakAttributes(s,t),n=i.parent.childCount,r=this._breakAttributes(o,t);return i.offset+=i.parent.childCount-n,new se(r,i)}_breakAttributes(e,t=!1){const o=e.offset,s=e.parent;if(e.parent.is("emptyElement"))throw new g.Yb("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new g.Yb("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new g.Yb("view-writer-cannot-break-raw-element",this.document);if(!t&&s.is("$text")&&Ne(s.parent))return e.clone();if(Ne(s))return e.clone();if(s.is("$text"))return this._breakAttributes(Re(e),t);if(o==s.childCount){const e=new oe(s.parent,s.index+1);return this._breakAttributes(e,t)}if(0===o){const e=new oe(s.parent,s.index);return this._breakAttributes(e,t)}{const e=s.index+1,i=s._clone();s.parent._insertChild(e,i),this._addToClonedElementsGroup(i);const n=s.childCount-o,r=s._removeChildren(o,n);i._appendChild(r);const a=new oe(s.parent,e);return this._breakAttributes(a,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(const t of e.getChildren())this._addToClonedElementsGroup(t);const t=e.id;if(!t)return;let o=this._cloneGroups.get(t);o||(o=new Set,this._cloneGroups.set(t,o)),o.add(e),e._clonesGroup=o}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const t of e.getChildren())this._removeFromClonedElementsGroup(t);const t=e.id;if(!t)return;const o=this._cloneGroups.get(t);o&&o.delete(e)}}function Ve(e){let t=e.parent;for(;!Ne(t);){if(!t)return;t=t.parent}return t}function Oe(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function Ie(e){const t=e.nodeBefore;if(t&&t.is("$text"))return new oe(t,t.data.length);const o=e.nodeAfter;return o&&o.is("$text")?new oe(o,0):e}function Re(e){if(e.offset==e.parent.data.length)return new oe(e.parent.parent,e.parent.index+1);if(0===e.offset)return new oe(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 T(e.root.document,t)),new oe(e.parent.parent,e.parent.index+1)}function je(e,t){const o=e.data.length;return e._data+=t.data,t._remove(),new oe(e,o)}const ze=[T,be,J,ve,Ee,xe];function Be(e,t){for(const o of e){if(!ze.some(e=>o instanceof e))throw new g.Yb("view-writer-insert-invalid-node-type",t);o.is("$text")||Be(o.getChildren(),t)}}function Ne(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function Le(e,t){const o=Ve(e.start),s=Ve(e.end);if(!o||!s||o!==s)throw new g.Yb("view-writer-invalid-range-container",t)}const De=e=>e.createTextNode(" "),Fe=e=>{const t=e.createElement("span");return t.dataset.ckeFiller="true",t.innerText=" ",t},He=e=>{const t=e.createElement("br");return t.dataset.ckeFiller="true",t},qe=7,We="".repeat(qe);function $e(e){return"string"==typeof e?e.substr(0,qe)===We:(0,g.KH)(e)&&e.data.substr(0,qe)===We}function Ue(e){return e.data.length==qe&&$e(e)}function Ke(e){const t="string"==typeof e?e:e.data;return $e(e)?t.slice(qe):t}function Ye(e){e.document.on("arrowKey",Ge,{priority:"low"})}function Ge(e,t){if(t.keyCode==g.uP.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,o=e.getRangeAt(0).startOffset;$e(t)&&o<=qe&&e.collapse(t,0)}}}var Je=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-engine/theme/renderer.css"),Ze={attributes:{"data-cke":!0}};Ze.setAttributes=d(),Ze.insert=c().bind(null,"head"),Ze.domAPI=r(),Ze.insertStyleElement=h();i()(Je.A,Ze);Je.A&&Je.A.locals&&Je.A.locals;class Xe extends((0,g.VM)()){domDocuments=new Set;domConverter;markedAttributes=new Set;markedChildren=new Set;markedTexts=new Set;selection;_inlineFiller=null;_fakeSelectionContainer=null;constructor(e,t){super(),this.domConverter=e,this.selection=t,this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),g._K.isBlink&&!g._K.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||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 g.Yb("view-renderer-unknown-type",this)}this.markedChildren.add(t)}}}render(){if(this.isComposing&&!g._K.isAndroid)return;let e=null;const t=!(g._K.isBlink&&!g._K.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=oe._createBefore(e.parent)));for(const e of this.markedAttributes)this._updateAttrs(e);for(const t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(const t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(t)if(e){const t=this.domConverter.viewPositionToDom(e),o=t.parent.ownerDocument;$e(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=Qe(o,t.parent,t.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const o=Array.from(t.childNodes),s=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),i=this._diffNodeLists(o,s),n=this._findUpdateActions(i,o,s,et);if(-1!==n.indexOf("update")){const t={equal:0,insert:0,delete:0};for(const i of n)if("update"===i){const i=t.equal+t.insert,n=t.equal+t.delete,r=e.getChild(i);!r||r.is("uiElement")||r.is("rawElement")||this._updateElementMappings(r,o[n]),(0,g.TF)(s[i]),t.equal++}else t[i]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();return e.parent.is("$text")?oe._createBefore(e.parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&(0,g.KH)(t.parent)&&$e(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!$e(e))throw new g.Yb("view-renderer-filler-was-lost",this);Ue(e)?e.remove():e.data=e.data.substr(qe),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,o=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;const t=e.findAncestor(e=>e.hasAttribute("contenteditable"));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;const s=e.nodeBefore,i=e.nodeAfter;return!(s instanceof T||i instanceof T)&&(!!(o!==t.getFillerOffset()||s&&s.is("element","br"))&&(!g._K.isAndroid||!s&&!i))}_updateText(e,t){const o=this.domConverter.findCorrespondingDomText(e);let s=this.domConverter.viewToDom(e).data;const i=t.inlineFillerPosition;i&&i.parent==e.parent&&i.offset==e.index&&(s=We+s),this._updateTextNode(o,s)}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(t){for(const o of Array.from(t.attributes)){const s=o.name;e.hasAttribute(s)||this.domConverter.removeDomElementAttribute(t,s)}for(const o of e.getAttributeKeys())this.domConverter.setDomElementAttribute(t,o,e.getAttribute(o),e)}}_updateChildren(e,t){const o=this.domConverter.mapViewToDom(e);if(!o)return;if(g._K.isAndroid){let e=null;for(const t of Array.from(o.childNodes)){if(e&&(0,g.KH)(e)&&(0,g.KH)(t)){o.normalize();break}e=t}}const s=t.inlineFillerPosition,i=o.childNodes,n=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));s&&s.parent===e&&Qe(o.ownerDocument,n,s.offset);const r=this._diffNodeLists(i,n),a=this._findUpdateActions(r,i,n,tt);let c=0;const l=new Set;for(const e of a)"delete"===e?(l.add(i[c]),(0,g.TF)(i[c])):"equal"!==e&&"update"!==e||c++;c=0;for(const e of a)"insert"===e?((0,g.PT)(o,c,n[c]),c++):"update"===e?(this._updateTextNode(i[c],n[c].data),c++):"equal"===e&&(this._markDescendantTextToSync(this.domConverter.domToView(n[c])),c++);for(const e of l)e.parentNode||this.domConverter.unbindDomElement(e)}_diffNodeLists(e,t){return e=function(e,t){const o=Array.from(e);if(0==o.length||!t)return o;o[o.length-1]==t&&o.pop();return o}(e,this._fakeSelectionContainer),(0,g.Ui)(e,t,ot.bind(null,this.domConverter))}_findUpdateActions(e,t,o,s){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let i=[],n=[],r=[];const a={equal:0,insert:0,delete:0};for(const c of e)"insert"===c?r.push(o[a.equal+a.insert]):"delete"===c?n.push(t[a.equal+a.delete]):(i=i.concat((0,g.Ui)(n,r,s).map(e=>"equal"===e?"update":e)),i.push("equal"),n=[],r=[]),a[c]++;return i.concat((0,g.Ui)(n,r,s).map(e=>"equal"===e?"update":e))}_updateTextNode(e,t){const o=e.data;o!=t&&(g._K.isAndroid&&this.isComposing&&o.replace(/\u00A0/g," ")==t.replace(/\u00A0/g," ")||this._updateTextNodeInternal(e,t))}_updateTextNodeInternal(e,t){const o=(0,g.Mr)(e.data,t);for(const t of o)"insert"===t.type?e.insertData(t.index,t.values.join("")):e.deleteData(t.index,t.howMany)}_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(g._K.isBlink&&!g._K.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&&g._K.isAndroid||this._updateDomSelection(e):!this.selection.isFake&&this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected&&this._removeFakeSelection()}_updateFakeSelection(e){const t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){const t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));const o=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(o,this.selection),!this._fakeSelectionNeedsUpdate(e))return;o.parentElement&&o.parentElement==e||e.appendChild(o),o.textContent=this.selection.fakeSelectionLabel||" ";const s=t.getSelection(),i=t.createRange();s.removeAllRanges(),i.selectNodeContents(o),s.addRange(i)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const o=this.domConverter.viewPositionToDom(this.selection.anchor),s=this.domConverter.viewPositionToDom(this.selection.focus);t.setBaseAndExtent(o.parent,o.offset,s.parent,s.offset),g._K.isGecko&&function(e,t){let o=e.parent,s=e.offset;(0,g.KH)(o)&&Ue(o)&&(s=(0,g.qh)(o)+1,o=o.parentNode);if(o.nodeType!=Node.ELEMENT_NODE||s!=o.childNodes.length-1)return;const i=o.childNodes[s];i&&"BR"==i.tagName&&t.addRange(t.getRangeAt(0))}(s,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;const t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer,o=e.ownerDocument.getSelection();return!t||t.parentElement!==e||(o.anchorNode!==t&&!t.contains(o.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const e of this.domDocuments){const t=e.getSelection();if(t.rangeCount){const o=e.activeElement,s=this.domConverter.mapDomToView(o);o&&s&&t.removeAllRanges()}}}_removeFakeSelection(){const e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function Qe(e,t,o){const s=t instanceof Array?t:t.childNodes,i=s[o];if((0,g.KH)(i))return i.data=We+i.data,i;{const i=e.createTextNode(We);return Array.isArray(t)?s.splice(o,0,i):(0,g.PT)(t,o,i),i}}function et(e,t){return(0,g.Ll)(e)&&(0,g.Ll)(t)&&!(0,g.KH)(e)&&!(0,g.KH)(t)&&!(0,g.Cn)(e)&&!(0,g.Cn)(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function tt(e,t){return(0,g.Ll)(e)&&(0,g.Ll)(t)&&(0,g.KH)(e)&&(0,g.KH)(t)}function ot(e,t,o){return t===o||((0,g.KH)(t)&&(0,g.KH)(o)?t.data===o.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(o)))}const st=He(g.Sf.document),it=De(g.Sf.document),nt=Fe(g.Sf.document),rt="data-ck-unsafe-attribute-",at="data-ck-unsafe-element";class ct{document;renderingMode;blockFillerMode;preElements;blockElements;inlineObjectElements;unsafeElements;_domDocument;_domToViewMapping=new WeakMap;_viewToDomMapping=new WeakMap;_fakeSelectionMapping=new WeakMap;_rawContentElementMatcher=new R;_inlineObjectElementMatcher=new R;_elementsWithTemporaryCustomProperties=new Set;constructor(e,{blockFillerMode:t,renderingMode:o="editing"}={}){this.document=e,this.renderingMode=o,this.blockFillerMode=t||("editing"===o?"br":"nbsp"),this.preElements=["pre","textarea"],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?g.Sf.document:g.Sf.document.implementation.createHTMLDocument("")}get domDocument(){return this._domDocument}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new ne(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(const t of e.children)this.unbindDomElement(t)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,o){return"data"===this.renderingMode||!(e=e.toLowerCase()).startsWith("on")&&("srcdoc"!==e&&("img"===o&&("src"===e||"srcset"===e)||("source"===o&&"srcset"===e||!t.replace(/\s+/g,"").match(/^(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(e,t){if("data"===this.renderingMode)return void(e.innerHTML=t);const o=(new DOMParser).parseFromString(t,"text/html"),s=o.createDocumentFragment(),i=o.body.childNodes;for(;i.length>0;)s.appendChild(i[0]);const n=o.createTreeWalker(s,NodeFilter.SHOW_ELEMENT),r=[];let a;for(;a=n.nextNode();)r.push(a);for(const e of r){for(const t of e.getAttributeNames())this.setDomElementAttribute(e,t,e.getAttribute(t));const t=e.tagName.toLowerCase();this._shouldRenameElement(t)&&(gt(t),e.replaceWith(this._createReplacementDomElement(t,e)))}for(;e.firstChild;)e.firstChild.remove();e.append(s)}viewToDom(e,t={}){if(e.is("$text")){const t=this._processDataFromViewText(e);return this._domDocument.createTextNode(t)}{const o=e;if(this.mapViewToDom(o)){if(!o.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(o);this._elementsWithTemporaryCustomProperties.add(o)}let s;if(o.is("documentFragment"))s=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(s,o);else{if(o.is("uiElement"))return s="$comment"===o.name?this._domDocument.createComment(o.getCustomProperty("$rawContent")):o.render(this._domDocument,this),t.bind&&this.bindElements(s,o),s;this._shouldRenameElement(o.name)?(gt(o.name),s=this._createReplacementDomElement(o.name)):s=o.hasAttribute("xmlns")?this._domDocument.createElementNS(o.getAttribute("xmlns"),o.name):this._domDocument.createElement(o.name),o.is("rawElement")&&o.render(s,this),t.bind&&this.bindElements(s,o);for(const e of o.getAttributeKeys())this.setDomElementAttribute(s,e,o.getAttribute(e),o)}if(!1!==t.withChildren)for(const e of this.viewChildrenToDom(o,t))s instanceof HTMLTemplateElement?s.content.appendChild(e):s.appendChild(e);return s}}setDomElementAttribute(e,t,o,s){const i=this.shouldRenderAttribute(t,o,e.tagName.toLowerCase())||s&&s.shouldRenderUnsafeAttribute(t);i||(0,g.FF)("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:o}),(0,g.i8)(t)?(e.hasAttribute(t)&&!i?e.removeAttribute(t):e.hasAttribute(rt+t)&&i&&e.removeAttribute(rt+t),e.setAttribute(i?t:rt+t,o)):(0,g.FF)("domconverter-invalid-attribute-detected",{domElement:e,key:t,value:o})}removeDomElementAttribute(e,t){t!=at&&(e.removeAttribute(t),e.removeAttribute(rt+t))}*viewChildrenToDom(e,t={}){const o=e.getFillerOffset&&e.getFillerOffset();let s=0;for(const i of e.getChildren()){o===s&&(yield this._getBlockFiller());const e=i.is("element")&&!!i.getCustomProperty("dataPipeline:transparentRendering")&&!(0,g.$1)(i.getAttributes());if(e&&"data"==this.renderingMode)if(i.is("rawElement")){const e=this._domDocument.createElement(i.name);i.render(e,this),yield*[...e.childNodes]}else yield*this.viewChildrenToDom(i,t);else e&&(0,g.FF)("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:i}),yield this.viewToDom(i,t);s++}o===s&&(yield this._getBlockFiller())}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),o=this.viewPositionToDom(e.end),s=this._domDocument.createRange();return s.setStart(t.parent,t.offset),s.setEnd(o.parent,o.offset),s}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const o=this.findCorrespondingDomText(t);if(!o)return null;let s=e.offset;return $e(o)&&(s+=qe),o.data&&s>o.data.length&&(s=o.data.length),{parent:o,offset:s}}{let o,s,i;if(0===e.offset){if(o=this.mapViewToDom(t),!o)return null;i=o.childNodes[0]}else{const t=e.nodeBefore;if(s=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(t),!s)return null;o=s.parentNode,i=s.nextSibling}if((0,g.KH)(i)&&$e(i))return{parent:i,offset:qe};return{parent:o,offset:s?(0,g.qh)(s)+1:0}}}domToView(e,t={}){const o=[],s=this._domToView(e,t,o),i=s.next().value;return i?(s.next(),this._processDomInlineNodes(null,o,t),"br"==this.blockFillerMode&&pt(i)||i.is("$text")&&0==i.data.length?null:i):null}*domChildrenToView(e,t={},o=[]){let s=[];s=e instanceof HTMLTemplateElement?[...e.content.childNodes]:[...e.childNodes];for(let i=0;i<s.length;i++){const n=s[i],r=this._domToView(n,t,o),a=r.next().value;null!==a&&(this._isBlockViewElement(a)&&this._processDomInlineNodes(e,o,t),"br"==this.blockFillerMode&&pt(a)||(yield a),r.next())}this._processDomInlineNodes(e,o,t)}domSelectionToView(e){if(function(e){if(!g._K.isGecko)return!1;if(!e.rangeCount)return!1;const t=e.getRangeAt(0).startContainer;try{Object.prototype.toString.call(t)}catch{return!0}return!1}(e))return new ne([]);if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;(0,g.KH)(t)&&(t=t.parentNode);const o=this.fakeSelectionToView(t);if(o)return o}const t=this.isDomSelectionBackward(e),o=[];for(let t=0;t<e.rangeCount;t++){const s=e.getRangeAt(t),i=this.domRangeToView(s);i&&o.push(i)}return new ne(o,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),o=this.domPositionToView(e.endContainer,e.endOffset);return t&&o?new se(t,o):null}domPositionToView(e,t=0){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,(0,g.qh)(e));const o=this.mapDomToView(e);if(o&&(o.is("uiElement")||o.is("rawElement")))return oe._createBefore(o);if((0,g.KH)(e)){if(Ue(e))return this.domPositionToView(e.parentNode,(0,g.qh)(e));const o=this.findCorrespondingViewText(e);let s=t;return o?($e(e)&&(s-=qe,s=s<0?0:s),new oe(o,s)):null}if(0===t){const t=this.mapDomToView(e);if(t)return new oe(t,0)}else{const o=e.childNodes[t-1];if((0,g.KH)(o)&&Ue(o)||o&&this.isBlockFiller(o))return this.domPositionToView(o.parentNode,(0,g.qh)(o));const s=(0,g.KH)(o)?this.findCorrespondingViewText(o):this.mapDomToView(o);if(s&&s.parent)return new oe(s.parent,s.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(Ue(e))return null;const t=this.getHostViewElement(e);if(t)return t;const o=e.previousSibling;if(o){if(!this.isElement(o))return null;const e=this.mapDomToView(o);if(e){const t=e.nextSibling;return t instanceof T?t:null}}else{const t=this.mapDomToView(e.parentNode);if(t){const e=t.getChild(0);return e instanceof T?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)return;const{scrollX:o,scrollY:s}=g.Sf.window,i=[];lt(t,e=>{const{scrollLeft:t,scrollTop:o}=e;i.push([t,o])}),t.focus({preventScroll:!0}),lt(t,e=>{const[t,o]=i.shift();e.scrollLeft=t,e.scrollTop=o}),g.Sf.window.scrollTo(o,s)}_clearDomSelection(){const e=this.mapViewToDom(this.document.selection.editableElement);if(!e)return;const t=e.ownerDocument.defaultView.getSelection(),o=this.domSelectionToView(t);o&&o.rangeCount>0&&t.removeAllRanges()}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(e){return"br"==this.blockFillerMode?e.isEqualNode(st):!!mt(e,this.blockElements)||(e.isEqualNode(nt)||function(e,t){const o=e.isEqualNode(it);return o&&dt(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{return!1}const o=t.collapsed;return t.detach(),o}getHostViewElement(e){const t=(0,g.DS)(e);for(t.pop();t.length;){const e=t.pop(),o=this._domToViewMapping.get(e);if(o&&(o.is("uiElement")||o.is("rawElement")))return o}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}registerInlineObjectMatcher(e){this._inlineObjectElementMatcher.add(e)}_clearTemporaryCustomProperties(){for(const e of this._elementsWithTemporaryCustomProperties)e._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return De(this._domDocument);case"markedNbsp":return Fe(this._domDocument);case"br":return He(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if((0,g.KH)(e)&&$e(e)&&t<qe)return!1;if(this.isElement(e)&&$e(e.childNodes[t]))return!1;const o=this.mapDomToView(e);return!o||!o.is("uiElement")&&!o.is("rawElement")}*_domToView(e,t,o){if("br"!=this.blockFillerMode&&mt(e,this.blockElements))return null;const s=this.getHostViewElement(e);if(s)return s;if((0,g.Cn)(e)&&t.skipComments)return null;if((0,g.KH)(e)){if(Ue(e))return null;{const t=e.data;if(""===t)return null;const s=new T(this.document,t);return o.push(s),s}}{let s=this.mapDomToView(e);if(s)return this._isInlineObjectElement(s)&&o.push(s),s;if(this.isDocumentFragment(e))s=new Te(this.document),t.bind&&this.bindDocumentFragments(e,s);else{s=this._createViewElement(e,t),t.bind&&this.bindElements(e,s);const i=e.attributes;if(i)for(let e=i.length,t=0;t<e;t++)s._setAttribute(i[t].name,i[t].value);if(this._isViewElementWithRawContent(s,t))return s._setCustomProperty("$rawContent",e.innerHTML),this._isBlockViewElement(s)||o.push(s),s;if((0,g.Cn)(e))return s._setCustomProperty("$rawContent",e.data),s}yield s;const i=[];if(!1!==t.withChildren)for(const o of this.domChildrenToView(e,t,i))s._appendChild(o);if(this._isInlineObjectElement(s))o.push(s),this._processDomInlineNodes(null,i,t);else for(const e of i)o.push(e)}}_processDomInlineNodes(e,t,o){if(!t.length)return;if(e&&!this.isDocumentFragment(e)&&!this._isBlockDomElement(e))return;let s=!1;for(let e=0;e<t.length;e++){const i=t[e];if(!i.is("$text")){s=!1;continue}let n,r=!1;if(this._isPreFormatted(i))n=Ke(i.data);else{n=i.data.replace(/[ \n\t\r]{1,}/g," "),r=/[^\S\u00A0]/.test(n.charAt(n.length-1));const a=e>0?t[e-1]:null,c=e+1<t.length?t[e+1]:null,l=!a||a.is("element")&&"br"==a.name||s,d=!c&&!$e(i.data);!1!==o.withChildren&&(l&&(n=n.replace(/^ /,"")),d&&(n=n.replace(/ $/,""))),n=Ke(n),"br"!=this.blockFillerMode&&i.parent&&(ht(i.parent,n)?(n="",i.parent.parent&&(i.parent.parent._setCustomProperty("$hasBlockFiller",!0),i.parent._remove())):ut(i.parent,n,this.blockElements)&&(n="",i.parent._setCustomProperty("$hasBlockFiller",!0))),n=n.replace(/ \u00A0/g," ");const u=c&&c.is("element")&&"br"!=c.name,h=c&&c.is("$text")&&" "==c.data.charAt(0);(/[ \u00A0]\u00A0$/.test(n)||!c||u||h)&&(n=n.replace(/\u00A0$/," ")),(l||a&&a.is("element")&&"br"!=a.name)&&(n=n.replace(/^\u00A0/," "))}0==n.length&&i.parent?(i._remove(),t.splice(e,1),e--):(i._data=n,s=r)}t.length=0}_processDataFromViewText(e){let t=e.data;if(this._isPreFormatted(e))return t;if(" "==t.charAt(0)){const o=this._getTouchingInlineViewNode(e,!1);!(o&&o.is("$textProxy")&&this._nodeEndsWithSpace(o))&&o||(t=" "+t.substr(1))}if(" "==t.charAt(t.length-1)){const o=this._getTouchingInlineViewNode(e,!0),s=o&&o.is("$textProxy")&&" "==o.data.charAt(0);" "!=t.charAt(t.length-2)&&o&&!s||(t=t.substr(0,t.length-1)+" ")}return t.replace(/ {2}/g," ")}_nodeEndsWithSpace(e){if(this._isPreFormatted(e))return!1;const t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_isPreFormatted(e){if(function(e,t){return e.getAncestors().some(e=>e.is("element")&&t.includes(e.name))}(e,this.preElements))return!0;for(const t of e.getAncestors({parentFirst:!0}))if(t.is("element")&&t.hasStyle("white-space")&&"inherit"!==t.getStyle("white-space"))return["pre","pre-wrap","break-spaces"].includes(t.getStyle("white-space"));return!1}_getTouchingInlineViewNode(e,t){const o=new te({startPosition:t?oe._createAfter(e):oe._createBefore(e),direction:t?"forward":"backward"});for(const{item:e}of o){if(e.is("$textProxy"))return e;if(!e.is("element")||!e.getCustomProperty("dataPipeline:transparentRendering")){if(e.is("element","br"))return null;if(this._isInlineObjectElement(e))return e;if(e.is("containerElement")||this._isBlockViewElement(e))return null}}return null}_isBlockDomElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isBlockViewElement(e){return e.is("element")&&this.blockElements.includes(e.name)}_isInlineObjectElement(e){return!!e.is("element")&&("br"==e.name||this.inlineObjectElements.includes(e.name)||!!this._inlineObjectElementMatcher.match(e))}_createViewElement(e,t){if((0,g.Cn)(e))return new xe(this.document,"$comment");const o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new K(this.document,o)}_isViewElementWithRawContent(e,t){return!1!==t.withChildren&&e.is("element")&&!!this._rawContentElementMatcher.match(e)}_shouldRenameElement(e){const t=e.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(t)}_createReplacementDomElement(e,t){const o=this._domDocument.createElement("span");if(o.setAttribute(at,e),t){for(;t.firstChild;)o.appendChild(t.firstChild);for(const e of t.getAttributeNames())o.setAttribute(e,t.getAttribute(e))}return o}}function lt(e,t){let o=e;for(;o;)t(o),o=o.parentElement}function dt(e,t){const o=e.parentNode;return!!o&&!!o.tagName&&t.includes(o.tagName.toLowerCase())}function ut(e,t,o){return" "==t&&e&&e.is("element")&&1==e.childCount&&o.includes(e.name)}function ht(e,t){return" "==t&&e&&e.is("element","span")&&1==e.childCount&&e.hasAttribute("data-cke-filler")}function pt(e){return e.is("element","br")&&e.hasAttribute("data-cke-filler")}function mt(e,t){return"BR"===e.tagName&&dt(e,t)&&1===e.parentNode.childNodes.length}function gt(e){"script"===e&&(0,g.FF)("domconverter-unsafe-script-element-detected"),"style"===e&&(0,g.FF)("domconverter-unsafe-style-element-detected")}class ft extends((0,g.c5)()){view;document;_isEnabled=!1;constructor(e){super(),this.view=e,this.document=e.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}var _t=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/assignIn.mjs");class bt{view;document;domEvent;domTarget;constructor(e,t,o){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,(0,_t.J)(this,o)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class wt extends ft{useCapture=!1;usePassive=!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,usePassive:this.usePassive})})}stopObserving(e){this.stopListening(e)}fire(e,t,o){this.isEnabled&&this.document.fire(e,new bt(this.view,t,o))}}class kt extends wt{domEventType=["keydown","keyup"];onDomEvent(e){const t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return(0,g.QC)(this)}};this.fire(e.type,e,t)}}var vt=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.mjs");class yt extends ft{_fireSelectionChangeDoneDebounced;constructor(e){super(e),this._fireSelectionChangeDoneDebounced=(0,vt.s)(e=>{this.document.fire("selectionChangeDone",e)},200)}observe(){const e=this.document;e.on("arrowKey",(t,o)=>{e.selection.isFake&&this.isEnabled&&o.preventDefault()},{context:"$capture"}),e.on("arrowKey",(t,o)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(o.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,o=new ne(t.getRanges(),{backward:t.isBackward,fake:!1});e!=g.uP.arrowleft&&e!=g.uP.arrowup||o.setTo(o.getFirstPosition()),e!=g.uP.arrowright&&e!=g.uP.arrowdown||o.setTo(o.getLastPosition());const s={oldSelection:t,newSelection:o,domSelection:null};this.document.fire("selectionChange",s),this._fireSelectionChangeDoneDebounced(s)}}function xt(e,t){if(!Number.isInteger(e)||e<0)throw new Error("n must be a non-negative integer.");let o=0;return(...s)=>{if(++o>=e)return t(...s)}}function At(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}var Ct=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs"),Et=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs"),St=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/tags.mjs"),Tt=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/eq.mjs");function Pt(e,t,o){return Mt(e,t,void 0,void 0,void 0,void 0,o)}function Mt(e,t,o,s,i,n,r){const a=r(e,t,o,s,i,n);if(void 0!==a)return a;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return e===t;case"number":return e===t||Object.is(e,t);case"object":return Vt(e,t,n,r)}return Vt(e,t,n,r)}function Vt(e,t,o,s){if(Object.is(e,t))return!0;let i=(0,Et.b)(e),n=(0,Et.b)(t);if(i===St.R_&&(i=St.GX),n===St.R_&&(n=St.GX),i!==n)return!1;switch(i){case St.OG:return e.toString()===t.toString();case St.kj:{const o=e.valueOf(),s=t.valueOf();return(0,Tt.eq)(o,s)}case St.$V:case St.vC:case St.VP:return Object.is(e.valueOf(),t.valueOf());case St.Av:return e.source===t.source&&e.flags===t.flags;case St.tx:return e===t}const r=(o=o??new Map).get(e),a=o.get(t);if(null!=r&&null!=a)return r===t;o.set(e,t),o.set(t,e);try{switch(i){case St.pj:if(e.size!==t.size)return!1;for(const[i,n]of e.entries())if(!t.has(i)||!Mt(n,t.get(i),i,e,t,o,s))return!1;return!0;case St.NA:{if(e.size!==t.size)return!1;const i=Array.from(e.values()),n=Array.from(t.values());for(let r=0;r<i.length;r++){const a=i[r],c=n.findIndex(i=>Mt(a,i,void 0,e,t,o,s));if(-1===c)return!1;n.splice(c,1)}return!0}case St.Uw:case St.Qb:case St.q:case St.x6:case St.ZR:case St.g5:case St.XZ:case St.i1:case St._u:case St.xh:case St.ri:case St.ML:if("undefined"!=typeof Buffer&&Buffer.isBuffer(e)!==Buffer.isBuffer(t))return!1;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!Mt(e[i],t[i],i,e,t,o,s))return!1;return!0;case St.cT:return e.byteLength===t.byteLength&&Vt(new Uint8Array(e),new Uint8Array(t),o,s);case St.iq:return e.byteLength===t.byteLength&&e.byteOffset===t.byteOffset&&Vt(new Uint8Array(e),new Uint8Array(t),o,s);case St.N1:return e.name===t.name&&e.message===t.message;case St.GX:{if(!(Vt(e.constructor,t.constructor,o,s)||At(e)&&At(t)))return!1;const i=[...Object.keys(e),...(0,Ct.O)(e)],n=[...Object.keys(t),...(0,Ct.O)(t)];if(i.length!==n.length)return!1;for(let n=0;n<i.length;n++){const r=i[n],a=e[r];if(!Object.hasOwn(t,r))return!1;if(!Mt(a,t[r],r,e,t,o,s))return!1}return!0}default:return!1}}finally{o.delete(e),o.delete(t)}}function Ot(e,t,o){return"function"!=typeof o&&(o=()=>{}),Pt(e,t,(...s)=>{const i=o(...s);return void 0!==i?Boolean(i):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?Ot(Array.from(e),Array.from(t),xt(2,o)):void 0})}class It extends ft{domConverter;_config;_domElements;_mutationObserver;constructor(e){super(e),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=e.domConverter,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.add(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}stopObserving(e){if(this._domElements.delete(e),this.isEnabled){this._mutationObserver.disconnect();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}}enable(){super.enable();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(0===e.length)return;const t=this.domConverter,o=new Set,s=new Set;for(const o of e){const e=t.mapDomToView(o.target);e&&(e.is("uiElement")||e.is("rawElement")||"childList"!==o.type||this._isBogusBrMutation(o)||s.add(e))}for(const i of e){const e=t.mapDomToView(i.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===i.type){const e=t.findCorrespondingViewText(i.target);e&&!s.has(e.parent)?o.add(e):!e&&$e(i.target)&&s.add(t.mapDomToView(i.target.parentNode))}}const i=[];for(const e of o)i.push({type:"text",node:e});for(const e of s){const o=t.mapViewToDom(e);Ot(Array.from(e.getChildren()),Array.from(t.domChildrenToView(o,{withChildren:!1})),Rt)||i.push({type:"children",node:e})}i.length&&this.document.fire("mutations",{mutations:i})}_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 Rt(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}class jt extends wt{_renderTimeoutId=null;_isFocusChanging=!1;domEventType=["focus","blur"];constructor(e){super(e),this.useCapture=!0;const t=this.document;t.on("focus",()=>this._handleFocus()),t.on("blur",(e,t)=>this._handleBlur(t)),t.on("beforeinput",()=>{t.isFocused||this._handleFocus()},{priority:"highest"})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(e){this.fire(e.type,e)}destroy(){this._clearTimeout(),super.destroy()}_handleFocus(){this._clearTimeout(),this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this._renderTimeoutId=null,this.flush(),this.view.change(()=>{})},50)}_handleBlur(e){const t=this.document.selection.editableElement;null!==t&&t!==e.target||(this.document.isFocused=!1,this._isFocusChanging=!1,this.view.change(()=>{}))}_clearTimeout(){this._renderTimeoutId&&(clearTimeout(this._renderTimeoutId),this._renderTimeoutId=null)}}class zt extends ft{mutationObserver;focusObserver;selection;domConverter;_documents=new WeakSet;_fireSelectionChangeDoneDebounced;_clearInfiniteLoopInterval;_documentIsSelectingInactivityTimeoutDebounced;_loopbackCounter=0;_pendingSelectionChange=new Set;constructor(e){super(e),this.mutationObserver=e.getObserver(It),this.focusObserver=e.getObserver(jt),this.selection=this.document.selection,this.domConverter=e.domConverter,this._fireSelectionChangeDoneDebounced=(0,vt.s)(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=(0,vt.s)(()=>this.document.isSelecting=!1,5e3),this.view.document.on("change:isFocused",(e,t,o)=>{if(o&&this._pendingSelectionChange.size){for(const e of Array.from(this._pendingSelectionChange))this._handleSelectionChange(e);this._pendingSelectionChange.clear()}})}observe(e){const t=e.ownerDocument,o=()=>{this.document.isSelecting&&(this._handleSelectionChange(t),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(e,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(e,"keydown",o,{priority:"highest",useCapture:!0}),this.listenTo(e,"keyup",o,{priority:"highest",useCapture:!0}),this._documents.has(t)||(this.listenTo(t,"mouseup",o,{priority:"highest",useCapture:!0}),this.listenTo(t,"selectionchange",()=>{this.document.isComposing&&!g._K.isAndroid||(this._handleSelectionChange(t),this._documentIsSelectingInactivityTimeoutDebounced())}),this.listenTo(this.view.document,"compositionstart",()=>{this._handleSelectionChange(t)},{priority:"lowest"}),this._documents.add(t))}stopObserving(e){this.stopListening(e)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(e){if(!this.isEnabled)return;const t=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(t.anchorNode))return;this.mutationObserver.flush();const o=this.domConverter.domSelectionToView(t);var s;if(0!=o.rangeCount)if(this.view.hasDomSelection=!0,this.focusObserver.flush(),this.view.document.isFocused||this.view.document.isReadOnly){if(this._pendingSelectionChange.delete(e),!this.selection.isEqual(o)||!this.domConverter.isDomSelectionCorrect(t))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(s=o,Array.from(s.getRanges()).flatMap(e=>[e.start.root,e.end.root]).every(e=>e&&e.is("rootElement")))if(this.selection.isSimilar(o))this.view.forceRender();else{const e={oldSelection:this.selection,newSelection:o,domSelection:t};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}else this.view.forceRender()}else this._pendingSelectionChange.add(e);else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Bt extends wt{domEventType=["compositionstart","compositionupdate","compositionend"];constructor(e){super(e);const t=this.document;t.on("compositionstart",()=>{t.isComposing=!0}),t.on("compositionend",()=>{t.isComposing=!1})}onDomEvent(e){this.fire(e.type,e,{data:e.data})}}class Nt{_files;_native;constructor(e,t={}){this._files=t.cacheFiles?Lt(e):null,this._native=e}get files(){return this._files||(this._files=Lt(this._native)),this._files}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}setDragImage(e,t,o){this._native.setDragImage(e,t,o)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Lt(e){const t=Array.from(e.files||[]),o=Array.from(e.items||[]);return t.length?t:o.filter(e=>"file"===e.kind).map(e=>e.getAsFile())}class Dt extends wt{domEventType="beforeinput";onDomEvent(e){const t=e.getTargetRanges(),o=this.view,s=o.document;let i=null,n=null,r=[];if(e.dataTransfer&&(i=new Nt(e.dataTransfer)),null!==e.data?n=e.data:i&&(n=i.getData("text/plain")),s.selection.isFake)r=Array.from(s.selection.getRanges()),e.preventDefault();else if(t.length)r=t.map(t=>{let s=o.domConverter.domPositionToView(t.startContainer,t.startOffset);const i=o.domConverter.domPositionToView(t.endContainer,t.endOffset);if(s&&$e(t.startContainer)&&t.startOffset<qe){e.preventDefault();let o=qe-t.startOffset;s=s.getLastMatchingPosition(e=>!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))||!(!e.item.is("$textProxy")||!o--),{direction:"backward",singleCharacters:!0})}return function(e,t){for(;e.parentNode;){if((0,g.KH)(e)){if(t!=e.data.length)return!1}else if(t!=e.childNodes.length)return!1;if((t=(0,g.qh)(e)+1)<(e=e.parentNode).childNodes.length&&$e(e.childNodes[t]))return!0}return!1}(t.endContainer,t.endOffset)&&e.preventDefault(),s?o.createRange(s,i):i?o.createRange(i):void 0}).filter(e=>!!e);else if(g._K.isAndroid){const t=e.target.ownerDocument.defaultView.getSelection();r=Array.from(o.domConverter.domSelectionToView(t).getRanges())}if(g._K.isAndroid&&"insertCompositionText"==e.inputType&&n&&n.endsWith("\n"))this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:[o.createRange(r[0].end)]});else{if(["insertText","insertReplacementText"].includes(e.inputType)&&n&&n.includes("\n")){const t=n.split(/\n{1,2}/g);let o=r;e.preventDefault();for(let n=0;n<t.length;n++){const r=t[n];""!=r&&(this.fire(e.type,e,{data:r,dataTransfer:i,targetRanges:o,inputType:e.inputType,isComposing:e.isComposing}),o=[s.selection.getFirstRange()]),n+1<t.length&&(this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:o}),o=[s.selection.getFirstRange()])}return}this.fire(e.type,e,{data:n,dataTransfer:i,targetRanges:r,inputType:e.inputType,isComposing:e.isComposing})}}}class Ft extends ft{constructor(e){super(e),this.document.on("keydown",(e,t)=>{if(this.isEnabled&&(0,g.Yt)(t.keyCode)){const o=new ae(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(o,t),o.stop.called&&e.stop()}})}observe(){}stopObserving(){}}class Ht extends ft{constructor(e){super(e);const t=this.document;t.on("keydown",(e,o)=>{if(!this.isEnabled||o.keyCode!=g.uP.tab||o.ctrlKey)return;const s=new ae(t,"tab",t.selection.getFirstRange());t.fire(s,o),s.stop.called&&e.stop()})}observe(){}stopObserving(){}}var qt=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs");class Wt extends((0,g.VM)()){document;domConverter;domRoots=new Map;_renderer;_initialDomRootAttributes=new WeakMap;_observers=new Map;_writer;_ongoingChange=!1;_postFixersInProgress=!1;_renderingDisabled=!1;_hasChangedSinceTheLastRendering=!1;constructor(e){super(),this.document=new _e(e),this.domConverter=new ct(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Xe(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Me(this.document),this.addObserver(It),this.addObserver(jt),this.addObserver(zt),this.addObserver(kt),this.addObserver(yt),this.addObserver(Bt),this.addObserver(Ft),this.addObserver(Dt),this.addObserver(Ht),Ye(this),Ae(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),g._K.isiOS&&this.listenTo(this.document,"blur",(e,t)=>{this.domConverter.mapDomToView(t.domEvent.relatedTarget)||this.domConverter._clearDomSelection()}),this.listenTo(this.document,"mutations",(e,{mutations:t})=>{t.forEach(e=>this._renderer.markToSync(e.type,e.node))},{priority:"low"}),this.listenTo(this.document,"mutations",()=>{this.forceRender()},{priority:"lowest"})}attachDomRoot(e,t="main"){const o=this.document.getRoot(t);o._name=e.tagName.toLowerCase();const s={};for(const{name:t,value:i}of Array.from(e.attributes))s[t]=i,"class"===t?this._writer.addClass(i.split(" "),o):o.hasAttribute(t)||this._writer.setAttribute(t,i,o);this._initialDomRootAttributes.set(e,s);const i=()=>{this._writer.setAttribute("contenteditable",(!o.isReadOnly).toString(),o),o.isReadOnly?this._writer.addClass("ck-read-only",o):this._writer.removeClass("ck-read-only",o)};i(),this.domRoots.set(t,e),this.domConverter.bindElements(e,o),this._renderer.markToSync("children",o),this._renderer.markToSync("attributes",o),this._renderer.domDocuments.add(e.ownerDocument),o.on("change:children",(e,t)=>this._renderer.markToSync("children",t)),o.on("change:attributes",(e,t)=>this._renderer.markToSync("attributes",t)),o.on("change:text",(e,t)=>this._renderer.markToSync("text",t)),o.on("change:isReadOnly",()=>this.change(i)),o.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const o of this._observers.values())o.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach(({name:e})=>t.removeAttribute(e));const o=this._initialDomRootAttributes.get(t);for(const e in o)t.setAttribute(e,o[e]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t);for(const e of this._observers.values())e.stopObserving(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(const[e,o]of this.domRoots)t.observe(o,e);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values())e.disable()}enableObservers(){for(const e of this._observers.values())e.enable()}scrollToTheSelection({alignToTop:e,forceScroll:t,viewportOffset:o=20,ancestorOffset:s=20}={}){const i=this.document.selection.getFirstRange();if(!i)return;const n=(0,qt.m)({alignToTop:e,forceScroll:t,viewportOffset:o,ancestorOffset:s});"number"==typeof o&&(o={top:o,bottom:o,left:o,right:o});const r={target:this.domConverter.viewRangeToDom(i),viewportOffset:o,ancestorOffset:s,alignToTop:e,forceScroll:t};this.fire("scrollToTheSelection",r,n),(0,g.vK)(r)}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 g.Yb("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){g.Yb.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(jt).flush(),this.change(()=>{})}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return oe._createAt(e,t)}createPositionAfter(e){return oe._createAfter(e)}createPositionBefore(e){return oe._createBefore(e)}createRange(e,t){return new se(e,t)}createRangeOn(e){return se._createOn(e)}createRangeIn(e){return se._createIn(e)}createSelection(...e){return new ne(...e)}_disableRendering(e){this._renderingDisabled=e,0==e&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class $t{is(){throw new Error("is() method is abstract")}}class Ut extends $t{textNode;data;offsetInText;constructor(e,t,o){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new g.Yb("model-textproxy-wrong-offsetintext",this);if(o<0||t+o>e.offsetSize)throw new g.Yb("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+o),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Ut.prototype.is=function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e};class Kt{direction;boundaries;singleCharacters;shallow;ignoreElementEnd;_position;_boundaryStartParent;_boundaryEndParent;_visitedParent;constructor(e){if(!e||!e.boundaries&&!e.startPosition)throw new g.Yb("model-tree-walker-no-start-position",null);const t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new g.Yb("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=Gt._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(e){let t,o,s,i;do{s=this.position,i=this._visitedParent,({done:t,value:o}=this.next())}while(!t&&e(o));t||(this._position=s,this._visitedParent=i)}jumpTo(e){this._boundaryStartParent&&e.isBefore(this.boundaries.start)?e=this.boundaries.start:this._boundaryEndParent&&e.isAfter(this.boundaries.end)&&(e=this.boundaries.end),this._position=e.clone(),this._visitedParent=e.parent}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),o=this._visitedParent;if(null===o.parent&&t.offset===o.maxOffset)return{done:!0,value:void 0};if(o===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const s=Jt(t,o),i=s||Zt(t,o,s);if(i&&i.is("model:element")){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t.path.push(0),this._visitedParent=i;return this._position=t,Yt("elementStart",i,e,t,1)}if(i&&i.is("model:$text")){let s;if(this.singleCharacters)s=1;else{let e=i.endOffset;this._boundaryEndParent==o&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),s=e-t.offset}const n=t.offset-i.startOffset,r=new Ut(i,n,s);return t.offset+=s,this._position=t,Yt("text",r,e,t,s)}return t.path.pop(),t.offset++,this._position=t,this._visitedParent=o.parent,this.ignoreElementEnd?this._next():Yt("elementEnd",o,e,t)}_previous(){const e=this.position,t=this.position.clone(),o=this._visitedParent;if(null===o.parent&&0===t.offset)return{done:!0,value:void 0};if(o==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const s=t.parent,i=Jt(t,s),n=i||Xt(t,s,i);if(n&&n.is("model:element"))return t.offset--,this.shallow?(this._position=t,Yt("elementStart",n,e,t,1)):(t.path.push(n.maxOffset),this._position=t,this._visitedParent=n,this.ignoreElementEnd?this._previous():Yt("elementEnd",n,e,t));if(n&&n.is("model:$text")){let s;if(this.singleCharacters)s=1;else{let e=n.startOffset;this._boundaryStartParent==o&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),s=t.offset-e}const i=t.offset-n.startOffset,r=new Ut(n,i-s,s);return t.offset-=s,this._position=t,Yt("text",r,e,t,s)}return t.path.pop(),this._position=t,this._visitedParent=o.parent,Yt("elementStart",o,e,t,1)}}function Yt(e,t,o,s,i){return{done:!1,value:{type:e,item:t,previousPosition:o,nextPosition:s,length:i}}}class Gt extends $t{root;path;stickiness;constructor(e,t,o="toNone"){if(super(),!e.is("element")&&!e.is("documentFragment"))throw new g.Yb("model-position-root-invalid",e);if(!Array.isArray(t)||0===t.length)throw new g.Yb("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=o}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChildAtOffset(this.path[t]),!e)throw new g.Yb("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new g.Yb("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Jt(this,this.parent)}get nodeAfter(){const e=this.parent;return Zt(this,e,Jt(this,e))}get nodeBefore(){const e=this.parent;return Xt(this,e,Jt(this,e))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}isValid(){if(this.offset<0)return!1;let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChildAtOffset(this.path[t]),!e)return!1;return this.offset<=e.maxOffset}compareWith(e){if(this.root!=e.root)return"different";const t=(0,g.ww)(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}getLastMatchingPosition(e,t={}){t.startPosition=this;const o=new Kt(t);return o.skip(e),o.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){const t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];const t=(0,g.ww)(this.path,e.path),o="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,o)}getCommonAncestor(e){const t=this.getAncestors(),o=e.getAncestors();let s=0;for(;t[s]==o[s]&&t[s];)s++;return 0===s?null:t[s-1]}getShiftedBy(e){const t=this.clone(),o=t.offset+e;return t.offset=o<0?0:o,t}isAfter(e){return"after"==this.compareWith(e)}isBefore(e){return"before"==this.compareWith(e)}isEqual(e){return"same"==this.compareWith(e)}isTouching(e){if(this.root!==e.root)return!1;const t=Math.min(this.path.length,e.path.length);for(let o=0;o<t;o++){const t=this.path[o]-e.path[o];if(t<-1||t>1)return!1;if(1===t)return Qt(e,this,o);if(-1===t)return Qt(this,e,o)}return this.path.length===e.path.length||(this.path.length>e.path.length?eo(this.path,t):eo(e.path,t))}hasSameParentAs(e){if(this.root!==e.root)return!1;const t=this.getParentPath(),o=e.getParentPath();return"same"==(0,g.ww)(t,o)}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=Gt._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){const t=e.movedRange;let o;return t.containsPosition(this)||t.start.isEqual(this)?(o=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(o=o._getTransformedByDeletion(e.deletionPosition,1))):o=this.isEqual(e.deletionPosition)?Gt._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),o}_getTransformedByDeletion(e,t){const o=Gt._createAt(this);if(this.root!=e.root)return o;if("same"==(0,g.ww)(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;o.offset-=t}}else if("prefix"==(0,g.ww)(e.getParentPath(),this.getParentPath())){const s=e.path.length-1;if(e.offset<=this.path[s]){if(e.offset+t>this.path[s])return null;o.path[s]-=t}}return o}_getTransformedByInsertion(e,t){const o=Gt._createAt(this);if(this.root!=e.root)return o;if("same"==(0,g.ww)(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(o.offset+=t);else if("prefix"==(0,g.ww)(e.getParentPath(),this.getParentPath())){const s=e.path.length-1;e.offset<=this.path[s]&&(o.path[s]+=t)}return o}_getTransformedByMove(e,t,o){if(t=t._getTransformedByDeletion(e,o),e.isEqual(t))return Gt._createAt(this);const s=this._getTransformedByDeletion(e,o);return null===s||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(o).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):s._getTransformedByInsertion(t,o)}_getCombined(e,t){const o=e.path.length-1,s=Gt._createAt(t);return s.stickiness=this.stickiness,s.offset=s.offset+this.path[o]-e.offset,s.path=[...s.path,...this.path.slice(o+1)],s}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(e,t,o="toNone"){if(e.is("model:position"))return new Gt(e.root,e.path,e.stickiness);{const s=e;if("end"==t)t=s.maxOffset;else{if("before"==t)return this._createBefore(s,o);if("after"==t)return this._createAfter(s,o);if(0!==t&&!t)throw new g.Yb("model-createpositionat-offset-required",[this,e])}if(!s.is("element")&&!s.is("documentFragment"))throw new g.Yb("model-position-parent-incorrect",[this,e]);const i=s.getPath();return i.push(t),new this(s.root,i,o)}}static _createAfter(e,t){if(!e.parent)throw new g.Yb("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 g.Yb("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){const o=new Gt(t.graveyard,e.path);return o.stickiness=e.stickiness,o}if(!t.getRoot(e.root))throw new g.Yb("model-position-fromjson-no-root",t,{rootName:e.root});return new Gt(t.getRoot(e.root),e.path,e.stickiness)}}function Jt(e,t){const o=t.getChildAtOffset(e.offset);return o&&o.is("$text")&&o.startOffset<e.offset?o:null}function Zt(e,t,o){return null!==o?null:t.getChildAtOffset(e.offset)}function Xt(e,t,o){return null!==o?null:t.getChild(t.offsetToIndex(e.offset)-1)}function Qt(e,t,o){return o+1!==e.path.length&&(!!eo(t.path,o+1)&&!!function(e,t){let o=e.parent,s=e.path.length-1,i=0;for(;s>=t;){if(e.path[s]+i!==o.maxOffset)return!1;i=1,s--,o=o.parent}return!0}(e,o+1))}function eo(e,t){for(;t<e.length;){if(0!==e[t])return!1;t++}return!0}Gt.prototype.is=function(e){return"position"===e||"model:position"===e};class to extends $t{start;end;constructor(e,t){super(),this.start=Gt._createAt(e),this.end=t?Gt._createAt(t):Gt._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Kt({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const e=this.start.getParentPath(),t=this.end.getParentPath();return"same"==(0,g.ww)(e,t)}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const o=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),s=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return o&&s}containsItem(e){const t=Gt._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 to(this.start,e.start)),this.containsPosition(e.end)&&t.push(new to(e.end,this.end))):t.push(new to(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,o=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(o=e.end),new to(t,o)}return null}getJoined(e,t=!1){let o=this.isIntersecting(e);if(o||(o=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!o)return null;let s=this.start,i=this.end;return e.start.isBefore(s)&&(s=e.start),e.end.isAfter(i)&&(i=e.end),new to(s,i)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,o=Gt._createAt(this.start);let s=o.parent;for(;o.path.length>t+1;){const t=s.maxOffset-o.offset;0!==t&&e.push(new to(o,o.getShiftedBy(t))),o.path=o.path.slice(0,-1),o.offset++,s=s.parent}for(;o.path.length<=this.end.path.length;){const t=this.end.path[o.path.length-1],s=t-o.offset;0!==s&&e.push(new to(o,o.getShiftedBy(s))),o.offset=t,o.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new Kt(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new Kt(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new Kt(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 to(this.start,this.end)]}getTransformedByOperations(e){const t=[new to(this.start,this.end)];for(const o of e)for(let e=0;e<t.length;e++){const s=t[e].getTransformedByOperation(o);t.splice(e,1,...s),e+=s.length-1}for(let e=0;e<t.length;e++){const o=t[e];for(let s=e+1;s<t.length;s++){const e=t[s];(o.containsRange(e)||e.containsRange(o)||o.isEqual(e))&&t.splice(s,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e,t=!1){return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e,t=!1){const o=e.sourcePosition,s=e.howMany,i=e.targetPosition;return this._getTransformedByMove(o,i,s,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let o=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(o=this.end.getShiftedBy(1)),t.root!=o.root&&(o=this.end.getShiftedBy(-1)),new to(t,o)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new to(this.start);let t=this.start._getTransformedByMergeOperation(e),o=this.end._getTransformedByMergeOperation(e);return t.root!=o.root&&(o=this.end.getShiftedBy(-1)),t.isAfter(o)?(e.sourcePosition.isBefore(e.targetPosition)?(t=Gt._createAt(o),t.offset=0):(e.deletionPosition.isEqual(t)||(o=e.deletionPosition),t=e.targetPosition),new to(t,o)):new to(t,o)}_getTransformedByInsertion(e,t,o=!1){if(o&&this.containsPosition(e))return[new to(this.start,e),new to(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const o=new to(this.start,this.end);return o.start=o.start._getTransformedByInsertion(e,t),o.end=o.end._getTransformedByInsertion(e,t),[o]}}_getTransformedByMove(e,t,o,s=!1){if(this.isCollapsed){const s=this.start._getTransformedByMove(e,t,o);return[new to(s)]}const i=to._createFromPositionAndShift(e,o),n=t._getTransformedByDeletion(e,o);if(this.containsPosition(t)&&!s&&(i.containsPosition(this.start)||i.containsPosition(this.end))){const s=this.start._getTransformedByMove(e,t,o),i=this.end._getTransformedByMove(e,t,o);return[new to(s,i)]}let r;const a=this.getDifference(i);let c=null;const l=this.getIntersection(i);if(1==a.length?c=new to(a[0].start._getTransformedByDeletion(e,o),a[0].end._getTransformedByDeletion(e,o)):2==a.length&&(c=new to(this.start,this.end._getTransformedByDeletion(e,o))),r=c?c._getTransformedByInsertion(n,o,null!==l||s):[],l){const e=new to(l.start._getCombined(i.start,n),l.end._getCombined(i.start,n));2==r.length?r.splice(1,0,e):r.push(e)}return r}_getTransformedByDeletion(e,t){let o=this.start._getTransformedByDeletion(e,t),s=this.end._getTransformedByDeletion(e,t);return null==o&&null==s?null:(null==o&&(o=e),null==s&&(s=e),new to(o,s))}static _createFromPositionAndShift(e,t){const o=e,s=e.getShiftedBy(t);return t>0?new this(o,s):new this(s,o)}static _createIn(e){return new this(Gt._createAt(e,0),Gt._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(Gt._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new g.Yb("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();const t=e[0];e.sort((e,t)=>e.start.isAfter(t.start)?1:-1);const o=e.indexOf(t),s=new this(t.start,t.end);for(let t=o-1;t>=0&&e[t].end.isEqual(s.start);t--)s.start=Gt._createAt(e[t].start);for(let t=o+1;t<e.length&&e[t].start.isEqual(s.end);t++)s.end=Gt._createAt(e[t].end);return s}static fromJSON(e,t){return new this(Gt.fromJSON(e.start,t),Gt.fromJSON(e.end,t))}}to.prototype.is=function(e){return"range"===e||"model:range"===e};class oo extends((0,g.Mm)()){_modelToViewMapping=new WeakMap;_viewToModelMapping=new WeakMap;_viewToModelLengthCallbacks=new Map;_markerNameToElements=new Map;_elementToMarkerNames=new Map;_deferredBindingRemovals=new Map;_unboundMarkerNames=new Set;_cache=new so;constructor(){super(),this.on("modelToViewPosition",(e,t)=>{if(t.viewPosition)return;const o=this._modelToViewMapping.get(t.modelPosition.parent);if(!o)throw new g.Yb("mapping-model-position-view-parent-not-found",this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(o,t.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(e,t)=>{if(t.modelPosition)return;const o=this.findMappedViewAncestor(t.viewPosition),s=this._viewToModelMapping.get(o),i=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,o);t.modelPosition=Gt._createAt(s,i)},{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){const o=this.toModelElement(e);if(this._elementToMarkerNames.has(e))for(const t of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(t);if(t.defer)this._deferredBindingRemovals.set(e,e.root);else{this._viewToModelMapping.delete(e)&&this._cache.stopTracking(e),this._modelToViewMapping.get(o)==e&&this._modelToViewMapping.delete(o)}}unbindModelElement(e){const t=this.toViewElement(e);if(this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e){this._viewToModelMapping.delete(t)&&this._cache.stopTracking(t)}}bindElementToMarker(e,t){const o=this._markerNameToElements.get(t)||new Set;o.add(e);const s=this._elementToMarkerNames.get(e)||new Set;s.add(t),this._markerNameToElements.set(t,o),this._elementToMarkerNames.set(e,s)}unbindElementFromMarkerName(e,t){const o=this._markerNameToElements.get(t);o&&(o.delete(e),0==o.size&&this._markerNameToElements.delete(t));const s=this._elementToMarkerNames.get(e);s&&(s.delete(t),0==s.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}flushDeferredBindings(){for(const[e,t]of this._deferredBindingRemovals)e.root==t&&this.unbindViewElement(e);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new to(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new se(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={}){const o={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",o),o.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const o=new Set;for(const e of t)if(e.is("attributeElement"))for(const t of e.getElementsWithSameId())o.add(t);else o.add(e);return o}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,o){if(o!=e){return this._toModelOffset(e.parent,e.index,o)+this._toModelOffset(e,t,e)}if(e.is("$text"))return t;let s=0;for(let o=0;o<t;o++)s+=this.getModelLength(e.getChild(o));return s}getModelLength(e){const t=[e];let o=0;for(;t.length>0;){const e=t.pop(),s=e.name&&this._viewToModelLengthCallbacks.size>0&&this._viewToModelLengthCallbacks.get(e.name);if(s)o+=s(e);else if(this._viewToModelMapping.has(e))o+=1;else if(e.is("$text"))o+=e.data.length;else{if(e.is("uiElement"))continue;for(const o of e.getChildren())t.push(o)}}return o}findPositionIn(e,t){if(0===t)return this._moveViewPositionToTextNode(new oe(e,0));if(0==this._viewToModelLengthCallbacks.size&&this._viewToModelMapping.has(e)){const o=this._cache.getClosest(e,t);return this._findPositionStartingFrom(o.viewPosition,o.modelOffset,t,e,!0)}return this._findPositionStartingFrom(new oe(e,0),0,t,e,!1)}_findPositionStartingFrom(e,t,o,s,i){let n,r=e.parent,a=e.offset;if(r.is("$text"))return new oe(r,o-t);let c=t,l=0;for(;c<o;)if(n=r.getChild(a),n)l=i?this._getModelLengthAndCache(n,s,c):this.getModelLength(n),c+=l,a++;else{if(r==s)throw new g.Yb("mapping-model-offset-not-found",this,{modelOffset:o,viewContainer:s});a=r.parent.getChildIndex(r)+1,r=r.parent,i&&this._cache.save(r,a,s,c)}let d=new oe(r,a);if(i)for(;d.isAtEnd&&d.parent!==s&&d.parent.parent;){const e=d.parent.parent,t=e.getChildIndex(d.parent)+1;this._cache.save(e,t,s,c),d=new oe(e,t)}return c==o?this._moveViewPositionToTextNode(d):this._findPositionStartingFrom(new oe(n,0),c-l,o,s,i)}_getModelLengthAndCache(e,t,o){let s=0;if(this._viewToModelMapping.has(e))s=1;else if(e.is("$text"))s=e.data.length;else if(!e.is("uiElement"))for(const i of e.getChildren())s+=this._getModelLengthAndCache(i,t,o+s);return this._cache.save(e.parent,e.index+1,t,o+s),s}_moveViewPositionToTextNode(e){const t=e.nodeBefore,o=e.nodeAfter;return t&&t.is("view:$text")?new oe(t,t.data.length):o&&o.is("view:$text")?new oe(o,0):e}}class so extends((0,g.Mm)()){_cachedMapping=new WeakMap;_nodeToCacheListIndex=new WeakMap;_invalidateOnChildrenChangeCallback=(e,t,o)=>{this._clearCacheInsideParent(t,o.index)};_invalidateOnTextChangeCallback=(e,t)=>{this._clearCacheAfter(t)};save(e,t,o,s){const i=this._cachedMapping.get(o),n=i.cacheMap.get(s);if(n){const o=e.getChild(t-1),s=n.viewPosition.nodeBefore?this._nodeToCacheListIndex.get(n.viewPosition.nodeBefore):0;return void this._nodeToCacheListIndex.set(o,s)}const r={viewPosition:new oe(e,t),modelOffset:s};i.maxModelOffset=s>i.maxModelOffset?s:i.maxModelOffset,i.cacheMap.set(s,r);let a=i.cacheList.length-1;for(;a>=0&&i.cacheList[a].modelOffset>s;)a--;if(i.cacheList.splice(a+1,0,r),t>0){const o=e.getChild(t-1);this._nodeToCacheListIndex.set(o,a+1)}}getClosest(e,t){const o=this._cachedMapping.get(e);let s;if(o)if(t>o.maxModelOffset)s=o.cacheList[o.cacheList.length-1];else{const e=o.cacheMap.get(t);s=e||this._findInCacheList(o.cacheList,t)}else s=this.startTracking(e);return{modelOffset:s.modelOffset,viewPosition:s.viewPosition.clone()}}startTracking(e){const t={viewPosition:new oe(e,0),modelOffset:0},o={maxModelOffset:0,cacheList:[t],cacheMap:new Map([[0,t]])};return this._cachedMapping.set(e,o),e.on("change:children",this._invalidateOnChildrenChangeCallback),e.on("change:text",this._invalidateOnTextChangeCallback),t}stopTracking(e){e.off("change:children",this._invalidateOnChildrenChangeCallback),e.off("change:text",this._invalidateOnTextChangeCallback),this._cachedMapping.delete(e)}_clearCacheInsideParent(e,t){if(0==t)this._cachedMapping.has(e)?this._clearCacheAll(e):this._clearCacheInsideParent(e.parent,e.index);else{const o=e.getChild(t-1);this._clearCacheAfter(o)}}_clearCacheAll(e){const t=this._cachedMapping.get(e);t.maxModelOffset>0&&(t.maxModelOffset=0,t.cacheList.length=1,t.cacheMap.clear(),t.cacheMap.set(0,t.cacheList[0]))}_clearCacheAfter(e){const t=this._nodeToCacheListIndex.get(e);if(void 0===t){const t=e.parent;return void(this._cachedMapping.has(t)||this._clearCacheInsideParent(t.parent,t.index))}let o=e.parent;for(;!this._cachedMapping.has(o);)o=o.parent;this._clearCacheFromCacheIndex(o,t)}_clearCacheFromCacheIndex(e,t){0===t&&(t=1);const o=this._cachedMapping.get(e),s=o.cacheList[t-1];if(!s)return;o.maxModelOffset=s.modelOffset;const i=o.cacheList.splice(t);for(const e of i){o.cacheMap.delete(e.modelOffset);const t=e.viewPosition.nodeBefore;this._nodeToCacheListIndex.delete(t)}}_findInCacheList(e,t){let o=0,s=e.length-1,i=s-o>>1,n=e[i];for(;o<s;)n.modelOffset<t?o=i+1:s=i-1,i=o+(s-o>>1),n=e[i];return n.modelOffset<=t?n:e[i-1]}}class io{_consumable=new Map;_textProxyRegistry=new Map;add(e,t){t=no(t),e instanceof Ut&&(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=no(t),e instanceof Ut&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=no(t),e instanceof Ut&&(e=this._getSymbolForTextProxy(e));const o=this._consumable.get(e);if(void 0===o)return null;const s=o.get(t);return void 0===s?null:s}revert(e,t){t=no(t),e instanceof Ut&&(e=this._getSymbolForTextProxy(e));const o=this.test(e,t);return!1===o?(this._consumable.get(e).set(t,!0),!0):!0!==o&&null}verifyAllConsumed(e){const t=[];for(const[o,s]of this._consumable)for(const[i,n]of s){const s=i.split(":")[0];n&&e==s&&t.push({event:i,item:o.name||o.description})}if(t.length)throw new g.Yb("conversion-model-consumable-not-consumed",null,{items:t})}_getSymbolForTextProxy(e){let t=null;const o=this._textProxyRegistry.get(e.startOffset);if(o){const s=o.get(e.endOffset);s&&(t=s.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e)),t}_addSymbolForTextProxy(e){const t=e.startOffset,o=e.endOffset,s=e.parent,i=Symbol("$textProxy:"+e.data);let n,r;return n=this._textProxyRegistry.get(t),n||(n=new Map,this._textProxyRegistry.set(t,n)),r=n.get(o),r||(r=new Map,n.set(o,r)),r.set(s,i),i}}function no(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 ro extends((0,g.Mm)()){_conversionApi;_firedEventsMap;constructor(e){super(),this._conversionApi={dispatcher:this,...e},this._firedEventsMap=new WeakMap}convertChanges(e,t,o){const s=e.getRefreshedItems(),i=this._createConversionApi(o,s);for(const t of e.getMarkersToRemove())this._convertMarkerRemove(t.name,t.range,i);const n=this._reduceChanges(e.getChanges(),s);for(const e of n)"insert"===e.type?this._convertInsert(to._createFromPositionAndShift(e.position,e.length),i):"reinsert"===e.type?this._convertReinsert(to._createFromPositionAndShift(e.position,e.length),i):"remove"===e.type?this._convertRemove(e.position,e.length,e.name,i):this._convertAttribute(e.range,e.attributeKey,e.attributeOldValue,e.attributeNewValue,i);i.mapper.flushDeferredBindings();for(const e of i.mapper.flushUnboundMarkerNames()){const o=t.get(e).getRange();this._convertMarkerRemove(e,o,i),this._convertMarkerAdd(e,o,i)}for(const t of e.getMarkersToAdd())this._convertMarkerAdd(t.name,t.range,i);i.consumable.verifyAllConsumed("insert")}convert(e,t,o,s={}){const i=this._createConversionApi(o,void 0,s);this._convertInsert(e,i);for(const[e,o]of t)this._convertMarkerAdd(e,o,i);i.consumable.verifyAllConsumed("insert")}convertSelection(e,t,o){const s=this._createConversionApi(o);this.fire("cleanSelection",{selection:e},s);const i=e.getFirstPosition().root;if(!s.mapper.toViewElement(i))return;const n=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this._addConsumablesForSelection(s.consumable,e,n),this.fire("selection",{selection:e},s),e.isCollapsed){for(const t of n)if(s.consumable.test(e,"addMarker:"+t.name)){const o=t.getRange();if(!ao(e.getFirstPosition(),t,s.mapper))continue;const i={item:e,markerName:t.name,markerRange:o};this.fire(`addMarker:${t.name}`,i,s)}for(const t of e.getAttributeKeys())if(s.consumable.test(e,"attribute:"+t)){const o={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.fire(`attribute:${t}:$text`,o,s)}}}_convertInsert(e,t,o={}){o.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,e);for(const o of e.getWalker({shallow:!0}))this._testAndFire("insert",co(o),t)}_convertRemove(e,t,o,s){this.fire(`remove:${o}`,{position:e,length:t},s)}_convertAttribute(e,t,o,s,i){this._addConsumablesForRange(i.consumable,e,`attribute:${t}`);for(const n of e){const e={item:n.item,range:to._createFromPositionAndShift(n.previousPosition,n.length),attributeKey:t,attributeOldValue:o,attributeNewValue:s};this._testAndFire(`attribute:${t}`,e,i)}}_convertReinsert(e,t){const o=Array.from(e.getWalker({shallow:!0}));this._addConsumablesForInsert(t.consumable,o);for(const e of o.map(co))this.fire(`remove:${e.item.is("element")?e.item.name:"$text"}`,{position:e.range.start,length:e.item.offsetSize,reconversion:!0},t),this._testAndFire("insert",{...e,reconversion:!0},t)}_convertMarkerAdd(e,t,o){if("$graveyard"==t.root.rootName)return;const s=`addMarker:${e}`;if(o.consumable.add(t,s),this.fire(s,{markerName:e,markerRange:t},o),o.consumable.consume(t,s)){this._addConsumablesForRange(o.consumable,t,s);for(const i of t.getItems()){if(!o.consumable.test(i,s))continue;const n={item:i,range:to._createOn(i),markerName:e,markerRange:t};this.fire(s,n,o)}}}_convertMarkerRemove(e,t,o){"$graveyard"!=t.root.rootName&&this.fire(`removeMarker:${e}`,{markerName:e,markerRange:t},o)}_reduceChanges(e,t){const o={changes:e,refreshedItems:t};return this.fire("reduceChanges",o),o.changes}_addConsumablesForInsert(e,t){for(const o of t){const t=o.item;if(null===e.test(t,"insert")){e.add(t,"insert");for(const o of t.getAttributeKeys())e.add(t,"attribute:"+o)}}return e}_addConsumablesForRange(e,t,o){for(const s of t.getItems())e.add(s,o);return e}_addConsumablesForSelection(e,t,o){e.add(t,"selection");for(const s of o)e.add(t,"addMarker:"+s.name);for(const o of t.getAttributeKeys())e.add(t,"attribute:"+o);return e}_testAndFire(e,t,o){const s=function(e,t){const o=t.item.is("element")?t.item.name:"$text";return`${e}:${o}`}(e,t),i=t.item.is("$textProxy")?o.consumable._getSymbolForTextProxy(t.item):t.item,n=this._firedEventsMap.get(o),r=n.get(i);if(r){if(r.has(s))return;r.add(s)}else n.set(i,new Set([s]));this.fire(s,t,o)}_testAndFireAddAttributes(e,t){const o={item:e,range:to._createOn(e)};for(const e of o.item.getAttributeKeys())o.attributeKey=e,o.attributeOldValue=null,o.attributeNewValue=o.item.getAttribute(e),this._testAndFire(`attribute:${e}`,o,t)}_createConversionApi(e,t=new Set,o={}){const s={...this._conversionApi,consumable:new io,writer:e,options:o,convertItem:e=>this._convertInsert(to._createOn(e),s),convertChildren:e=>this._convertInsert(to._createIn(e),s,{doNotAddConsumables:!0}),convertAttributes:e=>this._testAndFireAddAttributes(e,s),canReuseView:e=>!t.has(s.mapper.toModelElement(e))};return this._firedEventsMap.set(s,new Map),s}}function ao(e,t,o){const s=t.getRange(),i=Array.from(e.getAncestors());i.shift(),i.reverse();return!i.some(e=>{if(s.containsItem(e)){return!!o.toViewElement(e).getCustomProperty("addHighlight")}})}function co(e){return{item:e.item,range:to._createFromPositionAndShift(e.previousPosition,e.length)}}class lo extends $t{parent=null;_attrs;_index=null;_startOffset=null;constructor(e){super(),this._attrs=(0,g.av)(e)}get document(){return null}get index(){return this._index}get startOffset(){return this._startOffset}get offsetSize(){return 1}get endOffset(){return null===this.startOffset?null:this.startOffset+this.offsetSize}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}getCommonAncestor(e,t={}){const o=this.getAncestors(t),s=e.getAncestors(t);let i=0;for(;o[i]==s[i]&&o[i];)i++;return 0===i?null:o[i-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),o=e.getPath(),s=(0,g.ww)(t,o);switch(s){case"prefix":return!0;case"extension":return!1;default:return t[s]<o[s]}}isAfter(e){return this!=e&&(this.root===e.root&&!this.isBefore(e))}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((e,t)=>(e[t[0]]=t[1],e),{})),e}_clone(e){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=(0,g.av)(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}lo.prototype.is=function(e){return"node"===e||"model:node"===e};class uo extends((0,g.Mm)($t)){_lastRangeBackward=!1;_attrs=new Map;_ranges=[];constructor(...e){super(),e.length&&this.setTo(...e)}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let o=!1;for(const s of e._ranges)if(t.isEqual(s)){o=!0;break}if(!o)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new to(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 to(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 to(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(...e){let[t,o,s]=e;if("object"==typeof o&&(s=o,o=void 0),null===t)this._setRanges([]);else if(t instanceof uo)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof to)this._setRanges([t],!!s&&!!s.backward);else if(t instanceof Gt)this._setRanges([new to(t)]);else if(t instanceof lo){const e=!!s&&!!s.backward;let i;if("in"==o)i=to._createIn(t);else if("on"==o)i=to._createOn(t);else{if(void 0===o)throw new g.Yb("model-selection-setto-required-second-parameter",[this,t]);i=new to(Gt._createAt(t,o))}this._setRanges([i],e)}else{if(!(0,g.xZ)(t))throw new g.Yb("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,s&&!!s.backward)}}_setRanges(e,t=!1){const o=Array.from(e),s=o.some(t=>{if(!(t instanceof to))throw new g.Yb("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every(e=>!e.isEqual(t))});(o.length!==this._ranges.length||s)&&(this._replaceAllRanges(o),this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0}))}setFocus(e,t){if(null===this.anchor)throw new g.Yb("model-selection-setfocus-no-ranges",[this,e]);const o=Gt._createAt(e,t);if("same"==o.compareWith(this.focus))return;const s=this.anchor;this._ranges.length&&this._popRange(),"before"==o.compareWith(s)?(this._pushRange(new to(o,s)),this._lastRangeBackward=!0):(this._pushRange(new to(s,o)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const o=mo(t.start,e);fo(o,t)&&(yield o);const s=t.getWalker();for(const o of s){const i=o.item;"elementEnd"==o.type&&po(i,e,t)?yield i:"elementStart"==o.type&&i.is("model:element")&&i.root.document.model.schema.isBlock(i)&&s.jumpTo(Gt._createAt(i,"end"))}const i=mo(t.end,e);_o(i,t)&&(yield i)}}containsEntireContent(e=this.anchor.root){const t=Gt._createAt(e,0),o=Gt._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&o.isTouching(this.getLastPosition())}toJSON(){const e={ranges:Array.from(this.getRanges()).map(e=>e.toJSON())},t=Object.fromEntries(this.getAttributes());return Object.keys(t).length&&(e.attributes=t),this.isBackward&&(e.isBackward=!0),e}_pushRange(e){this._checkRange(e),this._ranges.push(new to(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new g.Yb("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 ho(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&!!e.parent)}function po(e,t,o){return ho(e,t)&&go(e,o)}function mo(e,t){const o=e.parent.root.document.model.schema,s=e.parent.getAncestors({parentFirst:!0,includeSelf:!0});let i=!1;const n=s.find(e=>!i&&(i=o.isLimit(e),!i&&ho(e,t)));return s.forEach(e=>t.add(e)),n}function go(e,t){const o=function(e){const t=e.root.document.model.schema;let o=e.parent;for(;o;){if(t.isBlock(o))return o;o=o.parent}}(e);if(!o)return!0;return!t.containsRange(to._createOn(o),!0)}function fo(e,t){return!!e&&(!(!t.isCollapsed&&!e.isEmpty)||!t.start.isTouching(Gt._createAt(e,e.maxOffset))&&go(e,t))}function _o(e,t){return!!e&&(!(!t.isCollapsed&&!e.isEmpty)||!t.end.isTouching(Gt._createAt(e,0))&&go(e,t))}uo.prototype.is=function(e){return"selection"===e||"model:selection"===e};class bo extends((0,g.Mm)(to)){constructor(e,t){super(e,t),wo.call(this)}detach(){this.stopListening()}toRange(){return new to(this.start,this.end)}static fromRange(e){return new bo(e.start,e.end)}}function wo(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&ko.call(this,o)},{priority:"low"})}function ko(e){const t=this.getTransformedByOperation(e),o=to._createFromRanges(t),s=!o.isEqual(this),i=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e);let n=null;if(s){"$graveyard"==o.root.rootName&&(n="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=o.start,this.end=o.end,this.fire("change:range",t,{deletionPosition:n})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:n})}bo.prototype.is=function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e};class vo extends lo{_data;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 vo(this.data,this.getAttributes())}static fromJSON(e){return new vo(e.data,e.attributes)}}vo.prototype.is=function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e};const yo="selection:";class xo extends((0,g.Mm)($t)){_selection;constructor(e){super(),this._selection=new Ao(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)}toJSON(){return this._selection.toJSON()}_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 yo+e}static _isStoreAttributeKey(e){return e.startsWith(yo)}}xo.prototype.is=function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e};class Ao extends uo{markers=new g.pM({idProperty:"name"});_model;_document;_attributePriority=new Map;_selectionRestorePosition=null;_hasChangedRange=!1;_overriddenGravityRegister=new Set;_observedMarkers=new Set;constructor(e){super(),this._model=e.model,this._document=e,this.listenTo(this._model,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&"marker"!=o.type&&"rename"!=o.type&&"noop"!=o.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(e,t,o,s)=>{this._updateMarker(t,s)}),this.listenTo(this._document,"change",(e,t)=>{!function(e,t){const o=e.document.differ;for(const s of o.getChanges()){if("insert"!=s.type)continue;const o=s.position.parent;s.length===o.maxOffset&&e.enqueueChange(t,e=>{const t=Array.from(o.getAttributeKeys()).filter(e=>e.startsWith(yo));for(const s of t)e.removeAttribute(s,o)})}}(this._model,t)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...e){super.setTo(...e),this._updateAttributes(!0),this.updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this.updateMarkers()}setAttribute(e,t){if(this._setAttribute(e,t)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}removeAttribute(e){if(this._removeAttribute(e)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}overrideGravity(){const e=(0,g.Ld)();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new g.Yb("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)}toJSON(){const e=super.toJSON();return this.markers.length&&(e.markers=this.markers.map(e=>e.toJSON())),e}_validateSelectionRanges(e){for(const t of e)if(!this._document._validateSelectionRange(t))throw new g.Yb("document-selection-wrong-position",this,{range:t})}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=bo.fromRange(e);return t.on("change:range",(e,o,s)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=s.deletionPosition;const e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}}),t}updateMarkers(){if(!this._observedMarkers.size)return;const e=[];let t=!1;for(const t of this._model.markers){const o=t.name.split(":",1)[0];if(!this._observedMarkers.has(o))continue;const s=t.getRange();for(const o of this.getRanges())s.containsRange(o,!o.isCollapsed)&&e.push(t)}const o=Array.from(this.markers);for(const o of e)this.markers.has(o)||(this.markers.add(o),t=!0);for(const o of Array.from(this.markers))e.includes(o)||(this.markers.remove(o),t=!0);t&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateMarker(e,t){const o=e.name.split(":",1)[0];if(!this._observedMarkers.has(o))return;let s=!1;const i=Array.from(this.markers),n=this.markers.has(e);if(t){let o=!1;for(const e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){o=!0;break}o&&!n?(this.markers.add(e),s=!0):!o&&n&&(this.markers.remove(e),s=!0)}else n&&(this.markers.remove(e),s=!0);s&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateAttributes(e){const t=(0,g.av)(this._getSurroundingAttributes()),o=(0,g.av)(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(const[e,t]of this._attributePriority)"low"==t&&(this._attrs.delete(e),this._attributePriority.delete(e));this._setAttributesTo(t);const s=[];for(const[e,t]of this.getAttributes())o.has(e)&&o.get(e)===t||s.push(e);for(const[e]of o)this.hasAttribute(e)||s.push(e);s.length>0&&this.fire("change:attribute",{attributeKeys:s,directChange:!1})}_setAttribute(e,t,o=!0){const s=o?"normal":"low";if("low"==s&&"normal"==this._attributePriority.get(e))return!1;return super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,s),!0)}_removeAttribute(e,t=!0){const o=t?"normal":"low";return("low"!=o||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,o),!!super.hasAttribute(e)&&(this._attrs.delete(e),!0))}_setAttributesTo(e){const t=new Set;for(const[t,o]of this.getAttributes())e.get(t)!==o&&this._removeAttribute(t,!1);for(const[o,s]of e){this._setAttribute(o,s,!1)&&t.add(o)}return t}*getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())if(t.startsWith(yo)){const o=t.substr(10);yield[o,e.getAttribute(t)]}}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;if("$graveyard"==e.root.rootName)return null;let o=null;if(this.isCollapsed){const s=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(o=Co(s,t)),o||(o=Co(i,t)),!this.isGravityOverridden&&!o){let e=s;for(;e&&!o;)e=e.previousSibling,o=Co(e,t)}if(!o){let e=i;for(;e&&!o;)e=e.nextSibling,o=Co(e,t)}o||(o=this.getStoredAttributes())}else{const e=this.getFirstRange();for(const s of e){if(s.item.is("element")&&t.isObject(s.item)){o=Co(s.item,t);break}if("text"==s.type){o=s.item.getAttributes();break}}}return o}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function Co(e,t){if(!e)return null;if(e instanceof Ut||e instanceof vo)return e.getAttributes();if(!t.isInline(e))return null;if(!t.isObject(e))return[];const o=[];for(const[s,i]of e.getAttributes())t.checkAttribute("$text",s)&&!1!==t.getAttributeProperties(s).copyFromObject&&o.push([s,i]);return o}class Eo{_nodes=[];_offsetToNode=[];constructor(e){e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._offsetToNode.length}getNode(e){return this._nodes[e]||null}getNodeAtOffset(e){return this._offsetToNode[e]||null}getNodeIndex(e){return e.index}getNodeStartOffset(e){return e.startOffset}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;const t=this._nodes[e];if(!t)throw new g.Yb("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){if(e==this._offsetToNode.length)return this._nodes.length;const t=this._offsetToNode[e];if(!t)throw new g.Yb("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.getNodeIndex(t)}_insertNodes(e,t){const o=[];for(const e of t){if(!(e instanceof lo))throw new g.Yb("model-nodelist-insertnodes-not-node",this);o.push(e)}let s=this.indexToOffset(e);(0,g.eL)(this._nodes,o,e),(0,g.eL)(this._offsetToNode,function(e){const t=[];let o=0;for(const s of e)for(let e=0;e<s.offsetSize;e++)t[o++]=s;return t}(o),s);for(let t=e;t<this._nodes.length;t++)this._nodes[t]._index=t,this._nodes[t]._startOffset=s,s+=this._nodes[t].offsetSize}_removeNodes(e,t=1){if(0==t)return[];let o=this.indexToOffset(e);const s=this._nodes.splice(e,t),i=s[s.length-1],n=i.startOffset+i.offsetSize-o;this._offsetToNode.splice(o,n);for(const e of s)e._index=null,e._startOffset=null;for(let t=e;t<this._nodes.length;t++)this._nodes[t]._index=t,this._nodes[t]._startOffset=o,o+=this._nodes[t].offsetSize;return s}_removeNodesArray(e){if(0==e.length)return;for(const t of e)t._index=null,t._startOffset=null;this._nodes=this._nodes.filter(e=>null!==e.index),this._offsetToNode=this._offsetToNode.filter(e=>null!==e.index);let t=0;for(let e=0;e<this._nodes.length;e++)this._nodes[e]._index=e,this._nodes[e]._startOffset=t,t+=this._nodes[e].offsetSize}toJSON(){return this._nodes.map(e=>e.toJSON())}}class So extends lo{name;_children=new Eo;constructor(e,t,o){super(t),this.name=e,o&&this._insertChild(0,o)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(e){return this._children.getNode(e)}getChildAtOffset(e){return this._children.getNodeAtOffset(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const o of e)t=t.getChildAtOffset(o);return t}findAncestor(e,t={}){let o=t.includeSelf?this:this.parent;for(;o;){if(o.name===e)return o;o=o.parent}return null}toJSON(){const e=super.toJSON();if(e.name=this.name,this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){const t=e?function(e){const t=[];for(const o of e)t.push(o._clone(!0));return t}(this._children):void 0;return new So(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const o=function(e){if("string"==typeof e)return[new vo(e)];(0,g.xZ)(e)||(e=[e]);const t=[];for(const o of e)"string"==typeof o?t.push(new vo(o)):o instanceof Ut?t.push(new vo(o.data,o.getAttributes())):t.push(o);return t}(t);for(const e of o)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,o)}_removeChildren(e,t=1){const o=this._children._removeNodes(e,t);for(const e of o)e.parent=null;return o}_removeChildrenArray(e){this._children._removeNodesArray(e);for(const t of e)t.parent=null}static fromJSON(e){let t;if(e.children){t=[];for(const o of e.children)o.name?t.push(So.fromJSON(o)):t.push(vo.fromJSON(o))}return new So(e.name,e.attributes,t)}}So.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 To{_dispatchers;constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}class Po extends To{elementToElement(e){return this.add(function(e){const t=Wo(e.model),o=$o(e.view,"container");t.attributes.length&&(t.children=!0);return s=>{s.on(`insert:${t.name}`,No(o,Jo(t)),{priority:e.converterPriority||"normal"}),(t.children||t.attributes.length)&&s.on("reduceChanges",Go(t),{priority:"low"})}}(e))}elementToStructure(e){return this.add(function(e){const t=Wo(e.model),o=$o(e.view,"container");return t.children=!0,s=>{if(s._conversionApi.schema.checkChild(t.name,"$text"))throw new g.Yb("conversion-element-to-structure-disallowed-text",s,{elementName:t.name});s.on(`insert:${t.name}`,Lo(o,Jo(t)),{priority:e.converterPriority||"normal"}),s.on("reduceChanges",Go(t),{priority:"low"})}}(e))}attributeToElement(e){return this.add(function(e){e=(0,qt.m)(e);let t=e.model;"string"==typeof t&&(t={key:t});let o=`attribute:${t.key}`;t.name&&(o+=":"+t.name);if(t.values)for(const o of t.values)e.view[o]=$o(e.view[o],"attribute");else e.view=$o(e.view,"attribute");const s=Uo(e);return t=>{t.on(o,Bo(s),{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=(0,qt.m)(e);let t=e.model;"string"==typeof t&&(t={key:t});let o=`attribute:${t.key}`;t.name&&(o+=":"+t.name);if(t.values)for(const o of t.values)e.view[o]=Ko(e.view[o]);else e.view=Ko(e.view);const s=Uo(e);return t=>{var i;t.on(o,(i=s,(e,t,o)=>{if(!o.consumable.test(t.item,e.name))return;const s=i(t.attributeOldValue,o,t),n=i(t.attributeNewValue,o,t);if(!s&&!n)return;o.consumable.consume(t.item,e.name);const r=o.mapper.toViewElement(t.item),a=o.writer;if(!r)throw new g.Yb("conversion-attribute-to-attribute-on-text",o.dispatcher,t);if(null!==t.attributeOldValue&&s){let e=s.value;"style"==s.key&&(e="string"==typeof s.value?new F(a.document.stylesProcessor).setTo(s.value).getStylesEntries().map(([e])=>e):Object.keys(s.value)),a.removeAttribute(s.key,e,r)}if(null!==t.attributeNewValue&&n){let e=n.value;"style"==n.key&&"string"==typeof n.value&&(e=Object.fromEntries(new F(a.document.stylesProcessor).setTo(n.value).getStylesEntries())),a.setAttribute(n.key,e,!1,r)}}),{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){const t=$o(e.view,"ui");return o=>{o.on(`addMarker:${e.model}`,Do(t),{priority:e.converterPriority||"normal"}),o.on(`removeMarker:${e.model}`,(e,t,o)=>{const s=o.mapper.markerNameToElements(t.markerName);if(s){for(const e of s)o.mapper.unbindElementFromMarkerName(e,t.markerName),o.writer.clear(o.writer.createRangeOn(e),e);o.writer.clearClonedElementsGroup(t.markerName),e.stop()}},{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(e){return t=>{var o;t.on(`addMarker:${e.model}`,(o=e.view,(e,t,s)=>{if(!t.item)return;if(!(t.item instanceof uo||t.item instanceof xo||t.item.is("$textProxy")))return;const i=Yo(o,t,s);if(!i)return;if(!s.consumable.consume(t.item,e.name))return;const n=s.writer,r=Io(n,i),a=n.document.selection;if(t.item instanceof uo||t.item instanceof xo)n.wrap(a.getFirstRange(),r);else{const e=s.mapper.toViewRange(t.range),o=n.wrap(e,r);for(const e of o.getItems())if(e.is("attributeElement")&&e.isSimilar(r)){s.mapper.bindElementToMarker(e,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on(`addMarker:${e.model}`,function(e){return(t,o,s)=>{if(!o.item)return;if(!(o.item instanceof So))return;const i=Yo(e,o,s);if(!i)return;if(!s.consumable.test(o.item,t.name))return;const n=s.mapper.toViewElement(o.item);if(n&&n.getCustomProperty("addHighlight")){s.consumable.consume(o.item,t.name);for(const e of to._createIn(o.item))s.consumable.consume(e.item,t.name);n.getCustomProperty("addHighlight")(n,i,s.writer),s.mapper.bindElementToMarker(n,o.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),t.on(`removeMarker:${e.model}`,function(e){return(t,o,s)=>{if(o.markerRange.isCollapsed)return;const i=Yo(e,o,s);if(!i)return;const n=Io(s.writer,i),r=s.mapper.markerNameToElements(o.markerName);if(r){for(const e of r)if(s.mapper.unbindElementFromMarkerName(e,o.markerName),e.is("attributeElement"))s.writer.unwrap(s.writer.createRangeOn(e),n);else{e.getCustomProperty("removeHighlight")(e,i.id,s.writer)}s.writer.clearClonedElementsGroup(o.markerName),t.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(e){e=(0,qt.m)(e);const t=e.model;let o=e.view;o||(o=o=>({group:t,name:o.substr(e.model.length+1)}));return s=>{var i;s.on(`addMarker:${t}`,(i=o,(e,t,o)=>{const s=i(t.markerName,o);if(!s)return;const n=t.markerRange;o.consumable.consume(n,e.name)&&(qo(n,!1,o,t,s),qo(n,!0,o,t,s),e.stop())}),{priority:e.converterPriority||"normal"}),s.on(`removeMarker:${t}`,function(e){return(t,o,s)=>{const i=e(o.markerName,s);if(!i)return;const n=s.mapper.markerNameToElements(o.markerName);if(n){for(const e of n)s.mapper.unbindElementFromMarkerName(e,o.markerName),e.is("containerElement")?(r(`data-${i.group}-start-before`,e),r(`data-${i.group}-start-after`,e),r(`data-${i.group}-end-before`,e),r(`data-${i.group}-end-after`,e)):s.writer.clear(s.writer.createRangeOn(e),e);s.writer.clearClonedElementsGroup(o.markerName),t.stop()}function r(e,t){if(t.hasAttribute(e)){const o=new Set(t.getAttribute(e).split(","));o.delete(i.name),0==o.size?s.writer.removeAttribute(e,t):s.writer.setAttribute(e,Array.from(o).join(","),t)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}}function Mo(){return(e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const s=o.writer,i=o.mapper.toViewPosition(t.range.start),n=s.createText(t.item.data);s.insert(i,n)}}function Vo(){return(e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)}}function Oo(){return(e,t,o)=>{if(t.reconversion)return;const s=o.mapper.toViewPosition(t.position),i=t.position.getShiftedBy(t.length),n=o.mapper.toViewPosition(i,{isPhantom:!0});Fo(o.writer.createRange(s,n).getTrimmed(),o)}}function Io(e,t){const o=e.createAttributeElement("span",t.attributes);return t.classes&&o._addClass(t.classes),"number"==typeof t.priority&&(o._priority=t.priority),o._id=t.id,o}function Ro(){return(e,t,o)=>{const s=t.selection;if(s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=[];for(const e of s.getRanges())i.push(o.mapper.toViewRange(e));o.writer.setSelection(i,{backward:s.isBackward})}}function jo(){return(e,t,o)=>{const s=t.selection;if(!s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=o.writer,n=s.getFirstPosition(),r=o.mapper.toViewPosition(n),a=i.breakAttributes(r);i.setSelection(a)}}function zo(){return(e,t,o)=>{const s=o.writer,i=s.document.selection;for(const e of i.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&o.writer.mergeAttributes(e.start);s.setSelection(null)}}function Bo(e){return(t,o,s)=>{if(!s.consumable.test(o.item,t.name))return;const i=e(o.attributeOldValue,s,o),n=e(o.attributeNewValue,s,o);if(!i&&!n)return;s.consumable.consume(o.item,t.name);const r=s.writer,a=r.document.selection;if(o.item instanceof uo||o.item instanceof xo)r.wrap(a.getFirstRange(),n);else{let e=s.mapper.toViewRange(o.range);null!==o.attributeOldValue&&i&&(e=r.unwrap(e,i)),null!==o.attributeNewValue&&n&&r.wrap(e,n)}}}function No(e,t=Qo){return(o,s,i)=>{if(!t(s.item,i.consumable,{preflight:!0}))return;const n=e(s.item,i,s);if(!n)return;t(s.item,i.consumable);const r=s.reconversion&&Ho(s.item,i)||i.mapper.toViewPosition(s.range.start);i.mapper.bindElements(s.item,n),i.writer.insert(r,n),i.convertAttributes(s.item),Zo(n,s.item.getChildren(),i,{reconversion:s.reconversion})}}function Lo(e,t){return(o,s,i)=>{if(!t(s.item,i.consumable,{preflight:!0}))return;const n=new Map;i.writer._registerSlotFactory(function(e,t,o){return(s,i)=>{const n=s.createContainerElement("$slot");let r=null;if("children"===i)r=Array.from(e.getChildren());else{if("function"!=typeof i)throw new g.Yb("conversion-slot-mode-unknown",o.dispatcher,{modeOrFilter:i});r=Array.from(e.getChildren()).filter(e=>i(e))}return t.set(n,r),n}}(s.item,n,i));const r=e(s.item,i,s);if(i.writer._clearSlotFactory(),!r)return;!function(e,t,o){const s=Array.from(t.values()).flat(),i=new Set(s);if(i.size!=s.length)throw new g.Yb("conversion-slot-filter-overlap",o.dispatcher,{element:e});if(i.size!=e.childCount)throw new g.Yb("conversion-slot-filter-incomplete",o.dispatcher,{element:e})}(s.item,n,i),t(s.item,i.consumable);const a=s.reconversion&&Ho(s.item,i)||i.mapper.toViewPosition(s.range.start);i.mapper.bindElements(s.item,r),i.writer.insert(a,r),i.convertAttributes(s.item),function(e,t,o,s){o.mapper.on("modelToViewPosition",r,{priority:"highest"});let i=null,n=null;for([i,n]of t)Zo(e,n,o,s),o.writer.setCustomProperty("$structureSlotParent",!0,i.parent),o.writer.move(o.writer.createRangeIn(i),o.writer.createPositionBefore(i)),o.writer.remove(i);function r(e,t){const o=t.modelPosition.nodeAfter,s=n.indexOf(o);s<0||(t.viewPosition=t.mapper.findPositionIn(i,s))}o.mapper.off("modelToViewPosition",r)}(r,n,i,{reconversion:s.reconversion})}}function Do(e){return(t,o,s)=>{o.isOpening=!0;const i=e(o,s);o.isOpening=!1;const n=e(o,s);if(!i||!n)return;const r=o.markerRange;if(r.isCollapsed&&!s.consumable.consume(r,t.name))return;for(const e of r)if(!s.consumable.consume(e.item,t.name))return;const a=s.mapper,c=s.writer;c.insert(a.toViewPosition(r.start),i),s.mapper.bindElementToMarker(i,o.markerName),r.isCollapsed||(c.insert(a.toViewPosition(r.end),n),s.mapper.bindElementToMarker(n,o.markerName)),t.stop()}}function Fo(e,t){const o=t.writer.remove(e);for(const e of t.writer.createRangeIn(o).getItems())t.mapper.unbindViewElement(e,{defer:!0});return e.start}function Ho(e,t){const o=t.mapper.toViewElement(e);return o&&Fo(t.writer.createRangeOn(o),t)}function qo(e,t,o,s,i){const n=t?e.start:e.end,r=n.nodeAfter&&n.nodeAfter.is("element")?n.nodeAfter:null,a=n.nodeBefore&&n.nodeBefore.is("element")?n.nodeBefore:null;if(r||a){let e,n;t&&r||!t&&!a?(e=r,n=!0):(e=a,n=!1);const c=o.mapper.toViewElement(e);if(c)return void function(e,t,o,s,i,n){const r=`data-${n.group}-${t?"start":"end"}-${o?"before":"after"}`,a=e.hasAttribute(r)?e.getAttribute(r).split(","):[];a.unshift(n.name),s.writer.setAttribute(r,a.join(","),e),s.mapper.bindElementToMarker(e,i.markerName)}(c,t,n,o,s,i)}!function(e,t,o,s,i){const n=`${i.group}-${t?"start":"end"}`,r=i.name?{name:i.name}:null,a=o.writer.createUIElement(n,r);o.writer.insert(e,a),o.mapper.bindElementToMarker(a,s.markerName)}(o.mapper.toViewPosition(n),t,o,s,i)}function Wo(e){return"string"==typeof e&&(e={name:e}),{name:e.name,attributes:e.attributes?(0,g.$r)(e.attributes):[],children:!!e.children}}function $o(e,t){return"function"==typeof e?e:(o,s)=>function(e,t,o){"string"==typeof e&&(e={name:e});let s;const i=t.writer,n=Object.assign({},e.attributes);if("container"==o)s=i.createContainerElement(e.name,n);else if("attribute"==o){const t={priority:e.priority||be.DEFAULT_PRIORITY};s=i.createAttributeElement(e.name,n,t)}else s=i.createUIElement(e.name,n);if(e.styles){const t=Object.keys(e.styles);for(const o of t)i.setStyle(o,e.styles[o],s)}if(e.classes){const t=e.classes;if("string"==typeof t)i.addClass(t,s);else for(const e of t)i.addClass(e,s)}return s}(e,s,t)}function Uo(e){return e.model.values?(t,o,s)=>{const i=e.view[t];return i?i(t,o,s):null}:e.view}function Ko(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function Yo(e,t,o){const s="function"==typeof e?e(t,o):{...e};return s?(s.priority||(s.priority=10),s.id||(s.id=t.markerName),s):null}function Go(e){const t=function(e){return(t,o)=>{if(!t.is("element",e.name))return!1;if("attribute"==o.type){if(e.attributes.includes(o.attributeKey))return!0}else if(e.children)return!0;return!1}}(e);return(e,o)=>{const s=[];o.reconvertedElements||(o.reconvertedElements=new Set);for(const e of o.changes){const i="attribute"==e.type?e.range.start.nodeAfter:e.position.parent;if(i&&t(i,e)&&"reinsert"!=e.type){if("insert"==e.type&&"rename"==e.action&&o.refreshedItems.add(e.position.nodeAfter),!o.reconvertedElements.has(i)){o.reconvertedElements.add(i);const e=Gt._createBefore(i);let t=s.length;for(let o=s.length-1;o>=0;o--){const i=s[o],n=("attribute"==i.type?i.range.start:i.position).compareWith(e);if("before"==n||"remove"==i.type&&"same"==n)break;t=o}s.splice(t,0,{type:"reinsert",name:i.name,position:e,length:1})}}else s.push(e)}o.changes=s}}function Jo(e){return(t,o,s={})=>{const i=["insert"];for(const o of e.attributes)t.hasAttribute(o)&&i.push(`attribute:${o}`);return!!i.every(e=>o.test(t,e))&&(s.preflight||i.forEach(e=>o.consume(t,e)),!0)}}function Zo(e,t,o,s){for(const i of t)Xo(e.root,i,o,s)||o.convertItem(i)}function Xo(e,t,o,s){const{writer:i,mapper:n}=o;if(!s.reconversion)return!1;const r=n.toViewElement(t);return!(!r||r.root==e)&&(!!o.canReuseView(r)&&(i.move(i.createRangeOn(r),n.toViewPosition(Gt._createBefore(t))),!0))}function Qo(e,t,{preflight:o}={}){return o?t.test(e,"insert"):t.consume(e,"insert")}function es(e){const{schema:t,document:o}=e.model;for(const s of o.getRoots())if(s.isEmpty&&!t.checkChild(s,"$text")&&t.checkChild(s,"paragraph"))return e.insertElement("paragraph",s),!0;return!1}function ts(e,t,o){const s=o.createContext(e);return!!o.checkChild(s,"paragraph")&&!!o.checkChild(s.push("paragraph"),t)}function os(e,t){const o=t.createElement("paragraph");return t.insert(o,e),t.createPositionAt(o,0)}class ss extends To{elementToElement(e){return this.add(as(e))}elementToAttribute(e){return this.add(function(e){e=(0,qt.m)(e),ds(e);const t=us(e,!1),o=cs(e.view),s=o?`element:${o}`:"element";return o=>{o.on(s,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=(0,qt.m)(e);let t=null;("string"==typeof e.view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});const t=e.view.key,o=void 0===e.view.value?/[\s\S]*/:e.view.value;let s;if("class"==t||"style"==t){const e="class"==t?"classes":"styles";s={[e]:o}}else s={attributes:{[t]:o}};e.view.name&&(s.name=e.view.name);return e.view=s,t}(e));ds(e,t);const o=us(e,!0);return t=>{t.on("element",o,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(e){const t=function(e){return(t,o)=>{const s="string"==typeof e?e:e(t,o);return o.writer.createElement("$marker",{"data-name":s})}}(e.model);return as({...e,model:t})}(e))}dataToMarker(e){return this.add(function(e){e=(0,qt.m)(e),e.model||(e.model=t=>t?e.view+":"+t:e.view);const t={view:e.view,model:e.model},o=ls(hs(t,"start")),s=ls(hs(t,"end"));return i=>{i.on(`element:${e.view}-start`,o,{priority:e.converterPriority||"normal"}),i.on(`element:${e.view}-end`,s,{priority:e.converterPriority||"normal"});const n=g.vx.low,r=g.vx.highest,a=g.vx.get(e.converterPriority)/r;i.on("element",function(e){return(t,o,s)=>{const i=`data-${e.view}`;function n(t,i){for(const n of i){const i=e.model(n,s),r=s.writer.createElement("$marker",{"data-name":i});s.writer.insert(r,t),o.modelCursor.isEqual(t)?o.modelCursor=o.modelCursor.getShiftedBy(1):o.modelCursor=o.modelCursor._getTransformedByInsertion(t,1),o.modelRange=o.modelRange._getTransformedByInsertion(t,1)[0]}}(s.consumable.test(o.viewItem,{attributes:i+"-end-after"})||s.consumable.test(o.viewItem,{attributes:i+"-start-after"})||s.consumable.test(o.viewItem,{attributes:i+"-end-before"})||s.consumable.test(o.viewItem,{attributes:i+"-start-before"}))&&(o.modelRange||Object.assign(o,s.convertChildren(o.viewItem,o.modelCursor)),s.consumable.consume(o.viewItem,{attributes:i+"-end-after"})&&n(o.modelRange.end,o.viewItem.getAttribute(i+"-end-after").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-start-after"})&&n(o.modelRange.end,o.viewItem.getAttribute(i+"-start-after").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-end-before"})&&n(o.modelRange.start,o.viewItem.getAttribute(i+"-end-before").split(",")),s.consumable.consume(o.viewItem,{attributes:i+"-start-before"})&&n(o.modelRange.start,o.viewItem.getAttribute(i+"-start-before").split(",")))}}(t),{priority:n+a})}}(e))}}function is(){return(e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:s}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=s}}}function ns(){return(e,t,{schema:o,consumable:s,writer:i})=>{let n=t.modelCursor;if(!s.test(t.viewItem))return;if(!o.checkChild(n,"$text")){if(!ts(n,"$text",o))return;if(0==t.viewItem.data.trim().length)return;n=os(n,i)}s.consume(t.viewItem);const r=i.createText(t.viewItem.data);i.insert(r,n),t.modelRange=i.createRange(n,n.getShiftedBy(r.offsetSize)),t.modelCursor=t.modelRange.end}}function rs(e,t){return(o,s)=>{const i=s.newSelection,n=[];for(const e of i.getRanges())n.push(t.toModelRange(e));const r=e.createSelection(n,{backward:i.isBackward});r.isEqual(e.document.selection)||e.change(e=>{e.setSelection(r)})}}function as(e){const t=ls(e=(0,qt.m)(e)),o=cs(e.view),s=o?`element:${o}`:"element";return o=>{o.on(s,t,{priority:e.converterPriority||"normal"})}}function cs(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function ls(e){const t=new R(e.view);return(o,s,i)=>{const n=t.match(s.viewItem);if(!n)return;const r=n.match;if(r.name=!0,!i.consumable.test(s.viewItem,r))return;const a=function(e,t,o){return e instanceof Function?e(t,o):o.writer.createElement(e)}(e.model,s.viewItem,i);a&&i.safeInsert(a,s.modelCursor)&&(i.consumable.consume(s.viewItem,r),i.convertChildren(s.viewItem,a),i.updateConversionResult(a,s))}}function ds(e,t=null){const o=null===t||(e=>e.getAttribute(t)),s="object"!=typeof e.model?e.model:e.model.key,i="object"!=typeof e.model||void 0===e.model.value?o:e.model.value;e.model={key:s,value:i}}function us(e,t){const o=new R(e.view);return(s,i,n)=>{if(!i.modelRange&&t)return;const r=o.match(i.viewItem);if(!r)return;if(!function(e,t){const o="function"==typeof e?e(t):e;if("object"==typeof o&&!cs(o))return!1;return!o.classes&&!o.attributes&&!o.styles}(e.view,i.viewItem)?delete r.match.name:r.match.name=!0,!n.consumable.test(i.viewItem,r.match))return;const a=e.model.key,c="function"==typeof e.model.value?e.model.value(i.viewItem,n,i):e.model.value;if(null==c)return;i.modelRange||Object.assign(i,n.convertChildren(i.viewItem,i.modelCursor));const l=function(e,t,o,s){let i=!1;for(const n of Array.from(e.getItems({shallow:o})))s.schema.checkAttribute(n,t.key)&&(i=!0,n.hasAttribute(t.key)||s.writer.setAttribute(t.key,t.value,n));return i}(i.modelRange,{key:a,value:c},t,n);l&&(n.consumable.test(i.viewItem,{name:!0})&&(r.match.name=!0),n.consumable.consume(i.viewItem,r.match))}}function hs(e,t){return{view:`${e.view}-${t}`,model:(t,o)=>{const s=t.getAttribute("name"),i=e.model(s,o);return o.writer.createElement("$marker",{"data-name":i})}}}class ps extends((0,g.VM)()){model;view;mapper;downcastDispatcher;constructor(e,t){super(),this.model=e,this.view=new Wt(t),this.mapper=new oo,this.downcastDispatcher=new ro({mapper:this.mapper,schema:e.schema});const o=this.model.document,s=o.selection,i=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(o,"change",()=>{this.view.change(e=>{this.downcastDispatcher.convertChanges(o.differ,i,e),this.downcastDispatcher.convertSelection(s,i,e)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",rs(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const s=o.writer,i=o.mapper.toViewPosition(t.range.start),n=s.createText(t.item.data);s.insert(i,n)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",Oo(),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(e,t,o)=>{const s=o.writer,i=s.document.selection;for(const e of i.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&o.writer.mergeAttributes(e.start);s.setSelection(null)}),this.downcastDispatcher.on("selection",(e,t,o)=>{const s=t.selection;if(s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=[];for(const e of s.getRanges())i.push(o.mapper.toViewRange(e));o.writer.setSelection(i,{backward:s.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,o)=>{const s=t.selection;if(!s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=o.writer,n=s.getFirstPosition(),r=o.mapper.toViewPosition(n),a=i.breakAttributes(r);i.setSelection(a)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(e=>{if("$graveyard"==e.rootName)return null;const t=new ee(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(e){const t="string"==typeof e?e:e.name,o=this.model.markers.get(t);if(!o)throw new g.Yb("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:t});this.model.change(()=>{this.model.markers._refresh(o)})}reconvertItem(e){this.model.change(()=>{this.model.document.differ._refreshItem(e)})}}class ms extends((0,g.VM)()){_sourceDefinitions={};_attributeProperties=Object.create(null);_customChildChecks=new Map;_customAttributeChecks=new Map;_genericCheckSymbol=Symbol("$generic");_compiledDefinitions;constructor(){super(),this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(e,t)=>{t[0]=new gs(t[0])},{priority:"highest"}),this.on("checkChild",(e,t)=>{t[0]=new gs(t[0]),t[1]=this.getDefinition(t[1])},{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new g.Yb("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 g.Yb("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(e,t)}checkAttribute(e,t){const o=this.getDefinition(e.last);if(!o)return!1;const s=this._evaluateAttributeChecks(e,t);return void 0!==s?s:o.allowAttributes.includes(t)}checkMerge(e,t){if(e instanceof Gt){const t=e.nodeBefore,o=e.nodeAfter;if(!(t instanceof So))throw new g.Yb("schema-check-merge-no-element-before",this);if(!(o instanceof So))throw new g.Yb("schema-check-merge-no-element-after",this);return this.checkMerge(t,o)}if(this.isLimit(e)||this.isLimit(t))return!1;for(const o of t.getChildren())if(!this.checkChild(e,o))return!1;return!0}addChildCheck(e,t){const o=void 0!==t?t:this._genericCheckSymbol,s=this._customChildChecks.get(o)||[];s.push(e),this._customChildChecks.set(o,s)}addAttributeCheck(e,t){const o=void 0!==t?t:this._genericCheckSymbol,s=this._customAttributeChecks.get(o)||[];s.push(e),this._customAttributeChecks.set(o,s)}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||Object.create(null)}getLimitElement(e){let t;if(e instanceof Gt)t=e.parent;else{t=(e instanceof to?[e]:Array.from(e.getRanges())).reduce((e,t)=>{const o=t.getCommonAncestor();return e?e.getCommonAncestor(o,{includeSelf:!0}):o},null)}for(;!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const o=[...e.getFirstPosition().getAncestors(),new vo("",e.getAttributes())];return this.checkAttribute(o,t)}{const o=e.getRanges();for(const e of o)for(const o of e)if(this.checkAttribute(o.item,t))return!0}return!1}*getValidRanges(e,t,o={}){e=function*(e){for(const t of e)yield*t.getMinimalFlatRanges()}(e);for(const s of e)yield*this._getValidRangesForRange(s,t,o)}getNearestSelectionRange(e,t="both"){if("$graveyard"==e.root.rootName)return null;if(this.checkChild(e,"$text"))return new to(e);let o,s;const i=e.getAncestors().reverse().find(e=>this.isLimit(e))||e.root;"both"!=t&&"backward"!=t||(o=new Kt({boundaries:to._createIn(i),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(s=new Kt({boundaries:to._createIn(i),startPosition:e}));for(const e of function*(e,t){let o=!1;for(;!o;){if(o=!0,e){const t=e.next();t.done||(o=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(o=!1,yield{walker:t,value:e.value})}}}(o,s)){const t=e.walker==o?"elementEnd":"elementStart",s=e.value;if(s.type==t&&this.isObject(s.item))return to._createOn(s.item);if(this.checkChild(s.nextPosition,"$text"))return new to(s.nextPosition)}return null}findAllowedParent(e,t){let o=e.parent;for(;o;){if(this.checkChild(o,t))return o;if(this.isLimit(o))return null;o=o.parent}return null}setAllowedAttributes(e,t,o){const s=o.model;for(const[i,n]of Object.entries(t))s.schema.checkAttribute(e,i)&&o.setAttribute(i,n,e)}removeDisallowedAttributes(e,t){for(const o of e)if(o.is("$text"))Ts(this,o,t);else{const e=to._createIn(o).getPositions();for(const o of e){Ts(this,o.nodeBefore||o.parent,t)}}}getAttributesWithProperty(e,t,o){const s={};for(const[i,n]of e.getAttributes()){const e=this.getAttributeProperties(i);void 0!==e[t]&&(void 0!==o&&o!==e[t]||(s[i]=n))}return s}createContext(e){return new gs(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,o=Object.keys(t);for(const s of o)e[s]=fs(t[s],s);const s=Object.values(e);for(const t of s)_s(e,t),bs(e,t),ws(e,t),ks(e,t);for(const t of s)vs(e,t);for(const t of s)ys(e,t);for(const t of s)xs(e,t);for(const t of s)As(e,t);for(const t of s)Cs(e,t);this._compiledDefinitions=function(e){const t={};for(const o of Object.values(e))t[o.name]={name:o.name,isBlock:!!o.isBlock,isContent:!!o.isContent,isInline:!!o.isInline,isLimit:!!o.isLimit,isObject:!!o.isObject,isSelectable:!!o.isSelectable,allowIn:Array.from(o.allowIn).filter(t=>!!e[t]),allowChildren:Array.from(o.allowChildren).filter(t=>!!e[t]),allowAttributes:Array.from(o.allowAttributes)};return t}(e)}_checkContextMatch(e,t){const o=e.last;let s=this._evaluateChildChecks(e,t);if(s=void 0!==s?s:t.allowIn.includes(o.name),!s)return!1;const i=this.getDefinition(o),n=e.trimLast();return!!i&&(0==n.length||this._checkContextMatch(n,i))}_evaluateChildChecks(e,t){const o=this._customChildChecks.get(this._genericCheckSymbol)||[],s=this._customChildChecks.get(t.name)||[];for(const i of[...o,...s]){const o=i(e,t);if(void 0!==o)return o}}_evaluateAttributeChecks(e,t){const o=this._customAttributeChecks.get(this._genericCheckSymbol)||[],s=this._customAttributeChecks.get(t)||[];for(const i of[...o,...s]){const o=i(e,t);if(void 0!==o)return o}}*_getValidRangesForRange(e,t,o){let s=e.start,i=e.start;for(const n of e.getItems({shallow:!0})){if(n.is("element"))if(o.includeEmptyRanges&&n.isEmpty){const e=this.createContext(n);this.checkChild(e,"$text")&&this.checkAttribute(e.push("$text"),t)&&(yield to._createIn(n))}else yield*this._getValidRangesForRange(to._createIn(n),t,o);this.checkAttribute(n,t)||(s.isEqual(i)||(yield new to(s,i)),s=Gt._createAfter(n)),i=Gt._createAfter(n)}s.isEqual(i)||(yield new to(s,i))}findOptimalInsertionRange(e,t){const o=e.getSelectedElement();if(o&&this.isObject(o)&&!this.isInline(o))return"before"==t||"after"==t?new to(Gt._createAt(o,t)):to._createOn(o);const s=(0,g.$1)(e.getSelectedBlocks());if(!s)return new to(e.focus);if(s.isEmpty)return new to(Gt._createAt(s,0));const i=Gt._createAfter(s);return e.focus.isTouching(i)?new to(i):new to(Gt._createBefore(s))}}class gs{_items;constructor(e){if(e instanceof gs)return e;let t;t="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=t.map(Ss)}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 gs([e]);return t._items=[...this._items,...t._items],t}trimLast(){const e=new gs([]);return e._items=this._items.slice(0,-1),e}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 fs(e,t){const o={name:t,allowIn:new Set,allowChildren:new Set,disallowIn:new Set,disallowChildren:new Set,allowContentOf:new Set,allowWhere:new Set,allowAttributes:new Set,disallowAttributes:new Set,allowAttributesOf:new Set,inheritTypesFrom:new Set};return function(e,t){for(const o of e){const e=Object.keys(o).filter(e=>e.startsWith("is"));for(const s of e)t[s]=!!o[s]}}(e,o),Es(e,o,"allowIn"),Es(e,o,"allowChildren"),Es(e,o,"disallowIn"),Es(e,o,"disallowChildren"),Es(e,o,"allowContentOf"),Es(e,o,"allowWhere"),Es(e,o,"allowAttributes"),Es(e,o,"disallowAttributes"),Es(e,o,"allowAttributesOf"),Es(e,o,"inheritTypesFrom"),function(e,t){for(const o of e){const e=o.inheritAllFrom;e&&(t.allowContentOf.add(e),t.allowWhere.add(e),t.allowAttributesOf.add(e),t.inheritTypesFrom.add(e))}}(e,o),o}function _s(e,t){for(const o of t.allowIn){const s=e[o];s?s.allowChildren.add(t.name):t.allowIn.delete(o)}}function bs(e,t){for(const o of t.allowChildren){const s=e[o];s?s.allowIn.add(t.name):t.allowChildren.delete(o)}}function ws(e,t){for(const o of t.disallowIn){const s=e[o];s?s.disallowChildren.add(t.name):t.disallowIn.delete(o)}}function ks(e,t){for(const o of t.disallowChildren){const s=e[o];s?s.disallowIn.add(t.name):t.disallowChildren.delete(o)}}function vs(e,t){for(const e of t.disallowChildren)t.allowChildren.delete(e);for(const e of t.disallowIn)t.allowIn.delete(e);for(const e of t.disallowAttributes)t.allowAttributes.delete(e)}function ys(e,t){for(const o of t.allowContentOf){const s=e[o];s&&(s.disallowChildren.forEach(o=>{t.allowChildren.has(o)||(t.disallowChildren.add(o),e[o].disallowIn.add(t.name))}),s.allowChildren.forEach(o=>{t.disallowChildren.has(o)||(t.allowChildren.add(o),e[o].allowIn.add(t.name))}))}}function xs(e,t){for(const o of t.allowWhere){const s=e[o];s&&(s.disallowIn.forEach(o=>{t.allowIn.has(o)||(t.disallowIn.add(o),e[o].disallowChildren.add(t.name))}),s.allowIn.forEach(o=>{t.disallowIn.has(o)||(t.allowIn.add(o),e[o].allowChildren.add(t.name))}))}}function As(e,t){for(const o of t.allowAttributesOf){const s=e[o];if(!s)return;s.allowAttributes.forEach(e=>{t.disallowAttributes.has(e)||t.allowAttributes.add(e)})}}function Cs(e,t){for(const o of t.inheritTypesFrom){const s=e[o];if(s){const e=Object.keys(s).filter(e=>e.startsWith("is"));for(const o of e)o in t||(t[o]=s[o])}}}function Es(e,t,o){for(const s of e){let e=s[o];"string"==typeof e&&(e=[e]),Array.isArray(e)&&e.forEach(e=>t[o].add(e))}}function Ss(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 Ts(e,t,o){for(const s of t.getAttributeKeys())e.checkAttribute(t,s)||o.removeAttribute(s,t)}class Ps extends((0,g.Mm)()){conversionApi;_splitParts=new Map;_cursorParents=new Map;_modelCursor=null;_emptyElementsToKeep=new Set;constructor(e){super(),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,o=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let o;for(const s of new gs(e)){const e={};for(const t of s.getAttributeKeys())e[t]=s.getAttribute(t);const i=t.createElement(s.name,e);o&&t.insert(i,o),o=Gt._createAt(i,0)}return o}(o,t),this.conversionApi.writer=t,this.conversionApi.consumable=M.createFrom(e),this.conversionApi.store={};const{modelRange:s}=this._convertItem(e,this._modelCursor),i=t.createDocumentFragment();if(s){this._removeEmptyElements();const e=this._modelCursor.parent,o=e._removeChildren(0,e.childCount);i._insertChild(0,o),i.markers=function(e,t){const o=new Set,s=new Map,i=to._createIn(e).getItems();for(const e of i)e.is("element","$marker")&&o.add(e);for(const e of o){const o=e.getAttribute("data-name"),i=t.createPositionBefore(e);s.has(o)?s.get(o).end=i.clone():s.set(o,new to(i.clone())),t.remove(e)}return s}(i,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i}_convertItem(e,t){const o={viewItem:e,modelCursor:t,modelRange:null};if(e.is("element")?this.fire(`element:${e.name}`,o,this.conversionApi):e.is("$text")?this.fire("text",o,this.conversionApi):this.fire("documentFragment",o,this.conversionApi),o.modelRange&&!(o.modelRange instanceof to))throw new g.Yb("view-conversion-dispatcher-incorrect-result",this);return{modelRange:o.modelRange,modelCursor:o.modelCursor}}_convertChildren(e,t){let o=t.is("position")?t:Gt._createAt(t,0);const s=new to(o);for(const t of Array.from(e.getChildren())){const e=this._convertItem(t,o);e.modelRange instanceof to&&(s.end=e.modelRange.end,o=e.modelCursor)}return{modelRange:s,modelCursor:o}}_safeInsert(e,t){const o=this._splitToAllowedParent(e,t);return!!o&&(this.conversionApi.writer.insert(e,o.position),!0)}_updateConversionResult(e,t){const o=this._getSplitParts(e),s=this.conversionApi.writer;t.modelRange||(t.modelRange=s.createRange(s.createPositionBefore(e),s.createPositionAfter(o[o.length-1])));const i=this._cursorParents.get(e);t.modelCursor=i?s.createPositionAt(i,0):t.modelRange.end}_splitToAllowedParent(e,t){const{schema:o,writer:s}=this.conversionApi;let i=o.findAllowedParent(t,e);if(i){if(i===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(i)&&(i=null)}if(!i)return ts(t,e,o)?{position:os(t,s)}:null;const n=this.conversionApi.writer.split(t,i),r=[];for(const e of n.range.getWalker())if("elementEnd"==e.type)r.push(e.item);else{const t=r.pop(),o=e.item;this._registerSplitPair(t,o)}const a=n.range.end.parent;return this._cursorParents.set(e,a),{position:n.position,cursorParent:a}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const o=this._splitParts.get(e);this._splitParts.set(t,o),o.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_keepEmptyElement(e){this._emptyElementsToKeep.add(e)}_removeEmptyElements(){const e=new Map;for(const t of this._splitParts.keys())if(t.isEmpty&&!this._emptyElementsToKeep.has(t)){const o=e.get(t.parent)||[];o.push(t),this._splitParts.delete(t),e.set(t.parent,o)}for(const[t,o]of e)t._removeChildrenArray(o);e.size&&this._removeEmptyElements()}}class Ms{getHtml(e){const t=g.Sf.document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class Vs{domParser;domConverter;htmlWriter;skipComments=!0;constructor(e){this.domParser=new DOMParser,this.domConverter=new ct(e,{renderingMode:"data"}),this.htmlWriter=new Ms}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){/<(?:html|body|head|meta)(?:\s[^>]*)?>/i.test(e.trim().slice(0,1e4))||(e=`<body>${e}</body>`);const t=this.domParser.parseFromString(e,"text/html"),o=t.createDocumentFragment(),s=t.body.childNodes;for(;s.length>0;)o.appendChild(s[0]);return o}}class Os extends((0,g.Mm)()){model;mapper;downcastDispatcher;upcastDispatcher;viewDocument;stylesProcessor;htmlProcessor;processor;_viewWriter;constructor(e,t){super(),this.model=e,this.mapper=new oo,this.downcastDispatcher=new ro({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",(e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const s=o.writer,i=o.mapper.toViewPosition(t.range.start),n=s.createText(t.item.data);s.insert(i,n)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)},{priority:"lowest"}),this.upcastDispatcher=new Ps({schema:e.schema}),this.viewDocument=new _e(t),this.stylesProcessor=t,this.htmlProcessor=new Vs(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Me(this.viewDocument),this.upcastDispatcher.on("text",ns(),{priority:"lowest"}),this.upcastDispatcher.on("element",(e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:s}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=s}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:s}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=s}},{priority:"lowest"}),(0,g.VM)().prototype.decorate.call(this,"init"),(0,g.VM)().prototype.decorate.call(this,"set"),(0,g.VM)().prototype.decorate.call(this,"get"),(0,g.VM)().prototype.decorate.call(this,"toView"),(0,g.VM)().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},es)},{priority:"lowest"})}get(e={}){const{rootName:t="main",trim:o="empty"}=e;if(!this._checkIfRootsExists([t]))throw new g.Yb("datacontroller-get-non-existent-root",this);const s=this.model.document.getRoot(t);return s.isAttached()||(0,g.FF)("datacontroller-get-detached-root",this),"empty"!==o||this.model.hasContent(s,{ignoreWhitespaces:!0})?this.stringify(s,e):""}stringify(e,t={}){const o=this.toView(e,t);return this.processor.toData(o)}toView(e,t={}){const o=this.viewDocument,s=this._viewWriter;this.mapper.clearBindings();const i=to._createIn(e),n=new Te(o);this.mapper.bindElements(e,n);const r=e.is("documentFragment")?e.markers:function(e){const t=[],o=e.root.document;if(!o)return new Map;const s=to._createIn(e);for(const e of o.model.markers){const o=e.getRange(),i=o.isCollapsed,n=o.start.isEqual(s.start)||o.end.isEqual(s.end);if(i&&n)t.push([e.name,o]);else{const i=s.getIntersection(o);i&&t.push([e.name,i])}}return t.sort(([e,t],[o,s])=>{if("after"!==t.end.compareWith(s.start))return 1;if("before"!==t.start.compareWith(s.end))return-1;switch(t.start.compareWith(s.start)){case"before":return 1;case"after":return-1;default:switch(t.end.compareWith(s.end)){case"before":return 1;case"after":return-1;default:return o.localeCompare(e)}}}),new Map(t)}(e);return this.downcastDispatcher.convert(i,r,s,t),n}init(e){if(this.model.document.version)throw new g.Yb("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new g.Yb("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},e=>{for(const o of Object.keys(t)){const s=this.model.document.getRoot(o);e.insert(this.parse(t[o],s),s,0)}}),Promise.resolve()}set(e,t={}){let o={};if("string"==typeof e?o.main=e:o=e,!this._checkIfRootsExists(Object.keys(o)))throw new g.Yb("datacontroller-set-non-existent-root",this);this.model.enqueueChange(t.batchType||{},e=>{e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const t of Object.keys(o)){const s=this.model.document.getRoot(t);e.remove(e.createRangeIn(s)),e.insert(this.parse(o[t],s),s,0)}})}parse(e,t="$root"){const o=this.processor.toView(e);return this.toModel(o,t)}toModel(e,t="$root"){return this.model.change(o=>this.upcastDispatcher.convert(e,o,t))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e)if(!this.model.document.getRoot(t))return!1;return!0}}class Is{_helpers=new Map;_downcast;_upcast;constructor(e,t){this._downcast=(0,g.$r)(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=(0,g.$r)(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const o=this._downcast.includes(t);if(!this._upcast.includes(t)&&!o)throw new g.Yb("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:o})}for(e){if(!this._helpers.has(e))throw new g.Yb("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:o}of Rs(e))this.for("upcast").elementToElement({model:t,view:o,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:o}of Rs(e))this.for("upcast").elementToAttribute({view:o,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:o}of Rs(e))this.for("upcast").attributeToAttribute({view:o,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:o}){if(this._helpers.has(e))throw new g.Yb("conversion-group-exists",this);const s=o?new Po(t):new ss(t);this._helpers.set(e,s)}}function*Rs(e){if(e.model.values)for(const t of e.model.values){const o={key:e.model.key,value:t},s=e.view[t],i=e.upcastAlso?e.upcastAlso[t]:void 0;yield*js(o,s,i)}else yield*js(e.model,e.view,e.upcastAlso)}function*js(e,t,o){if(yield{model:e,view:t},o)for(const t of(0,g.$r)(o))yield{model:e,view:t}}class zs{namespaces;domParser;domConverter;htmlWriter;skipComments=!0;constructor(e,t={}){this.namespaces=t.namespaces||[],this.domParser=new DOMParser,this.domConverter=new ct(e,{renderingMode:"data"}),this.htmlWriter=new Ms}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,{keepOriginalCase:!0,skipComments:this.skipComments})}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}_toDom(e){e=`<xml ${this.namespaces.map(e=>`xmlns:${e}="nsp"`).join(" ")}>${e}</xml>`;const t=this.domParser.parseFromString(e,"text/xml"),o=t.querySelector("parsererror");if(o)throw new Error("Parse error - "+o.textContent);const s=t.createDocumentFragment(),i=t.documentElement.childNodes;for(;i.length>0;)s.appendChild(i[0]);return s}}class Bs{baseVersion;isDocumentOperation;batch;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 Ns(e,t){const o=Hs(t),s=o.reduce((e,t)=>e+t.offsetSize,0),i=e.parent;Ws(e);const n=e.index;return i._insertChild(n,o),qs(i,n+o.length),qs(i,n),new to(e,e.getShiftedBy(s))}function Ls(e){if(!e.isFlat)throw new g.Yb("operation-utils-remove-range-not-flat",this);const t=e.start.parent;Ws(e.start),Ws(e.end);const o=t._removeChildren(e.start.index,e.end.index-e.start.index);return qs(t,e.start.index),o}function Ds(e,t){if(!e.isFlat)throw new g.Yb("operation-utils-move-range-not-flat",this);const o=Ls(e);return Ns(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),o)}function Fs(e,t,o){Ws(e.start),Ws(e.end);for(const s of e.getItems({shallow:!0})){const e=s.is("$textProxy")?s.textNode:s;null!==o?e._setAttribute(t,o):e._removeAttribute(t),qs(e.parent,e.index)}qs(e.end.parent,e.end.index)}function Hs(e){const t=[];!function e(o){if("string"==typeof o)t.push(new vo(o));else if(o instanceof Ut)t.push(new vo(o.data,o.getAttributes()));else if(o instanceof lo)t.push(o);else if((0,g.xZ)(o))for(const t of o)e(t);else{}}(e);for(let e=1;e<t.length;e++){const o=t[e],s=t[e-1];o instanceof vo&&s instanceof vo&&$s(o,s)&&(t.splice(e-1,2,new vo(s.data+o.data,s.getAttributes())),e--)}return t}function qs(e,t){const o=e.getChild(t-1),s=e.getChild(t);if(o&&s&&o.is("$text")&&s.is("$text")&&$s(o,s)){const i=new vo(o.data+s.data,o.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,i)}}function Ws(e){const t=e.textNode,o=e.parent;if(t){const s=e.offset-t.startOffset,i=t.index;o._removeChildren(i,1);const n=new vo(t.data.substr(0,s),t.getAttributes()),r=new vo(t.data.substr(s),t.getAttributes());o._insertChild(i,[n,r])}}function $s(e,t){const o=e.getAttributes(),s=t.getAttributes();for(const e of o){if(e[1]!==t.getAttribute(e[0]))return!1;s.next()}return s.next().done}class Us extends Bs{sourcePosition;howMany;targetPosition;constructor(e,t,o,s){super(s),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=o.clone(),this.targetPosition.stickiness="toNone"}get type(){return this.targetPosition.root.rootName==this.sourcePosition.root.rootName?"move":"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}get affectedSelectable(){return[to._createFromPositionAndShift(this.sourcePosition,this.howMany),to._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new Us(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 Us(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,o=this.sourcePosition.offset,s=this.targetPosition.offset;if(o+this.howMany>e.maxOffset)throw new g.Yb("move-operation-nodes-do-not-exist",this);if(e===t&&o<s&&s<o+this.howMany)throw new g.Yb("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==(0,g.ww)(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=o&&this.targetPosition.path[e]<o+this.howMany)throw new g.Yb("move-operation-node-into-itself",this)}}_execute(){Ds(to._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){const o=Gt.fromJSON(e.sourcePosition,t),s=Gt.fromJSON(e.targetPosition,t);return new this(o,e.howMany,s,e.baseVersion)}}class Ks extends Bs{position;nodes;shouldReceiveAttributes;constructor(e,t,o){super(o),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new Eo(Hs(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const e=new Eo([...this.nodes].map(e=>e._clone(!0))),t=new Ks(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new Gt(e,[0]);return new Us(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new g.Yb("insert-operation-position-invalid",this)}_execute(){const e=this.nodes;this.nodes=new Eo([...e].map(e=>e._clone(!0))),Ns(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const o=[];for(const t of e.nodes)t.name?o.push(So.fromJSON(t)):o.push(vo.fromJSON(t));const s=new Ks(Gt.fromJSON(e.position,t),o,e.baseVersion);return s.shouldReceiveAttributes=e.shouldReceiveAttributes,s}}class Ys extends Bs{splitPosition;howMany;insertionPosition;graveyardPosition;constructor(e,t,o,s,i){super(i),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=o,this.graveyardPosition=s?s.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new Gt(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new to(this.splitPosition,e)}get affectedSelectable(){const e=[to._createFromPositionAndShift(this.splitPosition,0),to._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&e.push(to._createFromPositionAndShift(this.graveyardPosition,0)),e}clone(){return new Ys(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new Gt(e,[0]);return new Gs(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 g.Yb("split-operation-position-invalid",this);if(!e.parent)throw new g.Yb("split-operation-split-in-root",this);if(this.howMany!==Number.NEGATIVE_INFINITY&&this.howMany!=e.maxOffset-this.splitPosition.offset)throw new g.Yb("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new g.Yb("split-operation-graveyard-position-invalid",this);this.howMany=this.splitPosition.parent.maxOffset-this.splitPosition.offset}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)Ds(to._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();Ns(this.insertionPosition,t)}Ds(new to(Gt._createAt(e,this.splitPosition.offset),Gt._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 Gt(e.root,t,"toPrevious")}static fromJSON(e,t){const o=Gt.fromJSON(e.splitPosition,t),s=Gt.fromJSON(e.insertionPosition,t),i=e.graveyardPosition?Gt.fromJSON(e.graveyardPosition,t):null;return new this(o,e.howMany,s,i,e.baseVersion)}}class Gs extends Bs{sourcePosition;howMany;targetPosition;graveyardPosition;constructor(e,t,o,s,i){super(i),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=o.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=s.clone()}get type(){return"merge"}get deletionPosition(){return new Gt(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new to(this.sourcePosition,e)}get affectedSelectable(){const e=this.sourcePosition.parent;return[to._createOn(e),to._createFromPositionAndShift(this.targetPosition,0),to._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Gs(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),o=new Gt(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new Ys(e,this.howMany,o,this.graveyardPosition,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new g.Yb("merge-operation-source-position-invalid",this);if(!t.parent)throw new g.Yb("merge-operation-target-position-invalid",this);if(this.howMany!==Number.NEGATIVE_INFINITY&&this.howMany!=e.maxOffset)throw new g.Yb("merge-operation-how-many-invalid",this);this.howMany=this.sourcePosition.parent.maxOffset}_execute(){const e=this.sourcePosition.parent;Ds(to._createIn(e),this.targetPosition),Ds(to._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){const o=Gt.fromJSON(e.sourcePosition,t),s=Gt.fromJSON(e.targetPosition,t),i=Gt.fromJSON(e.graveyardPosition,t);return new this(o,e.howMany,s,i,e.baseVersion)}}class Js extends Bs{name;oldRange;newRange;affectsData;_markers;constructor(e,t,o,s,i,n){super(n),this.name=e,this.oldRange=t?t.clone():null,this.newRange=o?o.clone():null,this.affectsData=i,this._markers=s}get type(){return"marker"}get affectedSelectable(){const e=[];return this.oldRange&&e.push(this.oldRange.clone()),this.newRange&&(this.oldRange?e.push(...this.newRange.getDifference(this.oldRange)):e.push(this.newRange.clone())),e}clone(){return new Js(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Js(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 Js(e.name,e.oldRange?to.fromJSON(e.oldRange,t):null,e.newRange?to.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}var Zs=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/function/noop.mjs");function Xs(e,t){return Pt(e,t,Zs.l)}class Qs extends Bs{range;key;oldValue;newValue;constructor(e,t,o,s,i){super(i),this.range=e.clone(),this.key=t,this.oldValue=void 0===o?null:o,this.newValue=void 0===s?null:s}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new Qs(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Qs(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 g.Yb("attribute-operation-range-not-flat",this);for(const e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Xs(e.getAttribute(this.key),this.oldValue))throw new g.Yb("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 g.Yb("attribute-operation-attribute-exists",this,{node:e,key:this.key})}}_execute(){Xs(this.oldValue,this.newValue)||Fs(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new Qs(to.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class ei extends Bs{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new ei(this.baseVersion)}getReversed(){return new ei(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class ti extends Bs{position;oldName;newName;constructor(e,t,o,s){super(s),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=o}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new ti(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new ti(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof So))throw new g.Yb("rename-operation-wrong-position",this);if(""!==this.oldName&&e.name!==this.oldName)throw new g.Yb("rename-operation-wrong-name",this);this.oldName=e.name}_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 ti(Gt.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class oi extends Bs{root;key;oldValue;newValue;constructor(e,t,o,s,i){super(i),this.root=e,this.key=t,this.oldValue=void 0===o?null:o,this.newValue=void 0===s?null:s}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new oi(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new oi(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new g.Yb("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 g.Yb("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 g.Yb("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 g.Yb("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new oi(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class si extends Bs{rootName;elementName;isAdd;_document;constructor(e,t,o,s,i){if(super(i),this.rootName=e,this.elementName=t,this.isAdd=o,this._document=s,!this._document.getRoot(this.rootName)){this._document.createRoot(this.elementName,this.rootName)._isAttached=!1}}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new si(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new si(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 si(e.rootName,e.elementName,e.isAdd,t,e.baseVersion)}}const ii={};ii[Qs.className]=Qs,ii[Ks.className]=Ks,ii[Js.className]=Js,ii[Us.className]=Us,ii[ei.className]=ei,ii[Bs.className]=Bs,ii[ti.className]=ti,ii[oi.className]=oi,ii[si.className]=si,ii[Ys.className]=Ys,ii[Gs.className]=Gs;class ni{static fromJSON(e,t){return ii[e.__className].fromJSON(e,t)}}const ri=new Map;function ai(e,t,o){let s=ri.get(e);s||(s=new Map,ri.set(e,s)),s.set(t,o)}function ci(e){return[e]}function li(e,t,o={}){const s=function(e,t){const o=ri.get(e);return o&&o.has(t)?o.get(t):ci}(e.constructor,t.constructor);try{return s(e=e.clone(),t,o)}catch(e){throw e}}function di(e,t,o){e=e.slice(),t=t.slice();const s=new ui(o.document,o.useRelations,o.forceWeakRemove);s.setOriginalOperations(e),s.setOriginalOperations(t);const i=s.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:i};const n=new WeakMap;for(const t of e)n.set(t,0);const r={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length};let a=0;for(;a<e.length;){const o=e[a],i=n.get(o);if(i==t.length){a++;continue}const r=t[i],c=li(o,r,s.getContext(o,r,!0)),l=li(r,o,s.getContext(r,o,!1));s.updateRelation(o,r),s.setOriginalOperations(c,o),s.setOriginalOperations(l,r);for(const e of c)n.set(e,i+l.length);e.splice(a,1,...c),t.splice(i,1,...l)}if(mi(e),mi(t),o.padWithNoOps){const o=e.length-r.originalOperationsACount,s=t.length-r.originalOperationsBCount;pi(e,s-o),pi(t,o-s)}return hi(e,r.nextBaseVersionB),hi(t,r.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:i}}class ui{originalOperations;_history;_useRelations;_forceWeakRemove;_relations;constructor(e,t,o=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!o,this._relations=new Map}setOriginalOperations(e,t=null){const o=t?this.originalOperations.get(t):null;for(const t of e)this.originalOperations.set(t,o||t)}updateRelation(e,t){if(e instanceof Us)t instanceof Gs?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"):e.howMany>1&&e.sourcePosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"firstToMoveMerged"):e.howMany>1&&e.sourcePosition.getShiftedBy(e.howMany-1).isEqual(t.deletionPosition)&&this._setRelation(e,t,"lastToMoveMerged"):t instanceof Us&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof Ys){if(t instanceof Gs)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof Us)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{const o=to._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.splitPosition)){const s=o.end.offset-e.splitPosition.offset,i=e.splitPosition.offset-o.start.offset;this._setRelation(e,t,{howMany:s,offset:i})}}}else if(e instanceof Gs)t instanceof Gs?(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 Ys?e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource"):t instanceof Us&&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 Js){const o=e.newRange;if(!o)return;if(t instanceof Gs){const s=o.start.isEqual(t.targetPosition),i=o.start.isEqual(t.deletionPosition),n=o.end.isEqual(t.deletionPosition),r=o.end.isEqual(t.sourcePosition);(s||i||n||r)&&this._setRelation(e,t,{wasInLeftElement:s,wasStartBeforeMergedElement:i,wasEndBeforeMergedElement:n,wasInRightElement:r})}}}getContext(e,t,o){return{aIsStrong:o,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){const t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){const o=this.originalOperations.get(t),s=this._history.getUndoneOperation(o);if(!s)return null;const i=this.originalOperations.get(e),n=this._relations.get(i);return n&&n.get(s)||null}_setRelation(e,t,o){const s=this.originalOperations.get(e),i=this.originalOperations.get(t);let n=this._relations.get(s);n||(n=new Map,this._relations.set(s,n)),n.set(i,o)}}function hi(e,t){for(const o of e)o.baseVersion=t++}function pi(e,t){for(let o=0;o<t;o++)e.push(new ei(0))}function mi(e){const t=new Map;for(let o=0;o<e.length;o++){const s=e[o];s instanceof Js&&(-1!==s.baseVersion?t.set(s.name,{op:s,ranges:s.newRange?[s.newRange]:[]}):(s.newRange&&t.get(s.name).ranges.push(s.newRange),e.splice(o,1),o--))}for(const{op:e,ranges:o}of t.values())o.length?e.newRange=to._createFromRanges(o):e.newRange=null}function gi(e,t,o){const s=e.nodes.getNode(0).getAttribute(t);if(s==o)return null;const i=new to(e.position,e.position.getShiftedBy(e.howMany));return new Qs(i,t,s,o,0)}function fi(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function _i(e,t){const o=[];for(let s=0;s<e.length;s++){const i=e[s],n=new Us(i.start,i.end.offset-i.start.offset,t,0);o.push(n);for(let t=s+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany)[0];t=t._getTransformedByMove(n.sourcePosition,n.targetPosition,n.howMany)}return o}ai(Qs,Qs,(e,t,o)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){const s=e.range.getDifference(t.range).map(t=>new Qs(t,e.key,e.oldValue,e.newValue,0)),i=e.range.getIntersection(t.range);return i&&o.aIsStrong&&s.push(new Qs(i,t.key,t.newValue,e.newValue,0)),0==s.length?[new ei(0)]:s}return[e]}),ai(Qs,Ks,(e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){const o=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(t=>new Qs(t,e.key,e.oldValue,e.newValue,e.baseVersion));if(t.shouldReceiveAttributes){const s=gi(t,e.key,e.oldValue);s&&o.unshift(s)}return o}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]}),ai(Qs,Gs,(e,t)=>{const o=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&o.push(to._createFromPositionAndShift(t.graveyardPosition,1));const s=e.range._getTransformedByMergeOperation(t);return s.isCollapsed||o.push(s),o.map(t=>new Qs(t,e.key,e.oldValue,e.newValue,e.baseVersion))}),ai(Qs,Us,(e,t)=>function(e,t){const o=to._createFromPositionAndShift(t.sourcePosition,t.howMany);let s=null,i=[];o.containsRange(e,!0)?s=e:e.start.hasSameParentAs(o.start)?(i=e.getDifference(o),s=e.getIntersection(o)):i=[e];const n=[];for(let e of i){e=e._getTransformedByDeletion(t.sourcePosition,t.howMany);const o=t.getMovedRangeStart(),s=e.start.hasSameParentAs(o),i=e._getTransformedByInsertion(o,t.howMany,s);n.push(...i)}s&&n.push(s._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]);return n}(e.range,t).map(t=>new Qs(t,e.key,e.oldValue,e.newValue,e.baseVersion))),ai(Qs,Ys,(e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){const o=e.clone();return o.range=new to(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,o]}return e.range=e.range._getTransformedBySplitOperation(t),[e]}),ai(Ks,Qs,(e,t)=>{const o=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){const s=gi(e,t.key,t.newValue);s&&o.push(s)}return o}),ai(Ks,Ks,(e,t,o)=>(e.position.isEqual(t.position)&&o.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e])),ai(Ks,Us,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),ai(Ks,Ys,(e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e])),ai(Ks,Gs,(e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e])),ai(Js,Ks,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e])),ai(Js,Js,(e,t,o)=>{if(e.name==t.name){if(!o.aIsStrong)return[new ei(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]}),ai(Js,Gs,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e])),ai(Js,Us,(e,t)=>{const o=[e];if(e.oldRange&&(e.oldRange=to._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){const s=e.newRange._getTransformedByMoveOperation(t);e.newRange=s[0];for(let t=1;t<s.length;t++){const i=e.clone();i.oldRange=null,i.newRange=s[t],i.baseVersion=-1,o.push(i)}}return o}),ai(Js,Ys,(e,t,o)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(o.abRelation){const s=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)?o.abRelation.wasStartBeforeMergedElement?e.newRange.start=Gt._createAt(t.insertionPosition):o.abRelation.wasInLeftElement?e.newRange.start=Gt._createAt(e.newRange.start):e.newRange.start=Gt._createAt(t.moveTargetPosition):e.newRange.start=s.start,e.newRange.end.isEqual(t.splitPosition)?e.newRange.end.isEqual(t.splitPosition)&&o.abRelation.wasEndBeforeMergedElement?e.newRange.end=Gt._createAt(t.insertionPosition):o.abRelation.wasInRightElement?e.newRange.end=Gt._createAt(t.moveTargetPosition):e.newRange.end=Gt._createAt(e.newRange.end):e.newRange.end=s.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]}),ai(Gs,Ks,(e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e])),ai(Gs,Gs,(e,t,o)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(o.bWasUndone){const o=t.graveyardPosition.path.slice();return o.push(0),e.sourcePosition=new Gt(t.graveyardPosition.root,o),e.howMany=0,[e]}return[new ei(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!o.bWasUndone&&"splitAtSource"!=o.abRelation){const s="$graveyard"==e.targetPosition.root.rootName,i="$graveyard"==t.targetPosition.root.rootName;if(i&&!s||!(s&&!i)&&o.aIsStrong){const o=t.targetPosition._getTransformedByMergeOperation(t),s=e.targetPosition._getTransformedByMergeOperation(t);return[new Us(o,e.howMany,s,0)]}return[new ei(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&o.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),ai(Gs,Us,(e,t,o)=>{const s=to._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!o.bWasUndone&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&s.containsPosition(e.sourcePosition)?[new ei(0)]:(t.sourcePosition.getShiftedBy(t.howMany).isEqual(e.sourcePosition)?e.sourcePosition.stickiness="toNone":t.targetPosition.isEqual(e.sourcePosition)&&"mergeSourceAffected"==o.abRelation?e.sourcePosition.stickiness="toNext":t.sourcePosition.isEqual(e.targetPosition)?(e.targetPosition.stickiness="toNone",e.howMany-=t.howMany):t.targetPosition.isEqual(e.targetPosition)&&"mergeTargetWasBefore"==o.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])}),ai(Gs,Ys,(e,t,o)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){if(t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition)||"mergeTargetNotMoved"==o.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==o.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==o.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}),ai(Us,Ks,(e,t)=>{const o=to._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=o.start,e.howMany=o.end.offset-o.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]}),ai(Us,Us,(e,t,o)=>{const s=to._createFromPositionAndShift(e.sourcePosition,e.howMany),i=to._createFromPositionAndShift(t.sourcePosition,t.howMany);let n,r=o.aIsStrong,a=!o.aIsStrong;if("insertBefore"==o.abRelation||"insertAfter"==o.baRelation?a=!0:"insertAfter"!=o.abRelation&&"insertBefore"!=o.baRelation||(a=!1),n=e.targetPosition.isEqual(t.targetPosition)&&a?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),fi(e,t)&&fi(t,e))return[t.getReversed()];if(s.containsPosition(t.targetPosition)&&s.containsRange(i,!0))return s.start=s.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),s.end=s.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),_i([s],n);if(i.containsPosition(e.targetPosition)&&i.containsRange(s,!0))return s.start=s.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),s.end=s.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),_i([s],n);const c=(0,g.ww)(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return s.start=s.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),s.end=s.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),_i([s],n);"remove"!=e.type||"remove"==t.type||o.aWasUndone||o.forceWeakRemove?"remove"==e.type||"remove"!=t.type||o.bWasUndone||o.forceWeakRemove||(r=!1):r=!0;const l=[],d=s.getDifference(i);for(const e of d){e.start=e.start._getTransformedByDeletion(t.sourcePosition,t.howMany),e.end=e.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const o="same"==(0,g.ww)(e.start.getParentPath(),t.getMovedRangeStart().getParentPath()),s=e._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,o);l.push(...s)}const u=s.getIntersection(i);return null!==u&&r&&(u.start=u.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),u.end=u.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===l.length?l.push(u):1==l.length?i.start.isBefore(s.start)||i.start.isEqual(s.start)?l.unshift(u):l.push(u):l.splice(1,0,u)),0===l.length?[new ei(e.baseVersion)]:_i(l,n)}),ai(Us,Ys,(e,t,o)=>{let s=e.targetPosition.clone();if(e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=o.abRelation||(s=e.targetPosition._getTransformedBySplitOperation(t)),e.sourcePosition.isEqual(t.insertionPosition)&&"firstToMoveMerged"==o.abRelation)return e.howMany++,e.targetPosition=s,[e];const i=to._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition&&"lastToMoveMerged"!=o.abRelation||e.howMany++,e.targetPosition=s,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){let e=new to(t.splitPosition,i.end);e=e._getTransformedBySplitOperation(t);return _i([new to(i.start,t.splitPosition),e],s)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==o.abRelation&&(s=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==o.abRelation&&(s=e.targetPosition);const n=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!o.aWasUndone&&n.push(to._createFromPositionAndShift(t.insertionPosition,1))}return _i(n,s)}),ai(Us,Gs,(e,t,o)=>{const s=to._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&s.containsPosition(t.sourcePosition))if("remove"!=e.type||o.forceWeakRemove){if(1==e.howMany)return o.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new ei(0)]}else if(!o.aWasUndone){const o=[];let s=t.graveyardPosition.clone(),i=t.targetPosition._getTransformedByMergeOperation(t);const n=e.targetPosition.getTransformedByOperation(t);e.howMany>1&&(o.push(new Us(e.sourcePosition,e.howMany-1,n,0)),s=s._getTransformedByMove(e.sourcePosition,n,e.howMany-1),i=i._getTransformedByMove(e.sourcePosition,n,e.howMany-1));const r=t.deletionPosition._getCombined(e.sourcePosition,n),a=new Us(s,1,r,0),c=a.getMovedRangeStart().path.slice();c.push(0);const l=new Gt(a.targetPosition.root,c);i=i._getTransformedByMove(s,r,1);const d=new Us(i,t.howMany,l,0);return o.push(a),o.push(d),o}const i=to._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=i.start,e.howMany=i.end.offset-i.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]}),ai(ti,Ks,(e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e])),ai(ti,Gs,(e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])),ai(ti,Us,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),ai(ti,ti,(e,t,o)=>{if(e.position.isEqual(t.position)){if(!o.aIsStrong)return[new ei(0)];e.oldName=t.newName}return[e]}),ai(ti,Ys,(e,t)=>{const o=e.position.path,s=t.splitPosition.getParentPath();if("same"==(0,g.ww)(o,s)&&!t.graveyardPosition){const t=new ti(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]}),ai(oi,oi,(e,t,o)=>{if(e.root===t.root&&e.key===t.key){if(!o.aIsStrong)return[new ei(0)];e.oldValue=t.newValue}return[e]}),ai(si,si,(e,t)=>e.rootName===t.rootName&&e.isAdd===t.isAdd?[new ei(0)]:[e]),ai(Ys,Ks,(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])),ai(Ys,Gs,(e,t,o)=>{if(!e.graveyardPosition&&!o.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){const o=t.graveyardPosition.path.slice();o.push(0);const s=new Gt(t.graveyardPosition.root,o),i=Ys.getInsertionPosition(new Gt(t.graveyardPosition.root,o)),n=new Ys(s,0,i,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Ys.getInsertionPosition(e.splitPosition),e.graveyardPosition=n.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[n,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=Ys.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),ai(Ys,Us,(e,t,o)=>{const s=to._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){const i=s.start.isEqual(e.graveyardPosition)||s.containsPosition(e.graveyardPosition);if(!o.bWasUndone&&i){const o=e.splitPosition._getTransformedByMoveOperation(t),s=e.graveyardPosition._getTransformedByMoveOperation(t),i=s.path.slice();i.push(0);const n=new Gt(s.root,i);return[new Us(o,e.howMany,n,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}const i=e.splitPosition.isEqual(t.targetPosition);if(i&&("insertAtSource"==o.baRelation||"splitBefore"==o.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Ys.getInsertionPosition(e.splitPosition),[e];if(i&&o.abRelation&&o.abRelation.howMany){const{howMany:t,offset:s}=o.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(s),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&s.containsPosition(e.splitPosition)){const o=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=o,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Ys.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=Ys.getInsertionPosition(e.splitPosition),[e]}),ai(Ys,Ys,(e,t,o)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new ei(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new ei(0)];if("splitBefore"==o.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){const s="$graveyard"==e.splitPosition.root.rootName,i="$graveyard"==t.splitPosition.root.rootName;if(i&&!s||!(s&&!i)&&o.aIsStrong){const o=[];return t.howMany&&o.push(new Us(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&o.push(new Us(e.splitPosition,e.howMany,e.moveTargetPosition,0)),o}return[new ei(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==o.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==o.baRelation){const o=t.insertionPosition.path.slice();o.push(0);const s=new Gt(t.insertionPosition.root,o);return[e,new Us(e.insertionPosition,1,s,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Ys.getInsertionPosition(e.splitPosition),[e]});class bi extends((0,g.Mm)(Gt)){constructor(e,t,o="toNone"){if(super(e,t,o),!this.root.is("rootElement"))throw new g.Yb("model-liveposition-root-not-rootelement",e);wi.call(this)}detach(){this.stopListening()}toPosition(){return new Gt(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function wi(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&ki.call(this,o)},{priority:"low"})}function ki(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)}}bi.prototype.is=function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e};class vi{operations;isUndoable;isLocal;isUndo;isTyping;constructor(e={}){"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},(0,g.FF)("batch-constructor-deprecated-string-type"));const{isUndoable:t=!0,isLocal:o=!0,isUndo:s=!1,isTyping:i=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=o,this.isUndo=s,this.isTyping=i}get baseVersion(){for(const e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.isDocumentOperation&&(e.batch=this,this.operations.push(e)),e}}class yi{static _statesPriority=[void 0,"refresh","rename","move"];_markerCollection;_changesInElement=new Map;_elementsSnapshots=new Map;_elementChildrenSnapshots=new Map;_elementState=new Map;_changedMarkers=new Map;_changedRoots=new Map;_changeCount=0;_cachedChanges=null;_cachedChangesWithGraveyard=null;_refreshedItems=new Set;constructor(e){this._markerCollection=e}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(e){const t=e;switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const e of t.range.getItems({shallow:!0}))this._isInInsertedElement(e.parent)||this._markAttribute(e);break;case"remove":case"move":case"reinsert":{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;const e=this._isInInsertedElement(t.sourcePosition.parent),o=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),o||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);const s=to._createFromPositionAndShift(t.sourcePosition,t.howMany);for(const e of s.getItems({shallow:!0}))this._setElementState(e,"move");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=to._createFromPositionAndShift(t.position,1);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}this._setElementState(t.position.nodeAfter,"rename");break}case"split":{const e=t.splitPosition.parent;if(!this._isInInsertedElement(e)){this._markRemove(e,t.splitPosition.offset,t.howMany);const o=to._createFromPositionAndShift(t.splitPosition,t.howMany);for(const e of o.getItems({shallow:!0}))this._setElementState(e,"move")}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),this._setElementState(t.graveyardPosition.nodeAfter,"move"));break}case"merge":{const e=t.sourcePosition.parent;this._isInInsertedElement(e.parent)||this._markRemove(e.parent,e.startOffset,1);const o=t.graveyardPosition.parent;this._markInsert(o,t.graveyardPosition.offset,1),this._setElementState(e,"move");const s=t.targetPosition.parent;if(!this._isInInsertedElement(s)){this._markInsert(s,t.targetPosition.offset,e.maxOffset);const o=to._createFromPositionAndShift(t.sourcePosition,t.howMany);for(const e of o.getItems({shallow:!0}))this._setElementState(e,"move")}break}case"detachRoot":case"addRoot":{const e=t.affectedSelectable;if(!e._isLoaded)return;if(e.isAttached()==t.isAdd)return;this._bufferRootStateChange(t.rootName,t.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!t.root._isLoaded)return;const e=t.root.rootName;this._bufferRootAttributeChange(e,t.key,t.oldValue,t.newValue);break}}this._cachedChanges=null}bufferMarkerChange(e,t,o){t.range&&t.range.root.is("rootElement")&&!t.range.root._isLoaded&&(t.range=null),o.range&&o.range.root.is("rootElement")&&!o.range.root._isLoaded&&(o.range=null);let s=this._changedMarkers.get(e);s?s.newMarkerData=o:(s={newMarkerData:o,oldMarkerData:t},this._changedMarkers.set(e,s)),null==s.oldMarkerData.range&&null==o.range&&this._changedMarkers.delete(e)}getMarkersToRemove(){const e=[];for(const[t,o]of this._changedMarkers)null!=o.oldMarkerData.range&&e.push({name:t,range:o.oldMarkerData.range});return e}getMarkersToAdd(){const e=[];for(const[t,o]of this._changedMarkers)null!=o.newMarkerData.range&&e.push({name:t,range:o.newMarkerData.range});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map(([e,t])=>({name:e,data:{oldRange:t.oldMarkerData.range,newRange:t.newMarkerData.range}}))}hasDataChanges(){if(this.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 o=e.range&&!t.range,s=!e.range&&t.range,i=e.range&&t.range&&!e.range.isEqual(t.range);if(o||s||i)return!0}}return!1}getChanges(e={}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(const e of this._changesInElement.keys()){const o=this._changesInElement.get(e).sort((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1),s=this._elementChildrenSnapshots.get(e),i=Ai(e.getChildren()),n=Ci(s.length,o);let r=0,a=0;for(const o of n)if("i"===o){const o=this._getDiffActionForNode(i[r].node,"insert"),s=this._elementsSnapshots.get(i[r].node),n=this._getInsertDiff(e,r,o,i[r],s);t.push(n),r++}else if("r"===o){const o=this._getDiffActionForNode(s[a].node,"remove"),i=this._getRemoveDiff(e,r,o,s[a]);t.push(i),a++}else if("a"===o){const o=s[a].attributes,n=i[r].attributes;let c;if("$text"==i[r].name)c=new to(Gt._createAt(e,r),Gt._createAt(e,r+1));else{const t=e.offsetToIndex(r);c=new to(Gt._createAt(e,r),Gt._createAt(e.getChild(t),0))}const l=this._getAttributesDiff(c,o,n);t.push(...l),r++,a++}else r++,a++}t.sort((e,t)=>e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1);for(let e=1,o=0;e<t.length;e++){const s=t[o],i=t[e],n="remove"==s.type&&"remove"==i.type&&"$text"==s.name&&"$text"==i.name&&s.position.isEqual(i.position),r="insert"==s.type&&"insert"==i.type&&"$text"==s.name&&"$text"==i.name&&s.position.parent==i.position.parent&&s.position.offset+s.length==i.position.offset,a="attribute"==s.type&&"attribute"==i.type&&s.position.parent==i.position.parent&&s.range.isFlat&&i.range.isFlat&&s.position.offset+s.length==i.position.offset&&s.attributeKey==i.attributeKey&&s.attributeOldValue==i.attributeOldValue&&s.attributeNewValue==i.attributeNewValue;n||r||a?(s.length++,a&&(s.range.end=s.range.end.getShiftedBy(1)),t[e]=null):o=e}t=t.filter(e=>e);for(const e of t)delete e.changeCount,"attribute"==e.type&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t,this._cachedChanges=t.filter(Ei),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._elementChildrenSnapshots.clear(),this._elementsSnapshots.clear(),this._elementState.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems.clear(),this._cachedChanges=null}_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),this._setElementState(e,"refresh");const t=to._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)}}}_bufferRootStateChange(e,t){if(!this._changedRoots.has(e))return void this._changedRoots.set(e,{name:e,state:t?"attached":"detached"});const o=this._changedRoots.get(e);void 0!==o.state?(delete o.state,void 0===o.attributes&&this._changedRoots.delete(e)):o.state=t?"attached":"detached"}_bufferRootAttributeChange(e,t,o,s){const i=this._changedRoots.get(e)||{name:e},n=i.attributes||{};if(n[t]){const e=n[t];s===e.oldValue?delete n[t]:e.newValue=s}else n[t]={oldValue:o,newValue:s};0===Object.entries(n).length?(delete i.attributes,void 0===i.state&&this._changedRoots.delete(e)):(i.attributes=n,this._changedRoots.set(e,i))}_markInsert(e,t,o){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const s={type:"insert",offset:t,howMany:o,count:this._changeCount++};this._markChange(e,s)}_markRemove(e,t,o){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const s={type:"remove",offset:t,howMany:o,count:this._changeCount++};this._markChange(e,s),this._removeAllNestedChanges(e,t,o)}_markAttribute(e){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshots(e);const o=this._getChangesForElement(e);this._handleChange(t,o),o.push(t);for(let e=0;e<o.length;e++)o[e].howMany<1&&(o.splice(e,1),e--)}_setElementState(e,t){if(!e.is("element"))return;const o=yi._statesPriority.indexOf(this._elementState.get(e));yi._statesPriority.indexOf(t)>o&&this._elementState.set(e,t)}_getDiffActionForNode(e,t){if(!e.is("element"))return t;if(!this._elementsSnapshots.has(e))return t;const o=this._elementState.get(e);return o&&"move"!=o?o:t}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshots(e){if(this._elementChildrenSnapshots.has(e))return;const t=Ai(e.getChildren());this._elementChildrenSnapshots.set(e,t);for(const e of t)this._elementsSnapshots.set(e.node,e)}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const o of t){const s=e.offset+e.howMany,i=o.offset+o.howMany;if("insert"==e.type&&("insert"==o.type&&(e.offset<=o.offset?o.offset+=e.howMany:e.offset<i&&(o.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==o.type&&e.offset<o.offset&&(o.offset+=e.howMany),"attribute"==o.type))if(e.offset<=o.offset)o.offset+=e.howMany;else if(e.offset<i){const i=o.howMany;o.howMany=e.offset-o.offset,t.unshift({type:"attribute",offset:s,howMany:i-o.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==o.type)if(s<=o.offset)o.offset-=e.howMany;else if(s<=i)if(e.offset<o.offset){const t=s-o.offset;o.offset=e.offset,o.howMany-=t,e.nodesToHandle-=t}else o.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=o.offset)e.nodesToHandle-=o.howMany,o.howMany=0;else if(e.offset<i){const t=i-e.offset;o.howMany-=t,e.nodesToHandle-=t}if("remove"==o.type&&(s<=o.offset?o.offset-=e.howMany:e.offset<o.offset&&(e.nodesToHandle+=o.howMany,o.howMany=0)),"attribute"==o.type)if(s<=o.offset)o.offset-=e.howMany;else if(e.offset<o.offset){const t=s-o.offset;o.offset=e.offset,o.howMany-=t}else if(e.offset<i)if(s<=i){const s=o.howMany;o.howMany=e.offset-o.offset;const i=s-o.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:i,count:this._changeCount++})}else o.howMany-=i-e.offset}if("attribute"==e.type){if("insert"==o.type)if(e.offset<o.offset&&s>o.offset){if(s>i){const e={type:"attribute",offset:i,howMany:s-i,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=o.offset&&e.offset<i&&(s>i?(e.nodesToHandle=s-i,e.offset=i):e.nodesToHandle=0);if("remove"==o.type&&e.offset<o.offset&&s>o.offset){const i={type:"attribute",offset:o.offset,howMany:s-o.offset,count:this._changeCount++};this._handleChange(i,t),t.push(i),e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==o.type&&(e.offset>=o.offset&&s<=i?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=o.offset&&s>=i&&(o.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,o,s,i){const n={type:"insert",position:Gt._createAt(e,t),name:s.name,attributes:new Map(s.attributes),length:1,changeCount:this._changeCount++,action:o};return"insert"!=o&&i&&(n.before={name:i.name,attributes:new Map(i.attributes)}),n}_getRemoveDiff(e,t,o,s){return{type:"remove",action:o,position:Gt._createAt(e,t),name:s.name,attributes:new Map(s.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,o){const s=[];o=new Map(o);for(const[i,n]of t){const t=o.has(i)?o.get(i):null;t!==n&&s.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:i,attributeOldValue:n,attributeNewValue:t,changeCount:this._changeCount++}),o.delete(i)}for(const[t,i]of o)s.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return s}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const o=this._changesInElement.get(t),s=e.startOffset;if(o)for(const e of o)if("insert"==e.type&&s>=e.offset&&s<e.offset+e.howMany)return!0;return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,o){const s=new to(Gt._createAt(e,t),Gt._createAt(e,t+o));for(const e of s.getItems({shallow:!0}))e.is("element")&&(this._changesInElement.delete(e),this._removeAllNestedChanges(e,0,e.maxOffset))}}function xi(e){return{node:e,name:e.is("$text")?"$text":e.name,attributes:new Map(e.getAttributes())}}function Ai(e){const t=[];for(const o of e)if(o.is("$text"))for(let e=0;e<o.data.length;++e)t.push(xi(o));else t.push(xi(o));return t}function Ci(e,t){const o=[];let s=0,i=0;for(const e of t){if(e.offset>s){for(let t=0;t<e.offset-s;t++)o.push("e");i+=e.offset-s}if("insert"==e.type){for(let t=0;t<e.howMany;t++)o.push("i");s=e.offset+e.howMany}else if("remove"==e.type){for(let t=0;t<e.howMany;t++)o.push("r");s=e.offset,i+=e.howMany}else{if(e.howMany>1500)for(let t=0;t<e.howMany;t++)o.push("a");else o.push(..."a".repeat(e.howMany).split(""));s=e.offset+e.howMany,i+=e.howMany}}if(i<e)for(let t=0;t<e-i-s;t++)o.push("e");return o}function Ei(e){const t="position"in e&&"$graveyard"==e.position.root.rootName,o="range"in e&&"$graveyard"==e.range.root.rootName;return!t&&!o}class Si{_operations=[];_undoPairs=new Map;_undoneOperations=new Set;_baseVersionToOperationIndex=new Map;_version=0;_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 g.Yb("model-document-history-addoperation-incorrect-version",this,{operation:e,historyVersion:this.version});this._operations.push(e),this._version++,this._baseVersionToOperationIndex.set(e.baseVersion,this._operations.length-1)}getOperations(e,t=this.version){if(!this._operations.length)return[];const o=this._operations[0];void 0===e&&(e=o.baseVersion);let s=t-1;for(const[t,o]of this._gaps)e>t&&e<o&&(e=o),s>t&&s<o&&(s=t-1);if(s<o.baseVersion||e>this.lastOperation.baseVersion)return[];let i=this._baseVersionToOperationIndex.get(e);void 0===i&&(i=0);let n=this._baseVersionToOperationIndex.get(s);return void 0===n&&(n=this._operations.length-1),this._operations.slice(i,n+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 Ti extends So{rootName;_document;_isAttached=!0;_isLoaded=!0;constructor(e,t,o="main"){super(t),this._document=e,this.rootName=o}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Ti.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e};var Pi=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs");var Mi=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs");function Vi(e){if((0,Pi.s)(e))return e;const t=(0,Et.b)(e);if(!function(e){switch((0,Et.b)(e)){case St.R_:case St.Uw:case St.cT:case St.iq:case St.$V:case St.vC:case St.ri:case St.ML:case St.XZ:case St.i1:case St._u:case St.pj:case St.kj:case St.GX:case St.Av:case St.NA:case St.OG:case St.VP:case St.Qb:case St.q:case St.x6:case St.ZR:return!0;default:return!1}}(e))return{};if(o=e,Array.isArray(o)){const t=Array.from(e);return e.length>0&&"string"==typeof e[0]&&Object.hasOwn(e,"index")&&(t.index=e.index,t.input=e.input),t}var o;if((0,Mi.i)(e)){const t=e;return new(0,t.constructor)(t.buffer,t.byteOffset,t.length)}if(t===St.cT)return new ArrayBuffer(e.byteLength);if(t===St.iq){const t=e,o=t.buffer,s=t.byteOffset,i=t.byteLength,n=new ArrayBuffer(i),r=new Uint8Array(o,s,i);return new Uint8Array(n).set(r),new DataView(n)}if(t===St.$V||t===St.kj||t===St.OG){const o=new(0,e.constructor)(e.valueOf());return t===St.OG?function(e,t){const o=t.valueOf().length;for(const s in t)Object.hasOwn(t,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=t[s])}(o,e):Oi(o,e),o}if(t===St.vC)return new Date(Number(e));if(t===St.Av){const t=e,o=new RegExp(t.source,t.flags);return o.lastIndex=t.lastIndex,o}if(t===St.VP)return Object(Symbol.prototype.valueOf.call(e));if(t===St.pj){const t=e,o=new Map;return t.forEach((e,t)=>{o.set(t,e)}),o}if(t===St.NA){const t=e,o=new Set;return t.forEach(e=>{o.add(e)}),o}if(t===St.R_){const t=e,o={};return Oi(o,t),o.length=t.length,o[Symbol.iterator]=t[Symbol.iterator],o}const s={};return function(e,t){const o=Object.getPrototypeOf(t);if(null!==o){"function"==typeof t.constructor&&Object.setPrototypeOf(e,o)}}(s,e),Oi(s,e),function(e,t){const o=Object.getOwnPropertySymbols(t);for(let s=0;s<o.length;s++){const i=o[s];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}(s,e),s}function Oi(e,t){for(const o in t)Object.hasOwn(t,o)&&(e[o]=t[o])}const Ii="$graveyard";class Ri extends((0,g.Mm)()){model;history;selection;roots;differ;isReadOnly;_postFixers;_hasSelectionChangedFromTheLastChangeBlock;constructor(e){super(),this.model=e,this.history=new Si,this.selection=new xo(this),this.roots=new g.pM({idProperty:"rootName"}),this.differ=new yi(e.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Ii),this.listenTo(e,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&this.differ.bufferOperation(o)},{priority:"high"}),this.listenTo(e,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&this.history.addOperation(o)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(e.markers,"update",(e,t,o,s,i)=>{const n={...t.getData(),range:s};this.differ.bufferMarkerChange(t.name,i,n),null===o&&t.on("change",(e,o)=>{const s=t.getData();this.differ.bufferMarkerChange(t.name,{...s,range:o},s)})}),this.registerPostFixer(e=>{let t=!1;for(const o of this.roots)o.isAttached()||o.isEmpty||(e.remove(e.createRangeIn(o)),t=!0);for(const o of this.model.markers)o.getRange().root.isAttached()||(e.removeMarker(o),t=!0);return t})}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(Ii)}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new g.Yb("model-document-createroot-name-exists",this,{name:t});const o=new Ti(this,e,t);return this.roots.add(o),o}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(e=!1){return this.getRoots(e).map(e=>e.rootName)}getRoots(e=!1){return this.roots.filter(t=>t!=this.graveyard&&(e||t.isAttached())&&t._isLoaded)}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=Vi(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const e=this.getRoots();return e.length?e[0]:this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot(),t=this.model,o=t.schema,s=t.createPositionFromPath(e,[0]);return o.getNearestSelectionRange(s)||t.createRange(s)}_validateSelectionRange(e){return e.start.isValid()&&e.end.isValid()&&ji(e.start)&&ji(e.end)}_callPostFixers(e){let t=!1;do{for(const o of this._postFixers)if(this.selection.refresh(),t=o(e),t)break}while(t)}}function ji(e){const t=e.textNode;if(t){const o=t.data,s=e.offset-t.startOffset;return!(0,g.P5)(o,s)&&!(0,g.Iw)(o,s)}return!0}class zi extends((0,g.Mm)()){_markers=new Map;[Symbol.iterator](){return this._markers.values()}has(e){const t=e instanceof Bi?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,o=!1,s=!1){const i=e instanceof Bi?e.name:e;if(i.includes(","))throw new g.Yb("markercollection-incorrect-marker-name",this);const n=this._markers.get(i);if(n){const e=n.getData(),r=n.getRange();let a=!1;return r.isEqual(t)||(n._attachLiveRange(bo.fromRange(t)),a=!0),o!=n.managedUsingOperations&&(n._managedUsingOperations=o,a=!0),"boolean"==typeof s&&s!=n.affectsData&&(n._affectsData=s,a=!0),a&&this.fire(`update:${i}`,n,r,t,e),n}const r=bo.fromRange(t),a=new Bi(i,r,o,s);return this._markers.set(i,a),this.fire(`update:${i}`,a,null,t,{...a.getData(),range:null}),a}_remove(e){const t=e instanceof Bi?e.name:e,o=this._markers.get(t);return!!o&&(this._markers.delete(t),this.fire(`update:${t}`,o,o.getRange(),null,o.getData()),this._destroyMarker(o),!0)}_refresh(e){const t=e instanceof Bi?e.name:e,o=this._markers.get(t);if(!o)throw new g.Yb("markercollection-refresh-marker-not-exists",this);const s=o.getRange();this.fire(`update:${t}`,o,s,s,o.getData())}*getMarkersAtPosition(e){for(const t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(const t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(const e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}class Bi extends((0,g.Mm)($t)){name;_managedUsingOperations;_affectsData;_liveRange;constructor(e,t,o,s){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=o,this._affectsData=s}get managedUsingOperations(){if(!this._liveRange)throw new g.Yb("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new g.Yb("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new g.Yb("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new g.Yb("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new g.Yb("marker-destroyed",this);return this._liveRange.toRange()}toJSON(){return{name:this.name,range:this._liveRange?.toJSON(),usingOperations:this._managedUsingOperations,affectsData:this._affectsData}}_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}}Bi.prototype.is=function(e){return"marker"===e||"model:marker"===e};class Ni extends Bs{sourcePosition;howMany;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 g.Yb("detach-operation-on-document-node",this)}_execute(){Ls(to._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Li extends $t{markers=new Map;_children=new Eo;constructor(e){super(),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)}getChildAtOffset(e){return this._children.getNodeAtOffset(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const o of e)t=t.getChildAtOffset(o);return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}static fromJSON(e){const t=[];for(const o of e)o.name?t.push(So.fromJSON(o)):t.push(vo.fromJSON(o));return new Li(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const o=function(e){if("string"==typeof e)return[new vo(e)];(0,g.xZ)(e)||(e=[e]);return Array.from(e).map(e=>"string"==typeof e?new vo(e):e instanceof Ut?new vo(e.data,e.getAttributes()):e)}(t);for(const e of o)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,o)}_removeChildren(e,t=1){const o=this._children._removeNodes(e,t);for(const e of o)e.parent=null;return o}_removeChildrenArray(e){this._children._removeNodesArray(e);for(const t of e)t.parent=null}}Li.prototype.is=function(e){return"documentFragment"===e||"model:documentFragment"===e};class Di{model;batch;constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new vo(e,t)}createElement(e,t){return new So(e,t)}createDocumentFragment(){return new Li}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,o=0){if(this._assertWriterUsedCorrectly(),e instanceof vo&&""==e.data)return;const s=Gt._createAt(t,o);if(e.parent){if($i(e.root,s.root))return void this.move(to._createOn(e),s);if(e.root.document)throw new g.Yb("model-writer-insert-forbidden-move",this);this.remove(e)}const i=s.root.document?s.root.document.version:null,n=e instanceof Li?e._removeChildren(0,e.childCount):e,r=new Ks(s,n,i);if(e instanceof vo&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof Li)for(const[t,o]of e.markers){const e=Gt._createAt(o.root,0),i={range:new to(o.start._getCombined(e,s),o.end._getCombined(e,s)),usingOperation:!0,affectsData:!0};this.model.markers.has(t)?this.updateMarker(t,i):this.addMarker(t,i)}}insertText(e,t,o,s){t instanceof Li||t instanceof So||t instanceof Gt?this.insert(this.createText(e),t,o):this.insert(this.createText(e,t),o,s)}insertElement(e,t,o,s){t instanceof Li||t instanceof So||t instanceof Gt?this.insert(this.createElement(e),t,o):this.insert(this.createElement(e,t),o,s)}append(e,t){this.insert(e,t,"end")}appendText(e,t,o){t instanceof Li||t instanceof So?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),o,"end")}appendElement(e,t,o){t instanceof Li||t instanceof So?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),o,"end")}setAttribute(e,t,o){if(this._assertWriterUsedCorrectly(),o instanceof to){const s=o.getMinimalFlatRanges();for(const o of s)Fi(this,e,t,o)}else Hi(this,e,t,o)}setAttributes(e,t){for(const[o,s]of(0,g.av)(e))this.setAttribute(o,s,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof to){const o=t.getMinimalFlatRanges();for(const t of o)Fi(this,e,null,t)}else Hi(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=e=>{for(const t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof to)for(const o of e.getItems())t(o);else t(e)}move(e,t,o){if(this._assertWriterUsedCorrectly(),!(e instanceof to))throw new g.Yb("writer-move-invalid-range",this);if(!e.isFlat)throw new g.Yb("writer-move-range-not-flat",this);const s=Gt._createAt(t,o);if(s.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!$i(e.root,s.root))throw new g.Yb("writer-move-different-document",this);const i=e.root.document?e.root.document.version:null,n=new Us(e.start,e.end.offset-e.start.offset,s,i);this.batch.addOperation(n),this.model.applyOperation(n)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof to?e:to._createOn(e)).getMinimalFlatRanges().reverse();for(const e of t)this._addOperationForAffectedMarkers("move",e),Wi(e.start,e.end.offset-e.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,o=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof So))throw new g.Yb("writer-merge-no-element-before",this);if(!(o instanceof So))throw new g.Yb("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,o){return this.model.createPositionFromPath(e,t,o)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(...e){return this.model.createSelection(...e)}_mergeDetached(e){const t=e.nodeBefore,o=e.nodeAfter;this.move(to._createIn(o),Gt._createAt(t,"end")),this.remove(o)}_merge(e){const t=Gt._createAt(e.nodeBefore,"end"),o=Gt._createAt(e.nodeAfter,0),s=e.root.document.graveyard,i=new Gt(s,[0]),n=e.root.document.version,r=new Gs(o,e.nodeAfter.maxOffset,t,i,n);this.batch.addOperation(r),this.model.applyOperation(r)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof So))throw new g.Yb("writer-rename-not-element-instance",this);const o=e.root.document?e.root.document.version:null,s=new ti(Gt._createBefore(e),e.name,t,o);this.batch.addOperation(s),this.model.applyOperation(s)}split(e,t){this._assertWriterUsedCorrectly();let o,s,i=e.parent;if(!i.parent)throw new g.Yb("writer-split-element-no-parent",this);if(t||(t=i.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new g.Yb("writer-split-invalid-limit-element",this);do{const t=i.root.document?i.root.document.version:null,n=i.maxOffset-e.offset,r=Ys.getInsertionPosition(e),a=new Ys(e,n,r,null,t);this.batch.addOperation(a),this.model.applyOperation(a),o||s||(o=i,s=e.parent.nextSibling),i=(e=this.createPositionAfter(e.parent)).parent}while(i!==t);return{position:e,range:new to(Gt._createAt(o,"end"),Gt._createAt(s,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new g.Yb("writer-wrap-range-not-flat",this);const o=t instanceof So?t:new So(t);if(o.childCount>0)throw new g.Yb("writer-wrap-element-not-empty",this);if(null!==o.parent)throw new g.Yb("writer-wrap-element-attached",this);this.insert(o,e.start);const s=new to(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(s,Gt._createAt(o,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new g.Yb("writer-unwrap-element-no-parent",this);this.move(to._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new g.Yb("writer-addmarker-no-usingoperation",this);const o=t.usingOperation,s=t.range,i=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new g.Yb("writer-addmarker-marker-exists",this);if(!s)throw new g.Yb("writer-addmarker-no-range",this);return o?(qi(this,e,null,s,i),this.model.markers.get(e)):this.model.markers._set(e,s,o,i)}updateMarker(e,t){this._assertWriterUsedCorrectly();const o="string"==typeof e?e:e.name,s=this.model.markers.get(o);if(!s)throw new g.Yb("writer-updatemarker-marker-not-exists",this);if(!t)return(0,g.FF)("writer-updatemarker-reconvert-using-editingcontroller",{markerName:o}),void this.model.markers._refresh(s);const i="boolean"==typeof t.usingOperation,n="boolean"==typeof t.affectsData,r=n?t.affectsData:s.affectsData;if(!i&&!t.range&&!n)throw new g.Yb("writer-updatemarker-wrong-options",this);const a=s.getRange(),c=t.range?t.range:a;i&&t.usingOperation!==s.managedUsingOperations?t.usingOperation?qi(this,o,null,c,r):(qi(this,o,a,null,r),this.model.markers._set(o,c,void 0,r)):s.managedUsingOperations?qi(this,o,a,c,r):this.model.markers._set(o,c,void 0,r)}removeMarker(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new g.Yb("writer-removemarker-no-marker",this);const o=this.model.markers.get(t);if(!o.managedUsingOperations)return void this.model.markers._remove(t);qi(this,t,o.getRange(),null,o.affectsData)}addRoot(e,t="$root"){this._assertWriterUsedCorrectly();const o=this.model.document.getRoot(e);if(o&&o.isAttached())throw new g.Yb("writer-addroot-root-exists",this);const s=this.model.document,i=new si(e,t,!0,s,s.version);return this.batch.addOperation(i),this.model.applyOperation(i),this.model.document.getRoot(e)}detachRoot(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?this.model.document.getRoot(e):e;if(!t||!t.isAttached())throw new g.Yb("writer-detachroot-no-root",this);for(const e of this.model.markers)e.getRange().root===t&&this.removeMarker(e);for(const e of t.getAttributeKeys())this.removeAttribute(e,t);this.remove(this.createRangeIn(t));const o=this.model.document,s=new si(t.rootName,t.name,!1,o,o.version);this.batch.addOperation(s),this.model.applyOperation(s)}setSelection(...e){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...e)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else for(const[t,o]of(0,g.av)(e))this._setSelectionAttribute(t,o)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(const t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const o=this.model.document.selection;if(o.isCollapsed&&o.anchor.parent.isEmpty){const s=xo._getStoreAttributeKey(e);this.setAttribute(s,t,o.anchor.parent)}o._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const o=xo._getStoreAttributeKey(e);this.removeAttribute(o,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new g.Yb("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(const o of this.model.markers){if(!o.managedUsingOperations)continue;const s=o.getRange();let i=!1;if("move"===e){const e=t;i=e.containsPosition(s.start)||e.start.isEqual(s.start)||e.containsPosition(s.end)||e.end.isEqual(s.end)}else{const e=t,o=e.nodeBefore,n=e.nodeAfter,r=s.start.parent==o&&s.start.isAtEnd,a=s.end.parent==n&&0==s.end.offset,c=s.end.nodeAfter==n,l=s.start.nodeAfter==n;i=r||a||c||l}i&&this.updateMarker(o.name,{range:s})}}}function Fi(e,t,o,s){const i=e.model,n=i.document;let r,a,c,l=s.start;for(const e of s.getWalker({shallow:!0}))c=e.item.getAttribute(t),r&&a!=c&&(a!=o&&d(),l=r),r=e.nextPosition,a=c;function d(){const s=new to(l,r),c=s.root.document?n.version:null,d=new Qs(s,t,a,o,c);e.batch.addOperation(d),i.applyOperation(d)}r instanceof Gt&&r!=l&&a!=o&&d()}function Hi(e,t,o,s){const i=e.model,n=i.document,r=s.getAttribute(t);let a,c;if(r!=o){if(s.root===s){const e=s.document?n.version:null;c=new oi(s,t,r,o,e)}else{a=new to(Gt._createBefore(s),e.createPositionAfter(s));const i=a.root.document?n.version:null;c=new Qs(a,t,r,o,i)}e.batch.addOperation(c),i.applyOperation(c)}}function qi(e,t,o,s,i){const n=e.model,r=n.document,a=new Js(t,o,s,n.markers,!!i,r.version);e.batch.addOperation(a),n.applyOperation(a)}function Wi(e,t,o,s){let i;if(e.root.document){const o=s.document,n=new Gt(o.graveyard,[0]);i=new Us(e,t,n,o.version)}else i=new Ni(e,t);o.addOperation(i),s.applyOperation(i)}function $i(e,t){return e===t||e instanceof Ti&&t instanceof Ti}function Ui(e){e.document.registerPostFixer(t=>function(e,t){const o=t.document.selection,s=t.schema,i=[];let n=!1;for(const e of o.getRanges()){const t=Ki(e,s);t&&!t.isEqual(e)?(i.push(t),n=!0):i.push(e)}n&&e.setSelection(Gi(i),{backward:o.isBackward});return!1}(t,e))}function Ki(e,t){return e.isCollapsed?function(e,t){const o=e.start,s=t.getNearestSelectionRange(o);if(!s){const e=o.getAncestors().reverse().find(e=>t.isObject(e));return e?to._createOn(e):null}if(!s.isCollapsed)return s;const i=s.start;if(o.isEqual(i))return null;return new to(i)}(e,t):function(e,t){const{start:o,end:s}=e,i=t.checkChild(o,"$text"),n=t.checkChild(s,"$text"),r=t.getLimitElement(o),a=t.getLimitElement(s);if(r===a){if(i&&n)return null;if(function(e,t,o){const s=e.nodeAfter&&!o.isLimit(e.nodeAfter)||o.checkChild(e,"$text"),i=t.nodeBefore&&!o.isLimit(t.nodeBefore)||o.checkChild(t,"$text");return s||i}(o,s,t)){const e=o.nodeAfter&&t.isSelectable(o.nodeAfter)?null:t.getNearestSelectionRange(o,"forward"),i=s.nodeBefore&&t.isSelectable(s.nodeBefore)?null:t.getNearestSelectionRange(s,"backward"),n=e?e.start:o,r=i?i.end:s;return new to(n,r)}}const c=r&&!r.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const e=o.nodeAfter&&s.nodeBefore&&o.nodeAfter.parent===s.nodeBefore.parent,i=c&&(!e||!Ji(o.nodeAfter,t)),n=l&&(!e||!Ji(s.nodeBefore,t));let d=o,u=s;return i&&(d=Gt._createBefore(Yi(r,t))),n&&(u=Gt._createAfter(Yi(a,t))),new to(d,u)}return null}(e,t)}function Yi(e,t){let o=e,s=o;for(;t.isLimit(s)&&s.parent;)o=s,s=s.parent;return o}function Gi(e){const t=[...e],o=new Set;let s=1;for(;s<t.length;){const e=t[s],i=t.slice(0,s);for(const[n,r]of i.entries())if(!o.has(n))if(e.isEqual(r))o.add(n);else if(e.isIntersecting(r)){o.add(n),o.add(s);const i=e.getJoined(r);t.push(i)}s++}return t.filter((e,t)=>!o.has(t))}function Ji(e,t){return e&&t.isSelectable(e)}function Zi(e,t,o={}){if(t.isCollapsed)return;const s=t.getFirstRange();if("$graveyard"==s.root.rootName)return;const i=e.schema;e.change(e=>{if(!o.doNotResetEntireContent&&function(e,t){const o=e.getLimitElement(t);if(!t.containsEntireContent(o))return!1;const s=t.getFirstRange();if(s.start.parent==s.end.parent)return!1;return e.checkChild(o,"paragraph")}(i,t))return void function(e,t){const o=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(o)),tn(e,e.createPositionAt(o,0),t)}(e,t);const n={};if(!o.doNotAutoparagraph){const e=t.getSelectedElement();e&&Object.assign(n,i.getAttributesWithProperty(e,"copyOnReplace",!0))}let r,a;o.doNotFixSelection?(r=bi.fromPosition(s.start,"toPrevious"),a=bi.fromPosition(s.end,"toNext")):[r,a]=function(e){const t=e.root.document.model,o=e.start;let s=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){const o=function(e){const t=e.parent,o=t.root.document.model.schema,s=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const e of s){if(o.isLimit(e))return null;if(o.isBlock(e))return e}}(s);if(o&&s.isTouching(t.createPositionAt(o,0))){const o=t.createSelection(e);t.modifySelection(o,{direction:"backward"});const i=o.getLastPosition(),n=t.createRange(i,s);t.hasContent(n,{ignoreMarkers:!0})||(s=i)}}return[bi.fromPosition(o,"toPrevious"),bi.fromPosition(s,"toNext")]}(s),r.isTouching(a)||e.remove(e.createRange(r,a)),o.leaveUnmerged||(!function(e,t,o){const s=e.model;if(!en(e.model.schema,t,o))return;const[i,n]=function(e,t){const o=e.getAncestors(),s=t.getAncestors();let i=0;for(;o[i]&&o[i]==s[i];)i++;return[o[i],s[i]]}(t,o);if(!i||!n)return;!s.hasContent(i,{ignoreMarkers:!0})&&s.hasContent(n,{ignoreMarkers:!0})?Qi(e,t,o,i.parent):Xi(e,t,o,i.parent)}(e,r,a),i.removeDisallowedAttributes(r.parent.getChildren(),e)),on(e,t,r),!o.doNotAutoparagraph&&function(e,t){const o=e.checkChild(t,"$text"),s=e.checkChild(t,"paragraph");return!o&&s}(i,r)&&tn(e,r,t,n),r.detach(),a.detach()})}function Xi(e,t,o,s){const i=t.parent,n=o.parent;if(i!=s&&n!=s){for(t=e.createPositionAfter(i),(o=e.createPositionBefore(n)).isEqual(t)||e.insert(n,t),e.merge(t);o.parent.isEmpty;){const t=o.parent;o=e.createPositionBefore(t),e.remove(t)}en(e.model.schema,t,o)&&Xi(e,t,o,s)}}function Qi(e,t,o,s){const i=t.parent,n=o.parent;if(i!=s&&n!=s){for(t=e.createPositionAfter(i),(o=e.createPositionBefore(n)).isEqual(t)||e.insert(i,o);t.parent.isEmpty;){const o=t.parent;t=e.createPositionBefore(o),e.remove(o)}o=e.createPositionBefore(n),function(e,t){const o=t.nodeBefore,s=t.nodeAfter;o.name!=s.name&&e.rename(o,s.name);e.clearAttributes(o),e.setAttributes(Object.fromEntries(s.getAttributes()),o),e.merge(t)}(e,o),en(e.model.schema,t,o)&&Qi(e,t,o,s)}}function en(e,t,o){const s=t.parent,i=o.parent;return s!=i&&(!e.isLimit(s)&&!e.isLimit(i)&&function(e,t,o){const s=new to(e,t);for(const e of s.getWalker())if(o.isLimit(e.item))return!1;return!0}(t,o,e))}function tn(e,t,o,s={}){const i=e.createElement("paragraph");e.model.schema.setAllowedAttributes(i,s,e),e.insert(i,t),on(e,o,e.createPositionAt(i,0))}function on(e,t,o){t instanceof xo?e.setSelection(o):t.setTo(o)}function sn(e,t){return e.change(e=>{const o=e.createDocumentFragment(),s=t.getFirstRange();if(!s||s.isCollapsed)return o;const i=s.start.root,n=s.start.getCommonPath(s.end),r=i.getNodeByPath(n);let a;a=s.start.parent==s.end.parent?s:e.createRange(e.createPositionAt(r,s.start.path[n.length]),e.createPositionAt(r,s.end.path[n.length]+1));const c=a.end.offset-a.start.offset;for(const t of a.getItems({shallow:!0}))t.is("$textProxy")?e.appendText(t.data,t.getAttributes(),o):e.append(e.cloneElement(t,!0),o);if(a!=s){const t=s._getTransformedByMove(a.start,e.createPositionAt(o,0),c)[0],i=e.createRange(e.createPositionAt(o,0),t.start);nn(e.createRange(t.end,e.createPositionAt(o,"end")),e),nn(i,e)}return o})}function nn(e,t){const o=[];Array.from(e.getItems({direction:"backward"})).map(e=>t.createRangeOn(e)).filter(t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))).forEach(e=>{o.push(e.start.parent),t.remove(e)}),o.forEach(e=>{let o=e;for(;o.parent&&o.isEmpty;){const e=t.createRangeOn(o);o=o.parent,t.remove(e)}})}function rn(e,t,o){return e.change(s=>{const i=o||e.document.selection;i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0});const n=new an(e,s,i.anchor),r=[];let a;if(t.is("documentFragment")){if(t.markers.size){const e=[];for(const[o,s]of t.markers){const{start:t,end:i}=s,n=t.isEqual(i);e.push({position:t,name:o,isCollapsed:n},{position:i,name:o,isCollapsed:n})}e.sort(({position:e},{position:t})=>e.isBefore(t)?1:-1);for(const{position:o,name:i,isCollapsed:n}of e){let e=null,a=null;const c=o.parent===t&&o.isAtStart,l=o.parent===t&&o.isAtEnd;c||l?n&&(a=c?"start":"end"):(e=s.createElement("$marker"),s.insert(e,o)),r.push({name:i,element:e,collapsed:a})}}a=t.getChildren()}else a=[t];n.handleNodes(a);let c=n.getSelectionRange();if(t.is("documentFragment")&&r.length){const e=c?bo.fromRange(c):null,t={};for(let e=r.length-1;e>=0;e--){const{name:o,element:i,collapsed:a}=r[e],c=!t[o];if(c&&(t[o]=[]),i){const e=s.createPositionAt(i,"before");t[o].push(e),s.remove(i)}else{const e=n.getAffectedRange();if(!e){a&&t[o].push(n.position);continue}a?t[o].push(e[a]):t[o].push(c?e.start:e.end)}}for(const[e,[o,i]]of Object.entries(t))o&&i&&o.root===i.root&&o.root.document&&!s.model.markers.has(e)&&s.addMarker(e,{usingOperation:!0,affectsData:!0,range:new to(o,i)});e&&(c=e.toRange(),e.detach())}c&&(i instanceof xo?s.setSelection(c):i.setTo(c));const l=n.getAffectedRange()||e.createRange(i.anchor);return n.destroy(),l})}class an{model;writer;position;canMergeWith;schema;_documentFragment;_documentFragmentPosition;_firstNode=null;_lastNode=null;_lastAutoParagraph=null;_filterAttributesAndChildrenOf=[];_affectedStart=null;_affectedEnd=null;_nodeToSelect=null;constructor(e,t,o){this.model=e,this.writer=t,this.position=o,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0)}handleNodes(e){for(const t of Array.from(e))t.offsetSize>0&&this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesAndChildrenOf,this.writer),this.model._config?.get("experimentalFlags.modelInsertContentDeepSchemaVerification")&&this._removeDisallowedChildren(this._filterAttributesAndChildrenOf),this._filterAttributesAndChildrenOf=[]}_removeDisallowedChildren(e){const t=Array.from(e);for(const e of t){if(!e.is("element"))continue;const o=[],s=[],i=this.writer.createRangeIn(e).getWalker({ignoreElementEnd:!0});for(const{item:e}of i){const n=e.parent;this.schema.checkChild(n,e)||(e.is("element")&&!this.schema.isObject(e)?(s.push(e),t.push(n)):o.push(e),i.jumpTo(this.writer.createPositionAfter(e)))}for(const e of s)this.writer.unwrap(e);for(const e of o)this.writer.remove(e)}}_updateLastNodeFromAutoParagraph(e){const t=this.writer.createPositionAfter(this._lastNode),o=this.writer.createPositionAfter(e);if(o.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new g.Yb("insertcontent-invalid-insertion-position",this);this.position=o,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?to._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new to(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){this._checkAndSplitToAllowedPosition(e)?(e=this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this.schema.isObject(e)||this._handleDisallowedNode(e)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const e=bi.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()}_handleDisallowedNode(e){e.is("element")&&this.handleNodes(e.getChildren())}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new g.Yb("insertcontent-wrong-position",this,{node:e,position:this.position});return this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),e.parent||(e=this._documentFragmentPosition.nodeBefore),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=e:this._nodeToSelect=null,this._filterAttributesAndChildrenOf.push(e),e}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=bi.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=bi.fromPosition(e,"toNext"))}_mergeOnLeft(){const e=this._firstNode;if(!(e instanceof So))return;if(!this._canMergeLeft(e))return;const t=bi._createBefore(e);t.stickiness="toNext";const o=bi.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=bi._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=bi._createAt(t.nodeBefore,"end","toNext")),this.position=o.toPosition(),o.detach(),this._filterAttributesAndChildrenOf.push(this.position.parent),t.detach()}_mergeOnRight(){const e=this._lastNode;if(!(e instanceof So))return;if(!this._canMergeRight(e))return;const t=bi._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new g.Yb("insertcontent-invalid-insertion-position",this);this.position=Gt._createAt(t.nodeBefore,"end");const o=bi.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=bi._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=bi._createAt(t.nodeBefore,0,"toPrevious")),this.position=o.toPosition(),o.detach(),this._filterAttributesAndChildrenOf.push(this.position.parent),t.detach()}_canMergeLeft(e){const t=e.previousSibling;return t instanceof So&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){const t=e.nextSibling;return t instanceof So&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_insertAutoParagraph(){this._insertPartialFragment();const e=this.writer.createElement("paragraph");this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,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 this.schema.checkChild(this.position.parent,e)||this._insertAutoParagraph(),!0}_getAllowedIn(e,t){const o=this.schema.createContext(e);return this.schema.checkChild(o,t)||this.schema.checkChild(o,"paragraph")&&this.schema.checkChild(o.push("paragraph"),t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}}function cn(e,t,o,s={}){if(!e.schema.isObject(t))throw new g.Yb("insertobject-element-not-an-object",e,{object:t});const i=o||e.document.selection;let n=i;s.findOptimalPosition&&e.schema.isBlock(t)&&(n=e.createSelection(e.schema.findOptimalInsertionRange(i,s.findOptimalPosition)));const r=(0,g.$1)(i.getSelectedBlocks()),a={};return r&&Object.assign(a,e.schema.getAttributesWithProperty(r,"copyOnReplace",!0)),e.change(o=>{n.isCollapsed||e.deleteContent(n,{doNotAutoparagraph:!0});let i=t;const r=n.anchor.parent,c=e.schema.createContext(r);!e.schema.checkChild(c,t)&&e.schema.checkChild(c,"paragraph")&&e.schema.checkChild(c.push("paragraph"),t)&&(i=o.createElement("paragraph"),o.insert(t,i)),e.schema.setAllowedAttributes(i,a,o);const l=e.insertContent(i,n);return l.isCollapsed||s.setSelection&&function(e,t,o,s){const i=e.model;if("on"==o)return void e.setSelection(t,"on");if("after"!=o)throw new g.Yb("insertobject-invalid-place-parameter-value",i);let n=t.nextSibling;if(i.schema.isInline(t))return void e.setSelection(t,"after");const r=n&&i.schema.checkChild(n,"$text");!r&&i.schema.checkChild(t.parent,"paragraph")&&(n=e.createElement("paragraph"),i.schema.setAllowedAttributes(n,s,e),i.insertContent(n,e.createPositionAfter(t)));n&&e.setSelection(n,0)}(o,t,s.setSelection,a),l})}const ln=' ,.?!:;"-()';function dn(e,t,o={}){const s=e.schema,i="backward"!=o.direction,n=o.unit?o.unit:"character",r=!!o.treatEmojiAsSingleUnit,a=t.focus,c=new Kt({boundaries:hn(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),l={walker:c,schema:s,isForward:i,unit:n,treatEmojiAsSingleUnit:r};let d;for(;d=c.next();){if(d.done)return;const o=un(l,d.value);if(o)return void(t instanceof xo?e.change(e=>{e.setSelectionFocus(o)}):t.setFocus(o))}}function un(e,t){const{isForward:o,walker:s,unit:i,schema:n,treatEmojiAsSingleUnit:r}=e,{type:a,item:c,nextPosition:l}=t;if("text"==a)return"word"===e.unit?function(e,t){let o=e.position.textNode;o||(o=t?e.position.nodeAfter:e.position.nodeBefore);for(;o&&o.is("$text");){const s=e.position.offset-o.startOffset;if(mn(o,s,t))o=t?e.position.nodeAfter:e.position.nodeBefore;else{if(pn(o.data,s,t))break;e.next()}}return e.position}(s,o):function(e,t,o){const s=e.position.textNode;if(s){const i=s.data;let n=e.position.offset-s.startOffset;for(;(0,g.P5)(i,n)||"character"==t&&(0,g.Iw)(i,n)||o&&(0,g.SQ)(i,n);)e.next(),n=e.position.offset-s.startOffset}return e.position}(s,i,r);if(a==(o?"elementStart":"elementEnd")){if(n.isSelectable(c))return Gt._createAt(c,o?"after":"before");if(n.checkChild(l,"$text"))return l}else{if(n.isLimit(c))return void s.skip(()=>!0);if(n.checkChild(l,"$text"))return l}}function hn(e,t){const o=e.root,s=Gt._createAt(o,t?"end":0);return t?new to(e,s):new to(s,e)}function pn(e,t,o){const s=t+(o?0:-1);return ln.includes(e.charAt(s))}function mn(e,t,o){return t===(o?e.offsetSize:0)}class gn extends((0,g.VM)()){markers;document;schema;_config;_pendingChanges;_currentWriter;constructor(e){super(),this.markers=new zi,this.document=new Ri(this),this.schema=new ms,this._config=e,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(()=>!0,"$marker"),Ui(this),this.document.registerPostFixer(es),this.on("insertContent",(e,[t,o])=>{e.return=rn(this,t,o)}),this.on("insertObject",(e,[t,o,s])=>{e.return=cn(this,t,o,s)}),this.on("canEditAt",e=>{const t=!this.document.isReadOnly;e.return=t,t||e.stop()})}change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new vi,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){g.Yb.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{e?"function"==typeof e?(t=e,e=new vi):e instanceof vi||(e=new vi(e)):e=new vi,this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){g.Yb.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,o,...s){const i=fn(t,o);return this.fire("insertContent",[e,i,o,...s])}insertObject(e,t,o,s,...i){const n=fn(t,o);return this.fire("insertObject",[e,n,s,s,...i])}deleteContent(e,t){Zi(this,e,t)}modifySelection(e,t){dn(this,e,t)}getSelectedContent(e){return sn(this,e)}hasContent(e,t={}){const o=e instanceof to?e:to._createIn(e);if(o.isCollapsed)return!1;const{ignoreWhitespaces:s=!1,ignoreMarkers:i=!1}=t;if(!i)for(const e of this.markers.getMarkersIntersectingRange(o))if(e.affectsData)return!0;for(const e of o.getItems())if(this.schema.isContent(e)){if(!e.is("$textProxy"))return!0;if(!s)return!0;if(-1!==e.data.search(/\S/))return!0}return!1}canEditAt(e){const t=fn(e);return this.fire("canEditAt",[t])}createPositionFromPath(e,t,o){return new Gt(e,t,o)}createPositionAt(e,t){return Gt._createAt(e,t)}createPositionAfter(e){return Gt._createAfter(e)}createPositionBefore(e){return Gt._createBefore(e)}createRange(e,t){return new to(e,t)}createRangeIn(e){return to._createIn(e)}createRangeOn(e){return to._createOn(e)}createSelection(...e){return new uo(...e)}createBatch(e){return new vi(e)}createOperationFromJSON(e){return ni.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 Di(this,t);const o=this._pendingChanges[0].callback(this._currentWriter);e.push(o),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return e}}function fn(e,t){if(e)return e instanceof uo||e instanceof xo?e:e instanceof lo?t||0===t?new uo(e,t):e.is("rootElement")?new uo(e,"in"):new uo(e,"on"):new uo(e)}class _n extends wt{domEventType="click";onDomEvent(e){this.fire(e.type,e)}}class bn extends wt{domEventType=["mousedown","mouseup","mouseover","mouseout"];onDomEvent(e){this.fire(e.type,e)}}class wn extends wt{domEventType=["touchstart","touchend","touchmove"];onDomEvent(e){this.fire(e.type,e)}}class kn extends wt{domEventType=["pointerdown","pointerup","pointermove"];onDomEvent(e){this.fire(e.type,e)}}class vn{document;constructor(e){this.document=e}createDocumentFragment(e){return new Te(this.document,e)}createElement(e,t,o){return new K(this.document,e,t,o)}createText(e){return new T(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,o){return o._insertChild(e,t)}removeChildren(e,t,o){return o._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const o=e.parent;if(o){const s=o.getChildIndex(e);return this.removeChildren(s,1,o),this.insertChild(s,t,o),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const o=t.getChildIndex(e);this.remove(e),this.insertChild(o,e.getChildren(),t)}}rename(e,t){const o=new K(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,o)?o:null}setAttribute(e,t,o){o._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,o){(0,Pe.Q)(e)&&void 0===o?t._setStyle(e):o._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,o){o._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return oe._createAt(e,t)}createPositionAfter(e){return oe._createAfter(e)}createPositionBefore(e){return oe._createBefore(e)}createRange(e,t){return new se(e,t)}createRangeOn(e){return se._createOn(e)}createRangeIn(e){return se._createIn(e)}createSelection(...e){return new ne(...e)}}const yn=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,xn=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,An=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Cn=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,En=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Sn=/\w+\((?:[^()]|\([^()]*\))*\)|\S+/gi,Tn=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function Pn(e){return e.startsWith("#")?yn.test(e):e.startsWith("rgb")?xn.test(e)||An.test(e):e.startsWith("hsl")?Cn.test(e)||En.test(e):Tn.has(e.toLowerCase())}const Mn=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Vn(e){return Mn.includes(e)}const On=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function In(e){return On.test(e)}const Rn=/^[+-]?[0-9]*([.][0-9]+)?%$/;function jn(e){return Rn.test(e)}const zn=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function Bn(e){return zn.includes(e)}const Nn=["center","top","bottom","left","right"];function Ln(e){return Nn.includes(e)}const Dn=["fixed","scroll","local"];function Fn(e){return Dn.includes(e)}const Hn=/^url\(/;function qn(e){return Hn.test(e)}function Wn(e=""){if(""===e)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const t=Yn(e),o=t[0],s=t[2]||o,i=t[1]||o;return{top:o,bottom:s,right:i,left:t[3]||i}}function $n(e){return t=>{const{top:o,right:s,bottom:i,left:n}=t,r=[];return[o,s,n,i].every(e=>!!e)?r.push([e,Un(t)]):(o&&r.push([e+"-top",o]),s&&r.push([e+"-right",s]),i&&r.push([e+"-bottom",i]),n&&r.push([e+"-left",n])),r}}function Un({top:e,right:t,bottom:o,left:s}){const i=[];return s!==t?i.push(e,t,o,s):o!==e?i.push(e,t,o):t!==e?i.push(e,t):i.push(e),i.join(" ")}function Kn(e){return t=>({path:e,value:Wn(t)})}function Yn(e){const t=e.trim().slice(0,1500).matchAll(Sn);return Array.from(t).map(e=>e[0])}function Gn(e){e.setNormalizer("background",e=>{const t={},o=Yn(e);for(const e of o)Bn(e)?(t.repeat=t.repeat||[],t.repeat.push(e)):Ln(e)?(t.position=t.position||[],t.position.push(e)):Fn(e)?t.attachment=e:Pn(e)?t.color=e:qn(e)&&(t.image=e);return{path:"background",value:t}}),e.setNormalizer("background-color",e=>({path:"background.color",value:e})),e.setReducer("background",e=>{const t=[];return t.push(["background-color",e.color]),t}),e.setStyleRelation("background",["background-color"])}function Jn(e){e.setNormalizer("border",e=>{const{color:t,style:o,width:s}=sr(e);return{path:"border",value:{color:Wn(t),style:Wn(o),width:Wn(s)}}}),e.setNormalizer("border-top",Zn("top")),e.setNormalizer("border-right",Zn("right")),e.setNormalizer("border-bottom",Zn("bottom")),e.setNormalizer("border-left",Zn("left")),e.setNormalizer("border-color",Xn("color")),e.setNormalizer("border-width",Xn("width")),e.setNormalizer("border-style",Xn("style")),e.setNormalizer("border-top-color",er("color","top")),e.setNormalizer("border-top-style",er("style","top")),e.setNormalizer("border-top-width",er("width","top")),e.setNormalizer("border-right-color",er("color","right")),e.setNormalizer("border-right-style",er("style","right")),e.setNormalizer("border-right-width",er("width","right")),e.setNormalizer("border-bottom-color",er("color","bottom")),e.setNormalizer("border-bottom-style",er("style","bottom")),e.setNormalizer("border-bottom-width",er("width","bottom")),e.setNormalizer("border-left-color",er("color","left")),e.setNormalizer("border-left-style",er("style","left")),e.setNormalizer("border-left-width",er("width","left")),e.setExtractor("border-top",tr("top")),e.setExtractor("border-right",tr("right")),e.setExtractor("border-bottom",tr("bottom")),e.setExtractor("border-left",tr("left")),e.setExtractor("border-top-color","border.color.top"),e.setExtractor("border-right-color","border.color.right"),e.setExtractor("border-bottom-color","border.color.bottom"),e.setExtractor("border-left-color","border.color.left"),e.setExtractor("border-top-width","border.width.top"),e.setExtractor("border-right-width","border.width.right"),e.setExtractor("border-bottom-width","border.width.bottom"),e.setExtractor("border-left-width","border.width.left"),e.setExtractor("border-top-style","border.style.top"),e.setExtractor("border-right-style","border.style.right"),e.setExtractor("border-bottom-style","border.style.bottom"),e.setExtractor("border-left-style","border.style.left"),e.setReducer("border-color",$n("border-color")),e.setReducer("border-style",$n("border-style")),e.setReducer("border-width",$n("border-width")),e.setReducer("border-top",ir("top")),e.setReducer("border-right",ir("right")),e.setReducer("border-bottom",ir("bottom")),e.setReducer("border-left",ir("left")),e.setReducer("border",function(){return t=>{const o=or(t,"top"),s=or(t,"right"),i=or(t,"bottom"),n=or(t,"left"),r=[o,s,i,n],a={width:e(r,"width"),style:e(r,"style"),color:e(r,"color")},c=nr(a,"all");if(c.length)return c;const l=Object.entries(a).reduce((e,[t,o])=>(o&&(e.push([`border-${t}`,o]),r.forEach(e=>delete e[t])),e),[]);return[...l,...nr(o,"top"),...nr(s,"right"),...nr(i,"bottom"),...nr(n,"left")]};function e(e,t){return e.map(e=>e[t]).reduce((e,t)=>e==t?e:null)}}()),e.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),e.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),e.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),e.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),e.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),e.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),e.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),e.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function Zn(e){return t=>{const{color:o,style:s,width:i}=sr(t),n={};return void 0!==o&&(n.color={[e]:o}),void 0!==s&&(n.style={[e]:s}),void 0!==i&&(n.width={[e]:i}),{path:"border",value:n}}}function Xn(e){return t=>({path:"border",value:Qn(t,e)})}function Qn(e,t){return{[t]:Wn(e)}}function er(e,t){return o=>({path:"border",value:{[e]:{[t]:o}}})}function tr(e){return(t,o)=>{if(o.border)return or(o.border,e)}}function or(e,t){const o={};return e.width&&e.width[t]&&(o.width=e.width[t]),e.style&&e.style[t]&&(o.style=e.style[t]),e.color&&e.color[t]&&(o.color=e.color[t]),o}function sr(e){const t={},o=Yn(e);for(const e of o)In(e)||/thin|medium|thick/.test(e)?t.width=e:Vn(e)?t.style=e:t.color=e;return t}function ir(e){return t=>nr(t,e)}function nr(e,t){const o=[];if(e&&e.width&&o.push("width"),e&&e.style&&o.push("style"),e&&e.color&&o.push("color"),3==o.length){const s=o.map(t=>e[t]).join(" ");return["all"==t?["border",s]:[`border-${t}`,s]]}return"all"==t?[]:o.map(o=>[`border-${t}-${o}`,e[o]])}function rr(e){e.setNormalizer("margin",Kn("margin")),e.setNormalizer("margin-top",e=>({path:"margin.top",value:e})),e.setNormalizer("margin-right",e=>({path:"margin.right",value:e})),e.setNormalizer("margin-bottom",e=>({path:"margin.bottom",value:e})),e.setNormalizer("margin-left",e=>({path:"margin.left",value:e})),e.setReducer("margin",$n("margin")),e.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function ar(e){e.setNormalizer("padding",Kn("padding")),e.setNormalizer("padding-top",e=>({path:"padding.top",value:e})),e.setNormalizer("padding-right",e=>({path:"padding.right",value:e})),e.setNormalizer("padding-bottom",e=>({path:"padding.bottom",value:e})),e.setNormalizer("padding-left",e=>({path:"padding.left",value:e})),e.setReducer("padding",$n("padding")),e.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}const cr="[",lr="]",dr="{",ur="}",hr={container:J,attribute:be,empty:ve,ui:xe,raw:Ee},pr={setContentOf:(e,t)=>{e.innerHTML=t}};function mr(e,t={}){if(!(e instanceof Wt))throw new TypeError("View needs to be an instance of module:engine/view/view~EditingView.");const o=e.document,s=!!t.withoutSelection,i=t.rootName||"main",n=o.getRoot(i),r={showType:t.showType,showPriority:t.showPriority,renderUIElements:t.renderUIElements,renderRawElements:t.renderRawElements,ignoreRoot:!0,domConverter:t.domConverter,skipListItemIds:t.skipListItemIds};return s?mr._stringify(n,null,r):mr._stringify(n,o.selection,r)}function gr(e,t,o={}){if(!(e instanceof Wt))throw new TypeError("View needs to be an instance of module:engine/view/view~EditingView.");const s=e.document,i=o.rootName||"main",n=s.getRoot(i);e.change(e=>{const o=gr._parse(t,{rootElement:n});o.view&&o.selection&&e.setSelection(o.selection)})}function fr(e,t=null,o={}){let s;s=t instanceof oe||t instanceof se?new re(t):t;return new wr(e,s,o).stringify()}function _r(e,t={}){const o=new _e(new H);t.order=t.order||[];const s=new br({sameSelectionCharacters:t.sameSelectionCharacters}),i=new zs(o,{namespaces:Object.keys(hr)});t.inlineObjectElements&&i.domConverter.inlineObjectElements.push(...t.inlineObjectElements);let n=i.toView(e);if(n=kr(n),t.rootElement){const e=t.rootElement,o=n._removeChildren(0,n.childCount);e._removeChildren(0,e.childCount),e._appendChild(o),n=e}const r=s._parseView(n,t.order);if(n.is("documentFragment")&&1===n.childCount&&(n=n.getChild(0)),r.length){return{view:n,selection:new re(r,{backward:!!t.lastRangeBackward})}}return n.parent&&n._remove(),n}mr._stringify=fr,gr._parse=_r;class br{sameSelectionCharacters;_positions;constructor(e){this.sameSelectionCharacters=!!e.sameSelectionCharacters}_parseView(e,t){this._positions=[],this._getPositions(e);let o=this._createRanges();if(t.length){if(t.length!=o.length)throw new Error(`Parse error - there are ${o.length} ranges found, but ranges order array contains ${t.length} elements.`);o=this._sortRanges(o,t)}return o}_getPositions(e){if(e.is("documentFragment")||e.is("element")){const t=[...e.getChildren()];for(const e of t)this._getPositions(e)}if(e.is("$text")){const t=new RegExp(`[${dr}${ur}\\${lr}\\${cr}]`,"g");let o,s=e.data,i=0;const n=[];for(;o=t.exec(s);){const e=o.index,t=o[0];n.push({bracket:t,textOffset:e-i}),i++}s=s.replace(t,""),e._data=s;const r=e.index,a=e.parent;s||e._remove();for(const t of n)if(s)if(this.sameSelectionCharacters||!this.sameSelectionCharacters&&(t.bracket==dr||t.bracket==ur))this._positions.push({bracket:t.bracket,position:new oe(e,t.textOffset)});else{if(!this.sameSelectionCharacters&&0!==t.textOffset&&t.textOffset!==s.length)throw new Error(`Parse error - range delimiter '${t.bracket}' is placed inside text node.`);const e=0===t.textOffset?r:r+1;this._positions.push({bracket:t.bracket,position:new oe(a,e)})}else{if(!this.sameSelectionCharacters&&t.bracket==dr||t.bracket==ur)throw new Error(`Parse error - text range delimiter '${t.bracket}' is placed inside empty text node. `);this._positions.push({bracket:t.bracket,position:new oe(a,r)})}}}_sortRanges(e,t){const o=[];let s=0;for(const i of t){if(void 0===e[i-1])throw new Error("Parse error - provided ranges order is invalid.");o[i-1]=e[s],s++}return o}_createRanges(){const e=[];let t=null;for(const o of this._positions){if(!t&&(o.bracket==lr||o.bracket==ur))throw new Error(`Parse error - end of range was found '${o.bracket}' but range was not started before.`);if(t&&(o.bracket==cr||o.bracket==dr))throw new Error(`Parse error - start of range was found '${o.bracket}' but one range is already started.`);o.bracket==cr||o.bracket==dr?t=new se(o.position,o.position):(t.end=o.position,e.push(t),t=null)}if(null!==t)throw new Error("Parse error - range was started but no end delimiter was found.");return e}}class wr{root;selection;ranges;showType;showPriority;showAttributeElementId;ignoreRoot;sameSelectionCharacters;renderUIElements;renderRawElements;domConverter;skipListItemIds;constructor(e,t,o){this.root=e,this.selection=t,this.ranges=[],t&&(this.ranges=[...t.getRanges()]),this.showType=!!o.showType,this.showPriority=!!o.showPriority,this.showAttributeElementId=!!o.showAttributeElementId,this.ignoreRoot=!!o.ignoreRoot,this.sameSelectionCharacters=!!o.sameSelectionCharacters,this.renderUIElements=!!o.renderUIElements,this.renderRawElements=!!o.renderRawElements,this.domConverter=o.domConverter||pr,this.skipListItemIds=void 0===o.skipListItemIds||!!o.skipListItemIds}stringify(){let e="";return this._walkView(this.root,t=>{e+=t}),this.skipListItemIds&&(e=e.replaceAll(/ data-list-item-id="[^"]+"/g,"")),e}_walkView(e,t){const o=this.ignoreRoot&&this.root===e;if(e.is("element")||e.is("documentFragment")){if(e.is("element")&&!o&&t(this._stringifyElementOpen(e)),this.renderUIElements&&e.is("uiElement"))t(e.render(document,this.domConverter).innerHTML);else if(this.renderRawElements&&e.is("rawElement")){const o=document.createElement("div");e.render(o,this.domConverter),t(o.innerHTML)}else{let o=0;t(this._stringifyElementRanges(e,o));for(const s of e.getChildren())this._walkView(s,t),o++,t(this._stringifyElementRanges(e,o))}e.is("element")&&!o&&t(this._stringifyElementClose(e))}e.is("$text")&&t(this._stringifyTextRanges(e))}_stringifyElementRanges(e,t){let o="",s="",i="";for(const n of this.ranges)n.start.parent==e&&n.start.offset===t&&(n.isCollapsed?i+=cr+lr:o+=cr),n.end.parent!==e||n.end.offset!==t||n.isCollapsed||(s+=lr);return s+i+o}_stringifyTextRanges(e){const t=e.data.length,o=e.data.split("");let s,i;this.sameSelectionCharacters?(s=cr,i=lr):(s=dr,i=ur),o[t]="";const n=o.map(e=>({letter:e,start:"",end:"",collapsed:""}));for(const o of this.ranges){const r=o.start,a=o.end;r.parent==e&&r.offset>=0&&r.offset<=t&&(o.isCollapsed?n[a.offset].collapsed+=s+i:n[r.offset].start+=s),a.parent==e&&a.offset>=0&&a.offset<=t&&!o.isCollapsed&&(n[a.offset].end+=i)}return n.map(e=>e.end+e.collapsed+e.start+e.letter).join("")}_stringifyElementOpen(e){const t=this._stringifyElementPriority(e),o=this._stringifyElementId(e);return`<${[[this._stringifyElementType(e),e.name].filter(e=>""!==e).join(":"),t,o,this._stringifyElementAttributes(e)].filter(e=>""!==e).join(" ")}>`}_stringifyElementClose(e){return`</${[this._stringifyElementType(e),e.name].filter(e=>""!==e).join(":")}>`}_stringifyElementType(e){if(this.showType)for(const t in hr)if(e instanceof hr[t])return t;return""}_stringifyElementPriority(e){return this.showPriority&&e.is("attributeElement")?`view-priority="${e.priority}"`:""}_stringifyElementId(e){return this.showAttributeElementId&&e.is("attributeElement")&&e.id?`view-id="${e.id}"`:""}_stringifyElementAttributes(e){const t=[],o=[...e.getAttributeKeys()].sort();for(const s of o){let o;o="class"===s?[...e.getClassNames()].sort().join(" "):"style"===s?[...e.getStyleNames()].sort().map(t=>`${t}:${e.getStyle(t).replace(/"/g,""")}`).join(";"):e.getAttribute(s),t.push(`${s}="${o}"`)}return t.join(" ")}}function kr(e){if(e.is("element")||e.is("documentFragment")){const t=e.is("documentFragment")?new Te(e.document):function(e,t){const o=function(e){const t=e.name.split(":"),o=function(e){const t=parseInt(e,10);if(!isNaN(t))return t;return null}(e.getAttribute("view-priority")),s=e.hasAttribute("view-id")?e.getAttribute("view-id"):null;if(e._removeAttribute("view-priority"),e._removeAttribute("view-id"),1==t.length)return{name:t[0],type:null!==o?"attribute":null,priority:o,id:s};const i=function(e){return e in hr?e:null}(t[0]);if(i)return{name:t[1],type:i,priority:o,id:s};throw new Error(`Parse error - cannot parse element's name: ${e.name}.`)}(t),s=hr[o.type],i=s?new s(e,o.name):new K(e,o.name);i.is("attributeElement")&&(null!==o.priority&&(i._priority=o.priority),null!==o.id&&(i._id=o.id));for(const e of t.getAttributeKeys())i._setAttribute(e,t.getAttribute(e));return i}(e.document,e);for(const o of[...e.getChildren()]){if(t.is("emptyElement"))throw new Error("Parse error - cannot parse inside ViewEmptyElement.");if(t.is("uiElement"))throw new Error("Parse error - cannot parse inside UIElement.");if(t.is("rawElement"))throw new Error("Parse error - cannot parse inside RawElement.");t._appendChild(kr(o))}return t}return e}function vr(e,t={}){if(!(e instanceof gn))throw new TypeError("Model needs to be an instance of module:engine/model/model~Model.");const o=t.rootName||"main",s=e.document.getRoot(o);return vr._stringify(s,t.withoutSelection?null:e.document.selection,t.convertMarkers?e.markers:null)}function yr(e,t,o={}){if(!(e instanceof gn))throw new TypeError("Model needs to be an instance of module:engine/model/model~Model.");let s,i=null;const n=e.document.getRoot(o.rootName||"main"),r=yr._parse(t,e.schema,{lastRangeBackward:o.lastRangeBackward,selectionAttributes:o.selectionAttributes,context:[n.name],inlineObjectElements:o.inlineObjectElements});function a(t){if(t.remove(t.createRangeIn(n)),t.insert(s,n),t.setSelection(null),t.removeSelectionAttribute(e.document.selection.getAttributeKeys()),i){const e=[];for(const t of i.getRanges()){const o=new Gt(n,t.start.path),s=new Gt(n,t.end.path);e.push(new to(o,s))}t.setSelection(e,{backward:i.isBackward}),o.selectionAttributes&&t.setSelectionAttribute(i.getAttributes())}}"model"in r?(s=r.model,i=r.selection):s=r,void 0!==o.batchType?e.enqueueChange(o.batchType,a):e.change(a)}function xr(e,t=null,o=null){const s=new gn,i=new oo;let n,r=null;if(e instanceof Ti||e instanceof Li)n=s.createRangeIn(e);else if(e.parent)n=new to(s.createPositionBefore(e),s.createPositionAfter(e));else{const t=new Li(e);n=s.createRangeIn(t)}t instanceof uo||t instanceof xo?r=t:(t instanceof to||t instanceof Gt)&&(r=new uo(t));const a=new H,c=new Wt(a),l=c.document,d=new ee(l,"div");d.rootName="main",l.roots.add(d);const u=new ro({mapper:i,schema:s.schema});i.bindElements(e.root,d),u.on("insert:$text",(e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const s=o.writer,i=o.mapper.toViewPosition(t.range.start),n=s.createText(t.item.data);s.insert(i,n)}),u.on("insert",(e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)},{priority:"lowest"}),u.on("attribute",(e,t,o)=>{if(t.item instanceof uo||t.item instanceof xo||t.item.is("$textProxy")){const s=Bo((e,{writer:o})=>o.createAttributeElement("model-text-with-attributes",{[t.attributeKey]:Sr(e)}));s(e,t,o)}}),u.on("insert",No(e=>{const t=Tr(e.getAttributes(),Sr);return new J(l,e.name,t)})),u.on("selection",(e,t,o)=>{const s=t.selection;if(s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=[];for(const e of s.getRanges())i.push(o.mapper.toViewRange(e));o.writer.setSelection(i,{backward:s.isBackward})}),u.on("selection",(e,t,o)=>{const s=t.selection;if(!s.isCollapsed)return;if(!o.consumable.consume(s,"selection"))return;const i=o.writer,n=s.getFirstPosition(),r=o.mapper.toViewPosition(n),a=i.breakAttributes(r);i.setSelection(a)}),u.on("addMarker",Do((e,{writer:t})=>{const o=e.markerName+":"+(e.isOpening?"start":"end");return t.createUIElement(o)}));const h=new Map;if(o)for(const e of Array.from(o).sort((e,t)=>e.name<t.name?1:-1))h.set(e.name,e.getRange());const p=c._writer;u.convert(n,h,p),r&&u.convertSelection(r,o||s.markers,p);let m=fr(d,l.selection,{sameSelectionCharacters:!0});return m=m.substr(5,m.length-11),c.destroy(),m.replace(new RegExp("model-text-with-attributes","g"),"$text")}function Ar(e,t,o={}){const s=new oo,i=_r(e=e.replace(new RegExp("\\$text","g"),"model-text-with-attributes"),{sameSelectionCharacters:!0,lastRangeBackward:!!o.lastRangeBackward,inlineObjectElements:o.inlineObjectElements});let n,r=null,a=null;"view"in i&&"selection"in i?(n=i.view,r=i.selection):n=i;const c=new gn,l=new Ps({schema:t});l.on("documentFragment",function(e){return(t,o,s)=>{const i=s.convertChildren(o.viewItem,o.modelCursor);e.bindElements(o.modelCursor.parent,o.viewItem),o=Object.assign(o,i),t.stop()}}(s)),l.on("element:model-text-with-attributes",Cr()),l.on("element",function(e){return(t,o,s)=>{const i=o.viewItem.name;if(!s.schema.checkChild(o.modelCursor,i))throw new Error(`Element '${i}' was not allowed in given position.`);const n=Tr(o.viewItem.getAttributes(),Er),r=s.writer.createElement(o.viewItem.name,n);s.writer.insert(r,o.modelCursor),e.bindElements(r,o.viewItem),s.convertChildren(o.viewItem,r),o.modelRange=to._createOn(r),o.modelCursor=o.modelRange.end,t.stop()}}(s)),l.on("text",Cr());let d=c.change(e=>l.convert(n.root,e,o.context||"$root"));if(s.bindElements(d,n.root),1==d.childCount&&(d=d.getChild(0)),r){const e=[];for(const t of r.getRanges())e.push(s.toModelRange(t));a=new uo(e,{backward:r.isBackward});for(const[e,t]of(0,g.av)(o.selectionAttributes||[]))a.setAttribute(e,t)}return a?{model:d,selection:a}:d}function Cr(){return(e,t,o)=>{if(!o.schema.checkChild(t.modelCursor,"$text"))throw new Error("Text was not allowed in given position.");let s;if(t.viewItem.is("element")){const e=Tr(t.viewItem.getAttributes(),Er),i=t.viewItem.getChild(0);s=o.writer.createText(i.data,e)}else s=o.writer.createText(t.viewItem.data);o.writer.insert(s,t.modelCursor),t.modelRange=to._createFromPositionAndShift(t.modelCursor,s.offsetSize),t.modelCursor=t.modelRange.end,e.stop()}}function Er(e){try{return JSON.parse(e)}catch{return e}}function Sr(e){return(0,Pe.Q)(e)?JSON.stringify(e):e}function*Tr(e,t){for(const[o,s]of e)yield[o,t(s)]}function Pr(e){let t="";for(const o of e)t+=` ${o[0]}=${JSON.stringify(o[1])}`;return t}function Mr(e){const t={};for(const o of e)t[o[0]]=o[1];return JSON.stringify(t)}vr._stringify=xr,yr._parse=Ar;const Vr=Symbol("_treeDump"),Or=20;function Ir(e,t){console.log(e,t);let o="";for(const t of e.roots)o+=t.printTree()+"\n";e[Vr][t]=o.substr(0,o.length-1);const s=e[Vr].length-Or;s>0&&(e[Vr][s-1]=null)}function Rr(e){e[Vr]=[]}function jr(e,t){console.log("--------------------"),e[Vr][t]?console.log(e[Vr][t]):console.log("Tree log unavailable for given version: "+t)}class zr{_model;_logSeparator;_operationsToReplay;constructor(e,t,o){this._model=e,this._logSeparator=t,this.setStringifiedOperations(o)}setStringifiedOperations(e){this._operationsToReplay=""!==e?e.split(this._logSeparator).map(e=>JSON.parse(e)):[]}getOperationsToReplay(){return this._operationsToReplay}play(e=1e3){const t=this;return new Promise((o,s)=>{!function i(){t.applyNextOperation().then(t=>{if(t)return o();setTimeout(i,e)}).catch(e=>{s(e)})}()})}applyOperations(e){if(!(e<=0))return this.applyNextOperation().then(t=>{if(!t)return this.applyOperations(e-1)})}applyAllOperations(){return this.applyNextOperation().then(e=>{if(!e)return this.applyAllOperations()})}applyNextOperation(){const e=this._model;return new Promise(t=>{e.enqueueChange(o=>{const s=this._operationsToReplay.shift();if(!s)return t(!0);const i=ni.fromJSON(s,e.document);o.batch.addOperation(i),e.applyOperation(i),t(!1)})})}}},"../ckeditor5-enter/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{xy:()=>u,u3:()=>n,RJ:()=>d,DQ:()=>g,Ks:()=>h,Bo:()=>i});var s=o("../ckeditor5-core/src/index.ts");function*i(e,t){for(const o of t)o&&e.getAttributeProperties(o[0]).copyOnEnter&&(yield o)}class n extends s.uB{execute(){this.editor.model.change(e=>{this.enterBlock(e),this.fire("afterExecute",{writer:e})})}enterBlock(e){const t=this.editor.model,o=t.document.selection,s=t.schema,n=o.isCollapsed,a=o.getFirstRange(),c=a.start.parent,l=a.end.parent;if(s.isLimit(c)||s.isLimit(l))return n||c!=l||t.deleteContent(o),!1;if(n){const t=i(e.model.schema,o.getAttributes());return r(e,a.start),e.setSelectionAttribute(t),!0}{const s=!(a.start.isAtStart&&a.end.isAtEnd),i=c==l;if(t.deleteContent(o,{leaveUnmerged:s}),s){if(i)return r(e,o.focus),!0;e.setSelection(l,0)}}return!1}}function r(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var a=o("../ckeditor5-engine/src/index.ts"),c=o("../ckeditor5-utils/src/index.ts");const l={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class d extends a.nun{constructor(e){super(e);const t=this.document;let o=!1;t.on("keydown",(e,t)=>{o=t.shiftKey}),t.on("beforeinput",(s,i)=>{if(!this.isEnabled)return;let n=i.inputType;c._K.isSafari&&o&&"insertParagraph"==n&&(n="insertLineBreak");const r=i.domEvent,d=l[n];if(!d)return;const u=new a.cJK(t,"enter",i.targetRanges[0]);t.fire(u,new a.Nu4(e,r,{isSoft:d.isSoft})),u.stop.called&&s.stop()})}observe(){}stopObserving(){}}class u extends s.k_{static get pluginName(){return"Enter"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.editing.view,o=t.document,s=this.editor.t;t.addObserver(d),e.commands.add("enter",new n(e)),this.listenTo(o,"enter",(s,i)=>{o.isComposing||i.preventDefault(),i.isSoft||(e.execute("enter"),t.scrollToTheSelection())},{priority:"low"}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:s("Insert a hard break (a new paragraph)"),keystroke:"Enter"}]})}}class h extends s.uB{execute(){const e=this.editor.model,t=e.document;e.change(o=>{!function(e,t,o){const s=o.isCollapsed,n=o.getFirstRange(),r=n.start.parent,a=n.end.parent,c=r==a;if(s){const s=i(e.schema,o.getAttributes());p(e,t,n.end),t.removeSelectionAttribute(o.getAttributeKeys()),t.setSelectionAttribute(s)}else{const s=!(n.start.isAtStart&&n.end.isAtEnd);e.deleteContent(o,{leaveUnmerged:s}),c?p(e,t,o.focus):s&&t.setSelection(a,0)}}(e,o,t.selection),this.fire("afterExecute",{writer:o})})}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;const o=t.anchor;if(!o||!e.checkChild(o,"softBreak"))return!1;const s=t.getFirstRange(),i=s.start.parent,n=s.end.parent;if((m(i,e)||m(n,e))&&i!==n)return!1;return!0}(e.schema,t.selection)}}function p(e,t,o){const s=t.createElement("softBreak");e.insertContent(s,o),t.setSelection(s,"after")}function m(e,t){return!e.is("rootElement")&&(t.isLimit(e)||m(e.parent,t))}class g extends s.k_{static get pluginName(){return"ShiftEnter"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.schema,o=e.conversion,s=e.editing.view,i=s.document,n=this.editor.t;t.register("softBreak",{allowWhere:"$text",isInline:!0}),o.for("upcast").elementToElement({model:"softBreak",view:"br"}),o.for("downcast").elementToElement({model:"softBreak",view:(e,{writer:t})=>t.createEmptyElement("br")}),s.addObserver(d),e.commands.add("shiftEnter",new h(e)),this.listenTo(i,"enter",(t,o)=>{i.isComposing||o.preventDefault(),o.isSoft&&(e.execute("shiftEnter"),s.scrollToTheSelection())},{priority:"low"}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert a soft break (a <code><br></code> element)"),keystroke:"Shift+Enter"}]})}}},"../ckeditor5-icons/theme/icons/accessibility.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 6.628a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M8.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-.103z"/><path d="M10 18.5a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17m0 1.5c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10" clip-rule="evenodd"/></svg>'},"../ckeditor5-icons/theme/icons/align-left.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.75m0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75m0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75m0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75"/></svg>'},"../ckeditor5-icons/theme/icons/bold.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.187 17H5.773q-.956 0-1.364-.415-.41-.416-.409-1.323V4.738q0-.926.419-1.332.418-.405 1.354-.406h4.68q1.035 0 1.793.124.76.124 1.36.478.512.296.906.75a3.26 3.26 0 0 1 .808 2.162q0 2.102-2.167 3.075 2.846.879 2.847 3.421a3.76 3.76 0 0 1-2.296 3.504 6 6 0 0 1-1.517.377q-.857.11-2 .11zm-.217-6.217H7v4.087h3.069q2.965 0 2.965-2.072 0-1.061-.768-1.537-.768-.478-2.296-.478M7 5.13v3.619h2.606q1.093 0 1.69-.2a1.6 1.6 0 0 0 .91-.765q.247-.4.247-.897 0-1.06-.778-1.409-.778-.348-2.375-.348z"/></svg>'},"../ckeditor5-icons/theme/icons/cancel.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.414z"/></svg>'},"../ckeditor5-icons/theme/icons/check.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M6.972 16.615a1 1 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.323a1 1 0 0 1-.745.292"/></svg>'},"../ckeditor5-icons/theme/icons/color-palette.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 9 9 0 0 1-.372.008m-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.414M9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415m4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415"/></svg>'},"../ckeditor5-icons/theme/icons/color-tile-check.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0" class="ck-icon__fill"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>'},"../ckeditor5-icons/theme/icons/drag-handle.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7zM0 7h1v2H0zm15 0h1v2h-1zm-8 8h2v1H7z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'},"../ckeditor5-icons/theme/icons/drag-indicator.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m-7 6.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>'},"../ckeditor5-icons/theme/icons/dropdown-arrow.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><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-.136z"/></svg>'},"../ckeditor5-icons/theme/icons/eraser.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.053z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>'},"../ckeditor5-icons/theme/icons/import-export.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.822zM14 5V2l3.3 3zm-3.692 12.5q.093.157.213.303L11.52 19H8v-.876a2.24 2.24 0 0 0 1.82-.624zm7.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 0zm-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>'},"../ckeditor5-icons/theme/icons/loupe.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m12.68 13.74 4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474M13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0"/></svg>'},"../ckeditor5-icons/theme/icons/next-arrow.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.382z"/></svg>'},"../ckeditor5-icons/theme/icons/paragraph.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5M5 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-1"/></svg>'},"../ckeditor5-icons/theme/icons/pilcrow.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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-4"/></svg>'},"../ckeditor5-icons/theme/icons/plus.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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-1"/></svg>'},"../ckeditor5-icons/theme/icons/previous-arrow.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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>'},"../ckeditor5-icons/theme/icons/project-logo.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<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'},"../ckeditor5-icons/theme/icons/redo.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.75.75 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.8.8 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032z"/></svg>'},"../ckeditor5-icons/theme/icons/return-arrow.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<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>'},"../ckeditor5-icons/theme/icons/select-all.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<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-.75m18.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-.75m-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-.2zm4 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-.2zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.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-.2zm18.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-.2zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.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-.2zm18.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-.2zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.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 0zM18.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.5zM8.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-.2zm4 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-.2z"/></svg>'},"../ckeditor5-icons/theme/icons/text.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.816 11.5 7.038 4.785 4.261 11.5zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254z"/></svg>'},"../ckeditor5-icons/theme/icons/three-vertical-dots.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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>'},"../ckeditor5-icons/theme/icons/undo.svg":(e,t,o)=>{"use strict";o.d(t,{A:()=>s});const s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.75.75 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.8.8 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032z"/></svg>'},"../ckeditor5-typing/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{ep:()=>x,Rj:()=>f,pd:()=>h,Ki:()=>r,De:()=>N,qV:()=>E,Vp:()=>S,IG:()=>A,i6:()=>n,BP:()=>y,Py:()=>q,lO:()=>W,ex:()=>C,Il:()=>$});var s=o("../ckeditor5-core/src/index.ts"),i=o("../ckeditor5-utils/src/index.ts");class n{model;limit;_isLocked;_size;_batch=null;_changeCallback;_selectionChangeCallback;constructor(e,t=20){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 r extends s.uB{_buffer;constructor(e,t){super(e),this._buffer=new n(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,o=t.document,s=e.text||"",i=s.length;let n=o.selection;if(e.selection?n=e.selection:e.range&&(n=t.createSelection(e.range)),!t.canEditAt(n))return;const r=e.resultRange;t.enqueueChange(this._buffer.batch,e=>{this._buffer.lock();const a=Array.from(o.selection.getAttributes());t.deleteContent(n),s&&t.insertContent(e.createText(s,a),n),r?e.setSelection(r):n.is("documentSelection")||e.setSelection(n),this._buffer.unlock(),this._buffer.input(i)})}}var a=o("../ckeditor5-engine/src/index.ts");const c=["insertText","insertReplacementText"],l=[...c,"insertCompositionText"];class d extends a.nun{focusObserver;constructor(e){super(e),this.focusObserver=e.getObserver(a.vpM);const t=i._K.isAndroid?l:c,o=e.document;o.on("beforeinput",(s,n)=>{if(!this.isEnabled)return;const{data:r,targetRanges:c,inputType:l,domEvent:d,isComposing:u}=n;if(!t.includes(l))return;this.focusObserver.flush();const h=new i.vY(o,"insertText");o.fire(h,new a.Nu4(e,d,{text:r,selection:e.createSelection(c),isComposing:u})),h.stop.called&&s.stop()}),i._K.isAndroid||o.on("compositionend",(t,{data:s,domEvent:i})=>{this.isEnabled&&s&&o.fire("insertText",new a.Nu4(e,i,{text:s,isComposing:!0}))},{priority:"low"})}observe(){}stopObserving(){}}var u=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.mjs");class h extends s.k_{_typingQueue;static get pluginName(){return"Input"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model,o=e.editing.view,s=e.editing.mapper,n=t.document.selection;this._typingQueue=new p(e),o.addObserver(d);const c=new r(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",c),e.commands.add("input",c),this.listenTo(o.document,"beforeinput",()=>{this._typingQueue.flush("next beforeinput")},{priority:"high"}),this.listenTo(o.document,"insertText",(e,r)=>{const{text:l,selection:d}=r;if(o.document.selection.isFake&&d&&o.document.selection.isSimilar(d)&&r.preventDefault(),d&&Array.from(d.getRanges()).some(e=>!e.isCollapsed)&&r.preventDefault(),!c.isEnabled)return void r.preventDefault();let u;d&&(u=Array.from(d.getRanges()).filter(e=>e.root.is("rootElement")).map(e=>s.toModelRange(e)).map(e=>(0,a.ghV)(e,t.schema)||e)),u&&u.length||(u=Array.from(n.getRanges()));let h=l;if(i._K.isAndroid){const e=Array.from(u[0].getItems()).reduce((e,t)=>e+(t.is("$textProxy")?t.data:""),"");if(e&&(e.length<=h.length?h.startsWith(e)&&(h=h.substring(e.length),u[0].start=u[0].start.getShiftedBy(e.length)):e.startsWith(h)&&(u[0].start=u[0].start.getShiftedBy(h.length),h="")),0==h.length&&u[0].isCollapsed)return}const p={text:h,selection:t.createSelection(u)};this._typingQueue.push(p,Boolean(r.isComposing)),r.domEvent.defaultPrevented&&this._typingQueue.flush("beforeinput default prevented")}),i._K.isAndroid?this.listenTo(o.document,"keydown",(e,s)=>{!n.isCollapsed&&229==s.keyCode&&o.document.isComposing&&m(t,c)}):this.listenTo(o.document,"compositionstart",()=>{n.isCollapsed||m(t,c)},{priority:"high"}),this.listenTo(o.document,"mutations",(e,{mutations:t})=>{if(this._typingQueue.hasAffectedElements())for(const{node:e}of t){const t=g(e,s),o=s.toModelElement(t);if(this._typingQueue.isElementAffected(o))return void this._typingQueue.flush("mutations")}}),this.listenTo(o.document,"compositionend",()=>{this._typingQueue.flush("before composition end")},{priority:"high"}),this.listenTo(o.document,"compositionend",()=>{this._typingQueue.flush("after composition end");const e=[];if(this._typingQueue.hasAffectedElements())for(const t of this._typingQueue.flushAffectedElements()){const o=s.toViewElement(t);o&&e.push({type:"children",node:o})}!e.length&&i._K.isAndroid||o.document.fire("mutations",{mutations:e})},{priority:"lowest"})}destroy(){super.destroy(),this._typingQueue.destroy()}}class p{editor;flushDebounced=(0,u.s)(()=>this.flush("timeout"),50);_queue=[];_isComposing=!1;_affectedElements=new Set;constructor(e){this.editor=e}destroy(){for(this.flushDebounced.cancel(),this._affectedElements.clear();this._queue.length;)this.shift()}get length(){return this._queue.length}push(e,t){const o={text:e.text};if(e.selection){o.selectionRanges=[];for(const t of e.selection.getRanges())o.selectionRanges.push(a.JkJ.fromRange(t)),this._affectedElements.add(t.start.parent)}this._queue.push(o),this._isComposing||=t,this.flushDebounced()}shift(){const e=this._queue.shift(),t={text:e.text};if(e.selectionRanges){const o=e.selectionRanges.map(e=>function(e){const t=e.toRange();if(e.detach(),"$graveyard"==t.root.rootName)return null;return t}(e)).filter(e=>!!e);o.length&&(t.selection=this.editor.model.createSelection(o))}return t}flush(e){const t=this.editor,o=t.model,s=t.editing.view;if(this.flushDebounced.cancel(),!this._queue.length)return;const i=t.commands.get("insertText").buffer;o.enqueueChange(i.batch,()=>{for(i.lock();this._queue.length;){const e=this.shift();t.execute("insertText",e)}i.unlock(),this._isComposing||this._affectedElements.clear(),this._isComposing=!1}),s.scrollToTheSelection()}isElementAffected(e){return this._affectedElements.has(e)}hasAffectedElements(){return this._affectedElements.size>0}flushAffectedElements(){const e=Array.from(this._affectedElements);return this._affectedElements.clear(),e}}function m(e,t){if(!t.isEnabled)return;const o=t.buffer;o.lock(),e.enqueueChange(o.batch,()=>{e.deleteContent(e.document.selection)}),o.unlock()}function g(e,t){let o=e.is("$text")?e.parent:e;for(;!t.toModelElement(o);)o=o.parent;return o}class f extends s.uB{direction;_buffer;constructor(e,t){super(e),this.direction=t,this._buffer=new n(e.model,e.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,o=t.document;t.enqueueChange(this._buffer.batch,s=>{this._buffer.lock();const n=s.createSelection(e.selection||o.selection);if(!t.canEditAt(n))return;const r=e.sequence||1,a=n.isCollapsed;if(n.isCollapsed&&t.modifySelection(n,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(r))return void this._replaceEntireContentWithParagraph(s);if(this._shouldReplaceFirstBlockWithParagraph(n,r))return void this.editor.execute("paragraph",{selection:n});if(n.isCollapsed)return;let c=0;n.getFirstRange().getMinimalFlatRanges().forEach(e=>{c+=(0,i.U9)(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(n,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(c),s.setSelection(n),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,o=t.document.selection,s=t.schema.getLimitElement(o);if(!(o.isCollapsed&&o.containsEntireContent(s)))return!1;if(!t.schema.checkChild(s,"paragraph"))return!1;const i=s.getChild(0);return!i||!i.is("element","paragraph")}_replaceEntireContentWithParagraph(e){const t=this.editor.model,o=t.document.selection,s=t.schema.getLimitElement(o),i=e.createElement("paragraph");e.remove(e.createRangeIn(s)),e.insert(i,s),e.setSelection(i,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const o=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;const s=e.getFirstPosition(),i=o.schema.getLimitElement(s),n=i.getChild(0);return s.parent==n&&(!!e.containsEntireContent(n)&&(!!o.schema.checkChild(i,"paragraph")&&"paragraph"!=n.name))}}const _="word",b="selection",w="backward",k="forward",v={deleteContent:{unit:b,direction:w},deleteContentBackward:{unit:"codePoint",direction:w},deleteWordBackward:{unit:_,direction:w},deleteHardLineBackward:{unit:b,direction:w},deleteSoftLineBackward:{unit:b,direction:w},deleteContentForward:{unit:"character",direction:k},deleteWordForward:{unit:_,direction:k},deleteHardLineForward:{unit:b,direction:k},deleteSoftLineForward:{unit:b,direction:k}};class y extends a.nun{constructor(e){super(e);const t=e.document;let o=0;t.on("keydown",()=>{o++}),t.on("keyup",()=>{o=0}),t.on("beforeinput",(s,n)=>{if(!this.isEnabled)return;const{targetRanges:r,domEvent:c,inputType:l}=n,d=v[l];if(!d)return;const u={direction:d.direction,unit:d.unit,sequence:o};u.unit==b&&(u.selectionToRemove=e.createSelection(r[0])),"deleteContentBackward"===l&&(i._K.isAndroid&&(u.sequence=1),function(e){if(1!=e.length||e[0].isCollapsed)return!1;const t=e[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let o=0;for(const{nextPosition:e,item:s}of t){if(e.parent.is("$text")){const t=e.parent.data,s=e.offset;if((0,i.P5)(t,s)||(0,i.Iw)(t,s)||(0,i.SQ)(t,s))continue;o++}else(s.is("containerElement")||s.is("emptyElement"))&&o++;if(o>1)return!0}return!1}(r)&&(u.unit=b,u.selectionToRemove=e.createSelection(r)));const h=new a.cJK(t,"delete",r[0]);t.fire(h,new a.Nu4(e,c,u)),h.stop.called&&s.stop()}),i._K.isBlink&&function(e){const t=e.view,o=t.document;let s=null,n=!1;function r(e){return e==i.uP.backspace||e==i.uP.delete}function c(e){return e==i.uP.backspace?w:k}o.on("keydown",(e,{keyCode:t})=>{s=t,n=!1}),o.on("keyup",(i,{keyCode:l,domEvent:d})=>{const u=o.selection,h=e.isEnabled&&l==s&&r(l)&&!u.isCollapsed&&!n;if(s=null,h){const e=u.getFirstRange(),s=new a.cJK(o,"delete",e),i={unit:b,direction:c(l),selectionToRemove:u};o.fire(s,new a.Nu4(t,d,i))}}),o.on("beforeinput",(e,{inputType:t})=>{const o=v[t];r(s)&&o&&o.direction==c(s)&&(n=!0)},{priority:"high"}),o.on("beforeinput",(e,{inputType:t,data:o})=>{s==i.uP.delete&&"insertText"==t&&""==o&&e.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class x extends s.k_{_undoOnBackspace;static get pluginName(){return"Delete"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.editing.view,o=t.document,s=e.model.document;t.addObserver(y),this._undoOnBackspace=!1;const n=new f(e,"forward");e.commands.add("deleteForward",n),e.commands.add("forwardDelete",n),e.commands.add("delete",new f(e,"backward")),this.listenTo(o,"delete",(s,i)=>{o.isComposing||i.preventDefault();const{direction:n,sequence:r,selectionToRemove:c,unit:l}=i,d="forward"===n?"deleteForward":"delete",u={sequence:r};if("selection"==l){const t=Array.from(c.getRanges()).map(t=>e.editing.mapper.toModelRange(t)).map(t=>(0,a.ghV)(t,e.model.schema)||t);u.selection=e.model.createSelection(t)}else u.unit=l;e.execute(d,u),t.scrollToTheSelection()},{priority:"low"}),this.listenTo(o,"keydown",(n,r)=>{if(o.isComposing||r.keyCode!=i.uP.backspace||!s.selection.isCollapsed)return;const c=e.model.schema.getLimitElement(s.selection),l=e.model.createPositionAt(c,0);if(l.isTouching(s.selection.getFirstPosition())){r.preventDefault();const s=e.model.schema.getNearestSelectionRange(l,"forward");if(!s)return;const i=t.createSelection(e.editing.mapper.toViewRange(s)),n=i.getFirstRange(),c=new a.cJK(document,"delete",n),d={unit:"selection",direction:"backward",selectionToRemove:i};o.fire(c,new a.Nu4(t,r.domEvent,d))}}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(o,"delete",(t,o)=>{this._undoOnBackspace&&"backward"==o.direction&&1==o.sequence&&"codePoint"==o.unit&&(this._undoOnBackspace=!1,e.execute("undo"),o.preventDefault(),t.stop())},{context:"$capture"}),this.listenTo(s,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class A extends s.k_{static get requires(){return[h,x]}static get pluginName(){return"Typing"}static get isOfficialPlugin(){return!0}}function C(e,t){let o=e.start;return{text:Array.from(e.getWalker({ignoreElementEnd:!1})).reduce((e,{item:s})=>s.is("$text")||s.is("$textProxy")?e+s.data:(o=t.createPositionAfter(s),""),""),range:t.createRange(o,e.end)}}class E extends((0,i.VM)()){model;testCallback;_hasMatch;constructor(e,t){super(),this.model=e,this.testCallback=t,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",(t,{directChange:o})=>{o&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(e,"change:data",(e,t)=>{!t.isUndo&&t.isLocal&&this._evaluateTextBeforeSelection("data",{batch:t})})}_evaluateTextBeforeSelection(e,t={}){const o=this.model,s=o.document.selection,i=o.createRange(o.createPositionAt(s.focus.parent,0),s.focus),{text:n,range:r}=C(i,o),a=this.testCallback(n);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){const o=Object.assign(t,{text:n,range:r});"object"==typeof a&&Object.assign(o,a),this.fire(`matched:${e}`,o)}}}class S extends s.k_{attributes;_overrideUid;_isNextGravityRestorationSkipped=!1;static get pluginName(){return"TwoStepCaretMovement"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this.attributes=new Set,this._overrideUid=null}init(){const e=this.editor,t=e.model,o=e.editing.view,s=e.locale,n=t.document.selection;this.listenTo(o.document,"arrowKey",(e,t)=>{if(!n.isCollapsed)return;if(t.shiftKey||t.altKey||t.ctrlKey)return;const o=t.keyCode==i.uP.arrowright,r=t.keyCode==i.uP.arrowleft;if(!o&&!r)return;const a=s.contentLanguageDirection;let c=!1;c="ltr"===a&&o||"rtl"===a&&r?this._handleForwardMovement(t):this._handleBackwardMovement(t),!0===c&&e.stop()},{context:"$text",priority:"highest"}),this.listenTo(n,"change:range",(e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&I(n.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,o=this.editor.model,s=o.document.selection,i=s.getFirstPosition();return!this._isGravityOverridden&&((!i.isAtStart||!T(s,t))&&(!!I(i,t)&&(e&&V(e),T(s,t)&&I(i,t,!0)?M(o,t):this._overrideGravity(),!0)))}_handleBackwardMovement(e){const t=this.attributes,o=this.editor.model,s=o.document.selection,i=s.getFirstPosition();return this._isGravityOverridden?(e&&V(e),this._restoreGravity(),I(i,t,!0)?M(o,t):P(o,t,i),!0):i.isAtStart?!!T(s,t)&&(e&&V(e),P(o,t,i),!0):!T(s,t)&&I(i,t,!0)?(e&&V(e),P(o,t,i),!0):!!O(i,t)&&(i.isAtEnd&&!T(s,t)&&I(i,t)?(e&&V(e),P(o,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const e=this.editor,t=e.model,o=t.document.selection,s=e.editing.view.document;e.editing.view.addObserver(a.q$Y),e.editing.view.addObserver(a.Y2A);let i=!1,n=!1;this.listenTo(s,"touchstart",()=>{n=!1,i=!0}),this.listenTo(s,"mousedown",()=>{n=!0}),this.listenTo(s,"selectionChange",()=>{const e=this.attributes;if(!n&&!i)return;if(n=!1,i=!1,!o.isCollapsed)return;if(!T(o,e))return;const s=o.getFirstPosition();I(s,e)&&(s.isAtStart||I(s,e,!0)?M(t,e):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection,o=this.attributes;this.listenTo(e,"insertContent",()=>{const s=t.getFirstPosition();T(t,o)&&I(s,o)&&M(e,o)},{priority:"low"})}_handleDeleteContentAfterNode(){const e=this.editor,t=e.model,o=t.document.selection,s=e.editing.view;let i=!1,n=!1;this.listenTo(s.document,"delete",(e,t)=>{i="backward"===t.direction},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{if(!i)return;const e=o.getFirstPosition();n=T(o,this.attributes)&&!O(e,this.attributes)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{i&&(i=!1,n||e.model.enqueueChange(()=>{const e=o.getFirstPosition();T(o,this.attributes)&&I(e,this.attributes)&&(e.isAtStart||I(e,this.attributes,!0)?M(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 T(e,t){for(const o of t)if(e.hasAttribute(o))return!0;return!1}function P(e,t,o){const s=o.nodeBefore;e.change(o=>{if(s){const t=[],i=e.schema.isObject(s)&&e.schema.isInline(s);for(const[o,n]of s.getAttributes())!e.schema.checkAttribute("$text",o)||i&&!1===e.schema.getAttributeProperties(o).copyFromObject||t.push([o,n]);o.setSelectionAttribute(t)}else o.removeSelectionAttribute(t)})}function M(e,t){e.change(e=>{e.removeSelectionAttribute(t)})}function V(e){e.preventDefault()}function O(e,t){return I(e.getShiftedBy(-1),t)}function I(e,t,o=!1){const{nodeBefore:s,nodeAfter:i}=e;for(const e of t){const t=s?s.getAttribute(e):void 0,n=i?i.getAttribute(e):void 0;if((!o||void 0!==t&&void 0!==n)&&n!==t)return!0}return!1}var R=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/string/escapeRegExp.mjs");const j={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:H('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:H("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:H("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:H('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:H('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:H("'"),to:[null,"‚",null,"’"]}},z={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},B=["symbols","mathematical","typography","quotes"];class N extends s.k_{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("typing",{transformations:{include:B}})}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{const t=e.anchor,o=!!t&&t.parent.is("element","codeBlock"),s=e.hasAttribute("code");this.isEnabled=!(o||s)}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const e=this.editor,t=e.model,o=e.plugins.get("Delete"),s=function(e){const t=e.extra||[],o=e.remove||[],s=e=>!o.includes(e);return function(e){const t=new Set;for(const o of e)if("string"==typeof o&&z[o])for(const e of z[o])t.add(e);else t.add(o);return Array.from(t)}(e.include.concat(t).filter(s)).filter(s).map(e=>"string"==typeof e&&j[e]?j[e]:e).filter(e=>"object"==typeof e).map(e=>({from:L(e.from),to:D(e.to)}))}(e.config.get("typing.transformations")),i=new E(e.model,e=>{for(const t of s){if(t.from.test(e))return{normalizedTransformation:t}}});i.on("matched:data",(e,s)=>{if(!s.batch.isTyping)return;const{from:i,to:n}=s.normalizedTransformation,r=i.exec(s.text),a=n(r.slice(1)),c=s.range;let l=r.index;t.enqueueChange(e=>{for(let o=1;o<r.length;o++){const s=r[o],i=a[o-1];if(null==i){l+=s.length;continue}const n=c.start.getShiftedBy(l),d=t.createRange(n,n.getShiftedBy(s.length)),u=F(n);t.insertContent(e.createText(i,u),d),l+=i.length}t.enqueueChange(()=>{o.requestUndoOnBackspace()})})}),i.bind("isEnabled").to(this)}}function L(e){return"string"==typeof e?new RegExp(`(${(0,R.N)(e)})$`):e}function D(e){return"string"==typeof e?()=>[e]:e instanceof Array?()=>e:e}function F(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function H(e){return new RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function q(e,t,o,s){return s.createRange(W(e,t,o,!0,s),W(e,t,o,!1,s))}function W(e,t,o,s,i){let n=e.textNode||(s?e.nodeBefore:e.nodeAfter),r=null;for(;n&&n.getAttribute(t)==o;)r=n,n=s?n.previousSibling:n.nextSibling;return r?i.createPositionAt(r,s?"before":"after"):e}function $(e,t,o,s){const i=e.editing.view,n=new Set;i.document.registerPostFixer(i=>{const r=e.model.document.selection;let a=!1;if(r.hasAttribute(t)){const c=q(r.getFirstPosition(),t,r.getAttribute(t),e.model),l=e.editing.mapper.toViewRange(c);for(const e of l.getItems())e.is("element",o)&&!e.hasClass(s)&&(i.addClass(s,e),n.add(e),a=!0)}return a}),e.conversion.for("editingDowncast").add(e=>{function t(){i.change(e=>{for(const t of n.values())e.removeClass(s,t),n.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"})})}},"../ckeditor5-ui/src/bindings/clickoutsidehandler.js":(e,t,o)=>{"use strict";function s({emitter:e,activator:t,callback:o,contextElements:s,listenerOptions:i}){e.listenTo(document,"mousedown",(e,i)=>{if(!t())return;const n="function"==typeof i.composedPath?i.composedPath():[],r="function"==typeof s?s():s;for(const e of r)if(e.contains(i.target)||n.includes(e))return;o()},i)}o.d(t,{w:()=>s})},"../ckeditor5-ui/src/bindings/preventdefault.js":(e,t,o)=>{"use strict";function s(e){return e.bindTemplate.to(t=>{t.target===e.element&&t.preventDefault()})}o.d(t,{w:()=>s})},"../ckeditor5-ui/src/button/buttonlabelview.js":(e,t,o)=>{"use strict";o.d(t,{e:()=>i});var s=o("../ckeditor5-ui/src/view.js");class i extends s.S{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")}]})}}},"../ckeditor5-ui/src/button/buttonview.js":(e,t,o)=>{"use strict";o.d(t,{_:()=>w});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-ui/src/icon/iconview.js"),n=o("../ckeditor5-ui/src/button/buttonlabelview.js"),r=o("../ckeditor5-utils/src/index.ts"),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),m=o.n(p),g=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),f=o.n(g),_=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/button/button.css"),b={attributes:{"data-cke":!0}};b.setAttributes=m(),b.insert=h().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=f();c()(_.A,b);_.A&&_.A.locals&&_.A.locals;class w extends s.S{children;labelView;iconView;keystrokeView;_focusDelayed=null;constructor(e,t=new n.e){super(e);const o=this.bindTemplate,s=(0,r.Ld)();this.set("_ariaPressed",!1),this.set("_ariaChecked",!1),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${s}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(t),this.iconView=new i.L,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.iconView.bind("content").to(this,"icon"),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const a={tag:"button",attributes:{class:["ck","ck-button",o.to("class"),o.if("isEnabled","ck-disabled",e=>!e),o.if("isVisible","ck-hidden",e=>!e),o.to("isOn",e=>e?"ck-on":"ck-off"),o.if("withText","ck-button_with-text"),o.if("withKeystroke","ck-button_with-keystroke")],role:o.to("role"),type:o.to("type",e=>e||"button"),tabindex:o.to("tabindex"),"aria-checked":o.to("_ariaChecked"),"aria-pressed":o.to("_ariaPressed"),"aria-label":o.to("ariaLabel"),"aria-labelledby":o.to("ariaLabelledBy"),"aria-disabled":o.if("isEnabled",!0,e=>!e),"data-cke-tooltip-text":o.to("_tooltipString"),"data-cke-tooltip-position":o.to("tooltipPosition")},children:this.children,on:{click:o.to(e=>{this.isEnabled?this.fire("execute"):e.preventDefault()})}};this.bind("_ariaPressed").to(this,"isOn",this,"isToggleable",this,"role",(e,t,o)=>!(!t||k(o))&&String(!!e)),this.bind("_ariaChecked").to(this,"isOn",this,"isToggleable",this,"role",(e,t,o)=>!(!t||!k(o))&&String(!!e)),r._K.isSafari&&(this._focusDelayed||(this._focusDelayed=(0,r.cb)(()=>this.focus(),0)),a.on.mousedown=o.to(()=>{this._focusDelayed()}),a.on.mouseup=o.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(a)}render(){super.render(),this.icon&&this.children.add(this.iconView),this.on("change:icon",(e,t,o,s)=>{o&&!s?this.children.add(this.iconView,0):!o&&s&&this.children.remove(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 s.S;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>(0,r.YA)(e))}]}),e}_getTooltipString(e,t,o){return e?"string"==typeof e?e:(o&&(o=(0,r.YA)(o)),e instanceof Function?e(t,o):`${t}${o?` (${o})`:""}`):""}}function k(e){switch(e){case"radio":case"checkbox":case"option":case"switch":case"menuitemcheckbox":case"menuitemradio":return!0;default:return!1}}},"../ckeditor5-ui/src/button/listitembuttonview.js":(e,t,o)=>{"use strict";o.d(t,{F:()=>v,$:()=>k});var s=o("../ckeditor5-icons/theme/icons/check.svg"),i=o("../ckeditor5-ui/src/button/buttonview.js"),n=o("../ckeditor5-ui/src/button/buttonlabelview.js"),r=o("../ckeditor5-ui/src/icon/iconview.js"),a=o("../ckeditor5-ui/src/view.js"),c=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),l=o.n(c),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),g=o.n(m),f=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),_=o.n(f),b=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/button/listitembutton.css"),w={attributes:{"data-cke":!0}};w.setAttributes=g(),w.insert=p().bind(null,"head"),w.domAPI=u(),w.insertStyleElement=_();l()(b.A,w);b.A&&b.A.locals&&b.A.locals;class k extends i._{_checkIconHolderView=new v;constructor(e,t=new n.e){super(e,t),this.set({hasCheckSpace:!1,_hasCheck:this.isToggleable});const o=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-list-item-button",o.if("isToggleable","ck-list-item-button_toggleable")]}}),this.bind("_hasCheck").to(this,"hasCheckSpace",this,"isToggleable",(e,t)=>e||t)}render(){super.render(),this._hasCheck&&this.children.add(this._checkIconHolderView,0),this._watchCheckIconHolderMount()}_watchCheckIconHolderMount(){this._checkIconHolderView.bind("isOn").to(this,"isOn",e=>this.isToggleable&&e),this.on("change:_hasCheck",(e,t,o)=>{const{children:s,_checkIconHolderView:i}=this;o?s.add(i,0):s.remove(i)})}}class v extends a.S{children;_checkIconView=this._createCheckIconView();constructor(){super();const e=this.bindTemplate;this.children=this.createCollection(),this.set("isOn",!1),this.setTemplate({tag:"span",children:this.children,attributes:{class:["ck","ck-list-item-button__check-holder",e.to("isOn",e=>e?"ck-on":"ck-off")]}})}render(){super.render(),this.isOn&&this.children.add(this._checkIconView,0),this._watchCheckIconMount()}_watchCheckIconMount(){this.on("change:isOn",(e,t,o)=>{const{children:s,_checkIconView:i}=this;o&&!s.has(i)?s.add(i):!o&&s.has(i)&&s.remove(i)})}_createCheckIconView(){const e=new r.L;return e.content=s.A,e.extendTemplate({attributes:{class:"ck-list-item-button__check-icon"}}),e}}},"../ckeditor5-ui/src/button/switchbuttonview.js":(e,t,o)=>{"use strict";o.d(t,{W:()=>_});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-ui/src/button/buttonview.js"),n=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=o.n(n),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),m=o.n(p),g=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/button/switchbutton.css"),f={attributes:{"data-cke":!0}};f.setAttributes=h(),f.insert=d().bind(null,"head"),f.domAPI=c(),f.insertStyleElement=m();r()(g.A,f);g.A&&g.A.locals&&g.A.locals;class _ extends i._{toggleSwitchView;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 s.S;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}},"../ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js":(e,t,o)=>{"use strict";o.d(t,{l:()=>r});var s=o("../ckeditor5-icons/theme/icons/dropdown-arrow.svg"),i=o("../ckeditor5-ui/src/button/buttonview.js"),n=o("../ckeditor5-ui/src/icon/iconview.js");class r extends i._{arrowView;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 n.L;return e.content=s.A,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}},"../ckeditor5-ui/src/dropdown/button/splitbuttonview.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>w});var s=o("../ckeditor5-icons/theme/icons/dropdown-arrow.svg"),i=o("../ckeditor5-utils/src/index.ts"),n=o("../ckeditor5-ui/src/view.js"),r=o("../ckeditor5-ui/src/button/buttonview.js"),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),m=o.n(p),g=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),f=o.n(g),_=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/splitbutton.css"),b={attributes:{"data-cke":!0}};b.setAttributes=m(),b.insert=h().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=f();c()(_.A,b);_.A&&_.A.locals&&_.A.locals;class w extends n.S{children;actionView;arrowView;keystrokes;focusTracker;constructor(e,t){super(e);const o=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(t),this.arrowView=this._createArrowView(),this.keystrokes=new i.EP,this.focusTracker=new i.$x,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",o.to("class"),o.if("isVisible","ck-hidden",e=>!e),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())}),this.keystrokes.set("arrowleft",(e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(e){const t=e||new r._;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 r._,t=e.bindTemplate;return e.icon=s.A,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}}},"../ckeditor5-ui/src/dropdown/dropdownpanelview.js":(e,t,o)=>{"use strict";o.d(t,{V:()=>n});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-utils/src/index.ts");class n extends s.S{children;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=>{const t=e.target;t instanceof Element&&"input"===t.tagName.toLocaleLowerCase()||e.preventDefault()})}})}focus(){if(this.children.length){const e=this.children.first;"function"==typeof e.focus?e.focus():(0,i.FF)("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()}}}},"../ckeditor5-ui/src/dropdown/dropdownview.js":(e,t,o)=>{"use strict";o.d(t,{B:()=>_});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-utils/src/index.ts"),n=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=o.n(n),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),m=o.n(p),g=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/dropdown.css"),f={attributes:{"data-cke":!0}};f.setAttributes=h(),f.insert=d().bind(null,"head"),f.domAPI=c(),f.insertStyleElement=m();r()(g.A,f);g.A&&g.A.locals&&g.A.locals;class _ extends s.S{buttonView;panelView;focusTracker;keystrokes;listView;toolbarView;menuView;constructor(e,t,o){super(e);const s=this.bindTemplate;this.buttonView=t,this.panelView=o,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new i.EP,this.focusTracker=new i.$x,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",s.to("class"),s.if("isEnabled","ck-disabled",e=>!e)],id:s.to("id"),"aria-describedby":s.to("ariaDescribedById")},children:[t,o]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":s.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.on("change:isOpen",(e,t,o)=>{if(o)if("auto"===this.panelPosition){const e=_._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=e?e.name:this._defaultPanelPositionName}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const e=(e,t)=>{this.isOpen&&(this.isOpen=!1,t())};this.keystrokes.set("arrowdown",(e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())}),this.keystrokes.set("arrowright",(e,t)=>{this.isOpen&&t()}),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:e,north:t,southEast:o,southWest:s,northEast:i,northWest:n,southMiddleEast:r,southMiddleWest:a,northMiddleEast:c,northMiddleWest:l}=_.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[o,s,r,a,e,i,n,c,l,t]:[s,o,a,r,e,n,i,l,c,t]}get _defaultPanelPositionName(){return"rtl"===this.locale.uiLanguageDirection?"sw":"se"}static 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"})};static _getOptimalPosition=i.W}},"../ckeditor5-ui/src/dropdown/menu/dropdownmenubehaviors.js":(e,t,o)=>{"use strict";o.d(t,{U:()=>n,y:()=>i});var s=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistitemview.js");const i={toggleMenusAndFocusItemsOnHover(e){e.on("menu:mouseenter",t=>{const[o]=t.path;t.source.focus();for(const i of e.menus){const e=o instanceof s.p&&o.childView===i;i.isOpen=(t.path.includes(i)||e)&&i.isEnabled}})},closeMenuWhenAnotherOnTheSameLevelOpens(e){e.on("menu:change:isOpen",(t,o,s)=>{if(!s)return;const i=t.source;for(const t of e.menus)i.parentMenuView===t.parentMenuView&&i!==t&&(t.isOpen=!1)})}},n={openOnArrowRightKey(e){const t="rtl"===e.locale.uiLanguageDirection?"arrowleft":"arrowright";e.keystrokes.set(t,(t,o)=>{e.focusTracker.focusedElement===e.buttonView.element&&e.isEnabled&&(e.isOpen||(e.isOpen=!0),e.panelView.focus(),o())})},openOnButtonClick(e){e.buttonView.on("execute",()=>{e.isEnabled&&(e.isOpen=!0)})},openAndFocusOnEnterKeyPress(e){e.keystrokes.set("enter",(t,o)=>{e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen=!0,e.panelView.focus(),o())})},closeOnArrowLeftKey(e){const t="rtl"===e.locale.uiLanguageDirection?"arrowright":"arrowleft";e.keystrokes.set(t,(t,o)=>{e.isOpen&&(e.focus(),e.isOpen=!1,o())})},closeOnEscKey(e){e.keystrokes.set("esc",(t,o)=>{e.isOpen&&(e.focus(),e.isOpen=!1,o())})},closeOnParentClose(e,t){t.on("change:isOpen",(o,s,i)=>{i||o.source!==t||(e.isOpen=!1)})}}},"../ckeditor5-ui/src/dropdown/menu/dropdownmenubuttonview.js":(e,t,o)=>{"use strict";o.d(t,{q:()=>b});var s=o("../ckeditor5-icons/theme/icons/dropdown-arrow.svg"),i=o("../ckeditor5-ui/src/icon/iconview.js"),n=o("../ckeditor5-ui/src/button/listitembuttonview.js"),r=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),a=o.n(r),c=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),l=o.n(c),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),g=o.n(m),f=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenubutton.css"),_={attributes:{"data-cke":!0}};_.setAttributes=p(),_.insert=u().bind(null,"head"),_.domAPI=l(),_.insertStyleElement=g();a()(f.A,_);f.A&&f.A.locals&&f.A.locals;class b extends n.${arrowView;constructor(e){super(e);const t=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-dropdown-menu-list__nested-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 i.L;return e.content=s.A,e.extendTemplate({attributes:{class:"ck-dropdown-menu-list__nested-menu__button__arrow"}}),e}}},"../ckeditor5-ui/src/dropdown/menu/dropdownmenulistitembuttonview.js":(e,t,o)=>{"use strict";o.d(t,{n:()=>f});var s=o("../ckeditor5-ui/src/button/buttonview.js"),i=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),n=o.n(i),r=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),a=o.n(r),c=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),l=o.n(c),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenulistitembutton.css"),g={attributes:{"data-cke":!0}};g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p();n()(m.A,g);m.A&&m.A.locals&&m.A.locals;class f extends s._{id;constructor(e,t,o){super(e),this.id=t,this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem",label:o}),this.extendTemplate({attributes:{class:["ck-dropdown-menu-list__nested-menu__item__button"]}})}}},"../ckeditor5-ui/src/dropdown/menu/dropdownmenulistitemview.js":(e,t,o)=>{"use strict";o.d(t,{p:()=>_});var s=o("../ckeditor5-ui/src/list/listitemview.js"),i=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistitembuttonview.js"),n=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=o.n(n),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),m=o.n(p),g=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenulistitem.css"),f={attributes:{"data-cke":!0}};f.setAttributes=h(),f.insert=d().bind(null,"head"),f.domAPI=c(),f.insertStyleElement=m();r()(g.A,f);g.A&&g.A.locals&&g.A.locals;class _ extends s.B{childView;constructor(e,t,o){super(e);const s=this.bindTemplate;this.childView=o,this.children.add(o),this.extendTemplate({attributes:{class:["ck-dropdown-menu-list__nested-menu__item"]},on:{mouseenter:s.to("mouseenter")}}),t&&(this.delegate("mouseenter").to(t),o instanceof i.n&&o.delegate("execute").to(t))}}},"../ckeditor5-ui/src/dropdown/menu/dropdownmenulistview.js":(e,t,o)=>{"use strict";o.d(t,{M:()=>i});var s=o("../ckeditor5-ui/src/list/listview.js");class i extends s.u{constructor(e){super(e);const t=this.bindTemplate;this.role="menu",this.set("isVisible",!0),this.extendTemplate({attributes:{class:["ck-dropdown-menu-list",t.if("isVisible","ck-hidden",e=>!e)]}})}}},"../ckeditor5-ui/src/dropdown/menu/dropdownmenunestedmenupanelview.js":(e,t,o)=>{"use strict";o.d(t,{E:()=>f});var s=o("../ckeditor5-ui/src/panel/balloon/balloonpanelview.js"),i=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),n=o.n(i),r=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),a=o.n(r),c=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),l=o.n(c),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenupanel.css"),g={attributes:{"data-cke":!0}};g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p();n()(m.A,g);m.A&&m.A.locals&&m.A.locals;class f extends s.J{constructor(e){super(e);const t=this.bindTemplate;this.set({isVisible:!1,position:"se",class:null,top:0,left:0}),this.extendTemplate({tag:"div",attributes:{class:["ck-reset","ck-dropdown-menu__nested-menu__panel"],tabindex:"-1"},on:{selectstart:t.to(e=>{"input"!==e.target.tagName.toLocaleLowerCase()&&e.preventDefault()})}})}focus(e=1){const{content:t}=this;t.length&&(1===e?t.first.focus():t.last.focus())}}},"../ckeditor5-ui/src/dropdown/menu/dropdownmenunestedmenuview.js":(e,t,o)=>{"use strict";o.d(t,{E:()=>y});var s=o("../ckeditor5-utils/src/index.ts"),i=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenubuttonview.js"),n=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistview.js"),r=o("../ckeditor5-ui/src/dropdown/menu/utils.js"),a=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenubehaviors.js"),c=o("../ckeditor5-ui/src/view.js"),l=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenunestedmenupanelview.js"),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),g=o.n(m),f=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),_=o.n(f),b=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),w=o.n(b),k=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenu.css"),v={attributes:{"data-cke":!0}};v.setAttributes=_(),v.insert=g().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=w();u()(k.A,v);k.A&&k.A.locals&&k.A.locals;class y extends c.S{static DELEGATED_EVENTS=["mouseenter","execute","change:isOpen"];id;buttonView;panelView;listView;focusTracker;keystrokes;_bodyCollection;constructor(e,t,o,r,a){super(e),this._bodyCollection=t,this.id=o,this.set({isOpen:!1,isEnabled:!0,panelPosition:"w",class:void 0,parentMenuView:null}),this.keystrokes=new s.EP,this.focusTracker=new s.$x,this.buttonView=new i.q(e),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.buttonView.label=r,this.panelView=new l.E(e),this.panelView.isVisible=!0,this.listView=new n.M(e),this.listView.bind("ariaLabel").to(this.buttonView,"label"),this.panelView.content.add(this.listView);const c=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown-menu-list__nested-menu",c.to("class"),c.if("isEnabled","ck-disabled",e=>!e)],role:"presentation"},children:[this.buttonView]}),this.parentMenuView=a,this.parentMenuView&&this._handleParentMenuView(),this._attachBehaviors()}get _panelPositions(){const{westSouth:e,eastSouth:t,westNorth:o,eastNorth:s}=r.X;return"ltr"===this.locale.uiLanguageDirection?[t,s,e,o]:[e,o,t,s]}render(){super.render(),this.panelView.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.focusTracker.add(this.listView),this.keystrokes.listenTo(this.element),this._mountPanelOnOpen()}destroy(){this._removePanelFromBody(),this.panelView.destroy(),super.destroy()}focus(){this.buttonView.focus()}_handleParentMenuView(){this.delegate(...y.DELEGATED_EVENTS).to(this.parentMenuView),a.U.closeOnParentClose(this,this.parentMenuView)}_attachBehaviors(){a.U.openOnButtonClick(this),a.U.openAndFocusOnEnterKeyPress(this),a.U.openOnArrowRightKey(this),a.U.closeOnEscKey(this),a.U.closeOnArrowLeftKey(this)}_mountPanelOnOpen(){const{panelView:e}=this;this.on("change:isOpen",(t,o,s)=>{t.source===this&&(s||!this._bodyCollection.has(e)?s&&!this._bodyCollection.has(e)&&this._addPanelToBody():this._removePanelFromBody())})}_removePanelFromBody(){const{panelView:e,keystrokes:t}=this;this._bodyCollection.has(e)&&(this._bodyCollection.remove(e),t.stopListening(e.element))}_addPanelToBody(){const{panelView:e,buttonView:t,keystrokes:o}=this;this._bodyCollection.has(e)||(this._bodyCollection.add(e),o.listenTo(e.element),e.pin({positions:this._panelPositions,limiter:s.Sf.document.body,element:e.element,target:t.element,fitInViewport:!0}))}}},"../ckeditor5-ui/src/dropdown/menu/dropdownmenurootlistview.js":(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var s=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistitembuttonview.js"),i=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenunestedmenuview.js"),n=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistview.js"),r=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistitemview.js"),a=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenubehaviors.js");class c extends n.M{_definition;_cachedMenus=[];_cachedButtons=[];_bodyCollection;constructor(e,t,o){super(e),this._bodyCollection=t,this._definition=o,this.set("menuPanelClass",void 0)}get menus(){return Array.from(this._cachedMenus.values())}get buttons(){return Array.from(this._cachedButtons.values())}render(){this._createStructure(this._definition,null),super.render(),a.y.toggleMenusAndFocusItemsOnHover(this),a.y.closeMenuWhenAnotherOnTheSameLevelOpens(this)}closeMenus(){this.menus.forEach(e=>{e.isOpen=!1})}_createStructure(e,t){const o=[];for(const n of e){let e;"menu"in n?(e=new i.E(this.locale,this._bodyCollection,n.id,n.menu,t),e.panelView.bind("class").to(this,"menuPanelClass"),t||e.delegate(...i.E.DELEGATED_EVENTS).to(this,e=>`menu:${e}`),this._cachedMenus.push(e),this._createStructure(n.children,e)):(e=new s.n(this.locale,n.id,n.label),t||e.delegate("execute").to(this,"menu:execute"),this._cachedButtons.push(e));const a=new r.p(this.locale,t,e);t||a.delegate("mouseenter").to(this,"menu:mouseenter"),o.push(a)}(t?t.listView:this).items.addMany(o)}}},"../ckeditor5-ui/src/dropdown/menu/utils.js":(e,t,o)=>{"use strict";o.d(t,{X:()=>s});const s={eastSouth:e=>({top:e.top,left:e.right-5,name:"es"}),eastNorth:(e,t)=>({top:e.top-t.height+e.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+e.height,left:e.left-t.width+5,name:"wn"})}},"../ckeditor5-ui/src/dropdown/utils.js":(e,t,o)=>{"use strict";o.d(t,{O:()=>B,H2:()=>I,fM:()=>j,yu:()=>O,Zn:()=>L});var s=o("../ckeditor5-ui/src/dropdown/dropdownpanelview.js"),i=o("../ckeditor5-ui/src/dropdown/dropdownview.js"),n=o("../ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js"),r=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenurootlistview.js"),a=o("../ckeditor5-ui/src/toolbar/toolbarview.js"),c=o("../ckeditor5-ui/src/list/listview.js"),l=o("../ckeditor5-ui/src/list/listitemview.js"),d=o("../ckeditor5-ui/src/list/listseparatorview.js"),u=o("../ckeditor5-ui/src/dropdown/button/splitbuttonview.js"),h=o("../ckeditor5-ui/src/button/switchbuttonview.js"),p=o("../ckeditor5-ui/src/viewcollection.js"),m=o("../ckeditor5-ui/src/bindings/clickoutsidehandler.js"),g=o("../ckeditor5-utils/src/index.ts"),f=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),_=o.n(f),b=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),w=o.n(b),k=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),v=o.n(k),y=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),x=o.n(y),A=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),C=o.n(A),E=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css"),S={attributes:{"data-cke":!0}};S.setAttributes=x(),S.insert=v().bind(null,"head"),S.domAPI=w(),S.insertStyleElement=C();_()(E.A,S);E.A&&E.A.locals&&E.A.locals;var T=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dropdown/listdropdown.css"),P={attributes:{"data-cke":!0}};P.setAttributes=x(),P.insert=v().bind(null,"head"),P.domAPI=w(),P.insertStyleElement=C();_()(T.A,P);T.A&&T.A.locals&&T.A.locals;var M=o("../ckeditor5-ui/src/list/listitemgroupview.js"),V=o("../ckeditor5-ui/src/button/listitembuttonview.js");function O(e,t=n.l){const o="function"==typeof t?new t(e):t,r=new s.V(e),a=new i.B(e,o,r);return o.bind("isEnabled").to(a),o instanceof u.A?o.arrowView.bind("isOn").to(a,"isOpen"):o.bind("isOn").to(a,"isOpen"),function(e){(function(e){(0,m.w)({emitter:e,activator:()=>e.isRendered&&e.isOpen,callback:()=>{e.isOpen=!1},contextElements:()=>[e.element,...D(e.focusTracker).filter(t=>!e.element.contains(t))]})})(e),function(e){e.on("execute",t=>{t.source instanceof h.W||(e.isOpen=!1)})}(e),function(e){e.focusTracker.on("change:isFocused",(t,o,s)=>{!s&&e.isOpen&&(e.isOpen=!1)})}(e),function(e){e.keystrokes.set("arrowdown",(t,o)=>{e.isOpen&&(e.panelView.focus(),o())}),e.keystrokes.set("arrowup",(t,o)=>{e.isOpen&&(e.panelView.focusLast(),o())})}(e),function(e){e.on("change:isOpen",(t,o,s)=>{if(s)return;e.focusTracker.elements.some(e=>e.contains(g.Sf.document.activeElement))&&e.buttonView.focus()})}(e),function(e){e.on("change:isOpen",(t,o,s)=>{s&&e.panelView.focus()},{priority:"low"})}(e)}(a),a}function I(e,t,o,s={}){e.menuView=new r.A(e.locale,t,o),e.focusTracker.add(e.menuView),e.isOpen?R(e,s):e.once("change:isOpen",()=>{R(e,s)},{priority:"highest"})}function R(e,t){const o=e.menuView,s=e.locale.t;o.delegate("menu:execute").to(e,"execute"),o.listenTo(e,"change:isOpen",(e,t,s)=>{s||o.closeMenus()},{priority:"low"}),e.panelView.children.add(o);for(const t of o.menus)e.focusTracker.add(t);o.ariaLabel=t.ariaLabel||s("Dropdown menu")}function j(e,t,o={}){e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.isOpen?z(e,t,o):e.once("change:isOpen",()=>z(e,t,o),{priority:"highest"}),o.enableActiveItemFocusOnDropdownOpen&&L(e,()=>e.toolbarView.items.find(e=>e.isOn))}function z(e,t,o){const s=e.locale,i=s.t,n=e.toolbarView=new a.X3(s),r="function"==typeof t?t():t;n.ariaLabel=o.ariaLabel||i("Dropdown toolbar"),o.maxWidth&&(n.maxWidth=o.maxWidth),o.class&&(n.class=o.class),o.isCompact&&(n.isCompact=o.isCompact),o.isVertical&&(n.isVertical=!0),r instanceof p.s?n.items.bindTo(r).using(e=>e):n.items.addMany(r),e.panelView.children.add(n),e.focusTracker.add(n),n.items.delegate("execute").to(e)}function B(e,t,o={}){e.isOpen?N(e,t,o):e.once("change:isOpen",()=>N(e,t,o),{priority:"highest"}),L(e,()=>e.listView.items.find(e=>e instanceof l.B&&e.children.first.isOn))}function N(e,t,o){const s=e.locale,i=e.listView=new c.u(s),n="function"==typeof t?t():t;i.ariaLabel=o.ariaLabel,i.role=o.role,F(e,i.items,n,s),e.panelView.children.add(i),i.items.delegate("execute").to(e)}function L(e,t){e.on("change:isOpen",()=>{if(!e.isOpen)return;const o=t();o&&("function"==typeof o.focus?o.focus():(0,g.FF)("ui-dropdown-focus-child-on-open-child-missing-focus",{view:o}))},{priority:g.vx.low-10})}function D(e){return[...e.elements,...e.externalViews.flatMap(e=>D(e.focusTracker))]}function F(e,t,o,s){!function(e){let t=0;const o=e=>e instanceof l.B&&e.children.first instanceof V.$?e.children.first:null,s=e=>{const t=o(e);return t&&t.isToggleable?t:null},i=t=>{for(const s of e){const e=o(s);e&&(e.hasCheckSpace=t)}};e.on("change",(e,n)=>{const r=t>0;for(const e of n.removed)s(e)&&t--;for(const e of n.added){const s=o(e);s&&(s.isToggleable&&t++,s.hasCheckSpace=t>0)}const a=t>0;r!==a&&i(a)})}(t),t.bindTo(o).using(t=>{if("separator"===t.type)return new d.J(s);if("group"===t.type){const o=new M.m(s);return o.set({label:t.label}),F(e,o.items,t.items,s),o.items.delegate("execute").to(e),o}if("button"===t.type||"switchbutton"===t.type){const e="menuitemcheckbox"===t.model.role||"menuitemradio"===t.model.role,o=new l.B(s);let i;return"button"===t.type?(i=new V.$(s,t.labelView),i.set({isToggleable:e})):i=new h.W(s),i.bind(...Object.keys(t.model)).to(t.model),i.delegate("execute").to(o),o.children.add(i),o}return null})}},"../ckeditor5-ui/src/focuscycler.js":(e,t,o)=>{"use strict";o.d(t,{H:()=>i,eG:()=>a,tp:()=>r});var s=o("../ckeditor5-utils/src/index.ts");class i extends((0,s.Mm)()){focusables;focusTracker;keystrokeHandler;actions;constructor(e){if(super(),this.focusables=e.focusables,this.focusTracker=e.focusTracker,this.keystrokeHandler=e.keystrokeHandler,this.actions=e.actions,e.actions&&e.keystrokeHandler)for(const t in e.actions){let o=e.actions[t];"string"==typeof o&&(o=[o]);for(const s of o)e.keystrokeHandler.set(s,(e,o)=>{this[t](),o()},e.keystrokeHandlerOptions)}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(n)||null}get last(){return this.focusables.filter(n).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,o)=>{const s=t.element===this.focusTracker.focusedElement;return s&&(e=o),s}),e)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const e=this.next;e&&this.focusables.getIndex(e)===this.current||e===this.first?this.fire("forwardCycle"):this._focus(e,1)}focusPrevious(){const e=this.previous;e&&this.focusables.getIndex(e)===this.current||e===this.last?this.fire("backwardCycle"):this._focus(e,-1)}chain(e){const t=()=>null===this.current?null:this.focusables.get(this.current);this.listenTo(e,"forwardCycle",e=>{const o=t();this.focusNext(),o!==t()&&e.stop()},{priority:"low"}),this.listenTo(e,"backwardCycle",e=>{const o=t();this.focusPrevious(),o!==t()&&e.stop()},{priority:"low"})}unchain(e){this.stopListening(e)}_focus(e,t){e&&this.focusTracker.focusedElement!==e.element&&e.focus(t)}_getDomFocusableItem(e){const t=this.focusables.length;if(!t)return null;const o=this.current;if(null===o)return this[1===e?"first":"last"];let s=this.focusables.get(o),i=(o+t+e)%t;do{const o=this.focusables.get(i);if(n(o)){s=o;break}i=(i+t+e)%t}while(i!==o);return s}}function n(e){return r(e)&&(0,s.zN)(e.element)}function r(e){return!(!("focus"in e)||"function"!=typeof e.focus)}function a(e){return r(e)&&"focusCycler"in e&&e.focusCycler instanceof i}},"../ckeditor5-ui/src/icon/iconview.js":(e,t,o)=>{"use strict";o.d(t,{L:()=>_});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-utils/src/index.ts"),n=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=o.n(n),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),m=o.n(p),g=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/icon/icon.css"),f={attributes:{"data-cke":!0}};f.setAttributes=h(),f.insert=d().bind(null,"head"),f.domAPI=c(),f.insertStyleElement=m();r()(g.A,f);g.A&&g.A.locals&&g.A.locals;class _ extends s.S{static 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"];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"),"aria-hidden":!0}})}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");if(!e)throw new i.Yb("ui-iconview-invalid-svg",this);const t=e.getAttribute("viewBox");t&&(this.viewBox=t);for(const{name:t,value:o}of Array.from(e.attributes))_.presentationalAttributeNames.includes(t)&&this.element.setAttribute(t,o);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(e=>{e.style.fill=this.fillColor})}}},"../ckeditor5-ui/src/label/labelview.js":(e,t,o)=>{"use strict";o.d(t,{y:()=>_});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-utils/src/index.ts"),n=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),r=o.n(n),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),m=o.n(p),g=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/label/label.css"),f={attributes:{"data-cke":!0}};f.setAttributes=h(),f.insert=d().bind(null,"head"),f.domAPI=c(),f.insertStyleElement=m();r()(g.A,f);g.A&&g.A.locals&&g.A.locals;class _ extends s.S{id;constructor(e){super(e),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${(0,i.Ld)()}`;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")}]})}}},"../ckeditor5-ui/src/list/listitemgroupview.js":(e,t,o)=>{"use strict";o.d(t,{m:()=>a});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-ui/src/list/listview.js"),n=o("../ckeditor5-ui/src/label/labelview.js"),r=o("../ckeditor5-ui/src/list/listseparatorview.js");class a extends s.S{labelView;items;children;constructor(e,t=new n.y){super(e);const o=this.bindTemplate,s=new i.u(e);this.set({label:"",isVisible:!0}),this.labelView=t,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,s]),s.set({role:"group",ariaLabelledBy:t.id}),s.focusTracker.destroy(),s.keystrokes.destroy(),this.items=s.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",o.if("isVisible","ck-hidden",e=>!e)]},children:this.children})}focus(){if(this.items){const e=this.items.find(e=>!(e instanceof r.J));e&&e.focus()}}}},"../ckeditor5-ui/src/list/listitemview.js":(e,t,o)=>{"use strict";o.d(t,{B:()=>i});var s=o("../ckeditor5-ui/src/view.js");class i extends s.S{children;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()}}},"../ckeditor5-ui/src/list/listseparatorview.js":(e,t,o)=>{"use strict";o.d(t,{J:()=>i});var s=o("../ckeditor5-ui/src/view.js");class i extends s.S{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}},"../ckeditor5-ui/src/list/listview.js":(e,t,o)=>{"use strict";o.d(t,{u:()=>v});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-ui/src/focuscycler.js"),n=o("../ckeditor5-ui/src/list/listitemview.js"),r=o("../ckeditor5-ui/src/list/listitemgroupview.js"),a=o("../ckeditor5-ui/src/viewcollection.js"),c=o("../ckeditor5-utils/src/index.ts"),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),m=o.n(p),g=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),f=o.n(g),_=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),b=o.n(_),w=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/list/list.css"),k={attributes:{"data-cke":!0}};k.setAttributes=f(),k.insert=m().bind(null,"head"),k.domAPI=h(),k.insertStyleElement=b();d()(w.A,k);w.A&&w.A.locals&&w.A.locals;class v extends s.S{focusables;items;focusTracker;keystrokes;_focusCycler;_listItemGroupToChangeListeners=new WeakMap;constructor(e){super(e);const t=this.bindTemplate;this.focusables=new a.s,this.items=this.createCollection(),this.focusTracker=new c.$x,this.keystrokes=new c.EP,this._focusCycler=new i.H({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 r.m?this._registerFocusableItemsGroup(e):e instanceof n.B&&this._registerFocusableListItem(e);this.items.on("change",(e,t)=>{for(const e of t.removed)e instanceof r.m?this._deregisterFocusableItemsGroup(e):e instanceof n.B&&this._deregisterFocusableListItem(e);for(const e of Array.from(t.added).reverse())e instanceof r.m?this._registerFocusableItemsGroup(e,t.index):this._registerFocusableListItem(e,t.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(e,t){this.focusTracker.add(e.element),this.focusables.add(e,t)}_deregisterFocusableListItem(e){this.focusTracker.remove(e.element),this.focusables.remove(e)}_getOnGroupItemsChangeCallback(e){return(t,o)=>{for(const e of o.removed)this._deregisterFocusableListItem(e);for(const t of Array.from(o.added).reverse())this._registerFocusableListItem(t,this.items.getIndex(e)+o.index)}}_registerFocusableItemsGroup(e,t){Array.from(e.items).forEach((e,o)=>{const s=void 0!==t?t+o:void 0;this._registerFocusableListItem(e,s)});const o=this._getOnGroupItemsChangeCallback(e);this._listItemGroupToChangeListeners.set(e,o),e.items.on("change",o)}_deregisterFocusableItemsGroup(e){for(const t of e.items)this._deregisterFocusableListItem(t);e.items.off("change",this._listItemGroupToChangeListeners.get(e)),this._listItemGroupToChangeListeners.delete(e)}}},"../ckeditor5-ui/src/menubar/menubarmenulistitembuttonview.js":(e,t,o)=>{"use strict";o.d(t,{k:()=>i});var s=o("../ckeditor5-ui/src/button/listitembuttonview.js");o("../ckeditor5-ui/theme/components/menubar/menubarmenulistitembutton.css");class i extends s.${constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}},"../ckeditor5-ui/src/panel/balloon/balloonpanelview.js":(e,t,o)=>{"use strict";o.d(t,{J:()=>k});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-utils/src/index.ts"),n=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.mjs"),r=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),a=o.n(r),c=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),l=o.n(c),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),g=o.n(m),f=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/panel/balloonpanel.css"),_={attributes:{"data-cke":!0}};_.setAttributes=p(),_.insert=u().bind(null,"head"),_.domAPI=l(),_.insertStyleElement=g();a()(f.A,_);f.A&&f.A.locals&&f.A.locals;const b=(0,i.To)("px"),w={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class k extends s.S{content;_pinWhenIsVisibleCallback;_resizeObserver;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._resizeObserver=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",b),left:t.to("left",b)}},children:this.content})}destroy(){this.hide(),super.destroy()}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){const t=v(e.target);if(t&&!(0,i.zN)(t))return!1;this.show();const o=k.defaultPositions,s=Object.assign({},{element:this.element,positions:[o.southArrowNorth,o.southArrowNorthMiddleWest,o.southArrowNorthMiddleEast,o.southArrowNorthWest,o.southArrowNorthEast,o.northArrowSouth,o.northArrowSouthMiddleWest,o.northArrowSouthMiddleEast,o.northArrowSouthWest,o.northArrowSouthEast,o.viewportStickyNorth],limiter:i.Sf.document.body,fitInViewport:!0},e),n=k._getOptimalPosition(s)||w,r=parseInt(n.left),a=parseInt(n.top),c=n.name,l=n.config||{},{withArrow:d=!0}=l;return this.top=a,this.left=r,this.position=c,this.withArrow=d,!0}pin(e){this.unpin(),this._startPinning(e)&&(this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},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){if(!this.attachTo(e))return!1;let t=v(e.target);const o=e.limiter?v(e.limiter):i.Sf.document.body;if(this.listenTo(i.Sf.document,"scroll",(s,i)=>{const n=i.target,r=t&&n.contains(t),a=o&&n.contains(o);!r&&!a&&t&&o||this.attachTo(e)},{useCapture:!0}),this.listenTo(i.Sf.window,"resize",()=>{this.attachTo(e)}),!this._resizeObserver&&(t&&(0,i.KH)(t)&&(t=t.parentElement),t)){const e=()=>{(0,i.zN)(t)||this.unpin()};this._resizeObserver=new i.tb(t,e)}return!0}_stopPinning(){this.stopListening(i.Sf.document,"scroll"),this.stopListening(i.Sf.window,"resize"),this._resizeObserver&&(this._resizeObserver.destroy(),this._resizeObserver=null)}static generatePositions(e={}){const{sideOffset:t=k.arrowSideOffset,heightOffset:o=k.arrowHeightOffset,stickyVerticalOffset:s=k.stickyVerticalOffset,config:n}=e;return{northWestArrowSouthWest:(e,o)=>({top:r(e,o),left:e.left-t,name:"arrow_sw",...n&&{config:n}}),northWestArrowSouthMiddleWest:(e,o)=>({top:r(e,o),left:e.left-.25*o.width-t,name:"arrow_smw",...n&&{config:n}}),northWestArrowSouth:(e,t)=>({top:r(e,t),left:e.left-t.width/2,name:"arrow_s",...n&&{config:n}}),northWestArrowSouthMiddleEast:(e,o)=>({top:r(e,o),left:e.left-.75*o.width+t,name:"arrow_sme",...n&&{config:n}}),northWestArrowSouthEast:(e,o)=>({top:r(e,o),left:e.left-o.width+t,name:"arrow_se",...n&&{config:n}}),northArrowSouthWest:(e,o)=>({top:r(e,o),left:e.left+e.width/2-t,name:"arrow_sw",...n&&{config:n}}),northArrowSouthMiddleWest:(e,o)=>({top:r(e,o),left:e.left+e.width/2-.25*o.width-t,name:"arrow_smw",...n&&{config:n}}),northArrowSouth:(e,t)=>({top:r(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s",...n&&{config:n}}),northArrowSouthMiddleEast:(e,o)=>({top:r(e,o),left:e.left+e.width/2-.75*o.width+t,name:"arrow_sme",...n&&{config:n}}),northArrowSouthEast:(e,o)=>({top:r(e,o),left:e.left+e.width/2-o.width+t,name:"arrow_se",...n&&{config:n}}),northEastArrowSouthWest:(e,o)=>({top:r(e,o),left:e.right-t,name:"arrow_sw",...n&&{config:n}}),northEastArrowSouthMiddleWest:(e,o)=>({top:r(e,o),left:e.right-.25*o.width-t,name:"arrow_smw",...n&&{config:n}}),northEastArrowSouth:(e,t)=>({top:r(e,t),left:e.right-t.width/2,name:"arrow_s",...n&&{config:n}}),northEastArrowSouthMiddleEast:(e,o)=>({top:r(e,o),left:e.right-.75*o.width+t,name:"arrow_sme",...n&&{config:n}}),northEastArrowSouthEast:(e,o)=>({top:r(e,o),left:e.right-o.width+t,name:"arrow_se",...n&&{config:n}}),southWestArrowNorthWest:e=>({top:a(e),left:e.left-t,name:"arrow_nw",...n&&{config:n}}),southWestArrowNorthMiddleWest:(e,o)=>({top:a(e),left:e.left-.25*o.width-t,name:"arrow_nmw",...n&&{config:n}}),southWestArrowNorth:(e,t)=>({top:a(e),left:e.left-t.width/2,name:"arrow_n",...n&&{config:n}}),southWestArrowNorthMiddleEast:(e,o)=>({top:a(e),left:e.left-.75*o.width+t,name:"arrow_nme",...n&&{config:n}}),southWestArrowNorthEast:(e,o)=>({top:a(e),left:e.left-o.width+t,name:"arrow_ne",...n&&{config:n}}),southArrowNorthWest:e=>({top:a(e),left:e.left+e.width/2-t,name:"arrow_nw",...n&&{config:n}}),southArrowNorthMiddleWest:(e,o)=>({top:a(e),left:e.left+e.width/2-.25*o.width-t,name:"arrow_nmw",...n&&{config:n}}),southArrowNorth:(e,t)=>({top:a(e),left:e.left+e.width/2-t.width/2,name:"arrow_n",...n&&{config:n}}),southArrowNorthMiddleEast:(e,o)=>({top:a(e),left:e.left+e.width/2-.75*o.width+t,name:"arrow_nme",...n&&{config:n}}),southArrowNorthEast:(e,o)=>({top:a(e),left:e.left+e.width/2-o.width+t,name:"arrow_ne",...n&&{config:n}}),southEastArrowNorthWest:e=>({top:a(e),left:e.right-t,name:"arrow_nw",...n&&{config:n}}),southEastArrowNorthMiddleWest:(e,o)=>({top:a(e),left:e.right-.25*o.width-t,name:"arrow_nmw",...n&&{config:n}}),southEastArrowNorth:(e,t)=>({top:a(e),left:e.right-t.width/2,name:"arrow_n",...n&&{config:n}}),southEastArrowNorthMiddleEast:(e,o)=>({top:a(e),left:e.right-.75*o.width+t,name:"arrow_nme",...n&&{config:n}}),southEastArrowNorthEast:(e,o)=>({top:a(e),left:e.right-o.width+t,name:"arrow_ne",...n&&{config:n}}),westArrowEast:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.left-t.width-o,name:"arrow_e",...n&&{config:n}}),eastArrowWest:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.right+o,name:"arrow_w",...n&&{config:n}}),viewportStickyNorth:(e,t,o)=>{const r=new i.rw(i.Sf.document.body).getIntersection(o.getVisible());if(!r)return null;const a=r.getVisible();return e.getIntersection(a)&&a.top-e.top-s<t.height&&a.bottom-e.bottom<t.height?{top:a.top+s,left:e.left+e.width/2-t.width/2,name:"arrowless",config:{withArrow:!1,...n}}:null}};function r(e,t){return e.top-t.height-o}function a(e){return e.bottom+o}}static arrowSideOffset=25;static arrowHeightOffset=10;static stickyVerticalOffset=20;static _getOptimalPosition=i.W;static defaultPositions=k.generatePositions()}function v(e){return(0,n.v)(e)?e:(0,i._Z)(e)?e.commonAncestorContainer:"function"==typeof e?v(e()):null}},"../ckeditor5-ui/src/panel/balloon/contextualballoon.js":(e,t,o)=>{"use strict";o.d(t,{p:()=>C,d:()=>E});var s=o("../ckeditor5-ui/src/panel/balloon/balloonpanelview.js"),i=o("../ckeditor5-ui/src/view.js"),n=o("../ckeditor5-ui/src/button/buttonview.js"),r=o("../ckeditor5-core/src/index.ts"),a=o("../ckeditor5-utils/src/index.ts"),c=o("../ckeditor5-icons/theme/icons/previous-arrow.svg"),l=o("../ckeditor5-icons/theme/icons/next-arrow.svg"),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),g=o.n(m),f=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),_=o.n(f),b=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),w=o.n(b),k=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/panel/balloonrotator.css"),v={attributes:{"data-cke":!0}};v.setAttributes=_(),v.insert=g().bind(null,"head"),v.domAPI=p(),v.insertStyleElement=w();u()(k.A,v);k.A&&k.A.locals&&k.A.locals;var y=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/panel/fakepanel.css"),x={attributes:{"data-cke":!0}};x.setAttributes=_(),x.insert=g().bind(null,"head"),x.domAPI=p(),x.insertStyleElement=w();u()(y.A,x);y.A&&y.A.locals&&y.A.locals;const A=(0,a.To)("px");class C extends r.k_{positionLimiter;visibleStack;_viewToStack=new Map;_idToStack=new Map;_view=null;_rotatorView=null;_fakePanelsView=null;static get pluginName(){return"ContextualBalloon"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this.positionLimiter=()=>{const e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.decorate("getPositionOptions"),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 a.Yb("contextualballoon-add-view-exist",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const o=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),o.set(e.view,e),this._viewToStack.set(e.view,o),o===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new a.Yb("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.getPositionOptions()),this._fakePanelsView.updatePosition()}getPositionOptions(){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,top:this.editor.ui.viewportOffset.visualTop}})),e}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new a.Yb("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}_createPanelView(){this._view=new s.J(this.editor.locale),this.editor.ui.view.body.add(this._view),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 E(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>1),e.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(e,o)=>{if(o<2)return"";const s=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[s,o])}),e.buttonNextView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),e.buttonPrevView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),e}_createFakePanelsView(){const e=new S(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>=2?Math.min(e-1,2):0),e.listenTo(this.view,"change:top",()=>e.updatePosition()),e.listenTo(this.view,"change:left",()=>e.updatePosition()),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:o=!0,singleViewMode:s=!1}){this.view.class=t,this.view.withArrow=o,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}}class E extends i.S{focusTracker;buttonPrevView;buttonNextView;content;constructor(e){super(e);const t=e.t,o=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new a.$x,this.buttonPrevView=this._createButtonView(t("Previous"),c.A),this.buttonNextView=this._createButtonView(t("Next"),l.A),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",e=>e?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const o=new n._(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o}}class S extends i.S{content;_balloonPanelView;constructor(e,t){super(e);const o=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",e=>e?"":"ck-hidden")],style:{top:o.to("top",A),left:o.to("left",A),width:o.to("width",A),height:o.to("height",A)}},children:this.content}),this.on("change:numberOfPanels",(e,t,o,s)=>{o>s?this._addPanels(o-s):this._removePanels(s-o),this.updatePosition()})}_addPanels(e){for(;e--;){const e=new i.S;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:o,height:s}=new a.rw(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:o,height:s})}}}},"../ckeditor5-ui/src/template.js":(e,t,o)=>{"use strict";o.d(t,{Bj:()=>c,C:()=>l,LT:()=>u,df:()=>d});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-ui/src/viewcollection.js"),n=o("../ckeditor5-utils/src/index.ts"),r=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs"),a=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs");class c extends((0,n.Mm)()){ns;tag;text;attributes;children;eventListeners;_isRendered;_revertData;constructor(e){super(),Object.assign(this,w(b(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 n.Yb("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const o of t.children)C(o)?yield o:E(o)&&(yield*e(o))}(this)}static bind(e,t){return{to:(o,s)=>new d({eventNameOrFunction:o,attribute:o,observable:e,emitter:t,callback:s}),if:(o,s,i)=>new u({observable:e,emitter:t,attribute:o,valueIfTrue:s,callback:i})}}static extend(e,t){if(e._isRendered)throw new n.Yb("template-extend-render",[this,e]);x(e,w(b(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new n.Yb("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(""),h(this.text)?this._bindToObservable({schema:this.text,updater:g(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,o=e.revertData;for(const s in this.attributes){const i=t.getAttribute(s),n=this.attributes[s];o&&(o.attributes[s]=i);const r=T(n)?n[0].ns:null;if(h(n)){const a=T(n)?n[0].value:n;o&&M(s)&&a.unshift(i),this._bindToObservable({schema:a,updater:f(t,s,r),data:e})}else if("style"==s&&"string"!=typeof n[0])this._renderStyleAttribute(n[0],e);else{o&&i&&M(s)&&n.unshift(i);const e=n.map(e=>e&&e.value||e).reduce((e,t)=>e.concat(t),[]).reduce(v,"");A(e)||t.setAttributeNS(r,s,e)}}}_renderStyleAttribute(e,t){const o=t.node;for(const s in e){const i=e[s];h(i)?this._bindToObservable({schema:[i],updater:_(o,s),data:t}):p(s)?o.style.setProperty(s,i):o.style[s]=i}}_renderElementChildren(e){const t=e.node,o=e.intoFragment?document.createDocumentFragment():t,s=e.isApplying;let i=0;for(const r of this.children)if(S(r)){if(!s){r.setParent(t);for(const e of r)o.appendChild(e.element)}}else if(C(r))s||(r.isRendered||r.render(),o.appendChild(r.element));else if((0,n.Ll)(r))o.appendChild(r);else if(s){const t=e.revertData,s=P();t.children.push(s),r._renderNode({intoFragment:!1,node:o.childNodes[i++],isApplying:!0,revertData:s})}else o.appendChild(r.render());e.intoFragment&&t.appendChild(o)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const o=this.eventListeners[t].map(o=>{const[s,i]=t.split("@");return o.activateDomEventListener(s,i,e)});e.revertData&&e.revertData.bindings.push(o)}}_bindToObservable({schema:e,updater:t,data:o}){const s=o.revertData;m(e,t,o);const i=e.filter(e=>!A(e)).filter(e=>e.observable).map(s=>s.activateAttributeListener(e,t,o));s&&s.bindings.push(i)}_revertTemplateFromNode(e,t){for(const e of t.bindings)for(const t of e)t();if(t.text)return void(e.textContent=t.text);const o=e;for(const e in t.attributes){const s=t.attributes[e];null===s?o.removeAttribute(e):o.setAttribute(e,s)}for(let e=0;e<t.children.length;++e)this._revertTemplateFromNode(o.childNodes[e],t.children[e])}}class l{attribute;observable;emitter;callback;constructor(e){this.attribute=e.attribute,this.observable=e.observable,this.emitter=e.emitter,this.callback=e.callback}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,o){const s=()=>m(e,t,o);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,s),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,s)}}}class d extends l{eventNameOrFunction;constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,o){const s=(e,o)=>{t&&!o.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(o):this.observable.fire(this.eventNameOrFunction,o))};return this.emitter.listenTo(o.node,e,s),()=>{this.emitter.stopListening(o.node,e,s)}}}class u extends l{valueIfTrue;constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){return!A(super.getValue(e))&&(this.valueIfTrue||!0)}}function h(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(h):e instanceof l)}function p(e){return/^--[a-zA-Z_-][\w-]*$/.test(e)}function m(e,t,{node:o}){const s=function(e,t){return e.map(e=>e instanceof l?e.getValue(t):e)}(e,o);let i;i=1==e.length&&e[0]instanceof u?s[0]:s.reduce(v,""),A(i)?t.remove():t.set(i)}function g(e){return{set(t){e.textContent=t},remove(){e.textContent=""}}}function f(e,t,o){return{set(s){e.setAttributeNS(o,t,s)},remove(){e.removeAttributeNS(o,t)}}}function _(e,t){return{set(o){p(t)?e.style.setProperty(t,o):e.style[t]=o},remove(){p(t)?e.style.removeProperty(t):e.style[t]=null}}}function b(e){return(0,r.s)(e,e=>{if(e&&(e instanceof l||E(e)||C(e)||S(e)))return e})}function w(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=(0,n.$r)(e.text)}(e),e.on&&(e.eventListeners=function(e){for(const t in e)k(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(const t in e)e[t].value&&(e[t].value=(0,n.$r)(e[t].value)),k(e,t)}(e.attributes);const t=[];if(e.children)if(S(e.children))t.push(e.children);else for(const o of e.children)E(o)||C(o)||(0,n.Ll)(o)?t.push(o):t.push(new c(o));e.children=t}return e}function k(e,t){e[t]=(0,n.$r)(e[t])}function v(e,t){return A(t)?e:A(e)?t:`${e} ${t}`}function y(e,t){for(const o in t)e[o]?e[o].push(...t[o]):e[o]=t[o]}function x(e,t){if(t.attributes&&(e.attributes||(e.attributes={}),y(e.attributes,t.attributes)),t.eventListeners&&(e.eventListeners||(e.eventListeners={}),y(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 n.Yb("ui-template-extend-children-mismatch",e);let o=0;for(const s of t.children)x(e.children[o++],s)}}function A(e){return!e&&0!==e}function C(e){return e instanceof s.S}function E(e){return e instanceof c}function S(e){return e instanceof i.s}function T(e){return(0,a.G)(e[0])&&e[0].ns}function P(){return{children:[],bindings:[],attributes:{}}}function M(e){return"class"==e||"style"==e}},"../ckeditor5-ui/src/toolbar/normalizetoolbarconfig.js":(e,t,o)=>{"use strict";function s(e){if(Array.isArray(e))return{items:e,removeItems:[]};const t={items:[],removeItems:[]};return e?{...t,...e}:t}o.d(t,{f:()=>s})},"../ckeditor5-ui/src/toolbar/toolbarlinebreakview.js":(e,t,o)=>{"use strict";o.d(t,{C:()=>i});var s=o("../ckeditor5-ui/src/view.js");class i extends s.S{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}},"../ckeditor5-ui/src/toolbar/toolbarseparatorview.js":(e,t,o)=>{"use strict";o.d(t,{I:()=>i});var s=o("../ckeditor5-ui/src/view.js");class i extends s.S{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}},"../ckeditor5-ui/src/toolbar/toolbarview.js":(e,t,o)=>{"use strict";o.d(t,{AM:()=>j,NV:()=>I,X3:()=>R});var s=o("../ckeditor5-ui/src/view.js"),i=o("../ckeditor5-ui/src/focuscycler.js"),n=o("../ckeditor5-ui/src/toolbar/toolbarseparatorview.js"),r=o("../ckeditor5-ui/src/toolbar/toolbarlinebreakview.js"),a=o("../ckeditor5-ui/src/bindings/preventdefault.js"),c=o("../ckeditor5-ui/src/dropdown/utils.js"),l=o("../ckeditor5-ui/src/toolbar/normalizetoolbarconfig.js"),d=o("../ckeditor5-utils/src/index.ts"),u=o("../ckeditor5-icons/theme/icons/align-left.svg"),h=o("../ckeditor5-icons/theme/icons/bold.svg"),p=o("../ckeditor5-icons/theme/icons/import-export.svg"),m=o("../ckeditor5-icons/theme/icons/paragraph.svg"),g=o("../ckeditor5-icons/theme/icons/plus.svg"),f=o("../ckeditor5-icons/theme/icons/text.svg"),_=o("../ckeditor5-icons/theme/icons/three-vertical-dots.svg"),b=o("../ckeditor5-icons/theme/icons/pilcrow.svg"),w=o("../ckeditor5-icons/theme/icons/drag-indicator.svg"),k=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs"),v=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),y=o.n(v),x=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),A=o.n(x),C=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),E=o.n(C),S=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),T=o.n(S),P=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),M=o.n(P),V=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/toolbar/toolbar.css"),O={attributes:{"data-cke":!0}};O.setAttributes=T(),O.insert=E().bind(null,"head"),O.domAPI=A(),O.insertStyleElement=M();y()(V.A,O);V.A&&V.A.locals&&V.A.locals;const I=(()=>({alignLeft:u.A,bold:h.A,importExport:p.A,paragraph:m.A,plus:g.A,text:f.A,threeVerticalDots:_.A,pilcrow:b.A,dragIndicator:w.A}))();class R extends s.S{options;items;focusTracker;keystrokes;itemsView;children;focusables;_focusCycler;_behavior;constructor(e,t){super(e);const o=this.bindTemplate,s=this.t;this.options=t||{},this.set("ariaLabel",s("Editor toolbar")),this.set("maxWidth","auto"),this.set("role","toolbar"),this.set("isGrouping",!!this.options.shouldGroupWhenFull),this.items=this.createCollection(),this.focusTracker=new d.$x,this.keystrokes=new d.EP,this.set("class",void 0),this.set("isCompact",!1),this.set("isVertical",!1),this.itemsView=new j(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const n="rtl"===e.uiLanguageDirection;this._focusCycler=new i.H({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[n?"arrowright":"arrowleft","arrowup"],focusNext:[n?"arrowleft":"arrowright","arrowdown"]}});const r=["ck","ck-toolbar",o.to("class"),o.if("isCompact","ck-toolbar_compact"),o.if("isGrouping","ck-toolbar_grouping"),o.if("isVertical","ck-toolbar_vertical")];this.options.shouldGroupWhenFull&&this.options.isFloating&&r.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:r,role:o.to("role"),"aria-label":o.to("ariaLabel"),style:{maxWidth:o.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(0,a.w)(this)}}),this._behavior=this.options.shouldGroupWhenFull?new B(this):new z(this)}render(){super.render(),this.focusTracker.add(this.element);for(const e of this.items)this.focusTracker.add(e);this.items.on("add",(e,t)=>{this.focusTracker.add(t)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t,o){this.items.addMany(this._buildItemsFromConfig(e,t,o))}switchBehavior(e){this._behavior.type!==e&&(this._behavior.destroy(),this.itemsView.children.clear(),this.focusables.clear(),"dynamic"===e?(this._behavior=new B(this),this._behavior.render(this),this._behavior.refreshItems()):(this._behavior=new z(this),this._behavior.render(this)))}_buildItemsFromConfig(e,t,o){const s=(0,l.f)(e),i=o||s.removeItems;return this._cleanItemsConfiguration(s.items,t,i).map(e=>(0,k.G)(e)?this._createNestedToolbarDropdown(e,t,i):"|"===e?new n.I:"-"===e?new r.C:t.create(e)).filter(e=>!!e)}_cleanItemsConfiguration(e,t,o){const s=e.filter((e,s,i)=>"|"===e||-1===o.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||((0,d.FF)("toolbarview-line-break-ignored-when-grouping-items",i),!1):!(!(0,k.G)(e)&&!t.has(e))||((0,d.FF)("toolbarview-item-unavailable",{item:e}),!1)));return this._cleanSeparatorsAndLineBreaks(s)}_cleanSeparatorsAndLineBreaks(e){const t=e=>"-"!==e&&"|"!==e,o=e.length,s=e.findIndex(t);if(-1===s)return[];const i=o-e.slice().reverse().findIndex(t);return e.slice(s,i).filter((e,o,s)=>{if(t(e))return!0;return!(o>0&&s[o-1]===e)})}_createNestedToolbarDropdown(e,t,o){let{label:s,icon:i,items:n,tooltip:r=!0,withText:a=!1}=e;if(n=this._cleanItemsConfiguration(n,t,o),!n.length)return null;const l=this.locale,u=(0,c.yu)(l);return s||(0,d.FF)("toolbarview-nested-toolbar-dropdown-missing-label",e),u.class="ck-toolbar__nested-toolbar-dropdown",u.buttonView.set({label:s,tooltip:r,withText:!!a}),!1!==i?u.buttonView.icon=I[i]||i||_.A:u.buttonView.withText=!0,(0,c.fM)(u,()=>u.toolbarView._buildItemsFromConfig(n,t,o)),u}}class j extends s.S{children;constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class z{type="static";constructor(e){e.isGrouping=!1,e.itemsView.children.bindTo(e.items).using(e=>e),e.focusables.bindTo(e.items).using(e=>(0,i.tp)(e)?e:null)}render(){}destroy(){}}class B{type="dynamic";view;viewChildren;viewFocusables;viewItemsView;viewFocusTracker;viewLocale;ungroupedItems;groupedItems;groupedItemsDropdown;resizeObserver=null;cachedPadding=null;shouldUpdateGroupingOnNextResize=!1;viewElement;constructor(e){this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.view.isGrouping=!0,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 o=t.index,s=Array.from(t.added);for(const e of t.removed)o>=this.ungroupedItems.length?this.groupedItems.remove(e):this.ungroupedItems.remove(e);for(let e=o;e<o+s.length;e++){const t=s[e-o];e>this.ungroupedItems.length?this.groupedItems.add(t,e-this.ungroupedItems.length):this.ungroupedItems.add(t,e)}this._updateGrouping()})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.viewChildren.length>1&&(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last)),this.resizeObserver.destroy()}refreshItems(){const e=this.view;if(e.items.length){for(let t=0;t<e.items.length;t++){const o=[...e.items][t];this.ungroupedItems.add(o,t)}this._updateGrouping()}}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!(0,d.zN)(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const e=this.groupedItems.length;let t;for(;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,o=new d.rw(e.lastChild),s=new d.rw(e);if(!this.cachedPadding){const o=d.Sf.window.getComputedStyle(e),s="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(o[s])}return"ltr"===t?o.right>s.right-this.cachedPadding:o.left<s.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new d.tb(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 n.I),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const e=this.viewLocale,t=e.t,o=(0,c.yu)(e);return o.class="ck-toolbar__grouped-dropdown",o.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",(0,c.fM)(o,this.groupedItems),o.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:_.A}),o}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(e=>{(0,i.tp)(e)&&this.viewFocusables.add(e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}},"../ckeditor5-ui/src/view.js":(e,t,o)=>{"use strict";o.d(t,{S:()=>b});var s=o("../ckeditor5-ui/src/viewcollection.js"),i=o("../ckeditor5-ui/src/template.js"),n=o("../ckeditor5-utils/src/index.ts"),r=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),a=o.n(r),c=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),l=o.n(c),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),g=o.n(m),f=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/globals/globals.css"),_={attributes:{"data-cke":!0}};_.setAttributes=p(),_.insert=u().bind(null,"head"),_.domAPI=l(),_.insertStyleElement=g();a()(f.A,_);f.A&&f.A.locals&&f.A.locals;class b extends((0,n.c5)((0,n.VM)())){element;isRendered;locale;t;template;_viewCollections;_unboundChildren;_bindTemplate;constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new n.pM,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,o)=>{o.locale=e,o.t=e&&e.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=i.Bj.bind(this,this)}createCollection(e){const t=new s.s(e);return this._viewCollections.add(t),t}registerChild(e){(0,n.xZ)(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){(0,n.xZ)(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new i.Bj(e)}extendTemplate(e){i.Bj.extend(this.template,e)}render(){if(this.isRendered)throw new n.Yb("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)}}},"../ckeditor5-ui/src/viewcollection.js":(e,t,o)=>{"use strict";o.d(t,{s:()=>i});var s=o("../ckeditor5-utils/src/index.ts");class i extends s.pM{_parentElement;constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",(e,t,o)=>{this._renderViewIntoCollectionParent(t,o)}),this.on("remove",(e,t)=>{t.element&&this._parentElement&&t.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(const e of this)this._renderViewIntoCollectionParent(e)}delegate(...e){if(!e.length||!e.every(e=>"string"==typeof e))throw new s.Yb("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const o of this)for(const s of e)o.delegate(s).to(t);this.on("add",(o,s)=>{for(const o of e)s.delegate(o).to(t)}),this.on("remove",(o,s)=>{for(const o of e)s.stopDelegating(o,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}}},"../ckeditor5-ui/theme/components/menubar/menubarmenulistitembutton.css":(e,t,o)=>{"use strict";var s=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),i=o.n(s),n=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),r=o.n(n),a=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),c=o.n(a),l=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),d=o.n(l),u=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),h=o.n(u),p=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenulistitembutton.css"),m={attributes:{"data-cke":!0}};m.setAttributes=d(),m.insert=c().bind(null,"head"),m.domAPI=r(),m.insertStyleElement=h();i()(p.A,m),p.A&&p.A.locals&&p.A.locals},"../ckeditor5-utils/src/index.ts":(e,t,o)=>{"use strict";let s;o.d(t,{Yb:()=>O,pM:()=>Ft,TS:()=>ve,RD:()=>V,c5:()=>Se,PZ:()=>ue,Mm:()=>q,vY:()=>E,$x:()=>Wt,EP:()=>Yt,hT:()=>Dt,VM:()=>ne,rw:()=>Fe,tb:()=>Ye,dN:()=>Nt,zH:()=>U,LW:()=>W,Cv:()=>i,HN:()=>h,o7:()=>p,fD:()=>l,BM:()=>a,FL:()=>g,ci:()=>f,HG:()=>m,go:()=>d,dR:()=>c,J9:()=>u,bp:()=>$,O6:()=>Bt,Rs:()=>Lt,KL:()=>he,WQ:()=>zt,am:()=>y,Ik:()=>no,ww:()=>me,U9:()=>pe,QR:()=>io,n:()=>_e,Tx:()=>_o,cb:()=>oo,Ui:()=>k,q8:()=>v,_K:()=>r,Nv:()=>eo,Mr:()=>_,j3:()=>Me,$1:()=>Ht,dV:()=>ro,DS:()=>Ve,Md:()=>Ie,QC:()=>Ct,$Q:()=>je,tS:()=>nt,pG:()=>Oe,YA:()=>St,iJ:()=>It,Kf:()=>Pt,W:()=>st,Mx:()=>ze,jr:()=>Re,UM:()=>ct,Sf:()=>s,qh:()=>Ze,PT:()=>Xe,Yy:()=>M,Yt:()=>Tt,mY:()=>co,Cn:()=>Qe,SE:()=>bo,HK:()=>Mt,kv:()=>lo,Iw:()=>po,SQ:()=>go,P5:()=>ho,xZ:()=>ge,k$:()=>uo,Ll:()=>Ae,_Z:()=>Ne,KH:()=>Be,i8:()=>et,K8:()=>$t,zN:()=>tt,l6:()=>Ce,uP:()=>xt,vV:()=>R,FF:()=>I,kg:()=>Zt,lo:()=>qt,tF:()=>Gt,yE:()=>so,ZX:()=>Et,vx:()=>P,kM:()=>N,TF:()=>at,L5:()=>Qt,bi:()=>dt,vK:()=>lt,C_:()=>Ge,eL:()=>to,dE:()=>C,$r:()=>Rt,av:()=>Jt,To:()=>Je,Ld:()=>T,rE:()=>B,uk:()=>Xt});try{s={window,document}}catch{s={window:{},document:{}}}function i(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const n=i(),r={isMac:a(n),isWindows:c(n),isGecko:l(n),isSafari:d(n),isiOS:u(n),isAndroid:h(n),isBlink:p(n),get isMediaForcedColors(){return g()},get isMotionReduced(){return f()},features:{isRegExpUnicodePropertySupported:m()}};function a(e){return e.indexOf("macintosh")>-1}function c(e){return e.indexOf("windows")>-1}function l(e){return!!e.match(/gecko\/\d+/)}function d(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}function u(e){return!!e.match(/iphone|ipad/i)||a(e)&&navigator.maxTouchPoints>0}function h(e){return e.indexOf("android")>-1}function p(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}function m(){let e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch{}return e}function g(){return!!s.window.matchMedia&&s.window.matchMedia("(forced-colors: active)").matches}function f(){return!!s.window.matchMedia&&s.window.matchMedia("(prefers-reduced-motion)").matches}function _(e,t,o,s){o=o||function(e,t){return e===t};const i=Array.isArray(e)?e:Array.prototype.slice.call(e),n=Array.isArray(t)?t:Array.prototype.slice.call(t),r=function(e,t,o){const s=b(e,t,o);if(-1===s)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=w(e,s),n=w(t,s),r=b(i,n,o),a=e.length-r,c=t.length-r;return{firstIndex:s,lastIndexOld:a,lastIndexNew:c}}(i,n,o),a=s?function(e,t){const{firstIndex:o,lastIndexOld:s,lastIndexNew:i}=e;if(-1===o)return Array(t).fill("equal");let n=[];o>0&&(n=n.concat(Array(o).fill("equal")));i-o>0&&(n=n.concat(Array(i-o).fill("insert")));s-o>0&&(n=n.concat(Array(s-o).fill("delete")));i<t&&(n=n.concat(Array(t-i).fill("equal")));return n}(r,n.length):function(e,t){const o=[],{firstIndex:s,lastIndexOld:i,lastIndexNew:n}=t;n-s>0&&o.push({index:s,type:"insert",values:e.slice(s,n)});i-s>0&&o.push({index:s+(n-s),type:"delete",howMany:i-s});return o}(n,r);return a}function b(e,t,o){for(let s=0;s<Math.max(e.length,t.length);s++)if(void 0===e[s]||void 0===t[s]||!o(e[s],t[s]))return s;return-1}function w(e,t){return e.slice(t).reverse()}function k(e,t,o){o=o||function(e,t){return e===t};const s=e.length,i=t.length;if(s>200||i>200||s+i>300)return k.fastDiff(e,t,o,!0);let n,r;if(i<s){const o=e;e=t,t=o,n="delete",r="insert"}else n="insert",r="delete";const a=e.length,c=t.length,l=c-a,d={},u={};function h(s){const i=(void 0!==u[s-1]?u[s-1]:-1)+1,l=void 0!==u[s+1]?u[s+1]:-1,h=i>l?-1:1;d[s+h]&&(d[s]=d[s+h].slice(0)),d[s]||(d[s]=[]),d[s].push(i>l?n:r);let p=Math.max(i,l),m=p-s;for(;m<a&&p<c&&o(e[m],t[p]);)m++,p++,d[s].push("equal");return p}let p,m=0;do{for(p=-m;p<l;p++)u[p]=h(p);for(p=l+m;p>l;p--)u[p]=h(p);u[l]=h(l),m++}while(u[l]!==c);return d[l].slice(1)}function v(e,t){const o=[];let s=0,i=null;return e.forEach(e=>{"equal"==e?(n(),s++):"insert"==e?(i&&"insert"==i.type?i.values.push(t[s]):(n(),i={type:"insert",index:s,values:[t[s]]}),s++):i&&"delete"==i.type?i.howMany++:(n(),i={type:"delete",index:s,howMany:1})}),n(),o;function n(){i&&(o.push(i),i=null)}}function y(e,t){if(e===t&&("object"==typeof(o=e)&&null!==o))return!0;var o;const s=x(e),i=x(t);for(const e of s)if(i.has(e))return!0;return!1}function x(e){const t=[e],o=new Set;for(;t.length>0;){const e=t.shift();if(!o.has(e)&&!A(e))if(o.add(e),e[Symbol.iterator])try{t.push(...e)}catch{}else t.push(...Object.values(e))}return o}function A(e){const t=Object.prototype.toString.call(e);return"[object Number]"===t||"[object Boolean]"===t||"[object String]"===t||"[object Symbol]"===t||"[object Function]"===t||"[object Date]"===t||"[object RegExp]"===t||null==e||e instanceof EventTarget||e instanceof Event}function C(){return function e(){e.called=!0}}k.fastDiff=_;class E{source;name;path;stop;off;return;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 S=new Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function T(){const[e,t,o,s]=crypto.getRandomValues(new Uint32Array(4));return"e"+S[255&e]+S[e>>8&255]+S[e>>16&255]+S[e>>24&255]+S[255&t]+S[t>>8&255]+S[t>>16&255]+S[t>>24&255]+S[255&o]+S[o>>8&255]+S[o>>16&255]+S[o>>24&255]+S[255&s]+S[s>>8&255]+S[s>>16&255]+S[s>>24&255]}const P={get(e="normal"){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function M(e,t){const o=P.get(t.priority);let s=0,i=e.length;for(;s<i;){const t=s+i>>1;P.get(e[t].priority)<o?i=t:s=t+1}e.splice(s,0,t)}const V="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class O extends Error{context;data;constructor(e,t,o,s){super(function(e,t,o){const s=new WeakSet,i=(e,t)=>{if("object"==typeof t&&null!==t){if(s.has(t))return`[object ${t.constructor.name}]`;s.add(t)}return t},n=t?` ${JSON.stringify(t,i)}`:"",r=j(e),a=o?`\nOriginal error: ${o.name}: ${o.message}`:"";return e+n+r+a}(e,o,s)),this.name="CKEditorError",this.context=t,this.data=o,s&&(this.stack=s.stack)}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;throw new O("unexpected-error",t,void 0,e)}}function I(e,t){console.warn(...z(e,t))}function R(e,t){console.error(...z(e,t))}function j(e){return`\nRead more: ${V}#error-${e}`}function z(e,t){const o=j(e);return t?[e,t,o]:[e,o]}const B="47.6.0",N=new Date(2026,2,4);if(globalThis.CKEDITOR_VERSION)throw new O("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=B;const L=Symbol("listeningTo"),D=Symbol("emitterId"),F=Symbol("delegations"),H=q(Object);function q(e){if(!e)return H;return class extends e{on(e,t,o){this.listenTo(this,e,t,o)}once(e,t,o){let s=!1;this.listenTo(this,e,(e,...o)=>{s||(s=!0,e.off(),t.call(this,e,...o))},o)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,o,s={}){let i,n;this[L]||(this[L]={});const r=this[L];U(e)||$(e);const a=U(e);(i=r[a])||(i=r[a]={emitter:e,callbacks:{}}),(n=i.callbacks[t])||(n=i.callbacks[t]=[]),n.push(o),function(e,t,o,s,i){t._addEventListener?t._addEventListener(o,s,i):e._addEventListener.call(t,o,s,i)}(this,e,t,o,s)}stopListening(e,t,o){const s=this[L];let i=e&&U(e);const n=s&&i?s[i]:void 0,r=n&&t?n.callbacks[t]:void 0;if(!(!s||e&&!n||t&&!r))if(o){Z(this,e,t,o);-1!==r.indexOf(o)&&(1===r.length?delete n.callbacks[t]:Z(this,e,t,o))}else if(r){for(;o=r.pop();)Z(this,e,t,o);delete n.callbacks[t]}else if(n){for(t in n.callbacks)this.stopListening(e,t);delete s[i]}else{for(i in s)this.stopListening(s[i].emitter);delete this[L]}}fire(e,...t){try{const o=e instanceof E?e:new E(this,e),s=o.name;let i=function(e,t){if(!e._events)return null;let o=t;do{const t=e._events[o];if(t&&t.callbacks&&t.callbacks.length)return t.callbacks;const s=o.lastIndexOf(":");o=s>-1?o.substring(0,s):""}while(o);return null}(this,s);if(o.path.push(this),i){i=i.slice();for(let e=0;e<i.length;e++){const n=i[e].callback;if(n.call(this,o,...t),o.off.called&&(delete o.off.called,this._removeEventListener(s,n)),o.stop.called)break}}const n=this[F];if(n){const e=n.get(s),i=n.get("*");e&&J(e,o,t),i&&J(i,o,t)}return o.return}catch(e){O.rethrowUnexpectedError(e,this)}}delegate(...e){return{to:(t,o)=>{this[F]||(this[F]=new Map),e.forEach(e=>{const s=this[F].get(e);s?s.set(t,o):this[F].set(e,new Map([[t,o]]))})}}}stopDelegating(e,t){if(this[F])if(e)if(t){const o=this[F].get(e);o&&o.delete(t)}else this[F].delete(e);else this[F].clear()}_addEventListener(e,t,o){!function(e,t){const o=K(e);if(o[t])return;let s=t,i=null;const n=[];for(;""!==s&&!o[s];)o[s]=Y(),n.push(o[s]),i&&o[s].childEvents.push(i),i=s,s=s.substr(0,s.lastIndexOf(":"));if(""!==s){for(const e of n)e.callbacks=o[s].callbacks.slice();o[s].childEvents.push(i)}}(this,e);const s=G(this,e),i={callback:t,priority:P.get(o.priority)};for(const e of s)M(e,i)}_removeEventListener(e,t){const o=G(this,e);for(const e of o)for(let o=0;o<e.length;o++)e[o].callback==t&&(e.splice(o,1),o--)}}}function W(e,t){const o=e[L];return o&&o[t]?o[t].emitter:null}function $(e,t){e[D]||(e[D]=t||T())}function U(e){return e[D]}function K(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function Y(){return{callbacks:[],childEvents:[]}}function G(e,t){const o=K(e)[t];if(!o)return[];let s=[o.callbacks];for(let t=0;t<o.childEvents.length;t++){const i=G(e,o.childEvents[t]);s=s.concat(i)}return s}function J(e,t,o){for(let[s,i]of e){i?"function"==typeof i&&(i=i(t.name)):i=t.name;const e=new E(t.source,i);e.path=[...t.path],s.fire(e,...o)}}function Z(e,t,o,s){t._removeEventListener?t._removeEventListener(o,s):e._removeEventListener.call(t,o,s)}var X=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs");const Q=Symbol("observableProperties"),ee=Symbol("boundObservables"),te=Symbol("boundProperties"),oe=Symbol("decoratedMethods"),se=Symbol("decoratedOriginal"),ie=ne(q());function ne(e){if(!e)return ie;return class extends e{set(e,t){if((0,X.G)(e))return void Object.keys(e).forEach(t=>{this.set(t,e[t])},this);re(this);const o=this[Q];if(e in this&&!o.has(e))throw new O("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>o.get(e),set(t){const s=o.get(e);let i=this.fire(`set:${e}`,e,t,s);void 0===i&&(i=t),s===i&&o.has(e)||(o.set(e,i),this.fire(`change:${e}`,e,i,s))}}),this[e]=t}bind(...e){if(!e.length||!le(e))throw new O("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new O("observable-bind-duplicate-properties",this);re(this);const t=this[te];e.forEach(e=>{if(t.has(e))throw new O("observable-bind-rebind",this)});const o=new Map;return e.forEach(e=>{const s={property:e,to:[]};t.set(e,s),o.set(e,s)}),{to:ae,toMany:ce,_observable:this,_bindProperties:e,_to:[],_bindings:o}}unbind(...e){if(!this[Q])return;const t=this[te],o=this[ee];if(e.length){if(!le(e))throw new O("observable-unbind-wrong-properties",this);e.forEach(e=>{const s=t.get(e);s&&(s.to.forEach(([e,t])=>{const i=o.get(e),n=i[t];n.delete(s),n.size||delete i[t],Object.keys(i).length||(o.delete(e),this.stopListening(e,"change"))}),t.delete(e))})}else o.forEach((e,t)=>{this.stopListening(t,"change")}),o.clear(),t.clear()}decorate(e){re(this);const t=this[e];if(!t)throw new O("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(e,o)=>{e.return=t.apply(this,o)}),this[e]=function(...t){return this.fire(e,t)},this[e][se]=t,this[oe]||(this[oe]=[]),this[oe].push(e)}stopListening(e,t,o){if(!e&&this[oe]){for(const e of this[oe])this[e]=this[e][se];delete this[oe]}super.stopListening(e,t,o)}[Q];[oe];[te];[ee]}}function re(e){e[Q]||(Object.defineProperty(e,Q,{value:new Map}),Object.defineProperty(e,ee,{value:new Map}),Object.defineProperty(e,te,{value:new Map}))}function ae(...e){const t=function(...e){if(!e.length)throw new O("observable-bind-to-parse-error",null);const t={to:[]};let o;"function"==typeof e[e.length-1]&&(t.callback=e.pop());return e.forEach(e=>{if("string"==typeof e)o.properties.push(e);else{if("object"!=typeof e)throw new O("observable-bind-to-parse-error",null);o={observable:e,properties:[]},t.to.push(o)}}),t}(...e),o=Array.from(this._bindings.keys()),s=o.length;if(!t.callback&&t.to.length>1)throw new O("observable-bind-to-no-callback",this);if(s>1&&t.callback)throw new O("observable-bind-to-extra-callback",this);var i;t.to.forEach(e=>{if(e.properties.length&&e.properties.length!==s)throw new O("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(o[0]).callback=t.callback),i=this._observable,this._to.forEach(e=>{const t=i[ee];let o;t.get(e.observable)||i.listenTo(e.observable,"change",(s,n)=>{o=t.get(e.observable)[n],o&&o.forEach(e=>{de(i,e.property)})})}),function(e){let t;e._bindings.forEach((o,s)=>{e._to.forEach(i=>{t=i.properties[o.callback?0:e._bindProperties.indexOf(s)],o.to.push([i.observable,t]),function(e,t,o,s){const i=e[ee],n=i.get(o),r=n||{};r[s]||(r[s]=new Set);r[s].add(t),n||i.set(o,r)}(e._observable,o,i.observable,t)})})}(this),this._bindProperties.forEach(e=>{de(this._observable,e)})}function ce(e,t,o){if(this._bindings.size>1)throw new O("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){const o=e.map(e=>[e,t]);return Array.prototype.concat.apply([],o)}(e,t),o)}function le(e){return e.every(e=>"string"==typeof e)}function de(e,t){const o=e[te].get(t);let s;o.callback?s=o.callback.apply(e,o.to.map(e=>e[0][e[1]])):(s=o.to[0],s=s[0][s[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=s:e.set(t,s)}class ue{_replacedElements;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 he(e){let t=new AbortController;function o(...o){return t.abort(),t=new AbortController,e(t.signal,...o)}return o.abort=()=>t.abort(),o}function pe(e){let t=0;for(const o of e)t++;return t}function me(e,t){const o=Math.min(e.length,t.length);for(let s=0;s<o;s++)if(e[s]!=t[s])return s;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}function ge(e){return!(!e||!e[Symbol.iterator])}function fe(e){return"string"==typeof e||e instanceof String}function _e(e,t,o={},s=[]){const i=o&&o.xmlns,n=i?e.createElementNS(i,t):e.createElement(t);for(const e in o)n.setAttribute(e,o[e]);!fe(s)&&ge(s)||(s=[s]);for(let t of s)fe(t)&&(t=e.createTextNode(t)),n.appendChild(t);return n}var be=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs"),we=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs"),ke=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.mjs");class ve{_config;constructor(e,t){this._config=Object.create(null),t&&this.define(ye(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,o,s=!1){if((0,be.Q)(t))return void this._setObjectToTarget(e,t,s);const i=t.split(".");t=i.pop();for(const t of i)(0,be.Q)(e[t])||(e[t]=Object.create(null)),e=e[t];if((0,be.Q)(o))return(0,be.Q)(e[t])||(e[t]=Object.create(null)),e=e[t],void this._setObjectToTarget(e,o,s);s&&void 0!==e[t]||(e[t]=o)}_getFromSource(e,t){const o=t.split(".");t=o.pop();for(const t of o){if(!(0,be.Q)(e[t])){e=null;break}e=e[t]}return e?ye(e[t]):void 0}_setObjectToTarget(e,t,o){Object.keys(t).forEach(s=>{this._setToTarget(e,s,t[s],o)})}}function ye(e){return(0,we.s)(e,xe)}function xe(e){return(0,ke.v)(e)||"function"==typeof e?e:void 0}function Ae(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function Ce(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}const Ee=Se(q());function Se(e){if(!e)return Ee;return class extends e{listenTo(e,t,o,i={}){if(Ae(e)||Ce(e)||e instanceof s.window.EventTarget){const s={capture:!!i.useCapture,passive:!!i.usePassive},n=this._getProxyEmitter(e,s)||new Te(e,s);this.listenTo(n,t,o,i)}else super.listenTo(e,t,o,i)}stopListening(e,t,o){if(Ae(e)||Ce(e)||e instanceof s.window.EventTarget){const s=this._getAllProxyEmitters(e);for(const e of s)this.stopListening(e,t,o)}else super.stopListening(e,t,o)}_getProxyEmitter(e,t){return W(this,Pe(e,t))}_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(t=>this._getProxyEmitter(e,t)).filter(e=>!!e)}}}class Te extends(q()){_domNode;_options;constructor(e,t){super(),$(this,Pe(e,t)),this._domNode=e,this._options=t}_domListeners;attach(e){if(this._domListeners&&this._domListeners[e])return;const t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}_addEventListener(e,t,o){this.attach(e),q().prototype._addEventListener.call(this,e,t,o)}_removeEventListener(e,t){q().prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){const t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}}function Pe(e,t){let o=function(e){return e["data-ck-expando"]||(e["data-ck-expando"]=T())}(e);for(const e of Object.keys(t).sort())t[e]&&(o+="-"+e);return o}function Me(e){let t=e.parentElement;if(!t)return null;for(;"BODY"!=t.tagName;){const e=t.style.overflowY||s.window.getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)break;if(t=t.parentElement,!t)return null}return t}function Ve(e){const t=[];let o=e;for(;o&&o.nodeType!=Node.DOCUMENT_NODE;)t.unshift(o),o=o.parentNode;return t}function Oe(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}function Ie(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 Re(e){if(!e.target)return null;const t=e.target.ownerDocument,o=e.clientX,s=e.clientY;let i=null;return t.caretRangeFromPoint&&t.caretRangeFromPoint(o,s)?i=t.caretRangeFromPoint(o,s):e.rangeParent&&(i=t.createRange(),i.setStart(e.rangeParent,e.rangeOffset),i.collapse(!0)),i}function je(e,t){const o=Ve(e),s=Ve(t);let i=0;for(;o[i]==s[i]&&o[i];)i++;return 0===i?null:o[i-1]}function ze(e){return e&&e.parentNode?e.offsetParent===s.document.body?null:e.offsetParent:null}function Be(e){return"[object Text]"==Object.prototype.toString.call(e)}function Ne(e){return"[object Range]"==Object.prototype.toString.apply(e)}const Le=["top","right","bottom","left","width","height"],De=new Set(["relative","absolute","fixed","sticky"]);class Fe{top;right;bottom;left;width;height;_source;constructor(e){const t=Ne(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),We(e)||t)if(t){const t=Fe.getDomRangeRects(e);He(this,Fe.getBoundingRect(t))}else He(this,e.getBoundingClientRect());else if(Ce(e)){const{innerWidth:t,innerHeight:o}=e;He(this,{top:0,right:t,bottom:o,left:0,width:t,height:o})}else He(this,e)}clone(){return new Fe(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 Fe(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(qe(e))return t;let o,s=e,i=e.parentNode||e.commonAncestorContainer;for(;i&&!qe(i);){const e="visible"===Ue(i);if(Ke(s)&&(o=s),e||o&&"absolute"===$e(o)&&!Ke(i)){s=i,i=i.parentNode;continue}const n=new Fe(i),r=t.getIntersection(n);if(!r)return null;r.getArea()<t.getArea()&&(t=r),s=i,i=i.parentNode}return t}isEqual(e){for(const t of Le)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}=s.window,o=this.clone().moveBy(e,t);if(We(o._source)){const e=ze(o._source);e&&function(e,t){const o=new Fe(t),s=Ie(t);let i=0,n=0;i-=o.left,n-=o.top,i+=t.scrollLeft,n+=t.scrollTop,i-=s.left,n-=s.top,e.moveBy(i,n)}(o,e)}return o}excludeScrollbarsAndBorders(){const e=this._source;let t,o,s;if(Ce(e))t=e.innerWidth-e.document.documentElement.clientWidth,o=e.innerHeight-e.document.documentElement.clientHeight,s=e.getComputedStyle(e.document.documentElement).direction;else{const i=Ie(e);t=e.offsetWidth-e.clientWidth-i.left-i.right,o=e.offsetHeight-e.clientHeight-i.top-i.bottom,s=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===s?this.right-=t:this.left+=t,this.height-=o,this.bottom-=o,this}static getDomRangeRects(e){const t=[],o=Array.from(e.getClientRects());if(o.length)for(const s of o){const o=new Fe(s);o._source=e,t.push(o)}else{let o=e.startContainer;Be(o)&&(o=o.parentNode);const s=new Fe(o.getBoundingClientRect());s.right=s.left,s.width=0,t.push(s)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let o=0;for(const s of e)o++,t.left=Math.min(t.left,s.left),t.top=Math.min(t.top,s.top),t.right=Math.max(t.right,s.right),t.bottom=Math.max(t.bottom,s.bottom);return 0==o?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new Fe(t))}}function He(e,t){for(const o of Le)e[o]=t[o]}function qe(e){return!!We(e)&&e===e.ownerDocument.body}function We(e){return null!==e&&"object"==typeof e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect}function $e(e){return e.ownerDocument.defaultView.getComputedStyle(e).position}function Ue(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).overflow:"visible"}function Ke(e){return e instanceof HTMLElement&&De.has($e(e))}class Ye{_element;_callback;static _observerInstance=null;static _elementCallbacks=null;constructor(e,t){Ye._observerInstance||Ye._createObserver(),this._element=e,this._callback=t,Ye._addElementCallback(e,t),Ye._observerInstance.observe(e)}get element(){return this._element}destroy(){Ye._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){Ye._elementCallbacks||(Ye._elementCallbacks=new Map);let o=Ye._elementCallbacks.get(e);o||(o=new Set,Ye._elementCallbacks.set(e,o)),o.add(t)}static _deleteElementCallback(e,t){const o=Ye._getElementCallbacks(e);o&&(o.delete(t),o.size||(Ye._elementCallbacks.delete(e),Ye._observerInstance.unobserve(e))),Ye._elementCallbacks&&!Ye._elementCallbacks.size&&(Ye._observerInstance=null,Ye._elementCallbacks=null)}static _getElementCallbacks(e){return Ye._elementCallbacks?Ye._elementCallbacks.get(e):null}static _createObserver(){Ye._observerInstance=new s.window.ResizeObserver(e=>{for(const t of e){const e=Ye._getElementCallbacks(t.target);if(e)for(const o of e)o(t)}})}}function Ge(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function Je(e){return t=>t+e}function Ze(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function Xe(e,t,o){e.insertBefore(o,e.childNodes[t]||null)}function Qe(e){return e&&e.nodeType===Node.COMMENT_NODE}function et(e){try{s.document.createAttribute(e)}catch{return!1}return!0}function tt(e){return!!e&&(Be(e)?tt(e.parentElement):!!e.getClientRects&&!!e.getClientRects().length)}var ot=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isFunction.mjs");function st({element:e,target:t,positions:o,limiter:s,fitInViewport:i,viewportOffsetConfig:n}){(0,ot.T)(t)&&(t=t()),(0,ot.T)(s)&&(s=s());const r=ze(e),a=nt(n),c=new Fe(e),l=it(t,a);let d;if(!l||!a.getIntersection(l))return null;const u={targetRect:l,elementRect:c,positionedElementAncestor:r,viewportRect:a};if(s||i){if(s){const e=it(s,a);e&&(u.limiterRect=e)}d=function(e,t){const{elementRect:o}=t,s=o.getArea(),i=e.map(e=>new rt(e,t)).filter(e=>!!e.name);let n=0,r=null;for(const e of i){const{limiterIntersectionArea:t,viewportIntersectionArea:o}=e;if(t===s)return e;const i=o**2+t**2;i>n&&(n=i,r=e)}return r}(o,u)}else d=new rt(o[0],u);return d}function it(e,t){const o=new Fe(e).getVisible();return o?o.getIntersection(t):null}function nt(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new Fe(s.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}class rt{name;config;_positioningFunctionCoordinates;_options;_cachedRect;_cachedAbsoluteRect;constructor(e,t){const o=e(t.targetRect,t.elementRect,t.viewportRect,t.limiterRect);if(!o)return;const{left:s,top:i,name:n,config:r}=o;this.name=n,this.config=r,this._positioningFunctionCoordinates={left:s,top:i},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const e=this._options.limiterRect;return e?e.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function at(e){const t=e.parentNode;t&&t.removeChild(e)}function ct(){const e=s.window.visualViewport;if(!e||!r.isiOS&&!r.isSafari)return{left:0,top:0};return{left:Math.max(Math.round(e.offsetLeft),0),top:Math.max(Math.round(e.offsetTop),0)}}function lt({target:e,viewportOffset:t=0,ancestorOffset:o=0,alignToTop:s,forceScroll:i}){const n=_t(e);let r=n,a=null;for(t=function(e){if("number"==typeof e)return{top:e,bottom:e,left:e,right:e};return e}(t);r;){let c;c=bt(r==n?e:a),ht({parent:c,getRect:()=>wt(e,r),alignToTop:s,ancestorOffset:o,forceScroll:i});let l=wt(e,r);const d=wt(c,r);if(l.height>d.height){const e=l.getIntersection(d);e&&(l=e)}if(ut({window:r,rect:l,viewportOffset:t,alignToTop:s,forceScroll:i}),r.parent!=r){if(a=r.frameElement,r=r.parent,!a)return}else r=null}}function dt(e,t,o,s,i){ht({parent:bt(e),getRect:()=>new Fe(e),ancestorOffset:t,limiterElement:o,alignToTop:s,forceScroll:i})}function ut({window:e,rect:t,alignToTop:o,forceScroll:s,viewportOffset:i}){const n=t.clone().moveBy(0,i.bottom),r=t.clone().moveBy(0,-i.top),a=new Fe(e).excludeScrollbarsAndBorders(),c=o&&s,l=[r,n].every(e=>a.contains(e));let{scrollX:d,scrollY:u}=e;const h=d,p=u;c?u-=a.top-t.top+i.top:l||(mt(r,a)?u-=a.top-t.top+i.top:pt(n,a)&&(u+=o?t.top-a.top-i.top:t.bottom-a.bottom+i.bottom)),l||(gt(t,a)?d-=a.left-t.left+i.left:ft(t,a)&&(d+=t.right-a.right+i.right)),d==h&&u===p||e.scrollTo(d,u)}function ht({parent:e,getRect:t,alignToTop:o,forceScroll:s,ancestorOffset:i=0,limiterElement:n}){const r=_t(e),a=o&&s;let c,l,d;const u=n||r.document.body;for(;e!=u;)l=t(),c=new Fe(e).excludeScrollbarsAndBorders(),d=c.contains(l),a?e.scrollTop-=c.top-l.top+i:d||(mt(l,c)?e.scrollTop-=c.top-l.top+i:pt(l,c)&&(e.scrollTop+=o?l.top-c.top-i:l.bottom-c.bottom+i)),d||(gt(l,c)?e.scrollLeft-=c.left-l.left+i:ft(l,c)&&(e.scrollLeft+=l.right-c.right+i)),e=e.parentNode}function pt(e,t){return e.bottom>t.bottom}function mt(e,t){return e.top<t.top}function gt(e,t){return e.left<t.left}function ft(e,t){return e.right>t.right}function _t(e){return Ne(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function bt(e){if(Ne(e)){let t=e.commonAncestorContainer;return Be(t)&&(t=t.parentNode),t}return e.parentNode}function wt(e,t){const o=_t(e),s=new Fe(e);if(o===t)return s;{let e=o;for(;e!=t;){const t=e.frameElement,o=new Fe(t).excludeScrollbarsAndBorders();s.moveBy(o.left,o.top),e=e.parent}}return s}const kt={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},vt={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},yt={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},xt=Vt(),At=Object.fromEntries(Object.entries(xt).map(([e,t])=>{let o;return o=t in yt?yt[t]:e.charAt(0).toUpperCase()+e.slice(1),[t,o]}));function Ct(e){let t;if("string"==typeof e){if(t=xt[e.toLowerCase()],!t)throw new O("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?xt.alt:0)+(e.ctrlKey?xt.ctrl:0)+(e.shiftKey?xt.shift:0)+(e.metaKey?xt.cmd:0);return t}function Et(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 Ct(e.slice(0,-1));const t=Ct(e);return(r.isMac||r.isiOS)&&t==xt.ctrl?xt.cmd:t}(e):e).reduce((e,t)=>t+e,0)}function St(e,t){let o=Et(e);const s=t?"Mac"===t:r.isMac||r.isiOS;return Object.entries(s?kt:vt).reduce((e,[t,s])=>(0!=(o&xt[t])&&(o&=~xt[t],e+=s),e),"")+(o?At[o]:"")}function Tt(e){return e==xt.arrowright||e==xt.arrowleft||e==xt.arrowup||e==xt.arrowdown}function Pt(e,t){const o="ltr"===t;switch(e){case xt.arrowleft:return o?"left":"right";case xt.arrowright:return o?"right":"left";case xt.arrowup:return"up";case xt.arrowdown:return"down"}}function Mt(e,t){const o=Pt(e,t);return"down"===o||"right"===o}function Vt(){const e={pageup:33,pagedown:34,end:35,home:36,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}const Ot=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig","ur","urd"];function It(e){return Ot.includes(e)?"rtl":"ltr"}function Rt(e){return Array.isArray(e)?e:[e]}var jt=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/merge.mjs");function zt(e,t,o){s.window.CKEDITOR_TRANSLATIONS[e]||(s.window.CKEDITOR_TRANSLATIONS[e]={});const i=s.window.CKEDITOR_TRANSLATIONS[e];i.dictionary=i.dictionary||{},i.getPluralForm=o||i.getPluralForm,Object.assign(i.dictionary,t)}function Bt(e,t,o=1,i){if("number"!=typeof o)throw new O("translation-service-quantity-not-a-number",null,{quantity:o});const n=i||s.window.CKEDITOR_TRANSLATIONS,r=function(e){return Object.keys(e).length}(n);1===r&&(e=Object.keys(n)[0]);const a=t.id||t.string;if(0===r||!function(e,t,o){return!!o[e]&&!!o[e].dictionary[t]}(e,a,n))return 1!==o?t.plural:t.string;const c=n[e].dictionary,l=n[e].getPluralForm||(e=>1===e?0:1),d=c[a];if("string"==typeof d)return d;return d[Number(l(o))]}function Nt(){s.window.CKEDITOR_TRANSLATIONS&&(s.window.CKEDITOR_TRANSLATIONS={})}function Lt(e){return Array.isArray(e)?e.reduce((e,t)=>(0,jt.h)(e,t)):e}s.window.CKEDITOR_TRANSLATIONS||(s.window.CKEDITOR_TRANSLATIONS={});class Dt{uiLanguage;uiLanguageDirection;contentLanguage;contentLanguageDirection;t;translations;constructor({uiLanguage:e="en",contentLanguage:t,translations:o}={}){this.uiLanguage=e,this.contentLanguage=t||this.uiLanguage,this.uiLanguageDirection=It(this.uiLanguage),this.contentLanguageDirection=It(this.contentLanguage),this.translations=Lt(o),this.t=(e,t)=>this._t(e,t)}_t(e,t=[]){t=Rt(t),"string"==typeof e&&(e={string:e});const o=!!e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,(e,o)=>o<t.length?t[o]:e)}(Bt(this.uiLanguage,e,o,this.translations),t)}}class Ft extends(q()){_items;_itemMap;_idProperty;_bindToCollection;_bindToExternalToInternalMap;_bindToInternalToExternalMap;_skippedIndexesFromExternal;constructor(e={},t={}){super();const o=ge(e);if(o||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],o)for(const t of e)this._items.push(t),this._itemMap.set(this._getItemIdBeforeAdding(t),t)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new O("collection-add-item-invalid-index",this);let o=0;for(const s of e){const e=this._getItemIdBeforeAdding(s),i=t+o;this._items.splice(i,0,s),this._itemMap.set(e,s),this.fire("add",s,i),o++}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new O("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if("string"==typeof e)return this._itemMap.has(e);{const t=e[this._idProperty];return t&&this._itemMap.has(t)}}getIndex(e){let t;return t="string"==typeof e?this._itemMap.get(e):e,t?this._items.indexOf(t):-1}remove(e){const[t,o]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:o}),t}map(e,t){return this._items.map(e,t)}forEach(e,t){this._items.forEach(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new O("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding(t=>new e(t))},using:e=>{"function"==typeof e?this._setUpBindToBinding(e):this._setUpBindToBinding(t=>t[e])}}}_setUpBindToBinding(e){const t=this._bindToCollection,o=(o,s,i)=>{const n=t._bindToCollection==this,r=t._bindToInternalToExternalMap.get(s);if(n&&r)this._bindToExternalToInternalMap.set(s,r),this._bindToInternalToExternalMap.set(r,s);else{const o=e(s);if(!o)return void this._skippedIndexesFromExternal.push(i);let n=i;for(const e of this._skippedIndexesFromExternal)i>e&&n--;for(const e of t._skippedIndexesFromExternal)n>=e&&n++;this._bindToExternalToInternalMap.set(s,o),this._bindToInternalToExternalMap.set(o,s),this.add(o,n);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)n<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(const e of t)o(0,e,t.getIndex(e));this.listenTo(t,"add",o),this.listenTo(t,"remove",(e,t,o)=>{const s=this._bindToExternalToInternalMap.get(t);s&&this.remove(s),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((e,t)=>(o<t&&e.push(t-1),o>t&&e.push(t),e),[])})}_getItemIdBeforeAdding(e){const t=this._idProperty;let o;if(t in e){if(o=e[t],"string"!=typeof o)throw new O("collection-add-invalid-id",this);if(this.get(o))throw new O("collection-add-item-already-exists",this)}else e[t]=o=T();return o}_remove(e){let t,o,s,i=!1;const n=this._idProperty;if("string"==typeof e?(o=e,s=this._itemMap.get(o),i=!s,s&&(t=this._items.indexOf(s))):"number"==typeof e?(t=e,s=this._items[t],i=!s,s&&(o=s[n])):(s=e,o=s[n],t=this._items.indexOf(s),i=-1==t||!this._itemMap.get(o)),i)throw new O("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(o);const r=this._bindToInternalToExternalMap.get(s);return this._bindToInternalToExternalMap.delete(s),this._bindToExternalToInternalMap.delete(r),this.fire("remove",s,t),[s,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Ht(e){const t=e.next();return t.done?null:t.value}function qt(e,t){for(const o of t){if(0===e)return o;e-=1}return null}class Wt extends(Se(ne())){_elements=new Set;_externalViews=new Set;_blurTimeout=null;constructor(){super(),this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(e){if(Ut(e))this._addElement(e);else if($t(e))this._addView(e);else{if(!e.element)throw new O("focustracker-add-view-missing-element",{focusTracker:this,view:e});this._addElement(e.element)}}remove(e){Ut(e)?this._removeElement(e):$t(e)?this._removeView(e):this._removeElement(e.element)}_addElement(e){if(this._elements.has(e))throw new O("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>{const t=this.externalViews.find(t=>function(e,t){if(Kt(e,t))return!0;return!!t.focusTracker.externalViews.find(t=>Kt(e,t))}(e,t));t?this._focus(t.element):this._focus(e)},{useCapture:!0}),this.listenTo(e,"blur",()=>{this._blur()},{useCapture:!0}),this._elements.add(e)}_removeElement(e){this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e)),e===this.focusedElement&&this._blur()}_addView(e){e.element&&this._addElement(e.element),this.listenTo(e.focusTracker,"change:focusedElement",()=>{e.focusTracker.focusedElement?e.element&&this._focus(e.element):this._blur()}),this._externalViews.add(e)}_removeView(e){e.element&&this._removeElement(e.element),this.stopListening(e.focusTracker),this._externalViews.delete(e)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(e){this._clearBlurTimeout(),this.focusedElement=e,this.isFocused=!0}_blur(){if(this.elements.find(e=>e.contains(document.activeElement)))return;this.externalViews.find(e=>e.focusTracker.isFocused&&!e.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function $t(e){return"focusTracker"in e&&e.focusTracker instanceof Wt}function Ut(e){return(0,ke.v)(e)}function Kt(e,t){return!!t.element&&t.element.contains(document.activeElement)&&e.contains(t.element)}class Yt{_listener;constructor(){this._listener=new(Se())}listenTo(e){this._listener.listenTo(e,"keydown",(e,t)=>{this._listener.fire("_keydown:"+Ct(t),t)})}set(e,t,o={}){const s=Et(e),i=o.priority;this._listener.listenTo(this._listener,"_keydown:"+s,(e,s)=>{o.filter&&!o.filter(s)||(t(s,()=>{s.preventDefault(),s.stopPropagation(),e.stop()}),e.return=!0)},{priority:i})}press(e){return!!this._listener.fire("_keydown:"+Ct(e),e)}stopListening(e){this._listener.stopListening(e)}destroy(){this.stopListening()}}function Gt(e){const t=new Map;for(const o in e)t.set(o,e[o]);return t}function Jt(e){return ge(e)?new Map(e):Gt(e)}function Zt(e,t){if(e.size!=t.size)return!1;for(const o of e.entries()){if(JSON.stringify(o[1])!==JSON.stringify(t.get(o[0])))return!1}return!0}function Xt(e,t={}){return new Promise((o,s)=>{const i=t.signal||(new AbortController).signal;i.throwIfAborted();const n=setTimeout(function(){i.removeEventListener("abort",r),o()},e);function r(){clearTimeout(n),s(i.reason)}i.addEventListener("abort",r,{once:!0})})}async function Qt(e,t={}){const{maxAttempts:o=4,retryDelay:s=eo(),signal:i=(new AbortController).signal}=t;i.throwIfAborted();for(let t=0;;t++){try{return await e()}catch(e){if(t+1>=o)throw e}await Xt(s(t),{signal:i})}}function eo(e={}){const{delay:t=1e3,factor:o=2,maxDelay:s=1e4}=e;return e=>Math.min(o**e*t,s)}function to(e,t,o){const s=e.length,i=t.length;for(let t=s-1;t>=o;t--)e[t+i]=e[t];for(let s=0;s<i;s++)e[o+s]=t[s]}function oo(e,t){let o;function s(...i){s.cancel(),o=setTimeout(()=>e(...i),t)}return s.cancel=()=>{clearTimeout(o)},s}function so(e){try{if(!e.startsWith("ey"))return null;const t=atob(e.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(t)}catch{return null}}function io(e){const t=Array.isArray(e)?e:[e],o=function(){const e=[];for(let t=0;t<256;t++){let o=t;for(let e=0;e<8;e++)1&o?o=3988292384^o>>>1:o>>>=1;e[t]=o}return e}();let s=~0;const i=t.map(e=>Array.isArray(e)?e.join(""):String(e)).join("");for(let e=0;e<i.length;e++){s=s>>>8^o[255&(s^i.charCodeAt(e))]}return s=(-1^s)>>>0,s.toString(16).padStart(8,"0")}async function no(e){if(!e)return"";return(await Promise.all(e.map(async e=>{if("EDITOR_STYLES"===e)return function(){const e=[],t=[];for(const o of Array.from(document.styleSheets)){if(o.ownerNode.hasAttribute("data-cke"))for(const s of Array.from(o.cssRules))-1!==s.cssText.indexOf(".ck-content")?e.push(s.cssText):-1!==s.cssText.indexOf(":root")&&t.push(s.cssText)}e.length||console.warn("The editor stylesheet could not be found in the document. Check your webpack config - style-loader should use data-cke=true attribute for the editor stylesheet.");return[...t,...e].join(" ").trim()}();return(await window.fetch(e)).text()}))).join(" ").trim()}function ro(e){const t=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],o=t.map(e=>e.name).join("|"),s=e.replace(new RegExp(`</?(${o})( .*?)?>`,"g"),"\n$&\n").replace(/<br[^>]*>/g,"$&\n").split("\n");let i=0,n=!1;return s.map(e=>(n=function(e,t){const o=/<pre( .*?)?>/.test(e),s=/<\/pre>/.test(e);return(!o||!s)&&(o?"first":s?"last":("first"===t||"middle"===t)&&"middle")}(e,n),e.length||n?function(e,t){return t.some(t=>!t.isVoid&&!!new RegExp(`<${t.name}( .*?)?>`).test(e))}(e,t)?ao(e,i++):function(e,t){return t.some(t=>new RegExp(`</${t.name}>`).test(e))}(e,t)?ao(e,--i):ao(e,"middle"===n||"last"===n?0:i):"")).join("").trimEnd()}function ao(e,t,o=" "){return`${o.repeat(Math.max(0,t))}${e}\n`}function co(e){return!!e&&1==e.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e)}function lo(e){return!!e&&1==e.length&&/[\ud800-\udbff]/.test(e)}function uo(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}function ho(e,t){return lo(e.charAt(t-1))&&uo(e.charAt(t))}function po(e,t){return co(e.charAt(t))}const mo=fo();function go(e,t){const o=String(e).matchAll(mo);return Array.from(o).some(e=>e.index<t&&t<e.index+e[0].length)}function fo(){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 _o(e){if(!e)return null;const t=function(e){const t=e.split(".");if(3!=t.length)return null;return t[1]}(e);return t?so(t):null}function bo(e,t){return(e.removeFeatures||[]).includes(t)}},"../ckeditor5-watchdog/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{kw:()=>_,Zd:()=>p,VJ:()=>d,Io:()=>s});class s{crashes=[];state="initializing";_crashNumberLimit;_now=Date.now;_minimumNonErrorTimePeriod;_boundErrorHandler;_listeners;constructor(e){if(this.crashes=[],this._crashNumberLimit="number"==typeof e.crashNumberLimit?e.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof e.minimumNonErrorTimePeriod?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const t="error"in e?e.error:e.reason;t instanceof Error&&this._handleError(t,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter(e=>e!==t)}_fire(e,...t){const o=this._listeners[e]||[];for(const e of o)e.apply(this,[null,...t])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t instanceof ErrorEvent?t.filename:void 0,lineno:t instanceof ErrorEvent?t.lineno:void 0,colno:t instanceof ErrorEvent?t.colno:void 0,date:this._now()});const o=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:o}),o?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(e){return e.is&&e.is("CKEditorError")&&void 0!==e.context&&null!==e.context&&"ready"===this.state&&this._isErrorComingFromThisItem(e)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}var i=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.mjs"),n=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.mjs"),r=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs");function a(e,t=new Set){const o=[e],s=new Set;let i=0;for(;o.length>i;){const e=o[i++];if(!s.has(e)&&c(e)&&!t.has(e))if(s.add(e),Symbol.iterator in e)try{for(const t of e)o.push(t)}catch{}else for(const t in e)"defaultValue"!==t&&o.push(e[t])}return s}function c(e){const t=Object.prototype.toString.call(e),o=typeof e;return!("number"===o||"boolean"===o||"string"===o||"symbol"===o||"function"===o||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e._watchdogExcluded||e instanceof EventTarget||e instanceof Event)}function l(e,t,o=new Set){if(e===t&&("object"==typeof(s=e)&&null!==s))return!0;var s;const i=a(e,o),n=a(t,o);for(const e of i)if(n.has(e))return!0;return!1}class d extends s{_editor=null;_lifecyclePromise=null;_throttledSave;_data;_lastDocumentVersion;_elementOrData;_initUsingData=!0;_editables={};_config;_excludedProps;constructor(e,t={}){super(t),this._throttledSave=(0,i.n)(this._save.bind(this),"number"==typeof t.saveInterval?t.saveInterval:5e3),e&&(this._creator=(t,o)=>e.create(t,o)),this._destructor=e=>e.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(e=>{console.error("An error happened during the editor destroying.",e)}).then(()=>{const e={},t=[],o=this._config.rootsAttributes||{},s={};for(const[i,n]of Object.entries(this._data.roots))n.isLoaded?(e[i]="",s[i]=o[i]||{}):t.push(i);const i={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:t,rootsAttributes:s,_watchdogInitialData:this._data};return delete i.initialData,i.extraPlugins.push(u),this._initUsingData?this.create(e,i,i.context):(0,n.v)(this._elementOrData)?this.create(this._elementOrData,i,i.context):this.create(this._editables,i,i.context)}).then(()=>{this._fire("restart")})}create(e=this._elementOrData,t=this._config,o){return 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=o,this._creator(e,this._config))).then(e=>{this._editor=e,e.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=e.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")}).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:o}=e,s=o.has("CommentsRepository")&&o.get("CommentsRepository"),i=o.has("TrackChanges")&&o.get("TrackChanges"),n={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};t.forEach(e=>{n.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&&(n.markers[t.name]={rangeJSON:t.getRange().toJSON(),usingOperation:t._managedUsingOperations,affectsData:t._affectsData});return s&&(n.commentThreads=JSON.stringify(s.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),i&&(n.suggestions=JSON.stringify(i.getSuggestions({toJSON:!0,skipNotAttached:!0}))),n}_getEditables(){const e={};for(const t of this.editor.model.document.getRootNames()){const o=this.editor.ui.getEditableElement(t);o&&(e[t]=o)}return e}_isErrorComingFromThisItem(e){return l(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return(0,r.s)(e,(e,t)=>(0,n.v)(e)||"context"===t?e:void 0)}}class u{editor;_data;constructor(e){this.editor=e,this._data=e.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",e=>{e.stop(),this.editor.model.enqueueChange({isUndoable:!1},e=>{this._restoreCollaborationData(),this._restoreEditorData(e)}),this.editor.data.fire("ready")},{priority:999})}_createNode(e,t){if("name"in t){const o=e.createElement(t.name,t.attributes);if(t.children)for(const s of t.children)o._appendChild(this._createNode(e,s));return o}return e.createText(t.data,t.attributes)}_restoreEditorData(e){const t=this.editor;Object.entries(this._data.roots).forEach(([o,{content:s,attributes:i}])=>{const n=JSON.parse(s),r=JSON.parse(i),a=t.model.document.getRoot(o);for(const[t,o]of r)e.setAttribute(t,o,a);for(const t of n){const o=this._createNode(e,t);e.insert(o,a,"end")}}),Object.entries(this._data.markers).forEach(([o,s])=>{const{document:i}=t.model,{rangeJSON:{start:n,end:r},...a}=s,c=i.getRoot(n.root),l=e.createPositionFromPath(c,n.path,n.stickiness),d=e.createPositionFromPath(c,r.path,r.stickiness),u=e.createRange(l,d);e.addMarker(o,{range:u,...a})})}_restoreCollaborationData(){const e=JSON.parse(this._data.commentThreads),t=JSON.parse(this._data.suggestions);if(this.editor.plugins.has("CommentsRepository")){const t=this.editor.plugins.get("CommentsRepository");for(const e of t.getCommentThreads())t._removeCommentThread({threadId:e.id});e.forEach(e=>{const t=this.editor.config.get("collaboration.channelId");this.editor.plugins.get("CommentsRepository").addCommentThread({channelId:t,...e})})}if(this.editor.plugins.has("TrackChangesEditing")){const e=this.editor.plugins.get("TrackChangesEditing");for(const t of e.getSuggestions())e._removeSuggestion(t);t.forEach(t=>{e.addSuggestionData(t)})}}}const h=Symbol("MainQueueId");class p extends s{_watchdogs=new Map;_watchdogConfig;_context=null;_contextProps=new Set;_actionQueues=new m;_contextConfig;_item;constructor(e,t={}){super(t),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(h,()=>(this._contextConfig=e,this._create()))}getItem(e){return this._getWatchdog(e)._item}getItemState(e){return this._getWatchdog(e).state}add(e){const t=g(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 d(null,this._watchdogConfig),t.setCreator(e.creator),t._setExcludedProperties(this._contextProps),e.destructor&&t.setDestructor(e.destructor),this._watchdogs.set(e.id,t),t.on("error",(o,{error:s,causesRestart:i})=>{this._fire("itemError",{itemId:e.id,error:s}),i&&this._actionQueues.enqueue(e.id,()=>new Promise(o=>{const s=()=>{t.off("restart",s),this._fire("itemRestart",{itemId:e.id}),o()};t.on("restart",s)}))}),t.create(e.sourceElementOrData,e.config,this._context);throw new Error(`Not supported item type: '${e.type}'.`)})))}remove(e){const t=g(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(h,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(h,()=>(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=a(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 l(this._context,e.context)}}class m{_onEmptyCallbacks=[];_queues=new Map;_activeActions=0;onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e,t){const o=e===h;this._activeActions++,this._queues.get(e)||this._queues.set(e,Promise.resolve());const s=(o?Promise.all(this._queues.values()):Promise.all([this._queues.get(h),this._queues.get(e)])).then(t),i=s.catch(()=>{});return this._queues.set(e,i),s.finally(()=>{this._activeActions--,this._queues.get(e)===i&&0===this._activeActions&&this._onEmptyCallbacks.forEach(e=>e())})}}function g(e){return Array.isArray(e)?e:[e]}var f=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs");class _{editor;_entries=[];_frameStack=[];_errors=new Set;_maxEntries;_errorCallback;_filterCallback;_maxEntriesCallback;static get pluginName(){return"ActionsRecorder"}static get isOfficialPlugin(){return!0}constructor(e){this.editor=e,e.config.define("actionsRecorder.maxEntries",1e3);const t=e.config.get("actionsRecorder");this._maxEntries=t.maxEntries,this._filterCallback=t.onFilter,this._errorCallback=t.onError,this._maxEntriesCallback=t.onMaxEntries||this._maxEntriesDefaultHandler,this._tapCommands(),this._tapOperationApply(),this._tapModelMethods(),this._tapModelSelection(),this._tapComponentFactory(),this._tapViewDocumentEvents()}getEntries(){return this._entries.slice()}flushEntries(){this._entries=[]}_enterFrame(e,t){const o={timeStamp:(new Date).toISOString(),...this._frameStack.length&&{parentEntry:this._frameStack.at(-1)},action:e,params:t?.map(e=>w(e)),before:this._buildStateSnapshot()};return this._filterCallback&&!this._filterCallback(o,this._entries)||this._entries.push(o),this._frameStack.push(o),o}_leaveFrame(e,t,o){const s=this._frameStack.pop();s&&s===e&&(void 0!==t&&(s.result=w(t)),o&&(s.error=w(o)),s.after=this._buildStateSnapshot(),o&&this._callErrorCallback(o),0==this._frameStack.length&&this._errors.clear(),this._entries.length>=this._maxEntries&&this._maxEntriesCallback())}_buildStateSnapshot(){const{model:e,isReadOnly:t,editing:o}=this.editor;return{documentVersion:e.document.version,editorReadOnly:t,editorFocused:o.view.document.isFocused,modelSelection:w(e.document.selection)}}_tapCommands(){for(const[e,t]of this.editor.commands)this._tapCommand(e,t);b(this.editor.commands,"add",{before:(e,[t,o])=>(this._tapCommand(t,o),!1)})}_tapOperationApply(){b(this.editor.model,"applyOperation",{before:(e,[t])=>null!==t.baseVersion&&(e.callFrame=this._enterFrame("model.applyOperation",[t]),!0),after:e=>{this._leaveFrame(e.callFrame)},error:(e,t)=>{this._leaveFrame(e.callFrame,void 0,t)}})}_tapModelMethods(){for(const e of["insertContent","insertObject","deleteContent"])b(this.editor.model,e,{before:(t,...o)=>(t.callFrame=this._enterFrame(`model.${e}`,o),!0),after:(e,t)=>{this._leaveFrame(e.callFrame,t)},error:(e,t)=>{this._leaveFrame(e.callFrame,void 0,t)}})}_tapModelSelection(){this._tapFireMethod(this.editor.model.document.selection,["change:range","change:attribute","change:marker"],{eventSource:"model-selection"})}_tapCommand(e,t){b(t,"execute",{before:(t,o)=>(t.callFrame=this._enterFrame(`commands.${e}:execute`,o),!0),after:(e,t)=>{this._leaveFrame(e.callFrame,t)},error:(e,t)=>{this._leaveFrame(e.callFrame,void 0,t)}})}_tapComponentFactory(){b(this.editor.ui.componentFactory,"create",{before:(e,[t])=>(e.componentName=t,e.callFrame=this._enterFrame(`component-factory.create:${t}`),!0),after:(e,t)=>{const o={...e,eventSource:`component.${e.componentName}`};"function"==typeof t.fire&&this._tapFireMethod(t,["execute"],o),"function"==typeof t.panelView?.fire&&this._tapFireMethod(t.panelView,["execute"],o),"function"==typeof t.buttonView?.actionView?.fire&&this._tapFireMethod(t.buttonView.actionView,["execute"],o),this._leaveFrame(e.callFrame)},error:(e,t)=>{this._leaveFrame(e.callFrame,void 0,t)}})}_tapViewDocumentEvents(){this._tapFireMethod(this.editor.editing.view.document,["click","mousedown","mouseup","pointerdown","pointerup","focus","blur","keydown","keyup","selectionChange","compositionstart","compositionend","beforeinput","mutations","enter","delete","insertText","paste","copy","cut","dragstart","drop"],{eventSource:"observers"})}_tapFireMethod(e,t,o={}){b(e,"fire",{before:(e,[o,...s])=>{const i="string"==typeof o?o:o.name;return!!t.includes(i)&&(e.callFrame=this._enterFrame(`${e.eventSource}:${i}`,s),!0)},after:(e,t)=>{this._leaveFrame(e.callFrame,t)},error:(e,t)=>{this._leaveFrame(e.callFrame,void 0,t)}},o)}_callErrorCallback(e){if(this._errorCallback&&!this._errors.has(e)){this._errors.add(e);try{this._errorCallback(e,this.getEntries())}catch(e){console.error("ActionsRecorder onError callback error:",e)}}}_maxEntriesDefaultHandler(){this._entries.shift()}}function b(e,t,o,s={}){const i=e[t];i[Symbol.for("Tapped method")]||(e[t]=(...t)=>{const n=Object.assign({},s);let r;try{r=o.before?.(n,t);const s=i.apply(e,t);return r&&o.after?.(n,s),s}catch(e){throw r&&o.error?.(n,e),e}},e[t][Symbol.for("Tapped method")]=i)}function w(e,t=new WeakSet){if(!e||["boolean","number","string"].includes(typeof e))return e;if("function"==typeof e.toJSON){const o=e.toJSON();if((0,f.Q)(o)||Array.isArray(o)||["string","number","boolean"].includes(typeof o))return w(o,t)}if(e instanceof Error)return{name:e.name,message:e.message,stack:e.stack};if(function(e){return e&&"function"==typeof e.is}(e)||"object"!=typeof e)return{type:typeof e,constructor:e.constructor?.name||"unknown",string:String(e)};if(e instanceof File||e instanceof Blob||e instanceof FormData||e instanceof DataTransfer)return String(e);if(t.has(e))return;if(t.add(e),Array.isArray(e))return e.length?e.map(e=>w(e,t)):void 0;const o={},s=[];e.domEvent&&(s.push("domEvent","domTarget","view","document"),o.domEvent=function(e){let t={type:e.type,target:o(e.target)};e instanceof MouseEvent&&(t={...t,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey});e instanceof KeyboardEvent&&(t={...t,key:e.key,code:e.code,keyCode:e.keyCode,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,repeat:e.repeat});e instanceof InputEvent&&(t={...t,data:e.data,inputType:e.inputType,isComposing:e.isComposing});e instanceof PointerEvent&&(t={...t,isPrimary:e.isPrimary});function o(e){return e?e instanceof Element?{tagName:e.tagName,className:e.className,id:e.id}:e instanceof Window||e instanceof Document?{type:e.constructor.name}:{}:null}return t}(e.domEvent),o.target=w(e.target),e.dataTransfer&&(o.dataTransfer={types:e.dataTransfer.types,htmlData:e.dataTransfer.getData("text/html"),files:w(e.dataTransfer.files)}));for(const[i,n]of Object.entries(e)){if(i.startsWith("_")||s.includes(i)||"function"==typeof n)continue;const e=w(n,t);void 0!==e&&(o[i]=e)}if(Symbol.iterator in e){const s=Array.from(e[Symbol.iterator]()).map(e=>w(e,t));s.length&&(o._items=s)}return Object.keys(o).length?o:void 0}},"../ckeditor5-widget/src/index.ts":(e,t,o)=>{"use strict";o.d(t,{iW:()=>f,w_:()=>_,x0:()=>ie,Ng:()=>h,VE:()=>ve,ul:()=>he,xM:()=>fe,oP:()=>le,oT:()=>X,P0:()=>V,Gx:()=>ge,q:()=>I,yI:()=>j,mE:()=>R,qv:()=>z,Wu:()=>P,Hq:()=>M,iB:()=>E,p9:()=>A,Yj:()=>O,p4:()=>b,_s:()=>y,je:()=>x,Ex:()=>w,YN:()=>C,x$:()=>Q,$u:()=>S});var s=o("../ckeditor5-core/src/index.ts"),i=o("../ckeditor5-engine/src/index.ts"),n=o("../ckeditor5-typing/src/index.ts"),r=o("../ckeditor5-utils/src/index.ts"),a=o("../ckeditor5-icons/theme/icons/return-arrow.svg"),c=o("../ckeditor5-ui/src/template.js"),l=o("../ckeditor5-enter/src/index.ts"),d=o("../ckeditor5-icons/theme/icons/drag-handle.svg"),u=o("../ckeditor5-ui/src/icon/iconview.js");class h extends((0,r.Mm)()){_stack=[];add(e,t){const o=this._stack,s=o[0];this._insertDescriptor(e);const i=o[0];s===i||p(s,i)||this.fire("change:top",{oldDescriptor:s,newDescriptor:i,writer:t})}remove(e,t){const o=this._stack,s=o[0];this._removeDescriptor(e);const i=o[0];s===i||p(s,i)||this.fire("change:top",{oldDescriptor:s,newDescriptor:i,writer:t})}_insertDescriptor(e){const t=this._stack,o=t.findIndex(t=>t.id===e.id);if(p(e,t[o]))return;o>-1&&t.splice(o,1);let s=0;for(;t[s]&&m(t[s],e);)s++;t.splice(s,0,e)}_removeDescriptor(e){const t=this._stack,o=t.findIndex(t=>t.id===e);o>-1&&t.splice(o,1)}}function p(e,t){return e&&t&&e.priority==t.priority&&g(e.classes)==g(t.classes)}function m(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&g(e.classes)>g(t.classes)}function g(e){return Array.isArray(e)?e.sort().join(","):e}const f="ck-widget",_="ck-widget_selected";function b(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function w(e,t,o={}){if(!e.is("containerElement"))throw new r.Yb("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass(f,e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=T,t.setCustomProperty("widgetLabel",[],e),o.label&&x(e,o.label),o.hasSelectionHandle&&function(e,t){const o=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(e){const t=this.toDomElement(e),o=new u.L;return o.set("content",d.A),o.render(),t.appendChild(o.element),t});t.insert(t.createPositionAt(e,0),o),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),y(e,t),e}function k(e,t,o){if(t.classes&&o.addClass((0,r.$r)(t.classes),e),t.attributes)for(const s in t.attributes)o.setAttribute(s,t.attributes[s],e)}function v(e,t,o){if(t.classes&&o.removeClass((0,r.$r)(t.classes),e),t.attributes)for(const s in t.attributes)o.removeAttribute(s,e)}function y(e,t,o=k,s=v){const i=new h;i.on("change:top",(t,i)=>{i.oldDescriptor&&s(e,i.oldDescriptor,i.writer),i.newDescriptor&&o(e,i.newDescriptor,i.writer)});t.setCustomProperty("addHighlight",(e,t,o)=>i.add(t,o),e),t.setCustomProperty("removeHighlight",(e,t,o)=>i.remove(t,o),e)}function x(e,t){e.getCustomProperty("widgetLabel").push(t)}function A(e){return e.getCustomProperty("widgetLabel").reduce((e,t)=>"function"==typeof t?e?e+". "+t():t():e?e+". "+t:t,"")}function C(e,t,o={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),!1!==o.withAriaRole&&t.setAttribute("role","textbox",e),e.isReadOnly||t.setAttribute("tabindex","-1",e),o.label&&t.setAttribute("aria-label",o.label,e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(o,s,i)=>{t.setAttribute("contenteditable",i?"false":"true",e),i?t.removeAttribute("tabindex",e):t.setAttribute("tabindex","-1",e)}),e.on("change:isFocused",(o,s,i)=>{i?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)}),y(e,t),e}function E(e,t){const o=e.getSelectedElement();if(o){const s=z(e);if(s)return t.createRange(t.createPositionAt(o,s))}return t.schema.findOptimalInsertionRange(e)}function S(e,t){return(o,s)=>{const{mapper:i,viewPosition:n}=s,r=i.findMappedViewAncestor(n);if(!t(r))return;const a=i.toModelElement(r);s.modelPosition=e.createPositionAt(a,n.isAtStart?"before":"after")}}function T(){return null}function P(e){const t=e=>{const{width:t,paddingLeft:o,paddingRight:s}=e.ownerDocument.defaultView.getComputedStyle(e);return parseFloat(t)-(parseFloat(o)||0)-(parseFloat(s)||0)},o=e.parentElement;if(!o)return 0;let s=t(o);let i=0,n=o;for(;isNaN(s);){if(n=n.parentElement,++i>5)return 0;s=t(n)}return s}function M(e,t=new r.rw(e)){const o=P(e);return o?t.width/o*100:0}const V="widget-type-around";function O(e,t,o){return!!e&&b(e)&&!o.isInline(t)}function I(e){return e.closest(".ck-widget__type-around__button")}function R(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function j(e,t){const o=e.closest(".ck-widget");return t.mapDomToView(o)}function z(e){return e.getAttribute(V)}var B=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),N=o.n(B),L=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),D=o.n(L),F=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),H=o.n(F),q=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),W=o.n(q),$=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),U=o.n($),K=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-widget/theme/widgettypearound.css"),Y={attributes:{"data-cke":!0}};Y.setAttributes=W(),Y.insert=H().bind(null,"head"),Y.domAPI=D(),Y.insertStyleElement=U();N()(K.A,Y);K.A&&K.A.locals&&K.A.locals;const G=["before","after"],J=(new DOMParser).parseFromString(a.A,"image/svg+xml").firstChild,Z="ck-widget__type-around_disabled";class X extends s.k_{_currentFakeCaretModelElement=null;static get pluginName(){return"WidgetTypeAround"}static get isOfficialPlugin(){return!0}static get requires(){return[l.xy,n.ep]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(o,s,i)=>{t.change(e=>{for(const o of t.document.roots)i?e.removeClass(Z,o):e.addClass(Z,o)}),i||e.model.change(e=>{e.removeSelectionAttribute(V)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const o=this.editor,s=o.editing.view,i=o.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);o.execute("insertParagraph",{position:o.model.createPositionAt(e,t),attributes:i}),s.focus(),s.scrollToTheSelection()}_listenToIfEnabled(e,t,o,s){this.listenTo(e,t,(...e)=>{this.isEnabled&&o(...e)},s)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=z(e);if(!t)return!1;const o=e.getSelectedElement();return this._insertParagraph(o,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,o=e.locale.t,s={before:o("Insert paragraph before block"),after:o("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(e,i,n)=>{const r=n.mapper.toViewElement(i.item);if(r&&O(r,i.item,t)){!function(e,t,o){const s=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(e){const o=this.toDomElement(e);return function(e,t){for(const o of G){const s=new c.Bj({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${o}`],title:t[o],"aria-hidden":"true"},children:[e.ownerDocument.importNode(J,!0)]});e.appendChild(s.render())}}(o,t),function(e){const t=new c.Bj({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(o),o});e.insert(e.createPositionAt(o,"end"),s)}(n.writer,s,r);r.getCustomProperty("widgetLabel").push(()=>this.isEnabled?o("Press Enter to type after or press Shift + Enter to type before the widget"):"")}},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,o=t.document.selection,s=t.schema,i=e.editing.view;function n(e){return`ck-widget_type-around_show-fake-caret_${e}`}this._listenToIfEnabled(i.document,"arrowKey",(e,t)=>{this._handleArrowKeyPress(e,t)},{context:[b,"$text"],priority:"high"}),this._listenToIfEnabled(o,"change:range",(t,o)=>{o.directChange&&e.model.change(e=>{e.removeSelectionAttribute(V)})}),this._listenToIfEnabled(t.document,"change:data",()=>{const t=o.getSelectedElement();if(t){if(O(e.editing.mapper.toViewElement(t),t,s))return}e.model.change(e=>{e.removeSelectionAttribute(V)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(e,t,o)=>{const i=o.writer;if(this._currentFakeCaretModelElement){const e=o.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(i.removeClass(G.map(n),e),this._currentFakeCaretModelElement=null)}const r=t.selection.getSelectedElement();if(!r)return;const a=o.mapper.toViewElement(r);if(!O(a,r,s))return;const c=z(t.selection);c&&(i.addClass(n(c),a),this._currentFakeCaretModelElement=r)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(t,o,s)=>{s||e.model.change(e=>{e.removeSelectionAttribute(V)})})}_handleArrowKeyPress(e,t){const o=this.editor,s=o.model,i=s.document.selection,n=s.schema,a=o.editing.view;if(t.shiftKey)return;const c=t.keyCode,l=(0,r.HK)(c,o.locale.contentLanguageDirection),d=a.document.selection.getSelectedElement();let u;O(d,o.editing.mapper.toModelElement(d),n)?u=this._handleArrowKeyPressOnSelectedWidget(l):i.isCollapsed?u=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):t.shiftKey||(u=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),u&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,o=z(t.document.selection);return t.change(t=>{if(!o)return t.setSelectionAttribute(V,e?"after":"before"),!0;if(!(o===(e?"after":"before")))return t.removeSelectionAttribute(V),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,o=t.model,s=o.schema,i=t.plugins.get("Widget"),n=i._getObjectElementNextToSelection(e);return!!O(t.editing.mapper.toViewElement(n),n,s)&&(o.change(t=>{i._setSelectionOverElement(n),t.setSelectionAttribute(V,e?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,o=t.model,s=o.schema,i=t.editing.mapper,n=o.document.selection,r=e?n.getLastPosition().nodeBefore:n.getFirstPosition().nodeAfter;return!!O(i.toViewElement(r),r,s)&&(o.change(t=>{t.setSelection(r,"on"),t.setSelectionAttribute(V,e?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(o,s)=>{const i=I(s.domTarget);if(!i)return;const n=R(i),r=j(i,t.domConverter),a=e.editing.mapper.toModelElement(r);this._insertParagraph(a,n),s.preventDefault(),o.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,o=e.editing.view;this._listenToIfEnabled(o.document,"enter",(o,s)=>{if("atTarget"!=o.eventPhase)return;const i=t.getSelectedElement(),n=e.editing.mapper.toViewElement(i),r=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:O(n,i,r)&&(this._insertParagraph(i,s.isSoft?"before":"after"),a=!0),a&&(s.preventDefault(),o.stop())},{context:b})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",(t,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=e.selection)},{priority:"high"}),r._K.isAndroid?this._listenToIfEnabled(e,"keydown",(e,t)=>{229==t.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(e,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"highest"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,o=e.model,s=o.schema;this._listenToIfEnabled(t.document,"delete",(t,i)=>{if("atTarget"!=t.eventPhase)return;const n=z(o.document.selection);if(!n)return;const r=i.direction,a=o.document.selection.getSelectedElement(),c="forward"==r;if("before"===n===c)e.execute("delete",{selection:o.createSelection(a,"on")});else{const t=s.getNearestSelectionRange(o.createPositionAt(a,n),r);if(t)if(t.isCollapsed){const i=o.createSelection(t.start);if(o.modifySelection(i,{direction:r}),i.focus.isEqual(t.start)){const e=function(e,t){let o=t;for(const s of t.getAncestors({parentFirst:!0})){if(s.childCount>1||e.isLimit(s))break;o=s}return o}(s,t.start.parent);o.deleteContent(o.createSelection(e,"on"),{doNotAutoparagraph:!0})}else o.change(o=>{o.setSelection(t),e.execute(c?"deleteForward":"delete")})}else o.change(o=>{o.setSelection(t),e.execute(c?"deleteForward":"delete")})}i.preventDefault(),t.stop()},{context:b})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,o=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(e,[s,i])=>{if(i&&!i.is("documentSelection"))return;const n=z(o);return n?(e.stop(),t.change(e=>{const i=o.getSelectedElement(),r=t.createPositionAt(i,n),a=e.createSelection(r),c=t.insertContent(s,a);return e.setSelection(a),c})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(e,o)=>{const[,s,i={}]=o;if(s&&!s.is("documentSelection"))return;const n=z(t);n&&(i.findOptimalPosition=n,o[3]=i)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(e,[o])=>{if(o&&!o.is("documentSelection"))return;z(t)&&e.stop()},{priority:"high"})}}function Q(e){const t=e.model;return(o,s)=>{const i=s.keyCode==r.uP.arrowup,n=s.keyCode==r.uP.arrowdown,a=s.shiftKey,c=t.document.selection;if(!i&&!n)return;const l=n,d=function(e,t,o){const s=e.model;if(o){const e=t.focus,o=ee(s,e,"forward");if(!o)return;const i=s.createRange(e,o),n=te(s.schema,i,"backward");if(n)return s.createRange(e,n)}else{const e=t.focus,o=ee(s,e,"backward");if(!o)return;const i=s.createRange(o,e),n=te(s.schema,i,"forward");if(n)return s.createRange(n,e)}}(e,c,l);if(d){if(d.isCollapsed){if(c.isCollapsed)return;if(a)return}(d.isCollapsed||function(e,t,o){const s=e.model,i=e.view.domConverter;if(o){const e=s.createSelection(t.start);s.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=s.createRange(e.focus,t.end))}const n=e.mapper.toViewRange(t),a=i.viewRangeToDom(n),c=r.rw.getDomRangeRects(a);let l;for(const e of c)if(void 0!==l){if(Math.round(e.top)>=l)return!1;l=Math.max(l,Math.round(e.bottom))}else l=Math.round(e.bottom);return!0}(e,d,l))&&(t.change(e=>{const o=l?d.end:d.start;if(a){const s=t.createSelection(c.anchor);s.setFocus(o),e.setSelection(s)}else e.setSelection(o)}),o.stop(),s.preventDefault(),s.stopPropagation())}}}function ee(e,t,o){const s=e.schema,i=e.createRangeIn(t.root),n="forward"==o?"elementStart":"elementEnd";for(const{previousPosition:e,item:r,type:a}of i.getWalker({startPosition:t,direction:o})){if(s.isLimit(r)&&!s.isInline(r))return e;if(a==n&&s.isBlock(r))return null}return null}function te(e,t,o){const s="backward"==o?t.end:t.start;if(e.checkChild(s,"$text"))return s;for(const{nextPosition:s}of t.getWalker({direction:o}))if(e.checkChild(s,"$text"))return s}var oe=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-widget/theme/widget.css"),se={attributes:{"data-cke":!0}};se.setAttributes=W(),se.insert=H().bind(null,"head"),se.domAPI=D(),se.insertStyleElement=U();N()(oe.A,se);oe.A&&oe.A.locals&&oe.A.locals;class ie extends s.k_{_previouslySelected=new Set;static get pluginName(){return"Widget"}static get isOfficialPlugin(){return!0}static get requires(){return[X,n.ep]}init(){const e=this.editor,t=e.editing.view,o=t.document,s=e.t;this.editor.editing.downcastDispatcher.on("selection",(t,o,s)=>{const i=s.writer,n=o.selection;if(n.isCollapsed)return;const r=n.getSelectedElement();if(!r)return;const a=e.editing.mapper.toViewElement(r);b(a)&&s.consumable.consume(n,"selection")&&i.setSelection(i.createRangeOn(a),{fake:!0,label:A(a)})}),this.editor.editing.downcastDispatcher.on("selection",(e,t,o)=>{this._clearPreviouslySelectedWidgets(o.writer);const s=o.writer,i=s.document.selection;let n=null;for(const e of i.getRanges())for(const t of e){const e=t.item;b(e)&&!ne(e,n)&&(s.addClass(_,e),this._previouslySelected.add(e),n=e)}},{priority:"low"}),t.addObserver(i.q$Y),t.addObserver(i.oXW),this.listenTo(o,"mousedown",(...e)=>this._onMousedown(...e)),this.listenTo(o,"pointerdown",(...e)=>this._onPointerdown(...e)),this.listenTo(o,"arrowKey",(...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)},{context:[b,"$text"]}),this.listenTo(o,"arrowKey",(...e)=>{this._preventDefaultOnArrowKeyPress(...e)},{context:"$root"}),this.listenTo(o,"arrowKey",Q(this.editor.editing),{context:"$text"}),this.listenTo(o,"delete",(e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())},{context:"$root"}),this.listenTo(o,"tab",(e,o)=>{this._selectNextEditable(o.shiftKey?"backward":"forward")&&(t.scrollToTheSelection(),o.preventDefault(),e.stop())},{context:e=>b(e)||e.is("editableElement"),priority:"low"}),this.listenTo(o,"keydown",(e,t)=>{t.keystroke==r.uP.esc&&this._selectAncestorWidget()&&(t.preventDefault(),e.stop())},{context:e=>e.is("editableElement"),priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:s("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:s("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:s("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:s("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:s("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:s("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){const o=t.target;o&&t.domEvent.detail>=3&&this._selectBlockContent(o)&&t.preventDefault()}_onPointerdown(e,t){if(!t.domEvent.isPrimary)return;const o=this.editor,s=o.editing.view,i=s.document;let n=t.target;if(!n)return;if(!b(n)){const e=function(e){let t=e;for(;t;){if(t.is("editableElement")||b(t))return t;t=t.parent}return null}(n);if(!e)return;if(b(e))n=e;else{const e=function(e,t){const o=(0,r.jr)(t.domEvent);let s=null;s=o?e.domConverter.domRangeToView(o):e.createRange(e.createPositionAt(t.target,0));if(!s)return null;const i=s.start;if(!i.parent)return null;let n=i.parent;i.parent.is("editableElement")&&(i.isAtEnd&&i.nodeBefore?n=i.nodeBefore:i.isAtStart&&i.nodeAfter&&(n=i.nodeAfter));if(n.is("$text"))return n.parent;return n}(s,t);if(!e||!b(e))return;n=e}}(r._K.isAndroid||r._K.isiOS)&&t.preventDefault(),i.isFocused||s.focus();const a=o.editing.mapper.toModelElement(n);this._setSelectionOverElement(a)}_selectBlockContent(e){const t=this.editor,o=t.model,s=t.editing.mapper,n=o.schema,r=s.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),a=function(e,t){for(const o of e.getAncestors({includeSelf:!0,parentFirst:!0})){if(t.checkChild(o,"$text"))return o;if(t.isLimit(o)&&!t.isObject(o))break}return null}(s.toModelElement(r),o.schema);return!!a&&(o.change(e=>{const t=n.isLimit(a)?null:function(e,t){const o=new i.oDe({startPosition:e});for(const{item:e}of o){if(t.isLimit(e)||!e.is("element"))return null;if(t.checkChild(e,"$text"))return e}return null}(e.createPositionAfter(a),n),o=e.createPositionAt(a,0),s=t?e.createPositionAt(t,0):e.createPositionAt(a,"end");e.setSelection(e.createRange(o,s))}),!0)}_handleSelectionChangeOnArrowKeyPress(e,t){const o=t.keyCode,s=this.editor.model,i=s.schema,n=s.document.selection,a=n.getSelectedElement(),c=(0,r.Kf)(o,this.editor.locale.contentLanguageDirection),l="down"==c||"right"==c,d="up"==c||"down"==c;if(!t.shiftKey&&!n.isCollapsed){if(function(e,t){const o=e.getFirstPosition(),s=e.getLastPosition(),i=o.nodeAfter,n=s.nodeBefore;return!!i&&t.isObject(i)||!!n&&t.isObject(n)}(n,i)){const o=l?n.getLastPosition():n.getFirstPosition(),r=i.getNearestSelectionRange(o,l?"forward":"backward");r&&(s.change(e=>{e.setSelection(r)}),t.preventDefault(),e.stop())}return}const u=function(e,t){const o=e.document.selection,s=o.getSelectedElement(),i=z(o);if(s&&"before"==i)return e.createSelection(s,"before");if(s&&"after"==i)return e.createSelection(s,"after");return e.createSelection(o.getRanges(),{backward:s&&e.schema.isObject(s)?!t:o.isBackward})}(s,l),h=s.createSelection(u);if(s.modifySelection(h,{direction:l?"forward":"backward"}),h.isEqual(u))return;h.focus.isTouching(u.focus)&&s.modifySelection(h,{direction:l?"forward":"backward"});const p=l?u.focus.nodeBefore:u.focus.nodeAfter,m=h.focus.nodeBefore,g=h.focus.nodeAfter,f=l?m:g;if(t.shiftKey)(a&&i.isObject(a)||f&&i.isObject(f)||p&&i.isObject(p))&&(s.change(e=>{e.setSelection(h)}),t.preventDefault(),e.stop());else if(f&&i.isObject(f)){if(i.isInline(f)&&d)return;s.change(e=>{e.setSelection(f,"on")}),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const o=this.editor.model,s=o.schema,i=o.document.selection.getSelectedElement();i&&s.isObject(i)&&(t.preventDefault(),e.stop())}_handleDelete(e){const t=this.editor.model.document.selection;if(!this.editor.model.canEditAt(t))return;if(!t.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);return o?(this.editor.model.change(e=>{let s=t.anchor.parent;for(;s.isEmpty;){const t=s;s=t.parent,e.remove(t)}this._setSelectionOverElement(o)}),!0):void 0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,o=t.schema,s=t.document.selection,i=t.createSelection(s);if(t.modifySelection(i,{direction:e?"forward":"backward"}),i.isEqual(s))return null;const n=e?i.focus.nodeBefore:i.focus.nodeAfter;return n&&o.isObject(n)?n:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(_,t);this._previouslySelected.clear()}_selectNextEditable(e){const t=this.editor.editing,o=t.view,s=this.editor.model,i=o.document.selection,n=s.document.selection;let r;if(n.rangeCount>1){const o=n.isBackward?n.getFirstRange():n.getLastRange();r=t.mapper.toViewPosition("forward"==e?o.end:o.start)}else r="forward"==e?i.getFirstPosition():i.getLastPosition();const a=this._findNextFocusRange(r,e);return!!a&&(s.change(e=>{e.setSelection(a)}),!0)}_findNextFocusRange(e,t){const o=this.editor.editing,s=o.view,i=this.editor.model,n=s.document.selection,a=n.editableElement,c=a.getPath();let l=n.getSelectedElement();l&&!b(l)&&(l=null);const d="forward"==t?s.createRange(e,s.createPositionAt(e.root,"end")):s.createRange(s.createPositionAt(e.root,0),e);for(const{nextPosition:e}of d.getWalker({direction:t})){const s=e.parent;if(b(s)&&s!=l){const e=o.mapper.toModelElement(s);if(!i.schema.isBlock(e))continue;if("extension"!=(0,r.ww)(c,s.getPath()))return i.createRangeOn(e)}else if(s.is("editableElement")){if(s==a&&!l)continue;const n=o.mapper.toModelPosition(e),d=i.schema.getNearestSelectionRange(n,t);if(!d)continue;return s==a&&l?d:"extension"!=(0,r.ww)(c,s.getPath())?i.createRangeIn(i.schema.getLimitElement(d)):d}}return null}_selectAncestorWidget(){const e=this.editor,t=e.editing.mapper,o=e.editing.view.document.selection.getFirstPosition().parent,s=(o.is("$text")?o.parent:o).findAncestor(b);if(!s)return!1;const i=t.toModelElement(s);return!!i&&(e.model.change(e=>{e.setSelection(i,"on")}),!0)}}function ne(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var re=o("../ckeditor5-ui/src/panel/balloon/contextualballoon.js"),ae=o("../ckeditor5-ui/src/toolbar/toolbarview.js"),ce=o("../ckeditor5-ui/src/panel/balloon/balloonpanelview.js");class le extends s.k_{_toolbarDefinitions=new Map;_balloon;static get requires(){return[re.p]}static get pluginName(){return"WidgetToolbarRepository"}static get isOfficialPlugin(){return!0}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||!b(t))})(e.editing.view.document.selection)&&t.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:o,getRelatedElement:s,balloonClassName:i="ck-toolbar-container",positions:n}){if(!o.length)return void(0,r.FF)("widget-toolbar-no-items",{toolbarId:e});const a=this.editor,c=a.t,l=new ae.X3(a.locale);if(l.ariaLabel=t||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new r.Yb("widget-toolbar-duplicated",this,{toolbarId:e});const d={view:l,getRelatedElement:s,balloonClassName:i,itemsConfig:o,positions:n,initialized:!1};a.ui.addToolbar(l,{isContextual:!0,beforeFocus:()=>{const e=s(a.editing.view.document.selection);e&&this._showToolbar(d,e)},afterBlur:()=>{this._hideToolbar(d)}}),this._toolbarDefinitions.set(e,d)}_updateToolbarsVisibility(){let e=0,t=null,o=null;for(const s of this._toolbarDefinitions.values()){const i=s.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&i)if(this.editor.ui.focusTracker.isFocused){const n=i.getAncestors().length;n>e&&(e=n,t=i,o=s)}else this._isToolbarVisible(s)&&this._hideToolbar(s);else this._isToolbarInBalloon(s)&&this._hideToolbar(s)}o&&this._showToolbar(o,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?de(this.editor,t,e.positions):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:ue(this.editor,t,e.positions),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const t of this._toolbarDefinitions.values())if(this._isToolbarVisible(t)){const o=t.getRelatedElement(this.editor.editing.view.document.selection);de(this.editor,o,e.positions)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function de(e,t,o){const s=e.plugins.get("ContextualBalloon"),i=ue(e,t,o);s.updatePosition(i)}function ue(e,t,o){const s=e.editing.view,i=ce.J.defaultPositions;return{target:s.domConverter.mapViewToDom(t),positions:o||[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}class he extends((0,r.VM)()){_referenceCoordinates;_options;_originalWidth;_originalHeight;_originalWidthPercents;_aspectRatio;constructor(e){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(e,t,o){const s=new r.rw(t);this.activeHandlePosition=function(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const o of t)if(e.classList.contains(pe(o)))return o}(e),this._referenceCoordinates=function(e,t){const o=new r.rw(e),s=t.split("-"),i={x:"right"==s[1]?o.right:o.left,y:"bottom"==s[0]?o.bottom:o.top};return i.x+=e.ownerDocument.defaultView.scrollX,i.y+=e.ownerDocument.defaultView.scrollY,i}(t,function(e){const t=e.split("-"),o={top:"bottom",bottom:"top",left:"right",right:"left"};return`${o[t[0]]}-${o[t[1]]}`}(this.activeHandlePosition)),this._originalWidth=s.width,this._originalHeight=s.height,this._aspectRatio=s.width/s.height;const i=o.style.width;i&&i.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(i):this._originalWidthPercents=M(o,s)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function pe(e){return`ck-widget__resizer__handle-${e}`}var me=o("../ckeditor5-ui/src/view.js");class ge extends me.S{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",e=>e?`ck-orientation-${e}`:"")],style:{display:e.if("_isVisible","none",e=>!e)}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",(e,t)=>null!==e&&null!==t),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(t,o,s)=>"px"===e.unit?`${t}×${o}`:`${s}%`),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",(e,t,o)=>t<50||o<50?"above-center":e)}_dismiss(){this.unbind(),this._isVisible=!1}}class fe extends((0,r.VM)()){_state;_sizeView;_options;_viewResizerWrapper=null;_initialViewWidth;constructor(e){super(),this._options=e,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(e,t)=>e&&t),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",e=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),e.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(e=>{e.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(e=>{e.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const e=this,t=this._options.viewElement;this._options.editor.editing.view.change(o=>{const s=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(t){const o=this.toDomElement(t);return e._appendHandles(o),e._appendSizeUI(o),o});o.insert(o.createPositionAt(t,"end"),s),o.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=s,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(e){this._state=new he(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change(e=>{const o=this._options.unit||"%",s=("%"===o?t.widthPercents:t.width)+o;e.setStyle("width",s,this._options.viewElement)});const o=this._getHandleHost(),s=new r.rw(o),i=Math.round(s.width),n=Math.round(s.height),a=new r.rw(o);t.width=Math.round(a.width),t.height=Math.round(a.height),this.redraw(s),this.state.update({...t,handleHostWidth:i,handleHostHeight:n})}commit(){const e=this._options.unit||"%",t=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(t)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!((o=t)&&o.ownerDocument&&o.ownerDocument.contains(o)))return;var o;const s=t.parentElement,i=this._getHandleHost(),n=this._viewResizerWrapper,a=[n.getStyle("width"),n.getStyle("height"),n.getStyle("left"),n.getStyle("top")];let c;if(s.isSameNode(i)){const t=e||new r.rw(i);c=[t.width+"px",t.height+"px",void 0,void 0]}else c=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];"same"!==(0,r.ww)(a,c)&&this._options.editor.editing.view.change(e=>{e.setStyle({width:c[0],height:c[1],left:c[2],top:c[3]},n)})}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();this._options.editor.editing.view.change(e=>{e.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(e){const t=this.state,o={x:(s=e).pageX,y:s.pageY};var s;const i=!this._options.isCentered||this._options.isCentered(this),n={x:t._referenceCoordinates.x-(o.x+t.originalWidth),y:o.y-t.originalHeight-t._referenceCoordinates.y};i&&t.activeHandlePosition.endsWith("-right")&&(n.x=o.x-(t._referenceCoordinates.x+t.originalWidth)),i&&(n.x*=2);let r=Math.abs(t.originalWidth+n.x),a=Math.abs(t.originalHeight+n.y);return"width"==(r/t.aspectRatio>a?"width":"height")?a=r/t.aspectRatio:r=a*t.aspectRatio,{width:Math.round(r),height:Math.round(a),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*r*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 o of t)e.appendChild(new c.Bj({tag:"div",attributes:{class:`ck-widget__resizer__handle ${_e(o)}`}}).render())}_appendSizeUI(e){this._sizeView=new ge,this._sizeView.render(),e.appendChild(this._sizeView.element)}}function _e(e){return`ck-widget__resizer__handle-${e}`}var be=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.mjs"),we=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-widget/theme/widgetresize.css"),ke={attributes:{"data-cke":!0}};ke.setAttributes=W(),ke.insert=H().bind(null,"head"),ke.domAPI=D(),ke.insertStyleElement=U();N()(we.A,ke);we.A&&we.A.locals&&we.A.locals;class ve extends s.k_{_resizers=new Map;_observer;_redrawSelectedResizerThrottled;static get pluginName(){return"WidgetResize"}static get isOfficialPlugin(){return!0}init(){const e=this.editor.editing,t=r.Sf.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(i.q$Y),this._observer=new((0,r.c5)()),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=(0,be.n)(()=>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(r.Sf.window,"resize",this._redrawSelectedResizerThrottled);const o=this.editor.editing.view.document.selection;o.on("change",()=>{const e=o.getSelectedElement(),t=this.getResizerByViewElement(e)||null;t?this.select(t):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawSelectedResizerThrottled.cancel()}select(e){this.deselect(),this.selectedResizer=e,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(e){const t=new fe(e),o=this.editor.plugins;if(t.attach(),o.has("WidgetToolbarRepository")){const e=o.get("WidgetToolbarRepository");t.on("begin",()=>{e.forceDisabled("resize")},{priority:"lowest"}),t.on("cancel",()=>{e.clearForceDisabled("resize")},{priority:"highest"}),t.on("commit",()=>{e.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(e.viewElement,t);const s=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(s)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const o=t.domTarget;fe.isResizeHandle(o)&&(this._activeResizer=this._getResizerByHandle(o)||null,this._activeResizer&&(this._activeResizer.begin(o),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}},"./src/clipboard.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Clipboard:()=>de,ClipboardMarkersUtils:()=>I,ClipboardObserver:()=>r,ClipboardPipeline:()=>R,DragDrop:()=>ne,DragDropBlockToolbar:()=>U,DragDropTarget:()=>D,PastePlainText:()=>le,_ClipboardLineView:()=>N,_DragDrop:()=>ne,_DragDropBlockToolbar:()=>U,_DragDropTarget:()=>D,_normalizeClipboardData:()=>c,plainTextToHtml:()=>a,viewToPlainText:()=>u});var s=o("../ckeditor5-core/src/index.ts"),i=o("../ckeditor5-utils/src/index.ts"),n=o("../ckeditor5-engine/src/index.ts");class r extends n.$AX{domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];constructor(e){super(e);const t=this.document;function o(e){return(o,s)=>{s.preventDefault();const n=s.dropRange?[s.dropRange]:null,r=new i.vY(t,e);t.fire(r,{dataTransfer:s.dataTransfer,method:o.name,targetRanges:n,target:s.target,domEvent:s.domEvent}),r.stop.called&&s.stopPropagation()}}this.listenTo(t,"paste",o("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",o("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",o("dragging"),{priority:"low"})}onDomEvent(e){const t="clipboardData"in e?e.clipboardData:e.dataTransfer,o="drop"==e.type||"paste"==e.type,s={dataTransfer:new n.Tkc(t,{cacheFiles:o})};if("drop"==e.type||"dragover"==e.type){const t=(0,i.jr)(e);s.dropRange=t&&this.view.domConverter.domRangeToView(t)}this.fire(e.type,e,s)}}function a(e){return((e=e.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>")||e.includes("<br>"))&&(e=`<p>${e}</p>`),e}function c(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(e,t)=>1==t.length?" ":t).replace(/<!--[\s\S]*?-->/g,"")}const l=["figcaption","li"],d=["ol","ul"];function u(e,t){if(t.is("$text")||t.is("$textProxy"))return t.data;if(t.is("element","img")&&t.hasAttribute("alt"))return t.getAttribute("alt");if(t.is("element","br"))return"\n";let o="",s=null;for(const i of t.getChildren())o+=p(i,s)+u(e,i),s=i;if(t.is("rawElement")){const s=document.implementation.createHTMLDocument("").createElement("div");t.render(s,e),o+=h(s)}return o}function h(e){let t="";if(e.nodeType===Node.TEXT_NODE)return e.textContent;if("BR"===e.tagName)return"\n";for(const o of e.childNodes)t+=h(o);return t}function p(e,t){return t?e.is("element","li")&&!e.isEmpty&&e.getChild(0).is("containerElement")||d.includes(e.name)&&d.includes(t.name)?"\n\n":e.is("containerElement")||t.is("containerElement")?l.includes(e.name)||l.includes(t.name)?"\n":e.is("element")&&e.getCustomProperty("dataPipeline:transparentRendering")||t.is("element")&&t.getCustomProperty("dataPipeline:transparentRendering")?"":"\n\n":"":""}function m(e){return e}var g=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/get.mjs");var f=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs"),_=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs"),b=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/eq.mjs");function w(e,t,o,s){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,o,s){if(null==t)return!0;if(Array.isArray(t))return k(e,t,o,s);if(t instanceof Map)return function(e,t,o,s){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[i,n]of t.entries()){if(!1===o(e.get(i),n,i,e,t,s))return!1}return!0}(e,t,o,s);if(t instanceof Set)return function(e,t,o,s){if(0===t.size)return!0;if(!(e instanceof Set))return!1;return k([...e],[...t],o,s)}(e,t,o,s);const i=Object.keys(t);if(null==e)return 0===i.length;if(0===i.length)return!0;if(s&&s.has(t))return s.get(t)===e;s&&s.set(t,e);try{for(let n=0;n<i.length;n++){const r=i[n];if(!(0,_.s)(e)&&!(r in e))return!1;if(void 0===t[r]&&void 0!==e[r])return!1;if(null===t[r]&&null!==e[r])return!1;if(!o(e[r],t[r],r,e,t,s))return!1}return!0}finally{s&&s.delete(t)}}(e,t,o,s);case"function":return Object.keys(t).length>0?w(e,{...t},o,s):(0,b.eq)(e,t);default:return(0,f.G)(e)?"string"!=typeof t||""===t:(0,b.eq)(e,t)}}function k(e,t,o,s){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let n=0;n<t.length;n++){const r=t[n];let a=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=!1;if(o(e[c],r,n,e,t,s)&&(l=!0),l){i.add(c),a=!0;break}}if(!a)return!1}return!0}function v(e,t){return function(e,t,o){return"function"!=typeof o?v(e,t):w(e,t,function e(t,s,i,n,r,a){const c=o(t,s,i,n,r,a);return void 0!==c?Boolean(c):w(t,s,e,a)},new Map)}(e,t,()=>{})}var y=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs");function x(e){var t;return t=e,e=(0,y.UU)(t,void 0,t,new Map,void 0),t=>v(t,e)}var A=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs"),C=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs"),E=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs"),S=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs"),T=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs"),P=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/toPath.mjs");function M(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=(0,A.f)(e)}return t=(0,C.m)(t),function(o){const s=(0,g.J)(o,e);return void 0===s?function(e,t){let o;if(o=Array.isArray(t)?t:"string"==typeof t&&(0,E.A)(t)&&null==e?.[t]?(0,P.b)(t):[t],0===o.length)return!1;let s=e;for(let e=0;e<o.length;e++){const t=o[e];if(!(null!=s&&Object.hasOwn(s,t)||(Array.isArray(s)||(0,T.N)(s))&&(0,S.n)(t)&&t<s.length))return!1;s=s[t]}return!0}(o,e):void 0===t?void 0===s:v(s,t)}}function V(e){if(null==e)return m;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?M(e[0],e[1]):x(e);case"string":case"symbol":case"number":return t=e,function(e){return(0,g.J)(e,t)}}var t}function O(e,t=m){return null==e?{}:function(e,t){const o={},s=Object.keys(e);for(let i=0;i<s.length;i++){const n=s[i],r=e[n];o[n]=t(r,n,e)}return o}(e,V(t))}class I extends s.k_{_markersToCopy=new Map;static get pluginName(){return"ClipboardMarkersUtils"}static get isOfficialPlugin(){return!0}_registerMarkerToCopy(e,t){this._markersToCopy.set(e,t)}_copySelectedFragmentWithMarkers(e,t,o=e=>e.model.getSelectedContent(e.model.document.selection)){return this.editor.model.change(s=>{const i=s.model.document.selection;s.setSelection(t);const n=this._insertFakeMarkersIntoSelection(s,s.model.document.selection,e),r=o(s),a=this._removeFakeMarkersInsideElement(s,r);for(const[e,t]of Object.entries(n)){a[e]||=s.createRangeIn(r);for(const e of t)s.remove(e)}r.markers.clear();for(const[e,t]of Object.entries(a))r.markers.set(e,t);return s.setSelection(i),r})}_pasteMarkersIntoTransformedElement(e,t){const o=this._getPasteMarkersFromRangeMap(e);return this.editor.model.change(e=>{const s=this._insertFakeMarkersElements(e,o),i=t(e),n=this._removeFakeMarkersInsideElement(e,i);for(const t of Object.values(s).flat())e.remove(t);for(const[t,o]of Object.entries(n))e.model.markers.has(t)||e.addMarker(t,{usingOperation:!0,affectsData:!0,range:o});return i})}_pasteFragmentWithMarkers(e){const t=this._getPasteMarkersFromRangeMap(e.markers);e.markers.clear();for(const o of t)e.markers.set(o.name,o.range);return this.editor.model.insertContent(e)}_forceMarkersCopy(e,t,o={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){const s=this._markersToCopy.get(e);this._markersToCopy.set(e,o),t(),s?this._markersToCopy.set(e,s):this._markersToCopy.delete(e)}_isMarkerCopyable(e,t){const o=this._getMarkerClipboardConfig(e);if(!o)return!1;if(!t)return!0;const{allowedActions:s}=o;return"all"===s||s.includes(t)}_hasMarkerConfiguration(e){return!!this._getMarkerClipboardConfig(e)}_getMarkerClipboardConfig(e){const[t]=e.split(":");return this._markersToCopy.get(t)||null}_insertFakeMarkersIntoSelection(e,t,o){const s=this._getCopyableMarkersFromSelection(e,t,o);return this._insertFakeMarkersElements(e,s)}_getCopyableMarkersFromSelection(e,t,o){const s=Array.from(t.getRanges()),i=new Set(s.flatMap(t=>Array.from(e.model.markers.getMarkersIntersectingRange(t))));return Array.from(i).filter(e=>{if(!this._isMarkerCopyable(e.name,o))return!1;const{copyPartiallySelected:t}=this._getMarkerClipboardConfig(e.name);if(!t){const t=e.getRange();return s.some(e=>e.containsRange(t,!0))}return!0}).map(e=>({name:"dragstart"===o?this._getUniqueMarkerName(e.name):e.name,range:e.getRange()}))}_getPasteMarkersFromRangeMap(e,t=null){const{model:o}=this.editor;return(e instanceof Map?Array.from(e.entries()):Object.entries(e)).flatMap(([e,s])=>{if(!this._hasMarkerConfiguration(e))return[{name:e,range:s}];if(this._isMarkerCopyable(e,t)){const t=this._getMarkerClipboardConfig(e),i=o.markers.has(e)&&"$graveyard"===o.markers.get(e).getRange().root.rootName;return(t.duplicateOnPaste||i)&&(e=this._getUniqueMarkerName(e)),[{name:e,range:s}]}return[]})}_insertFakeMarkersElements(e,t){const o={},s=t.flatMap(e=>{const{start:t,end:o}=e.range;return[{position:t,marker:e,type:"start"},{position:o,marker:e,type:"end"}]}).sort(({position:e},{position:t})=>e.isBefore(t)?1:-1);for(const{position:t,marker:i,type:n}of s){const s=e.createElement("$marker",{"data-name":i.name,"data-type":n});o[i.name]||(o[i.name]=[]),o[i.name].push(s),e.insert(s,t)}return o}_removeFakeMarkersInsideElement(e,t){return O(this._getAllFakeMarkersFromElement(e,t).reduce((t,o)=>{const s=o.markerElement&&e.createPositionBefore(o.markerElement);let i=t[o.name],n=!1;if(i?.start&&i?.end){this._getMarkerClipboardConfig(o.name).duplicateOnPaste?t[this._getUniqueMarkerName(o.name)]=t[o.name]:n=!0,i=null}return n||(t[o.name]={...i,[o.type]:s}),o.markerElement&&e.remove(o.markerElement),t},{}),o=>new n.BNg(o.start||e.createPositionFromPath(t,[0]),o.end||e.createPositionAt(t,"end")))}_getAllFakeMarkersFromElement(e,t){const o=Array.from(e.createRangeIn(t)).flatMap(({item:e})=>{if(!e.is("element","$marker"))return[];const t=e.getAttribute("data-name"),o=e.getAttribute("data-type");return[{markerElement:e,name:t,type:o}]}),s=[],i=[];for(const e of o){if("end"===e.type){o.some(t=>t.name===e.name&&"start"===t.type)||s.push({markerElement:null,name:e.name,type:"start"})}if("start"===e.type){o.some(t=>t.name===e.name&&"end"===t.type)||i.unshift({markerElement:null,name:e.name,type:"end"})}}return[...s,...o,...i]}_getUniqueMarkerName(e){const t=e.split(":"),o=(0,i.Ld)().substring(1,6);return 3===t.length?`${t.slice(0,2).join(":")}:${o}`:`${t.join(":")}:${o}`}}class R extends s.k_{static get pluginName(){return"ClipboardPipeline"}static get isOfficialPlugin(){return!0}static get requires(){return[I]}init(){this.editor.editing.view.addObserver(r),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(e,t,o){const s=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:"cut"===o},()=>{const i=s._copySelectedFragmentWithMarkers(o,t);this.fire("outputTransformation",{dataTransfer:e,content:i,method:o})})}_setupPasteDrop(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document,n=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(s,"clipboardInput",(t,o)=>{"paste"!=o.method||e.model.canEditAt(e.model.document.selection)||t.stop()},{priority:"highest"}),this.listenTo(s,"clipboardInput",(e,t)=>{const s=t.dataTransfer;let n;if(t.content)n=t.content;else{let e="";s.getData("text/html")?e=c(s.getData("text/html")):s.getData("text/plain")&&(e=a(s.getData("text/plain"))),n=this.editor.data.htmlProcessor.toView(e)}const r=new i.vY(this,"inputTransformation"),l=s.getData("application/ckeditor5-editor-id")||null;this.fire(r,{content:n,dataTransfer:s,sourceEditorId:l,targetRanges:t.targetRanges,method:t.method}),r.stop.called&&e.stop(),o.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(e,o)=>{if(o.content.isEmpty)return;const s=this.editor.data.toModel(o.content,"$clipboardHolder");0!=s.childCount&&(e.stop(),t.change(()=>{this.fire("contentInsertion",{content:s,method:o.method,sourceEditorId:o.sourceEditorId,dataTransfer:o.dataTransfer,targetRanges:o.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(e,t)=>{t.resultRange=n._pasteFragmentWithMarkers(t.content)},{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,o=e.editing.view.document,s=(e,o)=>{const s=o.dataTransfer;o.preventDefault(),this._fireOutputTransformationEvent(s,t.selection,e.name)};this.listenTo(o,"copy",s,{priority:"low"}),this.listenTo(o,"cut",(t,o)=>{e.model.canEditAt(e.model.document.selection)?s(t,o):o.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(t,s)=>{const i=e.data.toView(s.content,{isClipboardPipeline:!0});o.fire("clipboardOutput",{dataTransfer:s.dataTransfer,content:i,method:s.method})},{priority:"low"}),this.listenTo(o,"clipboardOutput",(o,s)=>{s.content.isEmpty||(s.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(s.content)),s.dataTransfer.setData("text/plain",u(e.data.htmlProcessor.domConverter,s.content)),s.dataTransfer.setData("application/ckeditor5-editor-id",this.editor.id)),"cut"==s.method&&e.model.deleteContent(t.selection)},{priority:"low"})}}var j=o("../ckeditor5-widget/src/index.ts"),z=o("../ckeditor5-ui/src/view.js");const B=(0,i.To)("px");class N extends z.S{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=>B(e)),top:e.to("top",e=>B(e)),width:e.to("width",e=>B(e))}}})}}var L=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.mjs");class D extends s.k_{removeDropMarkerDelayed=(0,i.cb)(()=>this.removeDropMarker(),40);_updateDropMarkerThrottled=(0,L.n)(e=>this._updateDropMarker(e),40);_reconvertMarkerThrottled=(0,L.n)(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0);_dropTargetLineView=new N;_domEmitter=new((0,i.c5)());_scrollables=new Map;static get pluginName(){return"DragDropTarget"}static get isOfficialPlugin(){return!0}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:e}of this._scrollables.values())e.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(e,t,o,s,i,n){this.removeDropMarkerDelayed.cancel();const r=F(this.editor,e,t,o,s,i,n);return r?n&&n.containsRange(r)||r&&!this.editor.model.canEditAt(r)?(this.removeDropMarker(),null):(this._updateDropMarkerThrottled(r),r):null}getFinalDropRange(e,t,o,s,i,n){const r=F(this.editor,e,t,o,s,i,n);return this.removeDropMarker(),r}removeDropMarker(){const e=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,e.markers.has("drop-target")&&e.change(e=>{e.removeMarker("drop-target")})}_setupDropMarker(){const e=this.editor;e.ui.view.body.add(this._dropTargetLineView),e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:o})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(o);t.markerRange.isCollapsed?this._updateDropTargetLine(t.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){const t=this.editor,o=t.model.markers;t.model.change(t=>{o.has("drop-target")?o.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(e){return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){const t=this.toDomElement(e);return t.append("",e.createElement("span"),""),t})}_updateDropTargetLine(e){const t=this.editor.editing,o=e.start.nodeBefore,s=e.start.nodeAfter,n=e.start.parent,r=o?t.mapper.toViewElement(o):null,a=r?t.view.domConverter.mapViewToDom(r):null,c=s?t.mapper.toViewElement(s):null,l=c?t.view.domConverter.mapViewToDom(c):null,d=t.mapper.toViewElement(n);if(!d)return;const u=t.view.domConverter.mapViewToDom(d),h=this._getScrollableRect(d),{scrollX:p,scrollY:m}=i.Sf.window,g=a?new i.rw(a):null,f=l?new i.rw(l):null,_=new i.rw(u).excludeScrollbarsAndBorders(),b=g?g.bottom:_.top,w=f?f.top:_.bottom,k=i.Sf.window.getComputedStyle(u),v=b<=w?(b+w)/2:w;if(h.top<v&&v<h.bottom){const e=_.left+parseFloat(k.paddingLeft),t=_.right-parseFloat(k.paddingRight),o=Math.max(e+p,h.left),s=Math.min(t+p,h.right);this._dropTargetLineView.set({isVisible:!0,left:o,top:v+m,width:s-o})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(e){const t=e.root.rootName;let o;if(this._scrollables.has(t))o=this._scrollables.get(t).domElement;else{o=function(e){let t=e;do{t=t.parentElement;const e=i.Sf.window.getComputedStyle(t).overflowY;if("auto"==e||"scroll"==e)break}while("BODY"!=t.tagName);return t}(this.editor.editing.view.domConverter.mapViewToDom(e)),this._domEmitter.listenTo(o,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const s=new i.tb(o,this._reconvertMarkerThrottled);this._scrollables.set(t,{domElement:o,resizeObserver:s})}return new i.rw(o).excludeScrollbarsAndBorders()}}function F(e,t,o,s,i,n,r){const a=e.model,c=e.editing.mapper;let l=$(e,t);for(;l;){if(!n)if(a.schema.checkChild(l,"$text")){if(o){const t=o[0].start,n=c.toModelPosition(t);if(!r||Array.from(r.getItems({shallow:!0})).some(e=>a.schema.checkChild(n,e))){if(a.schema.checkChild(n,"$text"))return a.createRange(n);if(t)return q(e,$(e,t.parent),s,i)}}}else if(a.schema.isInline(l))return q(e,l,s,i);if(a.schema.isBlock(l))return q(e,l,s,i);if(a.schema.checkChild(l,"$block")){const t=Array.from(l.getChildren()).filter(t=>t.is("element")&&!H(e,t));let o=0,n=t.length;if(0==n)return a.createRange(a.createPositionAt(l,"end"));for(;o<n-1;){const r=Math.floor((o+n)/2);"before"==W(e,t[r],s,i)?n=r:o=r}return q(e,t[o],s,i)}l=l.parent}return null}function H(e,t){const o=e.editing.mapper,s=e.editing.view.domConverter,n=o.toViewElement(t);if(!n)return!0;const r=s.mapViewToDom(n);return"none"!=i.Sf.window.getComputedStyle(r).float}function q(e,t,o,s){const i=e.model;return i.createRange(i.createPositionAt(t,W(e,t,o,s)))}function W(e,t,o,s){const n=e.editing.mapper,r=e.editing.view.domConverter,a=n.toViewElement(t),c=r.mapViewToDom(a),l=new i.rw(c);return e.model.schema.isInline(t)?o<(l.left+l.right)/2?"before":"after":s<(l.top+l.bottom)/2?"before":"after"}function $(e,t){const o=e.editing.mapper,s=e.editing.view,i=o.toModelElement(t);if(i)return i;const n=s.createPositionBefore(t),r=o.findMappedViewAncestor(n);return o.toModelElement(r)}class U extends s.k_{_isBlockDragging=!1;_domEmitter=new((0,i.c5)());static get pluginName(){return"DragDropBlockToolbar"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;if(this.listenTo(e,"change:isReadOnly",(e,t,o)=>{o?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),i._K.isAndroid&&this.forceDisabled("noAndroidSupport"),e.plugins.has("BlockToolbar")){const t=e.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(t,"dragstart",(e,t)=>this._handleBlockDragStart(t)),this._domEmitter.listenTo(i.Sf.document,"dragover",(e,t)=>this._handleBlockDragging(t)),this._domEmitter.listenTo(i.Sf.document,"drop",(e,t)=>this._handleBlockDragging(t)),this._domEmitter.listenTo(i.Sf.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&t.setAttribute("draggable","true"),this.on("change:isEnabled",(e,o,s)=>{t.setAttribute("draggable",s?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;const t=this.editor.model,o=t.document.selection,s=this.editor.editing.view,i=Array.from(o.getSelectedBlocks()),n=t.createRange(t.createPositionBefore(i[0]),t.createPositionAfter(i[i.length-1]));t.change(e=>e.setSelection(n)),this._isBlockDragging=!0,s.focus(),s.getObserver(r).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;const t=e.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),o=e.clientY,s=document.elementFromPoint(t,o),i=this.editor.editing.view;s&&s.closest(".ck-editor__editable")&&i.getObserver(r).onDomEvent({...e,type:e.type,dataTransfer:e.dataTransfer,target:s,clientX:t,clientY:o,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var K=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),Y=o.n(K),G=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),J=o.n(G),Z=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),X=o.n(Z),Q=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),ee=o.n(Q),te=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),oe=o.n(te),se=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-clipboard/theme/clipboard.css"),ie={attributes:{"data-cke":!0}};ie.setAttributes=ee(),ie.insert=X().bind(null,"head"),ie.domAPI=J(),ie.insertStyleElement=oe();Y()(se.A,ie);se.A&&se.A.locals&&se.A.locals;class ne extends s.k_{_draggedRange;_draggingUid;_draggableElement;_clearDraggableAttributesDelayed=(0,i.cb)(()=>this._clearDraggableAttributes(),40);_blockMode=!1;_domEmitter=new((0,i.c5)());_previewContainer;static get pluginName(){return"DragDrop"}static get isOfficialPlugin(){return!0}static get requires(){return[R,j.x0,D,U]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,t.addObserver(r),t.addObserver(n.oXW),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(e,t,o)=>{o?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(e,t,o)=>{o||this._finalizeDragging(!1)}),i._K.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const e=this.editor,t=e.model,o=e.editing.view,s=o.document,n=e.plugins.get(D);this.listenTo(s,"dragstart",(o,s)=>{if(s.target?.is("editableElement"))return void s.preventDefault();if(this._prepareDraggedRange(s.target),!this._draggedRange)return void s.preventDefault();this._draggingUid=(0,i.Ld)();const n=this.isEnabled&&e.model.canEditAt(this._draggedRange);s.dataTransfer.effectAllowed=n?"copyMove":"copy",s.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const r=t.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(s.dataTransfer,r,"dragstart");const{dataTransfer:a,domTarget:c,domEvent:l}=s,{clientX:d}=l;this._updatePreview({dataTransfer:a,domTarget:c,clientX:d}),s.stopPropagation(),n||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(s,"dragend",(e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(i.Sf.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(s,"dragenter",()=>{this.isEnabled&&o.focus()}),this.listenTo(s,"dragleave",()=>{n.removeDropMarkerDelayed()}),this.listenTo(s,"dragging",(e,t)=>{if(!this.isEnabled)return void(t.dataTransfer.dropEffect="none");const{clientX:o,clientY:s}=t.domEvent;n.updateDropMarker(t.target,t.targetRanges,o,s,this._blockMode,this._draggedRange)?(this._draggedRange||(t.dataTransfer.dropEffect="copy"),i._K.isGecko||("copy"==t.dataTransfer.effectAllowed?t.dataTransfer.dropEffect="copy":["all","copyMove"].includes(t.dataTransfer.effectAllowed)&&(t.dataTransfer.dropEffect="move")),e.stop()):t.dataTransfer.dropEffect="none"},{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document,o=e.plugins.get(D);this.listenTo(t,"clipboardInput",(t,s)=>{if("drop"!=s.method)return;const{clientX:i,clientY:n}=s.domEvent,r=o.getFinalDropRange(s.target,s.targetRanges,i,n,this._blockMode,this._draggedRange);if(!r)return this._finalizeDragging(!1),void t.stop();this._draggedRange&&this._draggingUid!=s.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==re(s.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(r,!0))return this._finalizeDragging(!1),void t.stop();s.targetRanges=[e.editing.mapper.toViewRange(r)]},{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(R);e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o=t.targetRanges.map(e=>this.editor.editing.mapper.toModelRange(e));this.editor.model.change(e=>e.setSelection(o))},{priority:"high"}),e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o="move"==re(t.dataTransfer),s=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(s&&o)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,o=t.document;this.listenTo(o,"pointerdown",(s,n)=>{if(i._K.isAndroid||!n)return;this._clearDraggableAttributesDelayed.cancel();let r=ae(n.target);if(i._K.isBlink&&!e.isReadOnly&&!r&&!o.selection.isCollapsed){const e=o.selection.getSelectedElement();e&&(0,j.p4)(e)||(r=o.selection.editableElement)}r&&(t.change(e=>{e.setAttribute("draggable","true",r)}),this._draggableElement=e.editing.mapper.toModelElement(r))}),this.listenTo(o,"pointerup",()=>{i._K.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change(t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(e){const t=this.editor,o=t.model;if(t.plugins.get(D).removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop")}this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(e&&this.isEnabled&&o.change(e=>{const t=o.createSelection(this._draggedRange);o.deleteContent(t,{doNotAutoparagraph:!0});const s=t.getFirstPosition().parent;s.isEmpty&&!o.schema.checkChild(s,"$text")&&o.schema.checkChild(s,"paragraph")&&e.insertElement("paragraph",s,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(e){const t=this.editor,o=t.model,s=o.document.selection,i=e?ae(e):null;if(i){const e=t.editing.mapper.toModelElement(i);if(this._draggedRange=n.JkJ.fromRange(o.createRangeOn(e)),this._blockMode=o.schema.isBlock(e),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}return}if(s.isCollapsed&&!s.getFirstPosition().parent.isEmpty)return;const r=Array.from(s.getSelectedBlocks()),a=s.getFirstRange();if(0==r.length)return void(this._draggedRange=n.JkJ.fromRange(a));const c=ce(o,r);if(r.length>1)this._draggedRange=n.JkJ.fromRange(c),this._blockMode=!0;else if(1==r.length){const e=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=n.JkJ.fromRange(e?c:a),this._blockMode=e}o.change(e=>e.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:e,domTarget:t,clientX:o}){const s=this.editor.editing.view,n=s.document.selection.editableElement,r=s.domConverter.mapViewToDom(n),a=i.Sf.window.getComputedStyle(r);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=(0,i.n)(i.Sf.document,"div",{style:"position: fixed; left: -999999px;"}),i.Sf.document.body.appendChild(this._previewContainer));const c=(0,i.n)(i.Sf.document,"div");c.className="ck ck-content ck-clipboard-preview";const l=new i.rw(r),d=parseFloat(a.paddingLeft),u=parseFloat(a.paddingRight),h=parseFloat(a.width)-d-u;if(r.contains(t)){if(!i._K.isiOS)return;c.style.maxWidth=`${h}px`,c.style.padding="10px",c.style.minWidth="200px",c.style.minHeight="20px",c.style.boxSizing="border-box",c.style.backgroundColor="var(--ck-color-base-background)"}else if(i._K.isiOS)c.style.width=`${h}px`,c.style.backgroundColor="var(--ck-color-base-background)";else{const e=l.left-o+d;c.style.width=`${h+e}px`,c.style.paddingLeft=`${e}px`}s.domConverter.setContentOf(c,e.getData("text/html")),e.setDragImage(c,0,0),this._previewContainer.appendChild(c)}}function re(e){return i._K.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function ae(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(j.p4);if((0,j.p4)(e))return e;const t=e.findAncestor(e=>(0,j.p4)(e)||e.is("editableElement"));return(0,j.p4)(t)?t:null}function ce(e,t){const o=t[0],s=t[t.length-1],i=o.getCommonAncestor(s),n=e.createPositionBefore(o),r=e.createPositionAfter(s);if(i&&i.is("element")&&!e.schema.isLimit(i)){const t=e.createRangeOn(i),o=n.isTouching(t.start),s=r.isTouching(t.end);if(o&&s)return ce(e,[i])}return e.createRange(n,r)}class le extends s.k_{static get pluginName(){return"PastePlainText"}static get isOfficialPlugin(){return!0}static get requires(){return[R]}init(){const e=this.editor,t=e.model,o=e.editing.view,s=t.document.selection;o.addObserver(r),e.plugins.get(R).on("contentInsertion",(e,o)=>{(function(e,t){let o=t.createRangeIn(e);if(1==e.childCount){const s=e.getChild(0);s.is("element")&&t.schema.isBlock(s)&&!t.schema.isObject(s)&&!t.schema.isLimit(s)&&(o=t.createRangeIn(s))}for(const e of o.getItems()){if(!t.schema.isInline(e))return!1;if(Array.from(e.getAttributeKeys()).find(e=>t.schema.getAttributeProperties(e).isFormatting))return!1}return!0})(o.content,t)&&t.change(e=>{const i=Array.from(s.getAttributes()).filter(([e])=>t.schema.getAttributeProperties(e).isFormatting);s.isCollapsed||t.deleteContent(s,{doNotAutoparagraph:!0}),i.push(...s.getAttributes());const n=e.createRangeIn(o.content);for(const o of n.getItems())for(const s of i)t.schema.checkAttribute(o,s[0])&&e.setAttribute(s[0],s[1],o)})})}}class de extends s.k_{static get pluginName(){return"Clipboard"}static get isOfficialPlugin(){return!0}static get requires(){return[I,R,ne,le]}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"}]})}}},"./src/core.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Accessibility:()=>s.hH,Command:()=>s.uB,CommandCollection:()=>s.Qc,Context:()=>s.ob,ContextPlugin:()=>s.HY,EditingKeystrokeHandler:()=>s.k6,Editor:()=>s.KE,ElementApiMixin:()=>s.mJ,MultiCommand:()=>s.fE,PendingActions:()=>s.TS,Plugin:()=>s.k_,_DEFAULT_ACCESSIBILITY_GROUP_ID:()=>s.Wi,_getEditorUsageData:()=>s.o,attachToForm:()=>s.JF,secureSourceElement:()=>s.Jl});var s=o("../ckeditor5-core/src/index.ts")},"./src/engine.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{AttributeOperation:()=>s.ML1,Batch:()=>s.lPp,BubblingEmitterMixin:()=>s.pvE,BubblingEventInfo:()=>s.cJK,ClickObserver:()=>s.Rer,CompositionObserver:()=>s.nU6,Conversion:()=>s.dY0,ConversionHelpers:()=>s.up0,DataController:()=>s.P3x,Differ:()=>s.t_S,DomEventObserver:()=>s.$AX,DowncastHelpers:()=>s.TEV,EditingController:()=>s.L_G,EditingView:()=>s.gKr,FakeSelectionObserver:()=>s.uGe,FocusObserver:()=>s.vpM,History:()=>s.BZB,HtmlDataProcessor:()=>s.q6B,InputObserver:()=>s.bP4,InsertOperation:()=>s.ZGI,KeyObserver:()=>s.wI3,Mapper:()=>s.uIc,MarkerCollection:()=>s.fq9,MarkerOperation:()=>s.m46,Matcher:()=>s.PNe,MergeOperation:()=>s.GY5,Model:()=>s.Kxg,ModelDocument:()=>s.$q2,ModelDocumentFragment:()=>s.dBg,ModelDocumentSelection:()=>s.$Ul,ModelElement:()=>s.WXz,ModelLivePosition:()=>s.LwR,ModelLiveRange:()=>s.JkJ,ModelNode:()=>s.sqQ,ModelNodeList:()=>s.QIV,ModelPosition:()=>s.ZAs,ModelRange:()=>s.BNg,ModelRootElement:()=>s.gQY,ModelSchema:()=>s.$3W,ModelSchemaContext:()=>s._O1,ModelSelection:()=>s.C8B,ModelText:()=>s.PFv,ModelTextProxy:()=>s.rM$,ModelTreeWalker:()=>s.oDe,ModelTypeCheckable:()=>s.wMK,ModelWriter:()=>s.fN5,MouseObserver:()=>s.q$Y,MoveOperation:()=>s.hW$,MutationObserver:()=>s._SL,NoOperation:()=>s.fS6,Observer:()=>s.nun,OperationFactory:()=>s.crW,PointerObserver:()=>s.oXW,RenameOperation:()=>s.EZJ,RootAttributeOperation:()=>s.gf2,RootOperation:()=>s.atR,SelectionObserver:()=>s.Vzs,SplitOperation:()=>s._A9,StylesMap:()=>s.DGI,StylesProcessor:()=>s.tG,TabObserver:()=>s.YiE,TouchObserver:()=>s.Y2A,UpcastHelpers:()=>s.CsX,UpcastWriter:()=>s.WqJ,ViewAttributeElement:()=>s.UJu,ViewContainerElement:()=>s.xQ8,ViewDataTransfer:()=>s.Tkc,ViewDocument:()=>s.Vgs,ViewDocumentDomEventData:()=>s.Nu4,ViewDocumentFragment:()=>s.f5n,ViewDocumentSelection:()=>s.ZmG,ViewDomConverter:()=>s.oZK,ViewDowncastWriter:()=>s.kty,ViewEditableElement:()=>s.OQX,ViewElement:()=>s.m2z,ViewEmptyElement:()=>s.VtL,ViewNode:()=>s.eu8,ViewPosition:()=>s.JTF,ViewRange:()=>s.vRA,ViewRawElement:()=>s.aZU,ViewRenderer:()=>s.dV5,ViewRootEditableElement:()=>s.Unn,ViewSelection:()=>s.aB0,ViewText:()=>s.HQb,ViewTextProxy:()=>s.dKi,ViewTokenList:()=>s.hoX,ViewTreeWalker:()=>s.u$J,ViewTypeCheckable:()=>s.UZe,ViewUIElement:()=>s.cwS,ViewUpcastWriter:()=>s.HZz,XmlDataProcessor:()=>s.ibF,_DataProcessorBasicHtmlWriter:()=>s.QIq,_DetachOperation:()=>s.izB,_MapperCache:()=>s.N7,_OperationReplayer:()=>s.vc2,_VIEW_BR_FILLER:()=>s.dzf,_VIEW_INLINE_FILLER:()=>s.eEd,_VIEW_INLINE_FILLER_LENGTH:()=>s.p4y,_VIEW_MARKED_NBSP_FILLER:()=>s.TXF,_VIEW_NBSP_FILLER:()=>s.kGh,_ViewElementConversionConsumables:()=>s.xfD,_autoParagraphEmptyModelRoots:()=>s.YZz,_convertMapToStringifiedObject:()=>s.FzX,_convertMapToTags:()=>s.xc4,_deleteModelContent:()=>s.XkY,_downcastCleanSelection:()=>s.uA_,_downcastConvertCollapsedSelection:()=>s.$vc,_downcastConvertRangeSelection:()=>s.FOI,_downcastCreateViewElementFromDowncastHighlightDescriptor:()=>s.Y3V,_downcastInsertAttributesAndChildren:()=>s.Zgy,_downcastInsertElement:()=>s.U3T,_downcastInsertStructure:()=>s.D76,_downcastInsertText:()=>s.Dml,_downcastInsertUIElement:()=>s.aLF,_downcastRemove:()=>s.dkX,_downcastWrap:()=>s.PvF,_dumpTrees:()=>s.bXc,_getDataWithoutViewFiller:()=>s.TB6,_getModelData:()=>s.XI$,_getModelNodeAfterPosition:()=>s.Se$,_getModelNodeBeforePosition:()=>s.$ge,_getModelTextNodeAtPosition:()=>s.SDY,_getSelectedModelContent:()=>s.pOb,_getViewData:()=>s.vQH,_initDocumentDumping:()=>s.DzD,_injectModelSelectionPostFixer:()=>s.gNt,_injectViewQuirksHandling:()=>s.IP7,_injectViewUIElementHandling:()=>s.tyV,_insertIntoModelNodeList:()=>s.sAD,_insertModelContent:()=>s.Fky,_insertModelObject:()=>s.noH,_isInlineViewFiller:()=>s.qw1,_isParagraphableModelNode:()=>s.br0,_isViewPatternMatched:()=>s.fN9,_logDocument:()=>s.dcq,_mergeIntersectingModelRanges:()=>s.u65,_modifyModelSelection:()=>s.FIx,_moveInModelNodeList:()=>s.hwn,_normalizeConversionConsumables:()=>s.bCO,_normalizeInModelNodeList:()=>s.HeW,_operationTransform:()=>s.HTi,_parseModel:()=>s.IGK,_parseView:()=>s.kFO,_removeFromModelNodeList:()=>s.$wz,_setAttributeInModelNodeList:()=>s.A_x,_setModelData:()=>s.jeU,_setViewData:()=>s.JVg,_startsWithViewFiller:()=>s._GA,_stringifyModel:()=>s.aUw,_stringifyView:()=>s._$L,_tryFixingModelRange:()=>s.ghV,_upcastConvertSelectionChange:()=>s.NFF,_upcastConvertText:()=>s.YRy,_upcastConvertToModelFragment:()=>s.xtq,_wrapInModelParagraph:()=>s.Gm6,addBackgroundStylesRules:()=>s.$xF,addBorderStylesRules:()=>s.fY7,addMarginStylesRules:()=>s.FZK,addPaddingStylesRules:()=>s.mtt,autoParagraphEmptyRoots:()=>s.YMT,disableViewPlaceholder:()=>s.ZP9,enableViewPlaceholder:()=>s.M5m,getBoxSidesStyleShorthandValue:()=>s.hsS,getBoxSidesStyleValueReducer:()=>s.efn,getBoxSidesStyleValues:()=>s.ju7,getPositionStyleShorthandNormalizer:()=>s.Jhi,getShorthandStylesValues:()=>s.YS5,getViewFillerOffset:()=>s.T4G,hideViewPlaceholder:()=>s.Jc5,isAttachmentStyleValue:()=>s.w4q,isColorStyleValue:()=>s.AA7,isLengthStyleValue:()=>s.n0Z,isLineStyleValue:()=>s.z72,isParagraphable:()=>s.JSs,isPercentageStyleValue:()=>s.r_y,isPositionStyleValue:()=>s.GQ0,isRepeatStyleValue:()=>s.WcD,isURLStyleValue:()=>s.Yn4,needsViewPlaceholder:()=>s.aWV,showViewPlaceholder:()=>s.ck8,transformOperationSets:()=>s.dq5,wrapInParagraph:()=>s.mm5});var s=o("../ckeditor5-engine/src/index.ts")},"./src/enter.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Enter:()=>s.xy,EnterCommand:()=>s.u3,EnterObserver:()=>s.RJ,ShiftEnter:()=>s.DQ,ShiftEnterCommand:()=>s.Ks,_getCopyOnEnterAttributes:()=>s.Bo});var s=o("../ckeditor5-enter/src/index.ts")},"./src/icons.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{IconAI:()=>n,IconAIAdjustLength:()=>r,IconAIAskAI:()=>a,IconAIChangeTone:()=>c,IconAIChat:()=>_,IconAIChatCommands:()=>l,IconAIContinueWriting:()=>d,IconAIGrammarCheck:()=>u,IconAIHistory:()=>b,IconAIImproveWriting:()=>h,IconAIOther:()=>p,IconAIQuickActions:()=>m,IconAIReview:()=>g,IconAITranslate:()=>f,IconAccessibility:()=>s.A,IconAddComment:()=>i,IconAlignBottom:()=>w,IconAlignCenter:()=>k,IconAlignJustify:()=>v,IconAlignLeft:()=>y.A,IconAlignMiddle:()=>x,IconAlignRight:()=>A,IconAlignTop:()=>C,IconArrowDown:()=>E,IconArrowUp:()=>S,IconBold:()=>T.A,IconBookmark:()=>M,IconBookmarkInline:()=>P,IconBookmarkMedium:()=>V,IconBookmarkSmall:()=>O,IconBoxWithCheck:()=>I,IconBoxWithCross:()=>R,IconBoxWithMarker:()=>j,IconBrowseFiles:()=>z,IconBulb:()=>B,IconBulletedList:()=>N,IconCancel:()=>L.A,IconCaption:()=>D,IconCaseChange:()=>F,IconCheck:()=>H.A,IconChevronDown:()=>q,IconChevronRight:()=>$,IconChevronUp:()=>W,IconCkboxImageEdit:()=>U,IconClose:()=>K,IconCode:()=>G,IconCodeBlock:()=>Y,IconCog:()=>J,IconColorPalette:()=>Z.A,IconColorTileCheck:()=>X.A,IconCommentsArchive:()=>Q,IconContentLock:()=>ee,IconContentUnlock:()=>te,IconCopy:()=>oe,IconDocument:()=>se,IconDocumentOutline:()=>ae,IconDocumentOutlineToggle:()=>ce,IconDocumentWithCheckmark:()=>ie,IconDocumentWithCross:()=>ne,IconDocumentWithLoupe:()=>re,IconDragHandle:()=>le.A,IconDragIndicator:()=>de.A,IconDropbox:()=>ue,IconDropdownArrow:()=>he.A,IconEditComment:()=>pe,IconEmoji:()=>me,IconEraser:()=>ge.A,IconError:()=>fe,IconExportPdf:()=>_e,IconExportWord:()=>be,IconEye:()=>we,IconEyeCrossedOut:()=>ke,IconFacebook:()=>ve,IconFileUpload:()=>ye,IconFindReplace:()=>xe,IconFontBackground:()=>Ae,IconFontColor:()=>Ce,IconFontFamily:()=>Ee,IconFontSize:()=>Se,IconFootnote:()=>Te,IconFullscreenEnter:()=>Pe,IconFullscreenLeave:()=>Me,IconGoogleDrive:()=>Ve,IconGooglePhotos:()=>Oe,IconHeading1:()=>Ie,IconHeading2:()=>Re,IconHeading3:()=>je,IconHeading4:()=>ze,IconHeading5:()=>Be,IconHeading6:()=>Ne,IconHistory:()=>Le,IconHorizontalLine:()=>De,IconHtml:()=>Fe,IconImage:()=>qe,IconImageAssetManager:()=>He,IconImageUpload:()=>We,IconImageUrl:()=>$e,IconImportExport:()=>Ue.A,IconImportWord:()=>Ke,IconIndent:()=>Ye,IconInfo:()=>Ge,IconInsertMergeField:()=>Je,IconItalic:()=>Ze,IconLegalStyleList:()=>Xe,IconLineHeight:()=>Qe,IconLink:()=>et,IconListStyleArabicIndic:()=>dt,IconListStyleCircle:()=>tt,IconListStyleDecimal:()=>st,IconListStyleDecimalLeadingZero:()=>ot,IconListStyleDisc:()=>it,IconListStyleLowerLatin:()=>nt,IconListStyleLowerRoman:()=>rt,IconListStyleSquare:()=>at,IconListStyleUpperLatin:()=>ct,IconListStyleUpperRoman:()=>lt,IconLocal:()=>ut,IconLoupe:()=>ht.A,IconLowVision:()=>pt,IconMagicWand:()=>mt,IconMarker:()=>gt,IconMaximize:()=>ft,IconMedia:()=>bt,IconMediaPlaceholder:()=>_t,IconMinimize:()=>wt,IconMultiLevelList:()=>kt,IconNextArrow:()=>vt.A,IconNotification:()=>yt,IconNumberedList:()=>xt,IconObjectCenter:()=>At,IconObjectFullWidth:()=>Ct,IconObjectInline:()=>Tt,IconObjectInlineLeft:()=>Et,IconObjectInlineRight:()=>St,IconObjectLeft:()=>Pt,IconObjectRight:()=>Mt,IconObjectSizeCustom:()=>Vt,IconObjectSizeFull:()=>Ot,IconObjectSizeLarge:()=>It,IconObjectSizeMedium:()=>Rt,IconObjectSizeSmall:()=>jt,IconOneDrive:()=>zt,IconOutdated:()=>Bt,IconOutdent:()=>Nt,IconPageBreak:()=>Lt,IconPaginationExample:()=>Dt,IconPaintRoller:()=>qt,IconPaintRollerCursorDefault:()=>Ft,IconPaintRollerCursorText:()=>Ht,IconPaperClip:()=>Wt,IconParagraph:()=>$t.A,IconPen:()=>Kt,IconPencil:()=>Ut,IconPilcrow:()=>Yt.A,IconPin:()=>Xo,IconPlay:()=>Gt,IconPlus:()=>Jt.A,IconPreviewMergeFields:()=>Zt,IconPreviousArrow:()=>Xt.A,IconPrint:()=>Qt,IconProjectLogo:()=>eo.A,IconQuote:()=>to,IconRedo:()=>oo.A,IconRefresh:()=>so,IconRemove:()=>ro,IconRemoveComment:()=>io,IconRemoveFormat:()=>no,IconReturnArrow:()=>ao.A,IconRevisionHistory:()=>co,IconRobotPencil:()=>lo,IconSelectAll:()=>uo.A,IconSelection:()=>ho,IconSettings:()=>po,IconShowBlocks:()=>mo,IconShowChangesOff:()=>go,IconShowChangesOn:()=>fo,IconSource:()=>_o,IconSpecialCharacters:()=>bo,IconStop:()=>wo,IconStrikethrough:()=>ko,IconSubmit:()=>vo,IconSubscript:()=>yo,IconSuperscript:()=>xo,IconTable:()=>Mo,IconTableCellProperties:()=>Ao,IconTableColumn:()=>Co,IconTableLayout:()=>Vo,IconTableMergeCell:()=>Eo,IconTableOfContents:()=>So,IconTableProperties:()=>To,IconTableRow:()=>Po,IconTemplate:()=>Io,IconTemplateGeneric:()=>Oo,IconText:()=>jo.A,IconTextAlternative:()=>Ro,IconThreeHorizontalDots:()=>zo,IconThreeStars:()=>Bo,IconThreeVerticalDots:()=>No.A,IconThumbDown:()=>Do,IconThumbUp:()=>Lo,IconTodoList:()=>Fo,IconTrackChanges:()=>Wo,IconTrackChangesAccept:()=>Ho,IconTrackChangesDiscard:()=>qo,IconUnderline:()=>$o,IconUndo:()=>Uo.A,IconUnlink:()=>Ko,IconUploadcareImageEdit:()=>Yo,IconUploadcareImageUpload:()=>Go,IconUploadcareLink:()=>Jo,IconUser:()=>Zo,IconWarning:()=>Qo,IconWeb:()=>es});var s=o("../ckeditor5-icons/theme/icons/accessibility.svg");const i='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4 1.5h12A3.5 3.5 0 0 1 19.5 5v8l-.005.192a3.5 3.5 0 0 1-2.927 3.262l-.062.008v1.813a1.5 1.5 0 0 1-2.193 1.33l-.371-.193-.38-.212a13.5 13.5 0 0 1-3.271-2.63l-.062-.07H4A3.5 3.5 0 0 1 .5 13V5A3.5 3.5 0 0 1 4 1.5M4 3a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6.924a11.9 11.9 0 0 0 3.71 3.081l.372.194v-3.268L14.962 15H16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z"/><path d="M9.75 5a.75.75 0 0 0-.75.75v2.5H6.5a.75.75 0 0 0 0 1.5H9v2.5a.75.75 0 0 0 1.5 0v-2.5H13a.75.75 0 0 0 0-1.5h-2.5v-2.5A.75.75 0 0 0 9.75 5"/></svg>',n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M13.903 7.617a3.35 3.35 0 0 0 1.98 1.98L19 10.752l-3.117 1.153a3.35 3.35 0 0 0-1.98 1.98l-1.154 3.117-1.153-3.116a3.35 3.35 0 0 0-1.98-1.98L6.5 10.75l3.116-1.153a3.35 3.35 0 0 0 1.98-1.98L12.75 4.5zm-9.647 4.755c.15.404.469.723.872.872l1.372.507-1.372.507c-.403.15-.722.468-.872.872L3.75 16.5l-.507-1.371a1.48 1.48 0 0 0-.872-.872L1 13.75l1.37-.507a1.48 1.48 0 0 0 .873-.872L3.75 11zM6.441 2.87c.204.55.639.985 1.19 1.189L9.5 4.75l-1.87.691A2.02 2.02 0 0 0 6.44 6.63L5.75 8.5l-.692-1.87a2.01 2.01 0 0 0-1.19-1.189L2 4.751l1.869-.692a2.02 2.02 0 0 0 1.19-1.189L5.748 1z"/></svg>',r='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m13.749 15.5.691-1.87c.204-.55.638-.984 1.189-1.188l1.87-.692-1.87-.692A2.01 2.01 0 0 1 14.44 9.87L13.75 8l-.692 1.87c-.204.55-.638.984-1.189 1.188l-1.87.692 1.87.692c.55.204.985.638 1.189 1.188zm.5-11.5a.75.75 0 0 1 0 1.5h-11a.75.75 0 0 1 0-1.5zm-4 4a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1 0-1.5zm-3 4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5z"/></svg>',a='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.773 12.536a.75.75 0 0 1 .945.498l.018.051a9 9 0 0 0 .42.964c.317.62.799 1.397 1.473 2.072.701.7 1.38 1.191 1.88 1.505a8 8 0 0 0 .746.417l.037.016.005.003a.75.75 0 0 1-.522 1.404l-.072-.027-.01-.004-.018-.008-.058-.027a10 10 0 0 1-.905-.504 12.3 12.3 0 0 1-2.143-1.715c-.82-.82-1.388-1.744-1.748-2.451a10 10 0 0 1-.5-1.145l-.026-.075-.006-.021-.003-.007v-.003l-.001-.001L1 13.25l-.715.228a.75.75 0 0 1 .488-.942M13.314.953a.75.75 0 0 1 .913-.419l.072.028.009.004.018.007.059.028q.075.034.204.1c.172.09.413.223.701.404a12.3 12.3 0 0 1 2.143 1.715c.82.82 1.387 1.744 1.748 2.45a10 10 0 0 1 .499 1.145l.026.075.007.022.003.007v.003h.001c-.002.002-.043.015-.715.228l.715-.227a.751.751 0 0 1-1.43.455l-.004-.011-.017-.052a9 9 0 0 0-.42-.964c-.317-.619-.8-1.397-1.474-2.07a10.8 10.8 0 0 0-1.88-1.507 8 8 0 0 0-.746-.417l-.036-.015-.006-.003a.75.75 0 0 1-.39-.986M11.29 6.84a3.76 3.76 0 0 0 2.22 2.22L17 10.35l-3.49 1.292a3.76 3.76 0 0 0-2.219 2.22L10 17.35l-1.292-3.49a3.76 3.76 0 0 0-2.22-2.22L3 10.35l3.49-1.291A3.76 3.76 0 0 0 8.71 6.84L10 3.35zm6.009 8.66a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0M14.8 18a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0M3.798 2.001a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0m-2.499 2.5a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"/></svg>',c='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M11.282 2.775a4.274 4.274 0 0 1 5.466.466 4.23 4.23 0 0 1 .47 5.443.75.75 0 0 1-.113.907.75.75 0 0 1-.913.114 4.27 4.27 0 0 1-2.846.759l-2.625 2.362a1 1 0 0 1 .015.14v4.788a.75.75 0 0 1-1.5 0v-3.59l-2.678 2.41a1.26 1.26 0 0 1-1.083.298l-1.134-.226-1.062 1.058a.75.75 0 0 1-1.059-1.063l1.06-1.056-.224-1.121c-.078-.39.035-.792.3-1.085l6.14-6.752c-.09-.983.165-1.99.761-2.83a.75.75 0 0 1 .113-.906.75.75 0 0 1 .912-.116m-6.73 11.519.164.82a1 1 0 0 1 .097.097l.834.165 6.027-5.426a4.26 4.26 0 0 1-1.665-1.658zm6.779-9.39a2.73 2.73 0 0 0 .455 3.274 2.77 2.77 0 0 0 3.294.456zm4.359-.6a2.77 2.77 0 0 0-3.294-.456l3.748 3.728a2.73 2.73 0 0 0-.454-3.272" clip-rule="evenodd"/><path d="M4.44 1.87c.205.55.639.985 1.19 1.189l1.87.691-1.87.691c-.551.204-.985.64-1.19 1.19L3.75 7.5l-.693-1.87A2.01 2.01 0 0 0 1.87 4.442L0 3.751l1.87-.691c.55-.204.984-.64 1.188-1.19L3.75 0z"/></svg>',l='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M15.739 13.009c0-.416.44-.644.749-.422l.06.05 3.297 3.232.036.039a.53.53 0 0 1 0 .666l-.036.039-3.297 3.232c-.288.283-.747.098-.803-.292l-.006-.08v-1.468c-.343.04-.898.142-1.57.404l-.189.077c-.654.276-1.15.766-1.464 1.156l-.123.16a.48.48 0 0 1-.574.163.516.516 0 0 1-.314-.56l.064-.388c.074-.426.184-.955.335-1.474.196-.676.483-1.408.906-1.854l.113-.114c.986-.957 2.195-1.094 2.816-1.094zM.773 12.536a.75.75 0 0 1 .945.498l.018.052a9 9 0 0 0 .42.964c.316.619.8 1.396 1.473 2.07.701.702 1.38 1.193 1.88 1.507a8 8 0 0 0 .746.417l.037.015.005.003a.75.75 0 0 1-.522 1.404l-.072-.027-.01-.004-.018-.008-.058-.027a10 10 0 0 1-.905-.504 12.3 12.3 0 0 1-2.143-1.715c-.82-.82-1.388-1.744-1.748-2.45a10 10 0 0 1-.5-1.145l-.026-.076-.006-.021-.003-.007v-.003H.285a.75.75 0 0 1 .488-.943M11.29 6.84a3.76 3.76 0 0 0 2.22 2.218L17 10.35l-3.49 1.291a3.76 3.76 0 0 0-2.22 2.22L10 17.35l-1.291-3.49a3.76 3.76 0 0 0-2.22-2.22l-3.49-1.29 3.49-1.292a3.76 3.76 0 0 0 2.22-2.218l1.29-3.49zM13.314.953a.75.75 0 0 1 .913-.42l.072.028.01.004.018.008.058.027q.076.035.204.1c.172.09.413.223.702.404.576.362 1.348.92 2.142 1.715.82.82 1.388 1.744 1.748 2.451a10 10 0 0 1 .5 1.145l.026.075.006.021.003.007v.003l.001.001a.75.75 0 0 1-1.43.455l-.003-.01-.018-.052-.079-.21a9 9 0 0 0-.342-.754c-.315-.62-.798-1.397-1.472-2.071a10.8 10.8 0 0 0-1.88-1.506 8 8 0 0 0-.746-.417l-.037-.016-.005-.003a.75.75 0 0 1-.391-.985M2.05 3.75a.75.75 0 1 1-.002 1.502.75.75 0 0 1 .001-1.501M4.548 1.25a.75.75 0 1 1 0 1.501.75.75 0 0 1 0-1.5"/></svg>',d='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7.591 16.502c.421 0 .762.336.762.75s-.341.75-.762.75h-5.08a.757.757 0 0 1-.761-.751c0-.414.34-.749.761-.749zm3.302-8.942c0-1.009 1.135-1.576 1.952-1.056l.158.12 4.817 4.182c.576.5.572 1.386-.008 1.882L12.996 16.8c-.823.702-2.103.127-2.103-.945V14.46H2.511a.756.756 0 0 1-.761-.75c0-.414.34-.75.761-.75h8.636c.701 0 1.27.56 1.27 1.25v1.098l4.176-3.568-4.175-3.627V9.28c0 .69-.57 1.25-1.271 1.25H2.511a.756.756 0 0 1-.761-.75c0-.414.34-.75.761-.75h8.382zm6.047-5.689c.205.55.639.986 1.19 1.19l1.869.691-1.87.691c-.55.204-.984.64-1.188 1.19l-.692 1.869-.692-1.87a2.01 2.01 0 0 0-1.188-1.189l-1.87-.691 1.87-.691c.55-.204.984-.64 1.188-1.19l.691-1.869zM7.591 5.502c.421 0 .762.336.762.75s-.34.75-.762.75h-5.08a.756.756 0 0 1-.761-.75c0-.414.34-.75.761-.75z"/></svg>',u='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M17.413 12.037 10.487 19l-3.421-3.446 1.053-1.058 2.37 2.386 5.873-5.902z"/><path fill-rule="evenodd" d="m12.976 12.465-1.004 1.009-.737-1.995H5.378l-1.39 3.492H2.5L7.463 3H9.05zm-7.1-2.183h4.764L8.257 4.496z" clip-rule="evenodd"/><path d="M16.958 1.87c.203.55.634.985 1.182 1.189l1.859.691-1.86.691a2.01 2.01 0 0 0-1.181 1.19L16.27 7.5l-.689-1.87A2 2 0 0 0 14.4 4.442l-1.858-.691L14.4 3.06c.548-.204.98-.64 1.182-1.19L16.27 0z"/></svg>',h='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M14.832 15.502a.75.75 0 0 1 .754.749.75.75 0 0 1-.755.749H7.28a.753.753 0 0 1-.756-.749c0-.414.339-.749.756-.749zm1.237-12.5a.946.946 0 0 1 .851 1.322c-.69 1.575-1.272 2.683-1.893 3.406-.563.655-1.17 1.005-1.884 1.126-.449 1.736-1.662 2.854-2.73 3.527a8.8 8.8 0 0 1-2.038.937q-.092.029-.146.042l-.042.012-.013.003H8.17l-.002.002a.76.76 0 0 1-.917-.546.75.75 0 0 1 .55-.908l.002-.001.023-.006.104-.03a7.3 7.3 0 0 0 1.673-.77c.952-.6 1.888-1.526 2.14-2.92a.97.97 0 0 1 .91-.792l.168-.014c.382-.05.694-.212 1.056-.633.377-.438.782-1.133 1.293-2.229-2.808.253-5.14 2.025-6.952 4.332-1.991 2.537-3.253 5.6-3.728 7.563a.757.757 0 0 1-.911.553.75.75 0 0 1-.559-.903c.519-2.144 1.867-5.409 4.007-8.134 2.136-2.72 5.164-5.024 9.042-4.939M4.44 1.87c.205.55.64.985 1.19 1.189l1.87.691-1.87.691c-.55.204-.985.64-1.19 1.19L3.75 7.5l-.692-1.87a2.01 2.01 0 0 0-1.19-1.189L0 3.75l1.869-.691c.55-.204.985-.64 1.19-1.19L3.748 0z"/></svg>',p='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m16.25 0 .69 1.87c.205.55.639.984 1.19 1.188L20 3.75l-1.87.692a2.02 2.02 0 0 0-1.19 1.188l-.69 1.87-.693-1.87a2.01 2.01 0 0 0-1.188-1.188l-1.87-.692 1.87-.692c.55-.204.985-.638 1.188-1.188z"/><path d="M10 1c.704 0 1.053-.003 1.474.09.445.099.635.613.426 1.019-.163.315-.523.465-.875.423C10.712 2.495 10.42 2.5 10 2.5a7.5 7.5 0 1 0 7.5 7.5c0-.26-.047-.582-.102-.89a.82.82 0 0 1 .458-.89c.456-.214 1.007.027 1.08.525.053.375.064.746.064 1.255a9 9 0 1 1-9-9"/><path d="M7.05 10a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m4.2 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m4.2 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0"/></svg>',m='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7.718 5.12c.285.77.893 1.378 1.663 1.663l2.618.97-2.618.968a2.82 2.82 0 0 0-1.663 1.664l-.969 2.617-.969-2.617A2.82 2.82 0 0 0 4.117 8.72l-2.618-.969 2.618-.969A2.82 2.82 0 0 0 5.78 5.12l.969-2.618zm10.609 9.086a.75.75 0 0 1 0 1.492l-.078.004h-8a.75.75 0 0 1 0-1.5h8zm-.077-4.504a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5zm.002-4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5zM3.461 12.749c.136.367.425.657.791.793l1.247.46-1.247.46a1.34 1.34 0 0 0-.79.793l-.463 1.247-.46-1.246a1.34 1.34 0 0 0-.793-.793l-1.247-.46 1.247-.461a1.34 1.34 0 0 0 .792-.793L3 11.502z"/></svg>',g='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m14.57 9.33-8.194 8.194H3.598V14.75l8.193-8.198 2.779 2.78Zm-.108-5.14a.73.73 0 0 1 .522.217l1.734 1.73a.736.736 0 0 1 0 1.043l-1.355 1.36-2.78-2.78 1.357-1.352a.74.74 0 0 1 .522-.218M4.05.19l.692 1.869c.204.55.638.985 1.189 1.189l1.87.691-1.87.692c-.55.204-.985.638-1.189 1.189L4.05 7.69l-.69-1.87a2.01 2.01 0 0 0-1.19-1.189L.3 3.94l1.87-.691c.55-.204.985-.638 1.189-1.189z"/></svg>',f='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M19 19h-1.486l-1.289-3.5h-5.85L8.989 19H7.501l4.957-12h1.586zm-8.13-4.7h4.76l-2.38-5.8z" clip-rule="evenodd"/><path d="M5.648.5c.414 0 .75.337.75.751v.95h4.35a.75.75 0 0 1 0 1.5H9.486c-.337 1.817-1.254 4.38-3.062 6.917.234.25.42.434.56.563a5 5 0 0 0 .293.253h.001a.75.75 0 0 1-.857 1.231H6.42l-.003-.002-.004-.003-.01-.008-.028-.02-.092-.072a7 7 0 0 1-.317-.278 12 12 0 0 1-.472-.463c-1.345 1.606-2.094 2.28-4.376 3.584a.75.75 0 0 1-.736-1.306c2.018-.997 2.852-1.878 4.11-3.42-.546-.738-.982-1.637-1.286-2.357a19 19 0 0 1-.563-1.516l-.008-.026-.002-.007-.001-.002-.019-.076A.75.75 0 0 1 4.04 6.26l.026.072.001.004.006.02.025.078.101.297c.09.255.22.61.388 1.005.233.553.525 1.152.852 1.67C6.86 7.313 7.63 5.146 7.953 3.7H.948a.75.75 0 0 1 0-1.5h3.95v-.949A.75.75 0 0 1 5.648.5m11.293 1.37c.204.55.638.984 1.189 1.188l1.869.692-1.87.691c-.55.204-.984.638-1.188 1.189L16.25 7.5l-.692-1.87a2.01 2.01 0 0 0-1.188-1.19l-1.87-.691 1.87-.692c.55-.204.985-.638 1.188-1.189L16.25 0z"/></svg>',_='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.773 12.536a.75.75 0 0 1 .945.498l.018.051a9 9 0 0 0 .42.964c.317.62.799 1.397 1.473 2.072.701.7 1.38 1.191 1.88 1.505a8 8 0 0 0 .746.417l.037.016.005.003a.75.75 0 0 1-.522 1.404l-.072-.027-.01-.004-.018-.008-.058-.027a10 10 0 0 1-.905-.504 12.3 12.3 0 0 1-2.143-1.715c-.82-.82-1.388-1.744-1.748-2.451a10 10 0 0 1-.5-1.145l-.026-.075-.006-.021-.003-.007v-.003l-.001-.001L1 13.25l-.715.228a.75.75 0 0 1 .488-.942M13.314.953a.75.75 0 0 1 .913-.419l.072.028.009.004.018.007.059.028q.075.034.204.1c.172.09.413.223.701.404a12.3 12.3 0 0 1 2.143 1.715c.82.82 1.387 1.744 1.748 2.45a10 10 0 0 1 .499 1.145l.026.075.007.022.003.007v.003h.001c-.002.002-.043.015-.715.228l.715-.227a.751.751 0 0 1-1.43.455l-.004-.011-.017-.052a9 9 0 0 0-.42-.964c-.317-.619-.8-1.397-1.474-2.07a10.8 10.8 0 0 0-1.88-1.507 8 8 0 0 0-.746-.417l-.036-.015-.006-.003a.75.75 0 0 1-.39-.986M11.29 6.84a3.76 3.76 0 0 0 2.22 2.22L17 10.35l-3.49 1.292a3.76 3.76 0 0 0-2.219 2.22L10 17.35l-1.292-3.49a3.76 3.76 0 0 0-2.22-2.22L3 10.35l3.49-1.291A3.76 3.76 0 0 0 8.71 6.84L10 3.35zm6.009 8.66a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0M14.8 18a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0M3.798 2.001a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0m-2.499 2.5a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"/></svg>',b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.942 1.87c.203.55.637.985 1.188 1.189L20 3.75l-1.87.691a2.01 2.01 0 0 0-1.188 1.19L16.249 7.5l-.691-1.87a2.01 2.01 0 0 0-1.19-1.189L12.5 3.75l1.87-.691c.55-.204.985-.639 1.189-1.19L16.249 0zm2.03 5.43c.305 0 .58.192.671.483a7 7 0 0 1 .352 2.4 9 9 0 0 1-9.361 8.809 9 9 0 0 1-7.662-4.917L4.1 12.946A7.502 7.502 0 0 0 18.5 10c0-1.017-.1-1.266-.5-2.2-.097-.224.143-.5.387-.5z"/><path d="m11.5 9.999 3.195 3.196-1.06 1.06-3.536-3.536-.1-.112V5h1.5zM10.7 1q.168 0 .336.006a.703.703 0 0 1 .664.716c0 .451-.398.795-.849.785a7 7 0 0 0-.531.007c-1.015.052-1.71.309-2.623.756a7.5 7.5 0 0 0-4.17 6.125l.965-.737a.75.75 0 0 1 .979.057l.073.083a.75.75 0 0 1-.058.978l-.083.072-2.27 1.738a.75.75 0 0 1-.972-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 1.107-1.005l.074.082.531.68a9 9 0 0 1 5.32-7.218C8.519 1.259 9.453 1 10.7 1"/></svg>',w='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.75.75 0 0 1-.511.187.75.75 0 0 1-.511-.187M4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5z"/></svg>',k='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.75m0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75m2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75m0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75"/></svg>',v='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.75m0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75m0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75m0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75"/></svg>';var y=o("../ckeditor5-icons/theme/icons/align-left.svg");const x='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.75 11.875a.75.75 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.75.75 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.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.75.75 0 0 1-.508.184.75.75 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-.75"/></svg>',A='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.75m0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75m0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75m0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75"/></svg>',C='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.75.75 0 0 1 .511-.187.75.75 0 0 1 .511.187M15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5z"/></svg>',E='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 .75a9.25 9.25 0 1 1 0 18.5 9.25 9.25 0 0 1 0-18.5m0 1.5a7.75 7.75 0 1 0 0 15.5 7.75 7.75 0 0 0 0-15.5m0 2.022a.75.75 0 0 1 .743.649l.007.101v8.165l2.714-2.705a.75.75 0 0 1 .977-.07l.084.072a.75.75 0 0 1 .07.976l-.072.084-3.994 3.981a.75.75 0 0 1-.975.073l-.084-.073-3.99-3.98a.75.75 0 0 1 .975-1.135l.085.072 2.71 2.706V5.022a.75.75 0 0 1 .75-.75"/></svg>',S='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 19.25a9.25 9.25 0 1 0 0-18.5 9.25 9.25 0 0 0 0 18.5m0-1.5a7.75 7.75 0 1 1 0-15.5 7.75 7.75 0 0 1 0 15.5m0-2.022a.75.75 0 0 0 .743-.649l.007-.101V6.813l2.714 2.705a.75.75 0 0 0 .977.07l.084-.072a.75.75 0 0 0 .07-.976l-.072-.084-3.994-3.981a.75.75 0 0 0-.975-.073l-.084.073-3.99 3.98a.75.75 0 0 0 .975 1.135l.085-.072 2.71-2.706v8.166c0 .414.336.75.75.75"/></svg>';var T=o("../ckeditor5-icons/theme/icons/bold.svg");const P='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 16"><path d="M2 14.436V2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12.436a.5.5 0 0 1-.819.385l-3.862-3.2a.5.5 0 0 0-.638 0l-3.862 3.2A.5.5 0 0 1 2 14.436" class="ck-icon__fill"/></svg>',M='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.68 3.417a.24.24 0 0 0-.24.236v12.66l3.793-3.102a1.215 1.215 0 0 1 1.534 0l3.793 3.103V3.654a.24.24 0 0 0-.24-.237zM4 3.653C4 2.74 4.752 2 5.68 2h8.64c.928 0 1.68.74 1.68 1.653v13.164c0 1-1.185 1.547-1.967.908L10 14.426l-4.033 3.299c-.782.64-1.967.092-1.967-.908z" clip-rule="evenodd"/></svg>',V='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.4 2.24c-.11 0-.2.092-.2.207v11.077l3.16-2.714a.975.975 0 0 1 1.28 0l3.16 2.714V2.447a.203.203 0 0 0-.2-.207zM3 2.447C3 1.647 3.627 1 4.4 1h7.2c.773 0 1.4.648 1.4 1.447v11.518c0 .875-.988 1.354-1.64.794L8 11.873 4.64 14.76c-.652.56-1.64.081-1.64-.794z" clip-rule="evenodd"/></svg>',O='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path d="M4.216 2.031a.503.503 0 0 0-.489.516v9.42l2.648-2.324a.94.94 0 0 1 1.25 0l2.648 2.324v-9.42a.503.503 0 0 0-.489-.516zm-1.466.516C2.75 1.693 3.406 1 4.216 1h5.568c.81 0 1.466.693 1.466 1.547v9.42c0 .873-.965 1.351-1.602.793L7 10.436 4.352 12.76c-.637.558-1.602.08-1.602-.793z" clip-rule="evenodd"/></svg>',I='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.95 4a.75.75 0 0 1 0 1.5H3a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-1.25a.75.75 0 0 1 1.5 0V17a2 2 0 0 1-2 2H3l-.204-.01A2 2 0 0 1 1 17V6a2 2 0 0 1 2-2z"/><path d="M17.483 3c.27 0 .529.107.72.296a1.007 1.007 0 0 1 0 1.429l-7.432 7.48a1 1 0 0 1-.758.294 1.02 1.02 0 0 1-.757-.295L6.31 9.381a1.01 1.01 0 0 1-.235-1.11 1 1 0 0 1 .556-.551 1.03 1.03 0 0 1 1.117.232l2.264 2.148 6.75-6.804c.191-.19.45-.296.72-.296"/></svg>',R='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.95 4a.75.75 0 0 1 0 1.5H3a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-1.25a.75.75 0 0 1 1.5 0V17a2 2 0 0 1-2 2H3l-.204-.01A2 2 0 0 1 1 17V6a2 2 0 0 1 2-2zm8.554-3a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13m2.74 3.759a.81.81 0 0 0-1.148 0l-1.592 1.593-1.593-1.593a.812.812 0 1 0-1.148 1.15L11.355 7.5 9.763 9.092a.813.813 0 0 0 1.148 1.15l1.593-1.593 1.592 1.592a.812.812 0 1 0 1.148-1.15L13.652 7.5l1.592-1.592a.813.813 0 0 0 0-1.15"/><path d="M3.95 4a.75.75 0 0 1 0 1.5H3a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-1.25a.75.75 0 0 1 1.5 0V17a2 2 0 0 1-2 2H3l-.204-.01A2 2 0 0 1 1 17V6a2 2 0 0 1 2-2zm8.554-3a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13m2.74 3.759a.81.81 0 0 0-1.148 0l-1.592 1.593-1.593-1.593a.812.812 0 1 0-1.148 1.15L11.355 7.5 9.763 9.092a.813.813 0 0 0 1.148 1.15l1.593-1.593 1.592 1.592a.812.812 0 1 0 1.148-1.15L13.652 7.5l1.592-1.592a.813.813 0 0 0 0-1.15Z"/></svg>',j='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.95 4a.75.75 0 0 1 0 1.5H3a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-1.25a.75.75 0 0 1 1.5 0V17a2 2 0 0 1-2 2H3l-.204-.01A2 2 0 0 1 1 17V6a2 2 0 0 1 2-2z"/><path d="m6.923 13.22.205-.305q-.389-.198-.436-.371-.048-.18.101-.733.124-.329.147-.521a4 4 0 0 0 0-.634q-.274-.816-.248-1.102.026-.288.416-.756L13.033.56q.708-1.194 2.8.158 2.09 1.354 1.561 2.35l-5.143 9.067q-.209.541-.46.685-.255.141-1.08.183-.335.11-.646.279a2.7 2.7 0 0 0-.46.41q-.384.348-.552.349-.126 0-.46-.2l-.27.359-1.401-.98zm-.244.364 1.379.965-.344.451H5.728z"/></svg>',z='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M17.5 9.303V8h-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 6 0 0 0-1.5-1.228M16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10M15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1z"/></svg>',B='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M11.91 18.255a.747.747 0 0 1 .663.746.747.747 0 0 1-.664.746l-.075.004H8.382a.745.745 0 0 1-.74-.75c0-.414.331-.75.74-.75h3.452z"/><path fill-rule="evenodd" d="M10.104 3.752c.807 0 1.59.193 2.415.548l.404.185c.913.452 1.62 1.026 2.129 1.77.578.848.852 1.85.95 2.991l.014.258c.031 1.26-.537 2.059-1.096 2.722-.562.665-1.05 1.151-1.322 1.935l-.053.161c-.204.698-.397 1.704-.504 2.314a1.34 1.34 0 0 1-1.308 1.114H8.476c-.65 0-1.196-.476-1.308-1.114a31 31 0 0 0-.354-1.743l-.15-.57c-.258-.882-.776-1.387-1.375-2.097-.596-.707-1.203-1.57-1.082-2.98l.045-.422c.126-.968.4-1.827.906-2.568.58-.851 1.422-1.478 2.533-1.956l.307-.126c.713-.274 1.401-.422 2.106-.422m0 1.5c-.492 0-1.001.102-1.582.325l-.254.104c-.927.398-1.513.87-1.894 1.43-.337.492-.551 1.106-.656 1.909l-.038.356c-.07.806.224 1.272.732 1.874.506.599 1.299 1.384 1.67 2.645l.084.307c.181.688.338 1.508.435 2.048h3.007c.112-.624.304-1.619.52-2.355l.075-.232c.394-1.127 1.12-1.852 1.594-2.413.476-.565.764-1.01.74-1.727l-.008-.147c-.084-.981-.308-1.702-.693-2.266-.334-.49-.824-.912-1.563-1.277l-.332-.152c-.688-.296-1.274-.43-1.837-.43" clip-rule="evenodd"/><path d="M3.597 13.637a.73.73 0 0 1 1.045 0 .76.76 0 0 1 0 1.06l-1.05 1.064-.056.052a.73.73 0 0 1-.99-.052.76.76 0 0 1-.05-1.004l.05-.057zm11.761 0a.73.73 0 0 1 1.045 0l1.05 1.063.05.057c.237.294.22.73-.05 1.004a.73.73 0 0 1-.99.052l-.055-.052-1.05-1.064a.76.76 0 0 1 0-1.06M2.472 8.257c.409 0 .74.336.74.75s-.331.75-.74.75L.99 9.756l-.075-.004a.746.746 0 0 1-.664-.746c0-.388.291-.708.664-.746l.075-.004zm16.614.003a.747.747 0 0 1 .664.746.746.746 0 0 1-.664.746l-.075.004h-1.483a.745.745 0 0 1-.74-.75c0-.413.331-.75.74-.75h1.483zM3.334 2.581c.27-.274.7-.29.99-.05l.055.05 1.048 1.065a.76.76 0 0 1 0 1.061.73.73 0 0 1-1.045 0L3.334 3.642l-.05-.057a.76.76 0 0 1 .05-1.004m12.343-.051a.73.73 0 0 1 .989.051.76.76 0 0 1 .05 1.004l-.05.057-1.048 1.065a.73.73 0 0 1-1.046 0 .76.76 0 0 1 0-1.06l1.049-1.066zM10.007.251c.383 0 .698.296.736.674l.003.076.001 1.505c0 .414-.33.75-.738.75a.745.745 0 0 1-.74-.75L9.268 1l.004-.076a.745.745 0 0 1 .735-.674"/></svg>',N='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75m-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75m6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75m-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75"/></svg>';var L=o("../ckeditor5-icons/theme/icons/cancel.svg");const D='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2"/><path fill-opacity=".6" 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-2zm0 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-.492z"/></svg>',F='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.789 3 0 17h1.664l1.664-4.027h6.797l.227.548c.046-.172.112-.352.209-.545.217-.436.556-.609.898-.798L7.664 3H5.79Zm.938 1.758 2.777 6.715H3.949zM15.956 7.5c-1.584-.02-3.226.824-3.843 2.882l1.495.106c.904-2.082 4.594-2.13 4.375.534-3.245 1.024-4.838.117-6.082 2.62-.208.418-.17 1.57.54 2.397s2.014 1.149 3.409.85 2.24-1.386 2.24-1.386L18.205 17h1.493l-.059-1.72-.056-5.274C19.51 8.612 17.75 7.524 15.956 7.5m2.027 4.696s.641 2.453-1.528 3.27c-3.376 1.269-4.188-2.141-1.775-2.638 1.704-.352 1.873-.25 3.303-.632"/></svg>';var H=o("../ckeditor5-icons/theme/icons/check.svg");const q='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.435 5.506a.75.75 0 0 1 1.197.899l-.067.089-6.992 8a.75.75 0 0 1-1.05.078l-.079-.078-7.008-8a.75.75 0 0 1 1.049-1.066l.08.078 6.442 7.354z"/></svg>',W='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.435 14.494a.75.75 0 0 0 1.197-.899l-.067-.089-6.992-8a.75.75 0 0 0-1.05-.078l-.079.078-7.008 8a.75.75 0 0 0 1.049 1.066l.08-.078 6.442-7.354z"/></svg>',$='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21"><path d="M9.064 14.666a.75.75 0 1 1-1.06-1.06L11.01 10.6 8.004 7.595a.75.75 0 1 1 1.06-1.06l3.55 3.549a.748.748 0 0 1-.136 1.168z"/></svg>',U='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037H5.06l5.058-5.078L6.617 9.15a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v4.354a3.5 3.5 0 0 1 1.5.049V2.1c0-.63-.547-1.1-1.2-1.1zm11.713 2.803a2.147 2.147 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.642-3.11 2.13 2.13 0 0 0-1.873-.978M8.089 17.635v2.388h2.389l7.046-7.046-2.39-2.39zm11.282-6.507a.64.64 0 0 0 .139-.692.6.6 0 0 0-.139-.205l-1.49-1.488a.63.63 0 0 0-.899 0l-1.166 1.163 2.39 2.39z"/></svg>',K='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m11.538 9.44 6.362 6.362a1.503 1.503 0 1 1-2.125 2.125L9.418 11.56l-6.365 6.365A1.5 1.5 0 1 1 .93 15.803L7.295 9.44.93 3.075A1.5 1.5 0 0 1 3.052.955L9.416 7.32 15.78.955a1.5 1.5 0 0 1 2.123 2.12z"/></svg>',Y='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.87 12.61a.75.75 0 0 1-.089.976l-.085.07-3.154 2.254 3.412 2.414a.75.75 0 0 1 .237.95l-.057.095a.75.75 0 0 1-.95.237l-.096-.058-4.272-3.022-.003-1.223 4.01-2.867a.75.75 0 0 1 1.047.174m2.795-.231.095.057 4.011 2.867-.003 1.223-4.272 3.022-.095.058a.75.75 0 0 1-.88-.151l-.07-.086-.058-.095a.75.75 0 0 1 .15-.88l.087-.07 3.412-2.414-3.154-2.253-.085-.071a.75.75 0 0 1 .862-1.207M16 0a2 2 0 0 1 2 2v9.354l-.663-.492-.837-.001V2a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3.118L7.156 19H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zM5.009 15l.003 1H3v-1zm2.188-2-1.471 1H5v-1zM10 11v.095L8.668 12H7v-1zm4-2v1H7V9zm0-2v1H7V7zm-4-2v1H5V5zM6 3v1H3V3z"/></svg>',G='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m12.5 5.7 5.2 3.9v1.3l-5.6 4c-.1.2-.3.2-.5.2-.3-.1-.6-.7-.6-1l.3-.4 4.7-3.5L11.5 7l-.2-.2c-.1-.3-.1-.6 0-.8.2-.2.5-.4.8-.4a.8.8 0 0 1 .4.1m-5.2 0L2 9.6v1.3l5.6 4c.1.2.3.2.5.2.3-.1.7-.7.6-1 0-.1 0-.3-.2-.4l-5-3.5L8.2 7l.2-.2c.1-.3.1-.6 0-.8-.2-.2-.5-.4-.8-.4a.8.8 0 0 0-.3.1"/></svg>',J='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m11.333 2 .19 2.263a6 6 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.19a6 6 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a6 6 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a6 6 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a6 6 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a6 6 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a6 6 0 0 1 1.46-.605L8.666 2zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466"/></svg>';var Z=o("../ckeditor5-icons/theme/icons/color-palette.svg"),X=o("../ckeditor5-icons/theme/icons/color-tile-check.svg");const Q='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M14 3.5A3.5 3.5 0 0 1 17.5 7v6l-.005.192a3.5 3.5 0 0 1-2.927 3.262l-.062.008v1.813a1.5 1.5 0 0 1-2.193 1.33l-.37-.193-.38-.212a13.5 13.5 0 0 1-3.272-2.63l-.062-.07-4.729-.046a3.5 3.5 0 0 1-3.5-3.5v-6a3.5 3.5 0 0 1 3.5-3.5zM3.5 4.954a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2L8.924 15a11.9 11.9 0 0 0 3.71 3.081l.372.194v-3.268L12.962 15H14a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z" clip-rule="evenodd"/><path d="M16.5.5h-10a3.5 3.5 0 0 0-3.162 2h1.84A2 2 0 0 1 6.5 2h10a2 2 0 0 1 2 2v8.873a3.5 3.5 0 0 0 1.495-2.681L20 10V4A3.5 3.5 0 0 0 16.5.5"/><path d="M12.013 7.453a.75.75 0 0 1 .034 1.06l-3.75 4a.75.75 0 0 1-1.045.048l-2.25-2a.75.75 0 0 1 .996-1.122l1.704 1.515 3.25-3.467a.75.75 0 0 1 1.061-.034" clip-rule="evenodd"/></svg>',ee='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M15.5 6.5a3.5 3.5 0 0 1 3.495 3.308L19 10v2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-2l.005-.192A3.5 3.5 0 0 1 15.5 6.5m0 7.5a.5.5 0 0 0-.492.41L15 14.5v2a.5.5 0 0 0 .992.09L16 16.5v-2a.5.5 0 0 0-.5-.5m0-6a2 2 0 0 0-2 2v2h4v-2a2 2 0 0 0-2-2m-9.25 8a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5zm0-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5zm3-5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5zm6-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 0 1 0-1.5z"/></svg>',te='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M6.25 16a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5zm0-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5zm3-5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5zm6-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 0 1 0-1.5zm.25 5.5a3.5 3.5 0 0 1 3.143 1.959.75.75 0 0 1-1.36.636A2 2 0 0 0 13.5 10v2H19a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-2l.005-.192A3.5 3.5 0 0 1 15.5 6.5m0 7.5a.5.5 0 0 0-.492.41L15 14.5v2a.5.5 0 0 0 .992.09L16 16.5v-2a.5.5 0 0 0-.5-.5"/></svg>',oe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7z"/></svg>',se='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M2.75 1.701a.95.95 0 0 1 .95-.95h7.61l5.94 5.94V18.3a.95.95 0 0 1-.95.95H3.7a.95.95 0 0 1-.95-.95zm1.5.55v15.5h11.5v-10H11.2a.95.95 0 0 1-.95-.95v-4.55zm7.5 1.06 2.94 2.94h-2.94z" clip-rule="evenodd"/></svg>',ie='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M1.95.001a.95.95 0 0 0-.95.95v16.6c0 .525.425.95.95.95h5.641c.415 0 .75-.313.75-.727 0-.415-.335-.773-.75-.773H2.5v-15.5h6v4.55c0 .525.425.95.95.95H14V8.24c0 .414.342.75.757.75a.744.744 0 0 0 .743-.75v-2.3L9.56.001zm10.99 5.5L10 2.561v2.94z"/><path d="M18.03 11.531a.75.75 0 0 0-1.06-1.06L12 15.44l-2.47-2.47a.75.75 0 0 0-1.06 1.06L12 17.56z"/></svg>',ne='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M1.95.001a.95.95 0 0 0-.95.95v16.6c0 .525.425.95.95.95h5.641c.415 0 .75-.32.75-.735a.763.763 0 0 0-.75-.765H2.5v-15.5h6v4.55c0 .525.425.95.95.95H14v1.25c0 .414.342.75.757.75a.744.744 0 0 0 .743-.75v-2.31L9.56 0zm10.99 5.5L10 2.561v2.94z"/><path d="M11.47 10.47a.75.75 0 0 1 1.06 0l2.97 2.97 2.97-2.97a.75.75 0 0 1 1.06 1.061l-2.97 2.97 2.97 2.97a.75.75 0 0 1-1.06 1.06l-2.97-2.97-2.97 2.97a.75.75 0 1 1-1.06-1.06l2.97-2.97-2.97-2.97a.75.75 0 0 1 0-1.06"/></svg>',re='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill-rule="evenodd" clip-rule="evenodd"><path d="M1 .95A.95.95 0 0 1 1.95 0h7.61l5.94 5.94v3.249A6 6 0 0 0 14 9V7H9.45a.95.95 0 0 1-.95-.95V1.5h-6V17h5.841c.191.54.457 1.044.785 1.5H1.95a.95.95 0 0 1-.95-.95zm9 1.61 2.94 2.94H10z"/><path d="M12.895 17.79c.805 0 1.553-.243 2.173-.661l2.653 2.653a.75.75 0 0 0 1.06-1.061l-2.652-2.653a3.895 3.895 0 1 0-3.233 1.722m0-1.6a2.295 2.295 0 1 1 0-4.59 2.295 2.295 0 0 1 0 4.59"/></g></svg>',ae='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.587 17.028a1.88 1.88 0 0 1-1.882-1.881V1.976A1.88 1.88 0 0 1 2.587.094H17.64a1.88 1.88 0 0 1 1.881 1.882v13.17a1.88 1.88 0 0 1-1.881 1.882zm5.645-1.41h9.408a.47.47 0 0 0 .47-.471V1.976a.47.47 0 0 0-.47-.47H8.232zM6.82 1.504H2.587a.47.47 0 0 0-.47.47v13.172a.47.47 0 0 0 .47.47H6.82z"/></svg>',ce='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5 9.5a.5.5 0 0 0 .5-.5v-.5A.5.5 0 0 0 5 8H3.5a.5.5 0 0 0-.5.5V9a.5.5 0 0 0 .5.5zm.5 2.5a.5.5 0 0 1-.5.5H3.5A.5.5 0 0 1 3 12v-.5a.5.5 0 0 1 .5-.5H5a.5.5 0 0 1 .5.5zM5 6.5a.5.5 0 0 0 .5-.5v-.5A.5.5 0 0 0 5 5H3.5a.5.5 0 0 0-.5.5V6a.5.5 0 0 0 .5.5z"/><path d="M2 19a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2zm6-1.5h10a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5H8zm-1.5-15H2a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h4.5z" clip-rule="evenodd"/></svg>';var le=o("../ckeditor5-icons/theme/icons/drag-handle.svg"),de=o("../ckeditor5-icons/theme/icons/drag-indicator.svg");const ue='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.972 3.115A.75.75 0 0 1 6.374 3c.14 0 .28.037.402.115l3.229 2.059 3.228-2.057a.75.75 0 0 1 .805 0l3.629 2.31h.002a.757.757 0 0 1 0 1.264h-.002L15.034 8.37l2.633 1.678h.002a.756.756 0 0 1 0 1.262h-.002l-3.63 2.312a1 1 0 0 1-.161.076c.234.08.409.275.482.5a.75.75 0 0 1-.322.854l-3.629 2.308a.75.75 0 0 1-.805 0l-3.63-2.31a.75.75 0 0 1-.229-1.031l.076-.122h.022a.75.75 0 0 1 .32-.189.8.8 0 0 1-.19-.086l-3.63-2.312a.756.756 0 0 1 0-1.264l2.632-1.678-2.632-1.676a.757.757 0 0 1 0-1.263zm2.64 2.946L6.374 4.635 4.136 6.06l2.238 1.423L8.612 6.06Zm7.262 0-2.236-1.426-2.239 1.426 2.237 1.423zm-3.637 2.306-2.232-1.422-2.233 1.422 2.235 1.422zm-3.625 2.31L6.374 9.253l-2.238 1.426 2.238 1.424 2.238-1.424Zm7.262 0-2.236-1.425-2.239 1.426 2.237 1.424 2.238-1.424Zm-2.64 2.944-3.23-2.056-3.228 2.056a.8.8 0 0 1-.185.084.7.7 0 0 1 .185.08l3.229 2.057 3.226-2.055a.8.8 0 0 1 .18-.084.8.8 0 0 1-.178-.082Z" clip-rule="evenodd"/></svg>';var he=o("../ckeditor5-icons/theme/icons/dropdown-arrow.svg");const pe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3 13.598v2.777h2.778l8.194-8.193-2.78-2.78L3 13.6zm13.12-7.566a.735.735 0 0 0 0-1.044l-1.734-1.73a.735.735 0 0 0-1.044 0L11.985 4.61l2.78 2.78 1.354-1.358z"/></svg>',me='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M8.5 8.25a1.25 1.25 0 1 1-2.499.001A1.25 1.25 0 0 1 8.5 8.25m5.5 0a1.25 1.25 0 1 1-2.499.001A1.25 1.25 0 0 1 14 8.25m-6.873 3.838a.75.75 0 1 0-1.254.824C6.88 14.444 8.423 15.25 10 15.25c1.578 0 3.12-.805 4.127-2.338a.75.75 0 0 0-1.254-.824C12.13 13.221 11.048 13.75 10 13.75c-1.047 0-2.13-.529-2.873-1.662" clip-rule="evenodd"/><path d="M10 19a9 9 0 1 0 0-18 9 9 0 0 0 0 18m0-1.5a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15"/></svg>';var ge=o("../ckeditor5-icons/theme/icons/eraser.svg");const fe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44m.05 8.363a.3.3 0 0 1 .115-.023h.9a.3.3 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277m-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3z" clip-rule="evenodd"/></svg>',_e='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M19 4.5 14 0H3v6.5h1.5v-5h8v5h5V11H19zM14 2l3.3 3H14zm-1.548 16.5 1.25 1.5H3v-3h1.5v1.5zm7.374-1.657a.75.75 0 1 0-1.152-.96L17.5 17.29V13H16v4.29l-1.174-1.408a.75.75 0 1 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0z"/><path d="M1.63 14.24V12.3h.88c.66 0 1.14-.15 1.46-.45s.48-.71.48-1.24c0-.52-.15-.91-.44-1.2C3.7 9.15 3.28 9 2.69 9H0v5.24zm.4-3h-.4v-1.17h.46c.3 0 .5.05.62.17.1.11.16.25.16.42 0 .16-.06.3-.19.41s-.34.16-.66.16zm5.7 3c.28 0 .6-.05.96-.14.26-.07.5-.21.73-.42.22-.2.4-.47.53-.77.12-.31.19-.75.19-1.3 0-.37-.04-.7-.13-1.02a2.3 2.3 0 0 0-.42-.84c-.19-.24-.43-.43-.72-.56C8.57 9.06 8.2 9 7.72 9h-2.4v5.24zm-.4-1.19h-.4v-2.86h.4c.43 0 .73.1.91.3s.27.59.27 1.14c0 .42-.04.73-.12.91a.76.76 0 0 1-.34.4c-.14.07-.38.11-.72.11m5.3 1.2V12.1h2.02v-1.06h-2.03v-.91H15V9h-4v5.24h1.62z"/></svg>',be='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M17.826 16.843a.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 0z"/><path d="m14 0 5 4.5v9.741a2.74 2.74 0 0 0-1.5-.617V6.5h-5v-5h-8v3H3V0zm0 2v3h3.3zM3 17.5h6.746q.15.331.391.623l.731.877H3z"/><path d="M8.5 6a1.5 1.5 0 0 1 1.493 1.356L10 7.5v7a1.5 1.5 0 0 1-1.356 1.493L8.5 16h-7a1.5 1.5 0 0 1-1.493-1.356L0 14.5v-7a1.5 1.5 0 0 1 1.356-1.493L1.5 6zM7.483 8.795l-.042.088-.986 2.534-.947-2.528-.043-.092a.601.601 0 0 0-1.042.008l-.042.093-.883 2.465-.937-2.475-.042-.089a.6.6 0 0 0-1.107.42l.027.093 1.514 4 .044.092a.6.6 0 0 0 1.041-.01l.041-.092.88-2.458.925 2.467.046.096a.6.6 0 0 0 1.032 0l.043-.09 1.554-4 .028-.093a.6.6 0 0 0-1.104-.43z"/></svg>',we='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 6.002a4 4 0 1 1 0 8 4 4 0 0 1 0-8m1.2 1.2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10.02 3.003c1.249.032 2.49.494 3.617 1.116 1.133.625 2.2 1.44 3.109 2.235a28.6 28.6 0 0 1 2.858 2.898l.171.204.046.054.012.016.004.004v.002a.8.8 0 0 1 .11.193l.02.05q.013.045.02.09l.01.054a.7.7 0 0 1 0 .146q-.002.032-.009.065l-.017.082-.024.061q-.014.038-.03.075l-.01.019a1 1 0 0 1-.06.093l-.002-.002h-.001l.002.003h-.001l-.004.005-.012.016-.046.058-.17.21a27.5 27.5 0 0 1-2.861 2.977c-.912.811-1.981 1.635-3.12 2.252-1.132.614-2.387 1.053-3.652 1.02-1.249-.031-2.49-.493-3.618-1.115-1.133-.626-2.199-1.44-3.108-2.235a28.6 28.6 0 0 1-3.029-3.102l-.045-.055-.012-.016-.004-.004-.001-.002a1 1 0 0 1-.065-.092l-.007-.015q-.025-.045-.041-.094l-.017-.042q-.014-.044-.02-.092-.007-.026-.01-.053Q0 10.042 0 10q-.002-.033 0-.065.004-.04.013-.079l.013-.06a1 1 0 0 1 .031-.084q.011-.03.025-.058l.012-.022a1 1 0 0 1 .06-.09h.001V9.54l.004-.005.012-.016.046-.057.17-.211a27.5 27.5 0 0 1 2.86-2.977c.911-.81 1.98-1.635 3.119-2.252 1.133-.614 2.388-1.052 3.652-1.02m-.04 1.499c-.902-.023-1.89.293-2.897.84-1.002.543-1.976 1.289-2.836 2.054a26 26 0 0 0-2.103 2.112l-.014.016a.695.695 0 0 0 .007.932 27 27 0 0 0 2.105 2.064c.861.753 1.838 1.495 2.846 2.051 1.013.56 2.014.906 2.931.93.903.022 1.89-.293 2.898-.84 1.002-.544 1.977-1.288 2.837-2.054a26 26 0 0 0 2.117-2.13.695.695 0 0 0-.008-.93 27 27 0 0 0-2.104-2.064c-.862-.753-1.839-1.495-2.847-2.052-1.014-.56-2.014-.906-2.932-.93" clip-rule="evenodd"/></svg>',ke='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.97 2.97a.75.75 0 0 1 1.06 0L5.56 4.5q.397-.254.807-.477c1.133-.614 2.388-1.052 3.652-1.02 1.25.032 2.492.494 3.618 1.116 1.133.625 2.2 1.44 3.109 2.235a29 29 0 0 1 2.858 2.898q.112.13.171.204l.046.055.012.015.004.004v.002q.07.091.11.193l.02.05q.013.045.02.09l.01.054a1 1 0 0 1 0 .146q-.002.033-.009.065l-.017.082-.024.061q-.014.039-.03.075l-.01.019a1 1 0 0 1-.06.093l-.003-.002.002.003h-.002l-.003.006-.012.015-.046.058-.17.21a27.5 27.5 0 0 1-2.861 2.978q-.508.452-1.072.892l1.35 1.35a.75.75 0 0 1-1.02 1.098 1 1 0 0 0-.08-.097l-13-13-.043-.039a.75.75 0 0 1 .083-.961m1.27 4.432a26 26 0 0 0-2.096 2.106l-.014.016a.695.695 0 0 0 .007.932 27 27 0 0 0 2.105 2.064c.861.753 1.838 1.495 2.846 2.051 1.013.56 2.014.906 2.931.93.612.015 1.26-.128 1.93-.39l1.14 1.14c-.984.466-2.043.776-3.109.749-1.249-.032-2.491-.494-3.618-1.116-1.132-.626-2.199-1.44-3.108-2.235a28.6 28.6 0 0 1-3.029-3.102l-.045-.055-.012-.016-.004-.004-.001-.002a1 1 0 0 1-.065-.092l-.007-.015a1 1 0 0 1-.041-.094l-.017-.042q-.014-.045-.02-.091-.007-.027-.01-.054Q0 10.042 0 10v-.064q.004-.04.013-.079l.013-.06a1 1 0 0 1 .031-.084q.011-.03.025-.058l.012-.022a1 1 0 0 1 .06-.09h.001V9.54l.004-.005.012-.016.046-.057.17-.211a27.6 27.6 0 0 1 2.788-2.913zm6.522 6.523a4 4 0 0 1-.762.077 4 4 0 0 1-3.926-4.766zM9.98 4.502c-.902-.023-1.89.293-2.897.84q-.218.117-.434.248l1.103 1.102a4 4 0 0 1 5.557 5.557l1.3 1.3c.397-.301.782-.619 1.145-.942a26 26 0 0 0 2.117-2.13.696.696 0 0 0-.008-.93 27 27 0 0 0-2.104-2.064c-.861-.753-1.84-1.495-2.847-2.052-1.014-.559-2.014-.906-2.932-.93m1.22 2.7c-.809 0-1.466.64-1.497 1.441l1.555 1.555a1.5 1.5 0 0 0-.058-2.996"/></svg>',ve='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.01 2C5.59 2 2 5.59 2 10.01a8.01 8.01 0 0 0 6.775 7.914.75.75 0 0 0 .598-.17.75.75 0 0 0 .262-.565v-5.02a.75.75 0 0 0-.22-.524.75.75 0 0 0-.526-.221H7.77v-.627h1.12a.75.75 0 0 0 .525-.22c.14-.14.22-.329.22-.526V8.324c0-.466.122-1.083.524-1.48.33-.326 1.017-.6 2.332-.43v.408c-.152.012-.305.017-.457.04-.335.048-.662.136-.943.326-.313.21-.497.505-.59.804s-.107.602-.107.88v1.18a.746.746 0 0 0 .744.746h1.158l-.098.63h-1.06a.744.744 0 0 0-.744.744v5.017a.75.75 0 0 0 .26.567q.123.105.28.148a.75.75 0 0 0 .319.022A8.012 8.012 0 0 0 10.01 2m0 1.486a6.52 6.52 0 0 1 6.521 6.524c0 2.945-1.973 5.386-4.65 6.197v-3.291h.951a.75.75 0 0 0 .736-.63l.332-2.12a.74.74 0 0 0-.17-.6.75.75 0 0 0-.564-.26h-1.285V8.87c0-.252.024-.384.039-.433q.003-.011.002-.016c.016-.011.104-.055.326-.088a7 7 0 0 1 .984-.05.75.75 0 0 0 .528-.218.74.74 0 0 0 .217-.527V5.76a.75.75 0 0 0-.586-.729c-2.04-.438-3.433-.083-4.278.75-.818.807-.968 1.884-.968 2.543v.983H7.027a.74.74 0 0 0-.525.22.74.74 0 0 0-.219.526v2.119c0 .197.08.386.219.525.14.14.328.221.525.221h1.118v3.291c-2.681-.809-4.659-3.25-4.659-6.197a6.523 6.523 0 0 1 6.524-6.526"/></svg>',ye='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M6.146 11.22a.75.75 0 0 1 1.061 0l3.677 3.678a.75.75 0 0 1-1.06 1.06l-2.397-2.396v5.689a.75.75 0 0 1-1.5 0v-5.69L3.53 15.959a.75.75 0 0 1-1.06-1.06z"/><path fill-rule="evenodd" d="M17.75 5.94v11.61a.95.95 0 0 1-.95.951h-6.3a.75.75 0 0 1 0-1.5h5.75v-10H11.7a.95.95 0 0 1-.95-.95V1.5h-6v8.66l-1.5 1.5V.95A.95.95 0 0 1 4.2 0h7.61zm-5.5-.439h2.94l-2.94-2.94z" clip-rule="evenodd"/></svg>',xe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m12.87 13.786 1.532-1.286 3.857 4.596a1 1 0 1 1-1.532 1.286z"/><path d="M16.004 8.5a6.5 6.5 0 0 1-9.216 5.905c-1.154-.53-.863-1.415-.663-1.615.194-.194.564-.592 1.635-.141a4.5 4.5 0 0 0 5.89-5.904l-.104-.227 1.332-1.331c.045-.046.196-.041.224.007a6.47 6.47 0 0 1 .902 3.306m-3.4-5.715c.562.305.742 1.106.354 1.494s-.995.414-1.476.178a4.5 4.5 0 0 0-6.086 5.882l.114.236-1.348 1.349c-.038.037-.17.022-.198-.023a6.5 6.5 0 0 1 5.54-9.9 6.5 6.5 0 0 1 3.1.784"/><path d="M4.001 11.93.948 8.877a.2.2 0 0 1 .141-.341h6.106a.2.2 0 0 1 .141.341L4.283 11.93a.2.2 0 0 1-.282 0m11.083-6.789 3.053 3.053a.2.2 0 0 1-.14.342H11.89a.2.2 0 0 1-.14-.342l3.052-3.053a.2.2 0 0 1 .282 0"/></svg>',Ae='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m8.38 9.262H7.62L10 5.506zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453z"/></svg>',Ce='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.4 10.3 10 4.5l-2.4 5.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2"/></svg>',Ee='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973zm-2.754 2.5L8.038 4.785 5.261 11.5zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663z"/></svg>',Se='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.816 11.5 7.038 4.785 4.261 11.5zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825q0-.063.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782q.003.065.003.135z"/></svg>',Te='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M19.832 7.469V1h-1.004q-.21.59-.778 1.03-.567.443-1.05.6v1.121a4.3 4.3 0 0 0 1.595-.936v4.654zM5.465 7.452q1.19 0 1.934.27t1.094.682q.35.405.49 1.029.08.387.08 1.398v2.021q0 2.115.095 2.68.105.556.404 1.07H7.916a3.1 3.1 0 0 1-.315-1.103q-.876.716-1.69 1.01a5 5 0 0 1-1.733.296q-1.531 0-2.355-.716-.822-.725-.823-1.846 0-.657.307-1.196.315-.547.814-.876a4 4 0 0 1 1.138-.497q.465-.118 1.4-.228 1.908-.219 2.81-.522.009-.312.009-.397 0-.926-.447-1.305-.603-.514-1.794-.514-1.111 0-1.646.379-.525.37-.779 1.322l-1.54-.202q.21-.953.69-1.533.483-.59 1.392-.902.911-.32 2.11-.32m7.048 1.034Q13.51 7.26 15.06 7.26q.858 0 1.62.343.77.334 1.26.952.5.61.78 1.475a6 6 0 0 1 .28 1.854q0 2.341-1.182 3.62t-2.837 1.278q-1.645 0-2.582-1.347v1.141h-1.461V4h1.575zm-5.044 3.625q-.858.337-2.573.574-.972.134-1.375.303a1.35 1.35 0 0 0-.622.497 1.24 1.24 0 0 0-.218.716q0 .606.472 1.01.482.405 1.4.405.912 0 1.62-.379.71-.387 1.043-1.052.253-.515.253-1.517zM14.92 8.53q-1.033 0-1.786.884-.753.875-.753 2.54 0 1.638.455 2.367.744 1.193 2.014 1.193 1.032 0 1.785-.875.753-.884.753-2.625 0-1.785-.727-2.634-.717-.85-1.741-.85"/></svg>',Pe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M11.5 5.75a.75.75 0 0 1 0-1.5H15a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0V6.81l-2.72 2.72a.75.75 0 0 1-1.06-1.06l2.72-2.72zm-1.97 4.72a.75.75 0 0 1 0 1.06l-2.72 2.72H8.5a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75v-3.5a.75.75 0 0 1 1.5 0v1.69l2.72-2.72a.75.75 0 0 1 1.06 0"/><path d="M2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2m16 1.5H2a.5.5 0 0 0-.5.5v16a.5.5 0 0 0 .5.5h16a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5"/></svg>',Me='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M15.53 5.53a.75.75 0 0 0-1.06-1.06l-2.72 2.72V5.5a.75.75 0 0 0-1.5 0V9a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 0-1.5h-1.69zM5.5 10.25a.75.75 0 0 0 0 1.5h1.69l-2.72 2.72a.75.75 0 1 0 1.06 1.06l2.72-2.72v1.69a.75.75 0 0 0 1.5 0V11a.75.75 0 0 0-.75-.75z"/><path d="M0 2a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm18.5 0a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v16a.5.5 0 0 0 .5.5h16a.5.5 0 0 0 .5-.5z"/></svg>',Ve='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7.666 3a.74.74 0 0 0-.371.1.75.75 0 0 0-.275.267l-4.918 8.397a.74.74 0 0 0-.006.744l2.46 4.318a.75.75 0 0 0 .65.377h9.606a.75.75 0 0 0 .65-.377l2.46-4.318a.74.74 0 0 0 .002-.735l-4.688-8.392a.75.75 0 0 0-.654-.38H7.666Zm1.285 1.492h3.195l3.854 6.9h-3.1zm-1.293.742L9.223 7.97l-4.016 6.988-1.6-2.813zm2.424 4.237 1.098 1.922H8.977zM8.12 12.885h7.87l-1.61 2.825H6.494z"/></svg>',Oe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.258 3.082c0-.594.486-1.082 1.08-1.082a4.38 4.38 0 0 1 4.239 5.489c-.18.688-.633 1.245-1.109 1.767h3.468c.595 0 1.082.488 1.082 1.082a4.382 4.382 0 0 1-5.49 4.24v-.001c-.689-.18-1.246-.633-1.768-1.109v3.468c0 .595-.487 1.082-1.082 1.082a4.38 4.38 0 0 1-4.111-2.866 4.4 4.4 0 0 1-.125-2.624c.18-.689.632-1.246 1.108-1.768H3.082A1.085 1.085 0 0 1 2 9.68a4.382 4.382 0 0 1 5.49-4.238c.69.18 1.246.632 1.768 1.108zm3.164 1.32c-.435-.46-1.043-.667-1.662-.767v5.49c.619-.1 1.227-.307 1.662-.766a2.875 2.875 0 0 0 0-3.958ZM7.21 6.918a2.88 2.88 0 0 0-2.93.789c-.396.423-.569.983-.658 1.55h5.56c-.045-.295-.091-.59-.224-.859a2.88 2.88 0 0 0-1.748-1.48m9.254 3.841h-5.653l.013.1c.012.098.025.197.053.292a2.873 2.873 0 0 0 4.862 1.158 3 3 0 0 0 .398-.54v-.001q.167-.294.263-.619c.026-.092.038-.188.05-.283zm-8.872 4.86c.437.459 1.045.666 1.665.766V10.89c-1.369.222-2.456 1.314-2.456 2.747 0 .738.283 1.447.791 1.981Z" clip-rule="evenodd"/></svg>',Ie='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M19 9v10h-2v-8h-2V9zM4 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 1z"/></svg>',Re='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 1zm16.076 8.343V18.5h-6.252q.1-.94.61-1.78.507-.841 2.005-2.232 1.206-1.124 1.479-1.523.368-.552.368-1.092 0-.597-.32-.917-.321-.32-.886-.32-.559 0-.889.336t-.38 1.117l-1.778-.178q.159-1.473.997-2.114t2.095-.64q1.377 0 2.164.742t.787 1.847q0 .629-.225 1.197-.225.567-.714 1.19-.324.412-1.168 1.187-.845.774-1.07 1.028a3 3 0 0 0-.365.495z"/></svg>',je='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 1zm9.989 7.53 1.726-.209q.082.66.445 1.01.36.348.876.349.552 0 .93-.42.377-.418.377-1.13 0-.672-.362-1.066a1.15 1.15 0 0 0-.882-.393q-.342 0-.819.133l.197-1.453q.723.019 1.105-.315.38-.333.38-.885 0-.47-.279-.75-.28-.278-.743-.278a1.07 1.07 0 0 0-.78.317q-.324.317-.394.927l-1.644-.28q.172-.844.517-1.348.347-.505.965-.794a3.24 3.24 0 0 1 1.387-.289q1.314 0 2.108.838.654.685.653 1.549 0 1.225-1.339 1.955.8.171 1.28.768.478.597.478 1.441 0 1.226-.895 2.088-.894.864-2.228.864-1.263 0-2.094-.727-.832-.727-.965-1.901z"/></svg>',ze='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 1zm13.55 10v-1.873h-3.81v-1.561l4.037-5.91h1.498v5.904h1.156v1.567h-1.156V18.5zm0-3.44v-3.18l-2.14 3.18z"/></svg>',Be='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 1zm9.578 7.607 1.777-.184q.076.603.45.955a1.223 1.223 0 0 0 1.81-.101q.387-.455.387-1.368 0-.857-.384-1.286-.384-.428-1-.428-.768 0-1.377.679l-1.448-.21.915-4.843h4.716v1.67H15.56l-.28 1.58a2.7 2.7 0 0 1 1.219-.298 2.68 2.68 0 0 1 2.012.863q.825.864.825 2.241a3.36 3.36 0 0 1-.666 2.05q-.907 1.232-2.52 1.232-1.29 0-2.101-.692-.813-.691-.971-1.86"/></svg>',Ne='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 1zm15.595 2.973-1.726.19q-.064-.532-.33-.787-.267-.253-.692-.253-.565 0-.956.507-.39.508-.492 2.114.667-.787 1.657-.787 1.117 0 1.914.85.797.852.797 2.197 0 1.428-.838 2.291-.838.864-2.152.864-1.41 0-2.317-1.095t-.908-3.59q0-2.558.946-3.688t2.457-1.13q1.059 0 1.755.594.694.593.885 1.723m-4.043 3.891q0 .87.4 1.343.398.473.914.473.495 0 .825-.388.33-.386.33-1.27 0-.906-.355-1.329a1.12 1.12 0 0 0-.89-.422q-.513 0-.869.403c-.356.403-.355.666-.355 1.19"/></svg>',Le='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 1"/><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.052zM11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',De='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 9h16v2H2z"/></svg>',Fe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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-2zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5zm-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-.965zM2 10H1v5h1v-2h2v2h1v-5H4v2H2zm7 0H6v1h1v4h1v-4h1zm8 0h-1v5h3v-1h-2zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5M10 7v1H4V7zm3-2v1H4V5zm-3-2v1H4V3z"/></svg>',He='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.1zm11.723 2.805a2.1 2.1 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.13 2.13 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path 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.84.84 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.84.84 0 0 1 .247.597m-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z" clip-rule="evenodd"/></svg>',qe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.1zM17.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 1zm-5.655 6a2.13 2.13 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7"/></svg>',We='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h9.494a3 3 0 0 1-.414-.287 3 3 0 0 1-1.055-2.03 3 3 0 0 1 .693-2.185l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L1.5 13.6V2.5h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.1c0-.63-.547-1.1-1.2-1.1zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.13 2.13 0 0 0-1.875-.978"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.8.8 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.8.8 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79"/></svg>',$e='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h7.029a5.4 5.4 0 0 1 .615-4.338l.762-1.232-2.975-2.78a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v6.023q.675.195 1.307.573l.058.033q.068.042.135.086V2.1c0-.63-.547-1.1-1.2-1.1zm11.713 2.803a2.15 2.15 0 0 0-1.611.834 2.1 2.1 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-.978"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.65.65 0 0 0-.096.492.66.66 0 0 0 .278.418.7.7 0 0 0 .944-.234 1.74 1.74 0 0 1 2.478-.463 1.87 1.87 0 0 1 .476 2.55.64.64 0 0 0-.071.5.65.65 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.23 3.23 0 0 0 .82 4.403 3.005 3.005 0 0 0 4.275-.798l.13-.197a.63.63 0 0 0 .092-.475.64.64 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.029a1.74 1.74 0 0 1-2.477.461 1.87 1.87 0 0 1-.475-2.55l.029-.047a.65.65 0 0 0 .086-.485.66.66 0 0 0-.275-.408l-.04-.027a.61.61 0 0 0-.845.17"/><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-.236z"/></svg>';var Ue=o("../ckeditor5-icons/theme/icons/import-export.svg");const Ke='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m14 0 5 4.5v8.892l-1.5-1.8V6.5h-5v-5h-8v3H3V0zm0 2v3h3.3zm-3.26 16a2.8 2.8 0 0 1-.469-.5H3V19h9.25v-.374A2.74 2.74 0 0 1 10.74 18"/><path d="M8.5 6a1.5 1.5 0 0 1 1.493 1.356L10 7.5v7a1.5 1.5 0 0 1-1.356 1.493L8.5 16h-7a1.5 1.5 0 0 1-1.493-1.356L0 14.5v-7a1.5 1.5 0 0 1 1.356-1.493L1.5 6zM7.483 8.795l-.042.088-.986 2.534-.947-2.528-.043-.092a.601.601 0 0 0-1.042.008l-.042.093-.883 2.465-.937-2.475-.042-.089a.6.6 0 0 0-1.107.42l.027.093 1.514 4 .044.092a.6.6 0 0 0 1.041-.01l.041-.092.88-2.458.925 2.467.046.096a.602.602 0 0 0 1.032 0l.043-.09 1.554-4 .028-.093a.6.6 0 0 0-1.104-.43zm4.191 6.612a.75.75 0 1 0 1.152.96L14 14.96V20h1.5v-5.04l1.174 1.408a.75.75 0 1 0 1.152-.96l-2.346-2.816a.95.95 0 0 0-1.46 0z"/></svg>',Ye='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.75m5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75M2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5M1.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>',Ge='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 8.251a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0v-5.5a.75.75 0 0 1 .75-.75m0-3.5a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0v-.5a.75.75 0 0 1 .75-.75"/><path fill-rule="evenodd" d="M10 .751a9.25 9.25 0 1 1 0 18.5 9.25 9.25 0 0 1 0-18.5m0 1.5a7.75 7.75 0 1 0 0 15.5 7.75 7.75 0 0 0 0-15.5" clip-rule="evenodd"/></svg>',Je='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="9.8" r="1.5"/><path d="M13.25 2.75V2h.035a6 6 0 0 1 .363.014c.21.013.517.041.785.109.397.1.738.281 1.007.55s.429.587.524.907c.182.608.15 1.314.108 1.913l-.03.408c-.038.487-.073.93-.053 1.353.026.527.136.879.333 1.112.223.263.494.428.72.528a2 2 0 0 0 .335.117l.01.002.613.109v.628h-2.402a3.3 3.3 0 0 1-.42-.415c-.509-.601-.655-1.345-.687-2.009-.025-.527.02-1.094.059-1.592l.026-.347c.044-.621.044-1.067-.049-1.377a.63.63 0 0 0-.148-.276.64.64 0 0 0-.313-.157 3 3 0 0 0-.512-.066 6 6 0 0 0-.286-.01h-.016L13.25 3.5h-.75V2h.75z"/><path d="M13.25 16.75v.75h.035a7 7 0 0 0 .363-.014 4.6 4.6 0 0 0 .785-.109c.397-.1.738-.28 1.007-.55.268-.269.429-.587.524-.907.182-.608.15-1.314.108-1.912l-.03-.41c-.038-.486-.073-.93-.053-1.352.026-.527.136-.879.333-1.112.223-.263.494-.428.72-.528a2 2 0 0 1 .335-.117l.01-.002.613-.109V9.75h-2.402a3.3 3.3 0 0 0-.42.416c-.509.6-.655 1.344-.687 2.008-.025.527.02 1.095.059 1.592l.026.347c.044.621.044 1.067-.049 1.378a.63.63 0 0 1-.148.275.64.64 0 0 1-.313.157 3 3 0 0 1-.512.066 6 6 0 0 1-.286.01l-.016.001H12.5v1.5h.75zm-6.5-14V2h-.035a6 6 0 0 0-.363.014 4.6 4.6 0 0 0-.785.109 2.13 2.13 0 0 0-1.008.55 2.1 2.1 0 0 0-.524.907c-.181.608-.15 1.314-.108 1.913l.031.408c.038.487.073.93.052 1.353-.025.527-.136.879-.333 1.112a2 2 0 0 1-.718.528 2 2 0 0 1-.337.117l-.01.002L2 9.122v.628h2.402a3.3 3.3 0 0 0 .42-.415c.509-.601.654-1.345.686-2.009.026-.527-.019-1.094-.058-1.592q-.015-.18-.026-.347c-.044-.621-.044-1.067.048-1.377a.63.63 0 0 1 .149-.276.64.64 0 0 1 .312-.157c.13-.032.323-.054.513-.066a6 6 0 0 1 .286-.01h.015L6.75 3.5h.75V2h-.75zm0 14v.75h-.035a7 7 0 0 1-.363-.014 4.6 4.6 0 0 1-.785-.109 2.13 2.13 0 0 1-1.008-.55 2.1 2.1 0 0 1-.524-.907c-.181-.608-.15-1.314-.108-1.912l.031-.41c.038-.486.073-.93.052-1.352-.025-.527-.136-.879-.333-1.112a2 2 0 0 0-.718-.528 2 2 0 0 0-.337-.117l-.01-.002L2 10.378V9.75h2.402q.218.178.42.416c.509.6.654 1.344.686 2.008.026.527-.019 1.095-.058 1.592q-.015.18-.026.347c-.044.621-.044 1.067.048 1.378a.63.63 0 0 0 .149.275.64.64 0 0 0 .312.157c.13.032.323.054.513.066a6 6 0 0 0 .286.01l.015.001H7.5v1.5h-.75z"/></svg>',Ze='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m9.586 14.633.021.004q-.054.502.393.962.123.125.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15q.711-.106 1.005-.334.235-.182.404-.597l2.416-9.55a1.05 1.05 0 0 0-.281-.823 1.1 1.1 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195q-.564.084-.823.296-.323.263-.623.79z"/></svg>',Xe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".16" d="M35 20a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H15.5a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M8.508 9.561q.567-.44.778-1.03h1.004V15H9.053v-4.654a4.3 4.3 0 0 1-1.595.936v-1.121q.483-.158 1.05-.6m4.525 4.204V15h-1.235v-1.235zm1.299 10.204v-6.47h-1.004q-.21.59-.778 1.03-.567.444-1.05.6v1.122a4.3 4.3 0 0 0 1.595-.936v4.654zm2.743 0v-1.235H15.84v1.235zm4.099 0v-6.47H20.17q-.21.59-.778 1.03-.567.444-1.05.6v1.122a4.3 4.3 0 0 0 1.595-.936v4.654zm2.743 0v-1.235h-1.235v1.235zM19.032 27.5v6.469h-1.237v-4.654a4.3 4.3 0 0 1-1.595.936V29.13q.483-.158 1.05-.6.568-.44.778-1.03zm2.743 5.234v1.235H20.54v-1.235zm4.357 1.335v-6.47h-1.004q-.21.59-.778 1.03-.567.444-1.05.6v1.122a4.3 4.3 0 0 0 1.595-.936v4.654zm2.743 0v-1.235H27.64v1.235zm4.357 0v-6.47h-1.004q-.21.59-.778 1.03-.567.444-1.05.6v1.122a4.3 4.3 0 0 0 1.595-.936v4.654zm2.743 0v-1.235H34.74v1.235z"/></svg>',Qe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m17.975 15.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825q0-.063.002-.123l-.77.77L15 4.765 17.196 2.5l2.265 2.265-.707.707-.782-.782q.003.065.003.135zM1 15.75c0 .414.273.75.61.75h8.067a.56.56 0 0 0 .43-.22.85.85 0 0 0 .18-.53.85.85 0 0 0-.18-.53.56.56 0 0 0-.43-.22H1.609a.56.56 0 0 0-.43.22.85.85 0 0 0-.179.53m0-12c0 .414.273.75.61.75h11.78a.56.56 0 0 0 .431-.22.85.85 0 0 0 .179-.53.85.85 0 0 0-.178-.53.56.56 0 0 0-.431-.22H1.609a.56.56 0 0 0-.43.22.85.85 0 0 0-.179.53m0 4c0 .414.273.75.61.75h11.78a.56.56 0 0 0 .431-.22.85.85 0 0 0 .179-.53.85.85 0 0 0-.178-.53.56.56 0 0 0-.431-.22H1.609a.56.56 0 0 0-.43.22.85.85 0 0 0-.179.53m0 4c0 .414.273.75.61.75h11.78a.56.56 0 0 0 .431-.22.85.85 0 0 0 .179-.53.85.85 0 0 0-.178-.53.56.56 0 0 0-.431-.22H1.609a.56.56 0 0 0-.43.22.85.85 0 0 0-.179.53"/></svg>',et='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.8.8 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.7.7 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294zm5.494-5.335a.8.8 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.8.8 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955m-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184"/></svg>',tt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4"/></svg>',ot='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M5.714 15.11q.935 0 1.46-.66.632-.799.632-2.627 0-1.832-.629-2.624-.527-.668-1.463-.668t-1.459.66q-.633.8-.633 2.619 0 1.854.576 2.577.577.723 1.516.723m0-1.024a.6.6 0 0 1-.398-.14q-.173-.141-.287-.565-.115-.424-.115-1.558c0-1.134.043-1.294.128-1.613q.096-.37.272-.512a.62.62 0 0 1 .4-.143.6.6 0 0 1 .398.143q.173.143.288.567t.114 1.558c0 1.134-.043 1.292-.128 1.608q-.096.37-.272.512a.62.62 0 0 1-.4.143m6.078.914V8.531H10.79q-.21.59-.778 1.03-.567.442-1.05.6v1.121a4.3 4.3 0 0 0 1.595-.936V15zm3.344 0v-1.235h-1.235V15zm-9.422 9.11q.935 0 1.46-.66.632-.799.632-2.627 0-1.833-.629-2.624-.527-.668-1.463-.668t-1.459.66q-.633.8-.633 2.619 0 1.854.576 2.577.577.723 1.516.723m0-1.024a.6.6 0 0 1-.398-.14q-.173-.142-.287-.565-.115-.424-.115-1.558c0-1.134.043-1.294.128-1.613q.096-.37.272-.512a.62.62 0 0 1 .4-.143.6.6 0 0 1 .398.143q.173.142.288.567t.114 1.558c0 1.134-.043 1.292-.128 1.608q-.096.37-.272.512a.62.62 0 0 1-.4.143m7.088.914v-1.147H10.35q.097-.167.253-.343.155-.175.74-.712t.81-.821q.338-.431.493-.824.156-.394.156-.829 0-.765-.544-1.279-.546-.514-1.499-.514-.87 0-1.45.444t-.69 1.463l1.23.124q.036-.54.264-.774t.615-.233q.391 0 .613.222t.222.635q0 .374-.255.756-.189.277-1.024 1.055-1.037.962-1.388 1.544-.352.583-.422 1.233zm2.334 0v-1.235h-1.235V24zM5.714 34.11q.935 0 1.46-.66.632-.799.632-2.627 0-1.832-.629-2.624-.527-.668-1.463-.668t-1.459.66q-.633.8-.633 2.619 0 1.854.576 2.577.577.723 1.516.723m0-1.024a.6.6 0 0 1-.398-.14q-.173-.142-.287-.565-.115-.424-.115-1.558c0-1.134.043-1.294.128-1.613q.096-.37.272-.512a.62.62 0 0 1 .4-.143.6.6 0 0 1 .398.143q.173.142.288.567t.114 1.558c0 1.134-.043 1.292-.128 1.608q-.096.37-.272.512a.62.62 0 0 1-.4.143m4.992 1.024q.924 0 1.543-.598.62-.597.62-1.446 0-.585-.332-.997a1.5 1.5 0 0 0-.886-.532q.927-.505.927-1.353 0-.598-.452-1.073-.55-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.6 1.6 0 0 0-.667.55q-.24.349-.359.933l1.139.194q.048-.422.272-.642t.54-.22q.321 0 .515.194c.194.194.193.302.193.518q0 .383-.264.613-.263.231-.764.218l-.136 1.006q.33-.092.566-.092.36 0 .611.272.25.273.25.739 0 .492-.26.782a.83.83 0 0 1-.644.29.84.84 0 0 1-.607-.242q-.25-.241-.308-.698l-1.195.145q.093.813.668 1.316t1.45.503m4.43-.11v-1.235h-1.235V34z"/></svg>',st='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M10.29 15V8.531H9.286q-.21.59-.778 1.03-.567.442-1.05.6v1.121a4.3 4.3 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15zM11.3 24v-1.147H8.848q.096-.167.252-.343.156-.175.74-.712.585-.536.81-.821.338-.431.494-.824.156-.394.156-.829 0-.765-.545-1.279t-1.499-.514q-.87 0-1.45.444t-.69 1.463l1.23.124q.036-.54.264-.774.23-.233.616-.233.39 0 .613.222t.222.635q0 .374-.255.756-.19.277-1.024 1.055-1.038.962-1.389 1.544T6.971 24zm2.333 0v-1.235h-1.235V24zM9.204 34.11q.922 0 1.542-.598.62-.597.62-1.446 0-.585-.332-.997a1.5 1.5 0 0 0-.886-.532q.928-.505.928-1.353 0-.598-.453-1.073-.549-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.6 1.6 0 0 0-.668.55q-.24.349-.358.933l1.138.194q.048-.422.272-.642t.54-.22q.322 0 .515.194c.193.194.193.302.193.518q0 .383-.263.613-.263.231-.765.218l-.136 1.006q.33-.092.567-.092.36 0 .61.272.251.273.251.739 0 .492-.261.782a.83.83 0 0 1-.644.29.84.84 0 0 1-.607-.242q-.251-.241-.307-.698l-1.196.145q.093.813.668 1.316t1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>',it='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6"/></svg>',nt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M9.62 14.105q.408 0 .768-.153c.36-.153.466-.257.677-.462q.013.036.044.145.07.242.119.365h1.221a2.7 2.7 0 0 1-.222-.626q-.06-.293-.059-.908l.013-1.441q0-.804-.165-1.105-.165-.302-.569-.497-.405-.195-1.23-.195-.91 0-1.371.325-.462.325-.65 1.002l1.12.202q.114-.326.299-.455.184-.13.514-.13.488 0 .663.152.176.151.176.508v.123q-.333.14-1.2.303-.641.123-.982.288t-.53.474a1.33 1.33 0 0 0-.188.706q0 .598.415.988.416.391 1.136.391zm.368-.87a.68.68 0 0 1-.492-.189.6.6 0 0 1-.193-.448q0-.263.241-.435.159-.105.673-.215a7 7 0 0 0 .751-.19v.247q0 .443-.048.602a.77.77 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14zM10.2 25.105q.813 0 1.382-.646.57-.645.57-1.84 0-1.156-.559-1.774a1.82 1.82 0 0 0-1.41-.617q-.783 0-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592q.39.2.79.2zm-.299-.975q-.531 0-.852-.492-.23-.348-.229-1.073 0-.703.295-1.048a.93.93 0 0 1 .738-.345q.453 0 .743.354t.29 1.154q0 .751-.288 1.1t-.697.35m4.478.87v-1.235h-1.234V25zm-4.017 9.105q.9 0 1.437-.426.536-.426.725-1.261l-1.213-.207q-.092.489-.316.688a.83.83 0 0 1-.576.2.92.92 0 0 1-.75-.343q-.278-.343-.278-1.173 0-.747.274-1.066.275-.318.736-.318.348 0 .565.184t.28.55l1.216-.22q-.22-.751-.722-1.119-.504-.366-1.356-.366-1.042 0-1.653.643-.61.645-.61 1.8 0 1.143.608 1.788.609.646 1.633.646M14.633 34v-1.235h-1.235V34z"/></svg>',rt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M11.88 8.7V7.558h-1.234V8.7zm0 5.3V9.333h-1.234V14zm2.5 0v-1.235h-1.234V14zm-4.75 4.7v-1.142H8.395V18.7zm0 5.3v-4.667H8.395V24zm2.5-5.3v-1.142h-1.234V18.7zm0 5.3v-4.667h-1.234V24zm2.501 0v-1.235h-1.235V24zM7.38 28.7v-1.142H6.145V28.7zm0 5.3v-4.667H6.145V34zm2.5-5.3v-1.142H8.646V28.7zm0 5.3v-4.667H8.646V34zm2.5-5.3v-1.142h-1.234V28.7zm0 5.3v-4.667h-1.234V34zm2.501 0v-1.235h-1.235V34z"/></svg>',at='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M14 27v6H8v-6zm0-9v6H8v-6zm0-9v6H8V9z"/></svg>',ct='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15zM9.352 25q1.244-.009 1.569-.044.518-.057.872-.305.354-.249.558-.664t.205-.855q0-.558-.317-.97-.315-.414-.905-.585a1.5 1.5 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83q0-.419-.197-.754a1.65 1.65 0 0 0-.495-.539 1.7 1.7 0 0 0-.672-.266q-.375-.063-1.14-.063H7.158V25zm.142-3.88H8.46v-1.49h.747q.918 0 1.112.022.325.04.49.226.165.188.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 12 12 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05q.888 0 1.154.092.266.093.406.295a.84.84 0 0 1 .14.492q0 .342-.181.547a.8.8 0 0 1-.473.257q-.189.04-.892.04M14.88 25v-1.235h-1.234V25zm-5.018 9.11q1.037 0 1.711-.512t.965-1.567l-1.261-.4q-.163.708-.536 1.037-.375.33-.892.33-.704 0-1.143-.519-.44-.518-.44-1.74 0-1.15.447-1.665.445-.514 1.162-.514.52 0 .881.29.362.29.477.79l1.288-.307q-.22-.774-.66-1.187-.738-.698-1.92-.698-1.353 0-2.184.89-.83.89-.83 2.498 0 1.521.825 2.397.826.877 2.11.877M14.88 34v-1.235h-1.234V34z"/></svg>',lt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M11.916 15V8.558h-1.301V15zm2.465 0v-1.235h-1.235V15zM9.665 25v-6.442h-1.3V25zm2.5 0v-6.442h-1.3V25zm2.466 0v-1.235h-1.235V25zm-7.216 9v-6.442h-1.3V34zm2.5 0v-6.442h-1.3V34zm2.501 0v-6.442h-1.3V34zm2.465 0v-1.235h-1.235V34z"/></svg>',dt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><path fill-opacity=".163" d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1z"/><path d="M14.88 15v-1.235h-1.234V15zm0 10v-1.235h-1.234V25zm0 9v-1.235h-1.234V34z"/><text x="9" y="15" font-family="sans-serif" font-size="8" font-weight="bold" text-anchor="middle">١</text><text x="9" y="25" font-family="sans-serif" font-size="8" font-weight="bold" text-anchor="middle">٢</text><text x="9" y="34" font-family="sans-serif" font-size="8" font-weight="bold" text-anchor="middle">٣</text></svg>',ut='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4.2 3c-.584 0-1.145.23-1.557.643A2.2 2.2 0 0 0 2 5.199v8.719a2.194 2.194 0 0 0 2.2 2.195h11.624a2.194 2.194 0 0 0 2.196-2.195V7.621a2.194 2.194 0 0 0-2.195-2.2h-5.393l-1.237-2.06A.75.75 0 0 0 8.56 3zm0 1.488h3.935l1.236 2.06a.75.75 0 0 0 .64.362h5.813a.71.71 0 0 1 .707.71v6.298a.707.707 0 0 1-.707.707H4.2a.71.71 0 0 1-.71-.707V5.199a.71.71 0 0 1 .71-.71Z"/></svg>';var ht=o("../ckeditor5-icons/theme/icons/loupe.svg");const pt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.1 11.1 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.5.5 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304q-.387.166-.757.365l6.239 6.24-.006.005.78.78q-.582.141-1.174.215l-1.11-1.11h.011L4.55 8.197a7 7 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10 10 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a3 3 0 0 0-.124.2q-.065.116-.108.241a.5.5 0 0 0-.028.133.3.3 0 0 0 .008.072 1 1 0 0 0 .082.226q.1.2.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.93m7.07.531a4.63 4.63 0 0 1 1.108 5.992l.345.344.046-.018a9.3 9.3 0 0 0 2-1.112q.385-.281.727-.613.207-.2.392-.431.109-.135.203-.286.086-.14.148-.292a1 1 0 0 0 .036-.12.3.3 0 0 0 .008-.072.5.5 0 0 0-.028-.133 1 1 0 0 0-.036-.096 2 2 0 0 0-.071-.145 3 3 0 0 0-.125-.2 4 4 0 0 0-.263-.335 5.4 5.4 0 0 0-.53-.523 8 8 0 0 0-1.054-.768 9.8 9.8 0 0 0-1.879-.891q-.506-.178-1.027-.301m-2.85.21-.069.002a.5.5 0 0 0-.254.097.496.496 0 0 0-.104.679.5.5 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.49.49 0 0 0 .45.287h.008a.5.5 0 0 0 .35-.158.48.48 0 0 0 .13-.335.6.6 0 0 0-.048-.219 3.4 3.4 0 0 0-.36-.723 3.44 3.44 0 0 0-2.791-1.543l-.028-.001z"/></svg>',mt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.15.15 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.15.15 0 0 0-.09.09l-.548 1.483a.15.15 0 0 1-.142.1.15.15 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.15.15 0 0 0 .089-.09zm.96-7.68a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.15.15 0 0 1 .072.229.15.15 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.15.15 0 0 0 .09-.089zm-8.641 0a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .09.09l1.482.548a.15.15 0 0 1 .072.229.15.15 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.15.15 0 0 0 .09-.089l.548-1.483zm7.055 6.204a.85.85 0 0 0 .25-.591.82.82 0 0 0-.241-.588l-1.943-1.938a.8.8 0 0 0-.588-.241.84.84 0 0 0-.591.25l-1.545 1.539 3.115 3.115z"/><path d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.96.96 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121z" clip-rule="evenodd"/></svg>',gt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.798 1.59 3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z" class="ck-icon__fill"/><path d="m2.556 16.727.234-.348q-.445-.226-.498-.426-.054-.206.115-.837.14-.375.169-.595a4.5 4.5 0 0 0 0-.725q-.313-.931-.284-1.26.03-.327.475-.862l6.77-9.414q.808-1.365 3.199.18 2.39 1.549 1.784 2.686l-5.877 10.36q-.237.618-.526.782-.29.163-1.232.21-.543.196-.738.318t-.526.47q-.44.397-.632.397-.143 0-.524-.226l-.31.41zm-.279.415 1.575 1.103-.392.515H1.19zm8.1-13.656-4.953 6.9L8.75 12.57l4.247-7.574q.263-.375-1.092-1.192-1.354-.819-1.528-.32zM8.244 18.5 9.59 17h9.406v1.5z"/></svg>',ft='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.754 2.501a.75.75 0 0 1 .75.75v5.2a.75.75 0 1 1-1.5 0V5.06L11.98 9.086a.75.75 0 0 1-1.061-1.061L14.943 4h-3.389a.75.75 0 0 1 0-1.5zM3.25 17.504a.75.75 0 0 1-.75-.75v-5.2a.75.75 0 0 1 1.5 0v3.39l4.023-4.023a.75.75 0 1 1 1.061 1.06l-4.023 4.023H8.45a.75.75 0 0 1 0 1.5z"/></svg>',_t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 42"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098s-4.538-.083-4.538-1.678 2.032-3.43 4.538-4.098c.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556L49 17zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.99 1.99 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17m29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155zM20.6 21.375v1.616h1.616v-1.616zm0 3.231v1.616h1.616v-1.616zm0 3.231v1.616h1.616v-1.616zm0 3.231v1.616h1.616v-1.616zm0 3.231v1.616h1.616v-1.616zm0 3.231v1.616h1.616V37.53zm24.233-16.155v1.616h1.615v-1.616zm0 3.231v1.616h1.615v-1.616zm0 3.231v1.616h1.615v-1.616zm0 3.231v1.616h1.615v-1.616zm0 3.231v1.616h1.615v-1.616zm0 3.231v1.616h1.615V37.53zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35z"/></svg>',bt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 20"><path d="M1.587 1.5c-.612 0-.601-.029-.601.551v14.84c0 .59-.01.559.591.559h18.846c.602 0 .591.03.591-.56V2.052c0-.58.01-.55-.591-.55H1.587Zm.701.971h1.003v1H2.288zm16.448 0h1.003v1h-1.003zm-14.24 1h13.008v12H4.467zm-2.208 1h1.003v1H2.288zm16.448 0h1.003v1h-1.003zm-16.448 2h1.003v1H2.288zm16.448 0h1.003v1h-1.003zm-16.448 2h1.003v1H2.288zm16.448 0h1.003v1h-1.003zm-16.448 2h1.003v1H2.288zm16.448 0h1.003v1h-1.003zm-16.448 2h1.003l-.029 1h-.974zm16.448 0h1.003v1h-1.003zm-16.448 2h.974v1h-.974zm16.448 0h1.003v1h-1.003z"/><path d="M8.374 6.648a.4.4 0 0 1 .395-.4.4.4 0 0 1 .2.049l5.148 2.824a.4.4 0 0 1 0 .7l-5.148 2.824a.403.403 0 0 1-.595-.35z"/></svg>',wt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M11.45 9.304a.75.75 0 0 1-.75-.75v-5.2a.75.75 0 0 1 1.5 0v3.39l4.023-4.023a.75.75 0 0 1 1.06 1.06l-4.022 4.023h3.389a.75.75 0 0 1 0 1.5zm-2.896 1.397a.75.75 0 0 1 .75.75v5.2a.75.75 0 0 1-1.5 0v-3.39L3.78 17.286a.75.75 0 1 1-1.06-1.061l4.022-4.023H3.354a.75.75 0 0 1 0-1.5z"/></svg>',kt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7.85 6.5a.75.75 0 0 1 0-1.5h9.5a.75.75 0 1 1 0 1.5zM3 8V2.7H.5v1h1V8zm10.42 6.185a.75.75 0 0 0 .53 1.28h3.4a.75.75 0 1 0 0-1.5h-3.4a.75.75 0 0 0-.53.22m-7.784-6.15V6.8H4.4v1.235zM9 17.865v-5.3H6.5v1h1v4.3zm2.636.035v-1.235H10.4V17.9zM3.2 17.865v-5.3H.7v1h1v4.3zm2.636.035v-1.235H4.6V17.9z"/></svg>';var vt=o("../ckeditor5-icons/theme/icons/next-arrow.svg");const yt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m1 15H9v-2h2zm0-4H9V5h2z"/></svg>',xt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75M3.5 3v5H2V3.7H1v-1h2.5zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001q-.073.607-.333.988-.263.381-1.244 1.312H4.3v1h-4zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75"/></svg>',At='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 3h16v1.5H2zm0 12h16v1.5H2z" opacity=".5"/><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 1m-1.506.5H6.5V12h6.997z"/></svg>',Ct='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 3h16v1.5H2zm0 12h16v1.5H2z" opacity=".5"/><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 1m-1.505.5H3.504V12h12.991z"/></svg>',Et='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z" opacity=".5"/><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 1m-1.506.5H3.5V12h6.997z"/></svg>',St='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z" opacity=".5"/><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 1m-1.506.5H9.5V12h6.997z"/></svg>',Tt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z" opacity=".5"/><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 1m-1.506.5H3.5V12h6.997z"/></svg>',Pt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 3h16v1.5H2zm0 12h16v1.5H2z" opacity=".5"/><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 1m-1.506.5H3.5V12h6.997z"/></svg>',Mt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 3h16v1.5H2zm0 12h16v1.5H2z" opacity=".5"/><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 1m-1.506.5H9.5V12h6.997z"/></svg>',Vt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.95 1.43a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h.75v6.3H.95a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-.65h1.932l1.539-1.5H5v-.95a.95.95 0 0 0-.95-.95H3.2v-6.3h.85A.95.95 0 0 0 5 5.48v-.55h10v.55a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-3.1a.95.95 0 0 0-.95-.95h-3.1a.95.95 0 0 0-.95.95v1.05H5V2.38a.95.95 0 0 0-.95-.95zm.55 3.5v-2h2v2zm0 9.3v2h2v-2zm15-11.3v2h2v-2zM8.139 20.004v-2.388l7.045-7.048 2.391 2.391-7.046 7.046zm11.421-9.101a.6.6 0 0 1-.138.206l-1.165 1.168-2.391-2.391 1.167-1.163a.6.6 0 0 1 .206-.138.6.6 0 0 1 .243-.049.63.63 0 0 1 .449.187l1.491 1.488c.059.059.108.129.138.206s.049.16.049.243a.6.6 0 0 1-.049.243"/></svg>',Ot='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zM1 15.5v1H0v-1zm19 0v1h-1v-1zm-19-2v1H0v-1zm19 0v1h-1v-1zm-19-2v1H0v-1zm19 0v1h-1v-1zm-19-2v1H0v-1zm19 0v1h-1v-1zm-19-2v1H0v-1zm19 0v1h-1v-1zm-19-2v1H0v-1zm19 0v1h-1v-1zm0-2v1h-1v-1zm-19 0v1H0v-1zM14.5 2v1h-1V2zm2 0v1h-1V2zm2 0v1h-1V2zm-8 0v1h-1V2zm-2 0v1h-1V2zm-2 0v1h-1V2zm-2 0v1h-1V2zm8 0v1h-1V2zm-10 0v1h-1V2z"/><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-2m0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.49.49 0 0 1-.476-.5V4c0-.276.213-.5.476-.5z"/></svg>',It='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 16.5v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zM1 15v1H0v-1zm19 0v1h-1v-1zM1 13v1H0v-1zm19 0v1h-1v-1zM1 11v1H0v-1zm19 0v1h-1v-1zM1 9v1H0V9zm19 0v1h-1V9zM1 7v1H0V7zm19 0v1h-1V7zM1 5v1H0V5zm19 0v1h-1V5zm0-2v1h-1V3zM1 3v1H0V3zm13.5-1.5v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm-8 0v1h-1v-1zm-2 0v1h-1v-1zm-2 0v1h-1v-1zm-2 0v1h-1v-1zm8 0v1h-1v-1zm-10 0v1h-1v-1z"/><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-2M13 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 7z"/></svg>',Rt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 16.5v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zM1 15v1H0v-1zm19 0v1h-1v-1zM1 13v1H0v-1zm19 0v1h-1v-1zM1 11v1H0v-1zm19 0v1h-1v-1zM1 9v1H0V9zm19 0v1h-1V9zM1 7v1H0V7zm19 0v1h-1V7zM1 5v1H0V5zm19 0v1h-1V5zm0-2v1h-1V3zM1 3v1H0V3zm13.5-1.5v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm-8 0v1h-1v-1zm-2 0v1h-1v-1zm-2 0v1h-1v-1zm-2 0v1h-1v-1zm8 0v1h-1v-1zm-10 0v1h-1v-1z"/><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-2M10 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 9z"/></svg>',jt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 16.5v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zM1 15v1H0v-1zm19 0v1h-1v-1zM1 13v1H0v-1zm19 0v1h-1v-1zM1 11v1H0v-1zm19 0v1h-1v-1zM1 9v1H0V9zm19 0v1h-1V9zM1 7v1H0V7zm19 0v1h-1V7zM1 5v1H0V5zm19 0v1h-1V5zm0-2v1h-1V3zM1 3v1H0V3zm13.5-1.5v1h-1v-1zm2 0v1h-1v-1zm2 0v1h-1v-1zm-8 0v1h-1v-1zm-2 0v1h-1v-1zm-2 0v1h-1v-1zm-2 0v1h-1v-1zm8 0v1h-1v-1zm-10 0v1h-1v-1z"/><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-2M7 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 11z"/></svg>',zt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.223 5.001a5.28 5.28 0 0 0-4.408 2.258c-3.224.423-4.908 4.123-3.032 6.814l.004.008.002.004c.48.627 1.712 1.84 3.588 1.84h7.936c.667 0 1.32-.179 1.894-.522a3.84 3.84 0 0 0 1.381-1.46v-.005c1.13-2.16-.133-4.777-2.488-5.298-.617-1.853-2.177-3.242-4.111-3.565a5 5 0 0 0-.766-.074m-.092 1.5a3 3 0 0 1 .23.008c.077.004.154.014.231.021l.226.035a5 5 0 0 1 .45.116 3 3 0 0 1 .433.166 4 4 0 0 1 .606.348 4 4 0 0 1 .37.293 4 4 0 0 1 .33.348 3.5 3.5 0 0 1 .505.778 3 3 0 0 0-.42.117q-.123.044-.244.094l-1.49.627-2.686-1.61a4.4 4.4 0 0 0-1.002-.445c.015-.01.032-.026.047-.039a4 4 0 0 1 .4-.289 4 4 0 0 1 .424-.23 3 3 0 0 1 .219-.094q.112-.043.225-.076a4 4 0 0 1 .222-.06q.117-.029.233-.05.112-.022.228-.033.115-.011.233-.02.116-.005.23-.005m-3.8 2.193h.003c.54.001 1.111.156 1.551.428l1.783 1.07-5.867 2.471c-.535-1.29-.15-2.788 1.059-3.537l.007-.004a2.9 2.9 0 0 1 1.463-.428Zm7.974 1.33.152.008q.13.011.258.033a2 2 0 0 1 .477.145 2.2 2.2 0 0 1 .918.756q.07.1.127.2a2.3 2.3 0 0 1 .269.919c.004.081.008.165.002.248q-.006.083-.02.166l-3.507-2.102.459-.193.015-.008a2 2 0 0 1 .41-.125 2.3 2.3 0 0 1 .44-.047m-3.008 1.112 4.506 2.699a2.2 2.2 0 0 1-.338.26 2.2 2.2 0 0 1-.668.275q-.116.027-.24.04c-.081.007-.164.015-.246.015H6.373a3 3 0 0 1-.168-.004 2 2 0 0 1-.164-.016l-.154-.023q-.077-.01-.15-.026a3 3 0 0 1-.77-.3 3 3 0 0 1-.21-.133c-.012-.008-.019-.016-.03-.024z"/></svg>',Bt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 1"/><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.052zM11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',Nt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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.75m5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75M2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5m1.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>',Lt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.598.687h1.5v5h-1.5zm14.5 0h1.5v5h-1.5z"/><path d="M19.598 4.187v1.5h-16v-1.5zm-16 14.569h1.5v-5h-1.5zm14.5 0h1.5v-5h-1.5z"/><path d="M19.598 15.256v-1.5h-16v1.5zM5.081 9h6v2h-6zm8 0h6v2h-6zm-9.483 1L0 12.5v-5z"/></svg>',Dt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="2 2 56 18"><path d="m12.527 14.733-.514.022-.057-.057-.058-.058.006-2.44.007-2.44-.834-.023-.833-.022.023-.406.024-.405.536-.1.536-.098.25-.145.25-.145.17-.429.172-.428.399-.024.398-.023v7.08l.02.059.02.059zm17.894.016h-.457l.043-.138.043-.137.635-2.004.636-2.004.437-1.375.436-1.375.055-.196.054-.197.38-.024.378-.024.07.069.07.07-1.162 3.667-1.16 3.667zm11.733 0h-.55V9.72h-1.65v-.864h.385l.4-.086.398-.086.233-.195.232-.196.138-.386.137-.387h.827v7.229zm6.404 0h-.51V13.02h-3.143v-1.01l1.044-1.44 1.045-1.44.59-.824.592-.825h.854l.02 2.298.021 2.298h1.02v.943H49.07v1.729zM47 12.06l1.008-.022.022-1.4.021-1.401-.07.044-.07.043-.901 1.279-.901 1.278-.058.1-.059.101zM12.256 22.893l-10.53.01-.157-.038-.157-.038-.255-.12L.9 22.59v-.19l.228-.218.228-.218.16.086.16.085h20.922l.16-.085.16-.086.228.218.227.218v.189l-.294.146-.295.147z"/></svg>',Ft='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31 20"><mask id="a" width="17" height="18" x="13" y="1" maskUnits="userSpaceOnUse"><path d="M13 1h17v18H13z"/><path d="M14 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1z"/><path d="M27 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H20a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 27 6.449z"/></mask><path d="M14 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1z"/><path d="M27 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H20a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 27 6.449z"/><path d="M14 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1z" mask="url(#a)"/><path d="M27 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H20a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 27 6.449z" mask="url(#a)"/><mask id="b" width="12" height="17" x="1.75" y="1.165" maskUnits="userSpaceOnUse"><path d="M1.75 1.165h12v17h-12z"/><path d="m12.25 9.96-9.5-7.795 2 12.124 2.384-2.53 2.75 4.762 1.732-1-2.75-4.763z"/></mask><path d="m12.25 9.96-9.5-7.795 2 12.124 2.384-2.53 2.75 4.762 1.732-1-2.75-4.763z"/><path d="m12.25 9.96-9.5-7.795 2 12.124 2.384-2.53 2.75 4.762 1.732-1-2.75-4.763z" mask="url(#b)"/></svg>',Ht='<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31 20" width="30" height="20">\n <path d="M14 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V3Z" fill="#000"/>\n <path d="M27 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H20a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 27 6.449V3.25Z" fill="#000"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M26.855 2.25H27a2.5 2.5 0 0 1 2.5 2.5v1.7a3.25 3.25 0 0 1-2.79 3.216l-4.21.602a2 2 0 0 1 1 1.732v5a2 2 0 0 1-2 2H20a2 2 0 0 1-2-2v-5a2 2 0 0 1 1-1.732v-.217A3.25 3.25 0 0 1 21.129 7H15a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h10a2 2 0 0 1 1.855 1.25ZM20 10.05V11a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h1.5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1v-.95c0-.016 0-.033.002-.05a.75.75 0 0 1 .642-.692l4.424-.632A2.25 2.25 0 0 0 28.5 6.45V4.75a1.496 1.496 0 0 0-1.5-1.5v3.2a.75.75 0 0 1-.644.742l-4.424.632A2.25 2.25 0 0 0 20 10.05ZM15 2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H15Z" fill="#fff"/>\n <path d="M2.5 2.5A.5.5 0 0 1 3 2h2.5a.5.5 0 0 1 .354.146l.646.647.646-.647A.5.5 0 0 1 7.5 2H10a.5.5 0 0 1 0 1H7.707L7 3.707V10h.5a.5.5 0 0 1 0 1H7v4.793l.707.707H10a.5.5 0 0 1 0 1H7.5a.5.5 0 0 1-.354-.146l-.646-.647-.646.647a.5.5 0 0 1-.354.146H3a.5.5 0 0 1 0-1h2.293L6 15.793V11h-.5a.5.5 0 0 1 0-1H6V3.707L5.293 3H3a.5.5 0 0 1-.5-.5Z" fill="#000"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="m5.793 3.5-.5-.5H3a.5.5 0 0 1 0-1h2.5a.5.5 0 0 1 .354.146l.145.146.501.5.646-.646A.5.5 0 0 1 7.5 2H10a.5.5 0 0 1 0 1H7.707L7 3.707V10h.5a.5.5 0 0 1 0 1H7v4.793l.707.707H10a.5.5 0 0 1 0 1H7.5a.5.5 0 0 1-.354-.146l-.646-.647-.5.5-.146.147a.5.5 0 0 1-.354.146H3a.5.5 0 0 1 0-1h2.293L6 15.793V11h-.5a.5.5 0 0 1 0-1H6V3.707L5.793 3.5Zm-.914.5L5 4.121v4.964a1.5 1.5 0 0 0 0 2.83v3.464l-.121.121H3a1.5 1.5 0 0 0 0 3h2.5a1.5 1.5 0 0 0 1-.382 1.5 1.5 0 0 0 1 .382H10a1.5 1.5 0 0 0 0-3H8.121L8 15.379v-3.464a1.5 1.5 0 0 0 0-2.83V4.121L8.121 4H10a1.5 1.5 0 0 0 0-3H7.5a1.5 1.5 0 0 0-1 .382A1.5 1.5 0 0 0 5.5 1H3a1.5 1.5 0 1 0 0 3h1.879Z" fill="#fff"/>\n</svg>\n',qt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"/><path d="M16 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 16 6.449z"/></svg>',Wt='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M8.514.5c1.007 0 2.056.352 2.866.96.813.611 1.449 1.539 1.449 2.69v7.8c0 .777-.382 1.457-.888 1.93-.505.474-1.195.8-1.92.82-1.473.04-2.848-1.237-2.848-2.75v-3.7a.75.75 0 0 1 1.5 0v3.7c0 .642.65 1.268 1.306 1.25.312-.008.663-.157.938-.414.274-.256.412-.562.412-.836v-7.8c0-.556-.303-1.08-.85-1.49A3.4 3.4 0 0 0 8.513 2a3.4 3.4 0 0 0-1.946.65c-.556.41-.868.934-.868 1.5v.028l-.001.013-.002.055-.006.212-.02.787c-.015.67-.034 1.605-.046 2.663-.025 2.123-.025 4.729.074 6.704.058 1.155.628 1.948 1.466 2.478.864.547 2.017.81 3.135.81 1.114 0 2.092-.265 2.789-.785.671-.5 1.152-1.286 1.213-2.503a80 80 0 0 0 .074-5.299 82 82 0 0 0-.073-2.283L14.301 7v-.086A.75.75 0 0 1 15.8 6.91v.013l.002.033.005.127c.005.11.013.273.02.48.017.413.035 1.007.048 1.725a82 82 0 0 1-.075 5.4c-.082 1.63-.758 2.843-1.815 3.631-1.032.77-2.358 1.082-3.684 1.082-1.322 0-2.774-.306-3.939-1.044-1.191-.754-2.076-1.962-2.161-3.669-.101-2.024-.101-4.67-.076-6.796.012-1.066.03-2.006.047-2.68.007-.337.015-.608.02-.794l.006-.215.002-.056v-.02c.009-1.162.663-2.082 1.477-2.683A4.9 4.9 0 0 1 8.514.5"/></svg>';var $t=o("../ckeditor5-icons/theme/icons/paragraph.svg");const Ut='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m7.3 17.37-.061.088a1.52 1.52 0 0 1-.934.535l-4.178.663-.806-4.153a1.5 1.5 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.055zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346zM6.07 16.512l-3.276-2.295.53 2.73zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328M8 18.5 9.375 17H19v1.5z"/></svg>',Kt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.126 2.268 2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568z" class="ck-icon__fill"/><path d="m4.5 18.088-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97q.249-.348.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005zm-.634.166-1.976.516-.026-1.918zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349M8.245 18.5 9.59 17h9.406v1.5z"/></svg>';var Yt=o("../ckeditor5-icons/theme/icons/pilcrow.svg");const Gt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 19a9 9 0 1 0 0-18 9 9 0 0 0 0 18m3.45-9.872a1 1 0 0 1 0 1.744l-4.96 2.79A1 1 0 0 1 7 12.79V7.21a1 1 0 0 1 1.49-.872z" clip-rule="evenodd"/></svg>';var Jt=o("../ckeditor5-icons/theme/icons/plus.svg");const Zt='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">\n<circle cx="9.00037" cy="9.79993" r="1.5"/>\n<path d="M5.75024 2.75005C5.75019 2.00005 5.75006 2.00005 5.75006 2.00005L5.74877 2.00005L5.74647 2.00006L5.73927 2.00009L5.71503 2.0003C5.6947 2.00053 5.66619 2.00098 5.63111 2.00185C5.56123 2.0036 5.46388 2.00707 5.35241 2.01402C5.14095 2.02722 4.83482 2.05536 4.56712 2.12276C4.1703 2.22267 3.82938 2.40399 3.55967 2.67392C3.29221 2.94161 3.1311 3.26001 3.03544 3.5803C2.85401 4.18776 2.8854 4.89393 2.92747 5.49256C2.9373 5.6324 2.94792 5.76849 2.95828 5.90131C2.99629 6.38849 3.03087 6.83163 3.01038 7.25369C2.98475 7.78147 2.87469 8.13279 2.6777 8.3656C2.45517 8.6286 2.1841 8.79405 1.95875 8.89436C1.84756 8.94386 1.75282 8.97509 1.68956 8.99319C1.65813 9.00219 1.63513 9.00776 1.62253 9.01062L1.61304 9.01269L1.00024 9.12173V9.75005H3.4023C3.54579 9.63123 3.68814 9.49364 3.82278 9.33451C4.33087 8.73405 4.47638 7.99036 4.50861 7.32643C4.5342 6.79933 4.48942 6.23163 4.4502 5.73429C4.44071 5.61404 4.43155 5.49785 4.42378 5.3874C4.38011 4.76596 4.37986 4.32043 4.4727 4.00956C4.51418 3.87069 4.56668 3.78828 4.62078 3.73414C4.67264 3.68223 4.76124 3.6207 4.93336 3.57736C5.06269 3.5448 5.25656 3.52293 5.44585 3.51111C5.53475 3.50556 5.61296 3.50277 5.66854 3.50139C5.6962 3.5007 5.71789 3.50036 5.73209 3.5002L5.74748 3.50007L5.75054 3.50005L6.5003 3.5L6.50019 2L5.75006 2.00005L5.75024 2.75005Z"/>\n<path d="M5.75024 16.7501C5.75019 17.5001 5.75006 17.5001 5.75006 17.5001L5.74877 17.5001L5.74647 17.5001L5.73927 17.5L5.71503 17.4998C5.6947 17.4996 5.66619 17.4991 5.63111 17.4983C5.56123 17.4965 5.46388 17.493 5.35241 17.4861C5.14095 17.4729 4.83482 17.4448 4.56712 17.3774C4.1703 17.2774 3.82938 17.0961 3.55967 16.8262C3.29221 16.5585 3.1311 16.2401 3.03544 15.9198C2.85401 15.3124 2.8854 14.6062 2.92747 14.0076C2.9373 13.8677 2.94792 13.7316 2.95828 13.5988C2.99629 13.1116 3.03087 12.6685 3.01038 12.2464C2.98475 11.7186 2.87469 11.3673 2.6777 11.1345C2.45517 10.8715 2.1841 10.7061 1.95875 10.6058C1.84756 10.5563 1.75282 10.525 1.68956 10.5069C1.65813 10.4979 1.63513 10.4924 1.62253 10.4895L1.61304 10.4874L1.00024 10.3784V9.75005H3.4023C3.54579 9.86887 3.68814 10.0065 3.82278 10.1656C4.33087 10.7661 4.47638 11.5098 4.50861 12.1737C4.5342 12.7008 4.48942 13.2685 4.4502 13.7658C4.44071 13.8861 4.43155 14.0023 4.42378 14.1127C4.38011 14.7341 4.37986 15.1797 4.4727 15.4906C4.51418 15.6294 4.56668 15.7118 4.62078 15.766C4.67264 15.8179 4.76124 15.8794 4.93336 15.9228C5.06269 15.9553 5.25656 15.9772 5.44585 15.989C5.53475 15.9945 5.61296 15.9973 5.66854 15.9987C5.6962 15.9994 5.71789 15.9998 5.73209 15.9999L5.74748 16L5.75054 16.0001L6.5003 16.0001L6.50019 17.5001L5.75006 17.5001L5.75024 16.7501Z"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M12.2514 2.00005L12.2501 2.00005L11.5 2L11.4999 3.5L12.2496 3.50005L12.2527 3.50007L12.2681 3.5002C12.2823 3.50036 12.304 3.5007 12.3316 3.50139C12.3872 3.50277 12.4654 3.50556 12.5543 3.51111C12.7436 3.52293 12.9375 3.5448 13.0668 3.57736C13.2389 3.6207 13.3275 3.68223 13.3794 3.73414C13.4335 3.78828 13.486 3.87069 13.5275 4.00956C13.6203 4.32043 13.6201 4.76596 13.5764 5.3874C13.5686 5.49785 13.5595 5.61404 13.55 5.73429C13.5108 6.23163 13.466 6.79933 13.4916 7.32643C13.5238 7.99036 13.6693 8.73405 14.1774 9.33451C14.312 9.49364 14.4544 9.63123 14.5979 9.75005C14.4544 9.86887 14.312 10.0065 14.1774 10.1656C13.7121 10.7154 13.5509 11.3854 13.5023 12.0042C13.6011 12.0012 13.7003 11.9997 13.7999 11.9997C14.208 11.9997 14.6093 12.0247 15.0018 12.0729C15.0416 11.6402 15.1479 11.3408 15.3225 11.1345C15.545 10.8715 15.8161 10.7061 16.0414 10.6058C16.1526 10.5563 16.2474 10.525 16.3106 10.5069C16.342 10.4979 16.365 10.4924 16.3776 10.4895L16.3871 10.4874L16.9999 10.3784V9.75005V9.12173L16.3871 9.01269L16.3776 9.01062C16.365 9.00776 16.342 9.00219 16.3106 8.99319C16.2474 8.97509 16.1526 8.94386 16.0414 8.89436C15.8161 8.79405 15.545 8.6286 15.3225 8.3656C15.1255 8.13279 15.0154 7.78147 14.9898 7.25369C14.9693 6.83163 15.0039 6.38849 15.0419 5.90131C15.0523 5.76849 15.0629 5.6324 15.0727 5.49256C15.1148 4.89393 15.1462 4.18776 14.9647 3.5803C14.8691 3.26001 14.708 2.94161 14.4405 2.67392C14.1708 2.40399 13.8299 2.22267 13.433 2.12276C13.1654 2.05536 12.8592 2.02722 12.6478 2.01402C12.5363 2.00707 12.4389 2.0036 12.3691 2.00185C12.334 2.00098 12.3055 2.00053 12.2851 2.0003L12.2609 2.00009L12.2537 2.00006L12.2514 2.00005Z"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.00335 17.2062L9.00308 17.2065C8.7234 17.5118 8.24919 17.5327 7.94372 17.2532C7.63816 16.9735 7.61716 16.4991 7.89681 16.1935L8.45008 16.6999C7.89681 16.1935 7.89697 16.1934 7.89713 16.1932L7.89751 16.1928L7.89844 16.1918L7.90098 16.189L7.90879 16.1806L7.93517 16.1526C7.95746 16.1292 7.98914 16.0963 8.02971 16.0555C8.11079 15.9738 8.22768 15.8597 8.37644 15.724C8.6732 15.4532 9.10079 15.0927 9.62744 14.7314C10.6647 14.0198 12.1659 13.2499 13.8501 13.2499C15.5343 13.2499 17.0355 14.0198 18.0727 14.7314C18.5994 15.0927 19.027 15.4532 19.3237 15.724C19.4725 15.8597 19.5894 15.9738 19.6705 16.0555C19.711 16.0963 19.7427 16.1292 19.765 16.1526L19.7914 16.1806L19.7992 16.189L19.8017 16.1918L19.8027 16.1928L19.803 16.1932C19.8032 16.1934 19.8034 16.1935 19.2501 16.6999L19.8034 16.1935C20.083 16.4991 20.062 16.9735 19.7565 17.2532C19.4511 17.5326 18.9772 17.5118 18.6975 17.207L18.6971 17.2065L18.6968 17.2062L18.6945 17.2037L18.6783 17.1865C18.6629 17.1704 18.6386 17.1452 18.6059 17.1123C18.5404 17.0463 18.4414 16.9494 18.3127 16.8321C18.0546 16.5966 17.6814 16.282 17.2242 15.9683C16.9805 15.8012 16.7185 15.6381 16.4421 15.4883C16.7016 15.9322 16.8502 16.4487 16.8502 16.9999C16.8502 18.6567 15.5071 19.9999 13.8502 19.9999C12.1934 19.9999 10.8502 18.6567 10.8502 16.9999C10.8502 16.4486 10.9989 15.932 11.2584 15.4881C10.9819 15.6379 10.7198 15.8011 10.476 15.9683C10.0188 16.282 9.64555 16.5966 9.38746 16.8321C9.25879 16.9494 9.15975 17.0463 9.09425 17.1123C9.06153 17.1452 9.03726 17.1704 9.02192 17.1865L9.00572 17.2037L9.00335 17.2062Z"/>\n<circle cx="14.8253" cy="16.1749" r="1.125" fill="white"/>\n</svg>\n';var Xt=o("../ckeditor5-icons/theme/icons/previous-arrow.svg");const Qt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M15 2.5H5v4h10zm-1 1v2H6v-2z"/><path d="M16 5.5a2.5 2.5 0 0 1 2.495 2.336L18.5 8v5a2.5 2.5 0 0 1-2.336 2.495L16 15.5h-1V14h1a1 1 0 0 0 .993-.883L17 13V8a1 1 0 0 0-.883-.993L16 7H4a1 1 0 0 0-.993.883L3 8v5a1 1 0 0 0 .883.993L4 14h1v1.5H4a2.5 2.5 0 0 1-2.495-2.336L1.5 13V8a2.5 2.5 0 0 1 2.336-2.495L4 5.5zM6.5 8a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1z"/><path d="M15 12H5v7h10zm-1 1v5H6v-5z"/><path d="M7 14h6v1H7zm0 2h6v1H7z"/></svg>';var eo=o("../ckeditor5-icons/theme/icons/project-logo.svg");const to='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003z"/></svg>';var oo=o("../ckeditor5-icons/theme/icons/redo.svg");const so='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.106 4.946c.272.274.27.712.033 1.016a6.1 6.1 0 0 0-1.291 3.764c0 3.375 2.722 6.111 6.08 6.111q.418 0 .822-.057l-.964-.968-.048-.054a.71.71 0 0 1 .048-.943.7.7 0 0 1 .939-.05l.053.05 1.984 1.994c.143.144.21.335.204.523a.7.7 0 0 1-.156.495l-.048.053-1.984 1.994a.7.7 0 0 1-.992 0 .71.71 0 0 1 0-.997l.645-.647a8 8 0 0 1-.504.018c-4.132 0-7.482-3.368-7.482-7.522 0-1.803.632-3.458 1.684-4.754.248-.304.701-.304.977-.026M9.057.464a.7.7 0 0 1 .992 0 .71.71 0 0 1 0 .997l-.966.97q.46-.058.938-.058c4.132 0 7.483 3.367 7.483 7.521a7.5 7.5 0 0 1-1.685 4.754c-.247.304-.7.304-.977.026-.271-.273-.27-.712-.032-1.016a6.1 6.1 0 0 0 1.29-3.764c0-3.375-2.721-6.11-6.079-6.111a6 6 0 0 0-.673.039l.701.705.049.053a.71.71 0 0 1-.049.944.7.7 0 0 1-.939.048l-.053-.048L7.073 3.53a.7.7 0 0 1-.203-.524.7.7 0 0 1 .155-.495l.048-.053z"/></svg>',io='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.2 7h9.2c.6 0 1 .4 1 1v9.9c0 .5-.4 1-1 1H5.2a1 1 0 0 1-1-1V8c0-.6.4-1 1-1m1 1.5c-.3 0-.5.2-.5.5v8c0 .3.2.5.5.5h.5c.2 0 .5-.2.5-.5V9c0-.3-.3-.5-.5-.5zm3.2 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5zm-1.4-7.1H8.3L6.5 3.6H3.8c-.5 0-.7.3-.7.8s.2.7.7.7h12c.6 0 .9-.2.9-.7s-.3-.8-1-.8h-2.4z"/></svg>',no='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M8.69 14.915q.08.078.36.093a.366.366 0 0 1 .345.485l-.003.01a.74.74 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.68.68 0 0 1 .644-.458q.295-.018.386-.093a.3.3 0 0 0 .072-.11L9.592 4.5H6.269q-.538-.026-.75.09-.213.117-.442.563c-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486q.002-.426-.167-.54-.168-.114-.766-.091h-3.28l-2.68 10.257q-.009.111.038.158M3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1m11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',ro='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.2 7h9.2c.6 0 1 .4 1 1v9.9c0 .5-.4 1-1 1H5.2a1 1 0 0 1-1-1V8c0-.6.4-1 1-1m1 1.5c-.3 0-.5.2-.5.5v8c0 .3.2.5.5.5h.5c.2 0 .5-.2.5-.5V9c0-.3-.3-.5-.5-.5zm3.2 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5zm3.5 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5zm-1.4-7.1H8.3L6.5 3.6H3.8c-.5 0-.7.3-.7.8s.2.7.7.7h12c.6 0 .9-.2.9-.7s-.3-.8-1-.8h-2.4z"/></svg>';var ao=o("../ckeditor5-icons/theme/icons/return-arrow.svg");const co='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><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 1"/><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.052zM11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',lo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.5 2.5 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406s-.938.63-.938 1.406c0 .777.42 1.407.938 1.407m7.5-1.407c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406s.938.63.938 1.406M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937zm5.191 4.506a.78.78 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403s-2.329-.404-2.995-1.403a.78.78 0 0 1 .217-1.085Zm10.859-3.6-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161m-5.352 11.041a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91z"/></svg>';var uo=o("../ckeditor5-icons/theme/icons/select-all.svg");const ho='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M1.583.45a.95.95 0 0 0-.95.95v5.3h1.5V1.95h4.75V.45zm17.05.95a.95.95 0 0 0-.95-.95h-5.3v1.5h4.75V6.7h1.5zm0 16.1a.95.95 0 0 1-.95.95h-5.3v-1.5h4.75V12.2h1.5zm-18 0c0 .525.425.95.95.95h5.3v-1.5h-4.75V12.2h-1.5zm5-10.8a.75.75 0 1 0 0 1.5h8a.75.75 0 1 0 0-1.5zm0 4a.75.75 0 1 0 0 1.5h4a.75.75 0 1 0 0-1.5z"/></svg>',po='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.734 6.375H1.75a.75.75 0 0 1 0-1.5h1.984a2.626 2.626 0 0 1 5.032 0h9.48a.75.75 0 0 1 0 1.5h-9.48a2.626 2.626 0 0 1-5.032 0Zm1.141-.75a1.375 1.375 0 1 1 2.75 0 1.375 1.375 0 0 1-2.75 0ZM16.263 14.625h1.983a.75.75 0 0 1 0 1.5h-1.983a2.626 2.626 0 0 1-5.033 0H1.75a.75.75 0 0 1 0-1.5h9.48a2.626 2.626 0 0 1 5.033 0Zm-1.142.75a1.375 1.375 0 1 1-2.75 0 1.375 1.375 0 0 1 2.75 0Z"/></svg>\n',mo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m6.395 9.196 2.545-.007V6.498a.6.6 0 0 1 .598-.598h.299a.6.6 0 0 1 .598.598v6.877a.6.6 0 0 1-.598.598h-.299a.6.6 0 0 1-.598-.598v-2.691l-2.545.007v2.691a.6.6 0 0 1-.598.598h-.299a.6.6 0 0 1-.598-.598V6.505a.6.6 0 0 1 .598-.598h.299a.6.6 0 0 1 .598.598zm8.699 4.221V6.462a.56.56 0 0 0-.562-.562h-.782a1 1 0 0 0-.39.08l-1.017.43a.56.56 0 0 0-.343.517v.197c0 .4.406.67.775.519l.819-.337v6.111c0 .31.251.562.561.562h.377c.31 0 .562-.251.562-.562M0 15.417v1.5h1.5v-1.5zm18.5 0v1.5H20v-1.5zm0-3.084v1.5H20v-1.5zm0-3.083v1.5H20v-1.5zm0-3.083v1.5H20v-1.5zM0 18.5v.5a1 1 0 0 0 1 1h.5v-1.5zm3.083 0V20h1.5v-1.5zm3.084 0V20h1.5v-1.5zm3.083 0V20h1.5v-1.5zm3.083 0V20h1.5v-1.5zm3.084 0V20h1.5v-1.5zm3.083 0V20h.5a1 1 0 0 0 1-1v-.5z"/><path d="M0 1a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v3.583h-1.5V1.5h-17v12.333H0z" clip-rule="evenodd"/></svg>',go='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.23 2.93a.88.88 0 0 1 1.248 0l1.47 1.468q.298-.186.605-.353c1.066-.58 2.247-.992 3.438-.961 1.176.03 2.344.464 3.405 1.05 1.066.588 2.069 1.355 2.925 2.104a27 27 0 0 1 2.852 2.918l.043.052.011.016.005.004a.7.7 0 0 1 .103.183l.018.047.02.083.01.05.002.078-.003.062-.01.06q-.005.038-.016.077l-.02.06-.03.07-.01.016-.056.087-.002-.001.002.002h-.002l-.003.006-.011.014-.044.054-.161.2a26 26 0 0 1-2.693 2.803q-.414.367-.868.73l1.256 1.256a.881.881 0 0 1-.785 1.49.87.87 0 0 0-.25-.55L3.444 3.872a.9.9 0 0 0-.465-.245.88.88 0 0 1 .252-.698m1.19 4.413A25 25 0 0 0 2.58 9.204l-.013.016a.654.654 0 0 0 .006.876c.484.53 1.173 1.236 1.98 1.943.812.708 1.73 1.407 2.679 1.93.954.527 1.896.853 2.76.876.52.013 1.07-.094 1.635-.298l1.082 1.082c-.877.395-1.812.651-2.754.626-1.176-.03-2.345-.464-3.406-1.05-1.066-.587-2.068-1.354-2.924-2.103a27 27 0 0 1-2.851-2.918l-.044-.052-.01-.014-.005-.004v-.002a1 1 0 0 1-.06-.087l-.008-.014q-.022-.044-.038-.089l-.016-.04-.02-.086q-.005-.024-.007-.05-.006-.039-.003-.075v-.06q.004-.038.012-.076l.012-.056q.013-.041.03-.08l.023-.054.012-.02.055-.086h.002l-.002-.001.003-.005.012-.015.043-.054.16-.2A26 26 0 0 1 3.42 6.343zm6.057 6.058q-.247.035-.506.035a3.765 3.765 0 0 1-3.73-4.27zm-.524-8.906c-.85-.021-1.779.276-2.727.79l-.25.142L8.011 6.46a3.77 3.77 0 0 1 1.96-.555 3.765 3.765 0 0 1 3.766 3.764 3.77 3.77 0 0 1-.558 1.96l1.272 1.271c.323-.25.637-.513.936-.778a25 25 0 0 0 1.977-1.988l.015-.016a.655.655 0 0 0-.006-.878 26 26 0 0 0-1.981-1.941c-.81-.708-1.73-1.407-2.679-1.932-.954-.526-1.896-.852-2.76-.874m1.148 2.541a1.41 1.41 0 0 0-1.384 1.132l1.662 1.662a1.412 1.412 0 0 0-.278-2.794"/></svg>',fo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill-rule="evenodd"><path d="M9.972 5.906a3.765 3.765 0 1 1 0 7.53 3.765 3.765 0 0 1 0-7.53m1.13 1.13a1.412 1.412 0 1 0 0 2.823 1.412 1.412 0 0 0 0-2.824"/><path d="M9.99 3.084c1.177.03 2.345.465 3.406 1.05 1.066.588 2.07 1.355 2.925 2.105a27 27 0 0 1 2.852 2.917q.027.036.043.053l.011.015.004.003v.002q.068.084.103.183l.019.047.019.083.01.05a.7.7 0 0 1 0 .139q-.002.031-.01.06l-.016.078q-.009.029-.022.058-.012.035-.028.07l-.01.018-.056.087-.002-.002v.004l-.004.005-.012.015-.042.054-.161.198a26 26 0 0 1-2.694 2.803c-.856.762-1.863 1.537-2.933 2.117-1.066.58-2.247.992-3.438.962-1.176-.03-2.345-.465-3.406-1.05-1.066-.59-2.07-1.355-2.924-2.103a27 27 0 0 1-2.851-2.92l-.044-.052-.011-.015-.003-.004v-.001a1 1 0 0 1-.062-.088l-.006-.013-.039-.088-.016-.042q-.013-.043-.02-.086-.006-.025-.008-.05L.56 9.669v-.06q.005-.036.013-.075l.012-.056.03-.08.023-.054.012-.022.055-.083v.001h.001v-.002l.005-.005.01-.015.044-.054q.055-.071.16-.198a26 26 0 0 1 2.692-2.801c.858-.764 1.864-1.54 2.935-2.12 1.066-.58 2.247-.99 3.438-.961m-.037 1.411c-.85-.022-1.779.276-2.727.79-.943.511-1.859 1.214-2.67 1.934A24 24 0 0 0 2.58 9.207l-.014.015a.654.654 0 0 0 .007.877c.484.53 1.173 1.235 1.98 1.943.813.709 1.73 1.406 2.68 1.93.953.527 1.894.853 2.759.875.849.021 1.778-.276 2.727-.79.943-.512 1.86-1.212 2.67-1.933a25 25 0 0 0 1.977-1.989l.015-.016a.654.654 0 0 0-.007-.875 26 26 0 0 0-1.98-1.943c-.812-.71-1.73-1.407-2.68-1.932-.953-.525-1.894-.853-2.759-.874"/></g></svg>',_o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m12.5 0 5 4.5v15.003h-16V0zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0"/></svg>',bo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.27 7.27 0 0 1 2.703 3.454 7.13 7.13 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.87.87 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.6 5.6 0 0 0 2.492-2.371 5.46 5.46 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.7 5.7 0 0 0 10 4.206 5.7 5.7 0 0 0 6.419 5.46 5.53 5.53 0 0 0 4.46 8.663a5.46 5.46 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.88.88 0 0 1-.614-.25.85.85 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.13 7.13 0 0 1 .199-4.352 7.27 7.27 0 0 1 2.703-3.455A7.5 7.5 0 0 1 10 2.5"/></svg>',wo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 3.778C2 2.796 2.796 2 3.778 2h12.444C17.204 2 18 2.796 18 3.778v12.444c0 .982-.796 1.778-1.778 1.778H3.778A1.78 1.78 0 0 1 2 16.222z"/></svg>',ko='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6M6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',vo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25z"/></svg>',yo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53zm8.147 7.829h2.549q.38 0 .58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393q-.158.162-.48.162h-3.594q-.367 0-.572-.197a.62.62 0 0 1-.205-.463q0-.171.132-.453a1.6 1.6 0 0 1 .288-.444q.65-.654 1.172-1.122t.747-.615q.401-.275.667-.553t.405-.57.139-.57a1.01 1.01 0 0 0-.554-.917 1.2 1.2 0 0 0-.56-.133q-.639 0-1.005.546a2.3 2.3 0 0 0-.164.39 1.6 1.6 0 0 1-.258.488q-.144.17-.423.17a.56.56 0 0 1-.405-.156.57.57 0 0 1-.161-.427q0-.327.151-.683.152-.357.452-.646c.3-.289.454-.349.762-.467a3 3 0 0 1 1.081-.178q.747 0 1.274.228a1.92 1.92 0 0 1 1.004 1.032 1.98 1.98 0 0 1-.156 1.794q-.3.48-.613.754-.312.273-1.048.857-.735.584-1.008.906a3 3 0 0 0-.24.309z"/></svg>',xo='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="m7.184 10.353 3.818-3.819a.8.8 0 0 1 1.132 1.132l-3.82 3.818 3.82 3.818a.802.802 0 0 1-.873 1.306.8.8 0 0 1-.26-.174l-3.817-3.82-3.818 3.82a.8.8 0 0 1-1.305-.26.8.8 0 0 1 .173-.872l3.82-3.818-3.82-3.818a.8.8 0 0 1 1.132-1.132l3.818 3.82M15.68 6.88h2.549q.38 0 .58.153a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393q-.158.162-.48.162h-3.594q-.367 0-.572-.197A.62.62 0 0 1 14 7.34q0-.171.132-.453a1.6 1.6 0 0 1 .288-.444q.65-.654 1.172-1.122t.747-.615q.401-.275.667-.553.266-.277.405-.57.14-.291.139-.57a1.01 1.01 0 0 0-.554-.917 1.2 1.2 0 0 0-.56-.133q-.639 0-1.005.546a2.3 2.3 0 0 0-.164.39 1.6 1.6 0 0 1-.258.488q-.144.17-.423.17a.56.56 0 0 1-.405-.156.57.57 0 0 1-.161-.427q0-.327.151-.683.152-.357.452-.646t.762-.467A3 3 0 0 1 16.466 1q.747 0 1.274.228c.456.2.816.57 1.004 1.032a1.99 1.99 0 0 1-.156 1.794q-.3.48-.613.754-.312.273-1.048.857-.735.583-1.008.906-.131.146-.24.309z"/></svg>',Ao='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5zM2 12h5V8H2zm10-4H8v4h4zM2 2v5h5V2zm0 16h5v-5H2zM13 7h5V2h-5zM8 2v5h4V2z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43zM13 6a1 1 0 0 1 1 1v3.172a2 2 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.98 1.98 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm-1 2H8v4h4z"/></svg>',Co='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1M2 2v16h16V2z" opacity=".6"/><path d="M18 7v1H2V7zm0 5v1H2v-1z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1m-2 1H8v4h4zm0 6H8v4h4zm0 6H8v4h4z"/></svg>',Eo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1M2 2v16h16V2z" opacity=".6"/><path d="M7 2h1v16H7zm5 0h1v7h-1zm6 5v1H2V7zM8 12v1H2v-1z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1m1 2v9h10V9z"/></svg>',So='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3 19a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8.022a6.5 6.5 0 0 0-1.5-.709V2a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h6.313c.173.534.412 1.037.709 1.5z"/><path d="M9.174 14a6.5 6.5 0 0 0-.155 1H6v-1zm.848-2a6.5 6.5 0 0 0-.524 1H4v-1zm2.012-2c-.448.283-.86.62-1.224 1H6v-1zM12 4v1H4V4zm2 3V6H6v1zm1 2V8H7v1z"/><path d="M20 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0M15.5 13a.5.5 0 0 0-.5.5V15h-1.5a.5.5 0 0 0 0 1H15v1.5a.5.5 0 0 0 1 0V16h1.5a.5.5 0 0 0 0-1H16v-1.5a.5.5 0 0 0-.5-.5" clip-rule="evenodd"/></svg>',To='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2zm4 6H8v4h4z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2 2 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2z"/></svg>',Po='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1M2 2v16h16V2z" opacity=".6"/><path d="M7 2h1v16H7zm5 0h1v16h-1z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1m1 2v4h4V8zm6 0v4h4V8zm6 0v4h4V8z"/></svg>',Mo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3 5.5v3h4v-3zm0 4v3h4v-3zm0 4v3h4v-3zm5 3h4v-3H8zm5 0h4v-3h-4zm4-4v-3h-4v3zm0-4v-3h-4v3zm1.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.5zm-6.5-4v-3H8v3zm0-4v-3H8v3z"/></svg>',Vo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M1.5 4.121C1.5 2.95 2.426 2 3.568 2h12.864c1.142 0 2.068.95 2.068 2.121V16.38c0 1.171-.926 2.121-2.068 2.121H3.568c-1.142 0-2.068-.95-2.068-2.121zm2.068-.707a.7.7 0 0 0-.69.707V6.38h14.244V4.12a.7.7 0 0 0-.69-.707zm13.554 4.38h-4.968v3.939h4.968zm0 5.353h-4.968v3.939h4.278c.381 0 .69-.317.69-.707zm-6.347 3.939V7.794H2.878v8.585c0 .39.309.707.69.707z"/></svg>',Oo='<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 45 45">\n <path fill="#F0F0F0" d="M2 0h41s2 0 2 2v41s0 2 -2 2h-41s-2 0 -2 -2v-41s0 -2 2 -2" />\n <path fill="#D5D5D5" d="M11 10h10s1 0 1 1v24s0 1 -1 1h-10s-1 0 -1 -1v-24s0 -1 1 -1" />\n <path fill="#D5D5D5" d="M25 10h10s1 0 1 1v10s0 1 -1 1h-10s-1 0 -1 -1v-10s0 -1 1 -1" />\n <path fill="#D5D5D5" d="M25 24h10s1 0 1 1v10s0 1 -1 1h-10s-1 0 -1 -1v-10s0 -1 1 -1" />\n</svg>\n',Io='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M8 0H3a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2M2.5 2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5zM13 0h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2m0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5zm0 8.5h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2m0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5z" clip-rule="evenodd"/></svg>',Ro='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1zm10.453 2.61a1.89 1.89 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.9 1.9 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598M7.463 8.163a.6.6 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.63.63 0 0 0-.417-.185m6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.62.62 0 0 0-.42-.165M.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.91.91 0 0 0-.912-.912zM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516zm4.947 0h1.801v4.3h2.7v1.4h-4.5zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9zm-8.517 1.457-.614 2.059h1.262z"/></svg>';var jo=o("../ckeditor5-icons/theme/icons/text.svg");const zo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M14.5 10.001a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0m-6 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0m-6 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0"/></svg>',Bo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m5.977 2 .708 1.914A2.06 2.06 0 0 0 7.902 5.13l1.914.708-1.914.709a2.06 2.06 0 0 0-1.217 1.216l-.708 1.914-.708-1.914a2.06 2.06 0 0 0-1.216-1.216l-1.914-.709 1.914-.708a2.06 2.06 0 0 0 1.216-1.216zm6.87 3.417 1.135 3.067a3.3 3.3 0 0 0 1.95 1.95L19 11.57l-3.067 1.135a3.3 3.3 0 0 0-1.95 1.95l-1.136 3.067-1.135-3.067a3.3 3.3 0 0 0-1.95-1.95l-3.068-1.136 3.068-1.135a3.3 3.3 0 0 0 1.95-1.95zm-8.418 8.276-.534-1.443-.534 1.443c-.158.425-.493.76-.918.918L1 15.145l1.443.534c.425.157.76.492.918.917l.534 1.443.534-1.443a1.55 1.55 0 0 1 .917-.917l1.443-.534-1.443-.534a1.55 1.55 0 0 1-.917-.918"/></svg>';var No=o("../ckeditor5-icons/theme/icons/three-vertical-dots.svg");const Lo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M6.05 8.609v8.38c0 1.11.903 2.01 2.017 2.01h7.553c.896 0 1.684-.588 1.936-1.445l2.361-8.041a2.012 2.012 0 0 0-1.935-2.575h-4.353l.788-2.618a2.01 2.01 0 0 0-1.294-2.485l-.698-.232a2.02 2.02 0 0 0-2.269.725l-3.72 5.098c-.25.344-.386.758-.386 1.183m1.513 8.38V8.61c0-.107.034-.21.096-.296l3.72-5.099a.505.505 0 0 1 .567-.18l.699.231a.5.5 0 0 1 .323.621l-1.177 3.912a.503.503 0 0 0 .483.647h5.708c.336 0 .578.322.484.644l-2.362 8.041a.504.504 0 0 1-.484.362H8.067a.503.503 0 0 1-.504-.503M3.328 6.937H1.714C.767 6.937 0 7.703 0 8.647v8.644C0 18.234.767 19 1.714 19h1.614c.946 0 1.714-.766 1.714-1.71V8.647c0-.943-.768-1.709-1.714-1.709m-1.815 1.71c0-.112.09-.202.201-.202h1.614c.111 0 .201.09.201.201v8.645a.2.2 0 0 1-.201.2H1.714a.2.2 0 0 1-.201-.2z" clip-rule="evenodd"/></svg>',Do='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M13.95 11.89V3.51c0-1.11-.903-2.01-2.017-2.01H4.38c-.896 0-1.684.589-1.936 1.446l-2.361 8.04a2.012 2.012 0 0 0 1.935 2.576h4.353l-.788 2.618a2.01 2.01 0 0 0 1.294 2.485l.698.232a2.02 2.02 0 0 0 2.269-.725l3.72-5.099c.25-.343.386-.757.386-1.182m-1.513-8.38v8.38c0 .107-.034.21-.096.296l-3.72 5.1a.505.505 0 0 1-.567.18l-.699-.232a.5.5 0 0 1-.323-.62L8.209 12.7a.503.503 0 0 0-.483-.647H2.018a.503.503 0 0 1-.484-.643l2.362-8.042a.504.504 0 0 1 .484-.361h7.553c.278 0 .504.225.504.502m4.235 10.053h1.614c.947 0 1.714-.765 1.714-1.709V3.21c0-.944-.767-1.709-1.714-1.709h-1.614c-.946 0-1.714.765-1.714 1.709v8.644c0 .944.768 1.709 1.714 1.709m1.815-1.709c0 .111-.09.201-.201.201h-1.614a.2.2 0 0 1-.201-.2V3.208c0-.111.09-.201.201-.201h1.614a.2.2 0 0 1 .201.2z" clip-rule="evenodd"/></svg>',Fo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m2.315 14.705 2.224-2.24a.69.69 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.7.7 0 0 1-.112.089.65.65 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0zm5.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-.75M2.329 5.745l2.21-2.226a.69.69 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.7.7 0 0 1-.496.196.64.64 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-.75"/></svg>',Ho='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 2.28C2 1.574 2.574 1 3.272 1l11.456.001c.703 0 1.272.573 1.272 1.28v8.453l-1.5 1.464V2.465c0-.003-11-.005-11-.005V16.5h2.356q.188.34.462.62l.868.88-3.914-.001A1.274 1.274 0 0 1 2 16.719z"/><path d="M14.525 18H9.293l-1.48-1.5h3.75l.332.336.344-.336H14.5v-2.207L16 12.83v3.73zm-4.819-5.362a2.84 2.84 0 0 0-1.38-.36 2.8 2.8 0 0 0-1.602.5H6.18a.635.635 0 0 1-.633-.639.64.64 0 0 1 .633-.639h3.133a.639.639 0 0 1 .393 1.138m-4.16-6.484c0-.353.292-.64.636-.64h5.682a.637.637 0 0 1 .449 1.09.64.64 0 0 1-.449.188H6.182a.636.636 0 0 1-.635-.639zm0 2.984c0-.352.292-.638.636-.638h5.682a.635.635 0 0 1 .45 1.088.64.64 0 0 1-.45.189H6.182a.636.636 0 0 1-.636-.639"/><path d="m13.117 19.374 6.192-6.044a1.316 1.316 0 0 0 0-1.876 1.354 1.354 0 0 0-1.899 0l-5.515 5.382-2.63-2.666a1.3 1.3 0 0 0-.938-.393 1.32 1.32 0 0 0-.939.394 1.354 1.354 0 0 0 0 1.898l3.49 3.538a1.32 1.32 0 0 0 1.447.29 2.7 2.7 0 0 0 .792-.523" style="fill:#1fb11f"/></svg>',qo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2 2.28C2 1.574 2.574 1 3.272 1l11.456.001c.703 0 1.272.573 1.272 1.28v8.106l-.889.899-.611-.619V2.465c0-.003-11-.005-11-.005V16.5h6.458l-.136.138-.003.003c-.372.378-.628.85-.745 1.359l-5.802-.001A1.274 1.274 0 0 1 2 16.719zM14.338 18h-3.676q.09-.169.227-.308l1.178-1.192H14.5v-3.699l.61.618.89-.899v4.199c0 .383-.168.726-.431.96l-.457-.462z"/><path d="M9.043 11.5a2.85 2.85 0 0 0 .066 1.278H6.18a.635.635 0 0 1-.632-.639.64.64 0 0 1 .633-.639h2.863Zm3.45-2.267a2.82 2.82 0 0 0-2.434.544H6.182a.636.636 0 0 1-.636-.639c0-.352.292-.638.636-.638h5.682a.635.635 0 0 1 .629.733M5.546 6.154c0-.353.292-.64.636-.64h5.682a.637.637 0 0 1 .449 1.09.64.64 0 0 1-.449.188H6.182a.636.636 0 0 1-.635-.639z"/><path d="m15.11 13.42 2.348-2.374a1.32 1.32 0 0 1 1.877 0 1.354 1.354 0 0 1 0 1.9l-2.346 2.372 2.346 2.374a1.354 1.354 0 0 1 0 1.898 1.316 1.316 0 0 1-1.877 0l-2.346-2.373-2.346 2.373a1.316 1.316 0 0 1-1.877 0 1.354 1.354 0 0 1 0-1.898l2.346-2.374-2.346-2.373a1.354 1.354 0 0 1 0-1.899 1.32 1.32 0 0 1 1.877 0l2.346 2.374z" style="fill:#da2020"/></svg>',Wo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M6.182 5.514a.643.643 0 0 0-.636.64v-.001a.636.636 0 0 0 .636.639h5.682a.64.64 0 0 0 .636-.638.637.637 0 0 0-.636-.64zm0 2.986a.642.642 0 0 0-.588.882.64.64 0 0 0 .588.395h5.682a.64.64 0 0 0 .636-.639.635.635 0 0 0-.636-.638zm-.002 3a.64.64 0 0 0 0 1.278h3.133a.64.64 0 0 0 0-1.278zm5.592 6.808.154-.23q-.292-.148-.328-.28-.037-.135.076-.551.093-.248.11-.393a3 3 0 0 0 0-.479q-.206-.614-.186-.83.02-.218.313-.57l4.465-6.207q.534-.9 2.11.118 1.576 1.021 1.177 1.772l-3.876 6.833q-.157.407-.347.515c-.128.07-.4.119-.813.139a3 3 0 0 0-.487.21q-.191.135-.347.31-.29.261-.416.262-.095 0-.346-.15l-.204.27zm-.184.274 1.039.727-.26.34h-1.496z"/><path d="M3.272 1A1.28 1.28 0 0 0 2 2.28v14.439a1.276 1.276 0 0 0 1.272 1.28h6.838a2.1 2.1 0 0 1 .003-.61 4 4 0 0 1 .156-.67l.025-.069v-.008l-.042-.142H3.5V2.46s11 .002 11 .005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28zM16 9.29l-1.5 2.085V16.5h-2.708q.007.177-.007.354l-.013.075-.001.005a3 3 0 0 1-.097.312q-.04.152-.062.266a.7.7 0 0 0-.014.287.25.25 0 0 0 .068.105 1 1 0 0 0 .088.074l.017.011.016.01h.175L14.73 18c.697 0 1.271-.573 1.271-1.281v-7.43Z" clip-rule="evenodd"/></svg>',$o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8s3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4"/></svg>';var Uo=o("../ckeditor5-icons/theme/icons/undo.svg");const Ko='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.8.8 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.7.7 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294zm5.494-5.335a.8.8 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.8.8 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955m-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184m4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06z"/></svg>',Yo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037H5.06l5.058-5.078L6.617 9.15a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v4.354a3.5 3.5 0 0 1 1.5.049V2.1c0-.63-.547-1.1-1.2-1.1zm11.713 2.803a2.147 2.147 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.642-3.11 2.13 2.13 0 0 0-1.873-.978M8.089 17.635v2.388h2.389l7.046-7.046-2.39-2.39zm11.282-6.507a.64.64 0 0 0 .139-.692.6.6 0 0 0-.139-.205l-1.49-1.488a.63.63 0 0 0-.899 0l-1.166 1.163 2.39 2.39z"/></svg>',Go='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21"><path d="M1.801 1.4C1.138 1.4.6 1.87.6 2.5v14.363c0 .64.534 1.037 1.186 1.037h9.494a3 3 0 0 1-.414-.287A3 3 0 0 1 9.81 15.59v-.007a3 3 0 0 1 .693-2.186l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L2.1 14V2.9h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.5c0-.63-.547-1.1-1.2-1.1zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.13 2.13 0 0 0-1.875-.978"/><path d="M16.122 19.5a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 0 0 1.211-1.015l-3.351-3.995a.79.79 0 0 0-.996-.179.8.8 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79"/><path d="M16.122 19.5a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 0 0 1.211-1.015l-3.351-3.995a.79.79 0 0 0-.996-.179.8.8 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79"/></svg>',Jo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.748 2a4.62 4.62 0 0 0-3.174 1.362L8.02 4.915a.783.783 0 0 0 .002 1.11.786.786 0 0 0 1.11 0l1.55-1.553c1.185-1.185 3.024-1.195 4.116-.104l.851.854c1.092 1.091 1.083 2.927-.101 4.11l-1.555 1.554a.787.787 0 0 0 .557 1.34.78.78 0 0 0 .553-.23l1.554-1.552c1.758-1.757 1.838-4.597.102-6.332l-.854-.853A4.3 4.3 0 0 0 12.748 2m-.488 4.973a.78.78 0 0 0-.553.23L7.2 11.71l-.004.002a.784.784 0 0 0 1.11 1.107l.003-.002 4.504-4.505a.785.785 0 0 0-.554-1.339Zm-6.79.815a.8.8 0 0 0-.554.234L3.36 9.573c-1.757 1.758-1.836 4.597-.101 6.332l.853.852c1.736 1.734 4.572 1.655 6.33-.102l1.547-1.547.006-.008a.78.78 0 0 0 .244-.554.78.78 0 0 0-.799-.797.77.77 0 0 0-.56.248l-1.545 1.547c-1.184 1.184-3.021 1.195-4.113.104l-.854-.854c-1.091-1.091-1.083-2.927.102-4.111l1.552-1.555a.8.8 0 0 0 .233-.555.8.8 0 0 0-.06-.3.8.8 0 0 0-.173-.253s-.104-.14-.183-.185c-.051-.03-.133-.047-.37-.047Z"/></svg>',Zo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 10"><path d="M5.5 5C8.538 5 11 7.015 11 9.5q0 .255-.034.5H.034A4 4 0 0 1 0 9.5C0 7.015 2.462 5 5.5 5m0-5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5"/></svg>',Xo='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.273 17.818 2 18l.182-1.273 4.363-4.363 1.091 1.09zM18 7.818c-.897.897-1.997 1.284-2.847.732l-2.971 3.632c1.205 1.205.841 2.795-.364 4l-8-8c1.205-1.205 2.795-1.569 4-.364l3.632-2.972c-.552-.85-.165-1.949.732-2.846z"/></svg>',Qo='<svg width="12" height="12" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM5.27988 2.40003H6.71988V6.72003H5.27988V2.40003ZM6.72009 8.16003H5.28009V9.60003H6.72009V8.16003Z" fill="#DB3700"/>\n</svg>\n',es='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M20 10.001c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10m-9.662 8.493a9 9 0 0 1-.676 0c-.838-1.316-1.492-2.931-1.877-4.743h4.43c-.385 1.812-1.039 3.427-1.877 4.743m1.815-.268c.671-1.327 1.184-2.84 1.497-4.475h3.98a8.52 8.52 0 0 1-5.477 4.475m6.046-5.975a8.5 8.5 0 0 0 .301-2.25 8.5 8.5 0 0 0-.301-2.25h-4.323a20.3 20.3 0 0 1 0 4.5zm-.569-6a8.52 8.52 0 0 0-5.477-4.475c.671 1.327 1.184 2.84 1.497 4.475zm-7.292-4.743c.838 1.316 1.492 2.93 1.877 4.743h-4.43c.385-1.812 1.039-3.427 1.877-4.743a9 9 0 0 1 .676 0m-2.49.268c-.672 1.327-1.185 2.84-1.498 4.475H2.37a8.52 8.52 0 0 1 5.477-4.475M1.8 7.751a8.5 8.5 0 0 0-.301 2.25c0 .779.105 1.533.301 2.25h4.323a20.3 20.3 0 0 1 0-4.5zm.569 6a8.52 8.52 0 0 0 5.477 4.475c-.671-1.327-1.184-2.84-1.497-4.475zm10.095-1.5h-4.93a18.5 18.5 0 0 1 0-4.5h4.93a18.5 18.5 0 0 1 0 4.5" clip-rule="evenodd"/></svg>'},"./src/paragraph.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{InsertParagraphCommand:()=>a,Paragraph:()=>c,ParagraphButtonUI:()=>u,ParagraphCommand:()=>n});var s=o("../ckeditor5-core/src/index.ts"),i=o("../ckeditor5-utils/src/index.ts");class n extends s.uB{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){const e=this.editor.model,t=e.document,o=(0,i.$1)(t.selection.getSelectedBlocks());this.value=!!o&&o.is("element","paragraph"),this.isEnabled=!!o&&r(o,e.schema)}execute(e={}){const t=this.editor.model,o=t.document,s=e.selection||o.selection;t.canEditAt(s)&&t.change(e=>{const o=s.getSelectedBlocks();for(const s of o)!s.is("element","paragraph")&&r(s,t.schema)&&e.rename(s,"paragraph")})}}function r(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class a extends s.uB{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){const t=this.editor.model,o=e.attributes;let s=e.position;return t.canEditAt(s)?t.change(e=>{if(s=this._findPositionToInsertParagraph(s,e),!s)return null;const i=e.createElement("paragraph");return o&&t.schema.setAllowedAttributes(i,o,e),t.insertContent(i,s),e.setSelection(i,"in"),e.createPositionAt(i,0)}):null}_findPositionToInsertParagraph(e,t){const o=this.editor.model;if(o.schema.checkChild(e,"paragraph"))return e;const s=o.schema.findAllowedParent(e,"paragraph");if(!s)return null;const i=e.parent,n=o.schema.checkChild(i,"$text");return i.isEmpty||n&&e.isAtEnd?o.createPositionAfter(i):!i.isEmpty&&n&&e.isAtStart?o.createPositionBefore(i):t.split(e,s).position}}class c extends s.k_{static get pluginName(){return"Paragraph"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new n(e)),e.commands.add("insertParagraph",new a(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>c.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}static paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])}var l=o("../ckeditor5-ui/src/button/buttonview.js"),d=o("../ckeditor5-icons/theme/icons/paragraph.svg");class u extends s.k_{static get requires(){return[c]}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("paragraph",o=>{const s=new l._(o),i=e.commands.get("paragraph");return s.label=t("Paragraph"),s.icon=d.A,s.tooltip=!0,s.isToggleable=!0,s.bind("isEnabled").to(i),s.bind("isOn").to(i,"value"),s.on("execute",()=>{e.execute("paragraph")}),s})}}},"./src/select-all.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{SelectAll:()=>p,SelectAllCommand:()=>n,SelectAllEditing:()=>c,SelectAllUI:()=>h});var s=o("../ckeditor5-core/src/index.ts"),i=o("../ckeditor5-utils/src/index.ts");class n extends s.uB{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let o=e.schema.getLimitElement(t);if(t.containsEntireContent(o)||!r(e.schema,o))do{if(o=o.parent,!o)return}while(!r(e.schema,o));e.change(e=>{e.setSelection(o,"in")})}}function r(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const a=(0,i.ZX)("Ctrl+A");class c extends s.k_{static get pluginName(){return"SelectAllEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t,o=e.editing.view.document;e.commands.add("selectAll",new n(e)),this.listenTo(o,"keydown",(t,o)=>{(0,i.QC)(o)===a&&(e.execute("selectAll"),o.preventDefault())}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Select all"),keystroke:"CTRL+A"}]})}}var l=o("../ckeditor5-icons/theme/icons/select-all.svg"),d=o("../ckeditor5-ui/src/button/buttonview.js"),u=o("../ckeditor5-ui/src/menubar/menubarmenulistitembuttonview.js");class h extends s.k_{static get pluginName(){return"SelectAllUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",()=>{const e=this._createButton(d._);return e.set({tooltip:!0}),e}),e.ui.componentFactory.add("menuBar:selectAll",()=>this._createButton(u.k))}_createButton(e){const t=this.editor,o=t.locale,s=t.commands.get("selectAll"),i=new e(t.locale),n=o.t;return i.set({label:n("Select all"),icon:l.A,keystroke:"Ctrl+A"}),i.bind("isEnabled").to(s,"isEnabled"),this.listenTo(i,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),i}}class p extends s.k_{static get requires(){return[c,h]}static get pluginName(){return"SelectAll"}static get isOfficialPlugin(){return!0}}},"./src/typing.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Delete:()=>s.ep,DeleteCommand:()=>s.Rj,Input:()=>s.pd,InsertTextCommand:()=>s.Ki,TextTransformation:()=>s.De,TextWatcher:()=>s.qV,TwoStepCaretMovement:()=>s.Vp,Typing:()=>s.IG,TypingChangeBuffer:()=>s.i6,_DeleteObserver:()=>s.BP,findAttributeRange:()=>s.Py,findAttributeRangeBound:()=>s.lO,getLastTextLine:()=>s.ex,inlineHighlight:()=>s.Il});var s=o("../ckeditor5-typing/src/index.ts")},"./src/ui.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{AccessibilityHelp:()=>X,AccessibilityHelpContentView:()=>S,AriaLiveAnnouncer:()=>_,AriaLiveAnnouncerPoliteness:()=>f,AriaLiveAnnouncerRegionView:()=>w,AriaLiveAnnouncerView:()=>b,AutocompleteView:()=>Bs,Badge:()=>ie,BalloonPanelView:()=>oe.J,BalloonToolbar:()=>ti,BlockButtonView:()=>ni,BlockToolbar:()=>ai,BodyCollection:()=>ee,BoxedEditorUIView:()=>ns,ButtonLabelView:()=>ce.e,ButtonLabelWithHighlightView:()=>Ws,ButtonView:()=>V._,CollapsibleView:()=>be,ColorGridView:()=>Ee,ColorGridsFragmentView:()=>to,ColorPickerFragmentView:()=>so,ColorPickerInputRowView:()=>Jt,ColorPickerView:()=>Ut,ColorSelectorView:()=>ro,ColorTileView:()=>xe,ComponentFactory:()=>ao,ContextualBalloon:()=>ys.p,CssTransitionDisablerMixin:()=>v,DefaultMenuBarItems:()=>Do,Dialog:()=>Y,DialogActionsView:()=>F,DialogContentView:()=>H,DialogView:()=>K,DialogViewPosition:()=>$,DocumentColorCollection:()=>Xt,DraggableViewMixin:()=>x,DropdownButtonView:()=>ho.l,DropdownMenuButtonView:()=>ko.q,DropdownMenuListItemButtonView:()=>wo.n,DropdownMenuListItemView:()=>bo.p,DropdownMenuListView:()=>_o.M,DropdownMenuNestedMenuPanelView:()=>vo.E,DropdownMenuNestedMenuView:()=>go.E,DropdownMenuPanelPositioningFunctions:()=>mo.X,DropdownMenuRootListView:()=>fo.A,DropdownPanelView:()=>uo.V,DropdownView:()=>lo.B,EditableUIView:()=>rs,EditorUI:()=>es,EditorUIView:()=>is,EvaluationBadge:()=>Po,FileDialogButtonView:()=>ue,FileDialogListItemButtonView:()=>he,FileDialogViewMixin:()=>pe,FocusCycler:()=>N.H,FormHeaderView:()=>B,FormRowView:()=>ds,HighlightedTextView:()=>qs,IconView:()=>R.L,IframeView:()=>us,InlineEditableUIView:()=>as,InputBase:()=>et,InputNumberView:()=>nt,InputTextView:()=>it,InputView:()=>st,ItemsView:()=>Gs.AM,LabelView:()=>E.y,LabelWithHighlightView:()=>$s,LabeledFieldView:()=>Qe,LabeledInputView:()=>ms,ListItemButtonView:()=>de.$,ListItemGroupView:()=>gs.m,ListItemView:()=>Oo.B,ListSeparatorView:()=>fs.J,ListView:()=>_s.u,MenuBarMenuButtonView:()=>ui,MenuBarMenuListItemButtonView:()=>G.k,MenuBarMenuListItemFileDialogButtonView:()=>ki,MenuBarMenuListItemView:()=>jo,MenuBarMenuListView:()=>bi,MenuBarMenuPanelView:()=>mi,MenuBarMenuView:()=>_i,MenuBarView:()=>Ai,NESTED_TOOLBAR_ICONS:()=>Gs.NV,Notification:()=>ws,PoweredBy:()=>re,SearchInfoView:()=>Ps,SearchResultsView:()=>Ms,SearchTextView:()=>Rs,SliderView:()=>Yt,SpinnerView:()=>Ys,SplitButtonView:()=>po.A,StickyPanelView:()=>Es,SwitchButtonView:()=>le.W,Template:()=>Q.Bj,TextareaView:()=>ct,ToolbarLineBreakView:()=>Js.C,ToolbarSeparatorView:()=>Zs.I,ToolbarView:()=>Gs.X3,TooltipManager:()=>Eo,UIModel:()=>vs,View:()=>s.S,ViewCollection:()=>I.s,ViewModel:()=>vs,_CheckIconHolderView:()=>de.F,_CollapsibleView:()=>be,_ContextualBalloonRotatorView:()=>ys.d,_DropdownMenuBehaviors:()=>Ei.U,_DropdownRootMenuBehaviors:()=>Ei.y,_MenuBarBehaviors:()=>Bo,_MenuBarMenuBehaviors:()=>No,_MenuBarMenuViewPanelPositioningFunctions:()=>Lo,_SearchInfoView:()=>Ps,_SearchTextQueryView:()=>Ts,_TemplateBinding:()=>Q.C,_TemplateIfBinding:()=>Q.LT,_TemplateToBinding:()=>Q.df,_convertColor:()=>Ue,_convertColorToHex:()=>Ke,_preventUiViewDefault:()=>Ci.w,_processMenuBarConfig:()=>Ho,_registerCustomElement:()=>Ye,_tryNormalizeHexColor:()=>Zt,addKeyboardHandlingForGrid:()=>C,addListToDropdown:()=>dt.O,addMenuToDropdown:()=>dt.H2,addToolbarToDropdown:()=>dt.fM,clickOutsideHandler:()=>k.w,createDropdown:()=>dt.yu,createLabeledDropdown:()=>mt,createLabeledInputNumber:()=>ht,createLabeledInputText:()=>ut,createLabeledTextarea:()=>pt,filterGroupAndItemNames:()=>bs,focusChildOnDropdownOpen:()=>dt.Zn,getLocalizedColorOptions:()=>we,isFocusable:()=>N.tp,isViewWithFocusCycler:()=>N.eG,normalizeColorOptions:()=>ke,normalizeMenuBarConfig:()=>Fo,normalizeSingleColorDefinition:()=>ve,normalizeToolbarConfig:()=>Xs.f,submitHandler:()=>A});var s=o("../ckeditor5-ui/src/view.js"),i=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),n=o.n(i),r=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js"),a=o.n(r),c=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),l=o.n(c),d=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/setAttributesWithAttributesAndNonce.js"),u=o.n(d),h=o("../../../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.102.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),p=o.n(h),m=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"),g={attributes:{"data-cke":!0}};g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p();n()(m.A,g);m.A&&m.A.locals&&m.A.locals;const f={POLITE:"polite",ASSERTIVE:"assertive"};class _{editor;view;constructor(e){this.editor=e,e.once("ready",()=>{for(const e of Object.values(f))this.announce("",e)})}announce(e,t=f.POLITE){const o=this.editor;if(!o.ui.view)return;this.view||(this.view=new b(o.locale),o.ui.view.body.add(this.view));const{politeness:s,isUnsafeHTML:i}="string"==typeof t?{politeness:t}:t;let n=this.view.regionViews.find(e=>e.politeness===s);n||(n=new w(o,s),this.view.regionViews.add(n)),n.announce({announcement:e,isUnsafeHTML:i})}}class b extends s.S{regionViews;constructor(e){super(e),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class w extends s.S{politeness;_domConverter;_pruneAnnouncementsInterval;constructor(e,t){super(e.locale),this.setTemplate({tag:"div",attributes:{"aria-live":t,"aria-relevant":"additions"},children:[{tag:"ul",attributes:{class:["ck","ck-aria-live-region-list"]}}]}),e.on("destroy",()=>{null!==this._pruneAnnouncementsInterval&&(clearInterval(this._pruneAnnouncementsInterval),this._pruneAnnouncementsInterval=null)}),this.politeness=t,this._domConverter=e.data.htmlProcessor.domConverter,this._pruneAnnouncementsInterval=setInterval(()=>{this.element&&this._listElement.firstChild&&this._listElement.firstChild.remove()},5e3)}announce({announcement:e,isUnsafeHTML:t}){if(!e.trim().length)return;const o=document.createElement("li");t?this._domConverter.setContentOf(o,e):o.innerText=e,this._listElement.appendChild(o)}get _listElement(){return this.element.querySelector("ul")}}var k=o("../ckeditor5-ui/src/bindings/clickoutsidehandler.js");function v(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.template&&this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}var y=o("../ckeditor5-utils/src/index.ts");function x(e){return class extends e{_onDragBound=this._onDrag.bind(this);_onDragEndBound=this._onDragEnd.bind(this);_lastDraggingCoordinates={x:0,y:0};constructor(...e){super(...e),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(y.Sf.document,"mouseup",this._onDragEndBound),this.listenTo(y.Sf.document,"touchend",this._onDragEndBound),this.listenTo(y.Sf.document,"mousemove",this._onDragBound),this.listenTo(y.Sf.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(y.Sf.document,"mouseup",this._onDragEndBound),this.stopListening(y.Sf.document,"touchend",this._onDragEndBound),this.stopListening(y.Sf.document,"mousemove",this._onDragBound),this.stopListening(y.Sf.document,"touchmove",this._onDragBound)}_onDragStart(e,t){if(!this._isHandleElementPressed(t))return;this._attachDragListeners();let o=0,s=0;t instanceof MouseEvent?(o=t.clientX,s=t.clientY):(o=t.touches[0].clientX,s=t.touches[0].clientY),this._lastDraggingCoordinates={x:o,y:s},this.isDragging=!0}_onDrag(e,t){if(!this.isDragging)return void this._detachDragListeners();let o=0,s=0;t instanceof MouseEvent?(o=t.clientX,s=t.clientY):(o=t.touches[0].clientX,s=t.touches[0].clientY),t.preventDefault(),this.fire("drag",{deltaX:Math.round(o-this._lastDraggingCoordinates.x),deltaY:Math.round(s-this._lastDraggingCoordinates.y)}),this._lastDraggingCoordinates={x:o,y:s}}_onDragEnd(){this._detachDragListeners(),this.isDragging=!1}_isHandleElementPressed(e){return!!this.dragHandleElement&&(this.dragHandleElement===e.target||e.target instanceof HTMLElement&&this.dragHandleElement.contains(e.target))}}}function A({view:e}){e.listenTo(e.element,"submit",(t,o)=>{o.preventDefault(),e.fire("submit")},{useCapture:!0})}function C({keystrokeHandler:e,focusTracker:t,gridItems:o,numberOfColumns:s,uiLanguageDirection:i}){const n="number"==typeof s?()=>s:s;function r(e){return s=>{const i=o.find(e=>e.element===t.focusedElement),n=o.getIndex(i),r=e(n,o);o.get(r).focus(),s.stopPropagation(),s.preventDefault()}}function a(e,t){return e===t-1?0:e+1}function c(e,t){return 0===e?t-1:e-1}e.set("arrowright",r((e,t)=>"rtl"===i?c(e,t.length):a(e,t.length))),e.set("arrowleft",r((e,t)=>"rtl"===i?a(e,t.length):c(e,t.length))),e.set("arrowup",r((e,t)=>{let o=e-n();return o<0&&(o=e+n()*Math.floor(t.length/n()),o>t.length-1&&(o-=n())),o})),e.set("arrowdown",r((e,t)=>{let o=e+n();return o>t.length-1&&(o=e%n()),o}))}var E=o("../ckeditor5-ui/src/label/labelview.js");class S extends s.S{constructor(e,t){super(e);const o=e.t,s=new E.y;s.text=o("Help Contents. To close this dialog press ESC."),this.setTemplate({tag:"div",attributes:{class:["ck","ck-accessibility-help-dialog__content"],"aria-labelledby":s.id,role:"document",tabindex:-1},children:[(0,y.n)(document,"p",{},o("Below, you can find a list of keyboard shortcuts that can be used in the editor.")),...this._createCategories(Array.from(t.values())),s]})}focus(){this.element.focus()}_createCategories(e){return e.map(e=>{const t=[(0,y.n)(document,"h3",{},e.label),...Array.from(e.groups.values()).map(e=>this._createGroup(e)).flat()];return e.description&&t.splice(1,0,(0,y.n)(document,"p",{},e.description)),(0,y.n)(document,"section",{},t)})}_createGroup(e){const t=e.keystrokes.sort((e,t)=>e.label.localeCompare(t.label)).map(e=>this._createGroupRow(e)).flat(),o=[(0,y.n)(document,"dl",{},t)];return e.label&&o.unshift((0,y.n)(document,"h4",{},e.label)),o}_createGroupRow(e){const t=this.locale.t,o=(0,y.n)(document,"dt"),s=(0,y.n)(document,"dd"),i=function(e){if("string"==typeof e)return[[e]];if("string"==typeof e[0])return[e];return e}(e.keystroke),n=[];for(const e of i)n.push(e.map(T).join(""));return o.innerHTML=e.label,s.innerHTML=n.join(", ")+(e.mayRequireFn&&y._K.isMac?` ${t("(may require <kbd>Fn</kbd>)")}`:""),[o,s]}}function T(e){return(0,y.YA)(e).split("+").map(e=>`<kbd>${e}</kbd>`).join("+")}var P=o("../ckeditor5-core/src/index.ts"),M=o("../ckeditor5-icons/theme/icons/accessibility.svg"),V=o("../ckeditor5-ui/src/button/buttonview.js"),O=o("../ckeditor5-icons/theme/icons/cancel.svg"),I=o("../ckeditor5-ui/src/viewcollection.js"),R=o("../ckeditor5-ui/src/icon/iconview.js"),j=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/formheader/formheader.css"),z={attributes:{"data-cke":!0}};z.setAttributes=u(),z.insert=l().bind(null,"head"),z.domAPI=a(),z.insertStyleElement=p();n()(j.A,z);j.A&&j.A.locals&&j.A.locals;class B extends s.S{children;iconView;constructor(e,t={}){super(e);const o=this.bindTemplate;this.set("label",t.label||""),this.set("class",t.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",o.to("class")]},children:this.children}),t.icon&&(this.iconView=new R.L,this.iconView.content=t.icon,this.children.add(this.iconView));const i=new s.S(e);i.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"],role:"presentation"},children:[{text:o.to("label")}]}),this.children.add(i)}}var N=o("../ckeditor5-ui/src/focuscycler.js"),L=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dialog/dialogactions.css"),D={attributes:{"data-cke":!0}};D.setAttributes=u(),D.insert=l().bind(null,"head"),D.domAPI=a(),D.insertStyleElement=p();n()(L.A,D);L.A&&L.A.locals&&L.A.locals;class F extends s.S{children;keystrokes;focusCycler;_focusTracker;_focusables;constructor(e){super(e),this.children=this.createCollection(),this.keystrokes=new y.EP,this._focusTracker=new y.$x,this._focusables=new I.s,this.focusCycler=new N.H({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 V._(this.locale);let o;for(o in e.on("execute",()=>t.onExecute()),t.onCreate&&t.onCreate(e),t)"onExecute"!=o&&"onCreate"!=o&&e.set(o,t[o]);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 H extends s.S{children;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 q=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/dialog/dialog.css"),W={attributes:{"data-cke":!0}};W.setAttributes=u(),W.insert=l().bind(null,"head"),W.domAPI=a(),W.insertStyleElement=p();n()(q.A,W);q.A&&q.A.locals&&q.A.locals;const $={SCREEN_CENTER:"screen-center",EDITOR_CENTER:"editor-center",EDITOR_TOP_SIDE:"editor-top-side",EDITOR_TOP_CENTER:"editor-top-center",EDITOR_BOTTOM_CENTER:"editor-bottom-center",EDITOR_ABOVE_CENTER:"editor-above-center",EDITOR_BELOW_CENTER:"editor-below-center"},U=(0,y.To)("px");class K extends(x(s.S)){parts;headerView;closeButtonView;actionsView;static defaultOffset=15;contentView;keystrokes;focusTracker;wasMoved=!1;_getCurrentDomRoot;_getViewportOffset;_focusables;_focusCycler;constructor(e,{getCurrentDomRoot:t,getViewportOffset:o,keystrokeHandlerOptions:s}){super(e);const i=this.bindTemplate,n=e.t;this.set("className",""),this.set("ariaLabel",n("Editor dialog")),this.set("isModal",!1),this.set("position",$.SCREEN_CENTER),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=t,this._getViewportOffset=o,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new y.EP,this.focusTracker=new y.$x,this._focusables=new I.s,this._focusCycler=new N.H({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"},keystrokeHandlerOptions:s}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog-overlay",i.if("isModal","ck-dialog-overlay__transparent",e=>!e),i.if("_isVisible","ck-hidden",e=>!e)],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",i.if("isModal","ck-dialog_modal"),i.to("className")],role:"dialog","aria-label":i.to("ariaLabel"),style:{top:i.to("_top",e=>U(e)),left:i.to("_left",e=>U(e)),visibility:i.if("_isTransparent","hidden")}},children:this.parts}]})}render(){super.render(),this.keystrokes.set("Esc",(e,t)=>{e.defaultPrevented||(this.fire("close",{source:"escKeyPress"}),t())}),this.on("drag",(e,{deltaX:t,deltaY:o})=>{this.wasMoved=!0,this.moveBy(t,o)}),this.listenTo(y.Sf.window,"resize",()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.listenTo(y.Sf.document,"scroll",()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.on("change:_isVisible",(e,t,o)=>{o&&(this._isTransparent=!0,setTimeout(()=>{this.updatePosition(),this._isTransparent=!1,this.focus()},10))}),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView&&!this.isModal?this.headerView.element:null}setupParts({icon:e,title:t,hasCloseButton:o=!0,content:i,actionButtons:n}){t&&(this.headerView=new B(this.locale,{icon:e}),o&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=t,this.ariaLabel=t,this.parts.add(this.headerView,0)),i&&(i instanceof s.S&&(i=[i]),this.contentView=new H(this.locale),this.contentView.children.addMany(i),this.parts.add(this.contentView)),n&&(this.actionsView=new F(this.locale),this.actionsView.setButtons(n),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(e,t){const o=this._getViewportRect(),s=this._getDialogRect();e+s.width>o.right&&(e=o.right-s.width),e<o.left&&(e=o.left),t<o.top&&(t=o.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,o=this.position;this._getCurrentDomRoot()?t=this._getVisibleDomRootRect(e):o=$.SCREEN_CENTER;const s=K.defaultOffset,i=this._getDialogRect();if(null!=this.position){if("function"==typeof this.position){const e=this.position(i,t);return null==e?void this._moveOffScreen():void this._moveTo(e.left,e.top)}switch(o){case $.EDITOR_TOP_SIDE:if(t){const e="ltr"===this.locale.contentLanguageDirection?t.right-i.width-s:t.left+s;this.moveTo(e,t.top+s)}else this._moveOffScreen();break;case $.EDITOR_CENTER:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),Math.round(t.top+t.height/2-i.height/2)):this._moveOffScreen();break;case $.SCREEN_CENTER:this.moveTo(Math.round((e.width-i.width)/2),Math.round((e.height-i.height)/2));break;case $.EDITOR_TOP_CENTER:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),t.top+s):this._moveOffScreen();break;case $.EDITOR_BOTTOM_CENTER:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),t.bottom-i.height-s):this._moveOffScreen();break;case $.EDITOR_ABOVE_CENTER:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),t.top-i.height-s):this._moveOffScreen();break;case $.EDITOR_BELOW_CENTER:t?this.moveTo(Math.round(t.left+t.width/2-i.width/2),t.bottom+s):this._moveOffScreen()}}}_getVisibleDomRootRect(e){let t=new y.rw(this._getCurrentDomRoot()).getVisible();return t?(t=e.getIntersection(t),t||null):null}_getDialogRect(){return new y.rw(this.element.firstElementChild)}_getViewportRect(){const e=new y.rw(y.Sf.window);return this.isModal?e:(0,y.tS)(this._getViewportOffset())}_updateFocusCyclableItems(){const e=[];if(this.contentView)for(const t of this.contentView.children)(0,N.tp)(t)&&e.push(t);this.actionsView&&e.push(this.actionsView),this.closeButtonView&&e.push(this.closeButtonView),e.forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element),(0,N.eG)(e)&&this._focusCycler.chain(e.focusCycler)})}_createCloseButton(){const e=new V._(this.locale),t=this.locale.t;return e.set({label:t("Close"),tooltip:!0,icon:O.A}),e.on("execute",()=>this.fire("close",{source:"closeButton"})),e}}class Y extends P.k_{view;static _visibleDialogPlugin;_onHide;static get pluginName(){return"Dialog"}static get isOfficialPlugin(){return!0}constructor(e){super(e);const t=e.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set({id:null,isOpen:!1}),e.accessibility.addKeystrokeInfos({categoryId:"navigation",keystrokes:[{label:t("Move focus in and out of an active dialog window"),keystroke:"Ctrl+F6",mayRequireFn:!0}]})}destroy(){super.destroy(),Y._visibleDialogPlugin===this&&this._unlockBodyScroll()}_initShowHideListeners(){this.on("show",(e,t)=>{this._show(t)}),this.on("show",(e,t)=>{t.onShow&&t.onShow(this)},{priority:"low"}),this.on("hide",()=>{Y._visibleDialogPlugin&&Y._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,o)=>{this.isOpen&&!this.view.isModal&&(this.view.focusTracker.isFocused?e.editing.view.focus():this.view.focus(),o())})}_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:o,hasCloseButton:s=!0,content:i,actionButtons:n,className:r,isModal:a,position:c,onHide:l,keystrokeHandlerOptions:d}){const u=this.editor;this.view=new K(u.locale,{getCurrentDomRoot:()=>u.editing.view.getDomRoot(u.model.document.selection.anchor.root.rootName),getViewportOffset:()=>u.ui.viewportOffset,keystrokeHandlerOptions:d});const h=this.view;h.on("close",()=>{this.hide()}),u.ui.view.body.add(h),u.keystrokes.listenTo(h.element),c||(c=a?$.SCREEN_CENTER:$.EDITOR_CENTER),a&&this._lockBodyScroll(),h.set({position:c,_isVisible:!0,className:r,isModal:a}),h.setupParts({icon:t,title:o,hasCloseButton:s,content:i,actionButtons:n}),this.id=e,l&&(this._onHide=l),this.isOpen=!0,Y._visibleDialogPlugin=this}hide(){Y._visibleDialogPlugin&&Y._visibleDialogPlugin.fire(`hide:${Y._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;const e=this.editor,t=this.view;t.isModal&&this._unlockBodyScroll(),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,Y._visibleDialogPlugin=null}_lockBodyScroll(){document.documentElement.classList.add("ck-dialog-scroll-locked")}_unlockBodyScroll(){document.documentElement.classList.remove("ck-dialog-scroll-locked")}}var G=o("../ckeditor5-ui/src/menubar/menubarmenulistitembuttonview.js"),J=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/editorui/accessibilityhelp.css"),Z={attributes:{"data-cke":!0}};Z.setAttributes=u(),Z.insert=l().bind(null,"head"),Z.domAPI=a(),Z.insertStyleElement=p();n()(J.A,Z);J.A&&J.A.locals&&J.A.locals;class X extends P.k_{contentView=null;static get requires(){return[Y]}static get pluginName(){return"AccessibilityHelp"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.locale.t;e.ui.componentFactory.add("accessibilityHelp",()=>{const e=this._createButton(V._);return e.set({tooltip:!0,withText:!1,label:t("Accessibility help")}),e}),e.ui.componentFactory.add("menuBar:accessibilityHelp",()=>{const e=this._createButton(G.k);return e.label=t("Accessibility"),e}),e.keystrokes.set("Alt+0",(e,t)=>{this._toggleDialog(),t()}),this._setupRootLabels()}_createButton(e){const t=this.editor,o=t.plugins.get("Dialog"),s=new e(t.locale);return s.set({keystroke:"Alt+0",icon:M.A,isToggleable:!0}),s.on("execute",()=>this._toggleDialog()),s.bind("isOn").to(o,"id",e=>"accessibilityHelp"===e),s}_setupRootLabels(){const e=this.editor,t=e.editing.view,o=e.t;function s(e,t){const s=[t.getAttribute("aria-label"),o("Press %0 for help.",[(0,y.YA)("Alt+0")])].filter(e=>e).join(". ");e.setAttribute("aria-label",s,t)}e.ui.on("ready",()=>{t.change(e=>{for(const o of t.document.roots)s(e,o)}),e.on("addRoot",(o,i)=>{const n=e.editing.view.document.getRoot(i.rootName);t.change(e=>s(e,n))},{priority:"low"})})}_toggleDialog(){const e=this.editor,t=e.plugins.get("Dialog"),o=e.locale.t;this.contentView||(this.contentView=new S(e.locale,e.accessibility.keystrokeInfos)),"accessibilityHelp"===t.id?t.hide():t.show({id:"accessibilityHelp",className:"ck-accessibility-help-dialog",title:o("Accessibility help"),icon:M.A,hasCloseButton:!0,content:this.contentView})}}var Q=o("../ckeditor5-ui/src/template.js");class ee extends I.s{locale;_bodyCollectionContainer;static _bodyWrapper;constructor(e,t=[]){super(t),this.locale=e}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Q.Bj({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection,role:"application"},children:this}).render(),ee._bodyWrapper&&ee._bodyWrapper.isConnected||(ee._bodyWrapper=(0,y.n)(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(ee._bodyWrapper)),ee._bodyWrapper.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove(),ee._bodyWrapper&&!ee._bodyWrapper.childElementCount&&(ee._bodyWrapper.remove(),delete ee._bodyWrapper)}}var te=o("../ckeditor5-icons/theme/icons/project-logo.svg"),oe=o("../ckeditor5-ui/src/panel/balloon/balloonpanelview.js"),se=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.mjs");class ie extends((0,y.c5)()){editor;_balloonView=null;_showBalloonThrottled=(0,se.n)(()=>this._showBalloon(),50,{leading:!0});_lastFocusedEditableElement=null;_balloonClass;constructor(e,t={}){super(),this.editor=e,this._balloonClass=t.balloonClass,e.on("ready",()=>this._handleEditorReady())}destroy(){const e=this._balloonView;e&&(e.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const e=this.editor;this._isEnabled()&&e.ui.view&&(e.ui.focusTracker.on("change:isFocused",(e,t,o)=>{this._updateLastFocusedEditableElement(),o?this._showBalloon():this._hideBalloon()}),e.ui.focusTracker.on("change:focusedElement",(e,t,o)=>{this._updateLastFocusedEditableElement(),o&&this._showBalloon()}),e.ui.on("update",()=>{this._showBalloonThrottled()}))}_getNormalizedConfig(){return{side:"ltr"===this.editor.locale.contentLanguageDirection?"right":"left",position:"border",verticalOffset:0,horizontalOffset:5}}_showBalloon(){const e=this._getBalloonAttachOptions();e&&(this._balloonView||(this._balloonView=this._createBalloonView()),this._balloonView.pin(e))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_createBalloonView(){const e=this.editor,t=new oe.J,o=this._createBadgeContent();return t.content.add(o),this._balloonClass&&(t.class=this._balloonClass),e.ui.view.body.add(t),t}_getBalloonAttachOptions(){if(!this._lastFocusedEditableElement)return null;const e=this._getNormalizedConfig(),t="right"===e.side?ne(this._lastFocusedEditableElement,o=e,(e,t)=>e.left+e.width-t.width-o.horizontalOffset):function(e,t){return ne(e,t,e=>e.left+t.horizontalOffset)}(this._lastFocusedEditableElement,e);var o;return{target:this._lastFocusedEditableElement,positions:[t]}}_updateLastFocusedEditableElement(){const e=this.editor,t=e.ui.focusTracker.isFocused,o=e.ui.focusTracker.focusedElement;if(!t||!o)return void(this._lastFocusedEditableElement=null);const s=Array.from(e.ui.getEditableElementsNames()).map(t=>e.ui.getEditableElement(t));s.includes(o)?this._lastFocusedEditableElement=o:this._lastFocusedEditableElement=s[0]}}function ne(e,t,o){return(s,i)=>{const n=new y.rw(e);if(n.width<350||n.height<50)return null;let r;r="inside"===t.position?n.bottom-i.height:n.bottom-i.height/2,r-=t.verticalOffset;const a=o(n,i),c=s.clone().moveTo(a,r).getIntersection(i.clone().moveTo(a,r)).getVisible();return!c||c.getArea()<i.getArea()?null:{top:r,left:a,name:`position_${t.position}-side_${t.side}`,config:{withArrow:!1}}}}class re extends ie{constructor(e){super(e,{balloonClass:"ck-powered-by-balloon"})}_isEnabled(){const e=this.editor;if(e.config.get("ui.poweredBy.forceVisible"))return!0;const t=e.config.get("licenseKey");if("GPL"==t)return!0;const o=(0,y.yE)(t.split(".")[1]);return!o||!o.whiteLabel}_createBadgeContent(){return new ae(this.editor.locale,this._getNormalizedConfig().label)}_getNormalizedConfig(){const e=super._getNormalizedConfig(),t=this.editor.config.get("ui.poweredBy")||{},o=t.position||e.position,s="inside"===o?5:e.verticalOffset;return{position:o,side:t.side||e.side,label:void 0===t.label?"Powered by":t.label,verticalOffset:void 0!==t.verticalOffset?t.verticalOffset:s,horizontalOffset:void 0!==t.horizontalOffset?t.horizontalOffset:e.horizontalOffset,forceVisible:!!t.forceVisible}}}class ae extends s.S{constructor(e,t){super(e);const o=new R.L,s=this.bindTemplate;o.set({content:te.A,isColorInherited:!1}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/powered-by-ckeditor/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...t?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[t]}]:[],o],on:{dragstart:s.to(e=>e.preventDefault())}}]})}}var ce=o("../ckeditor5-ui/src/button/buttonlabelview.js"),le=o("../ckeditor5-ui/src/button/switchbuttonview.js"),de=o("../ckeditor5-ui/src/button/listitembuttonview.js");class ue extends(pe(V._)){}class he extends(pe(de.$)){}function pe(e){return class extends e{_fileInputView;constructor(...e){super(...e),this._fileInputView=new me(this.locale),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 me extends s.S{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?.files?.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}var ge=o("../ckeditor5-icons/theme/icons/dropdown-arrow.svg"),fe=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/collapsible/collapsible.css"),_e={attributes:{"data-cke":!0}};_e.setAttributes=u(),_e.insert=l().bind(null,"head"),_e.domAPI=a(),_e.insertStyleElement=p();n()(fe.A,_e);fe.A&&fe.A.locals&&fe.A.locals;class be extends s.S{buttonView;children;constructor(e,t){super(e);const o=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),t&&this.children.addMany(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",o.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:o.if("isCollapsed","hidden"),"aria-labelledby":o.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const e=new V._(this.locale),t=e.bindTemplate;return e.set({withText:!0,icon:ge.A}),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}}function we(e,t){const o=e.t,s={Black:o("Black"),"Dim grey":o("Dim grey"),Grey:o("Grey"),"Light grey":o("Light grey"),White:o("White"),Red:o("Red"),Orange:o("Orange"),Yellow:o("Yellow"),"Light green":o("Light green"),Green:o("Green"),Aquamarine:o("Aquamarine"),Turquoise:o("Turquoise"),"Light blue":o("Light blue"),Blue:o("Blue"),Purple:o("Purple")};return t.map(e=>{const t=s[e.label];return t&&t!=e.label&&(e.label=t),e})}function ke(e){return e.map(ve).filter(e=>!!e)}function ve(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:`${e.color}`}}}}var ye=o("../ckeditor5-icons/theme/icons/color-tile-check.svg");class xe extends V._{constructor(e){super(e);const t=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon=ye.A,this.extendTemplate({attributes:{style:{backgroundColor:t.to("color",e=>y._K.isMediaForcedColors?null:e)},class:["ck","ck-color-grid__tile",t.if("hasBorder","ck-color-selector__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var Ae=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/colorgrid/colorgrid.css"),Ce={attributes:{"data-cke":!0}};Ce.setAttributes=u(),Ce.insert=l().bind(null,"head"),Ce.domAPI=a(),Ce.insertStyleElement=p();n()(Ae.A,Ce);Ae.A&&Ae.A.locals&&Ae.A.locals;class Ee extends s.S{columns;items;focusTracker;keystrokes;constructor(e,t){super(e);const o=t&&t.colorDefinitions?t.colorDefinitions:[];this.columns=t?.columns||5;const s={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new y.$x,this.keystrokes=new y.EP,this.items.on("add",(e,t)=>{t.isOn=t.color===this.selectedColor}),o.forEach(e=>{const t=new xe;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",()=>{this.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})}),this.items.add(t)}),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:s}}),this.on("change:selectedColor",(e,t,o)=>{for(const e of this.items)e.isOn=e.color===o})}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element),C({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale?.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}const Se={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]},Te=function(e){var t,o,s=[],i=1;if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if(e=String(e).toLowerCase(),Se[e])s=Se[e].slice(),o="rgb";else if("transparent"===e)i=0,o="rgb",s=[0,0,0];else if("#"===e[0]){var n=e.slice(1),r=n.length;i=1,r<=4?(s=[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)],4===r&&(i=parseInt(n[3]+n[3],16)/255)):(s=[parseInt(n[0]+n[1],16),parseInt(n[2]+n[3],16),parseInt(n[4]+n[5],16)],8===r&&(i=parseInt(n[6]+n[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),o="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var a=t[1],c="cmyk"===(o=a.replace(/a$/,""))?4:"gray"===o?1:3;s=t[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===o&&(o=s.shift()),i=(s=s.map(function(e,t){if("%"===e[e.length-1])return e=parseFloat(e)/100,3===t?e:"rgb"===o?255*e:"h"===o[0]?100*e:"l"!==o[0]||t?"lab"===o?125*e:"lch"===o?t<2?150*e:360*e:"o"!==o[0]||t?"oklab"===o?.4*e:"oklch"===o?t<2?.4*e:360*e:e:e:100*e;if("h"===o[t]||2===t&&"h"===o[o.length-1]){if(void 0!==Pe[e])return Pe[e];if(e.endsWith("deg"))return parseFloat(e);if(e.endsWith("turn"))return 360*parseFloat(e);if(e.endsWith("grad"))return 360*parseFloat(e)/400;if(e.endsWith("rad"))return 180*parseFloat(e)/Math.PI}return"none"===e?0:parseFloat(e)})).length>c?s.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(s=e.match(/([0-9]+)/g).map(function(e){return parseFloat(e)}),o=e.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:o,values:s,alpha:i}};var Pe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const Me={};for(const e of Object.keys(Se))Me[Se[e]]=e;const Ve={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}},Oe=Ve,Ie=(6/29)**3;function Re(e){const t=e>.0031308?1.055*e**(1/2.4)-.055:12.92*e;return Math.min(Math.max(0,t),1)}function je(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(Ve)){if(!("channels"in Ve[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ve[e]))throw new Error("missing channel labels property: "+e);if(Ve[e].labels.length!==Ve[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:o}=Ve[e];delete Ve[e].channels,delete Ve[e].labels,Object.defineProperty(Ve[e],"channels",{value:t}),Object.defineProperty(Ve[e],"labels",{value:o})}function ze(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function Be(e){const t=function(){const e={},t=Object.keys(Oe);for(let{length:o}=t,s=0;s<o;s++)e[t[s]]={distance:-1,parent:null};return e}(),o=[e];for(t[e].distance=0;o.length>0;){const e=o.pop(),s=Object.keys(Oe[e]);for(let{length:i}=s,n=0;n<i;n++){const i=s[n],r=t[i];-1===r.distance&&(r.distance=t[e].distance+1,r.parent=e,o.unshift(i))}}return t}function Ne(e,t){return function(o){return t(e(o))}}function Le(e,t){const o=[t[e].parent,e];let s=Oe[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)o.unshift(t[i].parent),s=Ne(Oe[t[i].parent][i],s),i=t[i].parent;return s.conversion=o,s}Ve.rgb.hsl=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(t,o,s),n=Math.max(t,o,s),r=n-i;let a,c;switch(n){case i:a=0;break;case t:a=(o-s)/r;break;case o:a=2+(s-t)/r;break;case s:a=4+(t-o)/r}a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+n)/2;return c=n===i?0:l<=.5?r/(n+i):r/(2-n-i),[a,100*c,100*l]},Ve.rgb.hsv=function(e){let t,o,s,i,n;const r=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(r,a,c),d=l-Math.min(r,a,c),u=function(e){return(l-e)/6/d+.5};if(0===d)i=0,n=0;else{switch(n=d/l,t=u(r),o=u(a),s=u(c),l){case r:i=s-o;break;case a:i=1/3+t-s;break;case c:i=2/3+o-t}i<0?i+=1:i>1&&(i-=1)}return[360*i,100*n,100*l]},Ve.rgb.hwb=function(e){const t=e[0],o=e[1];let s=e[2];const i=Ve.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(o,s));return s=1-1/255*Math.max(t,Math.max(o,s)),[i,100*n,100*s]},Ve.rgb.oklab=function(e){const t=je(e[0]/255),o=je(e[1]/255),s=je(e[2]/255),i=Math.cbrt(.4122214708*t+.5363325363*o+.0514459929*s),n=Math.cbrt(.2119034982*t+.6806995451*o+.1073969566*s),r=Math.cbrt(.0883024619*t+.2817188376*o+.6299787005*s);return[100*(.2104542553*i+.793617785*n-.0040720468*r),100*(1.9779984951*i-2.428592205*n+.4505937099*r),100*(.0259040371*i+.7827717662*n-.808675766*r)]},Ve.rgb.cmyk=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.min(1-t,1-o,1-s);return[100*((1-t-i)/(1-i)||0),100*((1-o-i)/(1-i)||0),100*((1-s-i)/(1-i)||0),100*i]},Ve.rgb.keyword=function(e){const t=Me[e];if(t)return t;let o,s=Number.POSITIVE_INFINITY;for(const t of Object.keys(Se)){const i=ze(e,Se[t]);i<s&&(s=i,o=t)}return o},Ve.keyword.rgb=function(e){return Se[e]},Ve.rgb.xyz=function(e){const t=je(e[0]/255),o=je(e[1]/255),s=je(e[2]/255);return[100*(.4124564*t+.3575761*o+.1804375*s),100*(.2126729*t+.7151522*o+.072175*s),100*(.0193339*t+.119192*o+.9503041*s)]},Ve.rgb.lab=function(e){const t=Ve.rgb.xyz(e);let o=t[0],s=t[1],i=t[2];o/=95.047,s/=100,i/=108.883,o=o>Ie?o**(1/3):7.787*o+16/116,s=s>Ie?s**(1/3):7.787*s+16/116,i=i>Ie?i**(1/3):7.787*i+16/116;return[116*s-16,500*(o-s),200*(s-i)]},Ve.hsl.rgb=function(e){const t=e[0]/360,o=e[1]/100,s=e[2]/100;let i,n;if(0===o)return n=255*s,[n,n,n];const r=s<.5?s*(1+o):s+o-s*o,a=2*s-r,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,n=6*i<1?a+6*(r-a)*i:2*i<1?r:3*i<2?a+(r-a)*(2/3-i)*6:a,c[e]=255*n;return c},Ve.hsl.hsv=function(e){const t=e[0];let o=e[1]/100,s=e[2]/100,i=o;const n=Math.max(s,.01);s*=2,o*=s<=1?s:2-s,i*=n<=1?n:2-n;return[t,100*(0===s?2*i/(n+i):2*o/(s+o)),100*((s+o)/2)]},Ve.hsv.rgb=function(e){const t=e[0]/60,o=e[1]/100;let s=e[2]/100;const i=Math.floor(t)%6,n=t-Math.floor(t),r=255*s*(1-o),a=255*s*(1-o*n),c=255*s*(1-o*(1-n));switch(s*=255,i){case 0:return[s,c,r];case 1:return[a,s,r];case 2:return[r,s,c];case 3:return[r,a,s];case 4:return[c,r,s];case 5:return[s,r,a]}},Ve.hsv.hsl=function(e){const t=e[0],o=e[1]/100,s=e[2]/100,i=Math.max(s,.01);let n,r;r=(2-o)*s;const a=(2-o)*i;return n=o*i,n/=a<=1?a:2-a,n=n||0,r/=2,[t,100*n,100*r]},Ve.hwb.rgb=function(e){const t=e[0]/360;let o=e[1]/100,s=e[2]/100;const i=o+s;let n;i>1&&(o/=i,s/=i);const r=Math.floor(6*t),a=1-s;n=6*t-r,1&r&&(n=1-n);const c=o+n*(a-o);let l,d,u;switch(r){default:case 6:case 0:l=a,d=c,u=o;break;case 1:l=c,d=a,u=o;break;case 2:l=o,d=a,u=c;break;case 3:l=o,d=c,u=a;break;case 4:l=c,d=o,u=a;break;case 5:l=a,d=o,u=c}return[255*l,255*d,255*u]},Ve.cmyk.rgb=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,o*(1-i)+i)),255*(1-Math.min(1,s*(1-i)+i))]},Ve.xyz.rgb=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100;let i,n,r;return i=3.2404542*t+-1.5371385*o+-.4985314*s,n=-.969266*t+1.8760108*o+.041556*s,r=.0556434*t+-.2040259*o+1.0572252*s,i=Re(i),n=Re(n),r=Re(r),[255*i,255*n,255*r]},Ve.xyz.lab=function(e){let t=e[0],o=e[1],s=e[2];t/=95.047,o/=100,s/=108.883,t=t>Ie?t**(1/3):7.787*t+16/116,o=o>Ie?o**(1/3):7.787*o+16/116,s=s>Ie?s**(1/3):7.787*s+16/116;return[116*o-16,500*(t-o),200*(o-s)]},Ve.xyz.oklab=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100,i=Math.cbrt(.8189330101*t+.3618667424*o-.1288597137*s),n=Math.cbrt(.0329845436*t+.9293118715*o+.0361456387*s),r=Math.cbrt(.0482003018*t+.2643662691*o+.633851707*s);return[100*(.2104542553*i+.793617785*n-.0040720468*r),100*(1.9779984951*i-2.428592205*n+.4505937099*r),100*(.0259040371*i+.7827717662*n-.808675766*r)]},Ve.oklab.oklch=function(e){return Ve.lab.lch(e)},Ve.oklab.xyz=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100,i=(.999999998*t+.396337792*o+.215803758*s)**3,n=(1.000000008*t-.105561342*o-.063854175*s)**3,r=(1.000000055*t-.089484182*o-1.291485538*s)**3;return[100*(1.227013851*i-.55779998*n+.281256149*r),100*(-.040580178*i+1.11225687*n-.071676679*r),100*(-.076381285*i-.421481978*n+1.58616322*r)]},Ve.oklab.rgb=function(e){const t=e[0]/100,o=e[1]/100,s=e[2]/100,i=(t+.3963377774*o+.2158037573*s)**3,n=(t-.1055613458*o-.0638541728*s)**3,r=(t-.0894841775*o-1.291485548*s)**3;return[255*Re(4.0767416621*i-3.3077115913*n+.2309699292*r),255*Re(-1.2684380046*i+2.6097574011*n-.3413193965*r),255*Re(-.0041960863*i-.7034186147*n+1.707614701*r)]},Ve.oklch.oklab=function(e){return Ve.lch.lab(e)},Ve.lab.xyz=function(e){let t,o,s;o=(e[0]+16)/116,t=e[1]/500+o,s=o-e[2]/200;const i=o**3,n=t**3,r=s**3;return o=i>Ie?i:(o-16/116)/7.787,t=n>Ie?n:(t-16/116)/7.787,s=r>Ie?r:(s-16/116)/7.787,t*=95.047,o*=100,s*=108.883,[t,o,s]},Ve.lab.lch=function(e){const t=e[0],o=e[1],s=e[2];let i;i=360*Math.atan2(s,o)/2/Math.PI,i<0&&(i+=360);return[t,Math.sqrt(o*o+s*s),i]},Ve.lch.lab=function(e){const t=e[0],o=e[1],s=e[2]/360*2*Math.PI;return[t,o*Math.cos(s),o*Math.sin(s)]},Ve.rgb.ansi16=function(e,t=null){const[o,s,i]=e;let n=null===t?Ve.rgb.hsv(e)[2]:t;if(n=Math.round(n/50),0===n)return 30;let r=30+(Math.round(i/255)<<2|Math.round(s/255)<<1|Math.round(o/255));return 2===n&&(r+=60),r},Ve.hsv.ansi16=function(e){return Ve.rgb.ansi16(Ve.hsv.rgb(e),e[2])},Ve.rgb.ansi256=function(e){const t=e[0],o=e[1],s=e[2];if(t>>4==o>>4&&o>>4==s>>4)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(s/255*5)},Ve.ansi16.rgb=function(e){let t=(e=e[0])%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const o=.5*(Math.trunc(e>50)+1);return[(1&t)*o*255,(t>>1&1)*o*255,(t>>2&1)*o*255]},Ve.ansi256.rgb=function(e){if((e=e[0])>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Ve.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".slice(t.length)+t},Ve.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let o=t[0];3===t[0].length&&(o=[...o].map(e=>e+e).join(""));const s=Number.parseInt(o,16);return[s>>16&255,s>>8&255,255&s]},Ve.rgb.hcg=function(e){const t=e[0]/255,o=e[1]/255,s=e[2]/255,i=Math.max(Math.max(t,o),s),n=Math.min(Math.min(t,o),s),r=i-n;let a;return a=r<=0?0:i===t?(o-s)/r%6:i===o?2+(s-t)/r:4+(t-o)/r,a/=6,a%=1,[360*a,100*r,100*(r<1?n/(1-r):0)]},Ve.hsl.hcg=function(e){const t=e[1]/100,o=e[2]/100,s=o<.5?2*t*o:2*t*(1-o);let i=0;return s<1&&(i=(o-.5*s)/(1-s)),[e[0],100*s,100*i]},Ve.hsv.hcg=function(e){const t=e[1]/100,o=e[2]/100,s=t*o;let i=0;return s<1&&(i=(o-s)/(1-s)),[e[0],100*s,100*i]},Ve.hcg.rgb=function(e){const t=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[255*s,255*s,255*s];const i=[0,0,0],n=t%1*6,r=n%1,a=1-r;let c=0;switch(Math.floor(n)){case 0:i[0]=1,i[1]=r,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=r;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=r,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-o)*s,[255*(o*i[0]+c),255*(o*i[1]+c),255*(o*i[2]+c)]},Ve.hcg.hsv=function(e){const t=e[1]/100,o=t+e[2]/100*(1-t);let s=0;return o>0&&(s=t/o),[e[0],100*s,100*o]},Ve.hcg.hsl=function(e){const t=e[1]/100,o=e[2]/100*(1-t)+.5*t;let s=0;return o>0&&o<.5?s=t/(2*o):o>=.5&&o<1&&(s=t/(2*(1-o))),[e[0],100*s,100*o]},Ve.hcg.hwb=function(e){const t=e[1]/100,o=t+e[2]/100*(1-t);return[e[0],100*(o-t),100*(1-o)]},Ve.hwb.hcg=function(e){const t=e[1]/100,o=1-e[2]/100,s=o-t;let i=0;return s<1&&(i=(o-s)/(1-s)),[e[0],100*s,100*i]},Ve.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ve.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ve.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ve.gray.hsl=function(e){return[0,0,e[0]]},Ve.gray.hsv=Ve.gray.hsl,Ve.gray.hwb=function(e){return[0,100,e[0]]},Ve.gray.cmyk=function(e){return[0,0,0,e[0]]},Ve.gray.lab=function(e){return[e[0],0,0]},Ve.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),o=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(o.length)+o},Ve.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const De=function(e){const t=Be(e),o={},s=Object.keys(t);for(let{length:e}=s,i=0;i<e;i++){const e=s[i];null!==t[e].parent&&(o[e]=Le(e,t))}return o},Fe={},He=Object.keys(Oe);function qe(e){const t=function(...t){const o=t[0];return null==o?o:(o.length>1&&(t=o),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function We(e){const t=function(...t){const o=t[0];if(null==o)return o;o.length>1&&(t=o);const s=e(t);if("object"==typeof s)for(let{length:e}=s,t=0;t<e;t++)s[t]=Math.round(s[t]);return s};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of He){Fe[e]={},Object.defineProperty(Fe[e],"channels",{value:Oe[e].channels}),Object.defineProperty(Fe[e],"labels",{value:Oe[e].labels});const t=De(e),o=Object.keys(t);for(const s of o){const o=t[s];Fe[e][s]=We(o),Fe[e][s].raw=qe(o)}}const $e=Fe;function Ue(e,t){if(!e)return"";const o=Ge(e);if(!o)return"";if(o.space===t)return e;if(s=o,!Object.keys($e).includes(s.space))return"";var s;const i=$e[o.space][t];if(!i)return"";return function(e,t){switch(t){case"hex":return`#${e}`;case"rgb":return`rgb(${e[0]}, ${e[1]}, ${e[2]})`;case"hsl":return`hsl(${e[0]}, ${e[1]}%, ${e[2]}%)`;case"hwb":return`hwb(${e[0]}, ${e[1]}, ${e[2]})`;case"lab":return`lab(${e[0]}% ${e[1]} ${e[2]})`;case"lch":return`lch(${e[0]}% ${e[1]} ${e[2]})`;default:return""}}(i("hex"===o.space?o.hexValue:o.values),t)}function Ke(e){if(!e)return"";const t=Ge(e);return t?"hex"===t.space?t.hexValue:Ue(e,"hex"):"#000"}function Ye(e,t){void 0===customElements.get(e)&&customElements.define(e,t)}function Ge(e){if(e.startsWith("#")){const t=Te(e);return{space:"hex",values:t.values,hexValue:e,alpha:t.alpha}}const t=Te(e);return t.space?t:null}var Je=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.mjs"),Ze=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css"),Xe={attributes:{"data-cke":!0}};Xe.setAttributes=u(),Xe.insert=l().bind(null,"head"),Xe.domAPI=a(),Xe.insertStyleElement=p();n()(Ze.A,Xe);Ze.A&&Ze.A.locals&&Ze.A.locals;class Qe extends s.S{fieldView;labelView;statusView;fieldWrapperChildren;constructor(e,t){super(e);const o=`ck-labeled-field-view-${(0,y.Ld)()}`,s=`ck-labeled-field-view-status-${(0,y.Ld)()}`;this.fieldView=t(this,o,s),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(o),this.statusView=this._createStatusView(s),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(e,t)=>e||t);const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",i.to("class"),i.if("isEnabled","ck-disabled",e=>!e),i.if("isEmpty","ck-labeled-field-view_empty"),i.if("isFocused","ck-labeled-field-view_focused"),i.if("placeholder","ck-labeled-field-view_placeholder"),i.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(e){const t=new E.y(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new s.S(this.locale),o=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",o.if("errorText","ck-labeled-field-view__status_error"),o.if("_statusText","ck-hidden",e=>!e)],id:e,role:o.if("errorText","alert")},children:[{text:o.to("_statusText")}]}),t}focus(e){this.fieldView.focus(e)}}class et extends s.S{focusTracker;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 y.$x,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,o)=>{this._setDomElementValue(o),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(e){this.element.value=e||0===e?e:""}}var tt=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/input/input.css"),ot={attributes:{"data-cke":!0}};ot.setAttributes=u(),ot.insert=l().bind(null,"head"),ot.domAPI=a(),ot.insertStyleElement=p();n()(tt.A,ot);tt.A&&tt.A.locals&&tt.A.locals;class st extends et{constructor(e){super(e),this.set("inputMode","text");const t=this.bindTemplate;this.extendTemplate({attributes:{inputmode:t.to("inputMode")}})}}class it extends st{constructor(e){super(e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class nt extends st{constructor(e,{min:t,max:o,step:s}={}){super(e);const i=this.bindTemplate;this.set("min",t),this.set("max",o),this.set("step",s),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:i.to("min"),max:i.to("max"),step:i.to("step")}})}}var rt=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/textarea/textarea.css"),at={attributes:{"data-cke":!0}};at.setAttributes=u(),at.insert=l().bind(null,"head"),at.domAPI=a(),at.insertStyleElement=p();n()(rt.A,at);rt.A&&rt.A.locals&&rt.A.locals;class ct extends et{_resizeObserver;_isUpdateAutoGrowHeightPending=!1;constructor(e){super(e);const t=(0,y.To)("px");this.set("minRows",2),this.set("maxRows",5),this.set("_height",null),this.set("resize","none"),this._resizeObserver=null,this.on("change:minRows",this._validateMinMaxRows.bind(this)),this.on("change:maxRows",this._validateMinMaxRows.bind(this));const o=this.bindTemplate;this.template.tag="textarea",this.extendTemplate({attributes:{class:["ck-textarea"],style:{height:o.to("_height",e=>e?t(e):null),resize:o.to("resize")},rows:o.to("minRows")}})}render(){super.render();let e=!1;this.on("input",()=>{this._updateAutoGrowHeight(!0),this.fire("update")}),this.on("change:value",()=>{y.Sf.window.requestAnimationFrame(()=>{(0,y.zN)(this.element)?(this._updateAutoGrowHeight(),this.fire("update")):this._isUpdateAutoGrowHeightPending=!0})}),this._resizeObserver=new y.tb(this.element,t=>{const o=!!t.contentRect.width&&!!t.contentRect.height;!e&&o&&this._isUpdateAutoGrowHeightPending&&y.Sf.window.requestAnimationFrame(()=>{this._updateAutoGrowHeight(),this.fire("update")}),e=o})}destroy(){this._resizeObserver&&this._resizeObserver.destroy()}reset(){super.reset(),this._updateAutoGrowHeight(),this.fire("update")}_updateAutoGrowHeight(e){const t=this.element;if(!t.offsetParent)return void(this._isUpdateAutoGrowHeightPending=!0);this._isUpdateAutoGrowHeightPending=!1;const o=lt(t,"1"),s=lt(t,t.value),i=o.ownerDocument.defaultView.getComputedStyle(o),n=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),r=(0,y.Md)(o),a=parseFloat(i.lineHeight),c=r.top+r.bottom,l=new y.rw(o).height,d=Math.round((s.scrollHeight-n)/a),u=this.maxRows*a+n+c,h=1===d?l:this.minRows*a+n+c;this._height=Math.min(Math.max(Math.max(d,this.minRows)*a+n+c,h),u),e&&(t.scrollTop=t.scrollHeight),o.remove(),s.remove()}_validateMinMaxRows(){if(this.minRows>this.maxRows)throw new y.Yb("ui-textarea-view-min-rows-greater-than-max-rows",{textareaView:this,minRows:this.minRows,maxRows:this.maxRows})}}function lt(e,t){const o=e.cloneNode();return o.style.position="absolute",o.style.top="-99999px",o.style.left="-99999px",o.style.height="auto",o.style.overflow="hidden",o.style.width=e.ownerDocument.defaultView.getComputedStyle(e).width,o.tabIndex=-1,o.rows=1,o.value=t,e.parentNode.insertBefore(o,e),o}var dt=o("../ckeditor5-ui/src/dropdown/utils.js");const ut=(e,t,o)=>{const s=new it(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isReadOnly").to(e,"isEnabled",e=>!e),s.bind("hasError").to(e,"errorText",e=>!!e),s.on("input",()=>{e.errorText=null}),e.bind("isEmpty","isFocused","placeholder").to(s),s},ht=(e,t,o)=>{const s=new nt(e.locale);return s.set({id:t,ariaDescribedById:o,inputMode:"numeric"}),s.bind("isReadOnly").to(e,"isEnabled",e=>!e),s.bind("hasError").to(e,"errorText",e=>!!e),s.on("input",()=>{e.errorText=null}),e.bind("isEmpty","isFocused","placeholder").to(s),s},pt=(e,t,o)=>{const s=new ct(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isReadOnly").to(e,"isEnabled",e=>!e),s.bind("hasError").to(e,"errorText",e=>!!e),s.on("input",()=>{e.errorText=null}),e.bind("isEmpty","isFocused","placeholder").to(s),s},mt=(e,t,o)=>{const s=(0,dt.yu)(e.locale);return s.set({id:t,ariaDescribedById:o}),s.bind("isEnabled").to(e),s},gt=(e,t=0,o=1)=>e>o?o:e<t?t:e,ft=(e,t=0,o=Math.pow(10,t))=>Math.round(o*e)/o,_t=(Math.PI,e=>("#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?ft(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?ft(parseInt(e.substring(6,8),16)/255,2):1})),bt=({h:e,s:t,v:o,a:s})=>{const i=(200-t)*o/100;return{h:ft(e),s:ft(i>0&&i<200?t*o/100/(i<=100?i:200-i)*100:0),l:ft(i/2),a:ft(s,2)}},wt=e=>{const{h:t,s:o,l:s}=bt(e);return`hsl(${t}, ${o}%, ${s}%)`},kt=({h:e,s:t,v:o,a:s})=>{e=e/360*6,t/=100,o/=100;const i=Math.floor(e),n=o*(1-t),r=o*(1-(e-i)*t),a=o*(1-(1-e+i)*t),c=i%6;return{r:ft(255*[o,r,n,n,a,o][c]),g:ft(255*[a,o,o,r,n,n][c]),b:ft(255*[n,n,a,o,o,r][c]),a:ft(s,2)}},vt=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},yt=({r:e,g:t,b:o,a:s})=>{const i=s<1?vt(ft(255*s)):"";return"#"+vt(e)+vt(t)+vt(o)+i},xt=({r:e,g:t,b:o,a:s})=>{const i=Math.max(e,t,o),n=i-Math.min(e,t,o),r=n?i===e?(t-o)/n:i===t?2+(o-e)/n:4+(e-t)/n:0;return{h:ft(60*(r<0?r+6:r)),s:ft(i?n/i*100:0),v:ft(i/255*100),a:s}},At=(e,t)=>{if(e===t)return!0;for(const o in e)if(e[o]!==t[o])return!1;return!0},Ct={},Et=e=>{let t=Ct[e];return t||(t=document.createElement("template"),t.innerHTML=e,Ct[e]=t),t},St=(e,t,o)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:o}))};let Tt=!1;const Pt=e=>"touches"in e,Mt=(e,t)=>{const o=Pt(t)?t.touches[0]:t,s=e.el.getBoundingClientRect();St(e.el,"move",e.getMove({x:gt((o.pageX-(s.left+window.pageXOffset))/s.width),y:gt((o.pageY-(s.top+window.pageYOffset))/s.height)}))};class Vt{constructor(e,t,o,s){const i=Et(`<div role="slider" tabindex="0" part="${t}" ${o}><div part="${t}-pointer"></div></div>`);e.appendChild(i.content.cloneNode(!0));const n=e.querySelector(`[part=${t}]`);n.addEventListener("mousedown",this),n.addEventListener("touchstart",this),n.addEventListener("keydown",this),this.el=n,this.xy=s,this.nodes=[n.firstChild,n]}set dragging(e){const t=e?document.addEventListener:document.removeEventListener;t(Tt?"touchmove":"mousemove",this),t(Tt?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!(e=>!(Tt&&!Pt(e)||(Tt||(Tt=Pt(e)),0)))(e)||!Tt&&0!=e.button)return;this.el.focus(),Mt(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),Mt(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((e,t)=>{const o=t.keyCode;o>40||e.xy&&o<37||o<33||(t.preventDefault(),St(e.el,"move",e.getMove({x:39===o?.01:37===o?-.01:34===o?.05:33===o?-.05:35===o?1:36===o?-1:0,y:40===o?.01:38===o?-.01:0},!0)))})(this,e)}}style(e){e.forEach((e,t)=>{for(const o in e)this.nodes[t].style.setProperty(o,e[o])})}}class Ot extends Vt{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:e/360*100+"%",color:wt({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${ft(e)}`)}getMove(e,t){return{h:t?gt(this.h+360*e.x,0,360):360*e.x}}}class It extends Vt{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:100-e.v+"%",left:`${e.s}%`,color:wt(e)},{"background-color":wt({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${ft(e.s)}%, Brightness ${ft(e.v)}%`)}getMove(e,t){return{s:t?gt(this.hsva.s+100*e.x,0,100):100*e.x,v:t?gt(this.hsva.v-100*e.y,0,100):Math.round(100-100*e.y)}}}const Rt=Symbol("same"),jt=Symbol("color"),zt=Symbol("hsva"),Bt=Symbol("update"),Nt=Symbol("parts"),Lt=Symbol("css"),Dt=Symbol("sliders");class Ft extends HTMLElement{static get observedAttributes(){return["color"]}get[Lt](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[Dt](){return[It,Ot]}get color(){return this[jt]}set color(e){if(!this[Rt](e)){const t=this.colorModel.toHsva(e);this[Bt](t),this[jt]=e}}constructor(){super();const e=Et(`<style>${this[Lt].join("")}</style>`),t=this.attachShadow({mode:"open"});t.appendChild(e.content.cloneNode(!0)),t.addEventListener("move",this),this[Nt]=this[Dt].map(e=>new e(t))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,t,o){const s=this.colorModel.fromAttr(o);this[Rt](s)||(this.color=s)}handleEvent(e){const t=this[zt],o={...t,...e.detail};let s;this[Bt](o),At(o,t)||this[Rt](s=this.colorModel.fromHsva(o))||(this[jt]=s,St(this,"color-changed",{value:s}))}[Rt](e){return this.color&&this.colorModel.equal(e,this.color)}[Bt](e){this[zt]=e,this[Nt].forEach(t=>t.update(e))}}const Ht={defaultColor:"#000",toHsva:e=>xt(_t(e)),fromHsva:({h:e,s:t,v:o})=>yt(kt({h:e,s:t,v:o,a:1})),equal:(e,t)=>e.toLowerCase()===t.toLowerCase()||At(_t(e),_t(t)),fromAttr:e=>e};class qt extends Ft{get colorModel(){return Ht}}var Wt=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"),$t={attributes:{"data-cke":!0}};$t.setAttributes=u(),$t.insert=l().bind(null,"head"),$t.domAPI=a(),$t.insertStyleElement=p();n()(Wt.A,$t);Wt.A&&Wt.A.locals&&Wt.A.locals;class Ut extends s.S{hexInputRow;_debounceColorPickerEvent;_config;constructor(e,t={}){super(e),this.set({color:"",_hexColor:""}),this.hexInputRow=this._createInputRow();const o=this.createCollection();t.hideInput||o.add(this.hexInputRow),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker"],tabindex:-1},children:o}),this._config=t,this._debounceColorPickerEvent=(0,Je.s)(e=>{this.set("color",e),this.fire("colorSelected",{color:this.color})},150,{leading:!0}),this.on("set:color",(e,t,o)=>{e.return=Ue(o,this._config.format||"hsl")}),this.on("change:color",()=>{this._hexColor=Kt(this.color)}),this.on("change:_hexColor",()=>{document.activeElement!==this.picker&&this.picker.setAttribute("color",this._hexColor),Kt(this.color)!=Kt(this._hexColor)&&(this.color=this._hexColor)})}render(){if(super.render(),Ye("hex-color-picker",qt),this.picker=y.Sf.document.createElement("hex-color-picker"),this.picker.setAttribute("class","hex-color-picker"),this.picker.setAttribute("tabindex","-1"),this._createSlidersView(),this.element){this.hexInputRow.element?this.element.insertBefore(this.picker,this.hexInputRow.element):this.element.appendChild(this.picker);const e=document.createElement("style");e.textContent='[role="slider"]:focus [part$="pointer"] {border: 1px solid #fff;outline: 1px solid var(--ck-color-focus-border);box-shadow: 0 0 0 2px #fff;}',this.picker.shadowRoot.appendChild(e)}this.picker.addEventListener("color-changed",e=>{const t=e.detail.value;this._debounceColorPickerEvent(t)})}focus(){if(!this._config.hideInput&&(y._K.isGecko||y._K.isiOS||y._K.isSafari||y._K.isBlink)){this.hexInputRow.children.get(1).focus()}this.slidersView.first.focus()}_createSlidersView(){const e=[...this.picker.shadowRoot.children].filter(e=>"slider"===e.getAttribute("role")).map(e=>new Yt(e));this.slidersView=this.createCollection(),e.forEach(e=>{this.slidersView.add(e)})}_createInputRow(){const e=this._createColorInput();return new Jt(this.locale,e)}_createColorInput(){const e=new Qe(this.locale,ut),{t}=this.locale;return e.set({label:t("HEX"),class:"color-picker-hex-input"}),e.fieldView.bind("value").to(this,"_hexColor",t=>e.isFocused?e.fieldView.value:t.startsWith("#")?t.substring(1):t),e.fieldView.on("input",()=>{const t=e.fieldView.element.value;if(t){const e=Zt(t);e&&this._debounceColorPickerEvent(e)}}),e}isValid(){const{t:e}=this.locale;return!!this._config.hideInput||(this.resetValidationStatus(),!!this.hexInputRow.getParsedColor()||(this.hexInputRow.inputView.errorText=e('Please enter a valid color (e.g. "ff0000").'),!1))}resetValidationStatus(){this.hexInputRow.inputView.errorText=null}}function Kt(e){let t=Ke(e);return t||(t="#000"),4===t.length&&(t="#"+[t[1],t[1],t[2],t[2],t[3],t[3]].join("")),t.toLowerCase()}class Yt extends s.S{constructor(e){super(),this.element=e}focus(){this.element.focus()}}class Gt extends s.S{constructor(e){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__hash-view"]},children:"#"})}}class Jt extends s.S{children;inputView;constructor(e,t){super(e),this.inputView=t,this.children=this.createCollection([new Gt,this.inputView]),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__row"]},children:this.children})}getParsedColor(){return Zt(this.inputView.fieldView.element.value)}}function Zt(e){if(!e)return null;const t=e.trim().replace(/^#/,"");return[3,4,6,8].includes(t.length)&&/^(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})$/.test(t)?`#${t}`:null}class Xt extends((0,y.VM)(y.pM)){constructor(e){super(e),this.set("isEmpty",!0),this.on("change",()=>{this.set("isEmpty",0===this.length)})}add(e,t){return this.find(t=>t.color===e.color)?this:super.add(e,t)}hasColor(e){return!!this.find(t=>t.color===e)}}var Qt=o("../ckeditor5-icons/theme/icons/color-palette.svg"),eo=o("../ckeditor5-icons/theme/icons/eraser.svg");class to extends s.S{items;colorDefinitions;focusTracker;columns;documentColors;documentColorsCount;staticColorsGrid;documentColorsGrid;colorPickerButtonView;removeColorButtonView;_focusables;_documentColorsLabel;_removeButtonLabel;_colorPickerLabel;constructor(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:n,colorPickerLabel:r,focusTracker:a,focusables:c}){super(e);const l=this.bindTemplate;this.set("isVisible",!0),this.focusTracker=a,this.items=this.createCollection(),this.colorDefinitions=t,this.columns=o,this.documentColors=new Xt,this.documentColorsCount=n,this._focusables=c,this._removeButtonLabel=s,this._colorPickerLabel=r,this._documentColorsLabel=i,this.setTemplate({tag:"div",attributes:{class:["ck-color-grids-fragment",l.if("isVisible","ck-hidden",e=>!e)]},children:this.items}),this.removeColorButtonView=this._createRemoveColorButton(),this.items.add(this.removeColorButtonView)}updateDocumentColors(e,t){const o=e.document,s=this.documentColorsCount;this.documentColors.clear();for(const i of o.getRoots()){const o=e.createRangeIn(i);for(const e of o.getItems())if(e.is("$textProxy")&&e.hasAttribute(t)&&(this._addColorToDocumentColors(e.getAttribute(t)),this.documentColors.length>=s))return}}updateSelectedColors(){const e=this.documentColorsGrid,t=this.staticColorsGrid,o=this.selectedColor;t.selectedColor=o,e&&(e.selectedColor=o)}render(){if(super.render(),this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount){const e=Q.Bj.bind(this.documentColors,this.documentColors),t=new s.S(this.locale);t.setTemplate({tag:"span",attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]},children:[{text:this._documentColorsLabel}]}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}this._createColorPickerButton(),this._addColorSelectorElementsToFocusTracker()}focus(){this.removeColorButtonView.focus()}destroy(){super.destroy()}addColorPickerButton(){this.colorPickerButtonView&&(this.items.add(this.colorPickerButtonView),this.focusTracker.add(this.colorPickerButtonView.element),this._focusables.add(this.colorPickerButtonView))}_addColorSelectorElementsToFocusTracker(){this.focusTracker.add(this.removeColorButtonView.element),this._focusables.add(this.removeColorButtonView),this.staticColorsGrid&&(this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid)),this.documentColorsGrid&&(this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid))}_createColorPickerButton(){this.colorPickerButtonView=new V._,this.colorPickerButtonView.set({label:this._colorPickerLabel,withText:!0,icon:Qt.A,class:"ck-color-selector__color-picker"}),this.colorPickerButtonView.on("execute",()=>{this.fire("colorPicker:show")})}_createRemoveColorButton(){const e=new V._;return e.set({withText:!0,icon:eo.A,label:this._removeButtonLabel}),e.class="ck-color-selector__remove-color",e.on("execute",()=>{this.fire("execute",{value:null,source:"removeColorButton"})}),e.render(),e}_createStaticColorsGrid(){const e=new Ee(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.on("execute",(e,t)=>{this.fire("execute",{value:t.value,source:"staticColorsGrid"})}),e}_createDocumentColorsGrid(){const e=Q.Bj.bind(this.documentColors,this.documentColors),t=new Ee(this.locale,{columns:this.columns});return t.extendTemplate({attributes:{class:e.if("isEmpty","ck-hidden")}}),t.items.bindTo(this.documentColors).using(e=>{const t=new xe;return t.set({color:e.color,hasBorder:e.options?.hasBorder}),e.label&&t.set({label:e.label,tooltip:!0}),t.on("execute",()=>{this.fire("execute",{value:e.color,source:"documentColorsGrid"})}),t}),this.documentColors.on("change:isEmpty",(e,o,s)=>{s&&(t.selectedColor=null)}),t}_addColorToDocumentColors(e){const t=this.colorDefinitions.find(t=>t.color===e);t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}var oo=o("../ckeditor5-icons/theme/icons/check.svg");class so extends s.S{items;colorPickerView;saveButtonView;cancelButtonView;actionBarView;focusTracker;keystrokes;_focusables;_colorPickerViewConfig;constructor(e,{focusTracker:t,focusables:o,keystrokes:s,colorPickerViewConfig:i}){super(e),this.items=this.createCollection(),this.focusTracker=t,this.keystrokes=s,this.set("isVisible",!1),this.set("selectedColor",void 0),this._focusables=o,this._colorPickerViewConfig=i;const n=this.bindTemplate,{saveButtonView:r,cancelButtonView:a}=this._createActionButtons();this.saveButtonView=r,this.cancelButtonView=a,this.actionBarView=this._createActionBarView({saveButtonView:r,cancelButtonView:a}),this.setTemplate({tag:"div",attributes:{class:["ck-color-picker-fragment",n.if("isVisible","ck-hidden",e=>!e)]},children:this.items})}render(){super.render();const e=new Ut(this.locale,{...this._colorPickerViewConfig});this.colorPickerView=e,this.colorPickerView.render(),this.selectedColor&&(e.color=this.selectedColor),this.listenTo(this,"change:selectedColor",(t,o,s)=>{e.color=s}),this.items.add(this.colorPickerView),this.items.add(this.actionBarView),this._addColorPickersElementsToFocusTracker(),this._stopPropagationOnArrowsKeys(),this._executeOnEnterPress(),this._executeUponColorChange()}destroy(){super.destroy()}focus(){this.colorPickerView.focus()}resetValidationStatus(){this.colorPickerView.resetValidationStatus()}_executeOnEnterPress(){this.keystrokes.set("enter",e=>{this.isVisible&&this.focusTracker.focusedElement!==this.cancelButtonView.element&&this.colorPickerView.isValid()&&(this.fire("execute",{value:this.selectedColor}),e.stopPropagation(),e.preventDefault())})}_stopPropagationOnArrowsKeys(){const e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}_addColorPickersElementsToFocusTracker(){for(const e of this.colorPickerView.slidersView)this.focusTracker.add(e.element),this._focusables.add(e);const e=this.colorPickerView.hexInputRow.children.get(1);e.element&&(this.focusTracker.add(e.element),this._focusables.add(e)),this.focusTracker.add(this.saveButtonView.element),this._focusables.add(this.saveButtonView),this.focusTracker.add(this.cancelButtonView.element),this._focusables.add(this.cancelButtonView)}_createActionBarView({saveButtonView:e,cancelButtonView:t}){const o=new s.S,i=this.createCollection();return i.add(e),i.add(t),o.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector_action-bar"]},children:i}),o}_createActionButtons(){const e=this.locale,t=e.t,o=new V._(e),s=new V._(e);return o.set({icon:oo.A,class:"ck-button-save",type:"button",withText:!1,label:t("Accept")}),s.set({icon:O.A,class:"ck-button-cancel",type:"button",withText:!1,label:t("Cancel")}),o.on("execute",()=>{this.colorPickerView.isValid()&&this.fire("execute",{source:"colorPickerSaveButton",value:this.selectedColor})}),s.on("execute",()=>{this.fire("colorPicker:cancel")}),{saveButtonView:o,cancelButtonView:s}}_executeUponColorChange(){this.colorPickerView.on("colorSelected",(e,t)=>{this.fire("execute",{value:t.color,source:"colorPicker"}),this.set("selectedColor",t.color)})}}var io=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/colorselector/colorselector.css"),no={attributes:{"data-cke":!0}};no.setAttributes=u(),no.insert=l().bind(null,"head"),no.domAPI=a(),no.insertStyleElement=p();n()(io.A,no);io.A&&io.A.locals&&io.A.locals;class ro extends s.S{focusTracker;keystrokes;items;colorGridsFragmentView;colorPickerFragmentView;_focusCycler;_focusables;_colorPickerViewConfig;constructor(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:n,colorPickerLabel:r,colorPickerViewConfig:a}){super(e),this.items=this.createCollection(),this.focusTracker=new y.$x,this.keystrokes=new y.EP,this._focusables=new I.s,this._colorPickerViewConfig=a,this._focusCycler=new N.H({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.colorGridsFragmentView=new to(e,{colors:t,columns:o,removeButtonLabel:s,documentColorsLabel:i,documentColorsCount:n,colorPickerLabel:r,focusTracker:this.focusTracker,focusables:this._focusables}),this.colorPickerFragmentView=new so(e,{focusables:this._focusables,focusTracker:this.focusTracker,keystrokes:this.keystrokes,colorPickerViewConfig:a}),this.set("_isColorGridsFragmentVisible",!0),this.set("_isColorPickerFragmentVisible",!1),this.set("selectedColor",void 0),this.colorGridsFragmentView.bind("isVisible").to(this,"_isColorGridsFragmentVisible"),this.colorPickerFragmentView.bind("isVisible").to(this,"_isColorPickerFragmentVisible"),this.on("change:selectedColor",(e,t,o)=>{this.colorGridsFragmentView.set("selectedColor",o),this.colorPickerFragmentView.set("selectedColor",o)}),this.colorGridsFragmentView.on("change:selectedColor",(e,t,o)=>{this.set("selectedColor",o)}),this.colorPickerFragmentView.on("change:selectedColor",(e,t,o)=>{this.set("selectedColor",o)}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector"]},children:this.items})}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendUI(){this._appendColorGridsFragment(),this._colorPickerViewConfig&&this._appendColorPickerFragment()}showColorPickerFragment(){this.colorPickerFragmentView.colorPickerView&&!this._isColorPickerFragmentVisible&&(this._isColorPickerFragmentVisible=!0,this.colorPickerFragmentView.focus(),this.colorPickerFragmentView.resetValidationStatus(),this._isColorGridsFragmentVisible=!1)}showColorGridsFragment(){this._isColorGridsFragmentVisible||(this._isColorGridsFragmentVisible=!0,this.colorGridsFragmentView.focus(),this._isColorPickerFragmentVisible=!1)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}updateDocumentColors(e,t){this.colorGridsFragmentView.updateDocumentColors(e,t)}updateSelectedColors(){this.colorGridsFragmentView.updateSelectedColors()}_appendColorGridsFragment(){this.items.length||(this.items.add(this.colorGridsFragmentView),this.colorGridsFragmentView.delegate("execute").to(this),this.colorGridsFragmentView.delegate("colorPicker:show").to(this))}_appendColorPickerFragment(){2!==this.items.length&&(this.items.add(this.colorPickerFragmentView),this.colorGridsFragmentView.colorPickerButtonView&&this.colorGridsFragmentView.colorPickerButtonView.on("execute",()=>{this.showColorPickerFragment()}),this.colorGridsFragmentView.addColorPickerButton(),this.colorPickerFragmentView.delegate("execute").to(this),this.colorPickerFragmentView.delegate("colorPicker:cancel").to(this))}}class ao{editor;_components=new Map;constructor(e){this.editor=e}*names(){for(const e of this._components.values())yield e.originalName}add(e,t){this._components.set(co(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new y.Yb("componentfactory-item-missing",this,{name:e});return this._components.get(co(e)).callback(this.editor.locale)}has(e){return this._components.has(co(e))}}function co(e){return String(e).toLowerCase()}var lo=o("../ckeditor5-ui/src/dropdown/dropdownview.js"),uo=o("../ckeditor5-ui/src/dropdown/dropdownpanelview.js"),ho=o("../ckeditor5-ui/src/dropdown/button/dropdownbuttonview.js"),po=o("../ckeditor5-ui/src/dropdown/button/splitbuttonview.js"),mo=o("../ckeditor5-ui/src/dropdown/menu/utils.js"),go=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenunestedmenuview.js"),fo=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenurootlistview.js"),_o=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistview.js"),bo=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistitemview.js"),wo=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenulistitembuttonview.js"),ko=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenubuttonview.js"),vo=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenunestedmenupanelview.js"),yo=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.mjs"),xo=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/tooltip/tooltip.css"),Ao={attributes:{"data-cke":!0}};Ao.setAttributes=u(),Ao.insert=l().bind(null,"head"),Ao.domAPI=a(),Ao.insertStyleElement=p();n()(xo.A,Ao);xo.A&&xo.A.locals&&xo.A.locals;const Co="ck-tooltip";class Eo extends((0,y.c5)()){tooltipTextView;balloonPanelView;static defaultBalloonPositions=oe.J.generatePositions({heightOffset:5,sideOffset:13});_currentElementWithTooltip=null;_currentTooltipPosition=null;_mutationObserver=null;_pinTooltipDebounced;_unpinTooltipDebounced;_watchdogExcluded;static _editors=new Set;static _instance=null;constructor(e){if(super(),Eo._editors.add(e),Eo._instance)return Eo._instance;Eo._instance=this,this.tooltipTextView=new s.S(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 oe.J(e.locale),this.balloonPanelView.class=Co,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=(0,Je.s)(this._pinTooltip,600),this._unpinTooltipDebounced=(0,Je.s)(this._unpinTooltip,400),this.listenTo(y.Sf.document,"keydown",this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(y.Sf.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(y.Sf.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(y.Sf.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(y.Sf.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(y.Sf.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(e){const t=e.ui.view&&e.ui.view.body;Eo._editors.delete(e),this.stopListening(e.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),Eo._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Eo._instance=null)}static getPositioningFunctions(e){const t=Eo.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 o=So(t);o?o!==this._currentElementWithTooltip?(this._unpinTooltip(),"focus"===e.name&&!o.matches(":hover")||o.matches("[data-cke-tooltip-instant]")?this._pinTooltip(o,To(o)):this._pinTooltipDebounced(o,To(o))):this._unpinTooltipDebounced.cancel():"focus"===e.name&&this._unpinTooltip()}_onLeaveOrBlur(e,{target:t,relatedTarget:o}){if("mouseleave"===e.name){if(!(0,yo.v)(t))return;const e=this.balloonPanelView.element,s=e&&(e===o||e.contains(o)),i=!s&&t===e;if(s)return void this._unpinTooltipDebounced.cancel();if(!i&&this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;const n=So(t),r=So(o);(i||n&&n!==r)&&(this._pinTooltipDebounced.cancel(),this._currentElementWithTooltip&&this._currentElementWithTooltip.matches("[data-cke-tooltip-instant]")||n&&n.matches("[data-cke-tooltip-instant]")?this._unpinTooltip():this._unpinTooltipDebounced())}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._pinTooltipDebounced.cancel(),this._unpinTooltipDebounced()}}_onScroll(e,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(e,{text:t,position:o,cssClass:s}){this._unpinTooltip();const i=(0,y.$1)(Eo._editors.values()).ui.view.body;i.has(this.balloonPanelView)||i.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.class=[Co,s].filter(e=>e).join(" "),this.balloonPanelView.pin({target:e,positions:Eo.getPositioningFunctions(o)}),this._mutationObserver.attach(e);for(const e of Eo._editors)this.listenTo(e.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=e,this._currentTooltipPosition=o}_unpinTooltip(){this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const e of Eo._editors)this.stopListening(e.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text="",this._mutationObserver.detach()}_updateTooltipPosition(){if(!this._currentElementWithTooltip)return;const e=To(this._currentElementWithTooltip);(0,y.zN)(this._currentElementWithTooltip)&&e.text?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Eo.getPositioningFunctions(e.position)}):this._unpinTooltip()}}function So(e){return(0,yo.v)(e)?e.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function To(e){return{text:e.dataset.ckeTooltipText,position:e.dataset.ckeTooltipPosition||"s",cssClass:e.dataset.ckeTooltipClass||""}}class Po extends ie{licenseTypeMessage={evaluation:"For evaluation purposes only",trial:"For evaluation purposes only",development:"For development purposes only"};constructor(e){super(e,{balloonClass:"ck-evaluation-badge-balloon"})}_isEnabled(){const e=Vo(this.editor.config.get("licenseKey"));return Boolean(e&&this.licenseTypeMessage[e])}_createBadgeContent(){const e=Vo(this.editor.config.get("licenseKey"));return new Mo(this.editor.locale,this.licenseTypeMessage[e])}_getNormalizedConfig(){const e=super._getNormalizedConfig(),t=this.editor.config.get("ui.poweredBy")||{};return{position:t.position||e.position,side:"left"===(t.side||e.side)?"right":"left",verticalOffset:e.verticalOffset,horizontalOffset:e.horizontalOffset}}}class Mo extends s.S{constructor(e,t){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-evaluation-badge"],"aria-hidden":!0},children:[{tag:"span",attributes:{class:["ck","ck-evaluation-badge__label"]},children:[t]}]})}}function Vo(e){if("GPL"==e)return"GPL";const t=(0,y.yE)(e.split(".")[1]);return t?t.licenseType||"production":null}var Oo=o("../ckeditor5-ui/src/list/listitemview.js"),Io=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenulistitem.css"),Ro={attributes:{"data-cke":!0}};Ro.setAttributes=u(),Ro.insert=l().bind(null,"head"),Ro.domAPI=a(),Ro.insertStyleElement=p();n()(Io.A,Ro);Io.A&&Io.A.locals&&Io.A.locals;class jo extends Oo.B{constructor(e,t){super(e);const o=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item"]},on:{mouseenter:o.to("mouseenter")}}),this.delegate("mouseenter").to(t)}}var zo=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs");const Bo={toggleMenusAndFocusItemsOnHover(e){e.on("menu:mouseenter",t=>{if(e.isFocusBorderEnabled||e.isOpen){if(e.isOpen)for(const o of e.menus){const e=t.path[0],s=e instanceof jo&&e.children.first===o;o.isOpen=(t.path.includes(o)||s)&&o.isEnabled}t.source.focus()}})},focusCycleMenusOnArrows(e){const t="rtl"===e.locale.uiLanguageDirection;function o(t,o){const s=e.children.getIndex(t),i=t.isOpen,n=e.children.length,r=e.children.get((s+n+o)%n);t.isOpen=!1,i&&(r.isOpen=!0),r.buttonView.focus()}e.on("menu:arrowright",e=>{o(e.source,t?-1:1)}),e.on("menu:arrowleft",e=>{o(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,o,s)=>{s&&e.menus.filter(e=>t.source.parentMenuView===e.parentMenuView&&t.source!==e&&e.isOpen).forEach(e=>{e.isOpen=!1})})},closeOnClickOutside(e){(0,k.w)({emitter:e,activator:()=>e.isOpen,callback:()=>e.close(),contextElements:()=>e.children.map(e=>e.element)})},enableFocusHighlightOnInteraction(e){let t=!1;e.on("change:isOpen",(o,s,i)=>{i||(t||(e.isFocusBorderEnabled=!1),t=!1)}),e.listenTo(e.element,"keydown",()=>{t=!0},{useCapture:!0}),e.listenTo(e.element,"keyup",()=>{t=!1},{useCapture:!0}),e.listenTo(e.element,"focus",()=>{t&&(e.isFocusBorderEnabled=!0)},{useCapture:!0})}},No={openAndFocusPanelOnArrowDownKey(e){e.keystrokes.set("arrowdown",(t,o)=>{e.isEnabled&&e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen||(e.isOpen=!0),e.panelView.focus(),o())})},openOnArrowRightKey(e){const t="rtl"===e.locale.uiLanguageDirection?"arrowleft":"arrowright";e.keystrokes.set(t,(t,o)=>{e.focusTracker.focusedElement===e.buttonView.element&&e.isEnabled&&(e.isOpen||(e.isOpen=!0),e.panelView.focus(),o())})},openOnButtonClick(e){e.buttonView.on("execute",()=>{e.isOpen=!0})},toggleOnButtonClick(e){e.buttonView.on("execute",()=>{e.isOpen=!e.isOpen})},openAndFocusOnEnterKeyPress(e){e.keystrokes.set("enter",(t,o)=>{e.focusTracker.focusedElement===e.buttonView.element&&(e.isOpen=!0,e.panelView.focus(),o())})},closeOnArrowLeftKey(e){const t="rtl"===e.locale.uiLanguageDirection?"arrowright":"arrowleft";e.keystrokes.set(t,(t,o)=>{e.isOpen&&(e.isOpen=!1,e.focus(),o())})},closeOnEscKey(e){e.keystrokes.set("esc",(t,o)=>{e.isOpen&&(e.isOpen=!1,e.focus(),o())})},closeOnParentClose(e){e.parentMenuView.on("change:isOpen",(t,o,s)=>{s||t.source!==e.parentMenuView||(e.isOpen=!1)})}},Lo={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"})},Do=[{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:"sourceEditingEnhanced",items:["menuBar:sourceEditingEnhanced"]},{groupId:"sourceEditing",items:["menuBar:sourceEditing"]},{groupId:"showBlocks",items:["menuBar:showBlocks"]},{groupId:"previewMergeFields",items:["menuBar:previewMergeFields"]},{groupId:"fullscreen",items:["menuBar:fullscreen"]},{groupId:"restrictedEditing",items:["menuBar:restrictedEditing"]}]},{menuId:"insert",label:"Insert",groups:[{groupId:"insertMainWidgets",items:["menuBar:insertImage","menuBar:ckbox","menuBar:ckfinder","menuBar:insertTable","menuBar:insertTableLayout"]},{groupId:"insertInline",items:["menuBar:link","menuBar:insertFootnote","menuBar:bookmark","menuBar:comment","menuBar:insertMergeField","menuBar:emoji"]},{groupId:"insertMinorWidgets",items:["menuBar:mediaEmbed","menuBar:insertTemplate","menuBar:specialCharacters","menuBar:blockQuote","menuBar:codeBlock","menuBar:htmlEmbed"]},{groupId:"insertStructureWidgets",items:["menuBar:horizontalLine","menuBar:pageBreak","menuBar:tableOfContents"]},{groupId:"restrictedEditingException",items:["menuBar:restrictedEditingException:inline","menuBar:restrictedEditingException:block"]}]},{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:multiLevelList","menuBar:todoList"]},{groupId:"indent",items:["menuBar:alignment","menuBar:lineHeight","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","menuBar:toggleAi","menuBar:aiQuickActions"]},{groupId:"tools",items:["menuBar:trackChanges","menuBar:commentsArchive"]}]},{menuId:"help",label:"Help",groups:[{groupId:"help",items:["menuBar:accessibilityHelp"]}]}];function Fo(e){let t;return t="items"in e&&e.items?{items:e.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1,...e}:{items:(0,zo.m)(Do),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0,...e},t}function Ho({normalizedConfig:e,locale:t,componentFactory:o,extraItems:s}){const i=(0,zo.m)(e);return qo(e,i,s),function(e,t){const o=t.removeItems,s=[];t.items=t.items.filter(({menuId:e})=>!o.includes(e)||(s.push(e),!1)),Ko(t.items,e=>{e.groups=e.groups.filter(({groupId:e})=>!o.includes(e)||(s.push(e),!1));for(const t of e.groups)t.items=t.items.filter(e=>{const t=Xo(e);return!o.includes(t)||(s.push(t),!1)})});for(const t of o)s.includes(t)||(0,y.FF)("menu-bar-item-could-not-be-removed",{menuBarConfig:e,itemName:t})}(e,i),qo(e,i,i.addItems),function(e,t,o){Ko(t.items,s=>{for(const i of s.groups)i.items=i.items.filter(i=>{const n="string"==typeof i&&!o.has(i);return n&&!t.isUsingDefaultConfig&&(0,y.FF)("menu-bar-item-unavailable",{menuBarConfig:e,parentMenuConfig:(0,zo.m)(s),componentName:i}),!n})})}(e,i,o),$o(e,i),function(e,t){const o=t.t,s={File:o({string:"File",id:"MENU_BAR_MENU_FILE"}),Edit:o({string:"Edit",id:"MENU_BAR_MENU_EDIT"}),View:o({string:"View",id:"MENU_BAR_MENU_VIEW"}),Insert:o({string:"Insert",id:"MENU_BAR_MENU_INSERT"}),Format:o({string:"Format",id:"MENU_BAR_MENU_FORMAT"}),Tools:o({string:"Tools",id:"MENU_BAR_MENU_TOOLS"}),Help:o({string:"Help",id:"MENU_BAR_MENU_HELP"}),Text:o({string:"Text",id:"MENU_BAR_MENU_TEXT"}),Font:o({string:"Font",id:"MENU_BAR_MENU_FONT"})};Ko(e.items,e=>{e.label in s&&(e.label=s[e.label])})}(i,t),i}function qo(e,t,o){const s=[];if(0!=o.length){for(const e of o){const o=Jo(e.position),i=Zo(e.position);if(Yo(e))if(i){const n=t.items.findIndex(e=>e.menuId===i);if(-1!=n)"before"===o?(t.items.splice(n,0,e.menu),s.push(e)):"after"===o&&(t.items.splice(n+1,0,e.menu),s.push(e));else{Wo(t,e.menu,i,o)&&s.push(e)}}else"start"===o?(t.items.unshift(e.menu),s.push(e)):"end"===o&&(t.items.push(e.menu),s.push(e));else if(Go(e))Ko(t.items,t=>{if(t.menuId===i)"start"===o?(t.groups.unshift(e.group),s.push(e)):"end"===o&&(t.groups.push(e.group),s.push(e));else{const n=t.groups.findIndex(e=>e.groupId===i);-1!==n&&("before"===o?(t.groups.splice(n,0,e.group),s.push(e)):"after"===o&&(t.groups.splice(n+1,0,e.group),s.push(e)))}});else{Wo(t,e.item,i,o)&&s.push(e)}}for(const t of o)s.includes(t)||(0,y.FF)("menu-bar-item-could-not-be-added",{menuBarConfig:e,addedItemConfig:t})}}function Wo(e,t,o,s){let i=!1;return Ko(e.items,e=>{for(const{groupId:n,items:r}of e.groups){if(i)return;if(n===o)"start"===s?(r.unshift(t),i=!0):"end"===s&&(r.push(t),i=!0);else{const e=r.findIndex(e=>Xo(e)===o);-1!==e&&("before"===s?(r.splice(e,0,t),i=!0):"after"===s&&(r.splice(e+1,0,t),i=!0))}}}),i}function $o(e,t){const o=t.isUsingDefaultConfig;let s=!1;t.items=t.items.filter(t=>!!t.groups.length||(Uo(e,t,o),!1)),t.items.length?(Ko(t.items,t=>{t.groups=t.groups.filter(e=>!!e.items.length||(s=!0,!1));for(const i of t.groups)i.items=i.items.filter(t=>!(Qo(t)&&!t.groups.length)||(Uo(e,t,o),s=!0,!1))}),s&&$o(e,t)):Uo(e,e,o)}function Uo(e,t,o){o||(0,y.FF)("menu-bar-menu-empty",{menuBarConfig:e,emptyMenuConfig:t})}function Ko(e,t){if(Array.isArray(e))for(const t of e)o(t);function o(e){t(e);for(const t of e.groups)for(const e of t.items)Qo(e)&&o(e)}}function Yo(e){return"object"==typeof e&&"menu"in e}function Go(e){return"object"==typeof e&&"group"in e}function Jo(e){return e.startsWith("start")?"start":e.startsWith("end")?"end":e.startsWith("after")?"after":"before"}function Zo(e){const t=e.match(/^[^:]+:(.+)/);return t?t[1]:null}function Xo(e){return"string"==typeof e?e:e.menuId}function Qo(e){return"object"==typeof e&&"menuId"in e}class es extends((0,y.VM)()){editor;componentFactory;focusTracker;tooltipManager;poweredBy;evaluationBadge;ariaLiveAnnouncer;isReady=!1;_editableElementsMap=new Map;_focusableToolbarDefinitions=[];_extraMenuBarElements=[];_lastFocusedForeignElement=null;_domEmitter;constructor(e){super();const t=e.editing.view;this.editor=e,this.componentFactory=new ao(e),this.focusTracker=new y.$x,this.tooltipManager=new Eo(e),this.poweredBy=new re(e),this.evaluationBadge=new Po(e),this.ariaLiveAnnouncer=new _(e),this._initViewportOffset(this._readViewportOffsetFromConfig()),this.once("ready",()=>{this._bindBodyCollectionWithFocusTracker(),this.isReady=!0}),this.listenTo(t.document,"layoutChanged",this.update.bind(this)),this.listenTo(t,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking(),this._initVisualViewportSupport()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy(),this.evaluationBadge.destroy();for(const e of this._editableElementsMap.values())e.ckeditorInstance=null,this.editor.keystrokes.stopListening(e);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this._domEmitter&&this._domEmitter.stopListening()}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor),this.focusTracker.add(t);const o=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?o():this.once("ready",o)}removeEditableElement(e){const t=this._editableElementsMap.get(e);t&&(this._editableElementsMap.delete(e),this.editor.keystrokes.stopListening(t),this.focusTracker.remove(t),t.ckeditorInstance=null)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(e,t={}){e.isRendered?(this.focusTracker.add(e),this.editor.keystrokes.listenTo(e.element)):e.once("render",()=>{this.focusTracker.add(e),this.editor.keystrokes.listenTo(e.element)}),this._focusableToolbarDefinitions.push({toolbarView:e,options:t})}extendMenuBar(e){this._extraMenuBarElements.push(e)}initMenuBar(e){const t=e.element;this.focusTracker.add(t),this.editor.keystrokes.listenTo(t);const o=Fo(this.editor.config.get("menuBar")||{});e.fillFromConfig(o,this.componentFactory,this._extraMenuBarElements),this.editor.keystrokes.set("Esc",(e,o)=>{t.contains(this.editor.ui.focusTracker.focusedElement)&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):this.editor.editing.view.focus(),o())}),this.editor.keystrokes.set("Alt+F9",(o,s)=>{t.contains(this.editor.ui.focusTracker.focusedElement)||(this._saveLastFocusedForeignElement(),e.isFocusBorderEnabled=!0,e.focus(),s())})}_readViewportOffsetFromConfig(){const e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;const o=e.config.get("toolbar.viewportTopOffset");return o?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:o}):{top:0}}_initFocusTracking(){const e=this.editor;let t;e.keystrokes.set("Alt+F10",(e,o)=>{this._saveLastFocusedForeignElement();const s=this._getCurrentFocusedToolbarDefinition();s&&t||(t=this._getFocusableCandidateToolbarDefinitions());for(let e=0;e<t.length;e++){const e=t.shift();if(t.push(e),e!==s&&this._focusFocusableCandidateToolbar(e)){s&&s.options.afterBlur&&s.options.afterBlur();break}}o()}),e.keystrokes.set("Esc",(t,o)=>{const s=this._getCurrentFocusedToolbarDefinition();s&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):e.editing.view.focus(),s.options.afterBlur&&s.options.afterBlur(),o())})}_saveLastFocusedForeignElement(){const e=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(e)&&!Array.from(this.editor.editing.view.domRoots.values()).includes(e)&&(this._lastFocusedForeignElement=e)}_getFocusableCandidateToolbarDefinitions(){const e=[];for(const t of this._focusableToolbarDefinitions){const{toolbarView:o,options:s}=t;((0,y.zN)(o.element)||s.beforeFocus)&&e.push(t)}return e.sort((e,t)=>ts(e)-ts(t)),e}_getCurrentFocusedToolbarDefinition(){for(const e of this._focusableToolbarDefinitions)if(e.toolbarView.element&&e.toolbarView.element.contains(this.focusTracker.focusedElement))return e;return null}_focusFocusableCandidateToolbar(e){const{toolbarView:t,options:{beforeFocus:o}}=e;return o&&o(),!!(0,y.zN)(t.element)&&(t.focus(),!0)}_handleScrollToTheSelection(e,t){const o={top:0,bottom:0,left:0,right:0,...this.viewportOffset};t.viewportOffset.top+=o.top,t.viewportOffset.bottom+=o.bottom,t.viewportOffset.left+=o.left,t.viewportOffset.right+=o.right}_bindBodyCollectionWithFocusTracker(){const e=this.view.body;for(const t of e)this.focusTracker.add(t.element);e.on("add",(e,t)=>{this.focusTracker.add(t.element)}),e.on("remove",(e,t)=>{this.focusTracker.remove(t.element)})}_initViewportOffset(e){this.on("set:viewportOffset",(e,t,o)=>{const s=this._getVisualViewportTopOffset(o);o.visualTop!==s&&(e.return={...o,visualTop:s})}),this.set("viewportOffset",e)}_initVisualViewportSupport(){if(!y.Sf.window.visualViewport)return;const e=()=>{const e=this._getVisualViewportTopOffset(this.viewportOffset);this.viewportOffset.visualTop!==e&&(this.viewportOffset={...this.viewportOffset,visualTop:e})};this._domEmitter=new((0,y.c5)()),this._domEmitter.listenTo(y.Sf.window.visualViewport,"scroll",e),this._domEmitter.listenTo(y.Sf.window.visualViewport,"resize",e)}_getVisualViewportTopOffset(e){const t=(0,y.UM)().top,o=e.top||0;return t>o?0:o-t}}function ts(e){const{toolbarView:t,options:o}=e;let s=10;return(0,y.zN)(t.element)&&s--,o.isContextual&&(s-=2),s}var os=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/editorui/editorui.css"),ss={attributes:{"data-cke":!0}};ss.setAttributes=u(),ss.insert=l().bind(null,"head"),ss.domAPI=a(),ss.insertStyleElement=p();n()(os.A,ss);os.A&&os.A.locals&&os.A.locals;class is extends s.S{body;menuBarView;toolbar;constructor(e){super(e),this.body=new ee(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class ns extends is{top;main;_voiceLabelView;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 E.y;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class rs extends s.S{name=null;_editingView;_editableElement;_hasExternalElement;constructor(e,t,o){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=o,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const e=this._editingView;function t(t){e.change(o=>{const s=e.document.getRoot(t.name);o.addClass(t.isFocused?"ck-focused":"ck-blurred",s),o.removeClass(t.isFocused?"ck-blurred":"ck-focused",s)})}e.isRenderingInProgress?function o(s){e.once("change:isRenderingInProgress",(e,i,n)=>{n?o(s):t(s)})}(this):t(this)}}class as extends rs{_options;constructor(e,t,o,s={}){super(e,t,o),this._options=s,this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const e=this._editingView;e.change(t=>{const o=e.document.getRoot(this.name);t.setAttribute("aria-label",this.getEditableAriaLabel(),o)})}getEditableAriaLabel(){const e=this.locale.t,t=this._options.label,o=this._editableElement,s=this.name;if("string"==typeof t)return t;if("object"==typeof t)return t[s];if("function"==typeof t)return t(this);if(o){const e=o.getAttribute("aria-label");if(e)return e}return e("Rich Text Editor. Editing area: %0",s)}}var cs=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/formrow/formrow.css"),ls={attributes:{"data-cke":!0}};ls.setAttributes=u(),ls.insert=l().bind(null,"head"),ls.domAPI=a(),ls.insertStyleElement=p();n()(cs.A,ls);cs.A&&cs.A.locals&&cs.A.locals;class ds extends s.S{children;constructor(e,t={}){super(e);const o=this.bindTemplate;this.set("class",["ck","ck-form__row",...(0,y.$r)(t.class||[])]),this.children=this.createCollection(),t.children&&t.children.forEach(e=>this.children.add(e)),this.set("_role",null),this.set("_ariaLabelledBy",null),t.labelView&&this.set({_role:"group",_ariaLabelledBy:t.labelView.id}),this.setTemplate({tag:"div",attributes:{class:o.to("class",e=>e.join(" ")),role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:this.children})}}class us extends s.S{constructor(e){super(e);const t=this.bindTemplate;this.setTemplate({tag:"iframe",attributes:{class:["ck","ck-reset_all"],sandbox:"allow-same-origin allow-scripts"},on:{load:t.to("loaded")}})}render(){return new Promise(e=>(this.on("loaded",e),super.render()))}}var hs=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/labeledinput/labeledinput.css"),ps={attributes:{"data-cke":!0}};ps.setAttributes=u(),ps.insert=l().bind(null,"head"),ps.domAPI=a(),ps.insertStyleElement=p();n()(hs.A,ps);hs.A&&hs.A.locals&&hs.A.locals;class ms extends s.S{labelView;inputView;statusView;constructor(e,t){super(e);const o=`ck-input-${(0,y.Ld)()}`,s=`ck-status-${(0,y.Ld)()}`;this.set("label",void 0),this.set("value",void 0),this.set("isReadOnly",!1),this.set("errorText",null),this.set("infoText",null),this.labelView=this._createLabelView(o),this.inputView=this._createInputView(t,o,s),this.statusView=this._createStatusView(s),this.bind("_statusText").to(this,"errorText",this,"infoText",(e,t)=>e||t);const i=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-input",i.if("isReadOnly","ck-disabled")]},children:[this.labelView,this.inputView,this.statusView]})}_createLabelView(e){const t=new E.y(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createInputView(e,t,o){const s=new e(this.locale,o);return s.id=t,s.ariaDescribedById=o,s.bind("value").to(this),s.bind("isReadOnly").to(this),s.bind("hasError").to(this,"errorText",e=>!!e),s.on("input",()=>{this.errorText=null}),s}_createStatusView(e){const t=new s.S(this.locale),o=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-input__status",o.if("errorText","ck-labeled-input__status_error"),o.if("_statusText","ck-hidden",e=>!e)],id:e,role:o.if("errorText","alert")},children:[{text:o.to("_statusText")}]}),t}select(){this.inputView.select()}focus(){this.inputView.focus()}}var gs=o("../ckeditor5-ui/src/list/listitemgroupview.js"),fs=o("../ckeditor5-ui/src/list/listseparatorview.js"),_s=o("../ckeditor5-ui/src/list/listview.js");function bs(e,t){let o=0,s=0;for(const i of t){const t=i,n=t.items,r=e&&!!t.label.match(e);t.labelView.highlightText(r?e:null);for(const t of n){const o=t.children.first,s=o.labelView;if(e){const i=!!o.label.match(e);s.highlightText(i?e:null),t.isVisible=r||i}else t.isVisible=!0,s.highlightText(null)}const a=n.filter(e=>e.isVisible).length;o+=t.items.length,s+=r?t.items.length:a,t.isVisible=r||!!a}return{resultsCount:s,totalItemsCount:o}}class ws extends P.HY{static get pluginName(){return"Notification"}static get isOfficialPlugin(){return!0}init(){this.on("show:warning",(e,t)=>{window.alert(t.message)},{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){const t=e.namespace?`show:${e.type}:${e.namespace}`:`show:${e.type}`;this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}var ks=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/assignIn.mjs");class vs extends((0,y.VM)()){constructor(e,t){super(),t&&(0,ks.J)(this,t),e&&this.set(e)}}var ys=o("../ckeditor5-ui/src/panel/balloon/contextualballoon.js"),xs=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/panel/stickypanel.css"),As={attributes:{"data-cke":!0}};As.setAttributes=u(),As.insert=l().bind(null,"head"),As.domAPI=a(),As.insertStyleElement=p();n()(xs.A,As);xs.A&&xs.A.locals&&xs.A.locals;const Cs=(0,y.To)("px");class Es extends s.S{content;contentPanelElement;_contentPanelPlaceholder;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 Q.Bj({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",e=>e?"block":"none"),height:t.to("isSticky",e=>e?Cs(this._contentPanelRect.height):null)}}}).render(),this.contentPanelElement=new Q.Bj({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?Cs(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:t.to("_stickyTopOffset",e=>e?Cs(e):e),bottom:t.to("_stickyBottomOffset",e=>e?Cs(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(y.Sf.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()}),y.Sf.window.visualViewport&&(this.listenTo(y.Sf.window.visualViewport,"scroll",()=>{this.checkIfShouldBeSticky()}),this.listenTo(y.Sf.window.visualViewport,"resize",()=>{this.checkIfShouldBeSticky()}))}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const e=new y.rw(this.limiterElement);let t=e.getVisible();if(t){const e=new y.rw(y.Sf.window);e.top+=this.viewportTopOffset,e.height-=this.viewportTopOffset,t=t.getIntersection(e)}const{left:o,top:s}=(0,y.UM)();if(e.moveBy(o,s),t&&t.moveBy(o,s),t&&e.top<t.top)if(this._contentPanelRect.height+this.limiterBottomOffset>t.height){const o=Math.max(e.bottom-t.bottom,0)+this.limiterBottomOffset;this._contentPanelRect.height+o+1<e.height?this._stickToBottomOfLimiter(o):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<e.height?this._stickToTopOfAncestors(t.top):this._unstick();else this._unstick()}_stickToTopOfAncestors(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=e,this._stickyBottomOffset=null,this._marginLeft=Cs(-y.Sf.window.scrollX+(0,y.UM)().left)}_stickToBottomOfLimiter(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=e,this._marginLeft=Cs(-y.Sf.window.scrollX+(0,y.UM)().left)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new y.rw(this.contentPanelElement)}}var Ss=o("../ckeditor5-icons/theme/icons/loupe.svg");class Ts extends Qe{iconView;resetButtonView;_viewConfig;constructor(e,t){const o=e.t,s=Object.assign({},{showResetButton:!0,showIcon:!0,creator:ut},t);super(e,s.creator),this.label=t.label,this._viewConfig=s,this._viewConfig.showIcon&&(this.iconView=new R.L,this.iconView.content=Ss.A,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new V._(e),this.resetButtonView.set({label:o("Clear"),icon:O.A,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 Ps extends s.S{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 Ms extends s.S{focusTracker;children;_focusCycler;constructor(e){super(e),this.children=this.createCollection(),this.focusTracker=new y.$x,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new N.H({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 Vs=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/string/escapeRegExp.mjs"),Os=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/search/search.css"),Is={attributes:{"data-cke":!0}};Is.setAttributes=u(),Is.insert=l().bind(null,"head"),Is.domAPI=a(),Is.insertStyleElement=p();n()(Os.A,Is);Os.A&&Os.A.locals&&Os.A.locals;class Rs extends s.S{focusTracker;keystrokes;resultsView;filteredView;infoView;queryView;focusCycler;_config;constructor(e,t){super(e),this._config=t,this.filteredView=t.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new y.$x,this.keystrokes=new y.EP,this.resultsView=new Ms(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 Ps,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new N.H({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(e,{resultsCount:t,totalItemsCount:o})=>{this.resultsCount=t,this.totalItemsCount=o}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",t.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const e=e=>e.stopPropagation();for(const e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search(""),this.filteredView.element.scrollTo(0,0)}search(e){const t=e?new RegExp((0,Vs.N)(e),"ig"):null,o=this.filteredView.filter(t);this.fire("search",{query:e,...o})}_createSearchTextQueryView(){const e=new Ts(this.locale,this._config.queryView);return this.listenTo(e.fieldView,"input",()=>{this.search(e.fieldView.element.value)}),e.on("reset",()=>this.reset()),e.bind("isEnabled").to(this),e}_enableDefaultInfoViewBehavior(){const e=this.locale.t,t=this.infoView;function o(e,{query:t,resultsCount:o,totalItemsCount:s}){return"function"==typeof e?e(t,o,s):e}this.on("search",(s,i)=>{if(i.resultsCount)t.set({isVisible:!1});else{const s=this._config.infoView&&this._config.infoView.text;let n,r;i.totalItemsCount?s?.notFound?(n=s.notFound.primary,r=s.notFound.secondary):(n=e("No results found"),r=""):s?.noSearchableItems?(n=s.noSearchableItems.primary,r=s.noSearchableItems.secondary):(n=e("No searchable items"),r=""),t.set({primaryText:o(n,i),secondaryText:o(r,i),isVisible:!0})}})}}var js=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/autocomplete/autocomplete.css"),zs={attributes:{"data-cke":!0}};zs.setAttributes=u(),zs.insert=l().bind(null,"head"),zs.domAPI=a(),zs.insertStyleElement=p();n()(js.A,zs);js.A&&js.A.locals&&js.A.locals;class Bs extends Rs{_config;constructor(e,t){super(e,t),this._config=t;const o=(0,y.To)("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const s=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[s.if("isVisible","ck-hidden",e=>!e),s.to("_position",e=>`ck-search__results_${e}`)],style:{width:s.to("_width",o)}}}),this.focusTracker.on("change:isFocused",(e,o,s)=>{this._updateResultsVisibility(),s?this.resultsView.element.scrollTop=0:t.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(e,t)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,t())}),this.listenTo(y.Sf.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 y.rw(this.queryView.fieldView.element).width;const e=Bs._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:Bs.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}static defaultResultsPositions=[e=>({top:e.bottom,left:e.left,name:"s"}),(e,t)=>({top:e.top-t.height,left:e.left,name:"n"})];static _getOptimalPosition=y.W}const Ns={"&":"&","<":"<",">":">",'"':""","'":"'"};var Ls=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/util/toString.mjs");function Ds(e){return(0,Ls.d)(e).replace(/[&<>"']/g,e=>Ns[e])}var Fs=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"),Hs={attributes:{"data-cke":!0}};Hs.setAttributes=u(),Hs.insert=l().bind(null,"head"),Hs.domAPI=a(),Hs.insertStyleElement=p();n()(Fs.A,Hs);Fs.A&&Fs.A.locals&&Fs.A.locals;class qs extends s.S{constructor(){super(),this.set("text",void 0),this.setTemplate({tag:"span",attributes:{class:["ck","ck-highlighted-text"]}}),this.on("render",()=>{this.on("change:text",()=>{this._updateInnerHTML(this.text)}),this._updateInnerHTML(this.text)})}highlightText(e){this._updateInnerHTML(function(e,t){if(!t)return Ds(e);const o=[];let s=0,i=t.exec(e);for(;null!==i;){const n=i.index;n!==s&&o.push({text:e.substring(s,n),isMatch:!1}),o.push({text:i[0],isMatch:!0}),s=t.lastIndex,i=t.exec(e)}s!==e.length&&o.push({text:e.substring(s),isMatch:!1});return o.map(e=>(e.text=Ds(e.text),e)).map(e=>e.isMatch?`<mark>${e.text}</mark>`:e.text).join("")}(this.text||"",e))}_updateInnerHTML(e){this.element.innerHTML=e||""}}class Ws extends qs{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const e=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-button__label"],style:e.to("style"),id:e.to("id")}})}}class $s extends qs{id;constructor(){super(),this.set("for",void 0);const e=this.bindTemplate;this.id=`ck-editor__label_${(0,y.Ld)()}`,this.extendTemplate({attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")}})}}var Us=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/spinner/spinner.css"),Ks={attributes:{"data-cke":!0}};Ks.setAttributes=u(),Ks.insert=l().bind(null,"head"),Ks.domAPI=a(),Ks.insertStyleElement=p();n()(Us.A,Ks);Us.A&&Us.A.locals&&Us.A.locals;class Ys extends s.S{constructor(){super(),this.set("isVisible",!1);const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-spinner-container",e.if("isVisible","ck-hidden",e=>!e)]},children:[{tag:"span",attributes:{class:["ck","ck-spinner"]}}]})}}var Gs=o("../ckeditor5-ui/src/toolbar/toolbarview.js"),Js=o("../ckeditor5-ui/src/toolbar/toolbarlinebreakview.js"),Zs=o("../ckeditor5-ui/src/toolbar/toolbarseparatorview.js"),Xs=o("../ckeditor5-ui/src/toolbar/normalizetoolbarconfig.js"),Qs=o("../ckeditor5-engine/src/index.ts");const ei=(0,y.To)("px");class ti extends P.k_{toolbarView;focusTracker;_balloonConfig;_resizeObserver=null;_balloon;_fireSelectionChangeDebounced;static get pluginName(){return"BalloonToolbar"}static get isOfficialPlugin(){return!0}static get requires(){return[ys.p]}constructor(e){super(e),this._balloonConfig=(0,Xs.f)(e.config.get("balloonToolbar")),this.toolbarView=this._createToolbarView(),this.focusTracker=new y.$x,this._trackFocusableEditableElements(),this.focusTracker.add(this.toolbarView),e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this.show(!0),afterBlur:()=>this.hide(),isContextual:!0}),this._balloon=e.plugins.get(ys.p),this._fireSelectionChangeDebounced=(0,Je.s)(()=>this.fire("_selectionChangeDebounced"),200),this.decorate("show")}init(){const e=this.editor,t=e.model.document.selection;this.listenTo(this.focusTracker,"change:isFocused",(e,t,o)=>{!o&&this._isToolbarVisible?this.hide():o&&this.show()}),this.listenTo(t,"change:range",(e,o)=>{(o.directChange||t.isCollapsed)&&this.hide(),this._fireSelectionChangeDebounced()}),this.listenTo(this,"_selectionChangeDebounced",()=>{this.editor.editing.view.document.isFocused&&this.show()}),this._balloonConfig.shouldNotGroupWhenFull||this.listenTo(e,"ready",()=>{const t=e.ui.view.editable.element;this._resizeObserver=new y.tb(t,e=>{this.toolbarView.maxWidth=ei(.9*e.contentRect.width)})}),this.listenTo(this.toolbarView,"groupedItemsUpdate",()=>{this._updatePosition()}),e.ui.once("ready",()=>{this.toolbarView.fillFromConfig(this._balloonConfig,this.editor.ui.componentFactory)})}get _isToolbarVisible(){return this._balloon.visibleView===this.toolbarView}_createToolbarView(){const e=this.editor.locale.t,t=!this._balloonConfig.shouldNotGroupWhenFull,o=new Gs.X3(this.editor.locale,{shouldGroupWhenFull:t,isFloating:!0});return o.ariaLabel=e("Editor contextual toolbar"),o.render(),o}show(e=!1){const t=this.editor,o=t.model.document.selection,s=t.model.schema;this._balloon.hasView(this.toolbarView)||o.isCollapsed&&!e||function(e,t){if(1===e.rangeCount)return!1;return[...e.getRanges()].every(e=>{const o=e.getContainedElement();return o&&t.isSelectable(o)})}(o,s)||Array.from(this.toolbarView.items).every(e=>void 0!==e.isEnabled&&!e.isEnabled)||(this.listenTo(this.editor.ui,"update",()=>{this._updatePosition()}),this._balloon.add({view:this.toolbarView,position:this._getBalloonPositionData(),balloonClassName:"ck-toolbar-container"}))}hide(){this._balloon.hasView(this.toolbarView)&&(this.stopListening(this.editor.ui,"update"),this._balloon.remove(this.toolbarView))}_trackFocusableEditableElements(){const{editor:e,focusTracker:t}=this,{editing:o}=e;o.view.addObserver(class extends Qs.nun{observe(e){t.add(e)}stopObserving(e){t.remove(e)}})}_getBalloonPositionData(){const e=this.editor.editing.view,t=e.document,o=t.selection,s=t.selection.isBackward;return{target:()=>{const t=s?o.getFirstRange():o.getLastRange(),i=y.rw.getDomRangeRects(e.domConverter.viewRangeToDom(t));return s?i[0]:(i.length>1&&0===i[i.length-1].width&&i.pop(),i[i.length-1])},positions:this._getBalloonPositions(s)}}_updatePosition(){this._isToolbarVisible&&this._balloon.updatePosition(this._getBalloonPositionData())}destroy(){super.destroy(),this.stopListening(),this._fireSelectionChangeDebounced.cancel(),this.toolbarView.destroy(),this.focusTracker.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_getBalloonPositions(e){const t=y._K.isSafari&&y._K.isiOS?oe.J.generatePositions({heightOffset:Math.max(oe.J.arrowHeightOffset,Math.round(20/y.Sf.window.visualViewport.scale))}):oe.J.defaultPositions;return e?[t.northWestArrowSouth,t.northWestArrowSouthWest,t.northWestArrowSouthEast,t.northWestArrowSouthMiddleEast,t.northWestArrowSouthMiddleWest,t.southWestArrowNorth,t.southWestArrowNorthWest,t.southWestArrowNorthEast,t.southWestArrowNorthMiddleWest,t.southWestArrowNorthMiddleEast]:[t.southEastArrowNorth,t.southEastArrowNorthEast,t.southEastArrowNorthWest,t.southEastArrowNorthMiddleEast,t.southEastArrowNorthMiddleWest,t.northEastArrowSouth,t.northEastArrowSouthEast,t.northEastArrowSouthWest,t.northEastArrowSouthMiddleEast,t.northEastArrowSouthMiddleWest]}}var oi=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css"),si={attributes:{"data-cke":!0}};si.setAttributes=u(),si.insert=l().bind(null,"head"),si.domAPI=a(),si.insertStyleElement=p();n()(oi.A,si);oi.A&&oi.A.locals&&oi.A.locals;const ii=(0,y.To)("px");class ni extends V._{constructor(e){super(e);const t=this.bindTemplate;this.isVisible=!1,this.isToggleable=!0,this.set("top",0),this.set("left",0),this.extendTemplate({attributes:{class:"ck-block-toolbar-button",style:{top:t.to("top",e=>ii(e)),left:t.to("left",e=>ii(e))}}})}}const ri=(0,y.To)("px");class ai extends P.k_{toolbarView;panelView;buttonView;_resizeObserver=null;_blockToolbarConfig;static get pluginName(){return"BlockToolbar"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this._blockToolbarConfig=(0,Xs.f)(this.editor.config.get("blockToolbar")),this.toolbarView=this._createToolbarView(),this.panelView=this._createPanelView(),this.buttonView=this._createButtonView(),(0,k.w)({emitter:this.panelView,contextElements:[this.panelView.element,this.buttonView.element],activator:()=>this.panelView.isVisible,callback:()=>this._hidePanel()})}init(){const e=this.editor,t=e.t,o=t("Click to edit block"),s=t("Drag to move"),i=t("Edit block"),n=e.plugins.has("DragDropBlockToolbar"),r=n?`${o}\n${s}`:i;this.buttonView.label=r,n&&(this.buttonView.element.dataset.ckeTooltipClass="ck-tooltip_multi-line"),this.listenTo(e.model.document.selection,"change:range",(e,t)=>{t.directChange&&this._hidePanel()}),this.listenTo(e.ui,"update",()=>this._updateButton()),this.listenTo(e,"change:isReadOnly",()=>this._updateButton(),{priority:"low"}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>this._updateButton()),this.listenTo(this.buttonView,"change:isVisible",(e,t,o)=>{o?this.buttonView.listenTo(window,"resize",()=>this._updateButton()):(this.buttonView.stopListening(window,"resize"),this._hidePanel())}),this._repositionButtonOnScroll(),e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this._showPanel(),afterBlur:()=>this._hidePanel()}),e.ui.once("ready",()=>{this.toolbarView.fillFromConfig(this._blockToolbarConfig,this.editor.ui.componentFactory);for(const e of this.toolbarView.items)e.on("execute",()=>this._hidePanel(!0),{priority:"high"})})}destroy(){super.destroy(),this.panelView.destroy(),this.buttonView.destroy(),this.toolbarView.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_createToolbarView(){const e=this.editor.locale.t,t=!this._blockToolbarConfig.shouldNotGroupWhenFull,o=new Gs.X3(this.editor.locale,{shouldGroupWhenFull:t,isFloating:!0});return o.ariaLabel=e("Editor block content toolbar"),o}_createPanelView(){const e=this.editor,t=new oe.J(e.locale);return t.content.add(this.toolbarView),t.class="ck-toolbar-container",e.ui.view.body.add(t),this.toolbarView.keystrokes.set("Esc",(e,t)=>{this._hidePanel(!0),t()}),t}_createButtonView(){const e=this.editor,t=e.t,o=new ni(e.locale),s=this._blockToolbarConfig.icon,i=Gs.NV[s]||s||Gs.NV.dragIndicator;return o.set({label:t("Edit block"),icon:i,withText:!1}),o.bind("isOn").to(this.panelView,"isVisible"),o.bind("tooltip").to(this.panelView,"isVisible",e=>!e),this.listenTo(o,"execute",()=>{this.panelView.isVisible?this._hidePanel(!0):this._showPanel()}),this.listenTo(o,"change:isEnabled",(e,t,o)=>{!o&&this.panelView.isVisible&&this._hidePanel(!1)}),e.ui.view.body.add(o),o}_updateButton(){const e=this.editor,t=e.model,o=e.editing.view;if(!e.ui.focusTracker.isFocused)return void this._hideButton();if(!e.model.canEditAt(e.model.document.selection))return void this._hideButton();const s=Array.from(t.document.selection.getSelectedBlocks())[0];if(!s||Array.from(this.toolbarView.items).every(e=>!e.isEnabled))return void this._hideButton();const i=o.domConverter.mapViewToDom(e.editing.mapper.toViewElement(s));this.buttonView.isVisible=!0,this._setupToolbarResize(),this._attachButtonToElement(i),this.panelView.isVisible&&this._showPanel()}_hideButton(){this.buttonView.isVisible=!1}_showPanel(){if(!this.buttonView.isVisible)return;const e=this.panelView.isVisible;this.panelView.show();const t=this._getSelectedEditableElement();this.toolbarView.maxWidth=this._getToolbarMaxWidth(t),this.panelView.pin({target:this.buttonView.element,limiter:t}),e||this.toolbarView.items.get(0).focus()}_getSelectedEditableElement(){const e=this.editor.model.document.selection.getFirstRange().root.rootName;return this.editor.ui.getEditableElement(e)}_hidePanel(e){this.panelView.isVisible=!1,e&&this.editor.editing.view.focus()}_repositionButtonOnScroll(){const{buttonView:e}=this;let t=!1;const o=(e,o)=>{if(t)return;const s=this._getSelectedEditableElement();(o.target===y.Sf.document||(0,y.DS)(s).includes(o.target))&&(t=!0,y.Sf.window.requestAnimationFrame(()=>{this._updateButton(),t=!1}))};e.on("change:isVisible",(t,s,i)=>{i?e.listenTo(y.Sf.document,"scroll",o,{useCapture:!0,usePassive:!0}):e.stopListening(y.Sf.document,"scroll",o)})}_attachButtonToElement(e){const t=this.buttonView.element,o=this._getSelectedEditableElement(),s=window.getComputedStyle(e),i=new y.rw(o),n=parseInt(s.paddingTop,10),r=parseInt(s.lineHeight,10)||1.2*parseInt(s.fontSize,10),a=new y.rw(t),c=new y.rw(e);let l;l="ltr"===this.editor.locale.uiLanguageDirection?i.left-a.width:i.right;const d=c.top+n+(r-a.height)/2;a.moveTo(l,d);const u=a.toAbsoluteRect();this.buttonView.top=u.top,this.buttonView.left=u.left,this._clipButtonToViewport(this.buttonView,o)}_clipButtonToViewport(e,t){const o=new y.rw(e.element),s=new y.rw(t).getVisible(),i=(...t)=>{e.element.style.clipPath=t.length?`polygon(${t.join(",")})`:""},n=t=>{e.isEnabled=!t,e.element.style.pointerEvents=t?"none":""};if(s&&s.bottom<o.bottom){const e=Math.min(o.height,o.bottom-s.bottom);n(e>=o.height),i("0 0","100% 0",`100% calc(100% - ${ri(e)})`,`0 calc(100% - ${ri(e)}`)}else if(s&&s.top>o.top){const e=Math.min(o.height,s.top-o.top);n(e>=o.height),i(`0 ${ri(e)}`,`100% ${ri(e)}`,"100% 100%","0 100%")}else n(!1),i()}_setupToolbarResize(){const e=this._getSelectedEditableElement();this._blockToolbarConfig.shouldNotGroupWhenFull||(this._resizeObserver&&this._resizeObserver.element!==e&&(this._resizeObserver.destroy(),this._resizeObserver=null),this._resizeObserver||(this._resizeObserver=new y.tb(e,()=>{this.toolbarView.maxWidth=this._getToolbarMaxWidth(e)})))}_getToolbarMaxWidth(e){const t=new y.rw(e),o=new y.rw(this.buttonView.element),s="rtl"===this.editor.locale.uiLanguageDirection?o.left-t.right+o.width:t.left-o.left;return ri(t.width+s)}}var ci=o("../../../../node_modules/.pnpm/es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs"),li=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenubutton.css"),di={attributes:{"data-cke":!0}};di.setAttributes=u(),di.insert=l().bind(null,"head"),di.domAPI=a(),di.insertStyleElement=p();n()(li.A,di);li.A&&li.A.locals&&li.A.locals;class ui extends de.${arrowView;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 R.L;return e.content=ge.A,e.extendTemplate({attributes:{class:"ck-menu-bar__menu__button__arrow"}}),e}}var hi=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenupanel.css"),pi={attributes:{"data-cke":!0}};pi.setAttributes=u(),pi.insert=l().bind(null,"head"),pi.domAPI=a(),pi.insertStyleElement=p();n()(hi.A,pi);hi.A&&hi.A.locals&&hi.A.locals;class mi extends s.S{children;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 gi=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubarmenu.css"),fi={attributes:{"data-cke":!0}};fi.setAttributes=u(),fi.insert=l().bind(null,"head"),fi.domAPI=a(),fi.insertStyleElement=p();n()(gi.A,fi);gi.A&&gi.A.locals&&gi.A.locals;class _i extends s.S{buttonView;panelView;focusTracker;keystrokes;constructor(e){super(e);const t=this.bindTemplate;this.buttonView=new ui(e),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.panelView=new mi(e),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new y.EP,this.focusTracker=new y.$x,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),No.closeOnEscKey(this),this._repositionPanelOnOpen()}_attachBehaviors(){this.parentMenuView?(No.openOnButtonClick(this),No.openOnArrowRightKey(this),No.closeOnArrowLeftKey(this),No.openAndFocusOnEnterKeyPress(this),No.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),No.openAndFocusPanelOnArrowDownKey(this),No.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,o)=>{if(!o)return;const s=_i._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=s?s.name:this._defaultMenuPositionName})}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:e,southWest:t,northEast:o,northWest:s,westSouth:i,eastSouth:n,westNorth:r,eastNorth:a}=Lo;return"ltr"===this.locale.uiLanguageDirection?this.parentMenuView?[n,a,i,r]:[e,t,o,s]:this.parentMenuView?[i,r,n,a]:[t,e,s,o]}get _defaultMenuPositionName(){return"ltr"===this.locale.uiLanguageDirection?this.parentMenuView?"es":"se":this.parentMenuView?"ws":"sw"}static _getOptimalPosition=y.W}class bi extends _s.u{constructor(e){super(e),this.role="menu",this.items.on("change",this._setItemsCheckSpace.bind(this))}_setItemsCheckSpace(){const e=Array.from(this.items).some(e=>{const t=wi(e);return t&&t.isToggleable});this.items.forEach(t=>{const o=wi(t);o&&(o.hasCheckSpace=e)})}}function wi(e){return e instanceof Oo.B?e.children.map(e=>function(e){return"object"==typeof e&&"buttonView"in e&&e.buttonView instanceof V._}(e)?e.buttonView:e).find(e=>e instanceof de.$):null}o("../ckeditor5-ui/theme/components/menubar/menubarmenulistitembutton.css");class ki extends he{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 vi=o("../../../../node_modules/.pnpm/css-loader@7.1.2_webpack@5.102.1/node_modules/css-loader/dist/cjs.js!../../../../node_modules/.pnpm/postcss-loader@8.2.0_postcss@8.5.6_typescript@5.3.3_webpack@5.102.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!../ckeditor5-ui/theme/components/menubar/menubar.css"),yi={attributes:{"data-cke":!0}};yi.setAttributes=u(),yi.insert=l().bind(null,"head"),yi.domAPI=a(),yi.insertStyleElement=p();n()(vi.A,yi);vi.A&&vi.A.locals&&vi.A.locals;const xi=["mouseenter","arrowleft","arrowright","change:isOpen"];class Ai extends s.S{children;menus=[];constructor(e){super(e);const t=e.t,o=this.bindTemplate;this.set({isOpen:!1,isFocusBorderEnabled:!1}),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar",o.if("isFocusBorderEnabled","ck-menu-bar_focus-border-enabled")],"aria-label":t("Editor menu bar"),role:"menubar"},children:this.children})}fillFromConfig(e,t,o=[]){const s=Ho({normalizedConfig:e,locale:this.locale,componentFactory:t,extraItems:o}).items.map(e=>this._createMenu({componentFactory:t,menuDefinition:e}));this.children.addMany(s)}render(){super.render(),Bo.toggleMenusAndFocusItemsOnHover(this),Bo.closeMenusWhenTheBarCloses(this),Bo.closeMenuWhenAnotherOnTheSameLevelOpens(this),Bo.focusCycleMenusOnArrows(this),Bo.closeOnClickOutside(this),Bo.enableFocusHighlightOnInteraction(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(const e of this.children)e.isOpen=!1}disable(){for(const e of this.children)e.isEnabled=!1}enable(){for(const e of this.children)e.isEnabled=!0}registerMenu(e,t=null){t?(e.delegate(...xi).to(t),e.parentMenuView=t):e.delegate(...xi).to(this,e=>"menu:"+e),e._attachBehaviors(),this.menus.push(e)}_createMenu({componentFactory:e,menuDefinition:t,parentMenuView:o}){const s=this.locale,i=new _i(s);return this.registerMenu(i,o),i.buttonView.set({label:t.label}),i.once("change:isOpen",()=>{const o=new bi(s);o.ariaLabel=t.label,i.panelView.children.add(o),o.items.addMany(this._createMenuItems({menuDefinition:t,parentMenuView:i,componentFactory:e}))}),i}_createMenuItems({menuDefinition:e,parentMenuView:t,componentFactory:o}){const s=this.locale,i=[];for(const n of e.groups){for(const e of n.items){const n=new jo(s,t);if((0,ci.G)(e))n.children.add(this._createMenu({componentFactory:o,menuDefinition:e,parentMenuView:t}));else{const s=this._createMenuItemContentFromFactory({componentName:e,componentFactory:o,parentMenuView:t});if(!s)continue;n.children.add(s)}i.push(n)}n!==e.groups[e.groups.length-1]&&i.push(new fs.J(s))}return i}_createMenuItemContentFromFactory({componentName:e,parentMenuView:t,componentFactory:o}){const s=o.create(e);return s instanceof _i||s instanceof G.k||s instanceof ki?(this._registerMenuTree(s,t),s.on("execute",()=>{this.close()}),s):((0,y.FF)("menu-bar-component-unsupported",{componentName:e,componentView:s}),null)}_registerMenuTree(e,t){if(!(e instanceof _i))return void e.delegate("mouseenter").to(t);this.registerMenu(e,t);const o=e.panelView.children.filter(e=>e instanceof bi)[0];if(!o)return void e.delegate("mouseenter").to(t);const s=o.items.filter(e=>e instanceof Oo.B);for(const t of s)this._registerMenuTree(t.children.get(0),e)}_setupIsOpenUpdater(){let e;this.on("menu:change:isOpen",(t,o,s)=>{clearTimeout(e),s?this.isOpen=!0:e=setTimeout(()=>{this.isOpen=Array.from(this.children).some(e=>e.isOpen)},0)})}}var Ci=o("../ckeditor5-ui/src/bindings/preventdefault.js"),Ei=o("../ckeditor5-ui/src/dropdown/menu/dropdownmenubehaviors.js")},"./src/undo.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{RedoCommand:()=>l,Undo:()=>f,UndoCommand:()=>c,UndoEditing:()=>d,UndoRedoBaseCommand:()=>n,UndoUI:()=>g});var s=o("../ckeditor5-core/src/index.ts"),i=o("../ckeditor5-engine/src/index.ts");class n extends s.uB{_stack=[];_createdBatches=new WeakSet;constructor(e){super(e),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(e.data,"set",(e,t)=>{t[1]={...t[1]};const o=t[1];o.batchType||(o.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(e.data,"set",(e,t)=>{t[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(e){const t=this.editor.model.document.selection,o={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,o){const s=this.editor.model,i=s.document,n=[],c=e.map(e=>e.getTransformedByOperations(o)),l=c.flat();for(const e of c){const t=e.filter(e=>e.root!=i.graveyard).filter(e=>!a(e,l));t.length&&(r(t),n.push(t[0]))}n.length&&s.change(e=>{e.setSelection(n,{backward:t})})}_undo(e,t){const o=this.editor.model,s=o.document;this._createdBatches.add(t);const n=e.operations.slice().filter(e=>e.isDocumentOperation);n.reverse();for(const e of n){const n=e.baseVersion+1,r=Array.from(s.history.getOperations(n)),a=(0,i.dq5)([e.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let n of a){const r=n.affectedSelectable;r&&!o.canEditAt(r)&&(n=new i.fS6(n.baseVersion)),t.addOperation(n),o.applyOperation(n),s.history.setOperationAsUndone(e,n)}}}}function r(e){e.sort((e,t)=>e.start.isBefore(t.start)?-1:1);for(let t=1;t<e.length;t++){const o=e[t-1].getJoined(e[t],!0);o&&(t--,e.splice(t,2,o))}}function a(e,t){return t.some(t=>t!==e&&t.containsRange(e,!0))}class c extends n{execute(e=null){const t=e?this._stack.findIndex(t=>t.batch==e):this._stack.length-1,o=this._stack.splice(t,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(o.batch,s);const e=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,e)}),this.fire("revert",o.batch,s),this.refresh()}}class l extends n{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{const o=e.batch.operations[e.batch.operations.length-1].baseVersion+1,s=this.editor.model.document.history.getOperations(o);this._restoreSelection(e.selection.ranges,e.selection.isBackward,s),this._undo(e.batch,t)}),this.fire("revert",e.batch,t),this.refresh()}}class d extends s.k_{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;this._undoCommand=new c(e),this._redoCommand=new l(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(e,t)=>{const o=t[0];if(!o.isDocumentOperation)return;const s=o.batch,i=this._redoCommand.createdBatches.has(s),n=this._undoCommand.createdBatches.has(s);this._batchRegistry.has(s)||(this._batchRegistry.add(s),s.isUndoable&&(i?this._undoCommand.addBatch(s):n||(this._undoCommand.addBatch(s),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,t,o)=>{this._redoCommand.addBatch(o)}),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo"),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Undo"),keystroke:"CTRL+Z"},{label:t("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}var u=o("../ckeditor5-ui/src/button/buttonview.js"),h=o("../ckeditor5-ui/src/menubar/menubarmenulistitembuttonview.js"),p=o("../ckeditor5-icons/theme/icons/undo.svg"),m=o("../ckeditor5-icons/theme/icons/redo.svg");class g extends s.k_{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.locale,o=e.t,s="ltr"==t.uiLanguageDirection?p.A:m.A,i="ltr"==t.uiLanguageDirection?m.A:p.A;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",s),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",i)}_addButtonsToFactory(e,t,o,s){const i=this.editor;i.ui.componentFactory.add(e,()=>{const i=this._createButton(u._,e,t,o,s);return i.set({tooltip:!0}),i}),i.ui.componentFactory.add("menuBar:"+e,()=>this._createButton(h.k,e,t,o,s))}_createButton(e,t,o,s,i){const n=this.editor,r=n.locale,a=n.commands.get(t),c=new e(r);return c.set({label:o,icon:i,keystroke:s}),c.bind("isEnabled").to(a,"isEnabled"),this.listenTo(c,"execute",()=>{n.execute(t),n.editing.view.focus()}),c}}class f extends s.k_{static get requires(){return[d,g]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}},"./src/upload.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{Base64UploadAdapter:()=>c,FileReader:()=>n,FileRepository:()=>r,SimpleUploadAdapter:()=>d});var s=o("../ckeditor5-core/src/index.ts"),i=o("../ckeditor5-utils/src/index.ts");class n extends((0,i.VM)()){total;_reader;_data;constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((o,s)=>{t.onload=()=>{const e=t.result;this._data=e,o(e)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class r extends s.k_{loaders=new i.pM;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[s.TS]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return(0,i.FF)("filerepository-no-upload-adapter"),null;const t=new a(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(e=>{this._loadersMap.set(e,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e}),t.on("change:uploadTotal",()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e}),t}destroyLoader(e){const t=e instanceof a?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((e,o)=>{e===t&&this._loadersMap.delete(o)})}_updatePendingAction(){const e=this.editor.plugins.get(s.TS);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,o=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(o(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",o)}}else e.remove(this._pendingAction),this._pendingAction=null}}class a extends((0,i.VM)()){id;_filePromiseWrapper;_adapter;_reader;constructor(e,t){super(),this.id=(0,i.Ld)(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new n,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new i.Yb("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e}).catch(e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e})}upload(){if("idle"!=this.status)throw new i.Yb("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((o,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then(e=>{t.isFulfilled=!0,o(e)}).catch(e=>{t.isFulfilled=!0,s(e)})}),t}}class c extends s.k_{static get requires(){return[r]}static get pluginName(){return"Base64UploadAdapter"}static get licenseFeatureCode(){return"B64A"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){this.editor.plugins.get(r).createUploadAdapter=e=>new l(e)}}class l{loader;reader;constructor(e){this.loader=e}upload(){return new Promise((e,t)=>{const o=this.reader=new window.FileReader;o.addEventListener("load",()=>{e({default:o.result})}),o.addEventListener("error",e=>{t(e)}),o.addEventListener("abort",()=>{t()}),this.loader.file.then(e=>{o.readAsDataURL(e)})})}abort(){this.reader.abort()}}class d extends s.k_{static get requires(){return[r]}static get pluginName(){return"SimpleUploadAdapter"}static get licenseFeatureCode(){return"SUA"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const e=this.editor.config.get("simpleUpload");e&&(e.uploadUrl?this.editor.plugins.get(r).createUploadAdapter=t=>new u(t,e):(0,i.FF)("simple-upload-adapter-missing-uploadurl"))}}class u{loader;options;xhr;constructor(e,t){this.loader=e,this.options=t}upload(){return this.loader.file.then(e=>new Promise((t,o)=>{this._initRequest(),this._initListeners(t,o,e),this._sendRequest(e)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.options.uploadUrl,!0),e.responseType="json"}_initListeners(e,t,o){const s=this.xhr,i=this.loader,n=`Couldn't upload file: ${o.name}.`;s.addEventListener("error",()=>t(n)),s.addEventListener("abort",()=>t()),s.addEventListener("load",()=>{const o=s.response;if(!o||o.error)return t(o&&o.error&&o.error.message?o.error.message:n);const i=o.url?{default:o.url}:o.urls;e({...o,urls:i})}),s.upload&&s.upload.addEventListener("progress",e=>{e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)})}_sendRequest(e){let t=this.options.headers||{};"function"==typeof t&&(t=t(e));const o=this.options.withCredentials||!1;for(const e of Object.keys(t))this.xhr.setRequestHeader(e,t[e]);this.xhr.withCredentials=o;const s=new FormData;s.append("upload",e),this.xhr.send(s)}}},"./src/utils.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{CKEditorError:()=>s.Yb,Collection:()=>s.pM,Config:()=>s.TS,DOCUMENTATION_URL:()=>s.RD,DomEmitterMixin:()=>s.c5,ElementReplacer:()=>s.PZ,EmitterMixin:()=>s.Mm,EventInfo:()=>s.vY,FocusTracker:()=>s.$x,KeystrokeHandler:()=>s.EP,Locale:()=>s.hT,ObservableMixin:()=>s.VM,Rect:()=>s.rw,ResizeObserver:()=>s.tb,_clearTranslations:()=>s.dN,_getEmitterId:()=>s.zH,_getEmitterListenedTo:()=>s.LW,_getUserAgent:()=>s.Cv,_isAndroid:()=>s.HN,_isBlink:()=>s.o7,_isGecko:()=>s.fD,_isMac:()=>s.BM,_isMediaForcedColors:()=>s.FL,_isMotionReduced:()=>s.ci,_isRegExpUnicodePropertySupported:()=>s.HG,_isSafari:()=>s.go,_isWindows:()=>s.dR,_isiOS:()=>s.J9,_setEmitterId:()=>s.bp,_translate:()=>s.O6,_unifyTranslations:()=>s.Rs,abortableDebounce:()=>s.KL,add:()=>s.WQ,areConnectedThroughProperties:()=>s.am,collectStylesheets:()=>s.Ik,compareArrays:()=>s.ww,count:()=>s.U9,crc32:()=>s.QR,createElement:()=>s.n,decodeLicenseKey:()=>s.Tx,delay:()=>s.cb,diff:()=>s.Ui,diffToChanges:()=>s.q8,env:()=>s._K,exponentialDelay:()=>s.Nv,fastDiff:()=>s.Mr,findClosestScrollableAncestor:()=>s.j3,first:()=>s.$1,formatHtml:()=>s.dV,getAncestors:()=>s.DS,getBorderWidths:()=>s.Md,getCode:()=>s.QC,getCommonAncestor:()=>s.$Q,getConstrainedViewportRect:()=>s.tS,getDataFromElement:()=>s.pG,getEnvKeystrokeText:()=>s.YA,getLanguageDirection:()=>s.iJ,getLocalizedArrowKeyCodeDirection:()=>s.Kf,getOptimalPosition:()=>s.W,getPositionedAncestor:()=>s.Mx,getRangeFromMouseEvent:()=>s.jr,getVisualViewportOffset:()=>s.UM,global:()=>s.Sf,indexOf:()=>s.qh,insertAt:()=>s.PT,insertToPriorityArray:()=>s.Yy,isArrowKeyCode:()=>s.Yt,isCombiningMark:()=>s.mY,isComment:()=>s.Cn,isFeatureBlockedByLicenseKey:()=>s.SE,isForwardArrowKeyCode:()=>s.HK,isHighSurrogateHalf:()=>s.kv,isInsideCombinedSymbol:()=>s.Iw,isInsideEmojiSequence:()=>s.SQ,isInsideSurrogatePair:()=>s.P5,isIterable:()=>s.xZ,isLowSurrogateHalf:()=>s.k$,isNode:()=>s.Ll,isRange:()=>s._Z,isText:()=>s.KH,isValidAttributeName:()=>s.i8,isViewWithFocusTracker:()=>s.K8,isVisible:()=>s.zN,isWindow:()=>s.l6,keyCodes:()=>s.uP,logError:()=>s.vV,logWarning:()=>s.FF,mapsEqual:()=>s.kg,nth:()=>s.lo,objectToMap:()=>s.tF,parseBase64EncodedObject:()=>s.yE,parseKeystroke:()=>s.ZX,priorities:()=>s.vx,releaseDate:()=>s.kM,remove:()=>s.TF,retry:()=>s.L5,scrollAncestorsToShowTarget:()=>s.bi,scrollViewportToShowTarget:()=>s.vK,setDataInElement:()=>s.C_,spliceArray:()=>s.eL,spy:()=>s.dE,toArray:()=>s.$r,toMap:()=>s.av,toUnit:()=>s.To,uid:()=>s.Ld,version:()=>s.rE,wait:()=>s.uk});var s=o("../ckeditor5-utils/src/index.ts")},"./src/watchdog.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{ActionsRecorder:()=>s.kw,ContextWatchdog:()=>s.Zd,EditorWatchdog:()=>s.VJ,Watchdog:()=>s.Io});var s=o("../ckeditor5-watchdog/src/index.ts")},"./src/widget.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{WIDGET_CLASS_NAME:()=>s.iW,WIDGET_SELECTED_CLASS_NAME:()=>s.w_,Widget:()=>s.x0,WidgetHighlightStack:()=>s.Ng,WidgetResize:()=>s.VE,WidgetResizeState:()=>s.ul,WidgetResizer:()=>s.xM,WidgetToolbarRepository:()=>s.oP,WidgetTypeAround:()=>s.oT,_WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE:()=>s.P0,_WidgetSizeView:()=>s.Gx,_getClosestWidgetTypeAroundDomButton:()=>s.q,_getClosestWidgetViewElement:()=>s.yI,_getWidgetTypeAroundButtonPosition:()=>s.mE,_getWidgetTypeAroundFakeCaretPosition:()=>s.qv,calculateResizeHostAncestorWidth:()=>s.Wu,calculateResizeHostPercentageWidth:()=>s.Hq,findOptimalInsertionRange:()=>s.iB,getLabel:()=>s.p9,isTypeAroundWidget:()=>s.Yj,isWidget:()=>s.p4,setHighlightHandling:()=>s._s,setLabel:()=>s.je,toWidget:()=>s.Ex,toWidgetEditable:()=>s.YN,verticalWidgetNavigationHandler:()=>s.x$,viewToModelPositionOutsideModelElement:()=>s.$u});var s=o("../ckeditor5-widget/src/index.ts")},"?7cdd":(e,t,o)=>{e.exports=o}},t={};function o(s){var i=t[s];if(void 0!==i)return i.exports;var n=t[s]={id:s,exports:{}};return e[s](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s=o("?7cdd");(window.CKEditor5=window.CKEditor5||{}).dll=s})(),function(e){e.CKEditor5=e.CKEditor5||{};const t=["utils","core","engine","ui","clipboard","enter","paragraph","select-all","typing","undo","icons","upload","widget","watchdog"];for(const o of t){const t=o.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());e.CKEditor5[t]=e.CKEditor5.dll(`./src/${o}.js`)}}(window);