(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,142738,(e,t,i)=>{let n="/editorv2";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(542573)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})},947681,(e,t,i)=>{var n;let o;(o=(n=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})).en=n.en||{}).dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 of %1",Aquamarine:"Aquamarine",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Break text":"Break text","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image",Green:"Green",Grey:"Grey","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on",Turquoise:"Turquoise",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar","Wrap text":"Wrap text",Yellow:"Yellow"}),self,t.exports=(()=>(()=>{"use strict";var n={3062:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n /* See #12 */\n overflow: hidden;\n\n /* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n padding-right: 1.5em;\n padding-left: 1.5em;\n\n margin-left: 0;\n margin-right: 0;\n font-style: italic;\n border-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n border-left: 0;\n border-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);let a=s},7657:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-block-toolbar-button{transform:translateX(calc(var(--ck-spacing-large)*-1))}","",{version:3,sources:["webpack://./theme/theme.css"],names:[],mappings:"AAMA,4BACC,sDACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Give the block toolbar button some space, moving it a few pixels away from the editable area. */\n.ck.ck-block-toolbar-button {\n transform: translateX( calc(-1 * var(--ck-spacing-large)) );\n}\n"],sourceRoot:""}]);let a=s},903:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CCzBF,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CA2DF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n /*\n * Vertical drop target (in text).\n */\n & .ck.ck-clipboard-drop-target-position {\n display: inline;\n position: relative;\n pointer-events: none;\n\n & span {\n position: absolute;\n width: 0;\n }\n }\n\n /*\n * Styles of the widget being dragged (its preview).\n */\n & .ck-widget:-webkit-drag {\n & > .ck-widget__selection-handle {\n display: none;\n }\n\n & > .ck-widget__type-around {\n display: none;\n }\n }\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-clipboard-drop-target-dot-width: 12px;\n --ck-clipboard-drop-target-dot-height: 8px;\n --ck-clipboard-drop-target-color: var(--ck-color-focus-border)\n}\n\n.ck.ck-editor__editable {\n /*\n * Vertical drop target (in text).\n */\n & .ck.ck-clipboard-drop-target-position {\n & span {\n bottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n border: 1px solid var(--ck-clipboard-drop-target-color);\n background: var(--ck-clipboard-drop-target-color);\n margin-left: -1px;\n\n /* The triangle above the marker */\n &::after {\n content: "";\n width: 0;\n height: 0;\n\n display: block;\n position: absolute;\n left: 50%;\n top: calc(var(--ck-clipboard-drop-target-dot-height) * -.5);\n\n transform: translateX(-50%);\n border-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n border-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n border-style: solid;\n }\n }\n }\n\n /*\n // Horizontal drop target (between blocks).\n & .ck.ck-clipboard-drop-target-position {\n display: block;\n position: relative;\n width: 100%;\n height: 0;\n margin: 0;\n text-align: initial;\n\n & .ck-clipboard-drop-target__line {\n position: absolute;\n width: 100%;\n height: 0;\n border: 1px solid var(--ck-clipboard-drop-target-color);\n margin-top: -1px;\n\n &::before {\n content: "";\n width: 0;\n height: 0;\n\n display: block;\n position: absolute;\n left: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n top: 0;\n\n transform: translateY(-50%);\n border-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n border-width: var(--ck-clipboard-drop-target-dot-size) 0 var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size));\n border-style: solid;\n }\n\n &::after {\n content: "";\n width: 0;\n height: 0;\n\n display: block;\n position: absolute;\n right: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n top: 0;\n\n transform: translateY(-50%);\n border-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n border-width: var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size)) var(--ck-clipboard-drop-target-dot-size) 0;\n border-style: solid;\n }\n }\n }\n */\n\n /*\n * Styles of the widget that it a drop target.\n */\n & .ck-widget.ck-clipboard-drop-target-range {\n outline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n }\n\n /*\n * Styles of the widget being dragged (its preview).\n */\n & .ck-widget:-webkit-drag {\n zoom: 0.6;\n outline: none !important;\n }\n}\n'],sourceRoot:""}]);let a=s},4717:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n position: relative;\n\n &::before {\n position: absolute;\n left: 0;\n right: 0;\n content: attr(data-placeholder);\n\n /* See ckeditor/ckeditor5#469. */\n pointer-events: none;\n }\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n &::before {\n display: none;\n }\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n position: relative;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n &::before {\n cursor: text;\n color: var(--ck-color-engine-placeholder-text);\n }\n}\n"],sourceRoot:""}]);let a=s},9315:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n display: none;\n}\n"],sourceRoot:""}]);let a=s},8733:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n font-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n font-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n font-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n font-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n & .ck-dropdown__button .ck-button__label {\n width: 8em;\n }\n\n & .ck-dropdown__panel .ck-list__item {\n min-width: 18em;\n }\n}\n"],sourceRoot:""}]);let a=s},3508:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBAuBD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAWA,2GACC,SAUD,CAHC,qEACC,YACD,CAOA,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n & .image {\n display: table;\n clear: both;\n text-align: center;\n\n /* Make sure there is some space between the content and the image. Center image by default. */\n /* The first value should be equal to --ck-spacing-large variable if used in the editor context\n to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n margin: 0.9em auto;\n\n /* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n min-width: 50px;\n\n & img {\n /* Prevent unnecessary margins caused by line-height (see #44). */\n display: block;\n\n /* Center the image if its width is smaller than the content\'s width. */\n margin: 0 auto;\n\n /* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n max-width: 100%;\n\n /* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n min-width: 100%\n }\n }\n\n & .image-inline {\n /*\n * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n * This strange behavior does not happen with inline-flex.\n */\n display: inline-flex;\n\n /* While being resized, don\'t allow the image to exceed the width of the editing root. */\n max-width: 100%;\n\n /* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n align-items: flex-start;\n\n /* When the picture is present it must act as a flex container to let the img resize properly */\n & picture {\n display: flex;\n }\n\n /* When the picture is present, it must act like a resizable img. */\n & picture,\n & img {\n /* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n flex-grow: 1;\n flex-shrink: 1;\n\n /* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n max-width: 100%;\n }\n }\n}\n\n.ck.ck-editor__editable {\n /*\n * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n * caret does, and not at the edge of
.\n */\n & .image > figcaption.ck-placeholder::before {\n padding-left: inherit;\n padding-right: inherit;\n\n /*\n * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n * See https://github.com/ckeditor/ckeditor5/issues/9162.\n */\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n\n /*\n * Make sure the selected inline image always stays on top of its siblings.\n * See https://github.com/ckeditor/ckeditor5/issues/9108.\n */\n & .image.ck-widget_selected {\n z-index: 1;\n }\n\n & .image-inline.ck-widget_selected {\n z-index: 1;\n\n /*\n * Make sure the native browser selection style is not displayed.\n * Inline image widgets have their own styles for the selected state and\n * leaving this up to the browser is asking for a visual collision.\n */\n & ::selection {\n display: none;\n }\n }\n\n /* The inline image nested in the table should have its original size if not resized.\n See https://github.com/ckeditor/ckeditor5/issues/9117. */\n & td,\n & th {\n & .image-inline img {\n max-width: none;\n }\n }\n}\n'],sourceRoot:""}]);let a=s},2640:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-color-image-caption-background: hsl(0, 0%, 97%);\n --ck-color-image-caption-text: hsl(0, 0%, 20%);\n --ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n display: table-caption;\n caption-side: bottom;\n word-break: break-word;\n color: var(--ck-color-image-caption-text);\n background-color: var(--ck-color-image-caption-background);\n padding: .6em;\n font-size: .75em;\n outline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n animation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n 0% {\n background-color: var(--ck-color-image-caption-highligted-background);\n }\n\n 100% {\n background-color: var(--ck-color-image-caption-background);\n }\n}\n"],sourceRoot:""}]);let a=s},5083:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-image-style-spacing: 1.5em;\n --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n /* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n confirming successful application of the style if image width exceeds the editor's size.\n See https://github.com/ckeditor/ckeditor5/issues/9342 */\n & .image-style-block-align-left,\n & .image-style-block-align-right {\n max-width: calc(100% - var(--ck-image-style-spacing));\n }\n\n /* Allows displaying multiple floating images in the same line.\n See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n & .image-style-align-left,\n & .image-style-align-right {\n clear: none;\n }\n\n & .image-style-side {\n float: right;\n margin-left: var(--ck-image-style-spacing);\n max-width: 50%;\n }\n\n & .image-style-align-left {\n float: left;\n margin-right: var(--ck-image-style-spacing);\n }\n\n & .image-style-align-center {\n margin-left: auto;\n margin-right: auto;\n }\n\n & .image-style-align-right {\n float: right;\n margin-left: var(--ck-image-style-spacing);\n }\n\n & .image-style-block-align-right {\n margin-right: 0;\n margin-left: auto;\n }\n\n & .image-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n\n /* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n & p + .image-style-align-left,\n & p + .image-style-align-right,\n & p + .image-style-side {\n margin-top: 0;\n }\n\n & .image-inline {\n &.image-style-align-left,\n &.image-style-align-right {\n margin-top: var(--ck-inline-image-style-spacing);\n margin-bottom: var(--ck-inline-image-style-spacing);\n }\n\n &.image-style-align-left {\n margin-right: var(--ck-inline-image-style-spacing);\n }\n\n &.image-style-align-right {\n margin-left: var(--ck-inline-image-style-spacing);\n }\n }\n}\n\n.ck.ck-splitbutton {\n /* The button should display as a regular drop-down if the action button\n is forced to fire the same action as the arrow button. */\n &.ck-splitbutton_flatten {\n &:hover,\n &.ck-splitbutton_open {\n & > .ck-splitbutton__action:not(.ck-disabled),\n & > .ck-splitbutton__arrow:not(.ck-disabled),\n & > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n background-color: var(--ck-color-button-on-background);\n\n &::after {\n display: none;\n }\n }\n }\n\n &.ck-splitbutton_open:hover {\n & > .ck-splitbutton__action:not(.ck-disabled),\n & > .ck-splitbutton__arrow:not(.ck-disabled),\n & > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n background-color: var(--ck-color-button-on-hover-background);\n }\n }\n }\n}\n"],sourceRoot:""}]);let a=s},4036:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n display: block;\n position: absolute;\n\n /*\n * Smaller images should have the icon closer to the border.\n * Match the icon position with the linked image indicator brought by the link image feature.\n */\n top: min(var(--ck-spacing-medium), 6%);\n right: min(var(--ck-spacing-medium), 6%);\n border-radius: 50%;\n z-index: 1;\n\n &::after {\n content: "";\n position: absolute;\n }\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-color-image-upload-icon: hsl(0, 0%, 100%);\n --ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n /* Match the icon size with the linked image indicator brought by the link image feature. */\n --ck-image-upload-icon-size: 20;\n --ck-image-upload-icon-width: 2px;\n --ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n opacity: 0;\n background: var(--ck-color-image-upload-icon-background);\n animation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n animation-fill-mode: forwards, forwards;\n animation-duration: 500ms, 500ms;\n\n /* To make animation scalable. */\n font-size: calc(1px * var(--ck-image-upload-icon-size));\n\n /* Hide completed upload icon after 3 seconds. */\n animation-delay: 0ms, 3000ms;\n\n /*\n * Use CSS math to simulate container queries.\n * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n */\n overflow: hidden;\n width: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n height: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n /* This is check icon element made from border-width mixed with animations. */\n &::after {\n /* Because of border transformation we need to "hard code" left position. */\n left: 25%;\n\n top: 50%;\n opacity: 0;\n height: 0;\n width: 0;\n\n transform: scaleX(-1) rotate(135deg);\n transform-origin: left top;\n border-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n border-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n animation-name: ck-upload-complete-icon-check;\n animation-duration: 500ms;\n animation-delay: 500ms;\n animation-fill-mode: forwards;\n\n /* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n box-sizing: border-box;\n }\n}\n\n@keyframes ck-upload-complete-icon-show {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n@keyframes ck-upload-complete-icon-hide {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n}\n\n@keyframes ck-upload-complete-icon-check {\n 0% {\n opacity: 1;\n width: 0;\n height: 0;\n }\n 33% {\n width: 0.3em;\n height: 0;\n }\n 100% {\n opacity: 1;\n width: 0.3em;\n height: 0.45em;\n }\n}\n'],sourceRoot:""}]);let a=s},3773:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n\n &::before {\n content: '';\n position: relative;\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n --ck-upload-placeholder-loader-size: 32px;\n --ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n /* We need to control the full width of the SVG gray background. */\n width: 100%;\n margin: 0;\n\n &.image-inline {\n width: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n }\n\n & img {\n /*\n * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n * There's nothing special about this number except that it should make the image placeholder look like\n * a real image during this short period after the upload started and before the image was read from the\n * file system (and a rich preview was loaded).\n */\n aspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n }\n}\n\n.ck .ck-upload-placeholder-loader {\n width: 100%;\n height: 100%;\n\n &::before {\n width: var(--ck-upload-placeholder-loader-size);\n height: var(--ck-upload-placeholder-loader-size);\n border-radius: 50%;\n border-top: 3px solid var(--ck-color-upload-placeholder-loader);\n border-right: 2px solid transparent;\n animation: ck-upload-placeholder-loader 1s linear infinite;\n }\n}\n\n@keyframes ck-upload-placeholder-loader {\n to {\n transform: rotate( 360deg );\n }\n}\n"],sourceRoot:""}]);let a=s},3689:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n & .image,\n & .image-inline {\n position: relative;\n }\n\n /* Upload progress bar. */\n & .image .ck-progress-bar,\n & .image-inline .ck-progress-bar {\n position: absolute;\n top: 0;\n left: 0;\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n & .image,\n & .image-inline {\n /* Showing animation. */\n &.ck-appear {\n animation: fadeIn 700ms;\n }\n }\n\n /* Upload progress bar. */\n & .image .ck-progress-bar,\n & .image-inline .ck-progress-bar {\n height: 2px;\n width: 0;\n background: var(--ck-color-upload-bar-background);\n transition: width 100ms;\n }\n}\n\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n"],sourceRoot:""}]);let a=s},1905:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n\n & .ck-labeled-field-view {\n display: inline-block;\n }\n\n & .ck-label {\n display: none;\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-labeled-field-view {\n flex-basis: 100%;\n }\n\n & .ck-button {\n flex-basis: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},9773:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n background: var(--ck-color-link-selected-background);\n\n /* Give linked inline images some outline to let the user know they are also part of the link. */\n & span.image-inline {\n outline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n }\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n background: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n height: 100%;\n border-right: 1px solid var(--ck-color-base-text);\n margin-right: -1px;\n outline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);let a=s},2347:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n\n & .ck-link-actions__preview {\n display: inline-block;\n\n & .ck-button__label {\n overflow: hidden;\n }\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-link-actions__preview {\n flex-basis: 100%;\n }\n\n & .ck-button:not(.ck-link-actions__preview) {\n flex-basis: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n & .ck-button.ck-link-actions__preview {\n padding-left: 0;\n padding-right: 0;\n\n & .ck-button__label {\n padding: 0 var(--ck-spacing-medium);\n color: var(--ck-color-link-default);\n text-overflow: ellipsis;\n cursor: pointer;\n\n /* Match the box model of the link editor form\'s input so the balloon\n does not change width when moving between actions and the form. */\n max-width: var(--ck-input-width);\n min-width: 3em;\n text-align: center;\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n &,\n &:hover,\n &:focus,\n &:active {\n background: none;\n }\n\n &:active {\n box-shadow: none;\n }\n\n &:focus {\n & .ck-button__label {\n text-decoration: underline;\n }\n }\n }\n\n @mixin ck-dir ltr {\n & .ck-button:not(:first-child) {\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-dir rtl {\n & .ck-button:not(:last-child) {\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-media-phone {\n & .ck-button.ck-link-actions__preview {\n margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n & .ck-button__label {\n min-width: 0;\n max-width: 100%;\n }\n }\n\n & .ck-button:not(.ck-link-actions__preview) {\n @mixin ck-dir ltr {\n margin-left: 0;\n }\n\n @mixin ck-dir rtl {\n margin-left: 0;\n }\n }\n }\n}\n'],sourceRoot:""}]);let a=s},7754:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n display: flex;\n\n & .ck-label {\n display: none;\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-labeled-field-view {\n flex-basis: 100%;\n }\n\n & .ck-button {\n flex-basis: 50%;\n }\n }\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n display: block;\n\n /*\n * Whether the form is in the responsive mode or not, if there are decorator buttons\n * keep the top margin of action buttons medium.\n */\n & .ck-button {\n &.ck-button-save,\n &.ck-button-cancel {\n margin-top: var(--ck-spacing-medium);\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n padding: 0;\n min-width: var(--ck-input-width);\n\n & .ck-labeled-field-view {\n margin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n & .ck-input-text {\n min-width: 0;\n width: 100%;\n }\n }\n\n & > .ck-button {\n padding: var(--ck-spacing-standard);\n margin: 0;\n width: 50%;\n border-radius: 0;\n\n &:not(:focus) {\n border-top: 1px solid var(--ck-color-base-border);\n }\n\n @mixin ck-dir ltr {\n margin-left: 0;\n }\n\n @mixin ck-dir rtl {\n margin-left: 0;\n\n &:last-of-type {\n border-right: 1px solid var(--ck-color-base-border);\n }\n }\n }\n\n /* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n & .ck.ck-list {\n margin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n & .ck-button.ck-switchbutton {\n padding: 0;\n width: 100%;\n\n &:hover {\n background: none;\n }\n }\n }\n}\n'],sourceRoot:""}]);let a=s},4652:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n /* Don\'t allow floated content overlap the media.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n clear: both;\n\n /* Make sure there is some space between the content and the media. */\n /* The first value should be equal to --ck-spacing-large variable if used in the editor context\n to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n margin: 0.9em 0;\n\n /* Make sure media is not overriden with Bootstrap default `flex` value.\n See: https://github.com/ckeditor/ckeditor5/issues/1373. */\n display: block;\n\n /* Give the media some minimal width in the content to prevent them\n from being "squashed" in tight spaces, e.g. in table cells (#44) */\n min-width: 15em;\n}\n'],sourceRoot:""}]);let a=s},7442:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n & .ck-media__placeholder {\n display: flex;\n flex-direction: column;\n align-items: center;\n\n & .ck-media__placeholder__url {\n /* Otherwise the URL will overflow when the content is very narrow. */\n max-width: 100%;\n\n position: relative;\n\n & .ck-media__placeholder__url__text {\n overflow: hidden;\n display: block;\n }\n }\n }\n\n &[data-oembed-url*="twitter.com"],\n &[data-oembed-url*="google.com/maps"],\n &[data-oembed-url*="goo.gl/maps"],\n &[data-oembed-url*="maps.google.com"],\n &[data-oembed-url*="maps.app.goo.gl"],\n &[data-oembed-url*="facebook.com"],\n &[data-oembed-url*="instagram.com"] {\n & .ck-media__placeholder__icon * {\n display: none;\n }\n }\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n pointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n pointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-media-embed-placeholder-icon-size: 3em;\n\n --ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n --ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n margin: 0 auto;\n\n & .ck-media__placeholder {\n padding: calc( 3 * var(--ck-spacing-standard) );\n background: var(--ck-color-base-foreground);\n\n & .ck-media__placeholder__icon {\n min-width: var(--ck-media-embed-placeholder-icon-size);\n height: var(--ck-media-embed-placeholder-icon-size);\n margin-bottom: var(--ck-spacing-large);\n background-position: center;\n background-size: cover;\n\n & .ck-icon {\n width: 100%;\n height: 100%;\n }\n }\n\n & .ck-media__placeholder__url__text {\n color: var(--ck-color-media-embed-placeholder-url-text);\n white-space: nowrap;\n text-align: center;\n font-style: italic;\n text-overflow: ellipsis;\n\n &:hover {\n color: var(--ck-color-media-embed-placeholder-url-text-hover);\n cursor: pointer;\n text-decoration: underline;\n }\n }\n }\n\n &[data-oembed-url*="open.spotify.com"] {\n max-width: 300px;\n max-height: 380px;\n }\n\n &[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n &[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n &[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n &[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n }\n\n &[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n background: hsl(220, 46%, 48%);\n\n & .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n }\n\n & .ck-media__placeholder__url__text {\n color: hsl(220, 100%, 90%);\n\n &:hover {\n color: hsl(0, 0%, 100%);\n }\n }\n }\n\n &[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n background: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n & .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n }\n\n /* stylelint-disable-next-line no-descending-specificity */\n & .ck-media__placeholder__url__text {\n color: hsl(302, 100%, 94%);\n\n &:hover {\n color: hsl(0, 0%, 100%);\n }\n }\n }\n\n &[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n /* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n background: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n & .ck-media__placeholder__icon {\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n }\n\n & .ck-media__placeholder__url__text {\n color: hsl(201, 100%, 86%);\n\n &:hover {\n color: hsl(0, 0%, 100%);\n }\n }\n }\n}\n'],sourceRoot:""}]);let a=s},9292:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n display: flex;\n align-items: flex-start;\n flex-direction: row;\n flex-wrap: nowrap;\n\n & .ck-labeled-field-view {\n display: inline-block;\n }\n\n & .ck-label {\n display: none;\n }\n\n @mixin ck-media-phone {\n flex-wrap: wrap;\n\n & .ck-labeled-field-view {\n flex-basis: 100%;\n }\n\n & .ck-button {\n flex-basis: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},1613:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,qCACC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-insert-table-dropdown-padding: 10px;\n --ck-insert-table-dropdown-box-height: 11px;\n --ck-insert-table-dropdown-box-width: 12px;\n --ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n /* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n width: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n padding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label {\n text-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n min-width: var(--ck-insert-table-dropdown-box-width);\n min-height: var(--ck-insert-table-dropdown-box-height);\n margin: var(--ck-insert-table-dropdown-box-margin);\n border: 1px solid var(--ck-color-base-border);\n border-radius: 1px;\n outline: none;\n transition: none;\n\n &:focus {\n box-shadow: none;\n }\n\n &.ck-on {\n border-color: var(--ck-color-focus-border);\n background: var(--ck-color-focus-outer-shadow);\n }\n}\n\n"],sourceRoot:""}]);let a=s},6306:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n /* Give the table widget some air and center it horizontally */\n /* The first value should be equal to --ck-spacing-large variable if used in the editor context\n to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n margin: 0.9em auto;\n display: table;\n\n & table {\n /* The table cells should have slight borders */\n border-collapse: collapse;\n border-spacing: 0;\n\n /* Table width and height are set on the parent
. Make sure the table inside stretches\n to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n width: 100%;\n height: 100%;\n\n /* The outer border of the table should be slightly darker than the inner lines.\n Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n border: 1px double hsl(0, 0%, 70%);\n\n & td,\n & th {\n min-width: 2em;\n padding: .4em;\n\n /* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n However, the border is a content style, so it should use .ck-content (so it works outside the editor).\n Hence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n border: 1px solid hsl(0, 0%, 75%);\n }\n\n & th {\n font-weight: bold;\n background: hsla(0, 0%, 0%, 5%);\n }\n }\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n text-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n text-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n /*\n * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n * See https://github.com/ckeditor/ckeditor5/issues/6062.\n */\n display: inline-block;\n\n /*\n * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n * See https://github.com/ckeditor/ckeditor5/issues/9117.\n */\n width: 100%;\n}\n'],sourceRoot:""}]);let a=s},3881:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,":root{--ck-color-table-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,6DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-color-table-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n & td,\n & th {\n &.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n &.ck-editor__nested-editable:focus {\n /* A very slight background to highlight the focused cell */\n background: var(--ck-color-table-focused-cell-background);\n\n /* Fixes the problem where surrounding cells cover the focused cell's border.\n It does not fix the problem in all places but the UX is improved.\n See https://github.com/ckeditor/ckeditor5-table/issues/29. */\n border-style: none;\n outline: 1px solid var(--ck-color-focus-border);\n outline-offset: -1px; /* progressive enhancement - no IE support */\n }\n }\n}\n"],sourceRoot:""}]);let a=s},6945:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n & td.ck-editor__editable_selected,\n & th.ck-editor__editable_selected {\n position: relative;\n caret-color: transparent;\n outline: unset;\n box-shadow: unset;\n\n /* https://github.com/ckeditor/ckeditor5/issues/6446 */\n &:after {\n content: '';\n pointer-events: none;\n background-color: var(--ck-table-selected-cell-background);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n\n & ::selection,\n &:focus {\n background-color: transparent;\n }\n\n /*\n * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n * See https://github.com/ckeditor/ckeditor5/issues/9491.\n */\n & .ck-widget {\n outline: unset;\n\n & > .ck-widget__selection-handle {\n display: none;\n }\n }\n }\n}\n"],sourceRoot:""}]);let a=s},4906:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n @mixin ck-unselectable;\n\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: left;\n\n & .ck-button__label {\n display: none;\n }\n\n &.ck-button_with-text {\n & .ck-button__label {\n display: inline-block;\n }\n }\n\n /* Center the icon horizontally in a button without text. */\n &:not(.ck-button_with-text) {\n justify-content: center;\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n @mixin ck-button-colors --ck-color-button-default;\n @mixin ck-rounded-corners;\n\n white-space: nowrap;\n cursor: default;\n vertical-align: middle;\n padding: var(--ck-spacing-tiny);\n text-align: center;\n\n /* A very important piece of styling. Go to variable declaration to learn more. */\n min-width: var(--ck-ui-component-min-height);\n min-height: var(--ck-ui-component-min-height);\n\n /* Normalize the height of the line. Removing this will break consistent height\n among text and text-less buttons (with icons). */\n line-height: 1;\n\n /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n\n /* Avoid flickering when the foucs border shows up. */\n border: 1px solid transparent;\n\n /* Apply some smooth transition to the box-shadow and border. */\n transition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n -webkit-appearance: none;\n\n &:active,\n &:focus {\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-focus-outer-shadow);\n }\n\n /* Allow icon coloring using the text "color" property. */\n & .ck-button__icon {\n & use,\n & use * {\n color: inherit;\n }\n }\n\n & .ck-button__label {\n /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n font-weight: inherit;\n color: inherit;\n cursor: inherit;\n\n /* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n without labels (but with icons) have different sizes in Chrome */\n vertical-align: middle;\n\n @mixin ck-dir ltr {\n text-align: left;\n }\n\n @mixin ck-dir rtl {\n text-align: right;\n }\n }\n\n & .ck-button__keystroke {\n color: inherit;\n\n @mixin ck-dir ltr {\n margin-left: var(--ck-spacing-large);\n }\n\n @mixin ck-dir rtl {\n margin-right: var(--ck-spacing-large);\n }\n\n font-weight: bold;\n opacity: .7;\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n &.ck-disabled {\n &:active,\n &:focus {\n /* The disabled button should have a slightly less visible shadow when focused. */\n @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n }\n\n & .ck-button__icon {\n @mixin ck-disabled;\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n & .ck-button__label {\n @mixin ck-disabled;\n }\n\n & .ck-button__keystroke {\n opacity: .3;\n }\n }\n\n &.ck-button_with-text {\n padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n /* stylelint-disable-next-line no-descending-specificity */\n & .ck-button__icon {\n @mixin ck-dir ltr {\n margin-left: calc(-1 * var(--ck-spacing-small));\n margin-right: var(--ck-spacing-small);\n }\n\n @mixin ck-dir rtl {\n margin-right: calc(-1 * var(--ck-spacing-small));\n margin-left: var(--ck-spacing-small);\n }\n }\n }\n\n &.ck-button_with-keystroke {\n /* stylelint-disable-next-line no-descending-specificity */\n & .ck-button__label {\n flex-grow: 1;\n }\n }\n\n /* A style of the button which is currently on, e.g. its feature is active. */\n &.ck-on {\n @mixin ck-button-colors --ck-color-button-on;\n\n color: var(--ck-color-button-on-color);\n }\n\n &.ck-button-save {\n color: var(--ck-color-button-save);\n }\n\n &.ck-button-cancel {\n color: var(--ck-color-button-cancel);\n }\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n @mixin ck-button-colors --ck-color-button-action;\n\n color: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n font-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n background: var($(prefix)-background);\n\n &:not(.ck-disabled) {\n &:hover {\n background: var($(prefix)-hover-background);\n }\n\n &:active {\n background: var($(prefix)-active-background);\n }\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n &.ck-disabled {\n background: var($(prefix)-disabled-background);\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n box-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n opacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);let a=s},5332:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton:active{background:transparent}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAGC,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDC3BA,eDmEA,CAxCA,yICvBC,qCD+DD,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2EC/CD,eD0DC,CAXA,6LC3CA,qCAAsC,CD6CpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEvEA,kCFyEA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAIA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF,CAKF,gFACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n & .ck-button__toggle {\n display: block;\n\n & .ck-button__toggle__inner {\n display: block;\n }\n }\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n /* 34px at 13px font-size */\n --ck-switch-button-toggle-width: 2.6153846154em;\n /* 14px at 13px font-size */\n --ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n --ck-switch-button-translation: calc(\n var(--ck-switch-button-toggle-width) -\n var(--ck-switch-button-toggle-inner-size) -\n 2px /* Border */\n );\n --ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n & .ck-button__label {\n @mixin ck-dir ltr {\n /* Separate the label from the switch */\n margin-right: calc(2 * var(--ck-spacing-large));\n }\n\n @mixin ck-dir rtl {\n /* Separate the label from the switch */\n margin-left: calc(2 * var(--ck-spacing-large));\n }\n }\n\n & .ck-button__toggle {\n @mixin ck-rounded-corners;\n\n @mixin ck-dir ltr {\n /* Make sure the toggle is always to the right as far as possible. */\n margin-left: auto;\n }\n\n @mixin ck-dir rtl {\n /* Make sure the toggle is always to the left as far as possible. */\n margin-right: auto;\n }\n\n /* Apply some smooth transition to the box-shadow and border. */\n /* Gently animate the background color of the toggle switch */\n transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n border: 1px solid transparent;\n width: var(--ck-switch-button-toggle-width);\n background: var(--ck-color-switch-button-off-background);\n\n & .ck-button__toggle__inner {\n @mixin ck-rounded-corners {\n border-radius: calc(.5 * var(--ck-border-radius));\n }\n\n width: var(--ck-switch-button-toggle-inner-size);\n height: var(--ck-switch-button-toggle-inner-size);\n background: var(--ck-color-switch-button-inner-background);\n\n /* Gently animate the inner part of the toggle switch */\n transition: all 300ms ease;\n }\n\n &:hover {\n background: var(--ck-color-switch-button-off-hover-background);\n\n & .ck-button__toggle__inner {\n box-shadow: var(--ck-switch-button-inner-hover-shadow);\n }\n }\n }\n\n &.ck-disabled .ck-button__toggle {\n @mixin ck-disabled;\n }\n\n /* Overriding default .ck-button:focus styles + an outline around the toogle */\n &:focus {\n border-color: transparent;\n outline: none;\n box-shadow: none;\n\n & .ck-button__toggle {\n box-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n outline-offset: 1px;\n outline: var(--ck-focus-ring);\n }\n }\n\n &.ck-on {\n & .ck-button__toggle {\n background: var(--ck-color-switch-button-on-background);\n\n &:hover {\n background: var(--ck-color-switch-button-on-hover-background);\n }\n\n & .ck-button__toggle__inner {\n /*\n * Move the toggle switch to the right. It will be animated.\n */\n @mixin ck-dir ltr {\n transform: translateX( var( --ck-switch-button-translation ) );\n }\n\n @mixin ck-dir rtl {\n transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n }\n }\n }\n }\n\n /* Regular buttons get a backgound when active. Switch buttons announce that through the switch toggle instead */\n &:active, &.ck-on:active {\n background: transparent;\n }\n\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n opacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);let a=s},6781:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n display: grid;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n --ck-color-grid-tile-size: 24px;\n\n /* Not using global colors here because these may change but some colors in a pallette\n * require special treatment. For instance, this ensures no matter what the UI text color is,\n * the check icon will look good on the black color tile. */\n --ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n grid-gap: 5px;\n padding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n width: var(--ck-color-grid-tile-size);\n height: var(--ck-color-grid-tile-size);\n min-width: var(--ck-color-grid-tile-size);\n min-height: var(--ck-color-grid-tile-size);\n padding: 0;\n transition: .2s ease box-shadow;\n border: 0;\n\n &.ck-disabled {\n cursor: unset;\n transition: unset;\n }\n\n &.ck-color-table__color-tile_bordered {\n box-shadow: 0 0 0 1px var(--ck-color-base-border);\n }\n\n & .ck.ck-icon {\n display: none;\n color: var(--ck-color-color-grid-check-icon);\n }\n\n &.ck-on {\n box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n & .ck.ck-icon {\n display: block;\n }\n }\n\n &.ck-on,\n &:focus:not( .ck-disabled ),\n &:hover:not( .ck-disabled ) {\n /* Disable the default .ck-button\'s border ring. */\n border: 0;\n }\n\n &:focus:not( .ck-disabled ),\n &:hover:not( .ck-disabled ) {\n box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n }\n}\n\n.ck.ck-color-grid__label {\n padding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);let a=s},5485:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eH8GD,CA5BA,qFG9EE,qCH0GF,CA5BA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n display: inline-block;\n position: relative;\n\n & .ck-dropdown__arrow {\n pointer-events: none;\n z-index: var(--ck-z-default);\n }\n\n /* Dropdown button should span horizontally, e.g. in vertical toolbars */\n & .ck-button.ck-dropdown__button {\n width: 100%;\n }\n\n & .ck-dropdown__panel {\n display: none;\n z-index: var(--ck-z-modal);\n max-width: var(--ck-dropdown-max-width);\n\n position: absolute;\n\n &.ck-dropdown__panel-visible {\n display: inline-block;\n }\n\n &.ck-dropdown__panel_ne,\n &.ck-dropdown__panel_nw,\n &.ck-dropdown__panel_n,\n &.ck-dropdown__panel_nmw,\n &.ck-dropdown__panel_nme {\n bottom: 100%;\n }\n\n &.ck-dropdown__panel_se,\n &.ck-dropdown__panel_sw,\n &.ck-dropdown__panel_smw,\n &.ck-dropdown__panel_sme,\n &.ck-dropdown__panel_s {\n /*\n * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n * See https://github.com/ckeditor/ckeditor5/issues/1053.\n */\n top: 100%;\n bottom: auto;\n }\n\n &.ck-dropdown__panel_ne,\n &.ck-dropdown__panel_se {\n left: 0px;\n }\n\n &.ck-dropdown__panel_nw,\n &.ck-dropdown__panel_sw {\n right: 0px;\n }\n\n &.ck-dropdown__panel_s,\n &.ck-dropdown__panel_n {\n /* Positioning panels relative to the center of the button */\n left: 50%;\n transform: translateX(-50%);\n }\n\n &.ck-dropdown__panel_nmw,\n &.ck-dropdown__panel_smw {\n /* Positioning panels relative to the middle-west of the button */\n left: 75%;\n transform: translateX(-75%);\n }\n\n &.ck-dropdown__panel_nme,\n &.ck-dropdown__panel_sme {\n /* Positioning panels relative to the middle-east of the button */\n left: 25%;\n transform: translateX(-25%);\n }\n }\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n z-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n --ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n\n & .ck-dropdown__arrow {\n width: var(--ck-dropdown-arrow-size);\n }\n\n @mixin ck-dir ltr {\n & .ck-dropdown__arrow {\n right: var(--ck-spacing-standard);\n\n /* A space to accommodate the triangle. */\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-dir rtl {\n & .ck-dropdown__arrow {\n left: var(--ck-spacing-standard);\n\n /* A space to accommodate the triangle. */\n margin-right: var(--ck-spacing-small);\n }\n }\n\n &.ck-disabled .ck-dropdown__arrow {\n @mixin ck-disabled;\n }\n\n & .ck-button.ck-dropdown__button {\n @mixin ck-dir ltr {\n &:not(.ck-button_with-text) {\n /* Make sure dropdowns with just an icon have the right inner spacing */\n padding-left: var(--ck-spacing-small);\n }\n }\n\n @mixin ck-dir rtl {\n &:not(.ck-button_with-text) {\n /* Make sure dropdowns with just an icon have the right inner spacing */\n padding-right: var(--ck-spacing-small);\n }\n }\n\n /* #23 */\n & .ck-button__label {\n width: 7em;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n &.ck-disabled .ck-button__label {\n @mixin ck-disabled;\n }\n\n /* https://github.com/ckeditor/ckeditor5/issues/816 */\n &.ck-on {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n &.ck-dropdown__button_label-width_auto .ck-button__label {\n width: auto;\n }\n\n /* https://github.com/ckeditor/ckeditor5/issues/8699 */\n &.ck-off:active,\n &.ck-on:active {\n box-shadow: none;\n \n &:focus {\n @mixin ck-box-shadow var(--ck-focus-outer-shadow);\n }\n }\n }\n}\n\n.ck.ck-dropdown__panel {\n @mixin ck-rounded-corners;\n @mixin ck-drop-shadow;\n\n background: var(--ck-color-dropdown-panel-background);\n border: 1px solid var(--ck-color-dropdown-panel-border);\n bottom: 0;\n\n /* Make sure the panel is at least as wide as the drop-down\'s button. */\n min-width: 100%;\n\n /* Disabled corner border radius to be consistent with the .dropdown__button\n https://github.com/ckeditor/ckeditor5/issues/816 */\n &.ck-dropdown__panel_se {\n border-top-left-radius: 0;\n }\n\n &.ck-dropdown__panel_sw {\n border-top-right-radius: 0;\n }\n\n &.ck-dropdown__panel_ne {\n border-bottom-left-radius: 0;\n }\n\n &.ck-dropdown__panel_nw {\n border-bottom-right-radius: 0;\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n opacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n box-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},3949:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n /* Disabled radius of top-left border to be consistent with .dropdown__button\n https://github.com/ckeditor/ckeditor5/issues/816 */\n @mixin ck-rounded-corners {\n border-top-left-radius: 0;\n }\n\n /* Make sure the button belonging to the first/last child of the list goes well with the\n border radius of the entire panel. */\n & .ck-list__item {\n &:first-child .ck-button {\n @mixin ck-rounded-corners {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n\n &:last-child .ck-button {\n @mixin ck-rounded-corners {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},7686:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_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}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CASA,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCC7EA,eDuFA,CAVA,qHCzEC,qCDmFD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n /* Enable font size inheritance, which allows fluid UI scaling. */\n font-size: inherit;\n\n & .ck-splitbutton__action:focus {\n z-index: calc(var(--ck-z-default) + 1);\n }\n}\n\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n --ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n --ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n /*\n * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n */\n &:hover > .ck-splitbutton__action,\n &.ck-splitbutton_open > .ck-splitbutton__action {\n @nest [dir="ltr"] & {\n /* Don\'t round the action button on the right side */\n border-top-right-radius: unset;\n border-bottom-right-radius: unset;\n }\n\n @nest [dir="rtl"] & {\n /* Don\'t round the action button on the left side */\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n & > .ck-splitbutton__arrow {\n /* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n it must get some arbitrary min-width. */\n min-width: unset;\n\n @nest [dir="ltr"] & {\n /* Don\'t round the arrow button on the left side */\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n\n @nest [dir="rtl"] & {\n /* Don\'t round the arrow button on the right side */\n border-top-right-radius: unset;\n border-bottom-right-radius: unset;\n }\n\n & svg {\n width: var(--ck-dropdown-arrow-size);\n }\n }\n\n /* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n as a whole. The background of both buttons should stand out and there should be a visual\n separation between both buttons. */\n &.ck-splitbutton_open,\n &:hover {\n /* When the split button hovered as a whole, not as individual buttons. */\n & > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n background: var(--ck-color-split-button-hover-background);\n }\n\n /* Splitbutton separator needs to be set with the ::after pseudoselector\n to display properly the borders on focus */\n & > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n content: \'\';\n position: absolute;\n width: 1px;\n height: 100%;\n background-color: var(--ck-color-split-button-hover-border);\n }\n\n @nest [dir="ltr"] & {\n & > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n left: -1px;\n }\n }\n\n @nest [dir="rtl"] & {\n & > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n right: -1px;\n }\n }\n }\n\n /* Don\'t round the bottom left and right corners of the buttons when "open"\n https://github.com/ckeditor/ckeditor5/issues/816 */\n &.ck-splitbutton_open {\n @mixin ck-rounded-corners {\n & > .ck-splitbutton__action {\n border-bottom-left-radius: 0;\n }\n\n & > .ck-splitbutton__arrow {\n border-bottom-right-radius: 0;\n }\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},7339:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n /* https://github.com/ckeditor/ckeditor5/issues/5586 */\n width: max-content;\n max-width: var(--ck-toolbar-dropdown-max-width);\n\n & .ck-button {\n &:focus {\n z-index: calc(var(--ck-z-default) + 1);\n }\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n border: 0;\n}\n"],sourceRoot:""}]);let a=s},9688:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n --ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n @mixin ck-rounded-corners;\n\n &.ck-focused {\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-inner-shadow);\n }\n}\n\n.ck.ck-editor__editable_inline {\n overflow: auto;\n padding: 0 var(--ck-spacing-standard);\n border: 1px solid transparent;\n\n &[dir="ltr"] {\n text-align: left;\n }\n\n &[dir="rtl"] {\n text-align: right;\n }\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n & > *:first-child {\n margin-top: var(--ck-spacing-large);\n }\n\n /* https://github.com/ckeditor/ckeditor5/issues/847 */\n & > *:last-child {\n /*\n * This value should match with the default margins of the block elements (like .media or .image)\n * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n */\n margin-bottom: var(--ck-spacing-large);\n }\n\n /* https://github.com/ckeditor/ckeditor5/issues/6517 */\n &.ck-blurred ::selection {\n background: var(--ck-color-editable-blur-selection);\n }\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n &::after {\n border-bottom-color: var(--ck-color-base-foreground);\n }\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n &::after {\n border-top-color: var(--ck-color-base-foreground);\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n box-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},8847:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BACD,CCNA,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n justify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n padding: var(--ck-spacing-small) var(--ck-spacing-large);\n height: var(--ck-form-header-height);\n line-height: var(--ck-form-header-height);\n border-bottom: 1px solid var(--ck-color-base-border);\n\n & .ck-form__header__label {\n font-weight: bold;\n }\n}\n"],sourceRoot:""}]);let a=s},6574:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAY1B,qBAcD,CAZC,0BARA,aAAc,CAGd,cAgBA,CAJC,yBAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n vertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n width: var(--ck-icon-size);\n height: var(--ck-icon-size);\n\n /* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n font-size: .8333350694em;\n\n color: inherit;\n\n /* Inherit cursor style (#5). */\n cursor: inherit;\n\n /* This will prevent blurry icons on Firefox. See #340. */\n will-change: transform;\n\n & * {\n /* Inherit cursor style (#5). */\n cursor: inherit;\n\n /* Allows dynamic coloring of the icons. */\n color: inherit;\n\n &:not([fill]) {\n /* Needed by FF. */\n fill: currentColor;\n }\n }\n}\n'],sourceRoot:""}]);let a=s},4879:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n --ck-input-width: 18em;\n\n /* Backward compatibility. */\n --ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n @mixin ck-rounded-corners;\n\n background: var(--ck-color-input-background);\n border: 1px solid var(--ck-color-input-border);\n padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n min-width: var(--ck-input-width);\n\n /* This is important to stay of the same height as surrounding buttons */\n min-height: var(--ck-ui-component-min-height);\n\n /* Apply some smooth transition to the box-shadow and border. */\n transition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n &:focus {\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-focus-outer-shadow);\n }\n\n &[readonly] {\n border: 1px solid var(--ck-color-input-disabled-border);\n background: var(--ck-color-input-disabled-background);\n color: var(--ck-color-input-disabled-text);\n\n &:focus {\n /* The read-only input should have a slightly less visible shadow when focused. */\n @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n }\n }\n\n &.ck-error {\n border-color: var(--ck-color-input-error-border);\n animation: ck-input-shake .3s ease both;\n\n &:focus {\n @mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n }\n }\n}\n\n@keyframes ck-input-shake {\n 20% {\n transform: translateX(-2px);\n }\n\n 40% {\n transform: translateX(2px);\n }\n\n 60% {\n transform: translateX(-1px);\n }\n\n 80% {\n transform: translateX(1px);\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n box-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},3662:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n display: block;\n}\n\n.ck.ck-voice-label {\n display: none;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n font-weight: bold;\n}\n"],sourceRoot:""}]);let a=s},2577:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,yEACD,CAEA,0BCHC,eD4GD,CAzGA,2FCCE,qCDwGF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,wFAYF,CAfA,oUAOE,iGAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n & > .ck.ck-labeled-field-view__input-wrapper {\n display: flex;\n position: relative;\n }\n\n & .ck.ck-label {\n display: block;\n position: absolute;\n }\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n --ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n --ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n --ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n @mixin ck-rounded-corners;\n\n & > .ck.ck-labeled-field-view__input-wrapper {\n width: 100%;\n\n & > .ck.ck-label {\n top: 0px;\n\n @mixin ck-dir ltr {\n left: 0px;\n }\n\n @mixin ck-dir rtl {\n right: 0px;\n }\n\n pointer-events: none;\n transform-origin: 0 0;\n\n /* By default, display the label scaled down above the field. */\n transform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n background: var(--ck-color-labeled-field-label-background);\n padding: 0 calc(.5 * var(--ck-font-size-tiny));\n line-height: initial;\n font-weight: normal;\n\n /* Prevent overflow when the label is longer than the input */\n text-overflow: ellipsis;\n overflow: hidden;\n\n max-width: 100%;\n\n transition:\n transform var(--ck-labeled-field-view-transition),\n padding var(--ck-labeled-field-view-transition),\n background var(--ck-labeled-field-view-transition);\n }\n }\n\n &.ck-error {\n & > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n color: var(--ck-color-base-error);\n }\n\n & .ck-input:not([readonly]) + .ck.ck-label {\n color: var(--ck-color-base-error);\n }\n }\n\n & .ck-labeled-field-view__status {\n font-size: var(--ck-font-size-small);\n margin-top: var(--ck-spacing-small);\n\n /* Let the info wrap to the next line to avoid stretching the layout horizontally.\n The status could be very long. */\n white-space: normal;\n\n &.ck-labeled-field-view__status_error {\n color: var(--ck-color-base-error);\n }\n }\n\n /* Disabled fields and fields that have no focus should fade out. */\n &.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n color: var(--ck-color-input-disabled-text);\n }\n\n /* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n /* stylelint-disable-next-line no-descending-specificity */\n &.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n @mixin ck-dir ltr {\n transform: translate(var(--ck-spacing-medium), calc(0.6 * var(--ck-font-size-base))) scale(1);\n }\n\n @mixin ck-dir rtl {\n transform: translate(calc(-1 * var(--ck-spacing-medium)), calc(0.6 * var(--ck-font-size-base))) scale(1);\n }\n\n /* Compensate for the default translate position. */\n max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n background: transparent;\n padding: 0;\n }\n\n /*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n /* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n & > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n background: transparent;\n }\n\n /* When the dropdown is "empty", the labeled field label replaces its label. */\n &.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n opacity: 0;\n }\n\n /* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n &.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 {\n max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},1046:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n @mixin ck-unselectable;\n\n display: flex;\n flex-direction: column;\n\n & .ck-list__item,\n & .ck-list__separator {\n display: block;\n }\n\n /* Make sure that whatever child of the list item gets focus, it remains on the\n top. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n adjacent list items. */\n & .ck-list__item > *:focus {\n position: relative;\n z-index: var(--ck-z-default);\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n @mixin ck-rounded-corners;\n\n list-style-type: none;\n background: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n cursor: default;\n min-width: 12em;\n\n & .ck-button {\n min-height: unset;\n width: 100%;\n text-align: left;\n border-radius: 0;\n\n /* List items should have the same height. Use absolute units to make sure it is so\n because e.g. different heading styles may have different height\n https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n padding:\n calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n calc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n & .ck-button__label {\n /* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n line-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n }\n\n &:active {\n box-shadow: none;\n }\n\n &.ck-on {\n background: var(--ck-color-list-button-on-background);\n color: var(--ck-color-list-button-on-text);\n\n &:active {\n box-shadow: none;\n }\n\n &:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-on-background-focus);\n }\n\n &:focus:not(.ck-switchbutton):not(.ck-disabled) {\n border-color: var(--ck-color-base-background);\n }\n }\n\n &:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-hover-background);\n }\n }\n\n /* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n of conveying its state (like the switcher) */\n & .ck-switchbutton {\n &.ck-on {\n background: var(--ck-color-list-background);\n color: inherit;\n\n &:hover:not(.ck-disabled) {\n background: var(--ck-color-list-button-hover-background);\n color: inherit;\n }\n }\n }\n}\n\n.ck.ck-list__separator {\n height: 1px;\n width: 100%;\n background: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},8793:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n /* Make sure the balloon arrow does not float over its children. */\n --ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n display: none;\n position: absolute;\n\n z-index: var(--ck-z-modal);\n\n &.ck-balloon-panel_with-arrow {\n &::before,\n &::after {\n content: "";\n position: absolute;\n }\n\n &::before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n }\n\n &::after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n }\n }\n\n &[class*="arrow_n"] {\n &::before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n }\n\n &::after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n }\n }\n\n &[class*="arrow_s"] {\n &::before {\n z-index: var(--ck-balloon-panel-arrow-z-index);\n }\n\n &::after {\n z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n }\n }\n\n &.ck-balloon-panel_visible {\n display: block;\n }\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n --ck-balloon-border-width: 1px;\n --ck-balloon-arrow-offset: 2px;\n --ck-balloon-arrow-height: 10px;\n --ck-balloon-arrow-half-width: 8px;\n --ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n @mixin ck-rounded-corners;\n @mixin ck-drop-shadow;\n\n min-height: 15px;\n\n background: var(--ck-color-panel-background);\n border: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n &.ck-balloon-panel_with-arrow {\n &::before,\n &::after {\n width: 0;\n height: 0;\n border-style: solid;\n }\n }\n\n &[class*="arrow_n"] {\n &::before,\n &::after {\n border-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n }\n\n &::before {\n border-color: transparent transparent var(--ck-color-panel-border) transparent;\n margin-top: calc( -1 * var(--ck-balloon-border-width) );\n }\n\n &::after {\n border-color: transparent transparent var(--ck-color-panel-background) transparent;\n margin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n }\n }\n\n &[class*="arrow_s"] {\n &::before,\n &::after {\n border-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n }\n\n &::before {\n border-color: var(--ck-color-panel-border) transparent transparent;\n filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n margin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n }\n\n &::after {\n border-color: var(--ck-color-panel-background) transparent transparent transparent;\n margin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n }\n }\n\n &[class*="arrow_e"] {\n &::before,\n &::after {\n border-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n }\n\n &::before {\n border-color: transparent transparent transparent var(--ck-color-panel-border);\n margin-right: calc( -1 * var(--ck-balloon-border-width) );\n }\n\n &::after {\n border-color: transparent transparent transparent var(--ck-color-panel-background);\n margin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n }\n }\n\n &[class*="arrow_w"] {\n &::before,\n &::after {\n border-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n }\n\n &::before {\n border-color: transparent var(--ck-color-panel-border) transparent transparent;\n margin-left: calc( -1 * var(--ck-balloon-border-width) );\n }\n\n &::after {\n border-color: transparent var(--ck-color-panel-background) transparent transparent;\n margin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n }\n }\n\n &.ck-balloon-panel_arrow_n {\n &::before,\n &::after {\n left: 50%;\n margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_nw {\n &::before,\n &::after {\n left: calc(2 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_ne {\n &::before,\n &::after {\n right: calc(2 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_s {\n &::before,\n &::after {\n left: 50%;\n margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_sw {\n &::before,\n &::after {\n left: calc(2 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_se {\n &::before,\n &::after {\n right: calc(2 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_sme {\n &::before,\n &::after {\n right: 25%;\n margin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_smw {\n &::before,\n &::after {\n left: 25%;\n margin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n bottom: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_nme {\n &::before,\n &::after {\n right: 25%;\n margin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_nmw {\n &::before,\n &::after {\n left: 25%;\n margin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n top: calc(-1 * var(--ck-balloon-arrow-height));\n }\n }\n\n &.ck-balloon-panel_arrow_e {\n &::before,\n &::after {\n right: calc(-1 * var(--ck-balloon-arrow-height));\n margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n top: 50%;\n }\n }\n\n &.ck-balloon-panel_arrow_w {\n &::before,\n &::after {\n left: calc(-1 * var(--ck-balloon-arrow-height));\n margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n top: 50%;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n box-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},4650:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n justify-content: center;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n background: var(--ck-color-toolbar-background);\n border-bottom: 1px solid var(--ck-color-toolbar-border);\n padding: 0 var(--ck-spacing-small);\n\n /* Let's keep similar appearance to `ck-toolbar`. */\n & > * {\n margin-right: var(--ck-spacing-small);\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n }\n\n /* Gives counter more breath than buttons. */\n & .ck-balloon-rotator__counter {\n margin-right: var(--ck-spacing-standard);\n\n /* We need to use smaller margin because of previous button's right margin. */\n margin-left: var(--ck-spacing-small);\n }\n}\n\n.ck .ck-balloon-rotator__content {\n\n /* Disable default annotation shadow inside rotator with fake panels. */\n & .ck.ck-annotation-wrapper {\n box-shadow: none;\n }\n}\n"],sourceRoot:""}]);let a=s},7676:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n position: absolute;\n\n /* Fake panels should be placed under main balloon content. */\n z-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n position: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n z-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n z-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n --ck-balloon-fake-panel-offset-horizontal: 6px;\n --ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n @mixin ck-drop-shadow;\n\n min-height: 15px;\n\n background: var(--ck-color-panel-background);\n border: 1px solid var(--ck-color-panel-border);\n border-radius: var(--ck-border-radius);\n\n width: 100%;\n height: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n margin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n margin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n --ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n box-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},5868:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n & .ck-sticky-panel__content_sticky {\n z-index: var(--ck-z-modal); /* #315 */\n position: fixed;\n top: 0;\n }\n\n & .ck-sticky-panel__content_sticky_bottom-limit {\n top: auto;\n position: absolute;\n }\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n & .ck-sticky-panel__content_sticky {\n @mixin ck-drop-shadow;\n\n border-width: 0 1px 1px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n box-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},6764:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n &::after {\n content: "";\n width: 0;\n position: absolute;\n right: -1px;\n top: -1px;\n bottom: -1px;\n z-index: 1;\n }\n\n &:focus::after {\n display: none;\n }\n}\n\n.ck.ck-responsive-form {\n @mixin ck-media-phone {\n & .ck-button {\n &::after {\n content: "";\n width: 0;\n position: absolute;\n right: -1px;\n top: -1px;\n bottom: -1px;\n z-index: 1;\n }\n\n &:focus::after {\n display: none;\n }\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n @media screen and (max-width: 600px) {\n @mixin-content;\n }\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n border-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n padding: var(--ck-spacing-large);\n\n &:focus {\n /* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n outline: none;\n }\n\n @mixin ck-dir ltr {\n & > :not(:first-child) {\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-dir rtl {\n & > :not(:last-child) {\n margin-left: var(--ck-spacing-standard);\n }\n }\n\n @mixin ck-media-phone {\n padding: 0;\n width: calc(.8 * var(--ck-input-width));\n\n & .ck-labeled-field-view {\n margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n & .ck-input-text {\n min-width: 0;\n width: 100%;\n }\n\n /* Let the long error messages wrap in the narrow form. */\n & .ck-labeled-field-view__error {\n white-space: normal;\n }\n }\n\n /* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n & > .ck-button:nth-last-child(2) {\n &::after {\n border-right: 1px solid var(--ck-color-base-border);\n }\n }\n\n & > .ck-button:nth-last-child(1),\n & > .ck-button:nth-last-child(2) {\n padding: var(--ck-spacing-standard);\n margin-top: var(--ck-spacing-large);\n border-radius: 0;\n\n &:not(:focus) {\n border-top: 1px solid var(--ck-color-base-border);\n }\n\n @mixin ck-dir ltr {\n margin-left: 0;\n }\n\n @mixin ck-dir rtl {\n margin-left: 0;\n\n &:last-of-type {\n border-right: 1px solid var(--ck-color-base-border);\n }\n }\n }\n }\n}\n'],sourceRoot:""}]);let a=s},9695:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n position: absolute;\n z-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-color-block-toolbar-button: var(--ck-color-text);\n --ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n color: var(--ck-color-block-toolbar-button);\n font-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);let a=s},5542:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDoGD,CAvGA,qECOE,qCDgGF,CAvGA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAmGD,CAhGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAjGF,qCAqGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n @mixin ck-unselectable;\n\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n & > .ck-toolbar__items {\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n flex-grow: 1;\n\n }\n\n & .ck.ck-toolbar__separator {\n display: inline-block;\n\n /*\n * A leading or trailing separator makes no sense (separates from nothing on one side).\n * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n * moved to another toolbar in the dropdown.\n */\n &:first-child,\n &:last-child {\n display: none;\n }\n }\n\n & .ck-toolbar__line-break {\n flex-basis: 100%;\n }\n\n &.ck-toolbar_grouping > .ck-toolbar__items {\n flex-wrap: nowrap;\n }\n\n &.ck-toolbar_vertical > .ck-toolbar__items {\n flex-direction: column;\n }\n\n &.ck-toolbar_floating > .ck-toolbar__items {\n flex-wrap: nowrap;\n }\n\n & > .ck.ck-toolbar__grouped-dropdown {\n & > .ck-dropdown__button .ck-dropdown__arrow {\n display: none;\n }\n }\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n @mixin ck-rounded-corners;\n\n background: var(--ck-color-toolbar-background);\n padding: 0 var(--ck-spacing-small);\n border: 1px solid var(--ck-color-toolbar-border);\n\n & .ck.ck-toolbar__separator {\n align-self: stretch;\n width: 1px;\n min-width: 1px;\n background: var(--ck-color-toolbar-border);\n\n /*\n * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n * See https://github.com/ckeditor/ckeditor5/issues/7493.\n */\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n }\n\n & .ck-toolbar__line-break {\n height: 0;\n }\n\n & > .ck-toolbar__items {\n & > *:not(.ck-toolbar__line-break) {\n /* (#11) Separate toolbar items. */\n margin-right: var(--ck-spacing-small);\n }\n\n /* Don\'t display a separator after an empty items container, for instance,\n when all items were grouped */\n &:empty + .ck.ck-toolbar__separator {\n display: none;\n }\n }\n\n & > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n & > .ck.ck-toolbar__grouped-dropdown {\n /* Make sure items wrapped to the next line have v-spacing */\n margin-top: var(--ck-spacing-small);\n margin-bottom: var(--ck-spacing-small);\n }\n\n &.ck-toolbar_vertical {\n /* Items in a vertical toolbar span the entire width. */\n padding: 0;\n\n /* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n & > .ck-toolbar__items > .ck {\n /* Items in a vertical toolbar should span the horizontal space. */\n width: 100%;\n\n /* Items in a vertical toolbar should have no margin. */\n margin: 0;\n\n /* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n border-radius: 0;\n }\n }\n\n &.ck-toolbar_compact {\n /* No spacing around items. */\n padding: 0;\n\n & > .ck-toolbar__items > * {\n /* Compact toolbar items have no spacing between them. */\n margin: 0;\n\n /* "Middle" children should have no rounded corners. */\n &:not(:first-child):not(:last-child) {\n border-radius: 0;\n }\n }\n }\n\n & > .ck.ck-toolbar__grouped-dropdown {\n /*\n * Dropdown button has asymmetric padding to fit the arrow.\n * This button has no arrow so let\'s revert that padding back to normal.\n */\n & > .ck.ck-button.ck-dropdown__button {\n padding-left: var(--ck-spacing-tiny);\n }\n }\n\n /* A drop-down containing the nested toolbar with configured items. */\n & .ck-toolbar__nested-toolbar-dropdown {\n /* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n & > .ck-dropdown__panel {\n min-width: auto;\n }\n\n & > .ck-button > .ck-button__label {\n max-width: 7em;\n width: auto;\n }\n }\n\n @nest .ck-toolbar-container & {\n border: 0;\n }\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n & > .ck-toolbar__items > .ck {\n margin-right: 0;\n }\n\n &:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n /* (#11) Separate toolbar items. */\n margin-left: var(--ck-spacing-small);\n }\n\n & > .ck-toolbar__items > .ck:last-child {\n margin-left: 0;\n }\n\n &.ck-toolbar_compact > .ck-toolbar__items > .ck {\n /* No rounded corners on the right side of the first child. */\n &:first-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n /* No rounded corners on the left side of the last child. */\n &:last-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n\n /* Separate the the separator form the grouping dropdown when some items are grouped. */\n & > .ck.ck-toolbar__separator {\n margin-left: var(--ck-spacing-small);\n }\n\n /* Some spacing between the items and the separator before the grouped items dropdown. */\n &.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n margin-left: var(--ck-spacing-small);\n }\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n & > .ck-toolbar__items > .ck:last-child {\n margin-right: 0;\n }\n\n &.ck-toolbar_compact > .ck-toolbar__items > .ck {\n /* No rounded corners on the right side of the first child. */\n &:first-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n /* No rounded corners on the left side of the last child. */\n &:last-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n }\n\n /* Separate the the separator form the grouping dropdown when some items are grouped. */\n & > .ck.ck-toolbar__separator {\n margin-right: var(--ck-spacing-small);\n }\n\n /* Some spacing between the items and the separator before the grouped items dropdown. */\n &.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n margin-right: var(--ck-spacing-small);\n }\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n border-radius: 0;\n\n @nest .ck-rounded-corners &,\n &.ck-rounded-corners {\n border-radius: var(--ck-border-radius);\n @mixin-content;\n }\n}\n"],sourceRoot:""}]);let a=s},3332:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDPnC,mBAAoB,CAEpB,qCACD,CCMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAbD,gCAgBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n /* Keep tooltips transparent for any interactions. */\n pointer-events: none;\n\n z-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n --ck-balloon-border-width: 0px;\n --ck-balloon-arrow-offset: 0px;\n --ck-balloon-arrow-half-width: 4px;\n --ck-balloon-arrow-height: 4px;\n --ck-color-panel-background: var(--ck-color-tooltip-background);\n\n padding: 0 var(--ck-spacing-medium);\n\n & .ck-tooltip__text {\n font-size: .9em;\n line-height: 1.5;\n color: var(--ck-color-tooltip-text);\n }\n\n /* Reset balloon panel styles */\n box-shadow: none;\n\n /* Hide the default shadow of the .ck-balloon-panel tip */\n &::before {\n display: none;\n }\n}\n'],sourceRoot:""}]);let a=s},4793:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CCnGhE,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJmGD,CI7FA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n /* Override selector specificity. Otherwise, all elements with some display\n style defined will override this one, which is not a desired result. */\n display: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n box-sizing: border-box;\n width: auto;\n height: auto;\n position: static;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-z-default: 1;\n --ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n transition: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-color-base-foreground: hsl(0, 0%, 98%);\n --ck-color-base-background: hsl(0, 0%, 100%);\n --ck-color-base-border: hsl(220, 6%, 81%);\n --ck-color-base-action: hsl(104, 50.2%, 42.5%);\n --ck-color-base-focus: hsl(209, 92%, 70%);\n --ck-color-base-text: hsl(0, 0%, 20%);\n --ck-color-base-active: hsl(218.1, 100%, 58%);\n --ck-color-base-active-focus: hsl(218.2, 100%, 52.5%);\n --ck-color-base-error: hsl(15, 100%, 43%);\n\n /* -- Generic colors ------------------------------------------------------------------------ */\n\n --ck-color-focus-border-coordinates: 218, 81.8%, 56.9%;\n --ck-color-focus-border: hsl(var(--ck-color-focus-border-coordinates));\n --ck-color-focus-outer-shadow: hsl(212.4, 89.3%, 89%);\n --ck-color-focus-disabled-shadow: hsla(209, 90%, 72%,.3);\n --ck-color-focus-error-shadow: hsla(9,100%,56%,.3);\n --ck-color-text: var(--ck-color-base-text);\n --ck-color-shadow-drop: hsla(0, 0%, 0%, 0.15);\n --ck-color-shadow-drop-active: hsla(0, 0%, 0%, 0.2);\n --ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1);\n\n /* -- Buttons ------------------------------------------------------------------------------- */\n\n --ck-color-button-default-background: transparent;\n --ck-color-button-default-hover-background: hsl(0, 0%, 94.1%);\n --ck-color-button-default-active-background: hsl(0, 0%, 94.1%);\n --ck-color-button-default-disabled-background: transparent;\n\n --ck-color-button-on-background: hsl(212, 100%, 97.1%);\n --ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%);\n --ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%);\n --ck-color-button-on-disabled-background: hsl(211, 15%, 95%);\n --ck-color-button-on-color: hsl(218.1, 100%, 58%);\n\n\n --ck-color-button-action-background: var(--ck-color-base-action);\n --ck-color-button-action-hover-background: hsl(104, 53.2%, 40.2%);\n --ck-color-button-action-active-background: hsl(104, 53.2%, 40.2%);\n --ck-color-button-action-disabled-background: hsl(104, 44%, 58%);\n --ck-color-button-action-text: var(--ck-color-base-background);\n\n --ck-color-button-save: hsl(120, 100%, 27%);\n --ck-color-button-cancel: hsl(15, 100%, 43%);\n\n --ck-color-switch-button-off-background: hsl(0, 0%, 57.6%);\n --ck-color-switch-button-off-hover-background: hsl(0, 0%, 49%);\n --ck-color-switch-button-on-background: var(--ck-color-button-action-background);\n --ck-color-switch-button-on-hover-background: hsl(104, 53.2%, 40.2%);\n --ck-color-switch-button-inner-background: var(--ck-color-base-background);\n --ck-color-switch-button-inner-shadow: hsla(0, 0%, 0%, 0.1);\n\n /* -- Dropdown ------------------------------------------------------------------------------ */\n\n --ck-color-dropdown-panel-background: var(--ck-color-base-background);\n --ck-color-dropdown-panel-border: var(--ck-color-base-border);\n\n /* -- Input --------------------------------------------------------------------------------- */\n\n --ck-color-input-background: var(--ck-color-base-background);\n --ck-color-input-border: var(--ck-color-base-border);\n --ck-color-input-error-border: var(--ck-color-base-error);\n --ck-color-input-text: var(--ck-color-base-text);\n --ck-color-input-disabled-background: hsl(0, 0%, 95%);\n --ck-color-input-disabled-border: var(--ck-color-base-border);\n --ck-color-input-disabled-text: hsl(0, 0%, 46%);\n\n /* -- List ---------------------------------------------------------------------------------- */\n\n --ck-color-list-background: var(--ck-color-base-background);\n --ck-color-list-button-hover-background: var(--ck-color-button-default-hover-background);\n --ck-color-list-button-on-background: var(--ck-color-button-on-color);\n --ck-color-list-button-on-background-focus: var(--ck-color-button-on-color);\n --ck-color-list-button-on-text: var(--ck-color-base-background);\n\n /* -- Panel --------------------------------------------------------------------------------- */\n\n --ck-color-panel-background: var(--ck-color-base-background);\n --ck-color-panel-border: var(--ck-color-base-border);\n\n /* -- Toolbar ------------------------------------------------------------------------------- */\n\n --ck-color-toolbar-background: var(--ck-color-base-background);\n --ck-color-toolbar-border: var(--ck-color-base-border);\n\n /* -- Tooltip ------------------------------------------------------------------------------- */\n\n --ck-color-tooltip-background: var(--ck-color-base-text);\n --ck-color-tooltip-text: var(--ck-color-base-background);\n\n /* -- Engine -------------------------------------------------------------------------------- */\n\n --ck-color-engine-placeholder-text: hsl(0, 0%, 44%);\n\n /* -- Upload -------------------------------------------------------------------------------- */\n\n --ck-color-upload-bar-background: hsl(209, 92%, 70%);\n\n /* -- Link -------------------------------------------------------------------------------- */\n\n --ck-color-link-default: hsl(240, 100%, 47%);\n --ck-color-link-selected-background: hsla(201, 100%, 56%, 0.1);\n --ck-color-link-fake-selection: hsla(201, 100%, 56%, 0.3);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n /**\n * An opacity value of disabled UI item.\n */\n --ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n /**\n * The geometry of the of focused element's outer shadow.\n */\n --ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n /**\n * A visual style of focused element's outer shadow.\n */\n --ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n /**\n * A visual style of focused element's outer shadow (when disabled).\n */\n --ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n /**\n * A visual style of focused element's outer shadow (when has errors).\n */\n --ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n /**\n * A visual style of focused element's border or outline.\n */\n --ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-font-size-base: 13px;\n --ck-line-height-base: 1.84615;\n --ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n --ck-font-size-tiny: 0.7em;\n --ck-font-size-small: 0.75em;\n --ck-font-size-normal: 1em;\n --ck-font-size-big: 1.4em;\n --ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n /* This is super-important. This is **manually** adjusted so a button without an icon\n is never smaller than a button with icon, additionally making sure that text-less buttons\n are perfect squares. The value is also shared by other components which should stay "in-line"\n with buttons. */\n --ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n /* Do not include inheritable rules here. */\n margin: 0;\n padding: 0;\n border: 0;\n background: transparent;\n text-decoration: none;\n vertical-align: middle;\n transition: none;\n\n /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n word-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n /* These are rule inherited by all children elements. */\n border-collapse: collapse;\n font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n color: var(--ck-color-text);\n text-align: left;\n white-space: nowrap;\n cursor: auto;\n float: none;\n}\n\n.ck-reset_all {\n & .ck-rtl *:not(.ck-reset_all-excluded *) {\n text-align: right;\n }\n\n & iframe:not(.ck-reset_all-excluded *) {\n /* For IE */\n vertical-align: inherit;\n }\n\n & textarea:not(.ck-reset_all-excluded *) {\n white-space: pre-wrap;\n }\n\n & textarea:not(.ck-reset_all-excluded *),\n & input[type="text"]:not(.ck-reset_all-excluded *),\n & input[type="password"]:not(.ck-reset_all-excluded *) {\n cursor: text;\n }\n\n & textarea[disabled]:not(.ck-reset_all-excluded *),\n & input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n & input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n cursor: default;\n }\n\n & fieldset:not(.ck-reset_all-excluded *) {\n padding: 10px;\n border: 2px groove hsl(255, 7%, 88%);\n }\n\n & button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n /* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n padding: 0;\n border: 0\n }\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n text-align: right;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n --ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n /**\n * A visual style of element's inner shadow (i.e. input).\n */\n --ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n /**\n * A visual style of element's drop shadow (i.e. panel).\n */\n --ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n /**\n * A visual style of element's active shadow (i.e. comment or suggestion).\n */\n --ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-spacing-unit: 0.6em;\n --ck-spacing-large: calc(var(--ck-spacing-unit) * 1.5);\n --ck-spacing-standard: var(--ck-spacing-unit);\n --ck-spacing-medium: calc(var(--ck-spacing-unit) * 0.8);\n --ck-spacing-small: calc(var(--ck-spacing-unit) * 0.5);\n --ck-spacing-tiny: calc(var(--ck-spacing-unit) * 0.3);\n --ck-spacing-extra-tiny: calc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);let a=s},3488:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-color-resizer: var(--ck-color-focus-border);\n --ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n --ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n --ck-resizer-border-radius: var(--ck-border-radius);\n --ck-resizer-tooltip-offset: 10px;\n --ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n /* This is neccessary for type around UI to be positioned properly. */\n position: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n /* Make the widget wrapper a relative positioning container for the drag handle. */\n position: relative;\n\n & .ck-widget__selection-handle {\n position: absolute;\n\n & .ck-icon {\n /* Make sure the icon in not a subject to font-size or line-height to avoid\n unnecessary spacing around it. */\n display: block;\n }\n }\n\n /* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n &:hover > .ck-widget__selection-handle {\n visibility: visible;\n }\n\n /* Show the selection handle when the widget is selected, but not for nested widgets. */\n &.ck-widget_selected > .ck-widget__selection-handle {\n visibility: visible;\n }\n}\n\n.ck .ck-size-view {\n background: var(--ck-color-resizer-tooltip-background);\n color: var(--ck-color-resizer-tooltip-text);\n border: 1px solid var(--ck-color-resizer-tooltip-text);\n border-radius: var(--ck-resizer-border-radius);\n font-size: var(--ck-font-size-tiny);\n display: block;\n padding: 0 var(--ck-spacing-small);\n height: var(--ck-resizer-tooltip-height);\n line-height: var(--ck-resizer-tooltip-height);\n\n &.ck-orientation-top-left,\n &.ck-orientation-top-right,\n &.ck-orientation-bottom-right,\n &.ck-orientation-bottom-left,\n &.ck-orientation-above-center {\n position: absolute;\n }\n\n &.ck-orientation-top-left {\n top: var(--ck-resizer-tooltip-offset);\n left: var(--ck-resizer-tooltip-offset);\n }\n\n &.ck-orientation-top-right {\n top: var(--ck-resizer-tooltip-offset);\n right: var(--ck-resizer-tooltip-offset);\n }\n\n &.ck-orientation-bottom-right {\n bottom: var(--ck-resizer-tooltip-offset);\n right: var(--ck-resizer-tooltip-offset);\n }\n\n &.ck-orientation-bottom-left {\n bottom: var(--ck-resizer-tooltip-offset);\n left: var(--ck-resizer-tooltip-offset);\n }\n\n /* Class applied if the widget is too small to contain the size label */\n &.ck-orientation-above-center {\n top: calc(var(--ck-resizer-tooltip-height) * -1);\n left: 50%;\n transform: translate(-50%);\n }\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n --ck-widget-outline-thickness: 3px;\n --ck-widget-handler-icon-size: 16px;\n --ck-widget-handler-animation-duration: 200ms;\n --ck-widget-handler-animation-curve: ease;\n\n --ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n --ck-color-widget-hover-border: hsl(43, 100%, 62%);\n --ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n --ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n outline-width: var(--ck-widget-outline-thickness);\n outline-style: solid;\n outline-color: transparent;\n transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n &.ck-widget_selected,\n &.ck-widget_selected:hover {\n outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n }\n\n &:hover {\n outline-color: var(--ck-color-widget-hover-border);\n }\n}\n\n.ck .ck-editor__nested-editable {\n border: 1px solid transparent;\n\n /* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n These styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n &.ck-editor__nested-editable_focused,\n &:focus {\n @mixin ck-focus-ring;\n @mixin ck-box-shadow var(--ck-inner-shadow);\n\n background-color: var(--ck-color-widget-editable-focus-background);\n }\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n & .ck-widget__selection-handle {\n padding: 4px;\n box-sizing: border-box;\n\n /* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n background-color: transparent;\n opacity: 0;\n\n /* Transition:\n * background-color for the .ck-widget_selected state change,\n * visibility for hiding the handler,\n * opacity for the proper look of the icon when the handler disappears. */\n transition:\n background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n /* Make only top corners round. */\n border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n /* Place the drag handler outside the widget wrapper. */\n transform: translateY(-100%);\n left: calc(0px - var(--ck-widget-outline-thickness));\n top: 0;\n\n & .ck-icon {\n /* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n width: var(--ck-widget-handler-icon-size);\n height: var(--ck-widget-handler-icon-size);\n color: var(--ck-color-widget-drag-handler-icon-color);\n\n /* The "selected" part of the icon is invisible by default */\n & .ck-icon__selected-indicator {\n opacity: 0;\n\n /* Note: The animation is longer on purpose. Simply feels better. */\n transition: opacity 300ms var(--ck-widget-handler-animation-curve);\n }\n }\n\n /* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n &:hover .ck-icon .ck-icon__selected-indicator {\n opacity: 1;\n }\n }\n\n /* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n &:hover > .ck-widget__selection-handle {\n opacity: 1;\n background-color: var(--ck-color-widget-hover-border);\n }\n\n /* Show the selection handler when the widget is selected, but not for nested widgets. */\n &.ck-widget_selected,\n &.ck-widget_selected:hover {\n & > .ck-widget__selection-handle {\n opacity: 1;\n background-color: var(--ck-color-focus-border);\n\n /* When the widget is selected, notify the user using the proper look of the icon. */\n & .ck-icon .ck-icon__selected-indicator {\n opacity: 1;\n }\n }\n }\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n left: auto;\n right: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n /* Prevent the :hover outline from showing up because of the used outline-color transition. */\n transition: none;\n\n &:not(.ck-widget_selected) {\n /* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n * See: https://github.com/ckeditor/ckeditor5/issues/1261\n *\n * Leave the unit because this custom property is used in calc() by other features.\n * See: https://github.com/ckeditor/ckeditor5/issues/6775\n */\n --ck-widget-outline-thickness: 0px;\n }\n\n &.ck-widget_with-selection-handle {\n & .ck-widget__selection-handle,\n & .ck-widget__selection-handle:hover {\n background: var(--ck-color-widget-blurred-border);\n }\n }\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n &.ck-widget_selected,\n &.ck-widget_selected:hover {\n outline-color: var(--ck-color-widget-blurred-border);\n\n &.ck-widget_with-selection-handle {\n & > .ck-widget__selection-handle,\n & > .ck-widget__selection-handle:hover {\n background: var(--ck-color-widget-blurred-border);\n }\n }\n }\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n /* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n In fact, anything with overflow: hidden.\n https://github.com/ckeditor/ckeditor5-block-quote/issues/28\n https://github.com/ckeditor/ckeditor5-widget/issues/44\n https://github.com/ckeditor/ckeditor5-widget/issues/66 */\n margin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n /* Disable native outline. */\n outline: none;\n border: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n box-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n @mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);let a=s},8506:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n /* Make the widget wrapper a relative positioning container for the drag handle. */\n position: relative;\n}\n\n.ck .ck-widget__resizer {\n display: none;\n position: absolute;\n\n /* The wrapper itself should not interfere with the pointer device, only the handles should. */\n pointer-events: none;\n\n left: 0;\n top: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n & > .ck-widget__resizer {\n display: block;\n }\n}\n\n.ck .ck-widget__resizer__handle {\n position: absolute;\n\n /* Resizers are the only UI elements that should interfere with a pointer device. */\n pointer-events: all;\n\n &.ck-widget__resizer__handle-top-left,\n &.ck-widget__resizer__handle-bottom-right {\n cursor: nwse-resize;\n }\n\n &.ck-widget__resizer__handle-top-right,\n &.ck-widget__resizer__handle-bottom-left {\n cursor: nesw-resize;\n }\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-resizer-size: 10px;\n\n /* Set the resizer with a 50% offset. */\n --ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n --ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n outline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n width: var(--ck-resizer-size);\n height: var(--ck-resizer-size);\n background: var(--ck-color-focus-border);\n border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n border-radius: var(--ck-resizer-border-radius);\n\n &.ck-widget__resizer__handle-top-left {\n top: var(--ck-resizer-offset);\n left: var(--ck-resizer-offset);\n }\n\n &.ck-widget__resizer__handle-top-right {\n top: var(--ck-resizer-offset);\n right: var(--ck-resizer-offset);\n }\n\n &.ck-widget__resizer__handle-bottom-right {\n bottom: var(--ck-resizer-offset);\n right: var(--ck-resizer-offset);\n }\n\n &.ck-widget__resizer__handle-bottom-left {\n bottom: var(--ck-resizer-offset);\n left: var(--ck-resizer-offset);\n }\n}\n"],sourceRoot:""}]);let a=s},4921:(e,t,i)=>{i.d(t,{Z:()=>a});var n=i(1799),o=i.n(n),r=i(2609),s=i.n(r)()(o());s.push([e.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n /*\n * Styles of the type around buttons\n */\n & .ck-widget__type-around__button {\n display: block;\n position: absolute;\n overflow: hidden;\n z-index: var(--ck-z-default);\n\n & svg {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: calc(var(--ck-z-default) + 2);\n }\n\n &.ck-widget__type-around__button_before {\n /* Place it in the middle of the outline */\n top: calc(-0.5 * var(--ck-widget-outline-thickness));\n left: min(10%, 30px);\n\n transform: translateY(-50%);\n }\n\n &.ck-widget__type-around__button_after {\n /* Place it in the middle of the outline */\n bottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n right: min(10%, 30px);\n\n transform: translateY(50%);\n }\n }\n\n /*\n * Styles for the buttons when:\n * - the widget is selected,\n * - or the button is being hovered (regardless of the widget state).\n */\n &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n & > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n &::after {\n content: "";\n display: block;\n position: absolute;\n top: 1px;\n left: 1px;\n z-index: calc(var(--ck-z-default) + 1);\n }\n }\n\n /*\n * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n */\n & > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n }\n\n /*\n * When the widget is hovered the "fake caret" would normally be narrower than the\n * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n * the full width of the widget.\n */\n &:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n left: calc( -1 * var(--ck-widget-outline-thickness) );\n right: calc( -1 * var(--ck-widget-outline-thickness) );\n }\n\n /*\n * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n */\n &.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n top: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n display: block;\n }\n\n /*\n * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n */\n &.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n bottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n display: block;\n }\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n display: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n display: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n display: none;\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n --ck-widget-type-around-button-size: 20px;\n --ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n --ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n --ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n --ck-color-widget-type-around-button-radar-start-alpha: 0;\n --ck-color-widget-type-around-button-radar-end-alpha: .3;\n --ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n opacity: 1;\n pointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n opacity: 0;\n pointer-events: none;\n}\n\n.ck .ck-widget {\n /*\n * Styles of the type around buttons\n */\n & .ck-widget__type-around__button {\n width: var(--ck-widget-type-around-button-size);\n height: var(--ck-widget-type-around-button-size);\n background: var(--ck-color-widget-type-around-button);\n border-radius: 100px;\n 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);\n\n @mixin ck-widget-type-around-button-hidden;\n\n & svg {\n width: 10px;\n height: 8px;\n transform: translate(-50%,-50%);\n transition: transform .5s ease;\n margin-top: 1px;\n\n & * {\n stroke-dasharray: 10;\n stroke-dashoffset: 0;\n\n fill: none;\n stroke: var(--ck-color-widget-type-around-button-icon);\n stroke-width: 1.5px;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n\n & line {\n stroke-dasharray: 7;\n }\n }\n\n &:hover {\n /*\n * Display the "sonar" around the button when hovered.\n */\n animation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n /*\n * Animate active button\'s icon.\n */\n & svg {\n & polyline {\n animation: ck-widget-type-around-arrow-dash 2s linear;\n }\n\n & line {\n animation: ck-widget-type-around-arrow-tip-dash 2s linear;\n }\n }\n }\n }\n\n /*\n * Show type around buttons when the widget gets selected or being hovered.\n */\n &.ck-widget_selected,\n &:hover {\n & > .ck-widget__type-around > .ck-widget__type-around__button {\n @mixin ck-widget-type-around-button-visible;\n }\n }\n\n /*\n * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n * and still can be hovered).\n */\n &:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n background: var(--ck-color-widget-type-around-button-hover);\n }\n\n /*\n * Styles for the buttons when:\n * - the widget is selected,\n * - or the button is being hovered (regardless of the widget state).\n */\n &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n & > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n background: var(--ck-color-widget-type-around-button-active);\n\n &::after {\n width: calc(var(--ck-widget-type-around-button-size) - 2px);\n height: calc(var(--ck-widget-type-around-button-size) - 2px);\n border-radius: 100px;\n background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n }\n }\n\n /*\n * Styles for the "before" button when the widget has a selection handle. Because some space\n * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n */\n &.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n margin-left: 20px;\n }\n\n /*\n * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n */\n & .ck-widget__type-around__fake-caret {\n pointer-events: none;\n height: 1px;\n animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n /*\n * The semi-transparent-outline+background combo improves the contrast\n * when the background underneath the fake caret is dark.\n */\n outline: solid 1px hsla(0, 0%, 100%, .5);\n background: var(--ck-color-base-text);\n }\n\n /*\n * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n * Despite the widget being physically selected in the model, its outline should disappear.\n */\n &.ck-widget_selected {\n &.ck-widget_type-around_show-fake-caret_before,\n &.ck-widget_type-around_show-fake-caret_after {\n outline-color: transparent;\n }\n }\n\n &.ck-widget_type-around_show-fake-caret_before,\n &.ck-widget_type-around_show-fake-caret_after {\n /*\n * When the "fake caret" is visible we simulate that the widget is not selected\n * (despite being physically selected), so the outline color should be for the\n * unselected widget.\n */\n &.ck-widget_selected:hover {\n outline-color: var(--ck-color-widget-hover-border);\n }\n\n /*\n * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n * In this state, the type around buttons would collide with the fake carets so they should disappear.\n */\n & > .ck-widget__type-around > .ck-widget__type-around__button {\n @mixin ck-widget-type-around-button-hidden;\n }\n\n /*\n * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n * hide the handle because it intersects with the caret (and does not make much sense anyway).\n */\n &.ck-widget_with-selection-handle {\n &.ck-widget_selected,\n &.ck-widget_selected:hover {\n & > .ck-widget__selection-handle {\n opacity: 0\n }\n }\n }\n\n /*\n * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n * hide the resize UI because it creates too much noise. It can be visible when the user\n * hovers the widget, though.\n */\n &.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n opacity: 0\n }\n }\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n margin-left: 0;\n margin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n & .ck-widget {\n &.ck-widget_selected,\n &:hover {\n & > .ck-widget__type-around > .ck-widget__type-around__button {\n @mixin ck-widget-type-around-button-hidden;\n }\n }\n }\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n background: var(--ck-color-widget-type-around-button-blurred-editable);\n\n & svg * {\n stroke: hsl(0,0%,60%);\n }\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n 0% {\n stroke-dashoffset: 10;\n }\n 20%, 100% {\n stroke-dashoffset: 0;\n }\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n 0%, 20% {\n stroke-dashoffset: 7;\n }\n 40%, 100% {\n stroke-dashoffset: 0;\n }\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n 0% {\n box-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n }\n 50% {\n box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n }\n 100% {\n box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n }\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n 0% {\n opacity: 1;\n }\n 49% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 99% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n'],sourceRoot:""}]);let a=s},2609:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i}).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var r=0;r{function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);itypeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var i,n,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(i=t.next()).done)&&(o.push(i.value),4!==o.length);r=!0);}catch(e){s=!0,n=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return t(e,4);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return t(e,4)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=i[1],o=i[3];if(!o)return n;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(o))));return[n].concat(o.sources.map(function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")})).concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r)," */")]).join("\n")}return[n].join("\n")}},6062:(e,t,i)=>{var n,o,r=(n={},function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}),s=[];function a(e){for(var t=-1,i=0;itypeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var p=null,m=0;e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===o&&(o=!!(window&&document&&document.all&&!window.atob)),o));var i=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0;var s={};return(()=>{let n,o,a;r.d(s,{default:()=>mM});let l=function(){return function e(){e.called=!0}};class c{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=l(),this.off=l()}}let d=Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function h(){let e=0x100000000*Math.random()>>>0,t=0x100000000*Math.random()>>>0,i=0x100000000*Math.random()>>>0,n=0x100000000*Math.random()>>>0;return"e"+d[255&e]+d[e>>8&255]+d[e>>16&255]+d[e>>24&255]+d[255&t]+d[t>>8&255]+d[t>>16&255]+d[t>>24&255]+d[255&i]+d[i>>8&255]+d[i>>16&255]+d[i>>24&255]+d[255&n]+d[n>>8&255]+d[n>>16&255]+d[n>>24&255]}let u={get(e="normal"){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function g(e,t){let i=u.get(t.priority);for(let n=0;n{if("object"==typeof t&&null!==t){if(n.has(t))return`[object ${t.constructor.name}]`;n.add(t)}return t})}`:"",r=b(e),e+o+r)),this.name="CKEditorError",this.context=t,this.data=i}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;let i=new p(e.message,t);throw i.stack=e.stack,i}}function m(e,t){console.warn(...k(e,t))}function f(e,t){console.error(...k(e,t))}function b(e){return` Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${e}`}function k(e,t){let i=b(e);return t?[e,t,i]:[e,i]}let w="object"==typeof window?window:r.g;if(w.CKEDITOR_VERSION)throw new p("ckeditor-duplicated-modules",null);w.CKEDITOR_VERSION="35.2.1";let _=Symbol("listeningTo"),A=Symbol("emitterId"),C=Symbol("delegations");function v(e){return class extends e{on(e,t,i){this.listenTo(this,e,t,i)}once(e,t,i){let n=!1;this.listenTo(this,e,(e,...i)=>{n||(n=!0,e.off(),t.call(this,e,...i))},i)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,i,n={}){let o,r;this[_]||(this[_]={});let s=this[_];e[A]||x(e);let a=e[A];(o=s[a])||(o=s[a]={emitter:e,callbacks:{}}),(r=o.callbacks[t])||(r=o.callbacks[t]=[]),r.push(i),e._addEventListener?e._addEventListener(t,i,n):this._addEventListener.call(e,t,i,n)}stopListening(e,t,i){let n=this[_],o=e&&e[A],r=n&&o?n[o]:void 0,s=r&&t?r.callbacks[t]:void 0;if(!(!n||e&&!r||t&&!s))if(i)S(this,e,t,i),-1!==s.indexOf(i)&&(1===s.length?delete r.callbacks[t]:S(this,e,t,i));else if(s){for(;i=s.pop();)S(this,e,t,i);delete r.callbacks[t]}else if(r){for(t in r.callbacks)this.stopListening(e,t);delete n[o]}else{for(o in n)this.stopListening(n[o].emitter);delete this[_]}}fire(e,...t){try{let i=e instanceof c?e:new c(this,e),n=i.name,o=function e(t,i){let n;return t._events&&(n=t._events[i])&&n.callbacks.length?n.callbacks:i.indexOf(":")>-1?e(t,i.substr(0,i.lastIndexOf(":"))):null}(this,n);if(i.path.push(this),o){let e=[i,...t];o=Array.from(o);for(let t=0;t{this[C]||(this[C]=new Map),e.forEach(e=>{let n=this[C].get(e);n?n.set(t,i):this[C].set(e,new Map([[t,i]]))})}}}stopDelegating(e,t){if(this[C])if(e)if(t){let i=this[C].get(e);i&&i.delete(t)}else this[C].delete(e);else this[C].clear()}_addEventListener(e,t,i){!function(e,t){let i=E(e);if(i[t])return;let n=t,o=null,r=[];for(;""!==n&&!i[n];)i[n]={callbacks:[],childEvents:[]},r.push(i[n]),o&&i[n].childEvents.push(o),o=n,n=n.substr(0,n.lastIndexOf(":"));if(""!==n){for(let e of r)e.callbacks=i[n].callbacks.slice();i[n].childEvents.push(o)}}(this,e);let n=D(this,e),o={callback:t,priority:u.get(i.priority)};for(let e of n)g(e,o)}_removeEventListener(e,t){for(let i of D(this,e))for(let e=0;e{v[e]=y.prototype[e]});let I=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},M=Symbol("observableProperties"),N=Symbol("boundObservables"),P=Symbol("boundProperties"),B=Symbol("decoratedMethods"),z=Symbol("decoratedOriginal");function j(e){return class extends e{set(e,t){if(I(e))return void Object.keys(e).forEach(t=>{this.set(t,e[t])},this);O(this);let i=this[M];if(e in this&&!i.has(e))throw new p("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>i.get(e),set(t){let n=i.get(e),o=this.fire(`set:${e}`,e,t,n);void 0===o&&(o=t),n===o&&i.has(e)||(i.set(e,o),this.fire(`change:${e}`,e,o,n))}}),this[e]=t}bind(...e){if(!e.length||!V(e))throw new p("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new p("observable-bind-duplicate-properties",this);O(this);let t=this[P];e.forEach(e=>{if(t.has(e))throw new p("observable-bind-rebind",this)});let i=new Map;return e.forEach(e=>{let n={property:e,to:[]};t.set(e,n),i.set(e,n)}),{to:R,toMany:F,_observable:this,_bindProperties:e,_to:[],_bindings:i}}unbind(...e){if(!this[M])return;let t=this[P],i=this[N];if(e.length){if(!V(e))throw new p("observable-unbind-wrong-properties",this);e.forEach(e=>{let n=t.get(e);n&&(n.to.forEach(([e,t])=>{let o=i.get(e),r=o[t];r.delete(n),r.size||delete o[t],Object.keys(o).length||(i.delete(e),this.stopListening(e,"change"))}),t.delete(e))})}else i.forEach((e,t)=>{this.stopListening(t,"change")}),i.clear(),t.clear()}decorate(e){O(this);let t=this[e];if(!t)throw new p("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(e,i)=>{e.return=t.apply(this,i)}),this[e]=function(...t){return this.fire(e,t)},this[e][z]=t,this[B]||(this[B]=[]),this[B].push(e)}stopListening(e,t,i){if(!e&&this[B]){for(let e of this[B])this[e]=this[e][z];delete this[B]}y.prototype.stopListening.call(this,e,t,i)}}}let L=j(y);function O(e){e[M]||(Object.defineProperty(e,M,{value:new Map}),Object.defineProperty(e,N,{value:new Map}),Object.defineProperty(e,P,{value:new Map}))}function R(...e){var t,i;let n,o=function(...e){let t;if(!e.length)throw new p("observable-bind-to-parse-error",null);let i={to:[]};return"function"==typeof e[e.length-1]&&(i.callback=e.pop()),e.forEach(e=>{if("string"==typeof e)t.properties.push(e);else{if("object"!=typeof e)throw new p("observable-bind-to-parse-error",null);t={observable:e,properties:[]},i.to.push(t)}}),i}(...e),r=Array.from(this._bindings.keys()),s=r.length;if(!o.callback&&o.to.length>1)throw new p("observable-bind-to-no-callback",this);if(s>1&&o.callback)throw new p("observable-bind-to-extra-callback",this);o.to.forEach(e=>{if(e.properties.length&&e.properties.length!==s)throw new p("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)}),this._to=o.to,o.callback&&(this._bindings.get(r[0]).callback=o.callback),t=this._observable,this._to.forEach(e=>{let i,n=t[N];n.get(e.observable)||t.listenTo(e.observable,"change",(o,r)=>{(i=n.get(e.observable)[r])&&i.forEach(e=>{U(t,e.property)})})}),i=this,i._bindings.forEach((e,t)=>{i._to.forEach(o=>{var r,s;let a,l,c;n=o.properties[e.callback?0:i._bindProperties.indexOf(t)],e.to.push([o.observable,n]),r=i._observable,s=o.observable,(c=(l=(a=r[N]).get(s))||{})[n]||(c[n]=new Set),c[n].add(e),l||a.set(s,c)})}),this._bindProperties.forEach(e=>{U(this._observable,e)})}function F(e,t,i){let n;if(this._bindings.size>1)throw new p("observable-bind-to-many-not-one-binding",this);this.to(...(n=e.map(e=>[e,t]),Array.prototype.concat.apply([],n)),i)}function V(e){return e.every(e=>"string"==typeof e)}function U(e,t){let i,n=e[P].get(t);i=n.callback?n.callback.apply(e,n.to.map(e=>e[0][e[1]])):(i=n.to[0])[0][i[1]],Object.prototype.hasOwnProperty.call(e,t)?e[t]=i:e.set(t,i)}function H(e,...t){t.forEach(t=>{let i=Object.getOwnPropertyNames(t),n=Object.getOwnPropertySymbols(t);i.concat(n).forEach(i=>{if(i in e.prototype||"function"==typeof t&&("length"==i||"name"==i||"prototype"==i))return;let n=Object.getOwnPropertyDescriptor(t,i);n.enumerable=!1,Object.defineProperty(e.prototype,i,n)})})}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{j[e]=L.prototype[e]});class W{constructor(e){this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",q,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",q),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function q(e){e.return=!1,e.stop()}H(W,j);class ${constructor(e){this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"}),this.listenTo(e,"change:isReadOnly",(e,t,i)=>{i&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",G,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",G),this.refresh())}execute(){}destroy(){this.stopListening()}}function G(e){e.return=!1,e.stop()}H($,j);class K extends ${constructor(e){super(e),this._childCommandsDefinitions=[]}refresh(){}execute(...e){let t=this._getFirstEnabledCommand();return!!t&&t.execute(e)}registerChildCommand(e,t={priority:"normal"}){g(this._childCommandsDefinitions,{command:e,priority:t.priority}),e.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){let e=this._childCommandsDefinitions.find(({command:e})=>e.isEnabled);return e&&e.command}}let Y=e.g&&e.g.Object===Object&&e.g;var Q,Z,J,X,ee,et,ei="object"==typeof self&&self&&self.Object===Object&&self;let en=Y||ei||Function("return this")(),eo=en.Symbol;var er=Object.prototype,es=er.hasOwnProperty,ea=er.toString,el=eo?eo.toStringTag:void 0;let ec=function(e){var t=es.call(e,el),i=e[el];try{e[el]=void 0;var n=!0}catch(e){}var o=ea.call(e);return n&&(t?e[el]=i:delete e[el]),o};var ed=Object.prototype.toString,eh=eo?eo.toStringTag:void 0;let eu=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":eh&&eh in Object(e)?ec(e):ed.call(e)},eg=function(e,t){return function(i){return e(t(i))}},ep=eg(Object.getPrototypeOf,Object),em=function(e){return null!=e&&"object"==typeof e};var ef=Object.prototype,eb=Function.prototype.toString,ek=ef.hasOwnProperty,ew=eb.call(Object);let e_=function(e){if(!em(e)||"[object Object]"!=eu(e))return!1;var t=ep(e);if(null===t)return!0;var i=ek.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&eb.call(i)==ew},eA=function(e,t){return e===t||e!=e&&t!=t},eC=function(e,t){for(var i=e.length;i--;)if(eA(e[i][0],t))return i;return -1};var ev=Array.prototype.splice;function ey(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t-1},ey.prototype.set=function(e,t){var i=this.__data__,n=eC(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};let ex=function(e){if(!I(e))return!1;var t=eu(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},eE=en["__core-js_shared__"];var eD=(Q=/[^.]+$/.exec(eE&&eE.keys&&eE.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",eT=Function.prototype.toString;let eS=function(e){if(null!=e){try{return eT.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var eI=/^\[object .+?Constructor\]$/,eM=Object.prototype,eN=Function.prototype.toString,eP=eM.hasOwnProperty,eB=RegExp("^"+eN.call(eP).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let ez=function(e){return!(!I(e)||eD&&eD in e)&&(ex(e)?eB:eI).test(eS(e))},ej=function(e,t){var i=null==e?void 0:e[t];return ez(i)?i:void 0},eL=ej(en,"Map"),eO=ej(Object,"create");var eR=Object.prototype.hasOwnProperty,eF=Object.prototype.hasOwnProperty;function eV(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=0x1fffffffffffff};var ti={};ti["[object Float32Array]"]=ti["[object Float64Array]"]=ti["[object Int8Array]"]=ti["[object Int16Array]"]=ti["[object Int32Array]"]=ti["[object Uint8Array]"]=ti["[object Uint8ClampedArray]"]=ti["[object Uint16Array]"]=ti["[object Uint32Array]"]=!0,ti["[object Arguments]"]=ti["[object Array]"]=ti["[object ArrayBuffer]"]=ti["[object Boolean]"]=ti["[object DataView]"]=ti["[object Date]"]=ti["[object Error]"]=ti["[object Function]"]=ti["[object Map]"]=ti["[object Number]"]=ti["[object Object]"]=ti["[object RegExp]"]=ti["[object Set]"]=ti["[object String]"]=ti["[object WeakMap]"]=!1;let tn=function(e){return function(t){return e(t)}};var to=i&&!i.nodeType&&i,tr=to&&t&&!t.nodeType&&t,ts=tr&&tr.exports===to&&Y.process;let ta=function(){try{return tr&&tr.require&&tr.require("util").types||ts&&ts.binding&&ts.binding("util")}catch(e){}}();var tl=ta&&ta.isTypedArray;let tc=tl?tn(tl):function(e){return em(e)&&tt(e.length)&&!!ti[eu(e)]};var td=Object.prototype.hasOwnProperty;let th=function(e,t){var i=e4(e),n=!i&&e5(e),o=!i&&!n&&e9(e),r=!i&&!n&&!o&&tc(e),s=i||n||o||r,a=s?eJ(e.length,String):[],l=a.length;for(var c in e)!t&&!td.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||te(c,l))||a.push(c);return a};var tu=Object.prototype;let tg=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tu)},tp=eg(Object.keys,Object);var tm=Object.prototype.hasOwnProperty;let tf=function(e){if(!tg(e))return tp(e);var t=[];for(var i in Object(e))tm.call(e,i)&&"constructor"!=i&&t.push(i);return t},tb=function(e){return null!=e&&tt(e.length)&&!ex(e)},tk=function(e){return tb(e)?th(e):tf(e)},tw=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t};var t_=Object.prototype.hasOwnProperty;let tA=function(e){if(!I(e))return tw(e);var t=tg(e),i=[];for(var n in e)("constructor"!=n||!t&&t_.call(e,n))&&i.push(n);return i},tC=function(e){return tb(e)?th(e,!0):tA(e)};var tv=i&&!i.nodeType&&i,ty=tv&&t&&!t.nodeType&&t,tx=ty&&ty.exports===tv?en.Buffer:void 0,tE=tx?tx.allocUnsafe:void 0;let tD=function(e,t){if(t)return e.slice();var i=e.length,n=tE?tE(i):new e.constructor(i);return e.copy(n),n},tT=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i{this._setToTarget(e,n,t[n],i)})}}function ib(e){return ip(e)?e:void 0}function ik(e){return!(!e||!e[Symbol.iterator])}class iw extends y{constructor(e={},t={}){super();let i=ik(e);if(i||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i)for(let 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 p("collection-add-item-invalid-index",this);let i=0;for(let n of e){let e=this._getItemIdBeforeAdding(n),o=t+i;this._items.splice(o,0,n),this._itemMap.set(e,n),this.fire("add",n,o),i++}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new p("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if("string"==typeof e)return this._itemMap.has(e);{let t=e[this._idProperty];return t&&this._itemMap.has(t)}}getIndex(e){let t;return(t="string"==typeof e?this._itemMap.get(e):e)?this._items.indexOf(t):-1}remove(e){let[t,i]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:i}),t}map(e,t){return this._items.map(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);let 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 p("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){let t=this._bindToCollection,i=(i,n,o)=>{let r=t._bindToCollection==this,s=t._bindToInternalToExternalMap.get(n);if(r&&s)this._bindToExternalToInternalMap.set(n,s),this._bindToInternalToExternalMap.set(s,n);else{let i=e(n);if(!i)return void this._skippedIndexesFromExternal.push(o);let r=o;for(let e of this._skippedIndexesFromExternal)o>e&&r--;for(let e of t._skippedIndexesFromExternal)r>=e&&r++;this._bindToExternalToInternalMap.set(n,i),this._bindToInternalToExternalMap.set(i,n),this.add(i,r);for(let e=0;e{let n=this._bindToExternalToInternalMap.get(t);n&&this.remove(n),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((e,t)=>(it&&e.push(t),e),[])})}_getItemIdBeforeAdding(e){let t,i=this._idProperty;if(i in e){if("string"!=typeof(t=e[i]))throw new p("collection-add-invalid-id",this);if(this.get(t))throw new p("collection-add-item-already-exists",this)}else e[i]=t=h();return t}_remove(e){let t,i,n,o=!1,r=this._idProperty;if("string"==typeof e?(i=e,o=!(n=this._itemMap.get(i)),n&&(t=this._items.indexOf(n))):"number"==typeof e?(t=e,o=!(n=this._items[t]),n&&(i=n[r])):(i=(n=e)[r],o=-1==(t=this._items.indexOf(n))||!this._itemMap.get(i)),o)throw new p("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(i);let s=this._bindToInternalToExternalMap.get(n);return this._bindToInternalToExternalMap.delete(n),this._bindToExternalToInternalMap.delete(s),this.fire("remove",n,t),[n,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}class i_{constructor(e,t=[],i=[]){for(let i of(this._context=e,this._plugins=new Map,this._availablePlugins=new Map,t))i.pluginName&&this._availablePlugins.set(i.pluginName,i);for(let[e,t]of(this._contextPlugins=new Map,i))this._contextPlugins.set(e,t),this._contextPlugins.set(t,e),e.pluginName&&this._availablePlugins.set(e.pluginName,e)}*[Symbol.iterator](){for(let e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){let t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new p("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e,t=[],i=[]){let n=this,o=this._context;!function e(t,i=new Set){t.forEach(t=>{a(t)&&(i.has(t)||(i.add(t),t.pluginName&&!n._availablePlugins.has(t.pluginName)&&n._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,i)))})}(e),h(e);let r=[...function e(t,i=new Set){return t.map(e=>a(e)?e:n._availablePlugins.get(e)).reduce((t,n)=>i.has(n)?t:(i.add(n),n.requires&&(h(n.requires,n),e(n.requires,i).forEach(e=>t.add(e))),t.add(n)),new Set)}(e.filter(e=>!c(e,t)))];!function(e,t){for(let i of t){if("function"!=typeof i)throw new p("plugincollection-replace-plugin-invalid-type",null,{pluginItem:i});let t=i.pluginName;if(!t)throw new p("plugincollection-replace-plugin-missing-name",null,{pluginItem:i});if(i.requires&&i.requires.length)throw new p("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});let o=n._availablePlugins.get(t);if(!o)throw new p("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});let r=e.indexOf(o);if(-1===r){if(n._contextPlugins.has(o))return;throw new p("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(o.requires&&o.requires.length)throw new p("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(r,1,i),n._availablePlugins.set(t,i)}}(r,i);let s=r.map(e=>{let t=n._contextPlugins.get(e)||new e(o);return n._add(e,t),t});return u(s,"init").then(()=>u(s,"afterInit")).then(()=>s);function a(e){return"function"==typeof e}function l(e){return a(e)&&e.isContextPlugin}function c(e,t){return t.some(t=>t===e||d(e)===t||d(t)===e)}function d(e){return a(e)?e.pluginName||e.name:e}function h(e,i=null){e.map(e=>a(e)?e:n._availablePlugins.get(e)||e).forEach(e=>{!function(e,t){if(!a(e)){if(t)throw new p("plugincollection-soft-required",o,{missingPlugin:e,requiredBy:d(t)});throw new p("plugincollection-plugin-not-found",o,{plugin:e})}}(e,i),function(e,t){if(l(t)&&!l(e))throw new p("plugincollection-context-required",o,{plugin:d(e),requiredBy:d(t)})}(e,i),function(e,i){if(i&&c(e,t))throw new p("plugincollection-required",o,{plugin:d(e),requiredBy:d(i)})}(e,i)})}function u(e,t){return e.reduce((e,i)=>i[t]?n._contextPlugins.has(i)?e:e.then(i[t].bind(i)):e,Promise.resolve())}}destroy(){let e=[];for(let[,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);let i=e.pluginName;if(i){if(this._plugins.has(i))throw new p("plugincollection-plugin-name-conflict",null,{pluginName:i,plugin1:this._plugins.get(i).constructor,plugin2:e});this._plugins.set(i,t)}}}function iA(e){return Array.isArray(e)?e:[e]}H(i_,v);try{n={window,document}}catch(e){n={window:{},document:{}}}let iC=n;iC.window.CKEDITOR_TRANSLATIONS||(iC.window.CKEDITOR_TRANSLATIONS={});let iv=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function iy(e){return iv.includes(e)?"rtl":"ltr"}class ix{constructor(e={}){this.uiLanguage=e.uiLanguage||"en",this.contentLanguage=e.contentLanguage||this.uiLanguage,this.uiLanguageDirection=iy(this.uiLanguage),this.contentLanguageDirection=iy(this.contentLanguage),this.t=(e,t)=>this._t(e,t)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(e,t=[]){var i,n;t=iA(t),"string"==typeof e&&(e={string:e});let o=e.plural?t[0]:1;return i=function(e,t,i=1){var n;if("number"!=typeof i)throw new p("translation-service-quantity-not-a-number",null,{quantity:i});let o=Object.keys(iC.window.CKEDITOR_TRANSLATIONS).length;1===o&&(e=Object.keys(iC.window.CKEDITOR_TRANSLATIONS)[0]);let r=t.id||t.string;if(0===o||(n=e,!iC.window.CKEDITOR_TRANSLATIONS[n]||!iC.window.CKEDITOR_TRANSLATIONS[n].dictionary[r]))return 1!==i?t.plural:t.string;let s=iC.window.CKEDITOR_TRANSLATIONS[e].dictionary,a=iC.window.CKEDITOR_TRANSLATIONS[e].getPluralForm||(e=>+(1!==e)),l=s[r];return"string"==typeof l?l:l[Number(a(i))]}(this.uiLanguage,e,o),n=t,i.replace(/%(\d+)/g,(e,t)=>te.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner)throw new p("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(){let e={};for(let 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=>{let i=new this(e);t(i.initPlugins().then(()=>i))})}}class iD{constructor(e){this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}H(iD,j);class iT{is(){throw Error("is() method is abstract")}}function iS(e,t){let i=Math.min(e.length,t.length);for(let n=0;ne.data.length)throw new p("view-textproxy-wrong-offsetintext",this);if(i<0||t+i>e.data.length)throw new p("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+i),this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(e={}){let t=[],i=e.includeSelf?this.textNode:this.parent;for(;null!==i;)t[e.parentFirst?"push":"unshift"](i),i=i.parent;return t}}function iB(e){return ik(e)?new Map(e):function(e){let t=new Map;for(let i in e)t.set(i,e[i]);return t}(e)}iP.prototype.is=function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e};class iz{constructor(...e){this._patterns=[],this.add(...e)}add(...e){for(let t of e)("string"==typeof t||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(let t of e)for(let e of this._patterns){let i=ij(t,e);if(i)return{element:t,pattern:e,match:i}}return null}matchAll(...e){let t=[];for(let i of e)for(let e of this._patterns){let n=ij(i,e);n&&t.push({element:i,pattern:e,match:n})}return t.length>0?t:null}getElementName(){if(1!==this._patterns.length)return null;let e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}function ij(e,t){var i,n,o;let r;if("function"==typeof t)return t(e);let s={};return t.name&&(i=t.name,n=e.name,s.name=i instanceof RegExp?!!n.match(i):i===n,!s.name)||t.attributes&&(o=t.attributes,r=new Set(e.getAttributeKeys()),e_(o)?(void 0!==o.style&&m("matcher-pattern-deprecated-attributes-style-key",o),void 0!==o.class&&m("matcher-pattern-deprecated-attributes-class-key",o)):(r.delete("style"),r.delete("class")),s.attributes=iL(o,r,t=>e.getAttribute(t)),!s.attributes)||t.classes&&(s.classes=iL(t.classes,e.getClassNames(),()=>{}),!s.classes)||t.styles&&(s.styles=iL(t.styles,e.getStyleNames(!0),t=>e.getStyle(t)),!s.styles)?null:s}function iL(e,t,i){let n=Array.isArray(e)?e.map(e=>e_(e)?(void 0!==e.key&&void 0!==e.value||m("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0]):e_(e)?Object.entries(e):[[e,!0]],o=Array.from(t),r=[];if(n.forEach(([e,t])=>{o.forEach(n=>{(!0===e||e===n||e instanceof RegExp&&n.match(e))&&function(e,t,i){if(!0===e)return!0;let n=i(t);return e===n||e instanceof RegExp&&!!String(n).match(e)}(t,n,i)&&r.push(n)})}),n.length&&!(r.lengtho?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(o);++n0){if(++ee>=800)return arguments[0]}else ee=0;return X.apply(void 0,arguments)}),no=function(e,t){var i;return nn((i=nt(void 0===(i=t)?e.length-1:i,0),function(){for(var t=arguments,n=-1,o=nt(t.length-i,0),r=Array(o);++n1?i[o-1]:void 0,s=o>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,s&&nr(i[0],i[1],s)&&(r=o<3?void 0:r,o=1),t=Object(t);++nt===e))}set(e,t){if(I(e))for(let[t,i]of Object.entries(e))this._styleProcessor.toNormalizedForm(t,i,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){var t;let i=nh(e);t=this._styles,null==t||i2(t,i),delete this._styles[e],this._cleanEmptyObjectsOnPath(i)}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]&&!I(this._styles[e]))return this._styles[e];let t=this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e);return Array.isArray(t)?t[1]:void 0}getStyleNames(e=!1){return this.isEmpty?[]:e?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([e])=>e)}clear(){this._styles={}}_getStylesEntries(){let e=[];for(let t of Object.keys(this._styles))e.push(...this._styleProcessor.getReducedForm(t,this._styles));return e}_cleanEmptyObjectsOnPath(e){let t=e.split(".");if(!(t.length>1))return;let i=t.splice(0,t.length-1).join("."),n=i5(this._styles,i);n&&(Array.from(Object.keys(n)).length||this.remove(i))}}class nd{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,i){if(I(t))nu(i,nh(e),t);else if(this._normalizers.has(e)){let{path:n,value:o}=this._normalizers.get(e)(t);nu(i,n,o)}else nu(i,e,t)}getNormalized(e,t){if(!e)return na({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){let i=this._extractors.get(e);if("string"==typeof i)return i5(t,i);let n=i(e,t);if(n)return n}return i5(t,nh(e))}getReducedForm(e,t){let i=this.getNormalized(e,t);return void 0===i?[]:this._reducers.has(e)?this._reducers.get(e)(i):[[e,i]]}getStyleNames(e){return Array.from(new Set([...Array.from(this._consumables.keys()).filter(t=>{let i=this.getNormalized(t,e);return i&&"object"==typeof i?Object.keys(i).length:i}),...Object.keys(e)]).values())}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){for(let i of(this._mapStyleNames(e,t),t))this._mapStyleNames(i,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function nh(e){return e.replace("-",".")}function nu(e,t,i){var n;let o=i;I(i)&&(o=na({},i5(e,t),i)),n=o,null==e||nl(e,t,n)}class ng extends iM{constructor(e,t,i,n){if(super(e),this.name=t,this._attrs=function(e){let t=iB(e);for(let[e,i]of t)null===i?t.delete(e):"string"!=typeof i&&t.set(e,String(i));return t}(i),this._children=[],n&&this._insertChild(0,n),this._classes=new Set,this._attrs.has("class")){let e=this._attrs.get("class");np(this._classes,e),this._attrs.delete("class")}this._styles=new nc(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(e){if("class"==e)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==e){let e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(e)}hasAttribute(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof ng))return!1;if(this===e)return!0;if(this.name!=e.name||this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(let[t,i]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==i)return!1;for(let t of this._classes)if(!e._classes.has(t))return!1;for(let t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(...e){for(let t of e)if(!this._classes.has(t))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(e){return this._styles.getStyleNames(e)}hasStyle(...e){for(let t of e)if(!this._styles.has(t))return!1;return!0}findAncestor(...e){let t=new iz(...e),i=this.parent;for(;i&&!i.is("documentFragment");){if(t.match(i))return i;i=i.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){let e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),i=Array.from(this._attrs).map(e=>`${e[0]}="${e[1]}"`).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==i?"":` ${i}`)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}_clone(e=!1){let t=[];if(e)for(let i of this.getChildren())t.push(i._clone(e));let i=new this.constructor(this.document,this.name,this._attrs,t);return i._classes=new Set(this._classes),i._styles.set(this._styles.getNormalized()),i._customProperties=new Map(this._customProperties),i.getFillerOffset=this.getFillerOffset,i._unsafeAttributesToRender=this._unsafeAttributesToRender,i}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){var i,n;this._fireChange("children",this);let o=0;for(let r of(i=this.document,"string"==typeof(n=t)?[new iN(i,n)]:(ik(n)||(n=[n]),Array.from(n).map(e=>"string"==typeof e?new iN(i,e):e instanceof iP?new iN(i,e.data):e))))null!==r.parent&&r._remove(),r.parent=this,r.document=this.document,this._children.splice(e,0,r),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let i=e;i0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){for(let t of(this._fireChange("attributes",this),iA(e)))this._classes.add(t)}_removeClass(e){for(let t of(this._fireChange("attributes",this),iA(e)))this._classes.delete(t)}_setStyle(e,t){this._fireChange("attributes",this),e_(e)?this._styles.set(e):this._styles.set(e,t)}_removeStyle(e){for(let t of(this._fireChange("attributes",this),iA(e)))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function np(e,t){let i=t.split(/\s+/);e.clear(),i.forEach(t=>e.add(t))}ng.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 nm extends ng{constructor(...e){super(...e),this.getFillerOffset=nf}}function nf(){let e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(let t of e)if(!t.is("uiElement"))return null;return this.childCount}nm.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 nb extends j(nm){constructor(...e){super(...e);let t=e[0];this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",e=>e&&t.selection.editableElement==this),this.listenTo(t.selection,"change",()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this})}destroy(){this.stopListening()}}nb.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};let nk=Symbol("rootName");class nw extends nb{constructor(e,t){super(e,t),this.rootName="main"}get rootName(){return this.getCustomProperty(nk)}set rootName(e){this._setCustomProperty(nk,e)}set _name(e){this.name=e}}nw.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 n_{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new p("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new p("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this.position=nA._createAt(e.startPosition):this.position=nA._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}skip(e){let t,i,n;do n=this.position,{done:t,value:i}=this.next();while(!t&&e(i))t||(this.position=n)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e,t=this.position.clone(),i=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount||n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};if(n instanceof iN){if(t.isAtEnd)return this.position=nA._createAfter(n),this._next();e=n.data[t.offset]}else e=n.getChild(t.offset);if(e instanceof ng)return this.shallow?t.offset++:t=new nA(e,0),this.position=t,this._formatReturnValue("elementStart",e,i,t,1);if(e instanceof iN){if(this.singleCharacters)return t=new nA(e,0),this.position=t,this._next();{let n,o=e.data.length;return e==this._boundaryEndParent?(n=new iP(e,0,o=this.boundaries.end.offset),t=nA._createAfter(n)):(n=new iP(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",n,i,t,o)}}if("string"==typeof e){let e;e=this.singleCharacters?1:(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset;let o=new iP(n,t.offset,e);return t.offset+=e,this.position=t,this._formatReturnValue("text",o,i,t,e)}return t=nA._createAfter(n),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,i,t)}_previous(){let e,t=this.position.clone(),i=this.position,n=t.parent;if(null===n.parent&&0===t.offset||n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};if(n instanceof iN){if(t.isAtStart)return this.position=nA._createBefore(n),this._previous();e=n.data[t.offset-1]}else e=n.getChild(t.offset-1);if(e instanceof ng)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,i,t,1)):(t=new nA(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,i,t));if(e instanceof iN){if(this.singleCharacters)return t=new nA(e,e.data.length),this.position=t,this._previous();{let n,o=e.data.length;if(e==this._boundaryStartParent){let i=this.boundaries.start.offset;o=(n=new iP(e,i,e.data.length-i)).data.length,t=nA._createBefore(n)}else n=new iP(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",n,i,t,o)}}if("string"==typeof e){let e;if(this.singleCharacters)e=1;else{let i=n===this._boundaryStartParent?this.boundaries.start.offset:0;e=t.offset-i}t.offset-=e;let o=new iP(n,t.offset,e);return this.position=t,this._formatReturnValue("text",o,i,t,e)}return t=nA._createBefore(n),this.position=t,this._formatReturnValue("elementStart",n,i,t,1)}_formatReturnValue(e,t,i,n,o){return t instanceof iP&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?i=nA._createAfter(t.textNode):(n=nA._createAfter(t.textNode),this.position=n)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?i=nA._createBefore(t.textNode):(n=nA._createBefore(t.textNode),this.position=n))),{done:!1,value:{type:e,item:t,previousPosition:i,nextPosition:n,length:o}}}}class nA extends iT{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(){let 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 nb);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){let t=nA._createAt(this),i=t.offset+e;return t.offset=i<0?0:i,t}getLastMatchingPosition(e,t={}){t.startPosition=this;let i=new n_(t);return i.skip(e),i.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){let t=this.getAncestors(),i=e.getAncestors(),n=0;for(;t[n]==i[n]&&t[n];)n++;return 0===n?null:t[n-1]}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";let t=this.parent.is("node")?this.parent.getPath():[],i=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),i.push(e.offset);let n=iS(t,i);switch(n){case"prefix":return"before";case"extension":return"after";default:return t[n]0?new this(e,i):new this(i,e)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){let t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(nA._createBefore(e),t)}}function nv(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function ny(e){let t=0;for(let i of e)t++;return t}nC.prototype.is=function(e){return"range"===e||"view:range"===e};class nx extends v(iT){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;let e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;let 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(let e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(let t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(let t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){let e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){let e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake||this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel||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(let t of this._ranges){let i=!1;for(let n of e._ranges)if(t.isEqual(n)){i=!0;break}if(!i)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;let t=ny(this.getRanges());if(t!=ny(e.getRanges()))return!1;if(0==t)return!0;for(let t of this.getRanges()){t=t.getTrimmed();let i=!1;for(let n of e.getRanges())if(n=n.getTrimmed(),t.start.isEqual(n.start)&&t.end.isEqual(n.end)){i=!0;break}if(!i)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...e){let[t,i,n]=e;if("object"==typeof i&&(n=i,i=void 0),null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof nx||t instanceof nE)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof nC)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof nA)this._setRanges([new nC(t)]),this._setFakeOptions(n);else if(t instanceof iM){let e,o=!!n&&!!n.backward;if(void 0===i)throw new p("view-selection-setto-required-second-parameter",this);e="in"==i?nC._createIn(t):"on"==i?nC._createOn(t):new nC(nA._createAt(t,i)),this._setRanges([e],o),this._setFakeOptions(n)}else{if(!ik(t))throw new p("view-selection-setto-not-selectable",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new p("view-selection-setfocus-no-ranges",this);let i=nA._createAt(e,t);if("same"==i.compareWith(this.focus))return;let n=this.anchor;this._ranges.pop(),"before"==i.compareWith(n)?this._addRange(new nC(i,n),!0):this._addRange(new nC(n,i)),this.fire("change")}_setRanges(e,t=!1){for(let t of(e=Array.from(e),this._ranges=[],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 nC))throw new p("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(let t of this._ranges)if(e.isIntersecting(t))throw new p("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new nC(e.start,e.end))}}nx.prototype.is=function(e){return"selection"===e||"view:selection"===e};class nE extends v(iT){constructor(...e){super(),this._selection=new nx,this._selection.delegate("change").to(this),e.length&&this._selection.setTo(...e)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}_setTo(...e){this._selection.setTo(...e)}_setFocus(e,t){this._selection.setFocus(e,t)}}nE.prototype.is=function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e};class nD extends c{constructor(e,t,i){super(e,t),this.startRange=i,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}let nT=Symbol("bubbling contexts");function nS(e){return class extends e{fire(e,...t){try{let i=e instanceof c?e:new c(this,e),n=nP(this);if(!n.size)return;if(nI(i,"capturing",this),nM(n,"$capture",i,...t))return i.return;let o=i.startRange||this.selection.getFirstRange(),r=o?o.getContainedElement():null,s=!!r&&!!nN(n,r),a=r||function(e){if(!e)return null;let t=e.start.parent,i=e.end.parent,n=t.getPath(),o=i.getPath();return n.length>o.length?t:i}(o);if(nI(i,"atTarget",a),!s){if(nM(n,"$text",i,...t))return i.return;nI(i,"bubbling",a)}for(;a;){if(a.is("rootElement")){if(nM(n,"$root",i,...t))return i.return}else if(a.is("element")&&nM(n,a.name,i,...t))return i.return;if(nM(n,a,i,...t))return i.return;a=a.parent,nI(i,"bubbling",a)}return nI(i,"bubbling",this),nM(n,"$document",i,...t),i.return}catch(e){p.rethrowUnexpectedError(e,this)}}_addEventListener(e,t,i){let n=iA(i.context||"$document"),o=nP(this);for(let r of n){let n=o.get(r);n||(n=new y,o.set(r,n)),this.listenTo(n,e,t,i)}}_removeEventListener(e,t){for(let i of nP(this).values())this.stopListening(i,e,t)}}}{let e=nS(Object);["fire","_addEventListener","_removeEventListener"].forEach(t=>{nS[t]=e.prototype[t]})}function nI(e,t,i){e instanceof nD&&(e._eventPhase=t,e._currentTarget=i)}function nM(e,t,i,...n){let o="string"==typeof t?e.get(t):nN(e,t);return!!o&&(o.fire(i,...n),i.stop.called)}function nN(e,t){for(let[i,n]of e)if("function"==typeof i&&i(t))return n;return null}function nP(e){return e[nT]||(e[nT]=new Map),e[nT]}class nB extends nS(L){constructor(e){super(),this.selection=new nE,this.roots=new iw({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.map(e=>e.destroy()),this.stopListening()}_callPostFixers(e){let t=!1;do for(let i of this._postFixers)if(t=i(e))break;while(t)}}class nz extends ng{constructor(...e){super(...e),this.getFillerOffset=nj,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new p("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(e){return null!==this.id||null!==e.id?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e=!1){let t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function nj(){if(nL(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(nL(e)>1)return null;e=e.parent}return!e||nL(e)>1?null:this.childCount}function nL(e){return Array.from(e.getChildren()).filter(e=>!e.is("uiElement")).length}nz.DEFAULT_PRIORITY=10,nz.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 nO extends ng{constructor(e,t,i,n){super(e,t,i,n),this.getFillerOffset=nR}_insertChild(e,t){if(t&&(t instanceof iM||Array.from(t).length>0))throw new p("view-emptyelement-cannot-add",[this,t]);return 0}}function nR(){return null}nO.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};let nF=function(){try{return navigator.userAgent.toLowerCase()}catch(e){return""}}(),nV={isMac:nU(nF),isWindows:nF.indexOf("windows")>-1,isGecko:!!nF.match(/gecko\/\d+/),isSafari:nF.indexOf(" applewebkit/")>-1&&-1===nF.indexOf("chrome"),isiOS:!!nF.match(/iphone|ipad/i)||nU(nF)&&navigator.maxTouchPoints>0,isAndroid:nF.indexOf("android")>-1,isBlink:nF.indexOf("chrome/")>-1&&0>nF.indexOf("edge/"),features:{isRegExpUnicodePropertySupported:function(){let e=!1;try{e=0==="ć".search(RegExp("[\\p{L}]","u"))}catch(e){}return e}()}};function nU(e){return e.indexOf("macintosh")>-1}let nH={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},nW={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},nq=function(){let e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;for(let t of"`-=[];',./\\")e[t]=t.charCodeAt(0);return e}(),n$=Object.fromEntries(Object.entries(nq).map(([e,t])=>[t,e.charAt(0).toUpperCase()+e.slice(1)]));function nG(e){let t;if("string"==typeof e){if(!(t=nq[e.toLowerCase()]))throw new p("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?nq.alt:0)+(e.ctrlKey?nq.ctrl:0)+(e.shiftKey?nq.shift:0)+(e.metaKey?nq.cmd:0);return t}function nK(e){return"string"==typeof e&&(e=e.split("+").map(e=>e.trim())),e.map(e=>"string"==typeof e?function(e){if(e.endsWith("!"))return nG(e.slice(0,-1));let t=nG(e);return nV.isMac&&t==nq.ctrl?nq.cmd:t}(e):e).reduce((e,t)=>t+e,0)}function nY(e){let t=nK(e);return Object.entries(nV.isMac?nH:nW).reduce((e,[i,n])=>(0!=(t&nq[i])&&(t&=~nq[i],e+=n),e),"")+(t?n$[t]:"")}function nQ(e,t){let i="ltr"===t;switch(e){case nq.arrowleft:return i?"left":"right";case nq.arrowright:return i?"right":"left";case nq.arrowup:return"up";case nq.arrowdown:return"down"}}class nZ extends ng{constructor(...e){super(...e),this.getFillerOffset=nJ}_insertChild(e,t){if(t&&(t instanceof iM||Array.from(t).length>0))throw new p("view-uielement-cannot-add",[this,t]);return 0}render(e,t){return this.toDomElement(e)}toDomElement(e){let t=e.createElement(this.name);for(let e of this.getAttributeKeys())t.setAttribute(e,this.getAttribute(e));return t}}function nJ(){return null}nZ.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 nX extends ng{constructor(...e){super(...e),this.getFillerOffset=n0}_insertChild(e,t){if(t&&(t instanceof iM||Array.from(t).length>0))throw new p("view-rawelement-cannot-add",[this,t]);return 0}render(){}}function n0(){return null}nX.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 n1 extends v(iT){constructor(e,t){super(),this.document=e,this._children=[],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}_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){var i,n;this._fireChange("children",this);let o=0;for(let r of(i=this.document,"string"==typeof(n=t)?[new iN(i,n)]:(ik(n)||(n=[n]),Array.from(n).map(e=>"string"==typeof e?new iN(i,e):e instanceof iP?new iN(i,e.data):e))))null!==r.parent&&r._remove(),r.parent=this,this._children.splice(e,0,r),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let i=e;in instanceof e))throw new p("view-writer-insert-invalid-node-type",i);n.is("$text")||e(n.getChildren(),i)}}(t=ik(t)?[...t]:[t],this.document);let i=t.reduce((e,t)=>{let i=e[e.length-1],n=!t.is("uiElement");return i&&i.breakAttributes==n?i.nodes.push(t):e.push({breakAttributes:n,nodes:[t]}),e},[]),n=null,o=e;for(let{nodes:e,breakAttributes:t}of i){let i=this._insertNodes(o,e,t);n||(n=i.start),o=i.end}return n?new nC(n,o):new nC(e)}remove(e){let t=e instanceof nC?e:nC._createOn(e);if(n8(t,this.document),t.isCollapsed)return new n1(this.document);let{start:i,end:n}=this._breakAttributesRange(t,!0),o=i.parent,r=n.offset-i.offset,s=o._removeChildren(i.offset,r);for(let e of s)this._removeFromClonedElementsGroup(e);let a=this.mergeAttributes(i);return t.start=a,t.end=a.clone(),new n1(this.document,s)}clear(e,t){for(let i of(n8(e,this.document),e.getWalker({direction:"backward",ignoreElementEnd:!0}))){let n,o=i.item;if(o.is("element")&&t.isSimilar(o))n=nC._createOn(o);else if(!i.nextPosition.isAfter(e.start)&&o.is("$textProxy")){let e=o.getAncestors().find(e=>e.is("element")&&t.isSimilar(e));e&&(n=nC._createIn(e))}n&&(n.end.isAfter(e.end)&&(n.end=e.end),n.start.isBefore(e.start)&&(n.start=e.start),this.remove(n))}}move(e,t){let i;if(t.isAfter(e.end)){let n=(t=this._breakAttributes(t,!0)).parent,o=n.childCount;e=this._breakAttributesRange(e,!0),i=this.remove(e),t.offset+=n.childCount-o}else i=this.remove(e);return this.insert(t,i)}wrap(e,t){if(!(t instanceof nz))throw new p("view-writer-wrap-invalid-attribute",this.document);if(n8(e,this.document),e.isCollapsed){let i=e.start;i.parent.is("element")&&!Array.from(i.parent.getChildren()).some(e=>!e.is("uiElement"))&&(i=i.getLastMatchingPosition(e=>e.item.is("uiElement"))),i=this._wrapPosition(i,t);let n=this.document.selection;return n.isCollapsed&&n.getFirstPosition().isEqual(e.start)&&this.setSelection(i),new nC(i)}return this._wrapRange(e,t)}unwrap(e,t){if(!(t instanceof nz))throw new p("view-writer-unwrap-invalid-attribute",this.document);if(n8(e,this.document),e.isCollapsed)return e;let{start:i,end:n}=this._breakAttributesRange(e,!0),o=i.parent,r=this._unwrapChildren(o,i.offset,n.offset,t),s=this.mergeAttributes(r.start);return s.isEqual(r.start)||r.end.offset--,new nC(s,this.mergeAttributes(r.end))}rename(e,t){let i=new nm(this.document,e,t.getAttributes());return this.insert(nA._createAfter(t),i),this.move(nC._createIn(t),nA._createAt(i,0)),this.remove(nC._createOn(t)),i}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return nA._createAt(e,t)}createPositionAfter(e){return nA._createAfter(e)}createPositionBefore(e){return nA._createBefore(e)}createRange(...e){return new nC(...e)}createRangeOn(e){return nC._createOn(e)}createRangeIn(e){return nC._createIn(e)}createSelection(...e){return new nx(...e)}createSlot(e){if(!this._slotFactory)throw new p("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,e)}_registerSlotFactory(e){this._slotFactory=e}_clearSlotFactory(){this._slotFactory=null}_insertNodes(e,t,i){let n,o;if(!(n=i?n5(e):e.parent.is("$text")?e.parent.parent:e.parent))throw new p("view-writer-invalid-position-container",this.document);o=i?this._breakAttributes(e,!0):e.parent.is("$text")?n3(e):e;let r=n._insertChild(o.offset,t);for(let e of t)this._addToClonedElementsGroup(e);let s=o.getShiftedBy(r),a=this.mergeAttributes(o);return a.isEqual(o)||s.offset--,new nC(a,this.mergeAttributes(s))}_wrapChildren(e,t,i,n){let o=t,r=[];for(;oa.priority)&&s.getIdentity()!1,e.parent._insertChild(e.offset,i);let n=new nC(e,e.getShiftedBy(1));this.wrap(n,t);let o=new nA(i.parent,i.index);i._remove();let r=o.nodeBefore,s=o.nodeAfter;return r instanceof iN&&s instanceof iN?n7(r,s):n4(o)}_wrapAttributeElement(e,t){if(!oe(e,t)||e.name!==t.name||e.priority!==t.priority)return!1;for(let i of e.getAttributeKeys())if("class"!==i&&"style"!==i&&t.hasAttribute(i)&&t.getAttribute(i)!==e.getAttribute(i))return!1;for(let i of e.getStyleNames())if(t.hasStyle(i)&&t.getStyle(i)!==e.getStyle(i))return!1;for(let i of e.getAttributeKeys())"class"!==i&&"style"!==i&&(t.hasAttribute(i)||this.setAttribute(i,e.getAttribute(i),t));for(let i of e.getStyleNames())t.hasStyle(i)||this.setStyle(i,e.getStyle(i),t);for(let i of e.getClassNames())t.hasClass(i)||this.addClass(i,t);return!0}_unwrapAttributeElement(e,t){if(!oe(e,t)||e.name!==t.name||e.priority!==t.priority)return!1;for(let i of e.getAttributeKeys())if("class"!==i&&"style"!==i&&(!t.hasAttribute(i)||t.getAttribute(i)!==e.getAttribute(i)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(let i of e.getStyleNames())if(!t.hasStyle(i)||t.getStyle(i)!==e.getStyle(i))return!1;for(let i of e.getAttributeKeys())"class"!==i&&"style"!==i&&this.removeAttribute(i,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){let i=e.start,n=e.end;if(n8(e,this.document),e.isCollapsed){let i=this._breakAttributes(e.start,t);return new nC(i,i)}let o=this._breakAttributes(n,t),r=o.parent.childCount,s=this._breakAttributes(i,t);return o.offset+=o.parent.childCount-r,new nC(s,o)}_breakAttributes(e,t=!1){let i=e.offset,n=e.parent;if(e.parent.is("emptyElement"))throw new p("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new p("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new p("view-writer-cannot-break-raw-element",this.document);if(!t&&n.is("$text")&&n9(n.parent)||n9(n))return e.clone();if(n.is("$text"))return this._breakAttributes(n3(e),t);if(i==n.childCount){let e=new nA(n.parent,n.index+1);return this._breakAttributes(e,t)}if(0===i){let e=new nA(n.parent,n.index);return this._breakAttributes(e,t)}{let e=n.index+1,o=n._clone();n.parent._insertChild(e,o),this._addToClonedElementsGroup(o);let r=n.childCount-i,s=n._removeChildren(i,r);o._appendChild(s);let a=new nA(n.parent,e);return this._breakAttributes(a,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(let t of e.getChildren())this._addToClonedElementsGroup(t);let t=e.id;if(!t)return;let i=this._cloneGroups.get(t);i||(i=new Set,this._cloneGroups.set(t,i)),i.add(e),e._clonesGroup=i}_removeFromClonedElementsGroup(e){if(e.is("element"))for(let t of e.getChildren())this._removeFromClonedElementsGroup(t);let t=e.id;if(!t)return;let i=this._cloneGroups.get(t);i&&i.delete(e)}}function n5(e){let t=e.parent;for(;!n9(t);){if(!t)return;t=t.parent}return t}function n4(e){let t=e.nodeBefore;if(t&&t.is("$text"))return new nA(t,t.data.length);let i=e.nodeAfter;return i&&i.is("$text")?new nA(i,0):e}function n3(e){if(e.offset==e.parent.data.length)return new nA(e.parent.parent,e.parent.index+1);if(0===e.offset)return new nA(e.parent.parent,e.parent.index);let 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 iN(e.root.document,t)),new nA(e.parent.parent,e.parent.index+1)}function n7(e,t){let i=e.data.length;return e._data+=t.data,t._remove(),new nA(e,i)}let n6=[iN,nz,nm,nO,nX,nZ];function n9(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function n8(e,t){let i=n5(e.start),n=n5(e.end);if(!i||!n||i!==n)throw new p("view-writer-invalid-range-container",t)}function oe(e,t){return null===e.id&&null===t.id}function ot(e){return"[object Text]"==Object.prototype.toString.call(e)}let oi=e=>{let t=e.createElement("span");return t.dataset.ckeFiller="true",t.innerText=" ",t},on=e=>{let t=e.createElement("br");return t.dataset.ckeFiller="true",t},oo="⁠".repeat(7);function or(e){return ot(e)&&e.data.substr(0,7)===oo}function os(e){return 7==e.data.length&&or(e)}function oa(e){return or(e)?e.data.slice(7):e.data}function ol(e,t){if(t.keyCode==nq.arrowleft){let e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){let t=e.getRangeAt(0).startContainer,i=e.getRangeAt(0).startOffset;or(t)&&i<=7&&e.collapse(t,0)}}}function oc(e,t,i,n=!1){i=i||function(e,t){return e===t};let o=Array.isArray(e)?e:Array.prototype.slice.call(e),r=Array.isArray(t)?t:Array.prototype.slice.call(t),s=function(e,t,i){let n=od(e,t,i);if(-1===n)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};let o=od(oh(e,n),oh(t,n),i);return{firstIndex:n,lastIndexOld:e.length-o,lastIndexNew:t.length-o}}(o,r,i);return n?function(e,t){let{firstIndex:i,lastIndexOld:n,lastIndexNew:o}=e;if(-1===i)return Array(t).fill("equal");let r=[];return i>0&&(r=r.concat(Array(i).fill("equal"))),o-i>0&&(r=r.concat(Array(o-i).fill("insert"))),n-i>0&&(r=r.concat(Array(n-i).fill("delete"))),o0&&i.push({index:n,type:"insert",values:e.slice(n,r)}),o-n>0&&i.push({index:n+(r-n),type:"delete",howMany:o-n}),i}(r,s)}function od(e,t,i){for(let n=0;n200||s>200||r+s>300)return ou.fastDiff(e,t,i,!0);if(sc?-1:1;d[r+u]&&(d[r]=d[r+u].slice(0)),d[r]||(d[r]=[]),d[r].push(s>c?n:o);let g=Math.max(s,c),p=g-r;for(;pc;g--)h[g]=u(g);h[c]=u(c),p++}while(h[c]!==l)return d[c].slice(1)}function og(e,t,i){e.insertBefore(i,e.childNodes[t]||null)}function op(e){let t=e.parentNode;t&&t.removeChild(e)}function om(e){return e&&e.nodeType===Node.COMMENT_NODE}function of(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}ou.fastDiff=oc;var ob=r(6062),ok=r.n(ob),ow=r(9315);ok()(ow.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ow.Z.locals;class o_ extends L{constructor(e,t){super(),this.domDocuments=new Set,this.domConverter=e,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=t,this.set("isFocused",!1),this.set("isSelecting",!1),nV.isBlink&&!nV.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this._inlineFiller=null,this._fakeSelectionContainer=null}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 p("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}render(){let e=null,t=!(nV.isBlink&&!nV.isAndroid)||!this.isSelecting;for(let e of this.markedChildren)this._updateChildrenMappings(e);for(let i of(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.parent.is("$text")&&(e=nA._createBefore(e.parent)),this.markedAttributes))this._updateAttrs(i);for(let t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(let t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(t)if(e){let t=this.domConverter.viewPositionToDom(e),i=t.parent.ownerDocument;or(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=oA(i,t.parent,t.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){if(!this.domConverter.mapViewToDom(e))return;let t=Array.from(this.domConverter.mapViewToDom(e).childNodes),i=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),n=this._diffNodeLists(t,i),o=this._findReplaceActions(n,t,i);if(-1!==o.indexOf("replace")){let n={equal:0,insert:0,delete:0};for(let r of o)if("replace"===r){let o=n.equal+n.insert,r=n.equal+n.delete,s=e.getChild(o);!s||s.is("uiElement")||s.is("rawElement")||this._updateElementMappings(s,t[r]),op(i[o]),n.equal++}else n[r]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){let e=this.selection.getFirstPosition();return e.parent.is("$text")?nA._createBefore(e.parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;let e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&ot(t.parent)&&or(t.parent))}_removeInlineFiller(){let e=this._inlineFiller;if(!or(e))throw new p("view-renderer-filler-was-lost",this);os(e)?e.remove():e.data=e.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;let e=this.selection.getFirstPosition(),t=e.parent,i=e.offset;if(!this.domConverter.mapViewToDom(t.root)||!t.is("element")||!function(e){if("false"==e.getAttribute("contenteditable"))return!1;let t=e.findAncestor(e=>e.hasAttribute("contenteditable"));return!t||"true"==t.getAttribute("contenteditable")}(t)||i===t.getFillerOffset())return!1;let n=e.nodeBefore,o=e.nodeAfter;return!(n instanceof iN||o instanceof iN)}_updateText(e,t){let i=this.domConverter.findCorrespondingDomText(e),n=this.domConverter.viewToDom(e),o=i.data,r=n.data,s=t.inlineFillerPosition;if(s&&s.parent==e.parent&&s.offset==e.index&&(r=oo+r),o!=r)for(let e of oc(o,r))"insert"===e.type?i.insertData(e.index,e.values.join("")):i.deleteData(e.index,e.howMany)}_updateAttrs(e){let t=this.domConverter.mapViewToDom(e);if(!t)return;let i=Array.from(t.attributes).map(e=>e.name);for(let i of e.getAttributeKeys())this.domConverter.setDomElementAttribute(t,i,e.getAttribute(i),e);for(let n of i)e.hasAttribute(n)||this.domConverter.removeDomElementAttribute(t,n)}_updateChildren(e,t){let i=this.domConverter.mapViewToDom(e);if(!i)return;let n=t.inlineFillerPosition,o=this.domConverter.mapViewToDom(e).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));n&&n.parent===e&&oA(i.ownerDocument,r,n.offset);let s=this._diffNodeLists(o,r),a=0,l=new Set;for(let e of s)"delete"===e?(l.add(o[a]),op(o[a])):"equal"===e&&a++;for(let e of(a=0,s))"insert"===e?(og(i,a,r[a]),a++):"equal"===e&&(this._markDescendantTextToSync(this.domConverter.domToView(r[a])),a++);for(let e of l)e.parentNode||this.domConverter.unbindDomElement(e)}_diffNodeLists(e,t){var i,n;let o;return ou((i=e,n=this._fakeSelectionContainer,0!=(o=Array.from(i)).length&&n&&o[o.length-1]==n&&o.pop(),e=o),t,ov.bind(null,this.domConverter))}_findReplaceActions(e,t,i){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let n=[],o=[],r=[],s={equal:0,insert:0,delete:0};for(let a of e)"insert"===a?r.push(i[s.equal+s.insert]):"delete"===a?o.push(t[s.equal+s.delete]):((n=n.concat(ou(o,r,oC).map(e=>"equal"===e?"replace":e))).push("equal"),o=[],r=[]),s[a]++;return n.concat(ou(o,r,oC).map(e=>"equal"===e?"replace":e))}_markDescendantTextToSync(e){if(e){if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(let t of e.getChildren())this._markDescendantTextToSync(t)}}_updateSelection(){if(nV.isBlink&&!nV.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();let e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}_updateFakeSelection(e){let t,i=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=((t=i.createElement("div")).className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t));let n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(e))return;n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";let o=i.getSelection(),r=i.createRange();o.removeAllRanges(),r.selectNodeContents(n),o.addRange(r)}_updateDomSelection(e){let t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;let i=this.domConverter.viewPositionToDom(this.selection.anchor),n=this.domConverter.viewPositionToDom(this.selection.focus);t.collapse(i.parent,i.offset),t.extend(n.parent,n.offset),nV.isGecko&&function(e,t){let i=e.parent;if(i.nodeType!=Node.ELEMENT_NODE||e.offset!=i.childNodes.length-1)return;let n=i.childNodes[e.offset];n&&"BR"==n.tagName&&t.addRange(t.getRangeAt(0))}(n,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;let t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){let t=this._fakeSelectionContainer,i=e.ownerDocument.getSelection();return!t||t.parentElement!==e||i.anchorNode!==t&&!t.contains(i.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(let e of this.domDocuments){let t=e.getSelection();if(t.rangeCount){let i=e.activeElement,n=this.domConverter.mapDomToView(i);i&&n&&t.removeAllRanges()}}}_removeFakeSelection(){let e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){let e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function oA(e,t,i){let n=t instanceof Array?t:t.childNodes,o=n[i];if(ot(o))return o.data=oo+o.data,o;{let o=e.createTextNode(oo);return Array.isArray(t)?n.splice(i,0,o):og(t,i,o),o}}function oC(e,t){return of(e)&&of(t)&&!ot(e)&&!ot(t)&&!om(e)&&!om(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function ov(e,t,i){return t===i||(ot(t)&&ot(i)?t.data===i.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(i)))}function oy(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function ox(e){let t=[],i=e;for(;i&&i.nodeType!=Node.DOCUMENT_NODE;)t.unshift(i),i=i.parentNode;return t}let oE=on(iC.document),oD=iC.document.createTextNode(" "),oT=oi(iC.document),oS="data-ck-unsafe-attribute-",oI="data-ck-unsafe-element";class oM{constructor(e,t={}){this.document=e,this.renderingMode=t.renderingMode||"editing",this.blockFillerMode=t.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?iC.document:iC.document.implementation.createHTMLDocument(""),this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new iz,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new nx(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){let t=this._domToViewMapping.get(e);if(t)for(let i of(this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t),Array.from(e.children)))this.unbindDomElement(i)}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,i){return"data"===this.renderingMode||!(e=e.toLowerCase()).startsWith("on")&&("srcdoc"!==e||!t.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===i&&("src"===e||"srcset"===e)||"source"===i&&"srcset"===e||!t.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(e,t){let i;if("data"===this.renderingMode)return void(e.innerHTML=t);let n=(new DOMParser).parseFromString(t,"text/html"),o=n.createDocumentFragment(),r=n.body.childNodes;for(;r.length>0;)o.appendChild(r[0]);let s=n.createTreeWalker(o,NodeFilter.SHOW_ELEMENT),a=[];for(;i=s.nextNode();)a.push(i);for(let e of a){for(let t of e.getAttributeNames())this.setDomElementAttribute(e,t,e.getAttribute(t));let t=e.tagName.toLowerCase();this._shouldRenameElement(t)&&(oB(t),e.replaceWith(this._createReplacementDomElement(t,e)))}for(;e.firstChild;)e.firstChild.remove();e.append(o)}viewToDom(e,t={}){if(e.is("$text")){let t=this._processDataFromViewText(e);return this._domDocument.createTextNode(t)}{let i;if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))i=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(i,e);else{if(e.is("uiElement"))return i="$comment"===e.name?this._domDocument.createComment(e.getCustomProperty("$rawContent")):e.render(this._domDocument,this),t.bind&&this.bindElements(i,e),i;for(let n of(this._shouldRenameElement(e.name)?(oB(e.name),i=this._createReplacementDomElement(e.name)):i=e.hasAttribute("xmlns")?this._domDocument.createElementNS(e.getAttribute("xmlns"),e.name):this._domDocument.createElement(e.name),e.is("rawElement")&&e.render(i,this),t.bind&&this.bindElements(i,e),e.getAttributeKeys()))this.setDomElementAttribute(i,n,e.getAttribute(n),e)}if(!1!==t.withChildren)for(let n of this.viewChildrenToDom(e,t))i.appendChild(n);return i}}setDomElementAttribute(e,t,i,n){let o=this.shouldRenderAttribute(t,i,e.tagName.toLowerCase())||n&&n.shouldRenderUnsafeAttribute(t);o||m("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:i}),e.hasAttribute(t)&&!o?e.removeAttribute(t):e.hasAttribute(oS+t)&&o&&e.removeAttribute(oS+t),e.setAttribute(o?t:oS+t,i)}removeDomElementAttribute(e,t){t!=oI&&(e.removeAttribute(t),e.removeAttribute(oS+t))}*viewChildrenToDom(e,t={}){let i=e.getFillerOffset&&e.getFillerOffset(),n=0;for(let o of e.getChildren()){i===n&&(yield this._getBlockFiller());let e=o.is("element")&&o.getCustomProperty("dataPipeline:transparentRendering");e&&"data"==this.renderingMode?yield*this.viewChildrenToDom(o,t):(e&&m("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:o}),yield this.viewToDom(o,t)),n++}i===n&&(yield this._getBlockFiller())}viewRangeToDom(e){let t=this.viewPositionToDom(e.start),i=this.viewPositionToDom(e.end),n=this._domDocument.createRange();return n.setStart(t.parent,t.offset),n.setEnd(i.parent,i.offset),n}viewPositionToDom(e){let t=e.parent;if(t.is("$text")){let i=this.findCorrespondingDomText(t);if(!i)return null;let n=e.offset;return or(i)&&(n+=7),{parent:i,offset:n}}{let i,n,o;if(0===e.offset){if(!(i=this.mapViewToDom(t)))return null;o=i.childNodes[0]}else{let t=e.nodeBefore;if(!(n=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(t)))return null;i=n.parentNode,o=n.nextSibling}return ot(o)&&or(o)?{parent:o,offset:7}:{parent:i,offset:n?oy(n)+1:0}}}domToView(e,t={}){if(this.isBlockFiller(e))return null;let i=this.getHostViewElement(e);if(i)return i;if(om(e)&&t.skipComments)return null;if(ot(e)){if(os(e))return null;{let t=this._processDataFromDomText(e);return""===t?null:new iN(this.document,t)}}{let i;if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))i=new n1(this.document),t.bind&&this.bindDocumentFragments(e,i);else{i=this._createViewElement(e,t),t.bind&&this.bindElements(e,i);let n=e.attributes;if(n)for(let e=n.length,t=0;t{let{scrollLeft:t,scrollTop:i}=e;n.push([t,i])}),t.focus(),oN(t,e=>{let[t,i]=n.shift();e.scrollLeft=t,e.scrollTop=i}),iC.window.scrollTo(e,i)}}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(e){var t;return"br"==this.blockFillerMode?e.isEqualNode(oE):!("BR"!==e.tagName||!oP(e,this.blockElements)||1!==e.parentNode.childNodes.length)||e.isEqualNode(oT)||(t=this.blockElements,e.isEqualNode(oD)&&oP(e,t)&&1===e.parentNode.childNodes.length)}isDomSelectionBackward(e){if(e.isCollapsed)return!1;let t=this._domDocument.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);let i=t.collapsed;return t.detach(),i}getHostViewElement(e){let t=ox(e);for(t.pop();t.length;){let e=t.pop(),i=this._domToViewMapping.get(e);if(i&&(i.is("uiElement")||i.is("rawElement")))return i}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return this._domDocument.createTextNode(" ");case"markedNbsp":return oi(this._domDocument);case"br":return on(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if(ot(e)&&or(e)&&t<7||this.isElement(e)&&or(e.childNodes[t]))return!1;let i=this.mapDomToView(e);return!i||!i.is("uiElement")&&!i.is("rawElement")}_processDataFromViewText(e){let t=e.data;if(e.getAncestors().some(e=>this.preElements.includes(e.name)))return t;if(" "==t.charAt(0)){let i=this._getTouchingInlineViewNode(e,!1);!(i&&i.is("$textProxy")&&this._nodeEndsWithSpace(i))&&i||(t=" "+t.substr(1))}if(" "==t.charAt(t.length-1)){let i=this._getTouchingInlineViewNode(e,!0),n=i&&i.is("$textProxy")&&" "==i.data.charAt(0);" "!=t.charAt(t.length-2)&&i&&!n||(t=t.substr(0,t.length-1)+" ")}return t.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(e){if(e.getAncestors().some(e=>this.preElements.includes(e.name)))return!1;let t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_processDataFromDomText(e){var t;let i=e.data;if(t=this.preElements,ox(e).some(e=>e.tagName&&t.includes(e.tagName.toLowerCase())))return oa(e);i=i.replace(/[ \n\t\r]{1,}/g," ");let n=this._getTouchingInlineDomNode(e,!1),o=this._getTouchingInlineDomNode(e,!0),r=this._checkShouldLeftTrimDomText(e,n),s=this._checkShouldRightTrimDomText(e,o);r&&(i=i.replace(/^ /,"")),s&&(i=i.replace(/ $/,"")),i=(i=oa(new Text(i))).replace(/ \u00A0/g," ");let a=o&&this.isElement(o)&&"BR"!=o.tagName,l=o&&ot(o)&&" "==o.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(i)||!o||a||l)&&(i=i.replace(/\u00A0$/," ")),(r||n&&this.isElement(n)&&"BR"!=n.tagName)&&(i=i.replace(/^\u00A0/," ")),i}_checkShouldLeftTrimDomText(e,t){return!t||(this.isElement(t)?"BR"===t.tagName:!this._encounteredRawContentDomNodes.has(e.previousSibling)&&/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1)))}_checkShouldRightTrimDomText(e,t){return!t&&!or(e)}_getTouchingInlineViewNode(e,t){for(let i of new n_({startPosition:t?nA._createAfter(e):nA._createBefore(e),direction:t?"forward":"backward"})){if(i.item.is("element")&&this.inlineObjectElements.includes(i.item.name))return i.item;if(i.item.is("containerElement")||i.item.is("element","br"))break;if(i.item.is("$textProxy"))return i.item}return null}_getTouchingInlineDomNode(e,t){if(!e.parentNode)return null;let i=t?"firstChild":"lastChild",n=t?"nextSibling":"previousSibling",o=!0,r=e;do if(!o&&r[i]?r=r[i]:r[n]?(r=r[n],o=!1):(r=r.parentNode,o=!0),!r||this._isBlockElement(r))return null;while(!ot(r)&&"BR"!=r.tagName&&!this._isInlineObjectElement(r))return r}_isBlockElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isInlineObjectElement(e){return this.isElement(e)&&this.inlineObjectElements.includes(e.tagName.toLowerCase())}_createViewElement(e,t){if(om(e))return new nZ(this.document,"$comment");let i=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new ng(this.document,i)}_isViewElementWithRawContent(e,t){return!1!==t.withChildren&&!!this._rawContentElementMatcher.match(e)}_shouldRenameElement(e){let t=e.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(t)}_createReplacementDomElement(e,t){let i=this._domDocument.createElement("span");if(i.setAttribute(oI,e),t){for(;t.firstChild;)i.appendChild(t.firstChild);for(let e of t.getAttributeNames())i.setAttribute(e,t.getAttribute(e))}return i}}function oN(e,t){let i=e;for(;i;)t(i),i=i.parentElement}function oP(e,t){let i=e.parentNode;return!!i&&!!i.tagName&&t.includes(i.tagName.toLowerCase())}function oB(e){"script"===e&&m("domconverter-unsafe-script-element-detected"),"style"===e&&m("domconverter-unsafe-style-element-detected")}function oz(e){let t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}function oj(e){return class extends e{listenTo(e,t,i,n={}){if(of(e)||oz(e)){let o={capture:!!n.useCapture,passive:!!n.usePassive},r=this._getProxyEmitter(e,o)||new oO(e,o);this.listenTo(r,t,i,n)}else y.prototype.listenTo.call(this,e,t,i,n)}stopListening(e,t,i){if(of(e)||oz(e))for(let n of this._getAllProxyEmitters(e))this.stopListening(n,t,i);else y.prototype.stopListening.call(this,e,t,i)}_getProxyEmitter(e,t){var i;let n;return i=oR(e,t),(n=this[_])&&n[i]?n[i].emitter:null}_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)}}}let oL=oj(y);["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{oj[e]=oL.prototype[e]});class oO extends y{constructor(e,t){super(),x(this,oR(e,t)),this._domNode=e,this._options=t}attach(e){if(this._domListeners&&this._domListeners[e])return;let t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}_addEventListener(e,t,i){this.attach(e),y.prototype._addEventListener.call(this,e,t,i)}_removeEventListener(e,t){y.prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){let t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}}function oR(e,t){let i=e["data-ck-expando"]||(e["data-ck-expando"]=h());for(let e of Object.keys(t).sort())t[e]&&(i+="-"+e);return i}class oF extends oL{constructor(e){super(),this.view=e,this.document=e.document,this.isEnabled=!1}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] *")}}function oV(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new eW;++ta))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var h=-1,u=!0,g=2&i?new oV:void 0;for(r.set(e,t),r.set(t,e);++h{this.listenTo(e,t,(e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)},{useCapture:this.useCapture})})}fire(e,t,i){this.isEnabled&&this.document.fire(e,new o7(this.view,t,i))}}class o9 extends o6{constructor(e){super(e),this.domEventType=["keydown","keyup"]}onDomEvent(e){let t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return nG(this)}};this.fire(e.type,e,t)}}let o8=function(){return en.Date.now()};var re=/\s/;let rt=function(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t};var ri=/^\s+/,rn=/^[-+]0x[0-9a-f]+$/i,ro=/^0b[01]+$/i,rr=/^0o[0-7]+$/i,rs=parseInt;let ra=function(e){if("number"==typeof e)return e;if(iO(e))return 0/0;if(I(e)){var t,i="function"==typeof e.valueOf?e.valueOf():e;e=I(i)?i+"":i}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,rt(t)+1).replace(ri,""):t;var n=ro.test(e);return n||rr.test(e)?rs(e.slice(2),n?2:8):rn.test(e)?0/0:+e};var rl=Math.max,rc=Math.min;let rd=function(e,t,i){var n,o,r,s,a,l,c=0,d=!1,h=!1,u=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var i=n,r=o;return n=o=void 0,c=t,s=e.apply(r,i)}function p(e){var i=e-l;return void 0===l||i>=t||i<0||h&&e-c>=r}function m(){var e,i=o8();if(p(i))return f(i);a=setTimeout(m,(e=t-(i-l),h?rc(e,r-(i-c)):e))}function f(e){return a=void 0,u&&n?g(e):(n=o=void 0,s)}function b(){var e,i=o8(),r=p(i);if(n=arguments,o=this,l=i,r){if(void 0===a)return c=e=l,a=setTimeout(m,t),d?g(e):s;if(h)return clearTimeout(a),a=setTimeout(m,t),g(l)}return void 0===a&&(a=setTimeout(m,t)),s}return t=ra(t)||0,I(i)&&(d=!!i.leading,r=(h="maxWait"in i)?rl(ra(i.maxWait)||0,t):r,u="trailing"in i?!!i.trailing:u),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=o=a=void 0},b.flush=function(){return void 0===a?s:f(o8())},b};class rh extends oF{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=rd(e=>{this.document.fire("selectionChangeDone",e)},200)}observe(){let e=this.document;e.on("arrowKey",(t,i)=>{e.selection.isFake&&this.isEnabled&&i.preventDefault()},{context:"$capture"}),e.on("arrowKey",(t,i)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(i.keyCode)},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){let t=this.document.selection,i=new nx(t.getRanges(),{backward:t.isBackward,fake:!1});e!=nq.arrowleft&&e!=nq.arrowup||i.setTo(i.getFirstPosition()),e!=nq.arrowright&&e!=nq.arrowdown||i.setTo(i.getLastPosition());let n={oldSelection:t,newSelection:i,domSelection:null};this.document.fire("selectionChange",n),this._fireSelectionChangeDoneDebounced(n)}}class ru extends oF{constructor(e){super(e),this.mutationObserver=e.getObserver(o4),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=rd(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=rd(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(e){let t=e.ownerDocument,i=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,t),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(e,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(e,"keydown",i,{priority:"highest",useCapture:!0}),this.listenTo(e,"keyup",i,{priority:"highest",useCapture:!0}),this._documents.has(t)||(this.listenTo(t,"mouseup",i,{priority:"highest",useCapture:!0}),this.listenTo(t,"selectionchange",(e,i)=>{this._handleSelectionChange(i,t),this._documentIsSelectingInactivityTimeoutDebounced()}),this._documents.add(t))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(e,t){if(!this.isEnabled)return;let i=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(i.anchorNode))return;this.mutationObserver.flush();let n=this.domConverter.domSelectionToView(i);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(n)&&this.domConverter.isDomSelectionCorrect(i)||++this._loopbackCounter>60))if(this.selection.isSimilar(n))this.view.forceRender();else{let e={oldSelection:this.selection,newSelection:n,domSelection:i};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class rg extends o6{constructor(e){super(e),this.domEventType=["focus","blur"],this.useCapture=!0;let t=this.document;t.on("focus",()=>{t.isFocused=!0,this._renderTimeoutId=setTimeout(()=>e.change(()=>{}),50)}),t.on("blur",(i,n)=>{let o=t.selection.editableElement;null!==o&&o!==n.target||(t.isFocused=!1,e.change(()=>{}))})}onDomEvent(e){this.fire(e.type,e)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class rp extends o6{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];let t=this.document;t.on("compositionstart",()=>{t.isComposing=!0}),t.on("compositionend",()=>{t.isComposing=!1})}onDomEvent(e){this.fire(e.type,e)}}class rm extends o6{constructor(e){super(e),this.domEventType=["beforeinput"]}onDomEvent(e){this.fire(e.type,e)}}let rf=function(e){return"string"==typeof e||!e4(e)&&em(e)&&"[object String]"==eu(e)};function rb(e,t,i={},n=[]){let o=i&&i.xmlns,r=o?e.createElementNS(o,t):e.createElement(t);for(let e in i)r.setAttribute(e,i[e]);for(let t of(!rf(n)&&ik(n)||(n=[n]),n))rf(t)&&(t=e.createTextNode(t)),r.appendChild(t);return r}class rk{constructor(e,t){rk._observerInstance||rk._createObserver(),this._element=e,this._callback=t,rk._addElementCallback(e,t),rk._observerInstance.observe(e)}destroy(){rk._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){rk._elementCallbacks||(rk._elementCallbacks=new Map);let i=rk._elementCallbacks.get(e);i||(i=new Set,rk._elementCallbacks.set(e,i)),i.add(t)}static _deleteElementCallback(e,t){let i=rk._getElementCallbacks(e);i&&(i.delete(t),i.size||(rk._elementCallbacks.delete(e),rk._observerInstance.unobserve(e))),rk._elementCallbacks&&!rk._elementCallbacks.size&&(rk._observerInstance=null,rk._elementCallbacks=null)}static _getElementCallbacks(e){return rk._elementCallbacks?rk._elementCallbacks.get(e):null}static _createObserver(){rk._observerInstance=new iC.window.ResizeObserver(e=>{for(let t of e){let e=rk._getElementCallbacks(t.target);if(e)for(let i of e)i(t)}})}}function rw(e){return!!(e&&e.getClientRects&&e.getClientRects().length)}function r_(e){let t=e.next();return t.done?null:t.value}rk._observerInstance=null,rk._elementCallbacks=null;class rA extends oj(L){constructor(){super(),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(e){if(this._elements.has(e))throw new p("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>this._focus(e),{useCapture:!0}),this.listenTo(e,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(e)}remove(e){e===this.focusedElement&&this._blur(),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class rC{constructor(){this._listener=Object.create(oj)}listenTo(e){this._listener.listenTo(e,"keydown",(e,t)=>{this._listener.fire("_keydown:"+nG(t),t)})}set(e,t,i={}){let n=nK(e),o=i.priority;this._listener.listenTo(this._listener,"_keydown:"+n,(e,i)=>{t(i,()=>{i.preventDefault(),i.stopPropagation(),e.stop()}),e.return=!0},{priority:o})}press(e){return!!this._listener.fire("_keydown:"+nG(e),e)}destroy(){this._listener.stopListening()}}class rv extends oF{constructor(e){super(e),this.document.on("keydown",(e,t)=>{var i;if(this.isEnabled&&((i=t.keyCode)==nq.arrowright||i==nq.arrowleft||i==nq.arrowup||i==nq.arrowdown)){let i=new nD(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(i,t),i.stop.called&&e.stop()}})}observe(){}}class ry extends oF{constructor(e){super(e);let t=this.document;t.on("keydown",(e,i)=>{if(!this.isEnabled||i.keyCode!=nq.tab||i.ctrlKey)return;let n=new nD(t,"tab",t.selection.getFirstRange());t.fire(n,i),n.stop.called&&e.stop()})}observe(){}}function rx(e){return"[object Range]"==Object.prototype.toString.apply(e)}function rE(e){let 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)}}let rD=["top","right","bottom","left","width","height"];class rT{constructor(e){let t=rx(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),rM(e)||t)if(t){let t=rT.getDomRangeRects(e);rS(this,rT.getBoundingRect(t))}else rS(this,e.getBoundingClientRect());else if(oz(e)){let{innerWidth:t,innerHeight:i}=e;rS(this,{top:0,right:t,bottom:i,left:0,width:t,height:i})}else rS(this,e)}clone(){return new rT(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){let 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};return t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0?null:new rT(t)}getIntersectionArea(e){let t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){let e=this._source,t=this.clone();if(!rI(e)){let i=e.parentNode||e.commonAncestorContainer;for(;i&&!rI(i);){let e=new rT(i),n=t.getIntersection(e);if(!n)return null;n.getArea()t.bottom}function rP(e,t){return e.right>t.right}function rB(e){return rx(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function rz(e,t){let i=rB(e),n=new rT(e);if(i===t)return n;{let e=i;for(;e!=t;){let t=new rT(e.frameElement).excludeScrollbarsAndBorders();n.moveBy(t.left,t.top),e=e.parent}}return n}class rj extends L{constructor(e){var t;super(),this.document=new nB(e),this.domConverter=new oM(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new o_(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting").to(this.document,"isFocused","isSelecting"),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new n2(this.document),this.addObserver(o4),this.addObserver(ru),this.addObserver(rg),this.addObserver(o9),this.addObserver(rh),this.addObserver(rp),this.addObserver(rv),this.addObserver(ry),nV.isAndroid&&this.addObserver(rm),this.document.on("arrowKey",ol,{priority:"low"}),t=this,t.document.on("arrowKey",(e,i)=>(function(e,t){if(e.keyCode==nq.arrowright){let i=e.domTarget.ownerDocument.defaultView.getSelection(),n=1==i.rangeCount&&i.getRangeAt(0).collapsed;if(n||e.shiftKey){let e=i.focusNode,o=i.focusOffset,r=t.domPositionToView(e,o);if(null===r)return;let s=!1,a=r.getLastMatchingPosition(e=>(e.item.is("uiElement")&&(s=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))));if(s){let e=t.viewPositionToDom(a);n?i.collapse(e.parent,e.offset):i.extend(e.parent,e.offset)}}}})(i,t.domConverter),{priority:"low"}),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})}attachDomRoot(e,t="main"){let i=this.document.getRoot(t);i._name=e.tagName.toLowerCase();let n={};for(let{name:t,value:o}of Array.from(e.attributes))n[t]=o,"class"===t?this._writer.addClass(o.split(" "),i):this._writer.setAttribute(t,o,i);this._initialDomRootAttributes.set(e,n);let o=()=>{this._writer.setAttribute("contenteditable",(!i.isReadOnly).toString(),i),i.isReadOnly?this._writer.addClass("ck-read-only",i):this._writer.removeClass("ck-read-only",i)};for(let n of(o(),this.domRoots.set(t,e),this.domConverter.bindElements(e,i),this._renderer.markToSync("children",i),this._renderer.markToSync("attributes",i),this._renderer.domDocuments.add(e.ownerDocument),i.on("change:children",(e,t)=>this._renderer.markToSync("children",t)),i.on("change:attributes",(e,t)=>this._renderer.markToSync("attributes",t)),i.on("change:text",(e,t)=>this._renderer.markToSync("text",t)),i.on("change:isReadOnly",()=>this.change(o)),i.on("change",()=>{this._hasChangedSinceTheLastRendering=!0}),this._observers.values()))n.observe(e,t)}detachDomRoot(e){let t=this.domRoots.get(e);Array.from(t.attributes).forEach(({name:e})=>t.removeAttribute(e));let i=this._initialDomRootAttributes.get(t);for(let e in i)t.setAttribute(e,i[e]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;for(let[i,n]of(t=new e(this),this._observers.set(e,t),this.domRoots))t.observe(n,i);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(let e of this._observers.values())e.disable()}enableObservers(){for(let e of this._observers.values())e.enable()}scrollToTheSelection(){let e=this.document.selection.getFirstRange();e&&function({target:e,viewportOffset:t=0}){let i=rB(e),n=i,o=null;for(;n;){!function(e,t){let i,n,o=rB(e);for(;e!=o.document.body;){var r,s,a,l;n=t(),(i=new rT(e).excludeScrollbarsAndBorders()).contains(n)||((r=n,s=i,r.toprz(e,n));let r=rz(e,n);if(function(e,t,i){let n=t.clone().moveBy(0,i),o=t.clone().moveBy(0,-i),r=new rT(e).excludeScrollbarsAndBorders();if(![o,n].every(e=>r.contains(e))){var s,a,l,c;let{scrollX:d,scrollY:h}=e;(s=o,a=r,s.top{})}destroy(){for(let e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return nA._createAt(e,t)}createPositionAfter(e){return nA._createAfter(e)}createPositionBefore(e){return nA._createBefore(e)}createRange(...e){return new nC(...e)}createRangeOn(e){return nC._createOn(e)}createRangeIn(e){return nC._createIn(e)}createSelection(...e){return new nx(...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 rL{is(){throw Error("is() method is abstract")}}class rO extends rL{constructor(e){super(),this.parent=null,this._attrs=iB(e)}get document(){return null}get index(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new p("model-node-not-found-in-parent",this);return e}get startOffset(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new p("model-node-not-found-in-parent",this);return e}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){let e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){let 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(){let e=[],t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={}){let t=[],i=e.includeSelf?this:this.parent;for(;i;)t[e.parentFirst?"push":"unshift"](i),i=i.parent;return t}getCommonAncestor(e,t={}){let i=this.getAncestors(t),n=e.getAncestors(t),o=0;for(;i[o]==n[o]&&i[o];)o++;return 0===o?null:i[o-1]}isBefore(e){if(this==e||this.root!==e.root)return!1;let t=this.getPath(),i=e.getPath(),n=iS(t,i);switch(n){case"prefix":return!0;case"extension":return!1;default:return t[n](e[t[0]]=t[1],e),{})),e}_clone(e){return new rO(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=iB(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}rO.prototype.is=function(e){return"node"===e||"model:node"===e};class rR{constructor(e){this._nodes=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((e,t)=>e+t.offsetSize,0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){let t=this._nodes.indexOf(e);return -1==t?null:t}getNodeStartOffset(e){let t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((e,t)=>e+t.offsetSize,0)}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;let t=this._nodes[e];if(!t)throw new p("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(let i of this._nodes){if(e>=t&&e1e4)return e.slice(0,i).concat(t).concat(e.slice(i+0,e.length));{let n=Array.from(e);return n.splice(i,0,...t),n}}(this._nodes,Array.from(t),e)}_removeNodes(e,t=1){return this._nodes.splice(e,t)}toJSON(){return this._nodes.map(e=>e.toJSON())}}class rF extends rO{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){let e=super.toJSON();return e.data=this.data,e}_clone(){return new rF(this.data,this.getAttributes())}static fromJSON(e){return new rF(e.data,e.attributes)}}rF.prototype.is=function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e};class rV extends rL{constructor(e,t,i){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new p("model-textproxy-wrong-offsetintext",this);if(i<0||t+i>e.offsetSize)throw new p("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+i),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){let e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={}){let t=[],i=e.includeSelf?this:this.parent;for(;i;)t[e.parentFirst?"push":"unshift"](i),i=i.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}rV.prototype.is=function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e};class rU extends rO{constructor(e,t,i){super(t),this.name=e,this._children=new rR,i&&this._insertChild(0,i)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(let i of e)t=t.getChild(t.offsetToIndex(i));return t}findAncestor(e,t={}){let i=t.includeSelf?this:this.parent;for(;i;){if(i.name===e)return i;i=i.parent}return null}toJSON(){let e=super.toJSON();if(e.name=this.name,this._children.length>0)for(let t of(e.children=[],this._children))e.children.push(t.toJSON());return e}_clone(e=!1){let t=e?Array.from(this._children).map(e=>e._clone(!0)):void 0;return new rU(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){var i;let n="string"==typeof(i=t)?[new rF(i)]:(ik(i)||(i=[i]),Array.from(i).map(e=>"string"==typeof e?new rF(e):e instanceof rV?new rF(e.data,e.getAttributes()):e));for(let e of n)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){let i=this._children._removeNodes(e,t);for(let e of i)e.parent=null;return i}static fromJSON(e){let t;if(e.children)for(let i of(t=[],e.children))i.name?t.push(rU.fromJSON(i)):t.push(rF.fromJSON(i));return new rU(e.name,e.attributes,t)}}rU.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 rH{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new p("model-tree-walker-no-start-position",null);let t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new p("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=rq._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}skip(e){let t,i,n,o;do n=this.position,o=this._visitedParent,{done:t,value:i}=this.next();while(!t&&e(i))t||(this.position=n,this._visitedParent=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position,t=this.position.clone(),i=this._visitedParent;if(null===i.parent&&t.offset===i.maxOffset||i===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let n=r$(t,i),o=n||rG(t,i,n);if(o instanceof rU)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=o),this.position=t,rW("elementStart",o,e,t,1);if(o instanceof rF){let n;if(this.singleCharacters)n=1;else{let e=o.endOffset;this._boundaryEndParent==i&&this.boundaries.end.offsete&&(e=this.boundaries.start.offset),n=t.offset-e}let o=t.offset-r.startOffset,s=new rV(r,o-n,n);return t.offset-=n,this.position=t,rW("text",s,e,t,n)}return t.path.pop(),this.position=t,this._visitedParent=i.parent,rW("elementStart",i,e,t,1)}}function rW(e,t,i,n,o){return{done:!1,value:{type:e,item:t,previousPosition:i,nextPosition:n,length:o}}}class rq extends rL{constructor(e,t,i="toNone"){if(super(),!e.is("element")&&!e.is("documentFragment"))throw new p("model-position-root-invalid",e);if(!(t instanceof Array)||0===t.length)throw new p("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=i}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t1)return!1;if(1===t)return rY(e,this,i);if(-1===t)return rY(this,e,i)}return this.path.length===e.path.length||(this.path.length>e.path.length?rQ(this.path,t):rQ(e.path,t))}hasSameParentAs(e){return this.root===e.root&&"same"==iS(this.getParentPath(),e.getParentPath())}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=rq._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){let 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){let t,i=e.movedRange;return i.containsPosition(this)||i.start.isEqual(this)?(t=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(t=t._getTransformedByDeletion(e.deletionPosition,1))):t=this.isEqual(e.deletionPosition)?rq._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),t}_getTransformedByDeletion(e,t){let i=rq._createAt(this);if(this.root!=e.root)return i;if("same"==iS(e.getParentPath(),this.getParentPath())){if(e.offsetthis.offset)return null;i.offset-=t}}else if("prefix"==iS(e.getParentPath(),this.getParentPath())){let n=e.path.length-1;if(e.offset<=this.path[n]){if(e.offset+t>this.path[n])return null;i.path[n]-=t}}return i}_getTransformedByInsertion(e,t){let i=rq._createAt(this);if(this.root!=e.root)return i;if("same"==iS(e.getParentPath(),this.getParentPath()))(e.offset=t;){if(e.path[n]+o!==i.maxOffset)return!1;o=1,n--,i=i.parent}return!0}(e,i+1)}function rQ(e,t){for(;tt+1;){let t=n.maxOffset-i.offset;0!==t&&e.push(new rZ(i,i.getShiftedBy(t))),i.path=i.path.slice(0,-1),i.offset++,n=n.parent}for(;i.path.length<=this.end.path.length;){let t=this.end.path[i.path.length-1],n=t-i.offset;0!==n&&e.push(new rZ(i,i.getShiftedBy(n))),i.offset=t,i.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new rH(e)}*getItems(e={}){for(let t of(e.boundaries=this,e.ignoreElementEnd=!0,new rH(e)))yield t.item}*getPositions(e={}){e.boundaries=this;let t=new rH(e);for(let e of(yield t.position,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 rZ(this.start,this.end)]}getTransformedByOperations(e){let t=[new rZ(this.start,this.end)];for(let i of e)for(let e=0;e0?new this(e,i):new this(i,e)}static _createIn(e){return new this(rq._createAt(e,0),rq._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(rq._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new p("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();let t=e[0];e.sort((e,t)=>e.start.isAfter(t.start)?1:-1);let i=e.indexOf(t),n=new this(t.start,t.end);if(i>0)for(let t=i-1;e[t].end.isEqual(n.start);t++)n.start=rq._createAt(e[t].start);for(let t=i+1;t{if(t.viewPosition)return;let i=this._modelToViewMapping.get(t.modelPosition.parent);if(!i)throw new p("mapping-model-position-view-parent-not-found",this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(i,t.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(e,t)=>{if(t.modelPosition)return;let i=this.findMappedViewAncestor(t.viewPosition),n=this._viewToModelMapping.get(i),o=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,i);t.modelPosition=rq._createAt(n,o)},{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){let i=this.toModelElement(e);if(this._elementToMarkerNames.has(e))for(let t of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(t);t.defer?this._deferredBindingRemovals.set(e,e.root):(this._viewToModelMapping.delete(e),this._modelToViewMapping.get(i)==e&&this._modelToViewMapping.delete(i))}unbindModelElement(e){let t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){let i=this._markerNameToElements.get(t)||new Set;i.add(e);let n=this._elementToMarkerNames.get(e)||new Set;n.add(t),this._markerNameToElements.set(t,i),this._elementToMarkerNames.set(e,n)}unbindElementFromMarkerName(e,t){let i=this._markerNameToElements.get(t);i&&(i.delete(e),0==i.size&&this._markerNameToElements.delete(t));let n=this._elementToMarkerNames.get(e);n&&(n.delete(t),0==n.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){let e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}flushDeferredBindings(){for(let[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 rZ(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new nC(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){let t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={}){let i={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",i),i.viewPosition}markerNameToElements(e){let t=this._markerNameToElements.get(e);if(!t)return null;let i=new Set;for(let e of t)if(e.is("attributeElement"))for(let t of e.getElementsWithSameId())i.add(t);else i.add(e);return i}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,i){if(i!=e)return this._toModelOffset(e.parent,e.index,i)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;let n=0;for(let i=0;i1?t[0]+":"+t[1]:t[0]}class r1 extends y{constructor(e){super(),this._conversionApi={dispatcher:this,...e},this._firedEventsMap=new WeakMap}convertChanges(e,t,i){let n=this._createConversionApi(i,e.getRefreshedItems());for(let t of e.getMarkersToRemove())this._convertMarkerRemove(t.name,t.range,n);for(let t of this._reduceChanges(e.getChanges()))"insert"===t.type?this._convertInsert(rZ._createFromPositionAndShift(t.position,t.length),n):"reinsert"===t.type?this._convertReinsert(rZ._createFromPositionAndShift(t.position,t.length),n):"remove"===t.type?this._convertRemove(t.position,t.length,t.name,n):this._convertAttribute(t.range,t.attributeKey,t.attributeOldValue,t.attributeNewValue,n);for(let e of n.mapper.flushUnboundMarkerNames()){let i=t.get(e).getRange();this._convertMarkerRemove(e,i,n),this._convertMarkerAdd(e,i,n)}for(let t of e.getMarkersToAdd())this._convertMarkerAdd(t.name,t.range,n);n.mapper.flushDeferredBindings(),n.consumable.verifyAllConsumed("insert")}convert(e,t,i,n={}){let o=this._createConversionApi(i,void 0,n);for(let[i,n]of(this._convertInsert(e,o),t))this._convertMarkerAdd(i,n,o);o.consumable.verifyAllConsumed("insert")}convertSelection(e,t,i){let n=Array.from(t.getMarkersAtPosition(e.getFirstPosition())),o=this._createConversionApi(i);if(this._addConsumablesForSelection(o.consumable,e,n),this.fire("selection",{selection:e},o),e.isCollapsed){for(let t of n){let i=t.getRange();if(!function(e,t,i){let n=t.getRange(),o=Array.from(e.getAncestors());return o.shift(),o.reverse(),!o.some(e=>{if(n.containsItem(e))return!!i.toViewElement(e).getCustomProperty("addHighlight")})}(e.getFirstPosition(),t,o.mapper))continue;let n={item:e,markerName:t.name,markerRange:i};o.consumable.test(e,"addMarker:"+t.name)&&this.fire(`addMarker:${t.name}`,n,o)}for(let t of e.getAttributeKeys()){let i={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};o.consumable.test(e,"attribute:"+i.attributeKey)&&this.fire(`attribute:${i.attributeKey}:$text`,i,o)}}}_convertInsert(e,t,i={}){for(let n of(i.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,Array.from(e)),Array.from(e.getWalker({shallow:!0})).map(r2)))this._testAndFire("insert",n,t)}_convertRemove(e,t,i,n){this.fire(`remove:${i}`,{position:e,length:t},n)}_convertAttribute(e,t,i,n,o){for(let r of(this._addConsumablesForRange(o.consumable,e,`attribute:${t}`),e)){let e={item:r.item,range:rZ._createFromPositionAndShift(r.previousPosition,r.length),attributeKey:t,attributeOldValue:i,attributeNewValue:n};this._testAndFire(`attribute:${t}`,e,o)}}_convertReinsert(e,t){let i=Array.from(e.getWalker({shallow:!0}));for(let e of(this._addConsumablesForInsert(t.consumable,i),i.map(r2)))this._testAndFire("insert",{...e,reconversion:!0},t)}_convertMarkerAdd(e,t,i){if("$graveyard"==t.root.rootName)return;let n=`addMarker:${e}`;if(i.consumable.add(t,n),this.fire(n,{markerName:e,markerRange:t},i),i.consumable.consume(t,n))for(let o of(this._addConsumablesForRange(i.consumable,t,n),t.getItems())){if(!i.consumable.test(o,n))continue;let r={item:o,range:rZ._createOn(o),markerName:e,markerRange:t};this.fire(n,r,i)}}_convertMarkerRemove(e,t,i){"$graveyard"!=t.root.rootName&&this.fire(`removeMarker:${e}`,{markerName:e,markerRange:t},i)}_reduceChanges(e){let t={changes:e};return this.fire("reduceChanges",t),t.changes}_addConsumablesForInsert(e,t){for(let i of t){let t=i.item;if(null===e.test(t,"insert"))for(let i of(e.add(t,"insert"),t.getAttributeKeys()))e.add(t,"attribute:"+i)}return e}_addConsumablesForRange(e,t,i){for(let n of t.getItems())e.add(n,i);return e}_addConsumablesForSelection(e,t,i){for(let n of(e.add(t,"selection"),i))e.add(t,"addMarker:"+n.name);for(let i of t.getAttributeKeys())e.add(t,"attribute:"+i);return e}_testAndFire(e,t,i){let n,o=(n=t.item.is("element")?t.item.name:"$text",`${e}:${n}`),r=t.item.is("$textProxy")?i.consumable._getSymbolForTextProxy(t.item):t.item,s=this._firedEventsMap.get(i),a=s.get(r);if(a){if(a.has(o))return;a.add(o)}else s.set(r,new Set([o]));this.fire(o,t,i)}_testAndFireAddAttributes(e,t){let i={item:e,range:rZ._createOn(e)};for(let e of i.item.getAttributeKeys())i.attributeKey=e,i.attributeOldValue=null,i.attributeNewValue=i.item.getAttribute(e),this._testAndFire(`attribute:${e}`,i,t)}_createConversionApi(e,t=new Set,i={}){let n={...this._conversionApi,consumable:new rX,writer:e,options:i,convertItem:e=>this._convertInsert(rZ._createOn(e),n),convertChildren:e=>this._convertInsert(rZ._createIn(e),n,{doNotAddConsumables:!0}),convertAttributes:e=>this._testAndFireAddAttributes(e,n),canReuseView:e=>!t.has(n.mapper.toModelElement(e))};return this._firedEventsMap.set(n,new Map),n}}function r2(e){return{item:e.item,range:rZ._createFromPositionAndShift(e.previousPosition,e.length)}}class r5 extends v(rL){constructor(...e){super(),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,e.length&&this.setTo(...e)}get anchor(){if(this._ranges.length>0){let e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){let 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(let t of this._ranges){let i=!1;for(let n of e._ranges)if(t.isEqual(n)){i=!0;break}if(!i)return!1}return!0}*getRanges(){for(let e of this._ranges)yield new rZ(e.start,e.end)}getFirstRange(){let e=null;for(let t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new rZ(e.start,e.end):null}getLastRange(){let e=null;for(let t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new rZ(e.start,e.end):null}getFirstPosition(){let e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){let e=this.getLastRange();return e?e.end.clone():null}setTo(...e){let[t,i,n]=e;if("object"==typeof i&&(n=i,i=void 0),null===t)this._setRanges([]);else if(t instanceof r5)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof rZ)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof rq)this._setRanges([new rZ(t)]);else if(t instanceof rO){let e,o=!!n&&!!n.backward;if("in"==i)e=rZ._createIn(t);else if("on"==i)e=rZ._createOn(t);else{if(void 0===i)throw new p("model-selection-setto-required-second-parameter",[this,t]);e=new rZ(rq._createAt(t,i))}this._setRanges([e],o)}else{if(!ik(t))throw new p("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,n&&!!n.backward)}}_setRanges(e,t=!1){let i=Array.from(e),n=i.some(t=>{if(!(t instanceof rZ))throw new p("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every(e=>!e.isEqual(t))});(i.length!==this._ranges.length||n)&&(this._replaceAllRanges(i),this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0}))}setFocus(e,t){if(null===this.anchor)throw new p("model-selection-setfocus-no-ranges",[this,e]);let i=rq._createAt(e,t);if("same"==i.compareWith(this.focus))return;let n=this.anchor;this._ranges.length&&this._popRange(),"before"==i.compareWith(n)?(this._pushRange(new rZ(i,n)),this._lastRangeBackward=!0):(this._pushRange(new rZ(n,i)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){let e=new WeakSet;for(let o of this.getRanges()){let r=r3(o.start,e);for(let s of(r&&r7(r,o)&&(yield r),o.getWalker())){var t,i,n;let r=s.item;"elementEnd"==s.type&&(t=r,i=e,n=o,r4(t,i)&&r7(t,n))&&(yield r)}let s=r3(o.end,e);s&&!o.end.isTouching(rq._createAt(s,0))&&r7(s,o)&&(yield s)}}containsEntireContent(e=this.anchor.root){let t=rq._createAt(e,0),i=rq._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&i.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new rZ(e.start,e.end))}_checkRange(e){for(let t=0;t0;)this._popRange()}_popRange(){this._ranges.pop()}}function r4(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function r3(e,t){let i=e.parent.root.document.model.schema,n=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),o=!1,r=n.find(e=>!o&&!(o=i.isLimit(e))&&r4(e,t));return n.forEach(e=>t.add(e)),r}function r7(e,t){let i=function(e){let t=e.root.document.model.schema,i=e.parent;for(;i;){if(t.isBlock(i))return i;i=i.parent}}(e);return!i||!t.containsRange(rZ._createOn(i),!0)}r5.prototype.is=function(e){return"selection"===e||"model:selection"===e};class r6 extends v(rZ){constructor(e,t){super(e,t),r9.call(this)}detach(){this.stopListening()}toRange(){return new rZ(this.start,this.end)}static fromRange(e){return new r6(e.start,e.end)}}function r9(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{let i=t[0];i.isDocumentOperation&&r8.call(this,i)},{priority:"low"})}function r8(e){let t=this.getTransformedByOperation(e),i=rZ._createFromRanges(t),n=!i.isEqual(this),o=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),r=null;if(n){"$graveyard"==i.root.rootName&&(r="remove"==e.type?e.sourcePosition:e.deletionPosition);let t=this.toRange();this.start=i.start,this.end=i.end,this.fire("change:range",t,{deletionPosition:r})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:r})}r6.prototype.is=function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e};let se="selection:";class st extends v(rL){constructor(e){super(),this._selection=new si(e),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(...e){this._selection.setTo(...e)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return se+e}static _isStoreAttributeKey(e){return e.startsWith(se)}}st.prototype.is=function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e};class si extends r5{constructor(e){super(),this.markers=new iw({idProperty:"name"}),this._model=e.model,this._document=e,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",(e,t)=>{let i=t[0];i.isDocumentOperation&&"marker"!=i.type&&"rename"!=i.type&&"noop"!=i.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(e,t,i,n)=>{this._updateMarker(t,n)}),this.listenTo(this._document,"change",(e,t)=>{var i=this._model;for(let e of i.document.differ.getChanges()){if("insert"!=e.type)continue;let n=e.position.parent;e.length===n.maxOffset&&i.enqueueChange(t,e=>{for(let t of Array.from(n.getAttributeKeys()).filter(e=>e.startsWith(se)))e.removeAttribute(t,n)})}})}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{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=n.deletionPosition;let e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}}),t}updateMarkers(){if(!this._observedMarkers.size)return;let e=[],t=!1;for(let t of this._model.markers){let i=t.name.split(":",1)[0];if(!this._observedMarkers.has(i))continue;let n=t.getRange();for(let i of this.getRanges())n.containsRange(i,!i.isCollapsed)&&e.push(t)}let i=Array.from(this.markers);for(let i of e)this.markers.has(i)||(this.markers.add(i),t=!0);for(let i of Array.from(this.markers))e.includes(i)||(this.markers.remove(i),t=!0);t&&this.fire("change:marker",{oldMarkers:i,directChange:!1})}_updateMarker(e,t){let i=e.name.split(":",1)[0];if(!this._observedMarkers.has(i))return;let n=!1,o=Array.from(this.markers),r=this.markers.has(e);if(t){let i=!1;for(let e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){i=!0;break}i&&!r?(this.markers.add(e),n=!0):!i&&r&&(this.markers.remove(e),n=!0)}else r&&(this.markers.remove(e),n=!0);n&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateAttributes(e){let t=iB(this._getSurroundingAttributes()),i=iB(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(let[e,t]of this._attributePriority)"low"==t&&(this._attrs.delete(e),this._attributePriority.delete(e));this._setAttributesTo(t);let n=[];for(let[e,t]of this.getAttributes())i.has(e)&&i.get(e)===t||n.push(e);for(let[e]of i)this.hasAttribute(e)||n.push(e);n.length>0&&this.fire("change:attribute",{attributeKeys:n,directChange:!1})}_setAttribute(e,t,i=!0){let n=i?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(e))&&super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,n),!0)}_removeAttribute(e,t=!0){let i=t?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,i),!!super.hasAttribute(e)&&(this._attrs.delete(e),!0))}_setAttributesTo(e){let t=new Set;for(let[t,i]of this.getAttributes())e.get(t)!==i&&this._removeAttribute(t,!1);for(let[i,n]of e)this._setAttribute(i,n,!1)&&t.add(i);return t}*getStoredAttributes(){let e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty){for(let t of e.getAttributeKeys())if(t.startsWith(se)){let i=t.substr(se.length);yield[i,e.getAttribute(t)]}}}_getSurroundingAttributes(){let e=this.getFirstPosition(),t=this._model.schema,i=null;if(this.isCollapsed){let n=e.textNode?e.textNode:e.nodeBefore,o=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(i=sn(n)),i||(i=sn(o)),!this.isGravityOverridden&&!i){let e=n;for(;e&&!t.isInline(e)&&!i;)i=sn(e=e.previousSibling)}if(!i){let e=o;for(;e&&!t.isInline(e)&&!i;)i=sn(e=e.nextSibling)}i||(i=this.getStoredAttributes())}else for(let e of this.getFirstRange()){if(e.item.is("element")&&t.isObject(e.item))break;if("text"==e.type){i=e.item.getAttributes();break}}return i}_fixGraveyardSelection(e){let t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function sn(e){return e instanceof rV||e instanceof rF?e.getAttributes():null}class so{constructor(e){this._dispatchers=e}add(e){for(let t of this._dispatchers)e(t);return this}}let sr=function(e){return iu(e,5)};class ss extends so{elementToElement(e){let t,i;return this.add((t=sc(e.model),i=sd(e.view,"container"),t.attributes.length&&(t.children=!0),n=>{n.on(`insert:${t.name}`,function(e,t=function(e,t,{preflight:i}={}){return i?t.test(e,"insert"):t.consume(e,"insert")}){return(i,n,o)=>{if(!t(n.item,o.consumable,{preflight:!0}))return;let r=e(n.item,o,n);if(!r)return;t(n.item,o.consumable);let s=o.mapper.toViewPosition(n.range.start);o.mapper.bindElements(n.item,r),o.writer.insert(s,r),o.convertAttributes(n.item),sf(r,n.item.getChildren(),o,{reconversion:n.reconversion})}}(i,sm(t)),{priority:e.converterPriority||"normal"}),(t.children||t.attributes.length)&&n.on("reduceChanges",sp(t),{priority:"low"})}))}elementToStructure(e){let t,i;return this.add((t=sc(e.model),i=sd(e.view,"container"),t.children=!0,n=>{var o;if(n._conversionApi.schema.checkChild(t.name,"$text"))throw new p("conversion-element-to-structure-disallowed-text",n,{elementName:t.name});n.on(`insert:${t.name}`,(o=sm(t),(e,t,n)=>{var r;if(!o(t.item,n.consumable,{preflight:!0}))return;let s=new Map;n.writer._registerSlotFactory((r=t.item,(e,t="children")=>{let i=e.createContainerElement("$slot"),o=null;if("children"===t)o=Array.from(r.getChildren());else{if("function"!=typeof t)throw new p("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:t});o=Array.from(r.getChildren()).filter(e=>t(e))}return s.set(i,o),i}));let a=i(t.item,n,t);if(n.writer._clearSlotFactory(),!a)return;!function(e,t,i){let n=Array.from(t.values()).flat(),o=new Set(n);if(o.size!=n.length)throw new p("conversion-slot-filter-overlap",i.dispatcher,{element:e});if(o.size!=e.childCount)throw new p("conversion-slot-filter-incomplete",i.dispatcher,{element:e})}(t.item,s,n),o(t.item,n.consumable);let l=n.mapper.toViewPosition(t.range.start);n.mapper.bindElements(t.item,a),n.writer.insert(l,a),n.convertAttributes(t.item),function(e,t,i,n){i.mapper.on("modelToViewPosition",s,{priority:"highest"});let o=null,r=null;for([o,r]of t)sf(e,r,i,n),i.writer.move(i.writer.createRangeIn(o),i.writer.createPositionBefore(o)),i.writer.remove(o);function s(e,t){let i=t.modelPosition.nodeAfter,n=r.indexOf(i);n<0||(t.viewPosition=t.mapper.findPositionIn(o,n))}i.mapper.off("modelToViewPosition",s)}(a,s,n,{reconversion:t.reconversion})}),{priority:e.converterPriority||"normal"}),n.on("reduceChanges",sp(t),{priority:"low"})}))}attributeToElement(e){return this.add(function(e){let t=(e=sr(e)).model;"string"==typeof t&&(t={key:t});let i=`attribute:${t.key}`;if(t.name&&(i+=":"+t.name),t.values)for(let i of t.values)e.view[i]=sd(e.view[i],"attribute");else e.view=sd(e.view,"attribute");let n=sh(e);return t=>{t.on(i,(e,t,i)=>{if(!i.consumable.test(t.item,e.name))return;let o=n(t.attributeOldValue,i,t),r=n(t.attributeNewValue,i,t);if(!o&&!r)return;i.consumable.consume(t.item,e.name);let s=i.writer,a=s.document.selection;if(t.item instanceof r5||t.item instanceof st)s.wrap(a.getFirstRange(),r);else{let e=i.mapper.toViewRange(t.range);null!==t.attributeOldValue&&o&&(e=s.unwrap(e,o)),null!==t.attributeNewValue&&r&&s.wrap(e,r)}},{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t=(e=sr(e)).model;"string"==typeof t&&(t={key:t});let i=`attribute:${t.key}`;if(t.name&&(i+=":"+t.name),t.values)for(let i of t.values)e.view[i]=su(e.view[i]);else e.view=su(e.view);let n=sh(e);return t=>{t.on(i,(e,t,i)=>{if(!i.consumable.test(t.item,e.name))return;let o=n(t.attributeOldValue,i,t),r=n(t.attributeNewValue,i,t);if(!o&&!r)return;i.consumable.consume(t.item,e.name);let s=i.mapper.toViewElement(t.item),a=i.writer;if(!s)throw new p("conversion-attribute-to-attribute-on-text",i.dispatcher,t);if(null!==t.attributeOldValue&&o)if("class"==o.key)for(let e of iA(o.value))a.removeClass(e,s);else if("style"==o.key)for(let e of Object.keys(o.value))a.removeStyle(e,s);else a.removeAttribute(o.key,s);if(null!==t.attributeNewValue&&r)if("class"==r.key)for(let e of iA(r.value))a.addClass(e,s);else if("style"==r.key)for(let e of Object.keys(r.value))a.setStyle(e,r.value[e],s);else a.setAttribute(r.key,r.value,s)},{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){let t;return this.add((t=sd(e.view,"ui"),i=>{i.on(`addMarker:${e.model}`,(e,i,n)=>{i.isOpening=!0;let o=t(i,n);i.isOpening=!1;let r=t(i,n);if(!o||!r)return;let s=i.markerRange;if(s.isCollapsed&&!n.consumable.consume(s,e.name))return;for(let t of s)if(!n.consumable.consume(t.item,e.name))return;let a=n.mapper,l=n.writer;l.insert(a.toViewPosition(s.start),o),n.mapper.bindElementToMarker(o,i.markerName),s.isCollapsed||(l.insert(a.toViewPosition(s.end),r),n.mapper.bindElementToMarker(r,i.markerName)),e.stop()},{priority:e.converterPriority||"normal"}),i.on(`removeMarker:${e.model}`,(e,t,i)=>{let n=i.mapper.markerNameToElements(t.markerName);if(n){for(let e of n)i.mapper.unbindElementFromMarkerName(e,t.markerName),i.writer.clear(i.writer.createRangeOn(e),e);i.writer.clearClonedElementsGroup(t.markerName),e.stop()}},{priority:e.converterPriority||"normal"})}))}markerToHighlight(e){return this.add(t=>{var i,n,o;t.on(`addMarker:${e.model}`,(i=e.view,(e,t,n)=>{if(!t.item||!(t.item instanceof r5||t.item instanceof st||t.item.is("$textProxy")))return;let o=sg(i,t,n);if(!o||!n.consumable.consume(t.item,e.name))return;let r=n.writer,s=sa(r,o),a=r.document.selection;if(t.item instanceof r5||t.item instanceof st)r.wrap(a.getFirstRange(),s);else{let e=n.mapper.toViewRange(t.range);for(let i of r.wrap(e,s).getItems())if(i.is("attributeElement")&&i.isSimilar(s)){n.mapper.bindElementToMarker(i,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on(`addMarker:${e.model}`,(n=e.view,(e,t,i)=>{if(!t.item||!(t.item instanceof rU))return;let o=sg(n,t,i);if(!o||!i.consumable.test(t.item,e.name))return;let r=i.mapper.toViewElement(t.item);if(r&&r.getCustomProperty("addHighlight")){for(let n of(i.consumable.consume(t.item,e.name),rZ._createIn(t.item)))i.consumable.consume(n.item,e.name);r.getCustomProperty("addHighlight")(r,o,i.writer),i.mapper.bindElementToMarker(r,t.markerName)}}),{priority:e.converterPriority||"normal"}),t.on(`removeMarker:${e.model}`,(o=e.view,(e,t,i)=>{if(t.markerRange.isCollapsed)return;let n=sg(o,t,i);if(!n)return;let r=sa(i.writer,n),s=i.mapper.markerNameToElements(t.markerName);if(s){for(let e of s)(i.mapper.unbindElementFromMarkerName(e,t.markerName),e.is("attributeElement"))?i.writer.unwrap(i.writer.createRangeOn(e),r):e.getCustomProperty("removeHighlight")(e,n.id,i.writer);i.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})})}markerToData(e){var t;let i,n;return this.add((i=(t=sr(t=e)).model,(n=t.view)||(n=e=>({group:i,name:e.substr(t.model.length+1)})),e=>{var o,r;e.on(`addMarker:${i}`,(o=n,(e,t,i)=>{let n=o(t.markerName,i);if(!n)return;let r=t.markerRange;i.consumable.consume(r,e.name)&&(sl(r,!1,i,t,n),sl(r,!0,i,t,n),e.stop())}),{priority:t.converterPriority||"normal"}),e.on(`removeMarker:${i}`,(r=n,(e,t,i)=>{let n=r(t.markerName,i);if(!n)return;let o=i.mapper.markerNameToElements(t.markerName);if(o){for(let e of o)i.mapper.unbindElementFromMarkerName(e,t.markerName),e.is("containerElement")?(s(`data-${n.group}-start-before`,e),s(`data-${n.group}-start-after`,e),s(`data-${n.group}-end-before`,e),s(`data-${n.group}-end-after`,e)):i.writer.clear(i.writer.createRangeOn(e),e);i.writer.clearClonedElementsGroup(t.markerName),e.stop()}function s(e,t){if(t.hasAttribute(e)){let o=new Set(t.getAttribute(e).split(","));o.delete(n.name),0==o.size?i.writer.removeAttribute(e,t):i.writer.setAttribute(e,Array.from(o).join(","),t)}}}),{priority:t.converterPriority||"normal"})}))}}function sa(e,t){let i=e.createAttributeElement("span",t.attributes);return t.classes&&i._addClass(t.classes),"number"==typeof t.priority&&(i._priority=t.priority),i._id=t.id,i}function sl(e,t,i,n,o){var r,s;let a,l,c,d=t?e.start:e.end,h=d.nodeAfter&&d.nodeAfter.is("element")?d.nodeAfter:null,u=d.nodeBefore&&d.nodeBefore.is("element")?d.nodeBefore:null;if(h||u){let e,s;t&&h||!t&&!u?(e=h,s=!0):(e=u,s=!1);let a=i.mapper.toViewElement(e);if(a){let e,l;return void(r=s,e=`data-${o.group}-${t?"start":"end"}-${r?"before":"after"}`,(l=a.hasAttribute(e)?a.getAttribute(e).split(","):[]).unshift(o.name),i.writer.setAttribute(e,l.join(","),a),i.mapper.bindElementToMarker(a,n.markerName))}}s=i.mapper.toViewPosition(d),a=`${o.group}-${t?"start":"end"}`,l=o.name?{name:o.name}:null,c=i.writer.createUIElement(a,l),i.writer.insert(s,c),i.mapper.bindElementToMarker(c,n.markerName)}function sc(e){return"string"==typeof e&&(e={name:e}),e.attributes?Array.isArray(e.attributes)||(e.attributes=[e.attributes]):e.attributes=[],e.children=!!e.children,e}function sd(e,t){return"function"==typeof e?e:(i,n)=>(function(e,t,i){let n;"string"==typeof e&&(e={name:e});let o=t.writer,r=Object.assign({},e.attributes);if("container"==i)n=o.createContainerElement(e.name,r);else if("attribute"==i){let t={priority:e.priority||nz.DEFAULT_PRIORITY};n=o.createAttributeElement(e.name,r,t)}else n=o.createUIElement(e.name,r);if(e.styles)for(let t of Object.keys(e.styles))o.setStyle(t,e.styles[t],n);if(e.classes){let t=e.classes;if("string"==typeof t)o.addClass(t,n);else for(let e of t)o.addClass(e,n)}return n})(e,n,t)}function sh(e){return e.model.values?(t,i,n)=>{let o=e.view[t];return o?o(t,i,n):null}:e.view}function su(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function sg(e,t,i){let n="function"==typeof e?e(t,i):e;return n?(n.priority||(n.priority=10),n.id||(n.id=t.markerName),n):null}function sp(e){let t=(t,i)=>{if(!t.is("element",e.name))return!1;if("attribute"==i.type){if(e.attributes.includes(i.attributeKey))return!0}else if(e.children)return!0;return!1};return(e,i)=>{let n=[];for(let e of(i.reconvertedElements||(i.reconvertedElements=new Set),i.changes)){let o="attribute"==e.type?e.range.start.nodeAfter:e.position.parent;if(o&&t(o,e)){if(!i.reconvertedElements.has(o)){i.reconvertedElements.add(o);let e=rq._createBefore(o);n.push({type:"remove",name:o.name,position:e,length:1},{type:"reinsert",name:o.name,position:e,length:1})}}else n.push(e)}i.changes=n}}function sm(e){return(t,i,n={})=>{let o=["insert"];for(let i of e.attributes)t.hasAttribute(i)&&o.push(`attribute:${i}`);return!!o.every(e=>i.test(t,e))&&(n.preflight||o.forEach(e=>i.consume(t,e)),!0)}}function sf(e,t,i,n){for(let o of t)(function(e,t,i,n){let{writer:o,mapper:r}=i;if(!n.reconversion)return!1;let s=r.toViewElement(t);return!(!s||s.root==e)&&!!i.canReuseView(s)&&(o.move(o.createRangeOn(s),r.toViewPosition(rq._createBefore(t))),!0)})(e.root,o,i,n)||i.convertItem(o)}function sb(e){let{schema:t,document:i}=e.model;for(let n of i.getRootNames()){let o=i.getRoot(n);if(o.isEmpty&&!t.checkChild(o,"$text")&&t.checkChild(o,"paragraph"))return e.insertElement("paragraph",o),!0}return!1}function sk(e,t,i){let n=i.createContext(e);return!!i.checkChild(n,"paragraph")&&!!i.checkChild(n.push("paragraph"),t)}function sw(e,t){let i=t.createElement("paragraph");return t.insert(i,e),t.createPositionAt(i,0)}class s_ extends so{elementToElement(e){return this.add(sA(e))}elementToAttribute(e){var t;let i,n,o;return this.add((sy(t=sr(t=e)),i=sx(t,!1),o=(n=sC(t.view))?`element:${n}`:"element",e=>{e.on(o,i,{priority:t.converterPriority||"low"})}))}attributeToAttribute(e){var t,i;let n,o,r,s;return this.add((t=sr(t=e),n=null,("string"==typeof t.view||t.view.key)&&("string"==typeof(i=t).view&&(i.view={key:i.view}),o="class"==(r=i.view.key)||"style"==r?{["class"==r?"classes":"styles"]:i.view.value}:{attributes:{[r]:void 0===i.view.value?/[\s\S]*/:i.view.value}},i.view.name&&(o.name=i.view.name),i.view=o,n=r),sy(t,n),s=sx(t,!0),e=>{e.on("element",s,{priority:t.converterPriority||"low"})}))}elementToMarker(e){var t;let i;return this.add((t=e.model,i=(e,i)=>{let n="string"==typeof t?t:t(e,i);return i.writer.createElement("$marker",{"data-name":n})},sA({...e,model:i})))}dataToMarker(e){var t;let i,n,o;return this.add(((t=sr(t=e)).model||(t.model=e=>e?t.view+":"+e:t.view),n=sv(sE(i={view:t.view,model:t.model},"start")),o=sv(sE(i,"end")),e=>{e.on(`element:${t.view}-start`,n,{priority:t.converterPriority||"normal"}),e.on(`element:${t.view}-end`,o,{priority:t.converterPriority||"normal"});let r=u.get("low"),s=u.get("highest"),a=u.get(t.converterPriority)/s;e.on("element",(e,t,n)=>{let o=`data-${i.view}`;function r(e,o){for(let r of o){let o=i.model(r,n),s=n.writer.createElement("$marker",{"data-name":o});n.writer.insert(s,e),t.modelCursor.isEqual(e)?t.modelCursor=t.modelCursor.getShiftedBy(1):t.modelCursor=t.modelCursor._getTransformedByInsertion(e,1),t.modelRange=t.modelRange._getTransformedByInsertion(e,1)[0]}}(n.consumable.test(t.viewItem,{attributes:o+"-end-after"})||n.consumable.test(t.viewItem,{attributes:o+"-start-after"})||n.consumable.test(t.viewItem,{attributes:o+"-end-before"})||n.consumable.test(t.viewItem,{attributes:o+"-start-before"}))&&(t.modelRange||Object.assign(t,n.convertChildren(t.viewItem,t.modelCursor)),n.consumable.consume(t.viewItem,{attributes:o+"-end-after"})&&r(t.modelRange.end,t.viewItem.getAttribute(o+"-end-after").split(",")),n.consumable.consume(t.viewItem,{attributes:o+"-start-after"})&&r(t.modelRange.end,t.viewItem.getAttribute(o+"-start-after").split(",")),n.consumable.consume(t.viewItem,{attributes:o+"-end-before"})&&r(t.modelRange.start,t.viewItem.getAttribute(o+"-end-before").split(",")),n.consumable.consume(t.viewItem,{attributes:o+"-start-before"})&&r(t.modelRange.start,t.viewItem.getAttribute(o+"-start-before").split(",")))},{priority:r+a})}))}}function sA(e){let t=sv(e=sr(e)),i=sC(e.view),n=i?`element:${i}`:"element";return i=>{i.on(n,t,{priority:e.converterPriority||"normal"})}}function sC(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function sv(e){let t=new iz(e.view);return(i,n,o)=>{var r,s;let a=t.match(n.viewItem);if(!a)return;let l=a.match;if(l.name=!0,!o.consumable.test(n.viewItem,l))return;let c=(r=e.model,s=n.viewItem,r instanceof Function?r(s,o):o.writer.createElement(r));c&&o.safeInsert(c,n.modelCursor)&&(o.consumable.consume(n.viewItem,l),o.convertChildren(n.viewItem,c),o.updateConversionResult(c,n))}}function sy(e,t=null){let i=null===t||(e=>e.getAttribute(t)),n="object"!=typeof e.model?e.model:e.model.key,o="object"!=typeof e.model||void 0===e.model.value?i:e.model.value;e.model={key:n,value:o}}function sx(e,t){let i=new iz(e.view);return(n,o,r)=>{var s,a;let l;if(!o.modelRange&&t)return;let c=i.match(o.viewItem);if(!c||((s=e.view,a=o.viewItem,!("object"!=typeof(l="function"==typeof s?s(a):s)||sC(l))||l.classes||l.attributes||l.styles)?delete c.match.name:c.match.name=!0,!r.consumable.test(o.viewItem,c.match)))return;let d=e.model.key,h="function"==typeof e.model.value?e.model.value(o.viewItem,r):e.model.value;null===h||(o.modelRange||Object.assign(o,r.convertChildren(o.viewItem,o.modelCursor)),function(e,t,i,n){let o=!1;for(let r of Array.from(e.getItems({shallow:i})))n.schema.checkAttribute(r,t.key)&&(o=!0,r.hasAttribute(t.key)||n.writer.setAttribute(t.key,t.value,r));return o}(o.modelRange,{key:d,value:h},t,r)&&(r.consumable.test(o.viewItem,{name:!0})&&(c.match.name=!0),r.consumable.consume(o.viewItem,c.match)))}}function sE(e,t){return{view:`${e.view}-${t}`,model:(t,i)=>{let n=t.getAttribute("name"),o=e.model(n,i);return i.writer.createElement("$marker",{"data-name":o})}}}class sD extends L{constructor(e,t){var i,n;super(),this.model=e,this.view=new rj(t),this.mapper=new rJ,this.downcastDispatcher=new r1({mapper:this.mapper,schema:e.schema});let o=this.model.document,r=o.selection,s=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,s,e),this.downcastDispatcher.convertSelection(r,s,e)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(i=this.model,n=this.mapper,(e,t)=>{let o=t.newSelection,r=[];for(let e of o.getRanges())r.push(n.toModelRange(e));let s=i.createSelection(r,{backward:o.isBackward});s.isEqual(i.document.selection)||i.change(e=>{e.setSelection(s)})})),this.downcastDispatcher.on("insert:$text",(e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;let n=i.writer,o=i.mapper.toViewPosition(t.range.start),r=n.createText(t.item.data);n.insert(o,r)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(e,t,i)=>{i.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||i.convertChildren(t.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(e,t,i)=>{let n=i.mapper.toViewPosition(t.position),o=t.position.getShiftedBy(t.length),r=i.mapper.toViewPosition(o,{isPhantom:!0}),s=i.writer.createRange(n,r),a=i.writer.remove(s.getTrimmed());for(let e of i.writer.createRangeIn(a).getItems())i.mapper.unbindViewElement(e,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,i)=>{let n=i.writer;for(let e of n.document.selection.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&i.writer.mergeAttributes(e.start);n.setSelection(null)},{priority:"high"}),this.downcastDispatcher.on("selection",(e,t,i)=>{let n=t.selection;if(n.isCollapsed||!i.consumable.consume(n,"selection"))return;let o=[];for(let e of n.getRanges())o.push(i.mapper.toViewRange(e));i.writer.setSelection(o,{backward:n.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,i)=>{let n=t.selection;if(!n.isCollapsed||!i.consumable.consume(n,"selection"))return;let o=i.writer,r=n.getFirstPosition(),s=i.mapper.toViewPosition(r),a=o.breakAttributes(s);o.setSelection(a)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(e=>{if("$graveyard"==e.rootName)return null;let t=new nw(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(e){let t="string"==typeof e?e:e.name,i=this.model.markers.get(t);if(!i)throw new p("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:t});this.model.change(()=>{this.model.markers._refresh(i)})}reconvertItem(e){this.model.change(()=>{this.model.document.differ._refreshItem(e)})}}class sT{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){let i=this.get(e);if(!i)throw new p("commandcollection-command-not-found",this,{commandName:e});return i.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(let e of this.commands())e.destroy()}}class sS{constructor(){this._consumables=new Map}add(e,t){let i;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?i=this._consumables.get(e):(i=new sM(e),this._consumables.set(e,i)),i.add(t))}test(e,t){let i=this._consumables.get(e);return void 0===i?null:e.is("$text")||e.is("documentFragment")?i:i.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}revert(e,t){let i=this._consumables.get(e);void 0!==i&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):i.revert(t))}static consumablesFromElement(e){let t={element:e,name:!0,attributes:[],classes:[],styles:[]};for(let i of e.getAttributeKeys())"style"!=i&&"class"!=i&&t.attributes.push(i);for(let i of e.getClassNames())t.classes.push(i);for(let i of e.getStyleNames())t.styles.push(i);return t}static createFrom(e,t){if(t||(t=new sS),e.is("$text"))return t.add(e),t;for(let i of(e.is("element")&&t.add(e,sS.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e),e.getChildren()))t=sS.createFrom(i,t);return t}}let sI=["attributes","classes","styles"];class sM{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){for(let t of(e.name&&(this._canConsumeName=!0),sI))t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(let t of sI)if(t in e){let i=this._test(t,e[t]);if(!0!==i)return i}return!0}consume(e){for(let t of(e.name&&(this._canConsumeName=!1),sI))t in e&&this._consume(t,e[t])}revert(e){for(let t of(e.name&&(this._canConsumeName=!0),sI))t in e&&this._revert(t,e[t])}_add(e,t){let i=e4(t)?t:[t],n=this._consumables[e];for(let t of i){if("attributes"===e&&("class"===t||"style"===t))throw new p("viewconsumable-invalid-attribute",this);if(n.set(t,!0),"styles"===e)for(let e of this.element.document.stylesProcessor.getRelatedStyles(t))n.set(e,!0)}}_test(e,t){let i=e4(t)?t:[t],n=this._consumables[e];for(let t of i)if("attributes"!==e||"class"!==t&&"style"!==t){let e=n.get(t);if(void 0===e)return null;if(!e)return!1}else{let e="class"==t?"classes":"styles",i=this._test(e,[...this._consumables[e].keys()]);if(!0!==i)return i}return!0}_consume(e,t){let i=e4(t)?t:[t],n=this._consumables[e];for(let t of i)if("attributes"!==e||"class"!==t&&"style"!==t){if(n.set(t,!1),"styles"==e)for(let e of this.element.document.stylesProcessor.getRelatedStyles(t))n.set(e,!1)}else{let e="class"==t?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){let i=e4(t)?t:[t],n=this._consumables[e];for(let t of i)if("attributes"!==e||"class"!==t&&"style"!==t)!1===n.get(t)&&n.set(t,!0);else{let e="class"==t?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class sN extends L{constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(e,t)=>{t[0]=new sP(t[0])},{priority:"highest"}),this.on("checkChild",(e,t)=>{t[0]=new sP(t[0]),t[1]=this.getDefinition(t[1])},{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new p("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 p("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){let t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){let t=this.getDefinition(e);return!!t&&!(!t.isLimit&&!t.isObject)}isObject(e){let t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}isInline(e){let t=this.getDefinition(e);return!(!t||!t.isInline)}isSelectable(e){let t=this.getDefinition(e);return!!t&&!(!t.isSelectable&&!t.isObject)}isContent(e){let t=this.getDefinition(e);return!!t&&!(!t.isContent&&!t.isObject)}checkChild(e,t){return!!t&&this._checkContextMatch(t,e)}checkAttribute(e,t){let i=this.getDefinition(e.last);return!!i&&i.allowAttributes.includes(t)}checkMerge(e,t){if(e instanceof rq){let t=e.nodeBefore,i=e.nodeAfter;if(!(t instanceof rU))throw new p("schema-check-merge-no-element-before",this);if(!(i instanceof rU))throw new p("schema-check-merge-no-element-after",this);return this.checkMerge(t,i)}for(let i of t.getChildren())if(!this.checkChild(e,i))return!1;return!0}addChildCheck(e){this.on("checkChild",(t,[i,n])=>{if(!n)return;let o=e(i,n);"boolean"==typeof o&&(t.stop(),t.return=o)},{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",(t,[i,n])=>{let o=e(i,n);"boolean"==typeof o&&(t.stop(),t.return=o)},{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;for(t=e instanceof rq?e.parent:(e instanceof rZ?[e]:Array.from(e.getRanges())).reduce((e,t)=>{let i=t.getCommonAncestor();return e?e.getCommonAncestor(i,{includeSelf:!0}):i},null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){let i=[...e.getFirstPosition().getAncestors(),new rF("",e.getAttributes())];return this.checkAttribute(i,t)}for(let i of e.getRanges())for(let e of i)if(this.checkAttribute(e.item,t))return!0;return!1}*getValidRanges(e,t){for(let i of e=function*(e){for(let t of e)yield*t.getMinimalFlatRanges()}(e))yield*this._getValidRangesForRange(i,t)}getNearestSelectionRange(e,t="both"){let i,n;if(this.checkChild(e,"$text"))return new rZ(e);let o=e.getAncestors().reverse().find(e=>this.isLimit(e))||e.root;for(let r of("both"!=t&&"backward"!=t||(i=new rH({boundaries:rZ._createIn(o),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(n=new rH({boundaries:rZ._createIn(o),startPosition:e})),function*(e,t){let i=!1;for(;!i;){if(i=!0,e){let t=e.next();t.done||(i=!1,yield{walker:e,value:t.value})}if(t){let e=t.next();e.done||(i=!1,yield{walker:t,value:e.value})}}}(i,n))){let e=r.walker==i?"elementEnd":"elementStart",t=r.value;if(t.type==e&&this.isObject(t.item))return rZ._createOn(t.item);if(this.checkChild(t.nextPosition,"$text"))return new rZ(t.nextPosition)}return null}findAllowedParent(e,t){let i=e.parent;for(;i;){if(this.checkChild(i,t))return i;if(this.isLimit(i))break;i=i.parent}return null}setAllowedAttributes(e,t,i){let n=i.model;for(let[o,r]of Object.entries(t))n.schema.checkAttribute(e,o)&&i.setAttribute(o,r,e)}removeDisallowedAttributes(e,t){for(let i of e)if(i.is("$text"))sj(this,i,t);else for(let e of rZ._createIn(i).getPositions())sj(this,e.nodeBefore||e.parent,t)}getAttributesWithProperty(e,t,i){let n={};for(let[o,r]of e.getAttributes()){let e=this.getAttributeProperties(o);void 0!==e[t]&&(void 0!==i&&i!==e[t]||(n[o]=r))}return n}createContext(e){return new sP(e)}_clearCache(){this._compiledDefinitions=null}_compile(){let e={},t=this._sourceDefinitions,i=Object.keys(t);for(let n of i)e[n]=function(e,t){let i={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){for(let i of e)for(let e of Object.keys(i).filter(e=>e.startsWith("is")))t[e]=!!i[e]}(e,i),sB(e,i,"allowIn"),sB(e,i,"allowContentOf"),sB(e,i,"allowWhere"),sB(e,i,"allowAttributes"),sB(e,i,"allowAttributesOf"),sB(e,i,"allowChildren"),sB(e,i,"inheritTypesFrom"),function(e,t){for(let i of e){let e=i.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}(e,i),i}(t[n],n);for(let t of i)!function(e,t){let i=e[t];for(let n of i.allowChildren){let i=e[n];i&&i.allowIn.push(t)}i.allowChildren.length=0}(e,t);for(let t of i)!function(e,t){for(let i of e[t].allowContentOf)e[i]&&(function(e,t){let i=e[t];return Object.keys(e).map(t=>e[t]).filter(e=>e.allowIn.includes(i.name))})(e,i).forEach(e=>{e.allowIn.push(t)});delete e[t].allowContentOf}(e,t);for(let t of i){var n=e,o=t;for(let e of n[o].allowWhere){let t=n[e];if(t){let e=t.allowIn;n[o].allowIn.push(...e)}}delete n[o].allowWhere}for(let t of i)(function(e,t){for(let i of e[t].allowAttributesOf){let n=e[i];if(n){let i=n.allowAttributes;e[t].allowAttributes.push(...i)}}delete e[t].allowAttributesOf})(e,t),function(e,t){let i=e[t];for(let t of i.inheritTypesFrom){let n=e[t];if(n)for(let e of Object.keys(n).filter(e=>e.startsWith("is")))e in i||(i[e]=n[e])}delete i.inheritTypesFrom}(e,t);for(let t of i)(function(e,t){let i=e[t],n=i.allowIn.filter(t=>e[t]);i.allowIn=Array.from(new Set(n))})(e,t),function(e,t){for(let i of e[t].allowIn)e[i].allowChildren.push(t)}(e,t),function(e,t){let i=e[t];i.allowAttributes=Array.from(new Set(i.allowAttributes))}(e,t);this._compiledDefinitions=e}_checkContextMatch(e,t,i=t.length-1){let n=t.getItem(i);if(e.allowIn.includes(n.name)){if(0==i)return!0;{let e=this.getDefinition(n);return this._checkContextMatch(e,t,i-1)}}return!1}*_getValidRangesForRange(e,t){let i=e.start,n=e.start;for(let o of e.getItems({shallow:!0}))o.is("element")&&(yield*this._getValidRangesForRange(rZ._createIn(o),t)),this.checkAttribute(o,t)||(i.isEqual(n)||(yield new rZ(i,n)),i=rq._createAfter(o)),n=rq._createAfter(o);i.isEqual(n)||(yield new rZ(i,n))}}class sP{constructor(e){let t;if(e instanceof sP)return e;t="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=t.map(sz)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){let t=new sP([e]);return t._items=[...this._items,...t._items],t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map(e=>e.name)}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function sB(e,t,i){for(let n of e){let e=n[i];"string"==typeof e?t[i].push(e):Array.isArray(e)&&t[i].push(...e)}}function sz(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 sj(e,t,i){for(let n of t.getAttributeKeys())e.checkAttribute(t,n)||i.removeAttribute(n,t)}class sL extends y{constructor(e){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...e,consumable:null,writer:null,store:null,convertItem:(e,t)=>this._convertItem(e,t),convertChildren:(e,t)=>this._convertChildren(e,t),safeInsert:(e,t)=>this._safeInsert(e,t),updateConversionResult:(e,t)=>this._updateConversionResult(e,t),splitToAllowedParent:(e,t)=>this._splitToAllowedParent(e,t),getSplitParts:e=>this._getSplitParts(e),keepEmptyElement:e=>this._keepEmptyElement(e)}}convert(e,t,i=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let i;for(let n of new sP(e)){let e={};for(let t of n.getAttributeKeys())e[t]=n.getAttribute(t);let o=t.createElement(n.name,e);i&&t.insert(o,i),i=rq._createAt(o,0)}return i}(i,t),this.conversionApi.writer=t,this.conversionApi.consumable=sS.createFrom(e),this.conversionApi.store={};let{modelRange:n}=this._convertItem(e,this._modelCursor),o=t.createDocumentFragment();if(n){for(let e of(this._removeEmptyElements(),Array.from(this._modelCursor.parent.getChildren())))t.append(e,o);o.markers=function(e,t){let i=new Set,n=new Map;for(let t of rZ._createIn(e).getItems())t.is("element","$marker")&&i.add(t);for(let e of i){let i=e.getAttribute("data-name"),o=t.createPositionBefore(e);n.has(i)?n.get(i).end=o.clone():n.set(i,new rZ(o.clone())),t.remove(e)}return n}(o,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}_convertItem(e,t){let i={viewItem:e,modelCursor:t,modelRange:null};if(e.is("element")?this.fire(`element:${e.name}`,i,this.conversionApi):e.is("$text")?this.fire("text",i,this.conversionApi):this.fire("documentFragment",i,this.conversionApi),i.modelRange&&!(i.modelRange instanceof rZ))throw new p("view-conversion-dispatcher-incorrect-result",this);return{modelRange:i.modelRange,modelCursor:i.modelCursor}}_convertChildren(e,t){let i=t.is("position")?t:rq._createAt(t,0),n=new rZ(i);for(let t of Array.from(e.getChildren())){let e=this._convertItem(t,i);e.modelRange instanceof rZ&&(n.end=e.modelRange.end,i=e.modelCursor)}return{modelRange:n,modelCursor:i}}_safeInsert(e,t){let i=this._splitToAllowedParent(e,t);return!!i&&(this.conversionApi.writer.insert(e,i.position),!0)}_updateConversionResult(e,t){let i=this._getSplitParts(e),n=this.conversionApi.writer;t.modelRange||(t.modelRange=n.createRange(n.createPositionBefore(e),n.createPositionAfter(i[i.length-1])));let o=this._cursorParents.get(e);t.modelCursor=o?n.createPositionAt(o,0):t.modelRange.end}_splitToAllowedParent(e,t){let{schema:i,writer:n}=this.conversionApi,o=i.findAllowedParent(t,e);if(o){if(o===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return sk(t,e,i)?{position:sw(t,n)}:null;let r=this.conversionApi.writer.split(t,o),s=[];for(let e of r.range.getWalker())if("elementEnd"==e.type)s.push(e.item);else{let t=s.pop(),i=e.item;this._registerSplitPair(t,i)}let a=r.range.end.parent;return this._cursorParents.set(e,a),{position:r.position,cursorParent:a}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);let i=this._splitParts.get(e);this._splitParts.set(t,i),i.push(t)}_getSplitParts(e){return this._splitParts.has(e)?this._splitParts.get(e):[e]}_keepEmptyElement(e){this._emptyElementsToKeep.add(e)}_removeEmptyElements(){let e=!1;for(let t of this._splitParts.keys())t.isEmpty&&!this._emptyElementsToKeep.has(t)&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}class sO{getHtml(e){let t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class sR{constructor(e){this.domParser=new DOMParser,this.domConverter=new oM(e,{renderingMode:"data"}),this.htmlWriter=new sO}toData(e){let t=this.domConverter.viewToDom(e);return this.htmlWriter.getHtml(t)}toView(e){let t=this._toDom(e);return this.domConverter.domToView(t)}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}_toDom(e){e.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(e=`${e}`);let t=this.domParser.parseFromString(e,"text/html"),i=t.createDocumentFragment(),n=t.body.childNodes;for(;n.length>0;)i.appendChild(n[0]);return i}}class sF extends y{constructor(e,t){super(),this.model=e,this.mapper=new rJ,this.downcastDispatcher=new r1({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",(e,t,i)=>{if(!i.consumable.consume(t.item,e.name))return;let n=i.writer,o=i.mapper.toViewPosition(t.range.start),r=n.createText(t.item.data);n.insert(o,r)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(e,t,i)=>{i.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||i.convertChildren(t.item)},{priority:"lowest"}),this.upcastDispatcher=new sL({schema:e.schema}),this.viewDocument=new nB(t),this.stylesProcessor=t,this.htmlProcessor=new sR(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new n2(this.viewDocument),this.upcastDispatcher.on("text",(e,t,{schema:i,consumable:n,writer:o})=>{let r=t.modelCursor;if(!n.test(t.viewItem))return;if(!i.checkChild(r,"$text")){if(!sk(r,"$text",i)||0==t.viewItem.data.trim().length)return;r=sw(r,o)}n.consume(t.viewItem);let s=o.createText(t.viewItem.data);o.insert(s,r),t.modelRange=o.createRange(r,r.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(e,t,i)=>{if(!t.modelRange&&i.consumable.consume(t.viewItem,{name:!0})){let{modelRange:e,modelCursor:n}=i.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=n}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(e,t,i)=>{if(!t.modelRange&&i.consumable.consume(t.viewItem,{name:!0})){let{modelRange:e,modelCursor:n}=i.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=n}},{priority:"lowest"}),L.prototype.decorate.call(this,"init"),L.prototype.decorate.call(this,"set"),L.prototype.decorate.call(this,"get"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},sb)},{priority:"lowest"})}get(e={}){let{rootName:t="main",trim:i="empty"}=e;if(!this._checkIfRootsExists([t]))throw new p("datacontroller-get-non-existent-root",this);let n=this.model.document.getRoot(t);return"empty"!==i||this.model.hasContent(n,{ignoreWhitespaces:!0})?this.stringify(n,e):""}stringify(e,t={}){let i=this.toView(e,t);return this.processor.toData(i)}toView(e,t={}){let i=this.viewDocument,n=this._viewWriter;this.mapper.clearBindings();let o=rZ._createIn(e),r=new n1(i);this.mapper.bindElements(e,r);let s=e.is("documentFragment")?e.markers:function(e){let t=[],i=e.root.document;if(!i)return new Map;let n=rZ._createIn(e);for(let e of i.model.markers){let i=e.getRange(),o=i.isCollapsed,r=i.start.isEqual(n.start)||i.end.isEqual(n.end);if(o&&r)t.push([e.name,i]);else{let o=n.getIntersection(i);o&&t.push([e.name,o])}}return t.sort(([e,t],[i,n])=>{if("after"!==t.end.compareWith(n.start))return 1;if("before"!==t.start.compareWith(n.end))return -1;switch(t.start.compareWith(n.start)){case"before":return 1;case"after":return -1;default:switch(t.end.compareWith(n.end)){case"before":return 1;case"after":return -1;default:return i.localeCompare(e)}}}),new Map(t)}(e);return this.downcastDispatcher.convert(o,s,n,t),r}init(e){if(this.model.document.version)throw new p("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new p("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},e=>{for(let i of Object.keys(t)){let n=this.model.document.getRoot(i);e.insert(this.parse(t[i],n),n,0)}}),Promise.resolve()}set(e,t={}){let i={};if("string"==typeof e?i.main=e:i=e,!this._checkIfRootsExists(Object.keys(i)))throw new p("datacontroller-set-non-existent-root",this);this.model.enqueueChange(t.batchType||{},e=>{for(let t of(e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys()),Object.keys(i))){let n=this.model.document.getRoot(t);e.remove(e.createRangeIn(n)),e.insert(this.parse(i[t],n),n,0)}})}parse(e,t="$root"){let i=this.processor.toView(e);return this.toModel(i,t)}toModel(e,t="$root"){return this.model.change(i=>this.upcastDispatcher.convert(e,i,t))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(let t of e)if(!this.model.document.getRootNames().includes(t))return!1;return!0}}class sV{constructor(e,t){this._helpers=new Map,this._downcast=iA(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=iA(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){let i=this._downcast.includes(t);if(!this._upcast.includes(t)&&!i)throw new p("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:i})}for(e){if(!this._helpers.has(e))throw new p("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){for(let{model:t,view:i}of(this.for("downcast").elementToElement(e),sU(e)))this.for("upcast").elementToElement({model:t,view:i,converterPriority:e.converterPriority})}attributeToElement(e){for(let{model:t,view:i}of(this.for("downcast").attributeToElement(e),sU(e)))this.for("upcast").elementToAttribute({view:i,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){for(let{model:t,view:i}of(this.for("downcast").attributeToAttribute(e),sU(e)))this.for("upcast").attributeToAttribute({view:i,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:i}){if(this._helpers.has(e))throw new p("conversion-group-exists",this);let n=i?new ss(t):new s_(t);this._helpers.set(e,n)}}function*sU(e){if(e.model.values)for(let t of e.model.values){let i={key:e.model.key,value:t},n=e.view[t],o=e.upcastAlso?e.upcastAlso[t]:void 0;yield*sH(i,n,o)}else yield*sH(e.model,e.view,e.upcastAlso)}function*sH(e,t,i){if(yield{model:e,view:t},i)for(let t of iA(i))yield{model:e,view:t}}class sW{constructor(e={}){"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},m("batch-constructor-deprecated-string-type"));let{isUndoable:t=!0,isLocal:i=!0,isUndo:n=!1,isTyping:o=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=i,this.isUndo=n,this.isTyping=o}get type(){return m("batch-type-deprecated"),"default"}get baseVersion(){for(let e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}class sq{constructor(e){this._markerCollection=e,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}bufferOperation(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(let t of e.range.getItems({shallow:!0}))this._isInInsertedElement(t.parent)||this._markAttribute(t);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;let t=this._isInInsertedElement(e.sourcePosition.parent),i=this._isInInsertedElement(e.targetPosition.parent);t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),i||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);let t=rZ._createFromPositionAndShift(e.position,1);for(let e of this._markerCollection.getMarkersIntersectingRange(t)){let t=e.getData();this.bufferMarkerChange(e.name,t,t)}break}case"split":{let t=e.splitPosition.parent;this._isInInsertedElement(t)||this._markRemove(t,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{let t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1);let i=e.graveyardPosition.parent;this._markInsert(i,e.graveyardPosition.offset,1);let n=e.targetPosition.parent;this._isInInsertedElement(n)||this._markInsert(n,e.targetPosition.offset,t.maxOffset)}}this._cachedChanges=null}bufferMarkerChange(e,t,i){let n=this._changedMarkers.get(e);n?(n.newMarkerData=i,null==n.oldMarkerData.range&&null==i.range&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{newMarkerData:i,oldMarkerData:t})}getMarkersToRemove(){let e=[];for(let[t,i]of this._changedMarkers)null!=i.oldMarkerData.range&&e.push({name:t,range:i.oldMarkerData.range});return e}getMarkersToAdd(){let e=[];for(let[t,i]of this._changedMarkers)null!=i.newMarkerData.range&&e.push({name:t,range:i.newMarkerData.range});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map(([e,t])=>({name:e,data:{oldRange:t.oldMarkerData.range,newRange:t.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0)return!0;for(let{newMarkerData:e,oldMarkerData:t}of this._changedMarkers.values()){if(e.affectsData!==t.affectsData)return!0;if(e.affectsData){let i=e.range&&!t.range,n=!e.range&&t.range,o=e.range&&t.range&&!e.range.isEqual(t.range);if(i||n||o)return!0}}return!1}getChanges(e={}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(let e of this._changesInElement.keys()){let i=this._changesInElement.get(e).sort((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offsetn){for(let t=0;te.position.root!=t.position.root?e.position.root.rootNamee))delete e.changeCount,"attribute"==e.type&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t,this._cachedChanges=t.filter(sG),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,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);let t=rZ._createOn(e);for(let e of this._markerCollection.getMarkersIntersectingRange(t)){let t=e.getData();this.bufferMarkerChange(e.name,t,t)}this._cachedChanges=null}_markInsert(e,t,i){let n={type:"insert",offset:t,howMany:i,count:this._changeCount++};this._markChange(e,n)}_markRemove(e,t,i){let n={type:"remove",offset:t,howMany:i,count:this._changeCount++};this._markChange(e,n),this._removeAllNestedChanges(e,t,i)}_markAttribute(e){let t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshot(e);let i=this._getChangesForElement(e);this._handleChange(t,i),i.push(t);for(let e=0;ei.offset){if(n>o){let e={type:"attribute",offset:o,howMany:n-o,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=i.offset&&e.offseto?(e.nodesToHandle=n-o,e.offset=o):e.nodesToHandle=0);if("remove"==i.type&&e.offseti.offset){let o={type:"attribute",offset:i.offset,howMany:n-i.offset,count:this._changeCount++};this._handleChange(o,t),t.push(o),e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==i.type&&(e.offset>=i.offset&&n<=o?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=i.offset&&n>=o&&(i.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,i){return{type:"insert",position:rq._createAt(e,t),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(e,t,i){return{type:"remove",position:rq._createAt(e,t),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,i){let n=[];for(let[o,r]of(i=new Map(i),t)){let t=i.has(o)?i.get(o):null;t!==r&&n.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:o,attributeOldValue:r,attributeNewValue:t,changeCount:this._changeCount++}),i.delete(o)}for(let[t,o]of i)n.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:o,changeCount:this._changeCount++});return n}_isInInsertedElement(e){let t=e.parent;if(!t)return!1;let i=this._changesInElement.get(t),n=e.startOffset;if(i){for(let e of i)if("insert"==e.type&&n>=e.offset&&nthis._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 p("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[];let i=this._operations[0];void 0===e&&(e=i.baseVersion);let n=t-1;for(let[t,i]of this._gaps)e>t&&et&&nthis.lastOperation.baseVersion)return[];let o=this._baseVersionToOperationIndex.get(e);void 0===o&&(o=0);let r=this._baseVersionToOperationIndex.get(n);return void 0===r&&(r=this._operations.length-1),this._operations.slice(o,r+1)}getOperation(e){let 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 sY extends rU{constructor(e,t,i="main"){super(t),this._document=e,this.rootName=i}get document(){return this._document}toJSON(){return this.rootName}}function sQ(e,t){var i,n;return!!(i=e.charAt(t-1))&&1==i.length&&/[\ud800-\udbff]/.test(i)&&!!(n=e.charAt(t))&&1==n.length&&/[\udc00-\udfff]/.test(n)}function sZ(e,t){var i;return!!(i=e.charAt(t))&&1==i.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(i)}sY.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};let sJ=(o=/\p{Regional_Indicator}{2}/u.source,a="(?:"+[/\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("|")+")",RegExp(`${o}|${a}(?:‍${a})*`,"ug")),sX="$graveyard";class s0 extends y{constructor(e){super(),this.model=e,this.history=new sK,this.selection=new st(this),this.roots=new iw({idProperty:"rootName"}),this.differ=new sq(e.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",sX),this.listenTo(e,"applyOperation",(e,t)=>{let i=t[0];i.isDocumentOperation&&this.differ.bufferOperation(i)},{priority:"high"}),this.listenTo(e,"applyOperation",(e,t)=>{let i=t[0];i.isDocumentOperation&&this.history.addOperation(i)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(e.markers,"update",(e,t,i,n,o)=>{let r={...t.getData(),range:n};this.differ.bufferMarkerChange(t.name,o,r),null===i&&t.on("change",(e,i)=>{let n=t.getData();this.differ.bufferMarkerChange(t.name,{...n,range:i},n)})})}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(sX)}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new p("model-document-createroot-name-exists",this,{name:t});let i=new sY(this,e,t);return this.roots.add(i),i}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(){return Array.from(this.roots,e=>e.rootName).filter(e=>e!=sX)}registerPostFixer(e){this._postFixers.add(e)}toJSON(){let e=iI(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(){for(let e of this.roots)if(e!==this.graveyard)return e;return this.graveyard}_getDefaultRange(){let e=this._getDefaultRoot(),t=this.model,i=t.schema,n=t.createPositionFromPath(e,[0]);return i.getNearestSelectionRange(n)||t.createRange(n)}_validateSelectionRange(e){return s1(e.start)&&s1(e.end)}_callPostFixers(e){let t=!1;do for(let i of this._postFixers)if(this.selection.refresh(),t=i(e))break;while(t)}}function s1(e){let t=e.textNode;if(t){let i=t.data,n=e.offset-t.startOffset;return!sQ(i,n)&&!sZ(i,n)}return!0}class s2 extends y{constructor(){super(),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){let t=e instanceof s5?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,i=!1,n=!1){let o=e instanceof s5?e.name:e;if(o.includes(","))throw new p("markercollection-incorrect-marker-name",this);let r=this._markers.get(o);if(r){let e=r.getData(),s=r.getRange(),a=!1;return s.isEqual(t)||(r._attachLiveRange(r6.fromRange(t)),a=!0),i!=r.managedUsingOperations&&(r._managedUsingOperations=i,a=!0),"boolean"==typeof n&&n!=r.affectsData&&(r._affectsData=n,a=!0),a&&this.fire(`update:${o}`,r,s,t,e),r}let s=new s5(o,r6.fromRange(t),i,n);return this._markers.set(o,s),this.fire(`update:${o}`,s,null,t,{...s.getData(),range:null}),s}_remove(e){let t=e instanceof s5?e.name:e,i=this._markers.get(t);return!!i&&(this._markers.delete(t),this.fire(`update:${t}`,i,i.getRange(),null,i.getData()),this._destroyMarker(i),!0)}_refresh(e){let t=e instanceof s5?e.name:e,i=this._markers.get(t);if(!i)throw new p("markercollection-refresh-marker-not-exists",this);let n=i.getRange();this.fire(`update:${t}`,i,n,n,i.getData())}*getMarkersAtPosition(e){for(let t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(let t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(let e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(let t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}class s5 extends v(rL){constructor(e,t,i,n){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=i,this._affectsData=n}get managedUsingOperations(){if(!this._liveRange)throw new p("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new p("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new p("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new p("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new p("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}s5.prototype.is=function(e){return"marker"===e||"model:marker"===e};class s4{constructor(e){this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){let 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 s3(e,t){let i=s9(t),n=i.reduce((e,t)=>e+t.offsetSize,0),o=e.parent;ae(e);let r=e.index;return o._insertChild(r,i),s8(o,r+i.length),s8(o,r),new rZ(e,e.getShiftedBy(n))}function s7(e){if(!e.isFlat)throw new p("operation-utils-remove-range-not-flat",this);let t=e.start.parent;ae(e.start),ae(e.end);let i=t._removeChildren(e.start.index,e.end.index-e.start.index);return s8(t,e.start.index),i}function s6(e,t){if(!e.isFlat)throw new p("operation-utils-move-range-not-flat",this);let i=s7(e);return s3(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),i)}function s9(e){let t=[];!function e(i){if("string"==typeof i)t.push(new rF(i));else if(i instanceof rV)t.push(new rF(i.data,i.getAttributes()));else if(i instanceof rO)t.push(i);else if(ik(i))for(let t of i)e(t)}(e);for(let e=1;ee.maxOffset)throw new p("move-operation-nodes-do-not-exist",this);if(e===t&&i=i&&this.targetPosition.path[e]e._clone(!0))),t=new ar(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){let e=new rq(this.position.root.document.graveyard,[0]);return new ao(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){let e=this.position.parent;if(!e||e.maxOffsete._clone(!0))),s3(this.position,e)}toJSON(){let e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){let i=[];for(let t of e.nodes)t.name?i.push(rU.fromJSON(t)):i.push(rF.fromJSON(t));let n=new ar(rq.fromJSON(e.position,t),i,e.baseVersion);return n.shouldReceiveAttributes=e.shouldReceiveAttributes,n}}class as extends s4{constructor(e,t,i,n,o,r){super(r),this.name=e,this.oldRange=t?t.clone():null,this.newRange=i?i.clone():null,this.affectsData=o,this._markers=n}get type(){return"marker"}clone(){return new as(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new as(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(){let 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 as(e.name,e.oldRange?rZ.fromJSON(e.oldRange,t):null,e.newRange?rZ.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}class aa extends s4{get type(){return"noop"}clone(){return new aa(this.baseVersion)}getReversed(){return new aa(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class al extends s4{constructor(e,t,i,n){super(n),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=i}get type(){return"rename"}clone(){return new al(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new al(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){let e=this.position.nodeAfter;if(!(e instanceof rU))throw new p("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new p("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){let e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new al(rq.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class ac extends s4{constructor(e,t,i,n,o){super(o),this.root=e,this.key=t,this.oldValue=i,this.newValue=n}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new ac(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new ac(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new p("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 p("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 p("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(){let 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 p("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new ac(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class ad extends s4{constructor(e,t,i,n,o){super(o),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=i.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=n.clone()}get type(){return"merge"}get deletionPosition(){return new rq(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){let e=this.sourcePosition.getShiftedBy(1/0);return new rZ(this.sourcePosition,e)}clone(){return new ad(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){let e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),i=new rq(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new ah(e,this.howMany,i,this.graveyardPosition,this.baseVersion+1)}_validate(){let e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new p("merge-operation-source-position-invalid",this);if(!t.parent)throw new p("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new p("merge-operation-how-many-invalid",this)}_execute(){let e=this.sourcePosition.parent;s6(rZ._createIn(e),this.targetPosition),s6(rZ._createOn(e),this.graveyardPosition)}toJSON(){let 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){let i=rq.fromJSON(e.sourcePosition,t),n=rq.fromJSON(e.targetPosition,t),o=rq.fromJSON(e.graveyardPosition,t);return new this(i,e.howMany,n,o,e.baseVersion)}}class ah extends s4{constructor(e,t,i,n,o){super(o),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=i,this.graveyardPosition=n?n.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){let e=this.insertionPosition.path.slice();return e.push(0),new rq(this.insertionPosition.root,e)}get movedRange(){let e=this.splitPosition.getShiftedBy(1/0);return new rZ(this.splitPosition,e)}clone(){return new ah(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){let e=new rq(this.splitPosition.root.document.graveyard,[0]);return new ad(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){let e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset"string"==typeof e?new rF(e):e instanceof rV?new rF(e.data,e.getAttributes()):e));for(let e of n)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){let i=this._children._removeNodes(e,t);for(let e of i)e.parent=null;return i}}am.prototype.is=function(e){return"documentFragment"===e||"model:documentFragment"===e};class af{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new rF(e,t)}createElement(e,t){return new rU(e,t)}createDocumentFragment(){return new am}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,i=0){if(this._assertWriterUsedCorrectly(),e instanceof rF&&""==e.data)return;let n=rq._createAt(t,i);if(e.parent){if(a_(e.root,n.root))return void this.move(rZ._createOn(e),n);if(e.root.document)throw new p("model-writer-insert-forbidden-move",this);this.remove(e)}let o=n.root.document?n.root.document.version:null,r=new ar(n,e,o);if(e instanceof rF&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof am)for(let[t,i]of e.markers){let e=rq._createAt(i.root,0),o={range:new rZ(i.start._getCombined(e,n),i.end._getCombined(e,n)),usingOperation:!0,affectsData:!0};this.model.markers.has(t)?this.updateMarker(t,o):this.addMarker(t,o)}}insertText(e,t,i,n){t instanceof am||t instanceof rU||t instanceof rq?this.insert(this.createText(e),t,i):this.insert(this.createText(e,t),i,n)}insertElement(e,t,i,n){t instanceof am||t instanceof rU||t instanceof rq?this.insert(this.createElement(e),t,i):this.insert(this.createElement(e,t),i,n)}append(e,t){this.insert(e,t,"end")}appendText(e,t,i){t instanceof am||t instanceof rU?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),i,"end")}appendElement(e,t,i){t instanceof am||t instanceof rU?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),i,"end")}setAttribute(e,t,i){if(this._assertWriterUsedCorrectly(),i instanceof rZ)for(let n of i.getMinimalFlatRanges())ab(this,e,t,n);else ak(this,e,t,i)}setAttributes(e,t){for(let[i,n]of iB(e))this.setAttribute(i,n,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof rZ)for(let i of t.getMinimalFlatRanges())ab(this,e,null,i);else ak(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();let t=e=>{for(let t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof rZ)for(let i of e.getItems())t(i);else t(e)}move(e,t,i){if(this._assertWriterUsedCorrectly(),!(e instanceof rZ))throw new p("writer-move-invalid-range",this);if(!e.isFlat)throw new p("writer-move-range-not-flat",this);let n=rq._createAt(t,i);if(n.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!a_(e.root,n.root))throw new p("writer-move-different-document",this);let o=e.root.document?e.root.document.version:null,r=new ao(e.start,e.end.offset-e.start.offset,n,o);this.batch.addOperation(r),this.model.applyOperation(r)}remove(e){for(let t of(this._assertWriterUsedCorrectly(),(e instanceof rZ?e:rZ._createOn(e)).getMinimalFlatRanges().reverse()))this._addOperationForAffectedMarkers("move",t),function(e,t,i,n){let o;if(e.root.document){let i=n.document;o=new ao(e,t,new rq(i.graveyard,[0]),i.version)}else o=new ap(e,t);i.addOperation(o),n.applyOperation(o)}(t.start,t.end.offset-t.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();let t=e.nodeBefore,i=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof rU))throw new p("writer-merge-no-element-before",this);if(!(i instanceof rU))throw new p("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,i){return this.model.createPositionFromPath(e,t,i)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(...e){return this.model.createSelection(...e)}_mergeDetached(e){let t=e.nodeBefore,i=e.nodeAfter;this.move(rZ._createIn(i),rq._createAt(t,"end")),this.remove(i)}_merge(e){let t=rq._createAt(e.nodeBefore,"end"),i=rq._createAt(e.nodeAfter,0),n=new rq(e.root.document.graveyard,[0]),o=e.root.document.version,r=new ad(i,e.nodeAfter.maxOffset,t,n,o);this.batch.addOperation(r),this.model.applyOperation(r)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof rU))throw new p("writer-rename-not-element-instance",this);let i=e.root.document?e.root.document.version:null,n=new al(rq._createBefore(e),e.name,t,i);this.batch.addOperation(n),this.model.applyOperation(n)}split(e,t){this._assertWriterUsedCorrectly();let i,n,o=e.parent;if(!o.parent)throw new p("writer-split-element-no-parent",this);if(t||(t=o.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new p("writer-split-invalid-limit-element",this);do{let t=o.root.document?o.root.document.version:null,r=o.maxOffset-e.offset,s=ah.getInsertionPosition(e),a=new ah(e,r,s,null,t);this.batch.addOperation(a),this.model.applyOperation(a),i||n||(i=o,n=e.parent.nextSibling),o=(e=this.createPositionAfter(e.parent)).parent}while(o!==t)return{position:e,range:new rZ(rq._createAt(i,"end"),rq._createAt(n,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new p("writer-wrap-range-not-flat",this);let i=t instanceof rU?t:new rU(t);if(i.childCount>0)throw new p("writer-wrap-element-not-empty",this);if(null!==i.parent)throw new p("writer-wrap-element-attached",this);this.insert(i,e.start);let n=new rZ(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(n,rq._createAt(i,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new p("writer-unwrap-element-no-parent",this);this.move(rZ._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new p("writer-addmarker-no-usingoperation",this);let i=t.usingOperation,n=t.range,o=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new p("writer-addmarker-marker-exists",this);if(!n)throw new p("writer-addmarker-no-range",this);return i?(aw(this,e,null,n,o),this.model.markers.get(e)):this.model.markers._set(e,n,i,o)}updateMarker(e,t){this._assertWriterUsedCorrectly();let i="string"==typeof e?e:e.name,n=this.model.markers.get(i);if(!n)throw new p("writer-updatemarker-marker-not-exists",this);if(!t)return m("writer-updatemarker-reconvert-using-editingcontroller",{markerName:i}),void this.model.markers._refresh(n);let o="boolean"==typeof t.usingOperation,r="boolean"==typeof t.affectsData,s=r?t.affectsData:n.affectsData;if(!o&&!t.range&&!r)throw new p("writer-updatemarker-wrong-options",this);let a=n.getRange(),l=t.range?t.range:a;o&&t.usingOperation!==n.managedUsingOperations?t.usingOperation?aw(this,i,null,l,s):(aw(this,i,a,null,s),this.model.markers._set(i,l,void 0,s)):n.managedUsingOperations?aw(this,i,a,l,s):this.model.markers._set(i,l,void 0,s)}removeMarker(e){this._assertWriterUsedCorrectly();let t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new p("writer-removemarker-no-marker",this);let i=this.model.markers.get(t);i.managedUsingOperations?aw(this,t,i.getRange(),null,i.affectsData):this.model.markers._remove(t)}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(let[t,i]of iB(e))this._setSelectionAttribute(t,i)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(let t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){let i=this.model.document.selection;if(i.isCollapsed&&i.anchor.parent.isEmpty){let n=st._getStoreAttributeKey(e);this.setAttribute(n,t,i.anchor.parent)}i._setAttribute(e,t)}_removeSelectionAttribute(e){let t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){let i=st._getStoreAttributeKey(e);this.removeAttribute(i,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new p("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(let i of this.model.markers){if(!i.managedUsingOperations)continue;let n=i.getRange(),o=!1;if("move"===e)o=t.containsPosition(n.start)||t.start.isEqual(n.start)||t.containsPosition(n.end)||t.end.isEqual(n.end);else{let e=t.nodeBefore,i=t.nodeAfter,r=n.start.parent==e&&n.start.isAtEnd,s=n.end.parent==i&&0==n.end.offset,a=n.end.nodeAfter==i,l=n.start.nodeAfter==i;o=r||s||a||l}o&&this.updateMarker(i.name,{range:n})}}}function ab(e,t,i,n){let o=e.model,r=o.document,s,a,l,c=n.start;for(let e of n.getWalker({shallow:!0}))l=e.item.getAttribute(t),s&&a!=l&&(a!=i&&d(),c=s),s=e.nextPosition,a=l;function d(){let n=new rZ(c,s),l=n.root.document?r.version:null,d=new an(n,t,a,i,l);e.batch.addOperation(d),o.applyOperation(d)}s instanceof rq&&s!=c&&a!=i&&d()}function ak(e,t,i,n){let o,r,s=e.model,a=s.document,l=n.getAttribute(t);if(l!=i){if(n.root===n){let e=n.document?a.version:null;r=new ac(n,t,l,i,e)}else{let s=(o=new rZ(rq._createBefore(n),e.createPositionAfter(n))).root.document?a.version:null;r=new an(o,t,l,i,s)}e.batch.addOperation(r),s.applyOperation(r)}}function aw(e,t,i,n,o){let r=e.model,s=r.document,a=new as(t,i,n,r.markers,!!o,s.version);e.batch.addOperation(a),r.applyOperation(a)}function a_(e,t){return e===t||e instanceof sY&&t instanceof sY}function aA(e,t){let i=e,n=i;for(;t.isLimit(n)&&n.parent;)i=n,n=n.parent;return i}function aC(e,t){return e&&t.isSelectable(e)}class av extends v(rq){constructor(e,t,i="toNone"){if(super(e,t,i),!this.root.is("rootElement"))throw new p("model-liveposition-root-not-rootelement",e);ay.call(this)}detach(){this.stopListening()}toPosition(){return new rq(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function ay(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{let i=t[0];i.isDocumentOperation&&ax.call(this,i)},{priority:"low"})}function ax(e){let t=this.getTransformedByOperation(e);if(!this.isEqual(t)){let e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}function aE(e,t,i){let n=t.parent,o=i.parent;return n!=o&&!e.isLimit(n)&&!e.isLimit(o)&&function(e,t,i){for(let n of new rZ(e,t).getWalker())if(i.isLimit(n.item))return!1;return!0}(t,i,e)}function aD(e,t,i,n={}){let o=e.createElement("paragraph");e.model.schema.setAllowedAttributes(o,n,e),e.insert(o,t),aT(e,i,e.createPositionAt(o,0))}function aT(e,t,i){t instanceof st?e.setSelection(i):t.setTo(i)}function aS(e,t){let i=[];Array.from(e.getItems({direction:"backward"})).map(e=>t.createRangeOn(e)).filter(t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))).forEach(e=>{i.push(e.start.parent),t.remove(e)}),i.forEach(e=>{let i=e;for(;i.parent&&i.isEmpty;){let e=t.createRangeOn(i);i=i.parent,t.remove(e)}})}av.prototype.is=function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e};var aI=r(4717);ok()(aI.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),aI.Z.locals;let aM=new WeakMap;function aN(e){let{view:t,element:i,text:n,isDirectHost:o=!0,keepOnFocus:r=!1}=e,s=t.document;aM.has(s)||(aM.set(s,new Map),s.registerPostFixer(e=>aP(s,e))),aM.get(s).set(i,{text:n,isDirectHost:o,keepOnFocus:r,hostElement:o?i:null}),t.change(e=>aP(s,e))}function aP(e,t){let i=aM.get(e),n=[],o=!1;for(let[e,r]of i)r.isDirectHost&&(n.push(e),aB(t,e,r)&&(o=!0));for(let[e,r]of i){if(r.isDirectHost)continue;let i=function(e){if(e.childCount){let t=e.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}(e);i&&(n.includes(i)||(r.hostElement=i,aB(t,e,r)&&(o=!0)))}return o}function aB(e,t,i){let{text:n,isDirectHost:o,hostElement:r}=i,s=!1;return r.getAttribute("data-placeholder")!==n&&(e.setAttribute("data-placeholder",n,r),s=!0),(o||1==t.childCount)&&function(e,t){if(!e.isAttached()||Array.from(e.getChildren()).some(e=>!e.is("uiElement")))return!1;if(t)return!0;let i=e.document;if(!i.isFocused)return!0;let n=i.selection.anchor;return!!n&&n.parent!==e}(r,i.keepOnFocus)?!r.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",r),1)&&(s=!0):r.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",r),1)&&(s=!0),s}let az=new Map;function aj(e,t,i){let n=az.get(e);n||(n=new Map,az.set(e,n)),n.set(t,i)}function aL(e){return[e]}function aO(e,t,i={}){var n,o;let r,s=(n=e.constructor,o=t.constructor,(r=az.get(n))&&r.has(o)?r.get(o):aL);try{return s(e=e.clone(),t,i)}catch(e){throw e}}class aR{constructor(e,t,i=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!i,this._relations=new Map}setOriginalOperations(e,t=null){let i=t?this.originalOperations.get(t):null;for(let t of e)this.originalOperations.set(t,i||t)}updateRelation(e,t){if(e instanceof ao)t instanceof ad?e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter"):t instanceof ao&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof ah){if(t instanceof ad)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof ao)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{let i=rZ._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.splitPosition)){let n=i.end.offset-e.splitPosition.offset,o=e.splitPosition.offset-i.start.offset;this._setRelation(e,t,{howMany:n,offset:o})}}}else if(e instanceof ad)t instanceof ad?(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 ah&&e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource");else if(e instanceof as){let i=e.newRange;if(!i)return;if(t instanceof ao){let n=rZ._createFromPositionAndShift(t.sourcePosition,t.howMany),o=n.containsPosition(i.start)||n.start.isEqual(i.start),r=n.containsPosition(i.end)||n.end.isEqual(i.end);!o&&!r||n.containsRange(i)||this._setRelation(e,t,{side:o?"left":"right",path:o?i.start.path.slice():i.end.path.slice()})}else if(t instanceof ad){let n=i.start.isEqual(t.targetPosition),o=i.start.isEqual(t.deletionPosition),r=i.end.isEqual(t.deletionPosition),s=i.end.isEqual(t.sourcePosition);(n||o||r||s)&&this._setRelation(e,t,{wasInLeftElement:n,wasStartBeforeMergedElement:o,wasEndBeforeMergedElement:r,wasInRightElement:s})}}}getContext(e,t,i){return{aIsStrong:i,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){let t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){let i=this.originalOperations.get(t),n=this._history.getUndoneOperation(i);if(!n)return null;let o=this.originalOperations.get(e),r=this._relations.get(o);return r&&r.get(n)||null}_setRelation(e,t,i){let n=this.originalOperations.get(e),o=this.originalOperations.get(t),r=this._relations.get(n);r||(r=new Map,this._relations.set(n,r)),r.set(o,i)}}function aF(e,t){for(let i of e)i.baseVersion=t++}function aV(e,t){for(let i=0;i{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){let n=e.range.getDifference(t.range).map(t=>new an(t,e.key,e.oldValue,e.newValue,0)),o=e.range.getIntersection(t.range);return o&&i.aIsStrong&&n.push(new an(o,t.key,t.newValue,e.newValue,0)),0==n.length?[new aa(0)]:n}return[e]}),aj(an,ar,(e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){let i=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(t=>new an(t,e.key,e.oldValue,e.newValue,e.baseVersion));if(t.shouldReceiveAttributes){let n=aU(t,e.key,e.oldValue);n&&i.unshift(n)}return i}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]}),aj(an,ad,(e,t)=>{let i=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&i.push(rZ._createFromPositionAndShift(t.graveyardPosition,1));let n=e.range._getTransformedByMergeOperation(t);return n.isCollapsed||i.push(n),i.map(t=>new an(t,e.key,e.oldValue,e.newValue,e.baseVersion))}),aj(an,ao,(e,t)=>(function(e,t){let i=rZ._createFromPositionAndShift(t.sourcePosition,t.howMany),n=null,o=[];i.containsRange(e,!0)?n=e:e.start.hasSameParentAs(i.start)?(o=e.getDifference(i),n=e.getIntersection(i)):o=[e];let r=[];for(let e of o){e=e._getTransformedByDeletion(t.sourcePosition,t.howMany);let i=t.getMovedRangeStart(),n=e.start.hasSameParentAs(i),o=e._getTransformedByInsertion(i,t.howMany,n);r.push(...o)}return n&&r.push(n._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),r})(e.range,t).map(t=>new an(t,e.key,e.oldValue,e.newValue,e.baseVersion))),aj(an,ah,(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)){let i=e.clone();return i.range=new rZ(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,i]}return e.range=e.range._getTransformedBySplitOperation(t),[e]}),aj(ar,an,(e,t)=>{let i=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){let n=aU(e,t.key,t.newValue);n&&i.push(n)}return i}),aj(ar,ar,(e,t,i)=>(e.position.isEqual(t.position)&&i.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e])),aj(ar,ao,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),aj(ar,ah,(e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e])),aj(ar,ad,(e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e])),aj(as,ar,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e])),aj(as,as,(e,t,i)=>{if(e.name==t.name){if(!i.aIsStrong)return[new aa(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]}),aj(as,ad,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e])),aj(as,ao,(e,t,i)=>{if(e.oldRange&&(e.oldRange=rZ._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(i.abRelation){let n=rZ._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==i.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.end=n.end,e.newRange.start.path=i.abRelation.path,[e];if("right"==i.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=n.start,e.newRange.end.path=i.abRelation.path,[e]}e.newRange=rZ._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]}),aj(as,ah,(e,t,i)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(i.abRelation){let n=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&i.abRelation.wasStartBeforeMergedElement?e.newRange.start=rq._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!i.abRelation.wasInLeftElement&&(e.newRange.start=rq._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&i.abRelation.wasInRightElement?e.newRange.end=rq._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&i.abRelation.wasEndBeforeMergedElement?e.newRange.end=rq._createAt(t.insertionPosition):e.newRange.end=n.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]}),aj(ad,ar,(e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e])),aj(ad,ad,(e,t,i)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(i.bWasUndone){let i=t.graveyardPosition.path.slice();return i.push(0),e.sourcePosition=new rq(t.graveyardPosition.root,i),e.howMany=0,[e]}return[new aa(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!i.bWasUndone&&"splitAtSource"!=i.abRelation){let n="$graveyard"==e.targetPosition.root.rootName,o="$graveyard"==t.targetPosition.root.rootName;if(o&&!n||!(n&&!o)&&i.aIsStrong){let i=t.targetPosition._getTransformedByMergeOperation(t),n=e.targetPosition._getTransformedByMergeOperation(t);return[new ao(i,e.howMany,n,0)]}return[new aa(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&i.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),aj(ad,ao,(e,t,i)=>{let n=rZ._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!i.bWasUndone&&!i.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.sourcePosition)?[new aa(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])}),aj(ad,ah,(e,t,i)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){let n=0!=t.howMany,o=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(n||o||"mergeTargetNotMoved"==i.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==i.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==i.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}),aj(ao,ar,(e,t)=>{let i=rZ._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=i.start,e.howMany=i.end.offset-i.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]}),aj(ao,ao,(e,t,i)=>{let n=rZ._createFromPositionAndShift(e.sourcePosition,e.howMany),o=rZ._createFromPositionAndShift(t.sourcePosition,t.howMany),r,s=i.aIsStrong,a=!i.aIsStrong;if("insertBefore"==i.abRelation||"insertAfter"==i.baRelation?a=!0:"insertAfter"!=i.abRelation&&"insertBefore"!=i.baRelation||(a=!1),r=e.targetPosition.isEqual(t.targetPosition)&&a?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),aH(e,t)&&aH(t,e))return[t.getReversed()];if(n.containsPosition(t.targetPosition)&&n.containsRange(o,!0))return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),aW([n],r);if(o.containsPosition(e.targetPosition)&&o.containsRange(n,!0))return n.start=n.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),n.end=n.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),aW([n],r);let l=iS(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),aW([n],r);"remove"!=e.type||"remove"==t.type||i.aWasUndone||i.forceWeakRemove?"remove"==e.type||"remove"!=t.type||i.bWasUndone||i.forceWeakRemove||(s=!1):s=!0;let c=[];for(let e of n.getDifference(o)){e.start=e.start._getTransformedByDeletion(t.sourcePosition,t.howMany),e.end=e.end._getTransformedByDeletion(t.sourcePosition,t.howMany);let i="same"==iS(e.start.getParentPath(),t.getMovedRangeStart().getParentPath()),n=e._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,i);c.push(...n)}let d=n.getIntersection(o);return null!==d&&s&&(d.start=d.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),d.end=d.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===c.length?c.push(d):1==c.length?o.start.isBefore(n.start)||o.start.isEqual(n.start)?c.unshift(d):c.push(d):c.splice(1,0,d)),0===c.length?[new aa(e.baseVersion)]:aW(c,r)}),aj(ao,ah,(e,t,i)=>{let n=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=i.abRelation||(n=e.targetPosition._getTransformedBySplitOperation(t));let o=rZ._createFromPositionAndShift(e.sourcePosition,e.howMany);if(o.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=n,[e];if(o.start.hasSameParentAs(t.splitPosition)&&o.containsPosition(t.splitPosition)){let e=new rZ(t.splitPosition,o.end);return e=e._getTransformedBySplitOperation(t),aW([new rZ(o.start,t.splitPosition),e],n)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==i.abRelation&&(n=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==i.abRelation&&(n=e.targetPosition);let r=[o._getTransformedBySplitOperation(t)];if(t.graveyardPosition){let n=o.start.isEqual(t.graveyardPosition)||o.containsPosition(t.graveyardPosition);e.howMany>1&&n&&!i.aWasUndone&&r.push(rZ._createFromPositionAndShift(t.insertionPosition,1))}return aW(r,n)}),aj(ao,ad,(e,t,i)=>{let n=rZ._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.sourcePosition)){if("remove"!=e.type||i.forceWeakRemove){if(1==e.howMany)return i.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new aa(0)]}else if(!i.aWasUndone){let i=[],n=t.graveyardPosition.clone(),o=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(i.push(new ao(e.sourcePosition,e.howMany-1,e.targetPosition,0)),n=n._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));let r=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),s=new ao(n,1,r,0),a=s.getMovedRangeStart().path.slice();a.push(0);let l=new rq(s.targetPosition.root,a),c=new ao(o=o._getTransformedByMove(n,r,1),t.howMany,l,0);return i.push(s),i.push(c),i}}let o=rZ._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=o.start,e.howMany=o.end.offset-o.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]}),aj(al,ar,(e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e])),aj(al,ad,(e,t)=>(e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext"):e.position=e.position._getTransformedByMergeOperation(t),[e])),aj(al,ao,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),aj(al,al,(e,t,i)=>{if(e.position.isEqual(t.position)){if(!i.aIsStrong)return[new aa(0)];e.oldName=t.newName}return[e]}),aj(al,ah,(e,t)=>{if("same"==iS(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){let t=new al(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]}),aj(ac,ac,(e,t,i)=>{if(e.root===t.root&&e.key===t.key){if(!i.aIsStrong||e.newValue===t.newValue)return[new aa(0)];e.oldValue=t.newValue}return[e]}),aj(ah,ar,(e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset{if(!e.graveyardPosition&&!i.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){let i=t.graveyardPosition.path.slice();i.push(0);let n=new rq(t.graveyardPosition.root,i),o=ah.getInsertionPosition(new rq(t.graveyardPosition.root,i)),r=new ah(n,0,o,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=ah.getInsertionPosition(e.splitPosition),e.graveyardPosition=r.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[r,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=ah.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),aj(ah,ao,(e,t,i)=>{let n=rZ._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){let o=n.start.isEqual(e.graveyardPosition)||n.containsPosition(e.graveyardPosition);if(!i.bWasUndone&&o){let i=e.splitPosition._getTransformedByMoveOperation(t),n=e.graveyardPosition._getTransformedByMoveOperation(t),o=n.path.slice();o.push(0);let r=new rq(n.root,o);return[new ao(i,e.howMany,r,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}let o=e.splitPosition.isEqual(t.targetPosition);if(o&&("insertAtSource"==i.baRelation||"splitBefore"==i.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=ah.getInsertionPosition(e.splitPosition),[e];if(o&&i.abRelation&&i.abRelation.howMany){let{howMany:t,offset:n}=i.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(n),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){let i=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=i,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition||e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new aa(0)];if("splitBefore"==i.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){let n="$graveyard"==e.splitPosition.root.rootName,o="$graveyard"==t.splitPosition.root.rootName;if(o&&!n||!(n&&!o)&&i.aIsStrong){let i=[];return t.howMany&&i.push(new ao(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&i.push(new ao(e.splitPosition,e.howMany,e.moveTargetPosition,0)),i}return[new aa(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==i.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==i.baRelation){let i=t.insertionPosition.path.slice();i.push(0);let n=new rq(t.insertionPosition.root,i);return[e,new ao(e.insertionPosition,1,n,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offsetthis.decorate(e)),this.on("applyOperation",(e,t)=>{t[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((e,t)=>{if("$marker"===t.name)return!0}),e=this,e.document.registerPostFixer(t=>(function(e,t){let i=t.document.selection,n=t.schema,o=[],r=!1;for(let e of i.getRanges()){var s,a;let t=(s=e,a=n,s.isCollapsed?function(e,t){let i=e.start,n=t.getNearestSelectionRange(i);if(!n){let e=i.getAncestors().reverse().find(e=>t.isObject(e));return e?rZ._createOn(e):null}if(!n.isCollapsed)return n;let o=n.start;return i.isEqual(o)?null:new rZ(o)}(s,a):function(e,t){let{start:i,end:n}=e,o=t.checkChild(i,"$text"),r=t.checkChild(n,"$text"),s=t.getLimitElement(i),a=t.getLimitElement(n);if(s===a){let e,s;if(o&&r)return null;if(e=i.nodeAfter&&!t.isLimit(i.nodeAfter)||t.checkChild(i,"$text"),s=n.nodeBefore&&!t.isLimit(n.nodeBefore)||t.checkChild(n,"$text"),e||s){let e=i.nodeAfter&&t.isSelectable(i.nodeAfter)?null:t.getNearestSelectionRange(i,"forward"),o=n.nodeBefore&&t.isSelectable(n.nodeBefore)?null:t.getNearestSelectionRange(n,"backward");return new rZ(e?e.start:i,o?o.end:n)}}let l=s&&!s.is("rootElement"),c=a&&!a.is("rootElement");if(l||c){let e=i.nodeAfter&&n.nodeBefore&&i.nodeAfter.parent===n.nodeBefore.parent,o=l&&(!e||!aC(i.nodeAfter,t)),r=c&&(!e||!aC(n.nodeBefore,t)),d=i,h=n;return o&&(d=rq._createBefore(aA(s,t))),r&&(h=rq._createAfter(aA(a,t))),new rZ(d,h)}return null}(s,a));t&&!t.isEqual(e)?(o.push(t),r=!0):o.push(e)}return r&&e.setSelection(function(e){let t=[...e],i=new Set,n=1;for(;n!i.has(t))}(o),{backward:i.isBackward}),!1})(t,e)),this.document.registerPostFixer(sb)}change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new sW,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){p.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{e?"function"==typeof e?(t=e,e=new sW):e instanceof sW||(e=new sW(e)):e=new sW,this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){p.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,i){var n;return n=this,n.change(o=>{let r,s;(r=t?t instanceof r5||t instanceof st?t:o.createSelection(t,i):n.document.selection).isCollapsed||n.deleteContent(r,{doNotAutoparagraph:!0});let a=new aK(n,o,r.anchor),l=[];if(e.is("documentFragment")){if(e.markers.size){let t=[];for(let[i,n]of e.markers){let{start:e,end:o}=n,r=e.isEqual(o);t.push({position:e,name:i,isCollapsed:r},{position:o,name:i,isCollapsed:r})}for(let{position:i,name:n,isCollapsed:r}of(t.sort(({position:e},{position:t})=>e.isBefore(t)?1:-1),t)){let t=null,s=null,a=i.parent===e&&i.isAtStart,c=i.parent===e&&i.isAtEnd;a||c?r&&(s=a?"start":"end"):(t=o.createElement("$marker"),o.insert(t,i)),l.push({name:n,element:t,collapsed:s})}}s=e.getChildren()}else s=[e];a.handleNodes(s);let c=a.getSelectionRange();if(e.is("documentFragment")&&l.length){let e=c?r6.fromRange(c):null,t={};for(let e=l.length-1;e>=0;e--){let{name:i,element:n,collapsed:r}=l[e],s=!t[i];if(s&&(t[i]=[]),n){let e=o.createPositionAt(n,"before");t[i].push(e),o.remove(n)}else{let e=a.getAffectedRange();if(!e){r&&t[i].push(a.position);continue}r?t[i].push(e[r]):t[i].push(s?e.start:e.end)}}for(let[e,[i,n]]of Object.entries(t))i&&n&&i.root===n.root&&o.addMarker(e,{usingOperation:!0,affectsData:!0,range:new rZ(i,n)});e&&(c=e.toRange(),e.detach())}c&&(r instanceof st?o.setSelection(c):r.setTo(c));let d=a.getAffectedRange()||n.createRange(r.anchor);return a.destroy(),d})}insertObject(e,t,i,n){return function(e,t,i,n,o={}){let r;if(!e.schema.isObject(t))throw new p("insertobject-element-not-an-object",e,{object:t});let s=r=i?i instanceof r5||i instanceof st?i:e.createSelection(i,n):e.document.selection;o.findOptimalPosition&&e.schema.isBlock(t)&&(s=e.createSelection(aY(r,e,o.findOptimalPosition)));let a=r_(r.getSelectedBlocks()),l={};return a&&Object.assign(l,e.schema.getAttributesWithProperty(a,"copyOnReplace",!0)),e.change(i=>{s.isCollapsed||e.deleteContent(s,{doNotAutoparagraph:!0});let n=t,r=s.anchor.parent;!e.schema.checkChild(r,t)&&e.schema.checkChild(r,"paragraph")&&e.schema.checkChild("paragraph",t)&&(n=i.createElement("paragraph"),i.insert(t,n)),e.schema.setAllowedAttributes(n,l,i);let a=e.insertContent(n,s);return a.isCollapsed||o.setSelection&&function(e,t,i,n){let o=e.model;if("after"==i){let i=t.nextSibling;!(i&&o.schema.checkChild(i,"$text"))&&o.schema.checkChild(t.parent,"paragraph")&&(i=e.createElement("paragraph"),o.schema.setAllowedAttributes(i,n,e),o.insertContent(i,e.createPositionAfter(t))),i&&e.setSelection(i,0)}else{if("on"!=i)throw new p("insertobject-invalid-place-parameter-value",o);e.setSelection(t,"on")}}(i,t,o.setSelection,l),a})}(this,e,t,i,n)}deleteContent(e,t){!function(e,t,i={}){if(t.isCollapsed)return;let n=t.getFirstRange();if("$graveyard"==n.root.rootName)return;let o=e.schema;e.change(e=>{let r,s;if(!i.doNotResetEntireContent&&function(e,t){let i=e.getLimitElement(t);if(!t.containsEntireContent(i))return!1;let n=t.getFirstRange();return n.start.parent!=n.end.parent&&e.checkChild(i,"paragraph")}(o,t)){let i;return void(i=e.model.schema.getLimitElement(t),e.remove(e.createRangeIn(i)),aD(e,e.createPositionAt(i,0),t))}let a={};if(!i.doNotAutoparagraph){let e=t.getSelectedElement();e&&Object.assign(a,o.getAttributesWithProperty(e,"copyOnReplace",!0))}let[l,c]=function(e){let t=e.root.document.model,i=e.start,n=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){let i=function(e){let t=e.parent,i=t.root.document.model.schema;for(let e of t.getAncestors({parentFirst:!0,includeSelf:!0})){if(i.isLimit(e))return null;if(i.isBlock(e))return e}}(n);if(i&&n.isTouching(t.createPositionAt(i,0))){let i=t.createSelection(e);t.modifySelection(i,{direction:"backward"});let o=i.getLastPosition(),r=t.createRange(o,n);t.hasContent(r,{ignoreMarkers:!0})||(n=o)}}return[av.fromPosition(i,"toPrevious"),av.fromPosition(n,"toNext")]}(n);l.isTouching(c)||e.remove(e.createRange(l,c)),i.leaveUnmerged||(!function(e,t,i){let n=e.model;if(!aE(e.model.schema,t,i))return;let[o,r]=function(e,t){let i=e.getAncestors(),n=t.getAncestors(),o=0;for(;i[o]&&i[o]==n[o];)o++;return[i[o],n[o]]}(t,i);o&&r&&(!n.hasContent(o,{ignoreMarkers:!0})&&n.hasContent(r,{ignoreMarkers:!0})?function e(t,i,n,o){let r=i.parent,s=n.parent;if(r!=o&&s!=o){var a;let l,c;for(i=t.createPositionAfter(r),(n=t.createPositionBefore(s)).isEqual(i)||t.insert(r,n);i.parent.isEmpty;){let e=i.parent;i=t.createPositionBefore(e),t.remove(e)}n=t.createPositionBefore(s),l=(a=n).nodeBefore,c=a.nodeAfter,l.name!=c.name&&t.rename(l,c.name),t.clearAttributes(l),t.setAttributes(Object.fromEntries(c.getAttributes()),l),t.merge(a),aE(t.model.schema,i,n)&&e(t,i,n,o)}}(e,t,i,o.parent):function e(t,i,n,o){let r=i.parent,s=n.parent;if(r!=o&&s!=o){for(i=t.createPositionAfter(r),(n=t.createPositionBefore(s)).isEqual(i)||t.insert(s,i),t.merge(i);n.parent.isEmpty;){let e=n.parent;n=t.createPositionBefore(e),t.remove(e)}aE(t.model.schema,i,n)&&e(t,i,n,o)}}(e,t,i,o.parent))}(e,l,c),o.removeDisallowedAttributes(l.parent.getChildren(),e)),aT(e,t,l),i.doNotAutoparagraph||(r=o.checkChild(l,"$text"),s=o.checkChild(l,"paragraph"),r||!s)||aD(e,l,t,a),l.detach(),c.detach()})}(this,e,t)}modifySelection(e,t){!function(e,t,i={}){var n;let o,r,s,a=e.schema,l="backward"!=i.direction,c=i.unit?i.unit:"character",d=!!i.treatEmojiAsSingleUnit,h=new rH({boundaries:(n=t.focus,r=n.root,s=rq._createAt(r,l?"end":0),l?new rZ(n,s):new rZ(s,n)),singleCharacters:!0,direction:l?"forward":"backward"}),u={walker:h,schema:a,isForward:l,unit:c,treatEmojiAsSingleUnit:d};for(;o=h.next();){if(o.done)return;let i=function(e,t){let{isForward:i,walker:n,unit:o,schema:r,treatEmojiAsSingleUnit:s}=e,{type:a,item:l,nextPosition:c}=t;if("text"==a)return"word"===e.unit?function(e,t){let i=e.position.textNode;if(i){var n,o,r,s;let a=e.position.offset-i.startOffset;for(;n=i.data,o=a,r=t,!aQ.includes(n.charAt(o+(r?0:-1)))&&(s=i,a!==(t?s.endOffset:0));){e.next();let n=t?e.position.nodeAfter:e.position.nodeBefore;if(n&&n.is("$text")){let o=n.data.charAt(t?0:n.data.length-1);aQ.includes(o)||(e.next(),i=e.position.textNode)}a=e.position.offset-i.startOffset}}return e.position}(n,i):function(e,t,i){let n=e.position.textNode;if(n){let o=n.data,r=e.position.offset-n.startOffset;for(;sQ(o,r)||"character"==t&&sZ(o,r)||i&&function(e,t){return Array.from(String(e).matchAll(sJ)).some(e=>e.index!0);if(r.checkChild(c,"$text"))return c}}(u,o.value);if(i)return void(t instanceof st?e.change(e=>{e.setSelectionFocus(i)}):t.setFocus(i))}}(this,e,t)}getSelectedContent(e){return this.change(t=>{let i,n=t.createDocumentFragment(),o=e.getFirstRange();if(!o||o.isCollapsed)return n;let r=o.start.root,s=o.start.getCommonPath(o.end),a=r.getNodeByPath(s),l=(i=o.start.parent==o.end.parent?o:t.createRange(t.createPositionAt(a,o.start.path[s.length]),t.createPositionAt(a,o.end.path[s.length]+1))).end.offset-i.start.offset;for(let e of i.getItems({shallow:!0}))e.is("$textProxy")?t.appendText(e.data,e.getAttributes(),n):t.append(t.cloneElement(e,!0),n);if(i!=o){let e=o._getTransformedByMove(i.start,t.createPositionAt(n,0),l)[0],r=t.createRange(t.createPositionAt(n,0),e.start);aS(t.createRange(e.end,t.createPositionAt(n,"end")),t),aS(r,t)}return n})}hasContent(e,t={}){let i=e instanceof rZ?e:rZ._createIn(e);if(i.isCollapsed)return!1;let{ignoreWhitespaces:n=!1,ignoreMarkers:o=!1}=t;if(!o){for(let e of this.markers.getMarkersIntersectingRange(i))if(e.affectsData)return!0}for(let e of i.getItems())if(this.schema.isContent(e)&&(!e.is("$textProxy")||!n||-1!==e.data.search(/\S/)))return!0;return!1}createPositionFromPath(e,t,i){return new rq(e,t,i)}createPositionAt(e,t){return rq._createAt(e,t)}createPositionAfter(e){return rq._createAfter(e)}createPositionBefore(e){return rq._createBefore(e)}createRange(e,t){return new rZ(e,t)}createRangeIn(e){return rZ._createIn(e)}createRangeOn(e){return rZ._createOn(e)}createSelection(...e){return new r5(...e)}createBatch(e){return new sW(e)}createOperationFromJSON(e){return ag.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){let e=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){let t=this._pendingChanges[0].batch;this._currentWriter=new af(this,t);let i=this._pendingChanges[0].callback(this._currentWriter);e.push(i),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return e}}class aJ extends rC{constructor(e){super(),this.editor=e}set(e,t,i={}){if("string"==typeof t){let e=t;t=(t,i)=>{this.editor.execute(e),i()}}super.set(e,t,i)}}class aX{constructor(e={}){let t=e.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=e.context||new iE({language:t}),this._context._addEditor(this,!e.context);let i=Array.from(this.constructor.builtinPlugins||[]);this.config=new im(e,this.constructor.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new i_(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new sT,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new aZ;let n=new nd;this.data=new sF(this.model,n),this.editing=new sD(this.model,n),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new sV([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 aJ(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new p("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new p("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 p("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){let e=this.config,t=e.get("plugins"),i=e.get("removePlugins")||[],n=e.get("extraPlugins")||[],o=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(n),i,o)}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){try{return this.commands.execute(...e)}catch(e){p.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}}H(aX,j);class a0{constructor(e){this.editor=e,this._components=new Map}*names(){for(let e of this._components.values())yield e.originalName}add(e,t){this._components.set(a1(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new p("componentfactory-item-missing",this,{name:e});return this._components.get(a1(e)).callback(this.editor.locale)}has(e){return this._components.has(a1(e))}}function a1(e){return String(e).toLowerCase()}class a2 extends iw{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",(e,t,i)=>{this._renderViewIntoCollectionParent(t,i)}),this.on("remove",(e,t)=>{t.element&&this._parentElement&&t.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){for(let t of(this._parentElement=e,this))this._renderViewIntoCollectionParent(t)}delegate(...e){if(!e.length||!e.every(e=>"string"==typeof e))throw new p("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(let i of this)for(let n of e)i.delegate(n).to(t);this.on("add",(i,n)=>{for(let i of e)n.delegate(i).to(t)}),this.on("remove",(i,n)=>{for(let i of e)n.stopDelegating(i,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}class a5{constructor(e){Object.assign(this,le(a8(e))),this._isRendered=!1,this._revertData=null}render(){let e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new p("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function* e(t){if(t.children)for(let i of t.children)lo(i)?yield i:lr(i)&&(yield*e(i))}(this)}static bind(e,t){return{to:(i,n)=>new a3({eventNameOrFunction:i,attribute:i,observable:e,emitter:t,callback:n}),if:(i,n,o)=>new a7({observable:e,emitter:t,attribute:i,valueIfTrue:n,callback:o})}}static extend(e,t){if(e._isRendered)throw new p("template-extend-render",[this,e]);!function e(t,i){if(i.attributes&&(t.attributes||(t.attributes={}),li(t.attributes,i.attributes)),i.eventListeners&&(t.eventListeners||(t.eventListeners={}),li(t.eventListeners,i.eventListeners)),i.text&&t.text.push(...i.text),i.children&&i.children.length){if(t.children.length!=i.children.length)throw new p("ui-template-extend-children-mismatch",t);let n=0;for(let o of i.children)e(t.children[n++],o)}}(e,le(a8(t)))}_renderNode(e){if(e.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new p("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){var t;let i=e.node;return i?e.revertData.text=i.textContent:i=e.node=document.createTextNode(""),a6(this.text)?this._bindToObservable({schema:this.text,updater:(t=i,{set(e){t.textContent=e},remove(){t.textContent=""}}),data:e}):i.textContent=this.text.join(""),i}_renderAttributes(e){let t,i,n,o;if(!this.attributes)return;let r=e.node,s=e.revertData;for(t in this.attributes)if(n=r.getAttribute(t),i=this.attributes[t],s&&(s.attributes[t]=n),o=I(i[0])&&i[0].ns?i[0].ns:null,a6(i)){let a=o?i[0].value:i;s&&la(t)&&a.unshift(n),this._bindToObservable({schema:a,updater:function(e,t,i){return{set(n){e.setAttributeNS(i,t,n)},remove(){e.removeAttributeNS(i,t)}}}(r,t,o),data:e})}else"style"==t&&"string"!=typeof i[0]?this._renderStyleAttribute(i[0],e):(s&&n&&la(t)&&i.unshift(n),ln(i=i.map(e=>e&&e.value||e).reduce((e,t)=>e.concat(t),[]).reduce(lt,""))||r.setAttributeNS(o,t,i))}_renderStyleAttribute(e,t){let i=t.node;for(let n in e){let o=e[n];a6(o)?this._bindToObservable({schema:[o],updater:function(e,t){return{set(i){e.style[t]=i},remove(){e.style[t]=null}}}(i,n),data:t}):i.style[n]=o}}_renderElementChildren(e){let t=e.node,i=e.intoFragment?document.createDocumentFragment():t,n=e.isApplying,o=0;for(let r of this.children)if(ls(r)){if(!n)for(let e of(r.setParent(t),r))i.appendChild(e.element)}else if(lo(r))n||(r.isRendered||r.render(),i.appendChild(r.element));else if(of(r))i.appendChild(r);else if(n){let t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),r._renderNode({node:i.childNodes[o++],isApplying:!0,revertData:t})}else i.appendChild(r.render());e.intoFragment&&t.appendChild(i)}_setUpListeners(e){if(this.eventListeners)for(let t in this.eventListeners){let i=this.eventListeners[t].map(i=>{let[n,o]=t.split("@");return i.activateDomEventListener(n,o,e)});e.revertData&&e.revertData.bindings.push(i)}}_bindToObservable({schema:e,updater:t,data:i}){let n=i.revertData;a9(e,t,i);let o=e.filter(e=>!ln(e)).filter(e=>e.observable).map(n=>n.activateAttributeListener(e,t,i));n&&n.bindings.push(o)}_revertTemplateFromNode(e,t){for(let e of t.bindings)for(let t of e)t();if(t.text)e.textContent=t.text;else{for(let i in t.attributes){let n=t.attributes[i];null===n?e.removeAttribute(i):e.setAttribute(i,n)}for(let i=0;ia9(e,t,i);return this.emitter.listenTo(this.observable,"change:"+this.attribute,n),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,n)}}}class a3 extends a4{activateDomEventListener(e,t,i){let n=(e,i)=>{t&&!i.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(i):this.observable.fire(this.eventNameOrFunction,i))};return this.emitter.listenTo(i.node,e,n),()=>{this.emitter.stopListening(i.node,e,n)}}}class a7 extends a4{getValue(e){return!ln(super.getValue(e))&&(this.valueIfTrue||!0)}}function a6(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(a6):e instanceof a4)}function a9(e,t,{node:i}){let n=e.map(e=>e instanceof a4?e.getValue(i):e);ln(n=1==e.length&&e[0]instanceof a7?n[0]:n.reduce(lt,""))?t.remove():t.set(n)}function a8(e){return ig(e,e=>{if(e&&(e instanceof a4||lr(e)||lo(e)||ls(e)))return e})}function le(e){var t;if("string"==typeof e?e={text:[e]}:e.text&&((t=e).text=iA(t.text)),e.on&&(e.eventListeners=function(e){for(let n in e){var t,i;(t=e)[i=n]=iA(t[i])}return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(let n in e){var t,i;e[n].value&&(e[n].value=iA(e[n].value)),(t=e)[i=n]=iA(t[i])}}(e.attributes);let t=[];if(e.children)if(ls(e.children))t.push(e.children);else for(let i of e.children)lr(i)||lo(i)||of(i)?t.push(i):t.push(new a5(i));e.children=t}return e}function lt(e,t){return ln(t)?e:ln(e)?t:`${e} ${t}`}function li(e,t){for(let i in t)e[i]?e[i].push(...t[i]):e[i]=t[i]}function ln(e){return!e&&0!==e}function lo(e){return e instanceof lc}function lr(e){return e instanceof a5}function ls(e){return e instanceof a2}function la(e){return"class"==e||"style"==e}var ll=r(4793);ok()(ll.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ll.Z.locals;class lc{constructor(e){this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new iw,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,i)=>{i.locale=e}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=a5.bind(this,this)}createCollection(e){let t=new a2(e);return this._viewCollections.add(t),t}registerChild(e){for(let t of(ik(e)||(e=[e]),e))this._unboundChildren.add(t)}deregisterChild(e){for(let t of(ik(e)||(e=[e]),e))this._unboundChildren.remove(t)}setTemplate(e){this.template=new a5(e)}extendTemplate(e){a5.extend(this.template,e)}render(){if(this.isRendered)throw new p("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)}}function ld({element:e,target:t,positions:i,limiter:n,fitInViewport:o,viewportOffsetConfig:r}){var s;let a,l;ex(t)&&(t=t()),ex(n)&&(n=n());let c=e&&e.parentNode?e.offsetParent===iC.document.body?null:e.offsetParent:null,d=new rT(e),h=new rT(t),u=o&&(s=Object.assign({top:0,bottom:0,left:0,right:0},s=r),l=new rT(iC.window),l.top+=s.top,l.height-=s.top,l.bottom-=s.bottom,l.height-=s.bottom,l)||null,g={targetRect:h,elementRect:d,positionedElementAncestor:c,viewportRect:u};return n||o?(Object.assign(g,{limiterRect:n&&new rT(n).getVisible(),viewportRect:u}),a=function(e,t){let{elementRect:i}=t,n=i.getArea(),o=e.map(e=>new lu(e,t)).filter(e=>!!e.name),r=0,s=null;for(let e of o){let{limiterIntersectionArea:t,viewportIntersectionArea:i}=e;if(t===n)return e;let o=i**2+t**2;o>r&&(r=o,s=e)}return s}(i,g)||new lu(i[0],g)):a=new lu(i[0],g),a}function lh(e){let{scrollX:t,scrollY:i}=iC.window;return e.clone().moveBy(t,i)}H(lc,oj),H(lc,j);class lu{constructor(e,t){let i=e(t.targetRect,t.elementRect,t.viewportRect);if(!i)return;let{left:n,top:o,name:r,config:s}=i;this.name=r,this.config=s,this._positioningFunctionCorrdinates={left:n,top:o},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){let e=this._options.limiterRect;if(e){let t=this._options.viewportRect;if(!t)return e.getIntersectionArea(this._rect);{let i=e.getIntersection(t);if(i)return i.getIntersectionArea(this._rect)}}return 0}get viewportIntersectionArea(){let e=this._options.viewportRect;return e?e.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){var e,t;let i,n,o,r;return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=lh(this._rect),this._options.positionedElementAncestor&&(e=this._cachedAbsoluteRect,i=lh(new rT(t=this._options.positionedElementAncestor)),n=rE(t),r=0,o=0-i.left,r-=i.top,o+=t.scrollLeft,r+=t.scrollTop,o-=n.left,r-=n.top,e.moveBy(o,r))),this._cachedAbsoluteRect}}var lg=r(8793);ok()(lg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lg.Z.locals;let lp=e=>e+"px",lm=iC.document.body;class lf extends lc{constructor(e){super(e);let 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"),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",lp),left:t.to("left",lp)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){this.show();let t=lf.defaultPositions,i=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:lm,fitInViewport:!0},e),n=lf._getOptimalPosition(i),o=parseInt(n.left),r=parseInt(n.top),{name:s,config:a={}}=n,{withArrow:l=!0}=a;Object.assign(this,{top:r,left:o,position:s,withArrow:l})}pin(e){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(e){this.attachTo(e);let t=lb(e.target),i=e.limiter?lb(e.limiter):lm;this.listenTo(iC.document,"scroll",(n,o)=>{let r=o.target,s=t&&r.contains(t),a=i&&r.contains(i);!s&&!a&&t&&i||this.attachTo(e)},{useCapture:!0}),this.listenTo(iC.window,"resize",()=>{this.attachTo(e)})}_stopPinning(){this.stopListening(iC.document,"scroll"),this.stopListening(iC.window,"resize")}}function lb(e){return ip(e)?e:rx(e)?e.commonAncestorContainer:"function"==typeof e?lb(e()):null}function lk({sideOffset:e=lf.arrowSideOffset,heightOffset:t=lf.arrowHeightOffset,stickyVerticalOffset:i=lf.stickyVerticalOffset,config:n}={}){return{northWestArrowSouthWest:(t,i)=>({top:o(t,i),left:t.left-e,name:"arrow_sw",...n&&{config:n}}),northWestArrowSouthMiddleWest:(t,i)=>({top:o(t,i),left:t.left-.25*i.width-e,name:"arrow_smw",...n&&{config:n}}),northWestArrowSouth:(e,t)=>({top:o(e,t),left:e.left-t.width/2,name:"arrow_s",...n&&{config:n}}),northWestArrowSouthMiddleEast:(t,i)=>({top:o(t,i),left:t.left-.75*i.width+e,name:"arrow_sme",...n&&{config:n}}),northWestArrowSouthEast:(t,i)=>({top:o(t,i),left:t.left-i.width+e,name:"arrow_se",...n&&{config:n}}),northArrowSouthWest:(t,i)=>({top:o(t,i),left:t.left+t.width/2-e,name:"arrow_sw",...n&&{config:n}}),northArrowSouthMiddleWest:(t,i)=>({top:o(t,i),left:t.left+t.width/2-.25*i.width-e,name:"arrow_smw",...n&&{config:n}}),northArrowSouth:(e,t)=>({top:o(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s",...n&&{config:n}}),northArrowSouthMiddleEast:(t,i)=>({top:o(t,i),left:t.left+t.width/2-.75*i.width+e,name:"arrow_sme",...n&&{config:n}}),northArrowSouthEast:(t,i)=>({top:o(t,i),left:t.left+t.width/2-i.width+e,name:"arrow_se",...n&&{config:n}}),northEastArrowSouthWest:(t,i)=>({top:o(t,i),left:t.right-e,name:"arrow_sw",...n&&{config:n}}),northEastArrowSouthMiddleWest:(t,i)=>({top:o(t,i),left:t.right-.25*i.width-e,name:"arrow_smw",...n&&{config:n}}),northEastArrowSouth:(e,t)=>({top:o(e,t),left:e.right-t.width/2,name:"arrow_s",...n&&{config:n}}),northEastArrowSouthMiddleEast:(t,i)=>({top:o(t,i),left:t.right-.75*i.width+e,name:"arrow_sme",...n&&{config:n}}),northEastArrowSouthEast:(t,i)=>({top:o(t,i),left:t.right-i.width+e,name:"arrow_se",...n&&{config:n}}),southWestArrowNorthWest:(t,i)=>({top:r(t),left:t.left-e,name:"arrow_nw",...n&&{config:n}}),southWestArrowNorthMiddleWest:(t,i)=>({top:r(t),left:t.left-.25*i.width-e,name:"arrow_nmw",...n&&{config:n}}),southWestArrowNorth:(e,t)=>({top:r(e),left:e.left-t.width/2,name:"arrow_n",...n&&{config:n}}),southWestArrowNorthMiddleEast:(t,i)=>({top:r(t),left:t.left-.75*i.width+e,name:"arrow_nme",...n&&{config:n}}),southWestArrowNorthEast:(t,i)=>({top:r(t),left:t.left-i.width+e,name:"arrow_ne",...n&&{config:n}}),southArrowNorthWest:(t,i)=>({top:r(t),left:t.left+t.width/2-e,name:"arrow_nw",...n&&{config:n}}),southArrowNorthMiddleWest:(t,i)=>({top:r(t),left:t.left+t.width/2-.25*i.width-e,name:"arrow_nmw",...n&&{config:n}}),southArrowNorth:(e,t)=>({top:r(e),left:e.left+e.width/2-t.width/2,name:"arrow_n",...n&&{config:n}}),southArrowNorthMiddleEast:(t,i)=>({top:r(t),left:t.left+t.width/2-.75*i.width+e,name:"arrow_nme",...n&&{config:n}}),southArrowNorthEast:(t,i)=>({top:r(t),left:t.left+t.width/2-i.width+e,name:"arrow_ne",...n&&{config:n}}),southEastArrowNorthWest:(t,i)=>({top:r(t),left:t.right-e,name:"arrow_nw",...n&&{config:n}}),southEastArrowNorthMiddleWest:(t,i)=>({top:r(t),left:t.right-.25*i.width-e,name:"arrow_nmw",...n&&{config:n}}),southEastArrowNorth:(e,t)=>({top:r(e),left:e.right-t.width/2,name:"arrow_n",...n&&{config:n}}),southEastArrowNorthMiddleEast:(t,i)=>({top:r(t),left:t.right-.75*i.width+e,name:"arrow_nme",...n&&{config:n}}),southEastArrowNorthEast:(t,i)=>({top:r(t),left:t.right-i.width+e,name:"arrow_ne",...n&&{config:n}}),westArrowEast:(e,i)=>({top:e.top+e.height/2-i.height/2,left:e.left-i.width-t,name:"arrow_e",...n&&{config:n}}),eastArrowWest:(e,i)=>({top:e.top+e.height/2-i.height/2,left:e.right+t,name:"arrow_w",...n&&{config:n}}),viewportStickyNorth:(e,t,o)=>e.getIntersection(o)?{top:o.top+i,left:e.left+e.width/2-t.width/2,name:"arrowless",config:{withArrow:!1,...n}}:null};function o(e,i){return e.top-i.height-t}function r(e){return e.bottom+t}}lf.arrowSideOffset=25,lf.arrowHeightOffset=10,lf.stickyVerticalOffset=20,lf._getOptimalPosition=ld,lf.defaultPositions=lk();var lw=r(3332);ok()(lw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lw.Z.locals;let l_="ck-tooltip";class lA{constructor(e){if(lA._editors.add(e),lA._instance)return lA._instance;lA._instance=this,this.tooltipTextView=new lc(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 lf(e.locale),this.balloonPanelView.class=l_,this.balloonPanelView.content.add(this.tooltipTextView),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._pinTooltipDebounced=rd(this._pinTooltip,600),this.listenTo(iC.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(iC.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(iC.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(iC.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(iC.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(e){lA._editors.delete(e),this.stopListening(e.ui),lA._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),lA._instance=null)}_onEnterOrFocus(e,{target:t}){let i=lC(t);i&&i!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(i,{text:i.dataset.ckeTooltipText,position:i.dataset.ckeTooltipPosition||"s",cssClass:i.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(e,{target:t,relatedTarget:i}){if("mouseleave"===e.name){if(!ip(t)||this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;let e=lC(t),n=lC(i);e&&e!==n&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(e,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(e,{text:t,position:i,cssClass:n}){let o=r_(lA._editors.values()).ui.view.body;for(let r of(o.has(this.balloonPanelView)||o.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.pin({target:e,positions:lA.getPositioningFunctions(i)}),this.balloonPanelView.class=[l_,n].filter(e=>e).join(" "),lA._editors))this.listenTo(r.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=e,this._currentTooltipPosition=i}_unpinTooltip(){for(let e of(this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin(),lA._editors))this.stopListening(e.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null}_updateTooltipPosition(){rw(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:lA.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}static getPositioningFunctions(e){let t=lA.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]}}function lC(e){return ip(e)?e.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}H(lA,oj),lA.defaultBalloonPositions=lk({heightOffset:5,sideOffset:13}),lA._instance=null,lA._editors=new Set;class lv{constructor(e){this.editor=e,this.componentFactory=new a0(e),this.focusTracker=new rA,this.tooltipManager=new lA(e),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.isReady=!1,this.once("ready",()=>{this.isReady=!0}),this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this.listenTo(e.editing.view.document,"layoutChanged",()=>this.update()),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){for(let e of(this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this._editableElementsMap.values()))e.ckeditorInstance=null;this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor),this.focusTracker.add(t);let i=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?i():this.once("ready",i)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(e,t={}){e.isRendered?(this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)):e.once("render",()=>{this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)}),this._focusableToolbarDefinitions.push({toolbarView:e,options:t})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){let e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;let i=e.config.get("toolbar.viewportTopOffset");return i?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:i}):{top:0}}_initFocusTracking(){let e,t,i=this.editor,n=i.editing.view;i.keystrokes.set("Alt+F10",(i,o)=>{let r=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(r)&&!Array.from(n.domRoots.values()).includes(r)&&(e=r);let s=this._getCurrentFocusedToolbarDefinition();s&&t||(t=this._getFocusableCandidateToolbarDefinitions(s));for(let e=0;e{let o=this._getCurrentFocusedToolbarDefinition();o&&(e?(e.focus(),e=null):i.editing.view.focus(),o.options.afterBlur&&o.options.afterBlur(),n())})}_getFocusableCandidateToolbarDefinitions(){let e=[];for(let t of this._focusableToolbarDefinitions){let{toolbarView:i,options:n}=t;(rw(i.element)||n.beforeFocus)&&e.push(t)}return e.sort((e,t)=>ly(e)-ly(t)),e}_getCurrentFocusedToolbarDefinition(){for(let e of this._focusableToolbarDefinitions)if(e.toolbarView.element&&e.toolbarView.element.contains(this.focusTracker.focusedElement))return e;return null}_focusFocusableCandidateToolbar(e){let{toolbarView:t,options:{beforeFocus:i}}=e;return i&&i(),!!rw(t.element)&&(t.focus(),!0)}}function ly(e){let{toolbarView:t,options:i}=e,n=10;return rw(t.element)&&n--,i.isContextual&&n--,n}H(lv,j);class lx extends iD{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new iw({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new p("pendingactions-add-invalid-message",this);let t=Object.create(j);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]()}}let lE='',lD='',lT={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',image:'',lowVision:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:lE,quote:'',threeVerticalDots:lD};function lS({emitter:e,activator:t,callback:i,contextElements:n}){e.listenTo(document,"mousedown",(e,o)=>{if(!t())return;let r="function"==typeof o.composedPath?o.composedPath():[];for(let e of n)if(e.contains(o.target)||r.includes(e))return;i()})}function lI(e){e.set("_isCssTransitionsDisabled",!1),e.disableCssTransitions=()=>{e._isCssTransitionsDisabled=!0},e.enableCssTransitions=()=>{e._isCssTransitionsDisabled=!1},e.extendTemplate({attributes:{class:[e.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function lM({view:e}){e.listenTo(e.element,"submit",(t,i)=>{i.preventDefault(),e.fire("submit")},{useCapture:!0})}class lN extends a2{constructor(e,t=[]){super(t),this.locale=e}attachToDom(){this._bodyCollectionContainer=new a5({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=rb(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();let e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}var lP=r(6574);ok()(lP.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lP.Z.locals;class lB extends lc{constructor(){super();let e=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:e.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){let e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t);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})}}var lz=r(4906);ok()(lz.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lz.Z.locals;class lj extends lc{constructor(e){super(e);let t=this.bindTemplate,i=h();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._createLabelView(i),this.iconView=new lB,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));let n={tag:"button",attributes:{class:["ck","ck-button",t.to("class"),t.if("isEnabled","ck-disabled",e=>!e),t.if("isVisible","ck-hidden",e=>!e),t.to("isOn",e=>e?"ck-on":"ck-off"),t.if("withText","ck-button_with-text"),t.if("withKeystroke","ck-button_with-keystroke")],type:t.to("type",e=>e||"button"),tabindex:t.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${i}`,"aria-disabled":t.if("isEnabled",!0,e=>!e),"aria-pressed":t.to("isOn",e=>!!this.isToggleable&&String(!!e)),"data-cke-tooltip-text":t.to("_tooltipString"),"data-cke-tooltip-position":t.to("tooltipPosition")},children:this.children,on:{click:t.to(e=>{this.isEnabled?this.fire("execute"):e.preventDefault()})}};nV.isSafari&&(n.on.mousedown=t.to(e=>{this.focus(),e.preventDefault()})),this.setTemplate(n)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createLabelView(e){let t=new lc,i=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:i.to("labelStyle"),id:`ck-editor__aria-label_${e}`},children:[{text:this.bindTemplate.to("label")}]}),t}_createKeystrokeView(){let e=new lc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>nY(e))}]}),e}_getTooltipString(e,t,i){return e?"string"==typeof e?e:(i&&(i=nY(i)),e instanceof Function?e(t,i):`${t}${i?` (${i})`:""}`):""}}var lL=r(5332);ok()(lL.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lL.Z.locals;class lO extends lj{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(){let e=new lc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}var lR=r(6781);ok()(lR.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lR.Z.locals;let lF='';class lV extends lj{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(){let e=new lB;return e.content=lF,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}var lU=r(7686);ok()(lU.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lU.Z.locals;class lH extends lc{constructor(e){super(e);let t=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new rC,this.focusTracker=new rA,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",t.to("class"),t.if("isVisible","ck-hidden",e=>!e),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())}),this.keystrokes.set("arrowleft",(e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){let e=new lj;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){let e=new lj,t=e.bindTemplate;return e.icon=lF,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}}class lW extends lc{constructor(e){super(e);let 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")]},children:this.children,on:{selectstart:t.to(e=>e.preventDefault())}})}focus(){this.children.length&&("function"==typeof this.children.first.focus?this.children.first.focus():m("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this}))}focusLast(){if(this.children.length){let e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}var lq=r(5485);ok()(lq.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lq.Z.locals;class l$ extends lc{constructor(e,t,i){super(e);let n=this.bindTemplate;this.buttonView=t,this.panelView=i,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new rC,this.focusTracker=new rA,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",n.to("class"),n.if("isEnabled","ck-disabled",e=>!e)],id:n.to("id"),"aria-describedby":n.to("ariaDescribedById")},children:[t,i]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":n.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(e,t,i)=>{i&&("auto"===this.panelPosition?this.panelView.position=l$._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)}),this.keystrokes.listenTo(this.element);let 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(){let{south:e,north:t,southEast:i,southWest:n,northEast:o,northWest:r,southMiddleEast:s,southMiddleWest:a,northMiddleEast:l,northMiddleWest:c}=l$.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[i,n,s,a,e,o,r,l,c,t]:[n,i,a,s,e,r,o,c,l,t]}}l$.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"})},l$._getOptimalPosition=ld;class lG{constructor(e){if(Object.assign(this,e),e.actions&&e.keystrokeHandler)for(let t in e.actions){let i=e.actions[t];for(let n of("string"==typeof i&&(i=[i]),i))e.keystrokeHandler.set(n,(e,i)=>{this[t](),i()})}}get first(){return this.focusables.find(lK)||null}get last(){return this.focusables.filter(lK).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((t,i)=>{let n=t.element===this.focusTracker.focusedElement;return n&&(e=i),n}),e)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(e){e&&e.focus()}_getFocusableItem(e){let t=this.current,i=this.focusables.length;if(!i)return null;if(null===t)return this[1===e?"first":"last"];let n=(t+i+e)%i;do{let t=this.focusables.get(n);if(lK(t))return t;n=(n+i+e)%i}while(n!==t)return null}}function lK(e){return!(!e.focus||!rw(e.element))}class lY extends lc{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class lQ extends lc{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function lZ(e){return Array.isArray(e)?{items:e,removeItems:[]}:e?Object.assign({items:[],removeItems:[]},e):{items:[],removeItems:[]}}var lJ=r(5542);ok()(lJ.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lJ.Z.locals;let lX={alignLeft:lT.alignLeft,bold:lT.bold,importExport:lT.importExport,paragraph:lT.paragraph,plus:lT.plus,text:lT.text,threeVerticalDots:lT.threeVerticalDots};class l0 extends lc{constructor(e,t){var i;super(e);let n=this.bindTemplate,o=this.t;this.options=t||{},this.set("ariaLabel",o("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new rA,this.keystrokes=new rC,this.set("class"),this.set("isCompact",!1),this.itemsView=new l1(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();let r="rtl"===e.uiLanguageDirection;this._focusCycler=new lG({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[r?"arrowright":"arrowleft","arrowup"],focusNext:[r?"arrowleft":"arrowright","arrowdown"]}});let s=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];this.options.shouldGroupWhenFull&&this.options.isFloating&&s.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:s,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")}},children:this.children,on:{mousedown:(i=this,i.bindTemplate.to(e=>{e.target===i.element&&e.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new l5(this):new l2(this)}render(){for(let e of(super.render(),this.items))this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t,i){let n=lZ(e),o=i||n.removeItems,r=this._cleanItemsConfiguration(n.items,t,o).map(e=>I(e)?this._createNestedToolbarDropdown(e,t,o):"|"===e?new lY:"-"===e?new lQ:t.create(e)).filter(e=>e);this.items.addMany(r)}_cleanItemsConfiguration(e,t,i){let n=e.filter((e,n,o)=>"|"===e||-1===i.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||(m("toolbarview-line-break-ignored-when-grouping-items",o),!1):!(!I(e)&&!t.has(e))||(m("toolbarview-item-unavailable",{name:e}),!1)));return this._cleanSeparatorsAndLineBreaks(n)}_cleanSeparatorsAndLineBreaks(e){let t=e=>"-"!==e&&"|"!==e,i=e.length,n=e.findIndex(t);if(-1===n)return[];let o=i-e.slice().reverse().findIndex(t);return e.slice(n,o).filter((e,i,n)=>!!t(e)||!(i>0&&n[i-1]===e))}_createNestedToolbarDropdown(e,t,i){let{label:n,icon:o,items:r,tooltip:s=!0,withText:a=!1}=e;if(!(r=this._cleanItemsConfiguration(r,t,i)).length)return null;let l=ce(this.locale);return n||m("toolbarview-nested-toolbar-dropdown-missing-label",e),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:n,tooltip:s,withText:!!a}),!1!==o?l.buttonView.icon=lX[o]||o||lX.threeVerticalDots:l.buttonView.withText=!0,ct(l,[]),l.toolbarView.fillFromConfig(r,t,i),l}}class l1 extends lc{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class l2{constructor(e){let t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using(e=>e),e.focusables.bindTo(e.items).using(e=>e),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class l5{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.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),e.children.on("add",this._updateFocusCycleableItems.bind(this)),e.children.on("remove",this._updateFocusCycleableItems.bind(this)),e.items.on("change",(e,t)=>{let i=t.index;for(let e of t.removed)i>=this.ungroupedItems.length?this.groupedItems.remove(e):this.ungroupedItems.remove(e);for(let e=i;ethis.ungroupedItems.length?this.groupedItems.add(n,e-this.ungroupedItems.length):this.ungroupedItems.add(n,e)}this._updateGrouping()}),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){let e;if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!rw(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);let t=this.groupedItems.length;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;let e=this.viewElement,t=this.viewLocale.uiLanguageDirection,i=new rT(e.lastChild),n=new rT(e);if(!this.cachedPadding){let i=iC.window.getComputedStyle(e);this.cachedPadding=Number.parseInt(i["ltr"===t?"paddingRight":"paddingLeft"])}return"ltr"===t?i.right>n.right-this.cachedPadding:i.left{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 lY),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(){let e=this.viewLocale,t=e.t,i=ce(e);return i.class="ck-toolbar__grouped-dropdown",i.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",ct(i,[]),i.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:lD}),i.toolbarView.items.bindTo(this.groupedItems).using(e=>e),i}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(e=>{this.viewFocusables.add(e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var l4=r(1046);ok()(l4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),l4.Z.locals;class l3 extends lc{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new rA,this.keystrokes=new rC,this._focusCycler=new lG({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){for(let e of(super.render(),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)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class l7 extends lc{constructor(e){super(e);let 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)]},children:this.children})}focus(){this.children.first.focus()}}class l6 extends lc{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var l9=r(7339);ok()(l9.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),l9.Z.locals;var l8=r(3949);function ce(e,t=lV){let i=new t(e),n=new lW(e),o=new l$(e,i,n);return i.bind("isEnabled").to(o),i instanceof lV?i.bind("isOn").to(o,"isOpen"):i.arrowView.bind("isOn").to(o,"isOpen"),o.on("render",()=>{lS({emitter:o,activator:()=>o.isOpen,callback:()=>{o.isOpen=!1},contextElements:[o.element]})}),o.on("execute",e=>{e.source instanceof lO||(o.isOpen=!1)}),o.focusTracker.on("change:isFocused",(e,t,i)=>{o.isOpen&&!i&&(o.isOpen=!1)}),o.keystrokes.set("arrowdown",(e,t)=>{o.isOpen&&(o.panelView.focus(),t())}),o.keystrokes.set("arrowup",(e,t)=>{o.isOpen&&(o.panelView.focusLast(),t())}),o.on("change:isOpen",(e,t,i)=>{i||o.panelView.element.contains(iC.document.activeElement)&&o.buttonView.focus()}),o.on("change:isOpen",(e,t,i)=>{i&&o.panelView.focus()},{priority:"low"}),o}function ct(e,t,i={}){let n=e.locale,o=n.t,r=e.toolbarView=new l0(n);r.set("ariaLabel",o("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map(e=>r.items.add(e)),i.enableActiveItemFocusOnDropdownOpen&&cn(e,()=>r.items.find(e=>e.isOn)),e.panelView.children.add(r),r.items.delegate("execute").to(e)}function ci(e,t){let i=e.locale,n=e.listView=new l3;n.items.bindTo(t).using(({type:e,model:t})=>{if("separator"===e)return new l6(i);if("button"===e||"switchbutton"===e){let n,o=new l7(i);return(n="button"===e?new lj(i):new lO(i)).bind(...Object.keys(t)).to(t),n.delegate("execute").to(o),o.children.add(n),o}}),e.panelView.children.add(n),n.items.delegate("execute").to(e),cn(e,()=>n.items.find(e=>e instanceof l7&&e.children.first.isOn))}function cn(e,t){e.on("change:isOpen",()=>{if(!e.isOpen)return;let i=t();i&&("function"==typeof i.focus?i.focus():m("ui-dropdown-focus-child-on-open-child-missing-focus",{view:i}))},{priority:u.low-10})}ok()(l8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),l8.Z.locals;var co=r(9688);ok()(co.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),co.Z.locals;class cr extends lc{constructor(e){super(e),this.body=new lN(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var cs=r(3662);ok()(cs.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cs.Z.locals;class ca extends lc{constructor(e){super(e),this.set("text"),this.set("for"),this.id=`ck-editor__label_${h()}`;let t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}class cl extends lc{constructor(e,t,i){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=i,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){let e=this._editingView;function t(t){e.change(i=>{let n=e.document.getRoot(t.name);i.addClass(t.isFocused?"ck-focused":"ck-blurred",n),i.removeClass(t.isFocused?"ck-blurred":"ck-focused",n)})}e.isRenderingInProgress?function i(n){e.once("change:isRenderingInProgress",(e,o,r)=>{r?i(n):t(n)})}(this):t(this)}}class cc extends cl{constructor(e,t,i,n={}){super(e,t,i);let o=e.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=n.label||(()=>o("Editor editing area: %0",this.name))}render(){super.render();let e=this._editingView;e.change(t=>{let i=e.document.getRoot(this.name);t.setAttribute("aria-label",this._generateLabel(this),i)})}}var cd=r(8847);ok()(cd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cd.Z.locals;var ch=r(4879);ok()(ch.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ch.Z.locals;class cu extends lc{constructor(e){super(e),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById"),this.focusTracker=new rA,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0),this.set("inputMode","text");let t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),readonly:t.to("isReadOnly"),inputmode:t.to("inputMode"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById")},on:{input:t.to((...e)=>{this.fire("input",...e),this._updateIsEmpty()}),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(e,t,i)=>{this._setDomElementValue(i),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(e){this.element.value=e||0===e?e:""}}class cg extends cu{constructor(e){super(e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var cp=r(2577);ok()(cp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cp.Z.locals;class cm extends lc{constructor(e,t){super(e);let i=`ck-labeled-field-view-${h()}`,n=`ck-labeled-field-view-status-${h()}`;this.fieldView=t(this,i,n),this.set("label"),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.set("placeholder"),this.labelView=this._createLabelView(i),this.statusView=this._createStatusView(n),this.bind("_statusText").to(this,"errorText",this,"infoText",(e,t)=>e||t);let o=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",o.to("class"),o.if("isEnabled","ck-disabled",e=>!e),o.if("isEmpty","ck-labeled-field-view_empty"),o.if("isFocused","ck-labeled-field-view_focused"),o.if("placeholder","ck-labeled-field-view_placeholder"),o.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[this.fieldView,this.labelView]},this.statusView]})}_createLabelView(e){let t=new ca(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){let t=new lc(this.locale),i=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",i.if("errorText","ck-labeled-field-view__status_error"),i.if("_statusText","ck-hidden",e=>!e)],id:e,role:i.if("errorText","alert")},children:[{text:i.to("_statusText")}]}),t}focus(){this.fieldView.focus()}}function cf(e,t,i){let n=new cg(e.locale);return n.set({id:t,ariaDescribedById:i}),n.bind("isReadOnly").to(e,"isEnabled",e=>!e),n.bind("hasError").to(e,"errorText",e=>!!e),n.on("input",()=>{e.errorText=null}),e.bind("isEmpty","isFocused","placeholder").to(n),n}class cb extends iD{static get pluginName(){return"Notification"}init(){this.on("show:warning",(e,t)=>{window.alert(t.message)},{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){let t=`show:${e.type}`+(e.namespace?`:${e.namespace}`:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}class ck{constructor(e,t){t&&o3(this,t),e&&this.set(e)}}H(ck,j);var cw=r(4650);ok()(cw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cw.Z.locals;var c_=r(7676);ok()(c_.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),c_.Z.locals;let cA=e=>e+"px";class cC extends W{static get pluginName(){return"ContextualBalloon"}constructor(e){super(e),this.positionLimiter=()=>{let e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.set("visibleView",null),this.view=new lf(e.locale),e.ui.view.body.add(this.view),e.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this.hasView(e.view))throw new p("contextualballoon-add-view-exist",[this,e]);let 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));let i=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),i.set(e.view,e),this._viewToStack.set(e.view,i),i===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new p("contextualballoon-remove-view-not-exist",[this,e]);let t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;let t=this._idToStack.get(e);if(!t)throw new p("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){return Array.from(this._idToStack.entries()).find(t=>t[1]===e)[0]}_showNextStack(){let e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){let e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){let e=new cv(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>1),e.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(e,i)=>i<2?"":t("%0 of %1",[Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1,i])),e.buttonNextView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),e.buttonPrevView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),e}_createFakePanelsView(){let e=new cy(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>=2?Math.min(e-1,2):0),e.listenTo(this.view,"change:top",()=>e.updatePosition()),e.listenTo(this.view,"change:left",()=>e.updatePosition()),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:i=!0,singleViewMode:n=!1}){this.view.class=t,this.view.withArrow=i,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),n&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}}class cv extends lc{constructor(e){super(e);let t=e.t,i=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new rA,this.buttonPrevView=this._createButtonView(t("Previous"),''),this.buttonNextView=this._createButtonView(t("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",i.to("isNavigationVisible",e=>e?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:i.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){let i=new lj(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i}}class cy extends lc{constructor(e,t){super(e);let i=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",i.to("numberOfPanels",e=>e?"":"ck-hidden")],style:{top:i.to("top",cA),left:i.to("left",cA),width:i.to("width",cA),height:i.to("height",cA)}},children:this.content}),this.on("change:numberOfPanels",(e,t,i,n)=>{i>n?this._addPanels(i-n):this._removePanels(n-i),this.updatePosition()})}_addPanels(e){for(;e--;){let e=new lc;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){let e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){let{top:e,left:t}=this._balloonPanelView,{width:i,height:n}=new rT(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:i,height:n})}}}var cx=r(5868);ok()(cx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cx.Z.locals;class cE extends W{static get pluginName(){return"BalloonToolbar"}static get requires(){return[cC]}constructor(e){super(e),this._balloonConfig=lZ(e.config.get("balloonToolbar")),this.toolbarView=this._createToolbarView(),this.focusTracker=new rA,e.ui.once("ready",()=>{this.focusTracker.add(e.ui.getEditableElement()),this.focusTracker.add(this.toolbarView.element)}),e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this.show(!0),afterBlur:()=>this.hide(),isContextual:!0}),this._resizeObserver=null,this._balloon=e.plugins.get(cC),this._fireSelectionChangeDebounced=rd(()=>this.fire("_selectionChangeDebounced"),200),this.decorate("show")}init(){let e=this.editor,t=e.model.document.selection;this.listenTo(this.focusTracker,"change:isFocused",(e,t,i)=>{let n=this._balloon.visibleView===this.toolbarView;!i&&n?this.hide():i&&this.show()}),this.listenTo(t,"change:range",(e,i)=>{(i.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",()=>{let t=e.ui.view.editable.element;this._resizeObserver=new rk(t,()=>{this.toolbarView.maxWidth=.9*new rT(t).width+"px"})}),this.listenTo(this.toolbarView,"groupedItemsUpdate",()=>{this._updatePosition()})}afterInit(){let e=this.editor.ui.componentFactory;this.toolbarView.fillFromConfig(this._balloonConfig,e)}_createToolbarView(){let e=this.editor.locale.t,t=!this._balloonConfig.shouldNotGroupWhenFull,i=new l0(this.editor.locale,{shouldGroupWhenFull:t,isFloating:!0});return i.ariaLabel=e("Editor contextual toolbar"),i.render(),i}show(e=!1){let t=this.editor,i=t.model.document.selection,n=t.model.schema;this._balloon.hasView(this.toolbarView)||i.isCollapsed&&!e||1!==i.rangeCount&&[...i.getRanges()].every(e=>{let t=e.getContainedElement();return t&&n.isSelectable(t)})||Array.from(this.toolbarView.items).every(e=>void 0!==e.isEnabled&&!e.isEnabled)||(this.listenTo(this.editor.ui,"update",()=>{this._updatePosition()}),this._balloon.add({view:this.toolbarView,position:this._getBalloonPositionData(),balloonClassName:"ck-toolbar-container"}))}hide(){this._balloon.hasView(this.toolbarView)&&(this.stopListening(this.editor.ui,"update"),this._balloon.remove(this.toolbarView))}_getBalloonPositionData(){let e=this.editor.editing.view,t=e.document,i=t.selection,n=t.selection.isBackward;return{target:()=>{let t=n?i.getFirstRange():i.getLastRange(),o=rT.getDomRangeRects(e.domConverter.viewRangeToDom(t));return n?o[0]:(o.length>1&&0===o[o.length-1].width&&o.pop(),o[o.length-1])},positions:this._getBalloonPositions(n)}}_updatePosition(){this._balloon.updatePosition(this._getBalloonPositionData())}destroy(){super.destroy(),this.stopListening(),this._fireSelectionChangeDebounced.cancel(),this.toolbarView.destroy(),this.focusTracker.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_getBalloonPositions(e){let t=nV.isSafari&&nV.isiOS?lk({heightOffset:Math.max(lf.arrowHeightOffset,Math.round(20/iC.window.visualViewport.scale))}):lf.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 cD=r(9695);ok()(cD.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cD.Z.locals;class cT extends lj{constructor(e){super(e);let 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=>e+"px"),left:t.to("left",e=>e+"px")}}})}}class cS extends lv{constructor(e,t){super(e),this.view=t}get element(){return this.view.editable.element}init(){let e=this.editor,t=this.view,i=e.editing.view,n=t.editable;n.name=i.document.getRoot().rootName,t.render();let o=n.element;this.setEditableElement(n.name,o),n.bind("isFocused").to(this.focusTracker),i.attachDomRoot(o),this._initPlaceholder(),this.fire("ready")}destroy(){let e=this.view;this.editor.editing.view.detachDomRoot(e.editable.name),e.destroy(),super.destroy()}_initPlaceholder(){let e=this.editor,t=e.editing.view,i=t.document.getRoot(),n=e.sourceElement,o=e.config.get("placeholder")||n&&"textarea"===n.tagName.toLowerCase()&&n.getAttribute("placeholder");o&&aN({view:t,element:i,text:o,isDirectHost:!1,keepOnFocus:!0})}}class cI extends cr{constructor(e,t,i){super(e);let n=e.t;this.editable=new cc(e,t,i,{label:e=>n("Rich Text Editor. Editing area: %0",e.name)})}render(){super.render(),this.registerChild(this.editable)}}class cM extends aX{constructor(e,t={}){var i;if(!ip(e)&&void 0!==t.initialData)throw new p("editor-create-initial-data",null);super(t),void 0===this.config.get("initialData")&&this.config.set("initialData",ip(i=e)?i instanceof HTMLTextAreaElement?i.value:i.innerHTML:i),ip(e)&&(this.sourceElement=e,function(e){let t=e.sourceElement;if(t){if(t.ckeditorInstance)throw new p("editor-source-element-already-used",e);t.ckeditorInstance=e,e.once("destroy",()=>{delete t.ckeditorInstance})}}(this));let n=this.config.get("plugins");n.push(cE),this.config.set("plugins",n),this.config.define("balloonToolbar",this.config.get("toolbar")),this.model.document.createRoot();let o=new cI(this.locale,this.editing.view,this.sourceElement);this.ui=new cS(this,o),function(e){if(!ex(e.updateSourceElement))throw new p("attachtoform-missing-elementapi-interface",e);let t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){let i,n=t.form,o=()=>e.updateSourceElement();ex(n.submit)&&(i=n.submit,n.submit=()=>{o(),i.apply(n)}),n.addEventListener("submit",o),e.on("destroy",()=>{n.removeEventListener("submit",o),i&&(n.submit=i)})}}(this)}destroy(){let e=this.getData();return this.ui.destroy(),super.destroy().then(()=>{this.sourceElement&&this.updateSourceElement(e)})}static create(e,t={}){return new Promise(i=>{if(ip(e)&&"TEXTAREA"===e.tagName)throw new p("editor-wrong-element",null);let n=new this(e,t);i(n.initPlugins().then(()=>n.ui.init()).then(()=>n.data.init(n.config.get("initialData"))).then(()=>n.fire("ready")).then(()=>n))})}}H(cM,{setData(e){this.data.set(e)},getData(e){return this.data.get(e)}}),H(cM,{updateSourceElement(e=this.data.get()){var t,i;if(!this.sourceElement)throw new p("editor-missing-sourceelement",this);let n=this.config.get("updateSourceElementOnDestroy"),o=this.sourceElement instanceof HTMLTextAreaElement;t=this.sourceElement,i=n||o?e:"",t instanceof HTMLTextAreaElement&&(t.value=i),t.innerHTML=i}});class cN{constructor(e){let t,i;this.files=(t=Array.from(e.files||[]),i=Array.from(e.items||[]),t.length?t:i.filter(e=>"file"===e.kind).map(e=>e.getAsFile())),this._native=e}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}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}class cP extends o6{constructor(e){super(e);let t=this.document;function i(e){return(i,n)=>{n.preventDefault();let o=n.dropRange?[n.dropRange]:null,r=new c(t,e);t.fire(r,{dataTransfer:n.dataTransfer,method:i.name,targetRanges:o,target:n.target}),r.stop.called&&n.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(t,"paste",i("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",i("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",i("dragging"),{priority:"low"})}onDomEvent(e){var t;let i,n,o,r,s={dataTransfer:new cN(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"!=e.type&&"dragover"!=e.type||(t=this.view,n=e.target.ownerDocument,o=e.clientX,r=e.clientY,s.dropRange=(n.caretRangeFromPoint&&n.caretRangeFromPoint(o,r)?i=n.caretRangeFromPoint(o,r):e.rangeParent&&((i=n.createRange()).setStart(e.rangeParent,e.rangeOffset),i.collapse(!0)),i)?t.domConverter.domRangeToView(i):null),this.fire(e.type,e,s)}}let cB=["figcaption","li"];class cz extends W{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(cP),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){let e=this.editor,t=e.model,i=e.editing.view,n=i.document;this.listenTo(n,"clipboardInput",t=>{e.isReadOnly&&t.stop()},{priority:"highest"}),this.listenTo(n,"clipboardInput",(e,t)=>{var n;let o=t.dataTransfer,r=t.content||"";r||(o.getData("text/html")?r=o.getData("text/html").replace(/(\s+)<\/span>/g,(e,t)=>1==t.length?" ":t).replace(//g,""):o.getData("text/plain")&&(((n=(n=o.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||n.includes("
"))&&(n=`

${n}

`),r=n),r=this.editor.data.htmlProcessor.toView(r));let s=new c(this,"inputTransformation");this.fire(s,{content:r,dataTransfer:o,targetRanges:t.targetRanges,method:t.method}),s.stop.called&&e.stop(),i.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(e,i)=>{if(i.content.isEmpty)return;let n=this.editor.data.toModel(i.content,"$clipboardHolder");0!=n.childCount&&(e.stop(),t.change(()=>{this.fire("contentInsertion",{content:n,method:i.method,dataTransfer:i.dataTransfer,targetRanges:i.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(e,i)=>{i.resultRange=t.insertContent(i.content)},{priority:"low"})}_setupCopyCut(){let e=this.editor,t=e.model.document,i=e.editing.view.document;function n(n,o){let r=o.dataTransfer;o.preventDefault();let s=e.data.toView(e.model.getSelectedContent(t.selection));i.fire("clipboardOutput",{dataTransfer:r,content:s,method:n.name})}this.listenTo(i,"copy",n,{priority:"low"}),this.listenTo(i,"cut",(t,i)=>{e.isReadOnly?i.preventDefault():n(t,i)},{priority:"low"}),this.listenTo(i,"clipboardOutput",(i,n)=>{n.content.isEmpty||(n.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(n.content)),n.dataTransfer.setData("text/plain",function e(t){let i="";if(t.is("$text")||t.is("$textProxy"))i=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))i=t.getAttribute("alt");else if(t.is("element","br"))i="\n";else{let n=null;for(let o of t.getChildren()){let t=e(o);n&&(n.is("containerElement")||o.is("containerElement"))&&(cB.includes(n.name)||cB.includes(o.name)?i+="\n":i+="\n\n"),i+=t,n=o}}return i}(n.content))),"cut"==n.method&&e.model.deleteContent(t.selection)},{priority:"low"})}}function*cj(e,t){for(let i of t)i&&e.getAttributeProperties(i[0]).copyOnEnter&&(yield i)}class cL extends ${execute(){let e=this.editor.model,t=e.document;e.change(i=>{!function(e,t,i,n){let o=i.isCollapsed,r=i.getFirstRange(),s=r.start.parent,a=r.end.parent;if(n.isLimit(s)||n.isLimit(a))return o||s!=a||e.deleteContent(i);if(o){let e=cj(t.model.schema,i.getAttributes());cO(t,r.start),t.setSelectionAttribute(e)}else{let n=!(r.start.isAtStart&&r.end.isAtEnd),o=s==a;e.deleteContent(i,{leaveUnmerged:n}),n&&(o?cO(t,i.focus):t.setSelection(a,0))}}(this.editor.model,i,t.selection,e.schema),this.fire("afterExecute",{writer:i})})}}function cO(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}class cR extends oF{constructor(e){super(e);let t=this.document;t.on("keydown",(e,i)=>{if(this.isEnabled&&i.keyCode==nq.enter){let n=new nD(t,"enter",t.selection.getFirstRange());t.fire(n,new o7(t,i.domEvent,{isSoft:i.shiftKey})),n.stop.called&&e.stop()}})}observe(){}}class cF extends W{static get pluginName(){return"Enter"}init(){let e=this.editor,t=e.editing.view,i=t.document;t.addObserver(cR),e.commands.add("enter",new cL(e)),this.listenTo(i,"enter",(i,n)=>{n.preventDefault(),n.isSoft||(e.execute("enter"),t.scrollToTheSelection())},{priority:"low"})}}class cV{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}input(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}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){this.isLocked&&!e||(this._batch=null,this.size=0)}}class cU extends ${constructor(e,t){super(e),this.direction=t,this._buffer=new cV(e.model,e.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(e={}){let t=this.editor.model,i=t.document;t.enqueueChange(this._buffer.batch,n=>{this._buffer.lock();let o=n.createSelection(e.selection||i.selection),r=e.sequence||1,s=o.isCollapsed;if(o.isCollapsed&&t.modifySelection(o,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(r))return void this._replaceEntireContentWithParagraph(n);if(this._shouldReplaceFirstBlockWithParagraph(o,r))return void this.editor.execute("paragraph",{selection:o});if(o.isCollapsed)return;let a=0;o.getFirstRange().getMinimalFlatRanges().forEach(e=>{a+=ny(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(o,{doNotResetEntireContent:s,direction:this.direction}),this._buffer.input(a),n.setSelection(o),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;let t=this.editor.model,i=t.document.selection,n=t.schema.getLimitElement(i);if(!(i.isCollapsed&&i.containsEntireContent(n))||!t.schema.checkChild(n,"paragraph"))return!1;let o=n.getChild(0);return!o||"paragraph"!==o.name}_replaceEntireContentWithParagraph(e){let t=this.editor.model,i=t.document.selection,n=t.schema.getLimitElement(i),o=e.createElement("paragraph");e.remove(e.createRangeIn(n)),e.insert(o,n),e.setSelection(o,0)}_shouldReplaceFirstBlockWithParagraph(e,t){let i=this.editor.model;if(t>1||"backward"!=this.direction||!e.isCollapsed)return!1;let n=e.getFirstPosition(),o=i.schema.getLimitElement(n),r=o.getChild(0);return n.parent==r&&!!e.containsEntireContent(r)&&!!i.schema.checkChild(o,"paragraph")&&"paragraph"!=r.name}}function cH(e){if(e.newChildren.length-e.oldChildren.length!=1)return;let t=function(e,t){let i=[],n=0,o=null;return e.forEach(e=>{"equal"==e?(r(),n++):"insert"==e?(o&&"insert"==o.type?o.values.push(t[n]):(r(),o={type:"insert",index:n,values:[t[n]]}),n++):o&&"delete"==o.type?o.howMany++:(r(),o={type:"delete",index:n,howMany:1})}),r(),i;function r(){o&&(i.push(o),o=null)}}(ou(e.oldChildren,e.newChildren,cW),e.newChildren);if(t.length>1)return;let i=t[0];return i.values[0]&&i.values[0].is("$text")?i:void 0}function cW(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}function cq(e,t){let i=t.selection,n=e.shiftKey&&e.keyCode===nq.delete,o=!i.isCollapsed;return n&&o}class c$ extends oF{constructor(e){super(e);let t=e.document,i=0;function n(e,i,n){let o=new nD(t,"delete",t.selection.getFirstRange());t.fire(o,new o7(t,i,n)),o.stop.called&&e.stop()}t.on("keyup",(e,t)=>{t.keyCode!=nq.delete&&t.keyCode!=nq.backspace||(i=0)}),t.on("keydown",(e,o)=>{if(nV.isWindows&&cq(o,t))return;let r={};if(o.keyCode==nq.delete)r.direction="forward",r.unit="character";else{if(o.keyCode!=nq.backspace)return;r.direction="backward",r.unit="codePoint"}r.unit=(nV.isMac?o.altKey:o.ctrlKey)?"word":r.unit,r.sequence=++i,n(e,o.domEvent,r)}),nV.isAndroid&&t.on("beforeinput",(t,i)=>{if("deleteContentBackward"!=i.domEvent.inputType)return;let o={unit:"codepoint",direction:"backward",sequence:1},r=i.domTarget.ownerDocument.defaultView.getSelection();r.anchorNode==r.focusNode&&r.anchorOffset+1!=r.focusOffset&&(o.selectionToRemove=e.domConverter.domSelectionToView(r)),n(t,i.domEvent,o)})}observe(){}}class cG extends W{static get pluginName(){return"Delete"}init(){let e=this.editor,t=e.editing.view,i=t.document,n=e.model.document;t.addObserver(c$),this._undoOnBackspace=!1;let o=new cU(e,"forward");if(e.commands.add("deleteForward",o),e.commands.add("forwardDelete",o),e.commands.add("delete",new cU(e,"backward")),this.listenTo(i,"delete",(i,n)=>{let o={unit:n.unit,sequence:n.sequence};if(n.selectionToRemove){let t=e.model.createSelection(),i=[];for(let t of n.selectionToRemove.getRanges())i.push(e.editing.mapper.toModelRange(t));t.setTo(i),o.selection=t}e.execute("forward"==n.direction?"deleteForward":"delete",o),n.preventDefault(),t.scrollToTheSelection()},{priority:"low"}),nV.isAndroid){let e=null;this.listenTo(i,"delete",(t,i)=>{let n=i.domTarget.ownerDocument.defaultView.getSelection();e={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}},{priority:"lowest"}),this.listenTo(i,"keyup",(t,i)=>{if(e){let t=i.domTarget.ownerDocument.defaultView.getSelection();t.collapse(e.anchorNode,e.anchorOffset),t.extend(e.focusNode,e.focusOffset),e=null}})}this.editor.plugins.has("UndoEditing")&&(this.listenTo(i,"delete",(t,i)=>{this._undoOnBackspace&&"backward"==i.direction&&1==i.sequence&&"codePoint"==i.unit&&(this._undoOnBackspace=!1,e.execute("undo"),i.preventDefault(),t.stop())},{context:"$capture"}),this.listenTo(n,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class cK{constructor(){this._stack=[]}add(e,t){let i=this._stack,n=i[0];this._insertDescriptor(e);let o=i[0];n===o||cY(n,o)||this.fire("change:top",{oldDescriptor:n,newDescriptor:o,writer:t})}remove(e,t){let i=this._stack,n=i[0];this._removeDescriptor(e);let o=i[0];n===o||cY(n,o)||this.fire("change:top",{oldDescriptor:n,newDescriptor:o,writer:t})}_insertDescriptor(e){var t,i;let n=this._stack,o=n.findIndex(t=>t.id===e.id);if(cY(e,n[o]))return;o>-1&&n.splice(o,1);let r=0;for(;n[r]&&(t=n[r],i=e,t.priority>i.priority||!(t.prioritycQ(i.classes));)r++;n.splice(r,0,e)}_removeDescriptor(e){let t=this._stack,i=t.findIndex(t=>t.id===e);i>-1&&t.splice(i,1)}}function cY(e,t){return e&&t&&e.priority==t.priority&&cQ(e.classes)==cQ(t.classes)}function cQ(e){return Array.isArray(e)?e.sort().join(","):e}H(cK,v);let cZ="ck-widget_selected";function cJ(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function cX(e,t,i={}){var n;let o;if(!e.is("containerElement"))throw new p("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=c3,i.label&&(n=i.label,t.setCustomProperty("widgetLabel",n,e)),i.hasSelectionHandle&&(o=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(e){let t=this.toDomElement(e),i=new lB;return i.set("content",''),i.render(),t.appendChild(i.element),t}),t.insert(t.createPositionAt(e,0),o),t.addClass(["ck-widget_with-selection-handle"],e)),c2(e,t),e}function c0(e,t,i){if(t.classes&&i.addClass(iA(t.classes),e),t.attributes)for(let n in t.attributes)i.setAttribute(n,t.attributes[n],e)}function c1(e,t,i){if(t.classes&&i.removeClass(iA(t.classes),e),t.attributes)for(let n in t.attributes)i.removeAttribute(n,e)}function c2(e,t,i=c0,n=c1){let o=new cK;o.on("change:top",(t,o)=>{o.oldDescriptor&&n(e,o.oldDescriptor,o.writer),o.newDescriptor&&i(e,o.newDescriptor,o.writer)}),t.setCustomProperty("addHighlight",(e,t,i)=>o.add(t,i),e),t.setCustomProperty("removeHighlight",(e,t,i)=>o.remove(t,i),e)}function c5(e,t,i={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("role","textbox",e),i.label&&t.setAttribute("aria-label",i.label,e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(i,n,o)=>{t.setAttribute("contenteditable",o?"false":"true",e)}),e.on("change:isFocused",(i,n,o)=>{o?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)}),c2(e,t),e}function c4(e,t){let i=e.getSelectedElement();if(i){let n=c9(e);if(n)return t.createRange(t.createPositionAt(i,n))}return aY(e,t)}function c3(){return null}let c7="widget-type-around";function c6(e,t,i){return e&&cJ(e)&&!i.isInline(t)}function c9(e){return e.getAttribute(c7)}let c8=[nG("arrowUp"),nG("arrowRight"),nG("arrowDown"),nG("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let e=112;e<=135;e++)c8.push(e);function de(e){return!(!e.ctrlKey&&!e.metaKey)||c8.includes(e.keyCode)}var dt=r(4921);ok()(dt.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),dt.Z.locals;let di=["before","after"],dn=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,dr="ck-widget__type-around_disabled";class ds extends W{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[cF,cG]}constructor(e){super(e),this._currentFakeCaretModelElement=null}init(){let e=this.editor,t=e.editing.view;this.on("change:isEnabled",(i,n,o)=>{t.change(e=>{for(let i of t.document.roots)o?e.removeClass(dr,i):e.addClass(dr,i)}),o||e.model.change(e=>{e.removeSelectionAttribute(c7)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(e,t){let i=this.editor,n=i.editing.view,o=i.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);i.execute("insertParagraph",{position:i.model.createPositionAt(e,t),attributes:o}),n.focus(),n.scrollToTheSelection()}_listenToIfEnabled(e,t,i,n){this.listenTo(e,t,(...e)=>{this.isEnabled&&i(...e)},n)}_insertParagraphAccordingToFakeCaretPosition(){let e=this.editor.model.document.selection,t=c9(e);if(!t)return!1;let i=e.getSelectedElement();return this._insertParagraph(i,t),!0}_enableTypeAroundUIInjection(){let e=this.editor,t=e.model.schema,i=e.locale.t,n={before:i("Insert paragraph before block"),after:i("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(e,i,o)=>{var r;let s,a=o.mapper.toViewElement(i.item);c6(a,i.item,t)&&(r=o.writer,s=r.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(e){let t,i=this.toDomElement(e);return function(e,t){for(let i of di){let n=new a5({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${i}`],title:t[i]},children:[e.ownerDocument.importNode(dn,!0)]});e.appendChild(n.render())}}(i,n),t=new a5({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}}),i.appendChild(t.render()),i}),r.insert(r.createPositionAt(a,"end"),s))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){let e=this.editor,t=e.model,i=t.document.selection,n=t.schema,o=e.editing.view;function r(e){return`ck-widget_type-around_show-fake-caret_${e}`}this._listenToIfEnabled(o.document,"arrowKey",(e,t)=>{this._handleArrowKeyPress(e,t)},{context:[cJ,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",(t,i)=>{i.directChange&&e.model.change(e=>{e.removeSelectionAttribute(c7)})}),this._listenToIfEnabled(t.document,"change:data",()=>{let t=i.getSelectedElement();t&&c6(e.editing.mapper.toViewElement(t),t,n)||e.model.change(e=>{e.removeSelectionAttribute(c7)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(e,t,i)=>{let o=i.writer;if(this._currentFakeCaretModelElement){let e=i.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(o.removeClass(di.map(r),e),this._currentFakeCaretModelElement=null)}let s=t.selection.getSelectedElement();if(!s)return;let a=i.mapper.toViewElement(s);if(!c6(a,s,n))return;let l=c9(t.selection);l&&(o.addClass(r(l),a),this._currentFakeCaretModelElement=s)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(t,i,n)=>{n||e.model.change(e=>{e.removeSelectionAttribute(c7)})})}_handleArrowKeyPress(e,t){let i,n,o=this.editor,r=o.model,s=r.document.selection,a=r.schema,l=o.editing.view,c="down"===(n=nQ(t.keyCode,o.locale.contentLanguageDirection))||"right"===n,d=l.document.selection.getSelectedElement();c6(d,o.editing.mapper.toModelElement(d),a)?i=this._handleArrowKeyPressOnSelectedWidget(c):s.isCollapsed?i=this._handleArrowKeyPressWhenSelectionNextToAWidget(c):t.shiftKey||(i=this._handleArrowKeyPressWhenNonCollapsedSelection(c)),i&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){let t=this.editor.model,i=c9(t.document.selection);return t.change(t=>i?i!==(e?"after":"before")&&(t.removeSelectionAttribute(c7),!0):(t.setSelectionAttribute(c7,e?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){let t=this.editor,i=t.model,n=i.schema,o=t.plugins.get("Widget"),r=o._getObjectElementNextToSelection(e);return!!c6(t.editing.mapper.toViewElement(r),r,n)&&(i.change(t=>{o._setSelectionOverElement(r),t.setSelectionAttribute(c7,e?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){let t=this.editor,i=t.model,n=i.schema,o=t.editing.mapper,r=i.document.selection,s=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!c6(o.toViewElement(s),s,n)&&(i.change(t=>{t.setSelection(s,"on"),t.setSelectionAttribute(c7,e?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){let e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(i,n)=>{var o;let r,s=n.domTarget.closest(".ck-widget__type-around__button");if(!s)return;let a=s.classList.contains("ck-widget__type-around__button_before")?"before":"after",l=(o=t.domConverter,r=s.closest(".ck-widget"),o.mapDomToView(r)),c=e.editing.mapper.toModelElement(l);this._insertParagraph(c,a),n.preventDefault(),i.stop()})}_enableInsertingParagraphsOnEnterKeypress(){let e=this.editor,t=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",(i,n)=>{let o;if("atTarget"!=i.eventPhase)return;let r=t.getSelectedElement(),s=e.editing.mapper.toViewElement(r),a=e.model.schema;this._insertParagraphAccordingToFakeCaretPosition()?o=!0:c6(s,r,a)&&(this._insertParagraph(r,n.isSoft?"before":"after"),o=!0),o&&(n.preventDefault(),i.stop())},{context:cJ})}_enableInsertingParagraphsOnTypingKeystroke(){let e=this.editor.editing.view,t=[nq.enter,nq.delete,nq.backspace];this._listenToIfEnabled(e.document,"keydown",(e,i)=>{t.includes(i.keyCode)||de(i)||this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){let e=this.editor,t=e.editing.view,i=e.model,n=i.schema;this._listenToIfEnabled(t.document,"delete",(t,o)=>{if("atTarget"!=t.eventPhase)return;let r=c9(i.document.selection);if(!r)return;let s=o.direction,a=i.document.selection.getSelectedElement(),l="forward"==s;if("before"===r===l)e.execute("delete",{selection:i.createSelection(a,"on")});else{let t=n.getNearestSelectionRange(i.createPositionAt(a,r),s);if(t)if(t.isCollapsed){let o=i.createSelection(t.start);if(i.modifySelection(o,{direction:s}),o.focus.isEqual(t.start)){let e=function(e,t){let i=t;for(let n of t.getAncestors({parentFirst:!0})){if(n.childCount>1||e.isLimit(n))break;i=n}return i}(n,t.start.parent);i.deleteContent(i.createSelection(e,"on"),{doNotAutoparagraph:!0})}else i.change(i=>{i.setSelection(t),e.execute(l?"deleteForward":"delete")})}else i.change(i=>{i.setSelection(t),e.execute(l?"deleteForward":"delete")})}o.preventDefault(),t.stop()},{context:cJ})}_enableInsertContentIntegration(){let e=this.editor,t=this.editor.model,i=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(e,[n,o])=>{if(o&&!o.is("documentSelection"))return;let r=c9(i);return r?(e.stop(),t.change(e=>{let o=i.getSelectedElement(),s=t.createPositionAt(o,r),a=e.createSelection(s),l=t.insertContent(n,a);return e.setSelection(a),l})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){let e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(e,i)=>{let[,n,,o={}]=i;if(n&&!n.is("documentSelection"))return;let r=c9(t);r&&(o.findOptimalPosition=r,i[3]=o)},{priority:"high"})}_enableDeleteContentIntegration(){let e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(e,[i])=>{(!i||i.is("documentSelection"))&&c9(t)&&e.stop()},{priority:"high"})}}function da(e,t,i){let n=e.schema,o=e.createRangeIn(t.root),r="forward"==i?"elementStart":"elementEnd";for(let{previousPosition:e,item:s,type:a}of o.getWalker({startPosition:t,direction:i})){if(n.isLimit(s)&&!n.isInline(s))return e;if(a==r&&n.isBlock(s))break}return null}function dl(e,t,i){let n="backward"==i?t.end:t.start;if(e.checkChild(n,"$text"))return n;for(let{nextPosition:n}of t.getWalker({direction:i}))if(e.checkChild(n,"$text"))return n;return null}var dc=r(3488);ok()(dc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),dc.Z.locals;class dd extends W{static get pluginName(){return"Widget"}static get requires(){return[ds,cG]}init(){var e;let t,i=this.editor,n=i.editing.view,o=n.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(e,t,n)=>{let o,r=n.writer,s=t.selection;if(s.isCollapsed)return;let a=s.getSelectedElement();if(!a)return;let l=i.editing.mapper.toViewElement(a);cJ(l)&&n.consumable.consume(s,"selection")&&r.setSelection(r.createRangeOn(l),{fake:!0,label:(o=l.getCustomProperty("widgetLabel"))?"function"==typeof o?o():o:""})}),this.editor.editing.downcastDispatcher.on("selection",(e,t,i)=>{this._clearPreviouslySelectedWidgets(i.writer);let n=i.writer,o=n.document.selection,r=null;for(let e of o.getRanges())for(let t of e){var s,a;let e=t.item;cJ(e)&&(s=e,!((a=r)&&Array.from(s.getAncestors()).includes(a)))&&(n.addClass(cZ,e),this._previouslySelected.add(e),r=e)}},{priority:"low"}),n.addObserver(a$),this.listenTo(o,"mousedown",(...e)=>this._onMousedown(...e)),this.listenTo(o,"arrowKey",(...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)},{context:[cJ,"$text"]}),this.listenTo(o,"arrowKey",(...e)=>{this._preventDefaultOnArrowKeyPress(...e)},{context:"$root"}),this.listenTo(o,"arrowKey",(t=(e=this.editor.editing).model,(i,n)=>{let o=n.keyCode==nq.arrowup,r=n.keyCode==nq.arrowdown,s=n.shiftKey,a=t.document.selection;if(!o&&!r||s&&!a.isCollapsed&&a.isBackward==r)return;let l=function(e,t,i){let n=e.model;if(i){let e=t.isCollapsed?t.focus:t.getLastPosition(),i=da(n,e,"forward");if(!i)return null;let o=n.createRange(e,i),r=dl(n.schema,o,"backward");return r?n.createRange(e,r):null}{let e=t.isCollapsed?t.focus:t.getFirstPosition(),i=da(n,e,"backward");if(!i)return null;let o=n.createRange(i,e),r=dl(n.schema,o,"forward");return r?n.createRange(r,e):null}}(e,a,r);if(l){if(l.isCollapsed&&(a.isCollapsed||s))return;(l.isCollapsed||function(e,t,i){let n,o=e.model,r=e.view.domConverter;if(i){let e=o.createSelection(t.start);o.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=o.createRange(e.focus,t.end))}let s=e.mapper.toViewRange(t),a=r.viewRangeToDom(s);for(let e of rT.getDomRangeRects(a))if(void 0!==n){if(Math.round(e.top)>=n)return!1;n=Math.max(n,Math.round(e.bottom))}else n=Math.round(e.bottom);return!0}(e,l,r))&&(t.change(e=>{let i=r?l.end:l.start;if(s){let n=t.createSelection(a.anchor);n.setFocus(i),e.setSelection(n)}else e.setSelection(i)}),i.stop(),n.preventDefault(),n.stopPropagation())}}),{context:"$text"}),this.listenTo(o,"delete",(e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())},{context:"$root"})}_onMousedown(e,t){let i=this.editor,n=i.editing.view,o=n.document,r=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(cJ(e))break;e=e.parent}return!1}(r)){if((nV.isSafari||nV.isGecko)&&t.domEvent.detail>=3){let e=i.editing.mapper,n=r.is("attributeElement")?r.findAncestor(e=>!e.is("attributeElement")):r,o=e.toModelElement(n);t.preventDefault(),this.editor.model.change(e=>{e.setSelection(o,"in")})}return}if(!cJ(r)&&!(r=r.findAncestor(cJ)))return;nV.isAndroid&&t.preventDefault(),o.isFocused||n.focus();let s=i.editing.mapper.toModelElement(r);this._setSelectionOverElement(s)}_handleSelectionChangeOnArrowKeyPress(e,t){let i=t.keyCode,n=this.editor.model,o=n.schema,r=n.document.selection,s=r.getSelectedElement(),a=nQ(i,this.editor.locale.contentLanguageDirection),l="down"==a||"right"==a;if(s&&o.isObject(s)){let i=l?r.getLastPosition():r.getFirstPosition(),s=o.getNearestSelectionRange(i,l?"forward":"backward");return void(s&&(n.change(e=>{e.setSelection(s)}),t.preventDefault(),e.stop()))}if(!r.isCollapsed&&!t.shiftKey){let i=r.getFirstPosition(),s=r.getLastPosition(),a=i.nodeAfter,c=s.nodeBefore;return void((a&&o.isObject(a)||c&&o.isObject(c))&&(n.change(e=>{e.setSelection(l?s:i)}),t.preventDefault(),e.stop()))}if(!r.isCollapsed)return;let c=this._getObjectElementNextToSelection(l);if(c&&o.isObject(c)){if(o.isInline(c)&&("up"==a||"down"==a))return;this._setSelectionOverElement(c),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){let i=this.editor.model,n=i.schema,o=i.document.selection.getSelectedElement();o&&n.isObject(o)&&(t.preventDefault(),e.stop())}_handleDelete(e){if(this.editor.isReadOnly)return;let t=this.editor.model.document.selection;if(!t.isCollapsed)return;let i=this._getObjectElementNextToSelection(e);return i?(this.editor.model.change(e=>{let n=t.anchor.parent;for(;n.isEmpty;){let t=n;n=t.parent,e.remove(t)}this._setSelectionOverElement(i)}),!0):void 0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){let t=this.editor.model,i=t.schema,n=t.document.selection,o=t.createSelection(n);if(t.modifySelection(o,{direction:e?"forward":"backward"}),o.isEqual(n))return null;let r=e?o.focus.nodeBefore:o.focus.nodeAfter;return r&&i.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(let t of this._previouslySelected)e.removeClass(cZ,t);this._previouslySelected.clear()}}let dh=function(e,t,i){var n=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return I(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),rd(e,t,{leading:n,maxWait:t,trailing:o})};var du=r(903);ok()(du.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),du.Z.locals;class dg extends W{static get pluginName(){return"DragDrop"}static get requires(){return[cz,dd]}init(){let e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=dh(e=>this._updateDropMarker(e),40),this._removeDropMarkerDelayed=df(()=>this._removeDropMarker(),40),this._clearDraggableAttributesDelayed=df(()=>this._clearDraggableAttributes(),40),t.addObserver(cP),t.addObserver(a$),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(e,t,i)=>{i?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(e,t,i)=>{i||this._finalizeDragging(!1)}),nV.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){let e=this.editor,t=e.model,i=t.document,n=e.editing.view,o=n.document;this.listenTo(o,"dragstart",(n,r)=>{let s=i.selection;if(r.target&&r.target.is("editableElement"))return void r.preventDefault();let a=r.target?db(r.target):null;if(a){let i=e.editing.mapper.toModelElement(a);this._draggedRange=r6.fromRange(t.createRangeOn(i)),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!o.selection.isCollapsed){let e=o.selection.getSelectedElement();e&&cJ(e)||(this._draggedRange=r6.fromRange(s.getFirstRange()))}if(!this._draggedRange)return void r.preventDefault();this._draggingUid=h(),r.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",r.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);let l=t.createSelection(this._draggedRange.toRange()),c=e.data.toView(t.getSelectedContent(l));o.fire("clipboardOutput",{dataTransfer:r.dataTransfer,content:c,method:n.name}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(o,"dragend",(e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)},{priority:"low"}),this.listenTo(o,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(o,"dragleave",()=>{this._removeDropMarkerDelayed()}),this.listenTo(o,"dragging",(t,i)=>{if(!this.isEnabled)return void(i.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();let n=dp(e,i.targetRanges,i.target);this._draggedRange||(i.dataTransfer.dropEffect="copy"),nV.isGecko||("copy"==i.dataTransfer.effectAllowed?i.dataTransfer.dropEffect="copy":["all","copyMove"].includes(i.dataTransfer.effectAllowed)&&(i.dataTransfer.dropEffect="move")),n&&this._updateDropMarkerThrottled(n)},{priority:"low"})}_setupClipboardInputIntegration(){let e=this.editor,t=e.editing.view.document;this.listenTo(t,"clipboardInput",(t,i)=>{if("drop"!=i.method)return;let n=dp(e,i.targetRanges,i.target);(this._removeDropMarker(),n)?(this._draggedRange&&this._draggingUid!=i.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==dm(i.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(n,!0))?(this._finalizeDragging(!1),t.stop()):i.targetRanges=[e.editing.mapper.toViewRange(n)]:(this._finalizeDragging(!1),t.stop())},{priority:"high"})}_setupContentInsertionIntegration(){let e=this.editor.plugins.get(cz);e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;let i=t.targetRanges.map(e=>this.editor.editing.mapper.toModelRange(e));this.editor.model.change(e=>e.setSelection(i))},{priority:"high"}),e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;let i="move"==dm(t.dataTransfer),n=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(n&&i)},{priority:"lowest"})}_setupDraggableAttributeHandling(){let e=this.editor,t=e.editing.view,i=t.document;this.listenTo(i,"mousedown",(n,o)=>{if(nV.isAndroid||!o)return;this._clearDraggableAttributesDelayed.cancel();let r=db(o.target);if(nV.isBlink&&!e.isReadOnly&&!r&&!i.selection.isCollapsed){let e=i.selection.getSelectedElement();e&&cJ(e)||(r=i.selection.editableElement)}r&&(t.change(e=>{e.setAttribute("draggable","true",r)}),this._draggableElement=e.editing.mapper.toModelElement(r))}),this.listenTo(i,"mouseup",()=>{nV.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){let 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})}_setupDropMarker(){let e=this.editor;e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:i})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return i.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){let t=this.toDomElement(e);return t.append("⁠",e.createElement("span"),"⁠"),t})}})}_updateDropMarker(e){let t=this.editor,i=t.model.markers;t.model.change(t=>{i.has("drop-target")?i.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})})}_removeDropMarker(){let e=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),e.markers.has("drop-target")&&e.change(e=>{e.removeMarker("drop-target")})}_finalizeDragging(e){let t=this.editor,i=t.model;this._removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(e&&this.isEnabled&&i.deleteContent(i.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function dp(e,t,i){let n,o,r,s=e.model,a=e.editing.mapper,l=null,c=t?t[0].start:null;if(i.is("uiElement")&&(i=i.parent),l=function(e,t){let i=e.model,n=e.editing.mapper;if(cJ(t))return i.createRangeOn(n.toModelElement(t));if(!t.is("editableElement")){let e=t.findAncestor(e=>cJ(e)||e.is("editableElement"));if(cJ(e))return i.createRangeOn(n.toModelElement(e))}return null}(e,i))return l;let d=function(e,t){let i=e.editing.mapper,n=e.editing.view,o=i.toModelElement(t);if(o)return o;let r=n.createPositionBefore(t),s=i.findMappedViewAncestor(r);return i.toModelElement(s)}(e,i),h=c?a.toModelPosition(c):null;return h?(l=function(e,t,i){let n=e.model;if(!n.schema.checkChild(i,"$block"))return null;let o=n.createPositionAt(i,0),r=t.path.slice(0,o.path.length),s=n.createPositionFromPath(t.root,r).nodeAfter;return s&&n.schema.isObject(s)?n.createRangeOn(s):null}(e,h,d))||(l=s.schema.getNearestSelectionRange(h,nV.isGecko?"forward":"backward"))||function(e,t){let i=e.model;for(;t;){if(i.schema.isObject(t))return i.createRangeOn(t);t=t.parent}}(e,h.parent):(o=(n=e.model).schema,r=n.createPositionAt(d,0),o.getNearestSelectionRange(r,"forward"))}function dm(e){return nV.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function df(e,t){let i;function n(...o){n.cancel(),i=setTimeout(()=>e(...o),t)}return n.cancel=()=>{clearTimeout(i)},n}function db(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(cJ);if(cJ(e))return e;let t=e.findAncestor(e=>cJ(e)||e.is("editableElement"));return cJ(t)?t:null}class dk extends W{static get pluginName(){return"PastePlainText"}static get requires(){return[cz]}init(){let e=this.editor,t=e.model,i=e.editing.view,n=i.document,o=t.document.selection,r=!1;i.addObserver(cP),this.listenTo(n,"keydown",(e,t)=>{r=t.shiftKey}),e.plugins.get(cz).on("contentInsertion",(e,i)=>{(r||function(e,t){if(e.childCount>1)return!1;let i=e.getChild(0);return!t.isObject(i)&&0==[...i.getAttributeKeys()].length}(i.content,t.schema))&&t.change(e=>{let n=Array.from(o.getAttributes()).filter(([e])=>t.schema.getAttributeProperties(e).isFormatting);for(let r of(o.isCollapsed||t.deleteContent(o,{doNotAutoparagraph:!0}),n.push(...o.getAttributes()),e.createRangeIn(i.content).getItems()))r.is("$textProxy")&&e.setAttributes(n,r)})})}}class dw extends W{static get pluginName(){return"Clipboard"}static get requires(){return[cz,dg,dk]}}class d_ extends ${execute(){let e=this.editor.model,t=e.document;e.change(i=>{!function(e,t,i){let n=i.isCollapsed,o=i.getFirstRange(),r=o.start.parent,s=o.end.parent,a=r==s;if(n){let n=cj(e.schema,i.getAttributes());dA(e,t,o.end),t.removeSelectionAttribute(i.getAttributeKeys()),t.setSelectionAttribute(n)}else{let n=!(o.start.isAtStart&&o.end.isAtEnd);e.deleteContent(i,{leaveUnmerged:n}),a?dA(e,t,i.focus):n&&t.setSelection(s,0)}}(e,i,t.selection),this.fire("afterExecute",{writer:i})})}refresh(){let e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;let i=t.anchor;if(!i||!e.checkChild(i,"softBreak"))return!1;let n=t.getFirstRange(),o=n.start.parent,r=n.end.parent;return!(dC(o,e)||dC(r,e))||o===r}(e.schema,t.selection)}}function dA(e,t,i){let n=t.createElement("softBreak");e.insertContent(n,i),t.setSelection(n,"after")}function dC(e,t){return!e.is("rootElement")&&(t.isLimit(e)||dC(e.parent,t))}class dv extends W{static get pluginName(){return"ShiftEnter"}init(){let e=this.editor,t=e.model.schema,i=e.conversion,n=e.editing.view,o=n.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),i.for("upcast").elementToElement({model:"softBreak",view:"br"}),i.for("downcast").elementToElement({model:"softBreak",view:(e,{writer:t})=>t.createEmptyElement("br")}),n.addObserver(cR),e.commands.add("shiftEnter",new d_(e)),this.listenTo(o,"enter",(t,i)=>{i.preventDefault(),i.isSoft&&(e.execute("shiftEnter"),n.scrollToTheSelection())},{priority:"low"})}}class dy extends ${constructor(e){super(e),this.affectsData=!1}execute(){let e=this.editor.model,t=e.document.selection,i=e.schema.getLimitElement(t);if(t.containsEntireContent(i)||!dx(e.schema,i))do if(!(i=i.parent))return;while(!dx(e.schema,i))e.change(e=>{e.setSelection(i,"in")})}}function dx(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}let dE=nK("Ctrl+A");class dD extends W{static get pluginName(){return"SelectAllEditing"}init(){let e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new dy(e)),this.listenTo(t,"keydown",(t,i)=>{nG(i)===dE&&(e.execute("selectAll"),i.preventDefault())})}}class dT extends W{static get pluginName(){return"SelectAllUI"}init(){let e=this.editor;e.ui.componentFactory.add("selectAll",t=>{let i=e.commands.get("selectAll"),n=new lj(t),o=t.t;return n.set({label:o("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),n.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(n,"execute",()=>{e.execute("selectAll"),e.editing.view.focus()}),n})}}class dS extends W{static get requires(){return[dD,dT]}static get pluginName(){return"SelectAll"}}class dI extends ${constructor(e,t){super(e),this._buffer=new cV(e.model,t)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){let t=this.editor.model,i=t.document,n=e.text||"",o=n.length,r=e.range?t.createSelection(e.range):i.selection,s=e.resultRange;t.enqueueChange(this._buffer.batch,e=>{this._buffer.lock(),t.deleteContent(r),n&&t.insertContent(e.createText(n,i.selection.getAttributes()),r),s?e.setSelection(s):r.is("documentSelection")||e.setSelection(r),this._buffer.unlock(),this._buffer.input(o)})}}class dM{constructor(e){this.editor=e,this.editing=this.editor.editing}handle(e,t){if(function(e){if(0==e.length)return!1;for(let t of e)if("children"===t.type&&!cH(t))return!0;return!1}(e))this._handleContainerChildrenMutations(e,t);else for(let i of e)this._handleTextMutation(i,t),this._handleTextNodeInsertion(i)}_handleContainerChildrenMutations(e,t){let i=function(e){let t=e.map(e=>e.node).reduce((e,t)=>e.getCommonAncestor(t,{includeSelf:!0}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find(e=>e.is("containerElement")||e.is("rootElement"))}(e);if(!i)return;let n=this.editor.editing.view.domConverter.mapViewToDom(i),o=new oM(this.editor.editing.view.document),r=this.editor.data.toModel(o.domToView(n)).getChild(0),s=this.editor.editing.mapper.toModelElement(i);if(!s)return;let a=Array.from(r.getChildren()),l=Array.from(s.getChildren()),c=a[a.length-1],d=l[l.length-1],h=c&&c.is("element","softBreak"),u=d&&!d.is("element","softBreak");h&&u&&a.pop();let g=this.editor.model.schema;if(!dN(a,g)||!dN(l,g))return;let p=a.map(e=>e.is("$text")?e.data:"@").join("").replace(/\u00A0/g," "),m=l.map(e=>e.is("$text")?e.data:"@").join("").replace(/\u00A0/g," ");if(m===p)return;let{firstChangeAt:f,insertions:b,deletions:k}=dP(ou(m,p)),w=null;t&&(w=this.editing.mapper.toModelRange(t.getFirstRange()));let _=p.substr(f,b),A=this.editor.model.createRange(this.editor.model.createPositionAt(s,f),this.editor.model.createPositionAt(s,f+k));this.editor.execute("input",{text:_,range:A,resultRange:w})}_handleTextMutation(e,t){if("text"!=e.type)return;let i=e.newText.replace(/\u00A0/g," "),n=e.oldText.replace(/\u00A0/g," ");if(n===i)return;let{firstChangeAt:o,insertions:r,deletions:s}=dP(ou(n,i)),a=null;t&&(a=this.editing.mapper.toModelRange(t.getFirstRange()));let l=this.editing.view.createPositionAt(e.node,o),c=this.editing.mapper.toModelPosition(l),d=this.editor.model.createRange(c,c.getShiftedBy(s)),h=i.substr(o,r);this.editor.execute("input",{text:h,range:d,resultRange:a})}_handleTextNodeInsertion(e){if("children"!=e.type)return;let t=cH(e),i=this.editing.view.createPositionAt(e.node,t.index),n=this.editing.mapper.toModelPosition(i),o=t.values[0].data;this.editor.execute("input",{text:o.replace(/\u00A0/g," "),range:this.editor.model.createRange(n)})}}function dN(e,t){return e.every(e=>t.isInline(e))}function dP(e){let t=null,i=null;for(let n=0;n{i.deleteContent(i.document.selection)}),e.unlock()}nV.isAndroid?n.document.on("beforeinput",(e,t)=>r(t),{priority:"lowest"}):n.document.on("keydown",(e,t)=>r(t),{priority:"lowest"}),n.document.on("compositionstart",function(){let e=i.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||s()},{priority:"lowest"}),n.document.on("compositionend",()=>{t=i.createSelection(i.document.selection)},{priority:"lowest"})}(e),e.editing.view.document.on("mutations",(t,i,n)=>{new dM(e).handle(i,n)})}}class dz extends W{static get requires(){return[dB,cG]}static get pluginName(){return"Typing"}}function dj(e,t){let i=e.start;return{text:Array.from(e.getItems()).reduce((e,n)=>n.is("$text")||n.is("$textProxy")?e+n.data:(i=t.createPositionAfter(n),""),""),range:t.createRange(i,e.end)}}class dL{constructor(e,t){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()}_startListening(){let e=this.model.document;this.listenTo(e.selection,"change:range",(t,{directChange:i})=>{i&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))}),this.listenTo(e,"change:data",(e,t)=>{!t.isUndo&&t.isLocal&&this._evaluateTextBeforeSelection("data",{batch:t})})}_evaluateTextBeforeSelection(e,t={}){let i=this.model,n=i.document.selection,{text:o,range:r}=dj(i.createRange(i.createPositionAt(n.focus.parent,0),n.focus),i),s=this.testCallback(o);if(!s&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!s,s){let i=Object.assign(t,{text:o,range:r});"object"==typeof s&&Object.assign(i,s),this.fire(`matched:${e}`,i)}}}H(dL,j);class dO extends W{static get pluginName(){return"TwoStepCaretMovement"}constructor(e){super(e),this.attributes=new Set,this._overrideUid=null}init(){let e=this.editor,t=e.model,i=e.editing.view,n=e.locale,o=t.document.selection;this.listenTo(i.document,"arrowKey",(e,t)=>{if(!o.isCollapsed||t.shiftKey||t.altKey||t.ctrlKey)return;let i=t.keyCode==nq.arrowright,r=t.keyCode==nq.arrowleft;if(!i&&!r)return;let s=n.contentLanguageDirection;!0===("ltr"===s&&i||"rtl"===s&&r?this._handleForwardMovement(t):this._handleBackwardMovement(t))&&e.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&dU(o.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){let t=this.attributes,i=this.editor.model.document.selection,n=i.getFirstPosition();return!this._isGravityOverridden&&(!n.isAtStart||!dR(i,t))&&(dU(n,t)?(dV(e),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(e){let t=this.attributes,i=this.editor.model,n=i.document.selection,o=n.getFirstPosition();return this._isGravityOverridden?(dV(e),this._restoreGravity(),dF(i,t,o),!0):o.isAtStart?!!dR(n,t)&&(dV(e),dF(i,t,o),!0):dU(o.getShiftedBy(-1),t)?o.isAtEnd&&!dR(n,t)&&dU(o,t)?(dV(e),dF(i,t,o),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}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 dR(e,t){for(let i of t)if(e.hasAttribute(i))return!0;return!1}function dF(e,t,i){let n=i.nodeBefore;e.change(e=>{n?e.setSelectionAttribute(n.getAttributes()):e.removeSelectionAttribute(t)})}function dV(e){e.preventDefault()}function dU(e,t){let{nodeBefore:i,nodeAfter:n}=e;for(let e of t){let t=i?i.getAttribute(e):void 0;if((n?n.getAttribute(e):void 0)!==t)return!0}return!1}var dH=/[\\^$.*+?()[\]{}|]/g,dW=RegExp(dH.source);let dq={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:dK('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:dK("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:dK("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:dK('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:dK('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:dK("'"),to:[null,"‚",null,"’"]}},d$={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},dG=["symbols","mathematical","typography","quotes"];function dK(e){return RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function dY(e,t,i,n){return n.createRange(dQ(e,t,i,!0,n),dQ(e,t,i,!1,n))}function dQ(e,t,i,n,o){let r=e.textNode||(n?e.nodeBefore:e.nodeAfter),s=null;for(;r&&r.getAttribute(t)==i;)s=r,r=n?r.previousSibling:r.nextSibling;return s?o.createPositionAt(s,n?"before":"after"):e}class dZ extends ${constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(e.data,"set",(e,t)=>{t[1]={...t[1]};let i=t[1];i.batchType||(i.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(e.data,"set",(e,t)=>{t[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}addBatch(e){let t=this.editor.model.document.selection,i={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:i}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,i){let n=this.editor.model,o=n.document,r=[],s=e.map(e=>e.getTransformedByOperations(i)),a=s.flat();for(let e of s){let t=e.filter(e=>e.root!=o.graveyard).filter(e=>!function(e,t){return t.some(t=>t!==e&&t.containsRange(e,!0))}(e,a));t.length&&(function(e){e.sort((e,t)=>e.start.isBefore(t.start)?-1:1);for(let t=1;t{e.setSelection(r,{backward:t})})}_undo(e,t){let i=this.editor.model,n=i.document;this._createdBatches.add(t);let o=e.operations.slice().filter(e=>e.isDocumentOperation);for(let e of(o.reverse(),o)){let o=e.baseVersion+1,r=Array.from(n.history.getOperations(o));for(let o of function(e,t,i){e=e.slice(),t=t.slice();let n=new aR(i.document,i.useRelations,i.forceWeakRemove);n.setOriginalOperations(e),n.setOriginalOperations(t);let o=n.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:o};let r=new WeakMap;for(let t of e)r.set(t,0);let s={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},a=0;for(;at.batch==e):this._stack.length-1,i=this._stack.splice(t,1)[0],n=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(n,()=>{this._undo(i.batch,n);let e=this.editor.model.document.history.getOperations(i.batch.baseVersion);this._restoreSelection(i.selection.ranges,i.selection.isBackward,e),this.fire("revert",i.batch,n)}),this.refresh()}}class dX extends dZ{execute(){let e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{let i=e.batch.operations[e.batch.operations.length-1].baseVersion+1,n=this.editor.model.document.history.getOperations(i);this._restoreSelection(e.selection.ranges,e.selection.isBackward,n),this._undo(e.batch,t)}),this.refresh()}}class d0 extends W{static get pluginName(){return"UndoEditing"}constructor(e){super(e),this._batchRegistry=new WeakSet}init(){let e=this.editor;this._undoCommand=new dJ(e),this._redoCommand=new dX(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(e,t)=>{let i=t[0];if(!i.isDocumentOperation)return;let n=i.batch,o=this._redoCommand._createdBatches.has(n),r=this._undoCommand._createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(o?this._undoCommand.addBatch(n):r||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,t,i)=>{this._redoCommand.addBatch(i)}),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}let d1='',d2='';class d5 extends W{static get pluginName(){return"UndoUI"}init(){let e=this.editor,t=e.locale,i=e.t,n="ltr"==t.uiLanguageDirection?d1:d2,o="ltr"==t.uiLanguageDirection?d2:d1;this._addButton("undo",i("Undo"),"CTRL+Z",n),this._addButton("redo",i("Redo"),"CTRL+Y",o)}_addButton(e,t,i,n){let o=this.editor;o.ui.componentFactory.add(e,r=>{let s=o.commands.get(e),a=new lj(r);return a.set({label:t,icon:n,keystroke:i,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",()=>{o.execute(e),o.editing.view.focus()}),a})}}class d4 extends W{static get requires(){return[d0,d5]}static get pluginName(){return"Undo"}}class d3{constructor(){let 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){let t=this._reader;return this.total=e.size,new Promise((i,n)=>{t.onload=()=>{let e=t.result;this._data=e,i(e)},t.onerror=()=>{n("error")},t.onabort=()=>{n("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}H(d3,j);class d7 extends W{static get pluginName(){return"FileRepository"}static get requires(){return[lx]}init(){this.loaders=new iw,this.loaders.on("add",()=>this._updatePendingAction()),this.loaders.on("remove",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,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 m("filerepository-no-upload-adapter"),null;let t=new d6(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(let t of this.loaders)e+=t.uploaded;this.uploaded=e}),t.on("change:uploadTotal",()=>{let e=0;for(let t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e}),t}destroyLoader(e){let t=e instanceof d6?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((e,i)=>{e===t&&this._loadersMap.delete(i)})}_updatePendingAction(){let e=this.editor.plugins.get(lx);if(this.loaders.length){if(!this._pendingAction){let t=this.editor.t,i=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(i(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",i)}}else e.remove(this._pendingAction),this._pendingAction=null}}H(d7,j);class d6{constructor(e,t){this.id=h(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new d3,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 p("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 p("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(){let 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){let t={};return t.promise=new Promise((i,n)=>{t.rejecter=n,t.isFulfilled=!1,e.then(e=>{t.isFulfilled=!0,i(e)}).catch(e=>{t.isFulfilled=!0,n(e)})}),t}}H(d6,j);class d9 extends lc{constructor(e){super(e),this.buttonView=new lj(e),this._fileInputView=new d8(e),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class d8 extends lc{constructor(e){super(e),this.set("acceptedType"),this.set("allowMultipleFiles",!1);let t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}let he="ckCsrfToken",ht="abcdefghijklmnopqrstuvwxyz0123456789";class hi{constructor(e,t,i){this.loader=e,this.url=t,this.t=i}upload(){return this.loader.file.then(e=>new Promise((t,i)=>{this._initRequest(),this._initListeners(t,i,e),this._sendRequest(e)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){let e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}_initListeners(e,t,i){let n=this.xhr,o=this.loader,r=(0,this.t)("Cannot upload file:")+` ${i.name}.`;n.addEventListener("error",()=>t(r)),n.addEventListener("abort",()=>t()),n.addEventListener("load",()=>{let i=n.response;if(!i||!i.uploaded)return t(i&&i.error&&i.error.message?i.error.message:r);e({default:i.url})}),n.upload&&n.upload.addEventListener("progress",e=>{e.lengthComputable&&(o.uploadTotal=e.total,o.uploaded=e.loaded)})}_sendRequest(e){var t;let i,n=new FormData;n.append("upload",e),n.append("ckCsrfToken",((i=function(e){for(let t of(e=e.toLowerCase(),document.cookie.split(";"))){let i=t.split("=");if(decodeURIComponent(i[0].trim().toLowerCase())===e)return decodeURIComponent(i[1])}return null}(he))&&40==i.length||(t=i=function(){let e="",t=new Uint8Array(40);window.crypto.getRandomValues(t);for(let i=0;i.5?n.toUpperCase():n}return e}(),document.cookie=encodeURIComponent(he)+"="+encodeURIComponent(t)+";path=/"),i)),this.xhr.send(n)}}function hn(e,t,i,n){let o,r=null;"function"==typeof n?o=n:(r=e.commands.get(n),o=()=>{e.execute(n)}),e.model.document.on("change:data",(s,a)=>{if(r&&!r.isEnabled||!t.isEnabled)return;let l=r_(e.model.document.selection.getRanges());if(!l.isCollapsed||a.isUndo||!a.isLocal)return;let c=Array.from(e.model.document.differ.getChanges()),d=c[0];if(1!=c.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;let h=d.position.parent;if(h.is("element","codeBlock")||h.is("element","listItem")&&"function"!=typeof n&&!["numberedList","bulletedList","todoList"].includes(n)||r&&!0===r.value)return;let u=h.getChild(0),g=e.model.createRangeOn(u);if(!g.containsRange(l)&&!l.end.isEqual(g.end))return;let p=i.exec(u.data.substr(0,l.end.offset));p&&e.model.enqueueChange(t=>{let i=new r6(t.createPositionAt(h,0),t.createPositionAt(h,p[0].length));if(!1!==o({match:p})){t.remove(i);let n=e.model.document.selection.getFirstRange(),o=t.createRangeIn(h);!h.isEmpty||o.isEqual(n)||o.containsRange(n,!0)||t.remove(h)}i.detach(),e.model.enqueueChange(()=>{e.plugins.get("Delete").requestUndoOnBackspace()})})})}function ho(e,t,i,n){let o,r;i instanceof RegExp?o=i:r=i,r=r||(e=>{let t,i=[],n=[];for(;null!==(t=o.exec(e))&&!(t&&t.length<4);){let{index:e,1:o,2:r,3:s}=t,a=o+r+s,l=[e+=t[0].length-a.length,e+o.length],c=[e+o.length+r.length,e+o.length+r.length+s.length];i.push(l),i.push(c),n.push([e+o.length,e+o.length+r.length])}return{remove:i,format:n}}),e.model.document.on("change:data",(i,o)=>{var s;let a;if(o.isUndo||!o.isLocal||!t.isEnabled)return;let l=e.model,c=l.document.selection;if(!c.isCollapsed)return;let d=Array.from(l.document.differ.getChanges()),h=d[0];if(1!=d.length||"insert"!==h.type||"$text"!=h.name||1!=h.length)return;let u=c.focus,g=u.parent,{text:p,range:m}=(s=l.createRange(l.createPositionAt(g,0),u),a=s.start,{text:Array.from(s.getItems()).reduce((e,t)=>!t.is("$text")&&!t.is("$textProxy")||t.getAttribute("code")?(a=l.createPositionAfter(t),""):e+t.data,""),range:l.createRange(a,s.end)}),f=r(p),b=hr(m.start,f.format,l),k=hr(m.start,f.remove,l);b.length&&k.length&&l.enqueueChange(t=>{if(!1!==n(t,b)){for(let e of k.reverse())t.remove(e);l.enqueueChange(()=>{e.plugins.get("Delete").requestUndoOnBackspace()})}})})}function hr(e,t,i){return t.filter(e=>void 0!==e[0]&&void 0!==e[1]).map(t=>i.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1])))}function hs(e,t){return(i,n)=>{if(!e.commands.get(t).isEnabled)return!1;for(let o of e.model.schema.getValidRanges(n,t))i.setAttribute(t,!0,o);i.removeSelectionAttribute(t)}}class ha extends ${constructor(e,t){super(e),this.attributeKey=t}refresh(){let e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){let t=this.editor.model,i=t.document.selection,n=void 0===e.forceValue?!this.value:e.forceValue;t.change(e=>{if(i.isCollapsed)n?e.setSelectionAttribute(this.attributeKey,!0):e.removeSelectionAttribute(this.attributeKey);else for(let o of t.schema.getValidRanges(i.getRanges(),this.attributeKey))n?e.setAttribute(this.attributeKey,n,o):e.removeAttribute(this.attributeKey,o)})}_getValueFromFirstAllowedNode(){let e=this.editor.model,t=e.schema,i=e.document.selection;if(i.isCollapsed)return i.hasAttribute(this.attributeKey);for(let e of i.getRanges())for(let i of e.getItems())if(t.checkAttribute(i,this.attributeKey))return i.hasAttribute(this.attributeKey);return!1}}let hl="bold";class hc extends W{static get pluginName(){return"BoldEditing"}init(){let e=this.editor;e.model.schema.extend("$text",{allowAttributes:hl}),e.model.schema.setAttributeProperties(hl,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:hl,view:"strong",upcastAlso:["b",e=>{let t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add(hl,new ha(e,hl)),e.keystrokes.set("CTRL+B",hl)}}let hd="bold";class hh extends W{static get pluginName(){return"BoldUI"}init(){let e=this.editor,t=e.t;e.ui.componentFactory.add(hd,i=>{let n=e.commands.get(hd),o=new lj(i);return o.set({label:t("Bold"),icon:lT.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(o,"execute",()=>{e.execute(hd),e.editing.view.focus()}),o})}}let hu="italic";class hg extends W{static get pluginName(){return"ItalicEditing"}init(){let e=this.editor;e.model.schema.extend("$text",{allowAttributes:hu}),e.model.schema.setAttributeProperties(hu,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:hu,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(hu,new ha(e,hu)),e.keystrokes.set("CTRL+I",hu)}}let hp="italic";class hm extends W{static get pluginName(){return"ItalicUI"}init(){let e=this.editor,t=e.t;e.ui.componentFactory.add(hp,i=>{let n=e.commands.get(hp),o=new lj(i);return o.set({label:t("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(o,"execute",()=>{e.execute(hp),e.editing.view.focus()}),o})}}class hf extends ${refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){let t=this.editor.model,i=t.schema,n=Array.from(t.document.selection.getSelectedBlocks()),o=void 0===e.forceValue?!this.value:e.forceValue;t.change(e=>{if(o){let t=n.filter(e=>hb(e)||hw(i,e));this._applyQuote(e,t)}else this._removeQuote(e,n.filter(hb))})}_getValue(){let e=r_(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!hb(e))}_checkEnabled(){if(this.value)return!0;let e=this.editor.model.document.selection,t=this.editor.model.schema,i=r_(e.getSelectedBlocks());return!!i&&hw(t,i)}_removeQuote(e,t){hk(e,t).reverse().forEach(t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){let i=e.createPositionBefore(t.start.parent);return void e.move(t,i)}t.end.isAtEnd||e.split(t.end);let i=e.createPositionAfter(t.end.parent);e.move(t,i)})}_applyQuote(e,t){let i=[];hk(e,t).reverse().forEach(t=>{let n=hb(t.start);n||(n=e.createElement("blockQuote"),e.wrap(t,n)),i.push(n)}),i.reverse().reduce((t,i)=>t.nextSibling==i?(e.merge(e.createPositionAfter(t)),t):i)}}function hb(e){return"blockQuote"==e.parent.name?e.parent:null}function hk(e,t){let i,n=0,o=[];for(;n{for(let n of e.model.document.differ.getChanges())if("insert"==n.type){let e=n.position.nodeAfter;if(!e)continue;if(e.is("element","blockQuote")&&e.isEmpty)return i.remove(e),!0;if(e.is("element","blockQuote")&&!t.checkChild(n.position,e))return i.unwrap(e),!0;if(e.is("element")){for(let n of i.createRangeIn(e).getItems())if(n.is("element","blockQuote")&&!t.checkChild(i.createPositionBefore(n),n))return i.unwrap(n),!0}}else if("remove"==n.type){let e=n.position.parent;if(e.is("element","blockQuote")&&e.isEmpty)return i.remove(e),!0}return!1});let i=this.editor.editing.view.document,n=e.model.document.selection,o=e.commands.get("blockQuote");this.listenTo(i,"enter",(t,i)=>{n.isCollapsed&&o.value&&n.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),i.preventDefault(),t.stop())},{context:"blockquote"}),this.listenTo(i,"delete",(t,i)=>{if("backward"!=i.direction||!n.isCollapsed||!o.value)return;let r=n.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),i.preventDefault(),t.stop())},{context:"blockquote"})}}var hA=r(3062);ok()(hA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hA.Z.locals;class hC extends W{static get pluginName(){return"BlockQuoteUI"}init(){let e=this.editor,t=e.t;e.ui.componentFactory.add("blockQuote",i=>{let n=e.commands.get("blockQuote"),o=new lj(i);return o.set({label:t("Block quote"),icon:lT.quote,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(o,"execute",()=>{e.execute("blockQuote"),e.editing.view.focus()}),o})}}class hv extends W{static get pluginName(){return"CKBoxUI"}afterInit(){let e=this.editor;if(!e.commands.get("ckbox"))return;let t=e.t;e.ui.componentFactory.add("ckbox",i=>{let n=e.commands.get("ckbox"),o=new lj(i);return o.set({label:t("Open file manager"),icon:'',tooltip:!0}),o.bind("isOn","isEnabled").to(n,"value","isEnabled"),o.on("execute",()=>{e.execute("ckbox")}),o})}}function hy({token:e,id:t,origin:i,width:n,extension:o}){let r=hx(e),s=function(e){let t=Math.floor(Math.max(10*e/100,80)),i=[Math.min(e,4e3)],n=i[0];for(;n-t>=t;)i.unshift(n-=t);return i}(n);return{imageFallbackUrl:hE({environmentId:r,id:t,origin:i,width:n,extension:"bmp"===o||"tiff"===o||"jpg"===o?"jpeg":o}),imageSources:[{srcset:s.map(e=>`${hE({environmentId:r,id:t,origin:i,width:e,extension:"webp"})} ${e}w`).join(","),sizes:`(max-width: ${n}px) 100vw, ${n}px`,type:"image/webp"}]}}function hx(e){let[,t]=e.value.split(".");return JSON.parse(atob(t)).aud}function hE({environmentId:e,id:t,origin:i,width:n,extension:o}){return new URL(`${e}/assets/${t}/images/${n}.${o}`,i).toString()}class hD extends ${constructor(e){super(e),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){let e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");return!(!e.isEnabled&&!t.isEnabled)}_prepareOptions(){let e=this.editor.config.get("ckbox");return{theme:e.theme,language:e.language,tokenUrl:e.tokenUrl,serviceOrigin:e.serviceOrigin,assetsOrigin:e.assetsOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:e=>this.fire("ckbox:choose",e)}}}_initListeners(){let e=this.editor,t=e.model,i=!e.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=rb(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(n,o)=>{if(!this.isEnabled)return;let r=e.commands.get("insertImage"),s=e.commands.get("link"),a=e.plugins.get("CKBoxEditing"),l=function({assets:e,origin:t,token:i,isImageAllowed:n,isLinkAllowed:o}){return e.map(e=>({id:e.data.id,type:hT(e)?"image":"link",attributes:function(e,t,i){var n,o,r;let s,a;if(hT(e)){let{imageFallbackUrl:n,imageSources:o}=hy({token:t,origin:i,id:e.data.id,width:e.data.metadata.width,extension:e.data.extension});return{imageFallbackUrl:n,imageSources:o,imageTextAlternative:e.data.metadata.description||""}}return{linkName:e.data.name,linkHref:(n=e,o=t,r=i,s=hx(o),(a=new URL(`${s}/assets/${n.data.id}/file`,r)).searchParams.set("download","true"),a.toString())}}(e,i,t)})).filter(e=>"image"===e.type?n:o)}({assets:o,origin:e.config.get("ckbox.assetsOrigin"),token:a.getToken(),isImageAllowed:r.isEnabled,isLinkAllowed:s.isEnabled});0!==l.length&&t.change(e=>{for(let t of l){let n=t===l[l.length-1];this._insertAsset(t,n,e),i&&(setTimeout(()=>this._chosenAssets.delete(t),1e3),this._chosenAssets.add(t))}})}),this.listenTo(e,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(e,t,i){let n=this.editor.model.document.selection;i.removeSelectionAttribute("linkHref"),"image"===e.type?this._insertImage(e):this._insertLink(e,i),t||i.setSelection(n.getLastPosition())}_insertImage(e){let t=this.editor,{imageFallbackUrl:i,imageSources:n,imageTextAlternative:o}=e.attributes;t.execute("insertImage",{source:{src:i,sources:n,alt:o}})}_insertLink(e,t){let i=this.editor,n=i.model,o=n.document.selection,{linkName:r,linkHref:s}=e.attributes;if(o.isCollapsed){let e=iB(o.getAttributes()),i=t.createText(r,e),s=n.insertContent(i);t.setSelection(s)}i.execute("link",s)}}function hT(e){let t=e.data.metadata;return!!t&&t.width&&t.height}class hS extends W{static get requires(){return["ImageUploadEditing","ImageUploadProgress",d7,hN]}static get pluginName(){return"CKBoxUploadAdapter"}async afterInit(){let e=this.editor,t=!!e.config.get("ckbox"),i=!!window.CKBox;if(!t&&!i)return;let n=e.plugins.get(d7),o=e.plugins.get(hN);n.createUploadAdapter=t=>new hI(t,o.getToken(),e);let r=!e.config.get("ckbox.ignoreDataId"),s=e.plugins.get("ImageUploadEditing");r&&s.on("uploadComplete",(t,{imageElement:i,data:n})=>{e.model.change(e=>{e.setAttribute("ckboxImageId",n.ckboxImageId,i)})})}}class hI{constructor(e,t,i){this.loader=e,this.token=t,this.editor=i,this.controller=new AbortController,this.serviceOrigin=i.config.get("ckbox.serviceOrigin"),this.assetsOrigin=i.config.get("ckbox.assetsOrigin")}async getAvailableCategories(e=0){let t=new URL("categories",this.serviceOrigin);return t.searchParams.set("limit","50"),t.searchParams.set("offset",e.toString()),this._sendHttpRequest({url:t}).then(async t=>{if(t.totalCount-(e+50)>0){let i=await this.getAvailableCategories(e+50);return[...t.items,...i]}return t.items}).catch(()=>{this.controller.signal.throwIfAborted(),f("ckbox-fetch-category-http-error")})}async getCategoryIdForFile(e){let t=hM(e.name),i=await this.getAvailableCategories();if(!i)return null;let n=this.editor.config.get("ckbox.defaultUploadCategories");if(n){let e=Object.keys(n).find(e=>n[e].includes(t));if(e){let t=i.find(t=>t.id===e||t.name===e);return t?t.id:null}}let o=i.find(e=>e.extensions.includes(t));return o?o.id:null}async upload(){let e=this.editor.t,t=e("Cannot determine a category for the uploaded file."),i=await this.loader.file,n=await this.getCategoryIdForFile(i);if(!n)return Promise.reject(t);let o=new URL("assets",this.serviceOrigin),r=new FormData;return r.append("categoryId",n),r.append("file",i),this._sendHttpRequest({method:"POST",url:o,data:r,onUploadProgress:e=>{e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}).then(async e=>{let t=await this._getImageWidth(),n=hM(i.name),o=hy({token:this.token,id:e.id,origin:this.assetsOrigin,width:t,extension:n});return{ckboxImageId:e.id,default:o.imageFallbackUrl,sources:o.imageSources}}).catch(()=>Promise.reject(e("Cannot upload file:")+` ${i.name}.`))}abort(){this.controller.abort()}_sendHttpRequest(e){let{url:t,data:i,onUploadProgress:n}=e,o=e.method||"GET",r=this.controller.signal,s=new XMLHttpRequest;s.open(o,t.toString(),!0),s.setRequestHeader("Authorization",this.token.value),s.setRequestHeader("CKBox-Version","CKEditor 5"),s.responseType="json";let a=()=>{s.abort()};return new Promise((e,t)=>{r.addEventListener("abort",a),s.addEventListener("loadstart",()=>{r.addEventListener("abort",a)}),s.addEventListener("loadend",()=>{r.removeEventListener("abort",a)}),s.addEventListener("error",()=>{t()}),s.addEventListener("abort",()=>{t()}),s.addEventListener("load",async()=>{let i=s.response;return!i||i.statusCode>=400?t(i&&i.message):e(i)}),n&&s.upload.addEventListener("progress",e=>{n(e)}),s.send(i)})}_getImageWidth(){return new Promise(e=>{let t=new Image;t.onload=()=>{URL.revokeObjectURL(t.src),e(t.width)},t.src=this.loader.data})}}function hM(e){return e.match(/\.(?[^.]+)$/).groups.ext}class hN extends W{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",hS]}async init(){let e=this.editor,t=!!e.config.get("ckbox"),i=!!window.CKBox;if(!t&&!i)return;this._initConfig();let n=e.plugins.get("CloudServicesCore"),o=e.config.get("ckbox.tokenUrl"),r=e.config.get("cloudServices.tokenUrl");this._token=o===r?e.plugins.get("CloudServices").token:await n.createToken(o).init(),e.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),i&&e.commands.add("ckbox",new hD(e))}getToken(){return this._token}_initConfig(){let e=this.editor;if(e.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",assetsOrigin:"https://ckbox.cloud",defaultUploadCategories:null,ignoreDataId:!1,language:e.locale.uiLanguage,theme:"default",tokenUrl:e.config.get("cloudServices.tokenUrl")}),!e.config.get("ckbox.tokenUrl"))throw new p("ckbox-plugin-missing-token-url",this);e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||f("ckbox-plugin-image-feature-missing",e)}_initSchema(){let e=this.editor.model.schema;e.extend("$text",{allowAttributes:"ckboxLinkId"}),e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.addAttributeCheck((e,t)=>{if(!e.last.getAttribute("linkHref")&&"ckboxLinkId"===t)return!1})}_initConversion(){let e=this.editor;e.conversion.for("downcast").add(e=>{e.on("attribute:ckboxLinkId:imageBlock",(e,t,i)=>{let{writer:n,mapper:o,consumable:r}=i;if(!r.consume(t.item,e.name))return;let s=[...o.toViewElement(t.item).getChildren()].find(e=>"a"===e.name);s&&(t.item.hasAttribute("ckboxLinkId")?n.setAttribute("data-ckbox-resource-id",t.item.getAttribute("ckboxLinkId"),s):n.removeAttribute("data-ckbox-resource-id",s))},{priority:"low"}),e.on("attribute:ckboxLinkId",(e,t,i)=>{let{writer:n,mapper:o,consumable:r}=i;if(r.consume(t.item,e.name)){if(t.attributeOldValue){let e=hP(n,t.attributeOldValue);n.unwrap(o.toViewRange(t.range),e)}if(t.attributeNewValue){let e=hP(n,t.attributeNewValue);if(t.item.is("selection")){let t=n.document.selection;n.wrap(t.getFirstRange(),e)}else n.wrap(o.toViewRange(t.range),e)}}},{priority:"low"})}),e.conversion.for("upcast").add(e=>{e.on("element:a",(e,t,i)=>{let{writer:n,consumable:o}=i;if(!t.viewItem.getAttribute("href")||!o.consume(t.viewItem,{attributes:["data-ckbox-resource-id"]}))return;let r=t.viewItem.getAttribute("data-ckbox-resource-id");if(r)if(t.modelRange)for(let e of t.modelRange.getItems()){var s;e.is("$textProxy")&&(e=e.textNode),((s=e).is("$text")||!(!s.is("element","imageInline")&&!s.is("element","imageBlock")))&&n.setAttribute("ckboxLinkId",r,e)}else{let e=t.modelCursor.nodeBefore||t.modelCursor.parent;n.setAttribute("ckboxLinkId",r,e)}},{priority:"low"})}),e.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),e.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:e=>e.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){let e=this.editor,t=e.model,i=t.document.selection;t.document.registerPostFixer(t=>{let i=!1,n=e.model,o=e.commands.get("ckbox");if(!o)return i;for(let e of n.document.differ.getChanges()){if("insert"!==e.type&&"attribute"!==e.type)continue;let n="insert"===e.type?new rZ(e.position,e.position.getShiftedBy(e.length)):e.range,r="attribute"===e.type&&"linkHref"===e.attributeKey&&null===e.attributeNewValue;for(let e of n.getItems()){if(r&&e.hasAttribute("ckboxLinkId")){t.removeAttribute("ckboxLinkId",e),i=!0;continue}for(let n of function(e,t){let i=e.is("element","imageInline")||e.is("element","imageBlock"),n=e.hasAttribute("linkHref");return[...t].filter(t=>"image"===t.type&&i?t.attributes.imageFallbackUrl===e.getAttribute("src"):"link"===t.type&&n?t.attributes.linkHref===e.getAttribute("linkHref"):void 0)}(e,o._chosenAssets)){let o="image"===n.type?"ckboxImageId":"ckboxLinkId";n.id!==e.getAttribute(o)&&(t.setAttribute(o,n.id,e),i=!0)}}}return i}),t.document.registerPostFixer(e=>{!i.hasAttribute("linkHref")&&i.hasAttribute("ckboxLinkId")&&e.removeSelectionAttribute("ckboxLinkId")})}}function hP(e,t){let i=e.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return e.setCustomProperty("link",!0,i),i}class hB extends W{static get pluginName(){return"CKFinderUI"}init(){let e=this.editor,t=e.ui.componentFactory,i=e.t;t.add("ckfinder",t=>{let n=e.commands.get("ckfinder"),o=new lj(t);return o.set({label:i("Insert image or file"),icon:'',tooltip:!0}),o.bind("isEnabled").to(n),o.on("execute",()=>{e.execute("ckfinder"),e.editing.view.focus()}),o})}}class hz extends ${constructor(e){super(e),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){let e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}execute(){let e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new p("ckfinder-unknown-openermethod",e);let i=this.editor.config.get("ckfinder.options")||{};i.chooseFiles=!0;let n=i.onInit;i.language||(i.language=e.locale.uiLanguage),i.onInit=t=>{n&&n(t),t.on("files:choose",i=>{let n=i.data.files.toArray(),o=n.filter(e=>!e.isImage()),r=n.filter(e=>e.isImage());for(let t of o)e.execute("link",t.getUrl());let s=[];for(let e of r){let i=e.getUrl();s.push(i||t.request("file:getProxyUrl",{file:e}))}s.length&&hj(e,s)}),t.on("file:choose:resizedImage",t=>{let i=t.data.resizedUrl;if(i)hj(e,[i]);else{let t=e.plugins.get("Notification"),i=e.locale.t;t.showWarning(i("Could not obtain resized image URL."),{title:i("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[t](i)}}function hj(e,t){if(e.commands.get("insertImage").isEnabled)e.execute("insertImage",{source:t});else{let t=e.plugins.get("Notification"),i=e.locale.t;t.showWarning(i("Could not insert image at the current position."),{title:i("Inserting image failed"),namespace:"ckfinder"})}}class hL extends W{static get pluginName(){return"CKFinderEditing"}static get requires(){return[cb,"LinkEditing"]}init(){let e=this.editor;if(!e.plugins.has("ImageBlockEditing")&&!e.plugins.has("ImageInlineEditing"))throw new p("ckfinder-missing-image-plugin",e);e.commands.add("ckfinder",new hz(e))}}class hO extends W{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",d7]}init(){let e=this.editor,t=e.plugins.get("CloudServices"),i=t.token,n=t.uploadUrl;i&&(this._uploadGateway=e.plugins.get("CloudServicesCore").createUploadGateway(i,n),e.plugins.get(d7).createUploadAdapter=e=>new hR(this._uploadGateway,e))}}class hR{constructor(e,t){this.uploadGateway=e,this.loader=t}upload(){return this.loader.file.then(e=>(this.fileUploader=this.uploadGateway.upload(e),this.fileUploader.on("progress",(e,t)=>{this.loader.uploadTotal=t.total,this.loader.uploaded=t.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class hF extends ${refresh(){let e=this.editor.model,t=r_(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&hV(t,e.schema)}execute(e={}){let t=this.editor.model,i=t.document;t.change(n=>{for(let o of(e.selection||i.selection).getSelectedBlocks())!o.is("element","paragraph")&&hV(o,t.schema)&&n.rename(o,"paragraph")})}}function hV(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class hU extends ${execute(e){let t=this.editor.model,i=e.attributes,n=e.position;t.change(e=>{let o=e.createElement("paragraph");if(i&&t.schema.setAllowedAttributes(o,i,e),!t.schema.checkChild(n.parent,o)){let i=t.schema.findAllowedParent(n,o);if(!i)return;n=e.split(n,i).position}t.insertContent(o,n),e.setSelection(o,"in")})}}class hH extends W{static get pluginName(){return"Paragraph"}init(){let e=this.editor,t=e.model;e.commands.add("paragraph",new hF(e)),e.commands.add("insertParagraph",new hU(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>hH.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}hH.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class hW extends ${constructor(e,t){super(e),this.modelElements=t}refresh(){let e=r_(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some(t=>hq(e,t,this.editor.model.schema))}execute(e){let t=this.editor.model,i=t.document,n=e.value;t.change(e=>{for(let o of Array.from(i.selection.getSelectedBlocks()).filter(e=>hq(e,n,t.schema)))o.is("element",n)||e.rename(o,n)})}}function hq(e,t,i){return i.checkChild(e.parent,t)&&!i.isObject(e)}let h$="paragraph";class hG extends W{static get pluginName(){return"HeadingEditing"}constructor(e){super(e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[hH]}init(){let e=this.editor,t=e.config.get("heading.options"),i=[];for(let n of t)n.model!==h$&&(e.model.schema.register(n.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(n),i.push(n.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new hW(e,i))}afterInit(){let e=this.editor,t=e.commands.get("enter"),i=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(t,n)=>{let o=e.model.document.selection.getFirstPosition().parent;i.some(e=>o.is("element",e.model))&&!o.is("element",h$)&&0===o.childCount&&n.writer.rename(o,h$)})}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:u.get("low")+1})}}var hK=r(8733);ok()(hK.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hK.Z.locals;class hY extends W{static get pluginName(){return"HeadingUI"}init(){let e,t,i=this.editor,n=i.t,o=(t={Paragraph:(e=i.t)("Paragraph"),"Heading 1":e("Heading 1"),"Heading 2":e("Heading 2"),"Heading 3":e("Heading 3"),"Heading 4":e("Heading 4"),"Heading 5":e("Heading 5"),"Heading 6":e("Heading 6")},i.config.get("heading.options").map(e=>{let i=t[e.title];return i&&i!=e.title&&(e.title=i),e})),r=n("Choose heading"),s=n("Heading");i.ui.componentFactory.add("heading",e=>{let t={},n=new iw,a=i.commands.get("heading"),l=i.commands.get("paragraph"),c=[a];for(let e of o){let i={type:"button",model:new ck({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(i.model.bind("isOn").to(l,"value"),i.model.set("commandName","paragraph"),c.push(l)):(i.model.bind("isOn").to(a,"value",t=>t===e.model),i.model.set({commandName:"heading",commandValue:e.model})),n.add(i),t[e.model]=e.title}let d=ce(e);return ci(d,n),d.buttonView.set({isOn:!1,withText:!0,tooltip:s}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(c,"isEnabled",(...e)=>e.some(e=>e)),d.buttonView.bind("label").to(a,"value",l,"value",(e,i)=>{let n=e||i&&"paragraph";return t[n]?t[n]:r}),this.listenTo(d,"execute",e=>{i.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),i.editing.view.focus()}),d})}}class hQ extends W{static get requires(){return[cC]}static get pluginName(){return"WidgetToolbarRepository"}init(){let e=this.editor;if(e.plugins.has("BalloonToolbar")){let t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",t=>{let i;(i=e.editing.view.document.selection.getSelectedElement())&&cJ(i)&&t.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,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(){for(let e of(super.destroy(),this._toolbarDefinitions.values()))e.view.destroy()}register(e,{ariaLabel:t,items:i,getRelatedElement:n,balloonClassName:o="ck-toolbar-container"}){if(!i.length)return void m("widget-toolbar-no-items",{toolbarId:e});let r=this.editor,s=r.t,a=new l0(r.locale);if(a.ariaLabel=t||s("Widget toolbar"),this._toolbarDefinitions.has(e))throw new p("widget-toolbar-duplicated",this,{toolbarId:e});a.fillFromConfig(i,r.ui.componentFactory);let l={view:a,getRelatedElement:n,balloonClassName:o};r.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{let e=n(r.editing.view.document.selection);e&&this._showToolbar(l,e)},afterBlur:()=>{this._hideToolbar(l)}}),this._toolbarDefinitions.set(e,l)}_updateToolbarsVisibility(){let e=0,t=null,i=null;for(let n of this._toolbarDefinitions.values()){let o=n.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&o)if(this.editor.ui.focusTracker.isFocused){let r=o.getAncestors().length;r>e&&(e=r,t=o,i=n)}else this._isToolbarVisible(n)&&this._hideToolbar(n);else this._isToolbarInBalloon(n)&&this._hideToolbar(n)}i&&this._showToolbar(i,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?hZ(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:hJ(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(let e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){let t=e.getRelatedElement(this.editor.editing.view.document.selection);hZ(this.editor,t)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function hZ(e,t){let i=e.plugins.get("ContextualBalloon"),n=hJ(e,t);i.updatePosition(n)}function hJ(e,t){let i=e.editing.view,n=lf.defaultPositions;return{target:i.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class hX{constructor(e){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}begin(e,t,i){var n;let o,r,s,a,l,c,d,h=new rT(t);this.activeHandlePosition=function(e){for(let i of["top-left","top-right","bottom-right","bottom-left"]){var t;if(e.classList.contains((t=i,`ck-widget__resizer__handle-${t}`)))return i}}(e),this._referenceCoordinates=(o=this.activeHandlePosition.split("-"),r={top:"bottom",bottom:"top",left:"right",right:"left"},n=`${r[o[0]]}-${r[o[1]]}`,s=new rT(t),l={x:"right"==(a=n.split("-"))[1]?s.right:s.left,y:"bottom"==a[0]?s.bottom:s.top},l.x+=t.ownerDocument.defaultView.scrollX,l.y+=t.ownerDocument.defaultView.scrollY,l),this.originalWidth=h.width,this.originalHeight=h.height,this.aspectRatio=h.width/h.height;let u=i.style.width;u&&u.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(u):this.originalWidthPercents=(d=parseFloat((c=i.parentElement).ownerDocument.defaultView.getComputedStyle(c).width),h.width/d*100)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}H(hX,j);class h0 extends lc{constructor(){super();let e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",e=>e?`ck-orientation-${e}`:"")],style:{display:e.if("_isVisible","none",e=>!e)}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",(e,t)=>null!==e&&null!==t),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(t,i,n)=>"px"===e.unit?`${t}\xd7${i}`:`${n}%`),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",(e,t,i)=>t<50||i<50?"above-center":e)}_dismiss(){this.unbind(),this._isVisible=!1}}class h1{constructor(e){this._options=e,this._viewResizerWrapper=null,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"}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}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(){let e=this,t=this._options.viewElement;this._options.editor.editing.view.change(i=>{let n=i.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(t){let i=this.toDomElement(t);return e._appendHandles(i),e._appendSizeUI(i),i});i.insert(i.createPositionAt(t,"end"),n),i.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=n,this.isVisible||this.hide()})}begin(e){this.state=new hX(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){let t=this._proposeNewSize(e);this._options.editor.editing.view.change(e=>{let i=this._options.unit||"%",n=("%"===i?t.widthPercents:t.width)+i;e.setStyle("width",n,this._options.viewElement)});let i=this._getHandleHost(),n=new rT(i);t.handleHostWidth=Math.round(n.width),t.handleHostHeight=Math.round(n.height);let o=new rT(i);t.width=Math.round(o.width),t.height=Math.round(o.height),this.redraw(n),this.state.update(t)}commit(){let 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){let t,i=this._domResizerWrapper;if(!(i&&i.ownerDocument&&i.ownerDocument.contains(i)))return;let n=i.parentElement,o=this._getHandleHost(),r=this._viewResizerWrapper,s=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];if(n.isSameNode(o)){let i=e||new rT(o);t=[i.width+"px",i.height+"px",void 0,void 0]}else t=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==iS(s,t)&&this._options.editor.editing.view.change(e=>{e.setStyle({width:t[0],height:t[1],left:t[2],top:t[3]},r)})}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(e=>{e.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(e){let t=this.state,i={x:e.pageX,y:e.pageY},n=!this._options.isCentered||this._options.isCentered(this),o={x:t._referenceCoordinates.x-(i.x+t.originalWidth),y:i.y-t.originalHeight-t._referenceCoordinates.y};n&&t.activeHandlePosition.endsWith("-right")&&(o.x=i.x-(t._referenceCoordinates.x+t.originalWidth)),n&&(o.x*=2);let r={width:Math.abs(t.originalWidth+o.x),height:Math.abs(t.originalHeight+o.y)};r.dominant=r.width/t.aspectRatio>r.height?"width":"height",r.max=r[r.dominant];let s={width:r.width,height:r.height};return"width"==r.dominant?s.height=s.width/t.aspectRatio:s.width=s.height*t.aspectRatio,{width:Math.round(s.width),height:Math.round(s.height),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*s.width*100)/100,100)}}_getResizeHost(){let e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){let e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){for(let t of["top-left","top-right","bottom-right","bottom-left"])e.appendChild(new a5({tag:"div",attributes:{class:`ck-widget__resizer__handle ck-widget__resizer__handle-${t}`}}).render())}_appendSizeUI(e){this._sizeView=new h0,this._sizeView.render(),e.appendChild(this._sizeView.element)}}H(h1,j);var h2=r(8506);ok()(h2.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),h2.Z.locals,H(class extends W{static get pluginName(){return"WidgetResize"}init(){let e=this.editor.editing,t=iC.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),this._resizers=new Map,e.view.addObserver(a$),this._observer=Object.create(oj),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=dh(()=>{this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()},200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(let[e,t]of this._resizers)e.isAttached()||(this._resizers.delete(e),t.destroy())},{priority:"lowest"}),this._observer.listenTo(iC.window,"resize",this._redrawSelectedResizerThrottled);let i=this.editor.editing.view.document.selection;i.on("change",()=>{let e=i.getSelectedElement(),t=this.getResizerByViewElement(e)||null;t?this.select(t):this.deselect()})}destroy(){for(let e of(this._observer.stopListening(),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){let t=new h1(e),i=this.editor.plugins;if(t.attach(),i.has("WidgetToolbarRepository")){let e=i.get("WidgetToolbarRepository");t.on("begin",()=>{e.forceDisabled("resize")},{priority:"lowest"}),t.on("cancel",()=>{e.clearForceDisabled("resize")},{priority:"highest"}),t.on("commit",()=>{e.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(e.viewElement,t);let n=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(n)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(let t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){let i=t.domTarget;h1.isResizeHandle(i)&&(this._activeResizer=this._getResizerByHandle(i),this._activeResizer&&(this._activeResizer.begin(i),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}},j);class h5 extends ${refresh(){let e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){let t=this.editor,i=t.plugins.get("ImageUtils"),n=t.model,o=i.getClosestSelectedImageElement(n.document.selection);n.change(t=>{t.setAttribute("alt",e.newValue,o)})}}function h4(e){return e.createContainerElement("figure",{class:"image"},[e.createEmptyElement("img"),e.createSlot()])}function h3(e,t){let i=e.plugins.get("ImageUtils"),n=e.plugins.has("ImageInlineEditing")&&e.plugins.has("ImageBlockEditing");return e=>i.isInlineImageView(e)?n&&(e.findAncestor(i.isBlockImageView)?"imageBlock":"imageInline")!==t?null:o(e):null;function o(e){let t={name:!0};return e.hasAttribute("src")&&(t.attributes=["src"]),t}}function h7(e,t){let i=r_(t.getSelectedBlocks());return!i||e.isObject(i)||i.isEmpty&&"listItem"!=i.name?"imageBlock":"imageInline"}class h6 extends W{static get pluginName(){return"ImageUtils"}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(e={},t=null,i=null){let n=this.editor,o=n.model,r=o.document.selection;for(let s in i=h9(n,t||r,i),e={...Object.fromEntries(r.getAttributes()),...e})o.schema.checkAttribute(i,s)||delete e[s];return o.change(n=>{let r=n.createElement(i,e);return o.insertObject(r,t,null,{setSelection:"on",findOptimalPosition:!t&&"imageInline"!=i}),r.parent?r:null})}getClosestSelectedImageWidget(e){let t=e.getFirstPosition();if(!t)return null;let i=e.getSelectedElement();if(i&&this.isImageWidget(i))return i;let n=t.parent;for(;n;){if(n.is("element")&&this.isImageWidget(n))return n;n=n.parent}return null}getClosestSelectedImageElement(e){let t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){let e=this.editor.model.document.selection;return function(e,t){if("imageBlock"==h9(e,t)){let i,n=(i=c4(t,e.model).start.parent).isEmpty&&!i.is("element","$root")?i.parent:i;if(e.model.schema.checkChild(n,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}(this.editor,e)&&[...e.focus.getAncestors()].every(e=>!e.is("element","imageBlock"))}toImageWidget(e,t,i){return t.setCustomProperty("image",!0,e),cX(e,t,{label:()=>{let t=this.findViewImgElement(e).getAttribute("alt");return t?`${t} ${i}`:i}})}isImageWidget(e){return!!e.getCustomProperty("image")&&cJ(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;for(let{item:t}of this.editor.editing.view.createRangeIn(e))if(this.isInlineImageView(t))return t}}function h9(e,t,i){let n=e.model.schema,o=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?i||("inline"===o?"imageInline":"block"===o?"imageBlock":t.is("selection")?h7(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class h8 extends W{static get requires(){return[h6]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new h5(this.editor))}}var ue=r(1905);ok()(ue.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ue.Z.locals;var ut=r(6764);ok()(ut.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ut.Z.locals;class ui extends lc{constructor(e){super(e);let t=this.locale.t;this.focusTracker=new rA,this.keystrokes=new rC,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(t("Save"),lT.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),lT.cancel,"ck-button-cancel","cancel"),this._focusables=new a2,this._focusCycler=new lG({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]}),lI(this)}render(){super.render(),this.keystrokes.listenTo(this.element),lM({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,i,n){let o=new lj(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:i}}),n&&o.delegate("execute").to(this,n),o}_createLabeledInputView(){let e=this.locale.t,t=new cm(this.locale,cf);return t.label=e("Text alternative"),t}}function un(e){let t=e.editing.view,i=lf.defaultPositions,n=e.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}class uo extends W{static get requires(){return[cC]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){let e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",i=>{let n=e.commands.get("imageTextAlternative"),o=new lj(i);return o.set({label:t("Change image text alternative"),icon:lT.lowVision,tooltip:!0}),o.bind("isEnabled").to(n,"isEnabled"),o.bind("isOn").to(n,"value",e=>!!e),this.listenTo(o,"execute",()=>{this._showForm()}),o})}_createForm(){let e=this.editor,t=e.editing.view.document,i=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new ui(e.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{e.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(e,t)=>{this._hideForm(!0),t()}),this.listenTo(e.ui,"update",()=>{i.getClosestSelectedImageWidget(t.selection)?this._isVisible&&function(e){let t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){let i=un(e);t.updatePosition(i)}}(e):this._hideForm(!0)}),lS({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;let e=this.editor,t=e.commands.get("imageTextAlternative"),i=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:un(e)}),i.fieldView.value=i.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class ur extends W{static get requires(){return[h8,uo]}static get pluginName(){return"ImageTextAlternative"}}function us(e,t){return e=>{e.on(`attribute:srcset:${t}`,i)};function i(t,i,n){if(!n.consumable.consume(i.item,t.name))return;let o=n.writer,r=n.mapper.toViewElement(i.item),s=e.findViewImgElement(r);if(null===i.attributeNewValue){let e=i.attributeOldValue;e.data&&(o.removeAttribute("srcset",s),o.removeAttribute("sizes",s),e.width&&o.removeAttribute("width",s))}else{let e=i.attributeNewValue;e.data&&(o.setAttribute("srcset",e.data,s),o.setAttribute("sizes","100vw",s),e.width&&o.setAttribute("width",e.width,s))}}}function ua(e,t,i){return e=>{e.on(`attribute:${i}:${t}`,n)};function n(t,i,n){if(!n.consumable.consume(i.item,t.name))return;let o=n.writer,r=n.mapper.toViewElement(i.item),s=e.findViewImgElement(r);o.setAttribute(i.attributeKey,i.attributeNewValue||"",s)}}class ul extends oF{observe(e){this.listenTo(e,"load",(e,t)=>{let i=t.target;this.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&this._fireEvents(t)},{useCapture:!0})}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}class uc extends ${constructor(e){super(e);let t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||"block"===t&&m("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===t&&m("image-inline-plugin-required")}refresh(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}execute(e){let t=iA(e.source),i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(i.getAttributes());t.forEach((e,t)=>{let r=i.getSelectedElement();if("string"==typeof e&&(e={src:e}),t&&r&&n.isImage(r)){let t=this.editor.model.createPositionAfter(r);n.insertImage({...e,...o},t)}else n.insertImage({...e,...o})})}}class ud extends W{static get requires(){return[h6]}static get pluginName(){return"ImageEditing"}init(){let e=this.editor,t=e.conversion;e.editing.view.addObserver(ul),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:e=>{let t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}});let i=new uc(e);e.commands.add("insertImage",i),e.commands.add("imageInsert",i)}}class uh extends ${constructor(e,t){super(e),this._modelElementName=t}refresh(){let e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}execute(){let e=this.editor,t=this.editor.model,i=e.plugins.get("ImageUtils"),n=i.getClosestSelectedImageElement(t.document.selection),o=Object.fromEntries(n.getAttributes());return o.src||o.uploadId?t.change(e=>{let r=Array.from(t.markers).filter(e=>e.getRange().containsItem(n)),s=i.insertImage(o,t.createSelection(n,"on"),this._modelElementName);if(!s)return null;let a=e.createRangeOn(s);for(let t of r){let i=t.getRange(),n="$graveyard"!=i.root.rootName?i.getJoined(a,!0):a;e.updateMarker(t,{range:n})}return{oldElement:n,newElement:s}}):null}}class uu extends W{static get requires(){return[ud,h6,cz]}static get pluginName(){return"ImageBlockEditing"}init(){let e=this.editor;e.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new uh(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){let e=this.editor,t=e.t,i=e.conversion,n=e.plugins.get("ImageUtils");i.for("dataDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:t})=>h4(t)}),i.for("editingDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:i})=>n.toImageWidget(h4(i),i,t("image widget"))}),i.for("downcast").add(ua(n,"imageBlock","src")).add(ua(n,"imageBlock","alt")).add(us(n,"imageBlock")),i.for("upcast").elementToElement({view:h3(e,"imageBlock"),model:(e,{writer:t})=>t.createElement("imageBlock",e.hasAttribute("src")?{src:e.getAttribute("src")}:null)}).add(function(e){return e=>{e.on("element:figure",t)};function t(t,i,n){if(!n.consumable.test(i.viewItem,{name:!0,classes:"image"}))return;let o=e.findViewImgElement(i.viewItem);if(!o||!n.consumable.test(o,{name:!0}))return;n.consumable.consume(i.viewItem,{name:!0,classes:"image"});let r=r_(n.convertItem(o,i.modelCursor).modelRange.getItems());r?(n.convertChildren(i.viewItem,r),n.updateConversionResult(r,i)):n.consumable.revert(i.viewItem,{name:!0,classes:"image"})}}(n))}_setupClipboardIntegration(){let e=this.editor,t=e.model,i=e.editing.view,n=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(o,r)=>{let s,a=Array.from(r.content.getChildren());if(!a.every(n.isInlineImageView))return;s=r.targetRanges?e.editing.mapper.toModelRange(r.targetRanges[0]):t.document.selection.getFirstRange();let l=t.createSelection(s);if("imageBlock"===h7(t.schema,l)){let e=new aG(i.document),t=a.map(t=>e.createElement("figure",{class:"image"},t));r.content=e.createDocumentFragment(t)}})}}var ug=r(3508);ok()(ug.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ug.Z.locals;class up extends W{static get requires(){return[uu,dd,ur]}static get pluginName(){return"ImageBlock"}}class um extends W{static get requires(){return[ud,h6,cz]}static get pluginName(){return"ImageInlineEditing"}init(){let e=this.editor,t=e.model.schema;t.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),t.addChildCheck((e,t)=>{if(e.endsWith("caption")&&"imageInline"===t.name)return!1}),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new uh(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){let e=this.editor,t=e.t,i=e.conversion,n=e.plugins.get("ImageUtils");i.for("dataDowncast").elementToElement({model:"imageInline",view:(e,{writer:t})=>t.createEmptyElement("img")}),i.for("editingDowncast").elementToStructure({model:"imageInline",view:(e,{writer:i})=>n.toImageWidget(i.createContainerElement("span",{class:"image-inline"},i.createEmptyElement("img")),i,t("image widget"))}),i.for("downcast").add(ua(n,"imageInline","src")).add(ua(n,"imageInline","alt")).add(us(n,"imageInline")),i.for("upcast").elementToElement({view:h3(e,"imageInline"),model:(e,{writer:t})=>t.createElement("imageInline",e.hasAttribute("src")?{src:e.getAttribute("src")}:null)})}_setupClipboardIntegration(){let e=this.editor,t=e.model,i=e.editing.view,n=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(o,r)=>{let s,a=Array.from(r.content.getChildren());if(!a.every(n.isBlockImageView))return;s=r.targetRanges?e.editing.mapper.toModelRange(r.targetRanges[0]):t.document.selection.getFirstRange();let l=t.createSelection(s);if("imageInline"===h7(t.schema,l)){let e=new aG(i.document),t=a.map(t=>1===t.childCount?(Array.from(t.getAttributes()).forEach(i=>e.setAttribute(...i,n.findViewImgElement(t))),t.getChild(0)):t);r.content=e.createDocumentFragment(t)}})}}class uf extends W{static get requires(){return[um,dd,ur]}static get pluginName(){return"ImageInline"}}class ub extends ${refresh(){let e=this.editor,t=e.plugins.get("ImageCaptionUtils");if(!e.plugins.has(uu))return this.isEnabled=!1,void(this.value=!1);let i=e.model.document.selection,n=i.getSelectedElement();if(!n){let e=t.getCaptionFromModelSelection(i);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(n),this.isEnabled?this.value=!!t.getCaptionFromImageModelElement(n):this.value=!1}execute(e={}){let{focusCaptionOnShow:t}=e;this.editor.model.change(e=>{this.value?this._hideImageCaption(e):this._showImageCaption(e,t)})}_showImageCaption(e,t){let i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageCaptionEditing"),o=i.getSelectedElement(),r=n._getSavedCaption(o);this.editor.plugins.get("ImageUtils").isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=i.getSelectedElement());let s=r||e.createElement("caption");e.append(s,o),t&&e.setSelection(s,"in")}_hideImageCaption(e){let t=this.editor,i=t.model.document.selection,n=t.plugins.get("ImageCaptionEditing"),o=t.plugins.get("ImageCaptionUtils"),r,s=i.getSelectedElement();s?r=o.getCaptionFromImageModelElement(s):s=(r=o.getCaptionFromModelSelection(i)).parent,n._saveCaption(s,r),e.setSelection(s,"on"),e.remove(r)}}class uk extends W{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[h6]}getCaptionFromImageModelElement(e){for(let t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}getCaptionFromModelSelection(e){let t=this.editor.plugins.get("ImageUtils"),i=e.getFirstPosition().findAncestor("caption");return i&&t.isBlockImage(i.parent)?i:null}matchImageCaptionViewElement(e){let t=this.editor.plugins.get("ImageUtils");return"figcaption"==e.name&&t.isBlockImageView(e.parent)?{name:!0}:null}}class uw extends W{static get requires(){return[h6,uk]}static get pluginName(){return"ImageCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){let e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new ub(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){let e=this.editor,t=e.editing.view,i=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils"),o=e.t;e.conversion.for("upcast").elementToElement({view:e=>n.matchImageCaptionViewElement(e),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>i.isBlockImage(e.parent)?t.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:n})=>{if(!i.isBlockImage(e.parent))return null;let r=n.createEditableElement("figcaption");n.setCustomProperty("imageCaption",!0,r),aN({view:t,element:r,text:o("Enter image caption"),keepOnFocus:!0});let s=e.parent.getAttribute("alt");return c5(r,n,{label:s?o("Caption for image: %0",[s]):o("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){let e=this.editor,t=e.plugins.get("ImageUtils"),i=e.plugins.get("ImageCaptionUtils"),n=e.commands.get("imageTypeInline"),o=e.commands.get("imageTypeBlock"),r=e=>{if(!e.return)return;let{oldElement:n,newElement:o}=e.return;if(!n)return;if(t.isBlockImage(n)){let e=i.getCaptionFromImageModelElement(n);if(e)return void this._saveCaption(o,e)}let r=this._getSavedCaption(n);r&&this._saveCaption(o,r)};n&&this.listenTo(n,"execute",r,{priority:"low"}),o&&this.listenTo(o,"execute",r,{priority:"low"})}_getSavedCaption(e){let t=this._savedCaptionsMap.get(e);return t?rU.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}_registerCaptionReconversion(){let e=this.editor,t=e.model,i=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils");t.document.on("change:data",()=>{for(let o of t.document.differ.getChanges()){if("alt"!==o.attributeKey)continue;let t=o.range.start.nodeAfter;if(i.isBlockImage(t)){let i=n.getCaptionFromImageModelElement(t);if(!i)return;e.editing.reconvertItem(i)}}})}}class u_ extends W{static get requires(){return[uk]}static get pluginName(){return"ImageCaptionUI"}init(){let e=this.editor,t=e.editing.view,i=e.plugins.get("ImageCaptionUtils"),n=e.t;e.ui.componentFactory.add("toggleImageCaption",o=>{let r=e.commands.get("toggleImageCaption"),s=new lj(o);return s.set({icon:lT.caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.bind("label").to(r,"value",e=>n(e?"Toggle caption off":"Toggle caption on")),this.listenTo(s,"execute",()=>{e.execute("toggleImageCaption",{focusCaptionOnShow:!0});let n=i.getCaptionFromModelSelection(e.model.document.selection);if(n){let i=e.editing.mapper.toViewElement(n);t.scrollToTheSelection(),t.change(e=>{e.addClass("image__caption_highlighted",i)})}e.editing.view.focus()}),s})}}var uA=r(2640);ok()(uA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uA.Z.locals;class uC extends ${constructor(e,t){super(e),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map(e=>{if(e.isDefault)for(let t of e.modelElements)this._defaultStyles[t]=e.name;return[e.name,e]}))}refresh(){let e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}execute(e={}){let t=this.editor,i=t.model,n=t.plugins.get("ImageUtils");i.change(t=>{let o=e.value,r=n.getClosestSelectedImageElement(i.document.selection);o&&this.shouldConvertImageType(o,r)&&(this.editor.execute(n.isBlockImage(r)?"imageTypeInline":"imageTypeBlock"),r=n.getClosestSelectedImageElement(i.document.selection)),!o||this._styles.get(o).isDefault?t.removeAttribute("imageStyle",r):t.setAttribute("imageStyle",o,r)})}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}let{objectFullWidth:uv,objectInline:uy,objectLeft:ux,objectRight:uE,objectCenter:uD,objectBlockLeft:uT,objectBlockRight:uS}=lT,uI={get inline(){return{name:"inline",title:"In line",icon:uy,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:ux,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:uT,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:uD,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:uE,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:uS,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:uD,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:uE,modelElements:["imageBlock"],className:"image-style-side"}}},uM={full:uv,left:uT,right:uS,center:uD,inlineLeft:ux,inlineRight:uE,inline:uy},uN=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function uP(e){m("image-style-configuration-definition-invalid",e)}let uB={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map(e=>{var t;return"string"==typeof(t="string"==typeof(t=e)?uI[t]?{...uI[t]}:{name:t}:function(e,t){let i={...t};for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(i[n]=e[n]);return i}(uI[t.name],t)).icon&&(t.icon=uM[t.icon]||t.icon),t}).filter(t=>(function(e,{isBlockPluginLoaded:t,isInlinePluginLoaded:i}){let{modelElements:n,name:o}=e;if(!(n&&n.length&&o))return uP({style:e}),!1;{let o=[t?"imageBlock":null,i?"imageInline":null];if(!n.some(e=>o.includes(e)))return m("image-style-missing-dependency",{style:e,missingPlugins:n.map(e=>"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0})(t,e))},getDefaultStylesConfiguration:function(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[...uN]:[]},warnInvalidStyle:uP,DEFAULT_OPTIONS:uI,DEFAULT_ICONS:uM,DEFAULT_DROPDOWN_DEFINITIONS:uN};function uz(e,t){for(let i of t)if(i.name===e)return i}class uj extends W{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[h6]}init(){let{normalizeStyles:e,getDefaultStylesConfiguration:t}=uB,i=this.editor,n=i.plugins.has("ImageBlockEditing"),o=i.plugins.has("ImageInlineEditing");i.config.define("image.styles",t(n,o)),this.normalizedStyles=e({configuredStyles:i.config.get("image.styles"),isBlockPluginLoaded:n,isInlinePluginLoaded:o}),this._setupConversion(n,o),this._setupPostFixer(),i.commands.add("imageStyle",new uC(i,this.normalizedStyles))}_setupConversion(e,t){var i,n;let o,r=this.editor,s=r.model.schema,a=(i=this.normalizedStyles,(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;let o=uz(t.attributeNewValue,i),r=uz(t.attributeOldValue,i),s=n.mapper.toViewElement(t.item),a=n.writer;r&&a.removeClass(r.className,s),o&&a.addClass(o.className,s)}),l=(o={imageInline:(n=this.normalizedStyles).filter(e=>!e.isDefault&&e.modelElements.includes("imageInline")),imageBlock:n.filter(e=>!e.isDefault&&e.modelElements.includes("imageBlock"))},(e,t,i)=>{if(!t.modelRange)return;let n=t.viewItem,r=r_(t.modelRange.getItems());if(r&&i.schema.checkAttribute(r,"imageStyle"))for(let e of o[r.name])i.consumable.consume(n,{classes:e.className})&&i.writer.setAttribute("imageStyle",e.name,r)});r.editing.downcastDispatcher.on("attribute:imageStyle",a),r.data.downcastDispatcher.on("attribute:imageStyle",a),e&&(s.extend("imageBlock",{allowAttributes:"imageStyle"}),r.data.upcastDispatcher.on("element:figure",l,{priority:"low"})),t&&(s.extend("imageInline",{allowAttributes:"imageStyle"}),r.data.upcastDispatcher.on("element:img",l,{priority:"low"}))}_setupPostFixer(){let e=this.editor,t=e.model.document,i=e.plugins.get(h6),n=new Map(this.normalizedStyles.map(e=>[e.name,e]));t.registerPostFixer(e=>{let o=!1;for(let r of t.differ.getChanges())if("insert"==r.type||"attribute"==r.type&&"imageStyle"==r.attributeKey){let t="insert"==r.type?r.position.nodeAfter:r.range.start.nodeAfter;if(t&&t.is("element","paragraph")&&t.childCount>0&&(t=t.getChild(0)),!i.isImage(t))continue;let s=t.getAttribute("imageStyle");if(!s)continue;let a=n.get(s);a&&a.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),o=!0)}return o})}}var uL=r(5083);ok()(uL.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uL.Z.locals;class uO extends W{static get requires(){return[uj]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){let e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){let e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],i=uR(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(let e of i)this._createButton(e);for(let n of uR([...t.filter(I),...uB.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles))this._createDropdown(n,i)}_createDropdown(e,t){let i=this.editor.ui.componentFactory;i.add(e.name,n=>{var o;let r,{defaultItem:s,items:a,title:l}=e,c=a.filter(e=>t.find(({name:t})=>uF(t)===e)).map(e=>{let t=i.create(e);return e===s&&(r=t),t});a.length!==c.length&&uB.warnInvalidStyle({dropdown:e});let d=ce(n,lH),h=d.buttonView,u=h.arrowView;return ct(d,c,{enableActiveItemFocusOnDropdownOpen:!0}),h.set({label:((o=l)?o+": ":"")+r.label,class:null,tooltip:!0}),u.unbind("label"),u.set({label:l}),h.bind("icon").toMany(c,"isOn",(...e)=>{let t=e.findIndex(i8);return t<0?r.icon:c[t].icon}),h.bind("label").toMany(c,"isOn",(...e)=>{var t;let i=e.findIndex(i8);return((t=l)?t+": ":"")+(i<0?r.label:c[i].label)}),h.bind("isOn").toMany(c,"isOn",(...e)=>e.some(i8)),h.bind("class").toMany(c,"isOn",(...e)=>e.some(i8)?"ck-splitbutton_flatten":null),h.on("execute",()=>{c.some(({isOn:e})=>e)?d.isOpen=!d.isOpen:r.fire("execute")}),d.bind("isEnabled").toMany(c,"isEnabled",(...e)=>e.some(i8)),this.listenTo(d,"execute",()=>{this.editor.editing.view.focus()}),d})}_createButton(e){let t=e.name;this.editor.ui.componentFactory.add(uF(t),i=>{let n=this.editor.commands.get("imageStyle"),o=new lj(i);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(n,"isEnabled"),o.bind("isOn").to(n,"value",e=>e===t),o.on("execute",this._executeCommand.bind(this,t)),o})}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function uR(e,t){for(let i of e)t[i.title]&&(i.title=t[i.title]);return e}function uF(e){return`imageStyle:${e}`}function uV(e){let t=e.map(e=>e.replace("+","\\+"));return RegExp(`^image\\/(${t.join("|")})$`)}function uU(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class uH extends W{static get pluginName(){return"ImageUploadUI"}init(){let e=this.editor,t=e.t,i=i=>{let n=new d9(i),o=e.commands.get("uploadImage"),r=e.config.get("image.upload.types"),s=uV(r);return n.set({acceptedType:r.map(e=>`image/${e}`).join(","),allowMultipleFiles:!0}),n.buttonView.set({label:t("Insert image"),icon:lT.image,tooltip:!0}),n.buttonView.bind("isEnabled").to(o),n.on("done",(t,i)=>{let n=Array.from(i).filter(e=>s.test(e.type));n.length&&(e.execute("uploadImage",{file:n}),e.editing.view.focus())}),n};e.ui.componentFactory.add("uploadImage",i),e.ui.componentFactory.add("imageUpload",i)}}var uW=r(3689);ok()(uW.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uW.Z.locals;var uq=r(4036);ok()(uq.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uq.Z.locals;var u$=r(3773);ok()(u$.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),u$.Z.locals;class uG extends W{static get pluginName(){return"ImageUploadProgress"}constructor(e){super(e),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){let e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",(...e)=>this.uploadStatusChange(...e)),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",(...e)=>this.uploadStatusChange(...e))}uploadStatusChange(e,t,i){var n,o;let r,s=this.editor,a=t.item,l=a.getAttribute("uploadId");if(!i.consumable.consume(t.item,e.name))return;let c=s.plugins.get("ImageUtils"),d=s.plugins.get(d7),h=l?t.attributeNewValue:null,u=this.placeholder,g=s.editing.mapper.toViewElement(a),p=i.writer;if("reading"==h)return uK(g,p),void uY(c,u,g,p);if("uploading"==h){let e,t=d.loaders.get(l);return uK(g,p),void(t?(uQ(g,p),n=s.editing.view,e=p.createUIElement("div",{class:"ck-progress-bar"}),p.setCustomProperty("progressBar",!0,e),p.insert(p.createPositionAt(g,"end"),e),t.on("change:uploadedPercent",(t,i,o)=>{n.change(t=>{t.setStyle("width",o+"%",e)})}),function(e,t,i,n){if(n.data){let o=e.findViewImgElement(t);i.setAttribute("src",n.data,o)}}(c,g,p,t)):uY(c,u,g,p))}"complete"==h&&d.loaders.get(l)&&(o=s.editing.view,r=p.createUIElement("div",{class:"ck-image-upload-complete-icon"}),p.insert(p.createPositionAt(g,"end"),r),setTimeout(()=>{o.change(e=>e.remove(e.createRangeOn(r)))},3e3)),uJ(g,p,"progressBar"),uQ(g,p),p.removeClass("ck-appear",g)}}function uK(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function uY(e,t,i,n){let o;i.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",i);let r=e.findViewImgElement(i);r.getAttribute("src")!==t&&n.setAttribute("src",t,r),uZ(i,"placeholder")||n.insert(n.createPositionAfter(r),(o=n.createUIElement("div",{class:"ck-upload-placeholder-loader"}),n.setCustomProperty("placeholder",!0,o),o))}function uQ(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),uJ(e,t,"placeholder")}function uZ(e,t){for(let i of e.getChildren())if(i.getCustomProperty(t))return i}function uJ(e,t,i){let n=uZ(e,i);n&&t.remove(t.createRangeOn(n))}class uX extends ${refresh(){let e=this.editor,t=e.plugins.get("ImageUtils"),i=e.model.document.selection.getSelectedElement();this.isEnabled=t.isImageAllowed()||t.isImage(i)}execute(e){let t=iA(e.file),i=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(i.getAttributes());t.forEach((e,t)=>{let r=i.getSelectedElement();if(t&&r&&n.isImage(r)){let t=this.editor.model.createPositionAfter(r);this._uploadImage(e,o,t)}else this._uploadImage(e,o)})}_uploadImage(e,t,i){let n=this.editor,o=n.plugins.get(d7).createLoader(e),r=n.plugins.get("ImageUtils");o&&r.insertImage({...t,uploadId:o.id},i)}}class u0 extends W{static get requires(){return[d7,cb,cz,h6]}static get pluginName(){return"ImageUploadEditing"}constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){let e=this.editor,t=e.model.document,i=e.conversion,n=e.plugins.get(d7),o=e.plugins.get("ImageUtils"),r=uV(e.config.get("image.upload.types")),s=new uX(e);e.commands.add("uploadImage",s),e.commands.add("imageUpload",s),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",(t,i)=>{var n;if(Array.from((n=i.dataTransfer).types).includes("text/html")&&""!==n.getData("text/html"))return;let o=Array.from(i.dataTransfer.files).filter(e=>!!e&&r.test(e.type));o.length&&(t.stop(),e.model.change(t=>{i.targetRanges&&t.setSelection(i.targetRanges.map(t=>e.editing.mapper.toModelRange(t))),e.model.enqueueChange(()=>{e.execute("uploadImage",{file:o})})}))}),this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(t,i)=>{let r=Array.from(e.editing.view.createRangeIn(i.content)).filter(e=>{var t;return t=e.item,!(!o.isInlineImageView(t)||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed")}).map(e=>{var t;return{promise:(t=e.item,new Promise((e,i)=>{let n=t.getAttribute("src");fetch(n).then(e=>e.blob()).then(t=>{let i=uU(t,n),o=i.replace("image/","");e(new File([t],`image.${o}`,{type:i}))}).catch(t=>t&&"TypeError"===t.name?new Promise((e,t)=>{let i=iC.document.createElement("img");i.addEventListener("load",()=>{let n=iC.document.createElement("canvas");n.width=i.width,n.height=i.height,n.getContext("2d").drawImage(i,0,0),n.toBlob(i=>i?e(i):t())}),i.addEventListener("error",()=>t()),i.src=n}).then(e=>{let t=uU(e,n),i=t.replace("image/","");return new File([e],`image.${i}`,{type:t})}).then(e).catch(i):i(t))})),imageElement:e.item}});if(!r.length)return;let s=new aG(e.editing.view.document);for(let e of r){s.setAttribute("uploadProcessed",!0,e.imageElement);let t=n.createLoader(e.promise);t&&(s.setAttribute("src","",e.imageElement),s.setAttribute("uploadId",t.id,e.imageElement))}}),e.editing.view.document.on("dragover",(e,t)=>{t.preventDefault()}),t.on("change",()=>{let i=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),o=new Set;for(let t of i)if("insert"==t.type&&"$text"!=t.name){let i=t.position.nodeAfter,r="$graveyard"==t.position.root.rootName;for(let t of function(e,t){let i=e.plugins.get("ImageUtils");return Array.from(e.model.createRangeOn(t)).filter(e=>i.isImage(e.item)).map(e=>e.item)}(e,i)){let e=t.getAttribute("uploadId");if(!e)continue;let i=n.loaders.get(e);i&&(r?o.has(e)||i.abort():(o.add(e),this._uploadImageElements.set(e,t),"idle"==i.status&&this._readAndUpload(i)))}}}),this.on("uploadComplete",(e,{imageElement:t,data:i})=>{let n=i.urls?i.urls:i;this.editor.model.change(e=>{e.setAttribute("src",n.default,t),this._parseAndSetSrcsetAttributeOnImage(n,t,e)})},{priority:"low"})}afterInit(){let e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(e){let t=this.editor,i=t.model,n=t.locale.t,o=t.plugins.get(d7),r=t.plugins.get(cb),s=t.plugins.get("ImageUtils"),a=this._uploadImageElements;return i.enqueueChange({isUndoable:!1},t=>{t.setAttribute("uploadStatus","reading",a.get(e.id))}),e.read().then(()=>{let n=e.upload(),o=a.get(e.id);if(nV.isSafari){let e=t.editing.mapper.toViewElement(o),i=s.findViewImgElement(e);t.editing.view.once("render",()=>{if(!i.parent)return;let e=t.editing.view.domConverter.mapViewToDom(i.parent);if(!e)return;let n=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=n})}return i.enqueueChange({isUndoable:!1},e=>{e.setAttribute("uploadStatus","uploading",o)}),n}).then(t=>{i.enqueueChange({isUndoable:!1},i=>{let n=a.get(e.id);i.setAttribute("uploadStatus","complete",n),this.fire("uploadComplete",{data:t,imageElement:n})}),l()}).catch(t=>{if("error"!==e.status&&"aborted"!==e.status)throw t;"error"==e.status&&t&&r.showWarning(t,{title:n("Upload failed"),namespace:"upload"}),i.enqueueChange({isUndoable:!1},t=>{t.remove(a.get(e.id))}),l()});function l(){i.enqueueChange({isUndoable:!1},t=>{let i=a.get(e.id);t.removeAttribute("uploadId",i),t.removeAttribute("uploadStatus",i),a.delete(e.id)}),o.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,i){let n=0,o=Object.keys(e).filter(e=>{let t=parseInt(e,10);if(!isNaN(t))return n=Math.max(n,t),!0}).map(t=>`${e[t]} ${t}w`).join(", ");""!=o&&i.setAttribute("srcset",{data:o,width:n},t)}}class u1 extends W{static get pluginName(){return"IndentEditing"}init(){let e=this.editor;e.commands.add("indent",new K(e)),e.commands.add("outdent",new K(e))}}let u2='',u5='';class u4 extends W{static get pluginName(){return"IndentUI"}init(){let e=this.editor,t=e.locale,i=e.t,n="ltr"==t.uiLanguageDirection?u2:u5,o="ltr"==t.uiLanguageDirection?u5:u2;this._defineButton("indent",i("Increase indent"),n),this._defineButton("outdent",i("Decrease indent"),o)}_defineButton(e,t,i){let n=this.editor;n.ui.componentFactory.add(e,o=>{let r=n.commands.get(e),s=new lj(o);return s.set({label:t,icon:i,tooltip:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(s,"execute",()=>{n.execute(e),n.editing.view.focus()}),s})}}class u3{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach(e=>this._definitions.add(e)):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",(e,t,i)=>{if(!i.consumable.test(t.item,"attribute:linkHref")||!t.item.is("selection")&&!i.schema.isInline(t.item))return;let n=i.writer,o=n.document.selection;for(let e of this._definitions){let r=n.createAttributeElement("a",e.attributes,{priority:5});for(let t in e.classes&&n.addClass(e.classes,r),e.styles)n.setStyle(t,e.styles[t],r);n.setCustomProperty("link",!0,r),e.callback(t.attributeNewValue)?t.item.is("selection")?n.wrap(o.getFirstRange(),r):n.wrap(i.mapper.toViewRange(t.range),r):n.unwrap(i.mapper.toViewRange(t.range),r)}},{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",(e,t,{writer:i,mapper:n})=>{let o=Array.from(n.toViewElement(t.item).getChildren()).find(e=>"a"===e.name);for(let e of this._definitions){let n=iB(e.attributes);if(e.callback(t.attributeNewValue)){for(let[e,t]of n)"class"===e?i.addClass(t,o):i.setAttribute(e,t,o);for(let t in e.classes&&i.addClass(e.classes,o),e.styles)i.setStyle(t,e.styles[t],o)}else{for(let[e,t]of n)"class"===e?i.removeClass(t,o):i.removeAttribute(e,o);for(let t in e.classes&&i.removeClass(e.classes,o),e.styles)i.removeStyle(t,o)}}})}}}let u7=function(e,t,i){var n=e.length;return i=void 0===i?n:i,!t&&i>=n?e:i1(e,t,i)};var u6=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let u9=function(e){return u6.test(e)};var u8="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ge="\\ud83c[\\udffb-\\udfff]",gt="[^\\ud800-\\udfff]",gi="(?:\\ud83c[\\udde6-\\uddff]){2}",gn="[\\ud800-\\udbff][\\udc00-\\udfff]",go="(?:"+u8+"|"+ge+")?",gr="[\\ufe0e\\ufe0f]?",gs=gr+go+("(?:\\u200d(?:"+[gt,gi,gn].join("|")+")"+gr)+go+")*",ga=RegExp(ge+"(?="+ge+")|"+("(?:"+[gt+u8+"?",u8,gi,gn,"[\\ud800-\\udfff]"].join("|"))+")"+gs,"g");let gl=function(e){var t,i=u9(e=iQ(e))?u9(t=e)?t.match(ga)||[]:t.split(""):void 0,n=i?i[0]:e.charAt(0),o=i?u7(i,1).join(""):e.slice(1);return n.toUpperCase()+o},gc=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,gd=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,gh=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,gu=/^((\w+:(\/{2,})?)|(\W))/i,gg="Ctrl+K";function gp(e,{writer:t}){let i=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,i),i}function gm(e){return(e=String(e)).replace(gc,"").match(gd)?e:"#"}function gf(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function gb(e,t){var i;let n=gh.test(e)?"mailto:":t,o=!!n&&(i=e,!gu.test(i));return e&&o?n+e:e}function gk(e){window.open(e,"_blank","noopener")}class gw extends ${constructor(e){super(e),this.manualDecorators=new iw,this.automaticDecorators=new u3}restoreManualDecoratorStates(){for(let e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){let e=this.editor.model,t=e.document.selection,i=t.getSelectedElement()||r_(t.getSelectedBlocks());for(let n of(gf(i,e.schema)?(this.value=i.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(i,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")),this.manualDecorators))n.value=this._getDecoratorStateFromModel(n.id)}execute(e,t={}){let i=this.editor.model,n=i.document.selection,o=[],r=[];for(let e in t)t[e]?o.push(e):r.push(e);i.change(t=>{if(n.isCollapsed){let s=n.getFirstPosition();if(n.hasAttribute("linkHref")){let a=dY(s,"linkHref",n.getAttribute("linkHref"),i);t.setAttribute("linkHref",e,a),o.forEach(e=>{t.setAttribute(e,!0,a)}),r.forEach(e=>{t.removeAttribute(e,a)}),t.setSelection(t.createPositionAfter(a.end.nodeBefore))}else if(""!==e){let r=iB(n.getAttributes());r.set("linkHref",e),o.forEach(e=>{r.set(e,!0)});let{end:a}=i.insertContent(t.createText(e,r),s);t.setSelection(a)}["linkHref",...o,...r].forEach(e=>{t.removeSelectionAttribute(e)})}else{let s=i.schema.getValidRanges(n.getRanges(),"linkHref"),a=[];for(let e of n.getSelectedBlocks())i.schema.checkAttribute(e,"linkHref")&&a.push(t.createRangeOn(e));let l=a.slice();for(let e of s)this._isRangeToUpdate(e,a)&&l.push(e);for(let i of l)t.setAttribute("linkHref",e,i),o.forEach(e=>{t.setAttribute(e,!0,i)}),r.forEach(e=>{t.removeAttribute(e,i)})}})}_getDecoratorStateFromModel(e){let t=this.editor.model,i=t.document.selection,n=i.getSelectedElement();return gf(n,t.schema)?n.getAttribute(e):i.getAttribute(e)}_isRangeToUpdate(e,t){for(let i of t)if(i.containsRange(e))return!1;return!0}}class g_ extends ${refresh(){let e=this.editor.model,t=e.document.selection,i=t.getSelectedElement();gf(i,e.schema)?this.isEnabled=e.schema.checkAttribute(i,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){let e=this.editor,t=this.editor.model,i=t.document.selection,n=e.commands.get("link");t.change(e=>{for(let o of i.isCollapsed?[dY(i.getFirstPosition(),"linkHref",i.getAttribute("linkHref"),t)]:t.schema.getValidRanges(i.getRanges(),"linkHref"))if(e.removeAttribute("linkHref",o),n)for(let t of n.manualDecorators)e.removeAttribute(t.id,o)})}}class gA{constructor({id:e,label:t,attributes:i,classes:n,styles:o,defaultValue:r}){this.id=e,this.set("value"),this.defaultValue=r,this.label=t,this.attributes=i,this.classes=n,this.styles=o}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}H(gA,j);var gC=r(9773);ok()(gC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),gC.Z.locals;let gv="automatic",gy=/^(https?:)?\/\//;class gx extends W{static get pluginName(){return"LinkEditing"}static get requires(){return[dO,dB,cz]}constructor(e){super(e),e.config.define("link",{addTargetToExternalLinks:!1})}init(){var e,t,i,n;let o,r,s,a=this.editor;a.model.schema.extend("$text",{allowAttributes:"linkHref"}),a.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:gp}),a.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,t)=>gp(gm(e),t)}),a.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),a.commands.add("link",new gw(a)),a.commands.add("unlink",new g_(a));let l=(e=a.t,t=function(e){let t=[];if(e)for(let[i,n]of Object.entries(e)){let e=Object.assign({},n,{id:`link${gl(i)}`});t.push(e)}return t}(a.config.get("link.decorators")),o={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")},t.forEach(e=>(e.label&&o[e.label]&&(e.label=o[e.label]),e)),t);this._enableAutomaticDecorators(l.filter(e=>e.mode===gv)),this._enableManualDecorators(l.filter(e=>"manual"===e.mode)),a.plugins.get(dO).registerAttribute("linkHref"),i="linkHref",n="ck-link_selected",r=a.editing.view,s=new Set,r.document.registerPostFixer(e=>{let t=a.model.document.selection,o=!1;if(t.hasAttribute(i)){let r=dY(t.getFirstPosition(),i,t.getAttribute(i),a.model);for(let t of a.editing.mapper.toViewRange(r).getItems())t.is("element","a")&&!t.hasClass(n)&&(e.addClass(n,t),s.add(t),o=!0)}return o}),a.conversion.for("editingDowncast").add(e=>{function t(){r.change(e=>{for(let t of s.values())e.removeClass(n,t),s.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"})}),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(e){let t=this.editor,i=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&i.add({id:"linkIsExternal",mode:gv,callback:e=>gy.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),i.add(e),i.length&&t.conversion.for("downcast").add(i.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;let t=this.editor,i=t.commands.get("link").manualDecorators;e.forEach(e=>{t.model.schema.extend("$text",{allowAttributes:e.id}),e=new gA(e),i.add(e),t.conversion.for("downcast").attributeToElement({model:e.id,view:(t,{writer:i,schema:n},{item:o})=>{if((o.is("selection")||n.isInline(o))&&t){let t=i.createAttributeElement("a",e.attributes,{priority:5});for(let n in e.classes&&i.addClass(e.classes,t),e.styles)i.setStyle(n,e.styles[n],t);return i.setCustomProperty("link",!0,t),t}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",...e._createPattern()},model:{key:e.id}})})}_enableLinkOpen(){let e=this.editor,t=e.editing.view.document,i=e.model.document;this.listenTo(t,"click",(e,t)=>{if(!(nV.isMac?t.domEvent.metaKey:t.domEvent.ctrlKey))return;let i=t.domTarget;if("a"!=i.tagName.toLowerCase()&&(i=i.closest("a")),!i)return;let n=i.getAttribute("href");n&&(e.stop(),t.preventDefault(),gk(n))},{context:"$capture"}),this.listenTo(t,"enter",(e,t)=>{let n=i.selection,o=n.getSelectedElement(),r=o?o.getAttribute("linkHref"):n.getAttribute("linkHref");r&&t.domEvent.altKey&&(e.stop(),gk(r))},{context:"a"})}_enableInsertContentSelectionAttributesFixer(){let e=this.editor.model,t=e.document.selection;this.listenTo(e,"insertContent",()=>{let i=t.anchor.nodeBefore,n=t.anchor.nodeAfter;t.hasAttribute("linkHref")&&i&&i.hasAttribute("linkHref")&&(n&&n.hasAttribute("linkHref")||e.change(t=>{gE(t,gT(e.schema))}))},{priority:"low"})}_enableClickingAfterLink(){let e=this.editor,t=e.model;e.editing.view.addObserver(a$);let i=!1;this.listenTo(e.editing.view.document,"mousedown",()=>{i=!0}),this.listenTo(e.editing.view.document,"selectionChange",()=>{if(!i)return;i=!1;let e=t.document.selection;if(!e.isCollapsed||!e.hasAttribute("linkHref"))return;let n=e.getFirstPosition(),o=dY(n,"linkHref",e.getAttribute("linkHref"),t);(n.isTouching(o.start)||n.isTouching(o.end))&&t.change(e=>{gE(e,gT(t.schema))})})}_enableTypingOverLink(){let e,t,i=this.editor,n=i.editing.view;this.listenTo(n.document,"delete",()=>{t=!0},{priority:"high"}),this.listenTo(i.model,"deleteContent",()=>{var n;let o,r,s,a,l=i.model.document.selection;l.isCollapsed||(t?t=!1:gD(i)&&(r=(o=(n=i.model).document.selection).getFirstPosition(),s=o.getLastPosition(),(a=r.nodeAfter)&&a.is("$text")&&a.hasAttribute("linkHref")&&(a===(s.textNode||s.nodeBefore)||dY(r,"linkHref",a.getAttribute("linkHref"),n).containsRange(n.createRange(r,s),!0)))&&(e=l.getAttributes()))},{priority:"high"}),this.listenTo(i.model,"insertContent",(n,[o])=>{t=!1,gD(i)&&e&&(i.model.change(t=>{for(let[i,n]of e)t.setAttribute(i,n,o)}),e=null)},{priority:"high"})}_handleDeleteContentAfterLink(){let e=this.editor,t=e.model,i=t.document.selection,n=e.editing.view,o=!1,r=!1;this.listenTo(n.document,"delete",(e,t)=>{r=t.domEvent.keyCode===nq.backspace},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{o=!1;let e=i.getFirstPosition(),n=i.getAttribute("linkHref");if(!n)return;let r=dY(e,"linkHref",n,t);o=r.containsPosition(e)||r.end.isEqual(e)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{r&&(r=!1,o||e.model.enqueueChange(e=>{gE(e,gT(t.schema))}))},{priority:"low"})}}function gE(e,t){for(let i of(e.removeSelectionAttribute("linkHref"),t))e.removeSelectionAttribute(i)}function gD(e){return e.model.change(e=>e.batch).isTyping}function gT(e){return e.getDefinition("$text").allowAttributes.filter(e=>e.startsWith("link"))}var gS=r(7754);ok()(gS.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),gS.Z.locals;class gI extends lc{constructor(e,t){super(e);let i=e.t;this.focusTracker=new rA,this.keystrokes=new rC,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(i("Save"),lT.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),lT.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusables=new a2,this._focusCycler=new lG({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});let n=["ck","ck-link-form","ck-responsive-form"];t.manualDecorators.length&&n.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:n,tabindex:"-1"},children:this.children}),lI(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((e,t)=>(e[t.name]=t.isOn,e),{})}render(){super.render(),lM({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){let e=this.locale.t,t=new cm(this.locale,cf);return t.label=e("Link URL"),t}_createButton(e,t,i,n){let o=new lj(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:i}}),n&&o.delegate("execute").to(this,n),o}_createManualDecoratorSwitches(e){let t=this.createCollection();for(let i of e.manualDecorators){let n=new lO(this.locale);n.set({name:i.id,label:i.label,withText:!0}),n.bind("isOn").toMany([i,e],"value",(e,t)=>void 0===t&&void 0===e?i.defaultValue:e),n.on("execute",()=>{i.set("value",!n.isOn)}),t.add(n)}return t}_createFormChildren(e){let t=this.createCollection();if(t.add(this.urlInputView),e.length){let e=new lc;e.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(e=>({tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(e)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}var gM=r(2347);ok()(gM.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),gM.Z.locals;class gN extends lc{constructor(e){super(e);let t=e.t;this.focusTracker=new rA,this.keystrokes=new rC,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(t("Unlink"),'',"unlink"),this.editButtonView=this._createButton(t("Edit link"),lT.pencil,"edit"),this.set("href"),this._focusables=new a2,this._focusCycler=new lG({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(e,t,i){let n=new lj(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n.delegate("execute").to(this,i),n}_createPreviewButton(){let e=new lj(this.locale),t=this.bindTemplate,i=this.t;return e.set({withText:!0,tooltip:i("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",e=>e&&gm(e)),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",e=>e||i("This link has no URL")),e.bind("isEnabled").to(this,"href",e=>!!e),e.template.tag="a",e.template.eventListeners={},e}}let gP="link-ui";class gB extends W{static get requires(){return[cC]}static get pluginName(){return"LinkUI"}init(){let e=this.editor;e.editing.view.addObserver(aq),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(cC),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:gP,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:gP,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){let e=this.editor,t=new gN(e.locale),i=e.commands.get("link"),n=e.commands.get("unlink");return t.bind("href").to(i,"value"),t.editButtonView.bind("isEnabled").to(i),t.unlinkButtonView.bind("isEnabled").to(n),this.listenTo(t,"edit",()=>{this._addFormView()}),this.listenTo(t,"unlink",()=>{e.execute("unlink"),this._hideUI()}),t.keystrokes.set("Esc",(e,t)=>{this._hideUI(),t()}),t.keystrokes.set(gg,(e,t)=>{this._addFormView(),t()}),t}_createFormView(){let e=this.editor,t=e.commands.get("link"),i=e.config.get("link.defaultProtocol"),n=new gI(e.locale,t);return n.urlInputView.fieldView.bind("value").to(t,"value"),n.urlInputView.bind("isReadOnly").to(t,"isEnabled",e=>!e),n.saveButtonView.bind("isEnabled").to(t),this.listenTo(n,"submit",()=>{let{value:t}=n.urlInputView.fieldView.element,o=gb(t,i);e.execute("link",o,n.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(n,"cancel",()=>{this._closeFormView()}),n.keystrokes.set("Esc",(e,t)=>{this._closeFormView(),t()}),n}_createToolbarLinkButton(){let e=this.editor,t=e.commands.get("link"),i=e.t;e.keystrokes.set(gg,(e,i)=>{i(),t.isEnabled&&this._showUI(!0)}),e.ui.componentFactory.add("link",e=>{let n=new lj(e);return n.isEnabled=!0,n.label=i("Link"),n.icon='',n.keystroke=gg,n.tooltip=!0,n.isToggleable=!0,n.bind("isEnabled").to(t,"isEnabled"),n.bind("isOn").to(t,"value",e=>!!e),this.listenTo(n,"execute",()=>this._showUI(!0)),n})}_enableUserBalloonInteractions(){let e=this.editor.editing.view.document;this.listenTo(e,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),this.editor.keystrokes.set("Tab",(e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())},{priority:"high"}),this.editor.keystrokes.set("Esc",(e,t)=>{this._isUIVisible&&(this._hideUI(),t())}),lS({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;let e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}_closeFormView(){let e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;let e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){let e=this.editor,t=e.editing.view.document,i=this._getSelectedLinkElement(),n=r(),o=()=>{let e=this._getSelectedLinkElement(),t=r();(!i||e)&&(i||t===n)?this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()):this._hideUI(),i=e,n=t};function r(){return t.selection.focus.getAncestors().reverse().find(e=>e.is("element"))}this.listenTo(e.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){let e=this.editor.editing.view,t=this.editor.model,i=e.document,n=null;if(t.markers.has(gP)){let t=Array.from(this.editor.editing.mapper.markerNameToElements(gP)),i=e.createRange(e.createPositionBefore(t[0]),e.createPositionAfter(t[t.length-1]));n=e.domConverter.viewRangeToDom(i)}else n=()=>{let t=this._getSelectedLinkElement();return t?e.domConverter.mapViewToDom(t):e.domConverter.viewRangeToDom(i.selection.getFirstRange())};return{target:n}}_getSelectedLinkElement(){let e=this.editor.editing.view,t=e.document.selection,i=t.getSelectedElement();if(t.isCollapsed||i&&cJ(i))return gz(t.getFirstPosition());{let i=t.getFirstRange().getTrimmed(),n=gz(i.start),o=gz(i.end);return n&&n==o&&e.createRangeIn(n).getTrimmed().isEqual(i)?n:null}}_showFakeVisualSelection(){let e=this.editor.model;e.change(t=>{let i=e.document.selection.getFirstRange();if(e.markers.has(gP))t.updateMarker(gP,{range:i});else if(i.start.isAtEnd){let n=i.start.getLastMatchingPosition(({item:t})=>!e.schema.isContent(t),{boundaries:i});t.addMarker(gP,{usingOperation:!1,affectsData:!1,range:t.createRange(n,i.end)})}else t.addMarker(gP,{usingOperation:!1,affectsData:!1,range:i})})}_hideFakeVisualSelection(){let e=this.editor.model;e.markers.has(gP)&&e.change(e=>{e.removeMarker(gP)})}}function gz(e){return e.getAncestors().find(e=>e.is("attributeElement")&&!!e.getCustomProperty("link"))}let gj=RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class gL extends W{static get requires(){return[cG]}static get pluginName(){return"AutoLink"}init(){let e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){let e=this.editor,t=new dL(e.model,e=>{if(!(e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]))return;let t=gO(e.substr(0,e.length-1));return t?{url:t}:void 0});t.on("matched:data",(t,i)=>{let{batch:n,range:o,url:r}=i;if(!n.isTyping)return;let s=o.end.getShiftedBy(-1),a=s.getShiftedBy(-r.length),l=e.model.createRange(a,s);this._applyAutoLink(r,l)}),t.bind("isEnabled").to(this)}_enableEnterHandling(){let e=this.editor,t=e.model,i=e.commands.get("enter");i&&i.on("execute",()=>{let e=t.document.selection.getFirstPosition();if(!e.parent.previousSibling)return;let i=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(i)})}_enableShiftEnterHandling(){let e=this.editor,t=e.model,i=e.commands.get("shiftEnter");i&&i.on("execute",()=>{let e=t.document.selection.getFirstPosition(),i=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(i)})}_checkAndApplyAutoLinkOnRange(e){let t=this.editor.model,{text:i,range:n}=dj(e,t),o=gO(i);if(o){let e=t.createRange(n.end.getShiftedBy(-o.length),n.end);this._applyAutoLink(o,e)}}_applyAutoLink(e,t){let i,n=this.editor.model,o=gb(e,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&n.schema.checkAttributeInSelection(n.createSelection(t),"linkHref")&&gu.test(o)&&!((i=t.start.nodeAfter)&&i.hasAttribute("linkHref"))&&this._persistAutoLink(o,t)}_persistAutoLink(e,t){let i=this.editor.model,n=this.editor.plugins.get("Delete");i.enqueueChange(o=>{o.setAttribute("linkHref",e,t),i.enqueueChange(()=>{n.requestUndoOnBackspace()})})}}function gO(e){let t=gj.exec(e);return t?t[2]:null}class gR extends ${constructor(e,t){super(e),this.type=t}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){let t=this.editor.model,i=Array.from(t.document.selection.getSelectedBlocks()).filter(e=>gV(e,t.schema)),n=void 0!==e.forceValue?!e.forceValue:this.value;t.change(e=>{if(n){let t=i[i.length-1].nextSibling,n=1/0,o=[];for(;t&&"listItem"==t.name&&0!==t.getAttribute("listIndent");){let e=t.getAttribute("listIndent");e=i;)r>o.getAttribute("listIndent")&&(r=o.getAttribute("listIndent")),o.getAttribute("listIndent")==r&&e[t?"unshift":"push"](o),o=o[t?"previousSibling":"nextSibling"]}}function gV(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}class gU extends ${constructor(e,t){super(e),this._indentBy="forward"==t?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){let e=this.editor.model,t=Array.from(e.document.selection.getSelectedBlocks());e.change(e=>{let i=t[t.length-1],n=i.nextSibling;for(;n&&"listItem"==n.name&&n.getAttribute("listIndent")>i.getAttribute("listIndent");)t.push(n),n=n.nextSibling;for(let i of(this._indentBy<0&&(t=t.reverse()),t)){let t=i.getAttribute("listIndent")+this._indentBy;t<0?e.rename(i,"paragraph"):e.setAttribute("listIndent",t,i)}this.fire("_executeCleanup",t)})}_checkEnabled(){let e=r_(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){let t=e.getAttribute("listIndent"),i=e.getAttribute("listType"),n=e.previousSibling;for(;n&&n.is("element","listItem")&&n.getAttribute("listIndent")>=t;){if(n.getAttribute("listIndent")==t)return n.getAttribute("listType")==i;n=n.previousSibling}return!1}return!0}}function gH(e,t,i,n){let o=t.parent,r=i.mapper,s=i.writer,a=r.toViewPosition(n.createPositionBefore(e)),l=g$(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),c=e.previousSibling;if(l&&l.getAttribute("listIndent")==e.getAttribute("listIndent")){let e=r.toViewElement(l);a=s.breakContainer(s.createPositionAfter(e))}else if(c&&"listItem"==c.name){a=r.toViewPosition(n.createPositionAt(c,"end"));let e=r.findMappedViewAncestor(a),t=function(e){for(let t of e.getChildren())if("ul"==t.name||"ol"==t.name)return t;return null}(e);a=t?s.createPositionBefore(t):s.createPositionAt(e,"end")}else a=r.toViewPosition(n.createPositionBefore(e));if(a=gq(a),s.insert(a,o),c&&"listItem"==c.name){let e=r.toViewElement(c),i=s.createRange(s.createPositionAt(e,0),a).getWalker({ignoreElementEnd:!0});for(let e of i)if(e.item.is("element","li")){let n=s.breakContainer(s.createPositionBefore(e.item)),o=e.item.parent,r=s.createPositionAt(t,"end");gW(s,r.nodeBefore,r.nodeAfter),s.move(s.createRangeOn(o),r),i.position=n}}else{let i=o.nextSibling;if(i&&(i.is("element","ul")||i.is("element","ol"))){let n=null;for(let t of i.getChildren()){let i=r.toModelElement(t);if(!(i&&i.getAttribute("listIndent")>e.getAttribute("listIndent")))break;n=t}n&&(s.breakContainer(s.createPositionAfter(n)),s.move(s.createRangeOn(n.parent),s.createPositionAt(t,"end")))}}gW(s,o,o.nextSibling),gW(s,o.previousSibling,o)}function gW(e,t,i){return t&&i&&("ul"==t.name||"ol"==t.name)&&t.name==i.name&&t.getAttribute("class")===i.getAttribute("class")?e.mergeContainers(e.createPositionAfter(t)):null}function gq(e){return e.getLastMatchingPosition(e=>e.item.is("uiElement"))}function g$(e,t){let i=!!t.sameIndent,n=!!t.smallerIndent,o=t.listIndent,r=e;for(;r&&"listItem"==r.name;){let e=r.getAttribute("listIndent");if(i&&o==e||n&&o>e)return r;r="forward"===t.direction?r.nextSibling:r.previousSibling}return null}function gG(e,t,i,n){e.ui.componentFactory.add(t,o=>{let r=e.commands.get(t),s=new lj(o);return s.set({label:i,icon:n,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",()=>{e.execute(t),e.editing.view.focus()}),s})}function gK(){let e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:nf.call(this)}function gY(e){return(t,i,n)=>{var o,r;let s,a,l,c,d,h,u=n.consumable;if(!u.test(i.item,"insert")||!u.test(i.item,"attribute:listType")||!u.test(i.item,"attribute:listIndent"))return;u.consume(i.item,"insert"),u.consume(i.item,"attribute:listType"),u.consume(i.item,"attribute:listIndent");let g=i.item;gH(g,(o=g,a=(r=n).mapper,l=r.writer,c="numbered"==o.getAttribute("listType")?"ol":"ul",d=((s=l.createContainerElement("li")).getFillerOffset=gK,s),h=l.createContainerElement(c,null),l.insert(l.createPositionAt(h,0),d),a.bindElements(o,d),d),n,e)}}function gQ(e,t,i){if(!i.consumable.test(t.item,e.name))return;let n=i.mapper.toViewElement(t.item),o=i.writer;o.breakContainer(o.createPositionBefore(n)),o.breakContainer(o.createPositionAfter(n));let r=n.parent,s="numbered"==t.attributeNewValue?"ol":"ul";o.rename(s,r)}function gZ(e,t,i){i.consumable.consume(t.item,e.name);let n=i.mapper.toViewElement(t.item).parent,o=i.writer;gW(o,n,n.nextSibling),gW(o,n.previousSibling,n)}function gJ(e,t,i){if(i.consumable.test(t.item,e.name)&&"listItem"!=t.item.name){let e=i.mapper.toViewPosition(t.range.start),n=i.writer,o=[];for(;("ul"==e.parent.name||"ol"==e.parent.name)&&"li"==(e=n.breakContainer(e)).parent.name;){let t=e,i=n.createPositionAt(e.parent,"end");if(!t.isEqual(i)){let e=n.remove(n.createRange(t,i));o.push(e)}e=n.createPositionAfter(e.parent)}if(o.length>0){for(let t=0;t0){let t=gW(n,i,i.nextSibling);t&&t.parent==i&&e.offset--}}gW(n,e.nodeBefore,e.nodeAfter)}}}function gX(e,t,i){let n=i.mapper.toViewPosition(t.position),o=n.nodeBefore,r=n.nodeAfter;gW(i.writer,o,r)}function g0(e,t,i){if(i.consumable.consume(t.viewItem,{name:!0})){let e=i.writer,n=e.createElement("listItem"),o=function(e){let t=0,i=e.parent;for(;i;){if(i.is("element","li"))t++;else{let e=i.previousSibling;e&&e.is("element","li")&&t++}i=i.parent}return t}(t.viewItem);e.setAttribute("listIndent",o,n);let r=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(e.setAttribute("listType",r,n),!i.safeInsert(n,t.modelCursor))return;let s=function(e,t,i){let{writer:n,schema:o}=i,r=n.createPositionAfter(e);for(let s of t)if("ul"==s.name||"ol"==s.name)r=i.convertItem(s,r).modelCursor;else{let t=i.convertItem(s,n.createPositionAt(e,"end")),a=t.modelRange.start.nodeAfter;a&&a.is("element")&&!o.checkChild(e,a.name)&&(e=t.modelCursor.parent.is("element","listItem")?t.modelCursor.parent:function(e){let t,i=new rH({startPosition:e});do t=i.next();while(!t.value.item.is("element","listItem"))return t.value.item}(t.modelCursor),r=n.createPositionAfter(e))}return r}(n,t.viewItem.getChildren(),i);t.modelRange=e.createRange(t.modelCursor,s),i.updateConversionResult(n,t)}}function g1(e,t,i){if(i.consumable.test(t.viewItem,{name:!0}))for(let e of Array.from(t.viewItem.getChildren()))e.is("element","li")||g7(e)||e._remove()}function g2(e,t,i){if(i.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;let e=[...t.viewItem.getChildren()],i=!1;for(let t of e)i&&!g7(t)&&t._remove(),g7(t)&&(i=!0)}}function g5(e){return(t,i)=>{if(i.isPhantom)return;let n=i.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){let t=i.mapper.toViewElement(n),o=t.getAncestors().find(g7);for(let n of e.createPositionAt(t,0).getWalker()){if("elementStart"==n.type&&n.item.is("element","li")){i.viewPosition=n.previousPosition;break}if("elementEnd"==n.type&&n.item==o){i.viewPosition=n.nextPosition;break}}}}}function g4(e,[t,i]){let n,o=t.is("documentFragment")?t.getChild(0):t;if(n=i?this.createSelection(i):this.document.selection,o&&o.is("element","listItem")){let e=n.getFirstPosition(),t=null;if(e.parent.is("element","listItem")?t=e.parent:e.nodeBefore&&e.nodeBefore.is("element","listItem")&&(t=e.nodeBefore),t){let e=t.getAttribute("listIndent");if(e>0)for(;o&&o.is("element","listItem");)o._setAttribute("listIndent",o.getAttribute("listIndent")+e),o=o.nextSibling}}}function g3(e,t,i,n,o,r){let s,a=g$(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),l=o.mapper,c=o.writer,d=a?a.getAttribute("listIndent"):null;if(a)if(d==e){let e=l.toViewElement(a).parent;s=c.createPositionAfter(e)}else{let e=r.createPositionAt(a,"end");s=l.toViewPosition(e)}else s=i;for(let e of(s=gq(s),[...n.getChildren()]))g7(e)&&(s=c.move(c.createRangeOn(e),s).end,gW(c,e,e.nextSibling),gW(c,e.previousSibling,e))}function g7(e){return e.is("element","ol")||e.is("element","ul")}class g6 extends W{static get pluginName(){return"ListEditing"}static get requires(){return[cF,cG]}init(){var e;let t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});let i=t.data,n=t.editing;t.model.document.registerPostFixer(e=>(function(e,t){let i=e.document.differ.getChanges(),n=new Map,o=!1;for(let n of i)if("insert"==n.type&&"listItem"==n.name)r(n.position);else if("insert"==n.type&&"listItem"!=n.name){if("$text"!=n.name){let i=n.position.nodeAfter;for(let n of(i.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",i),o=!0),i.hasAttribute("listType")&&(t.removeAttribute("listType",i),o=!0),i.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",i),o=!0),i.hasAttribute("listReversed")&&(t.removeAttribute("listReversed",i),o=!0),i.hasAttribute("listStart")&&(t.removeAttribute("listStart",i),o=!0),Array.from(e.createRangeIn(i)).filter(e=>e.item.is("element","listItem"))))r(n.previousPosition)}r(n.position.getShiftedBy(n.length))}else"remove"==n.type&&"listItem"==n.name?r(n.position):("attribute"==n.type&&"listIndent"==n.attributeKey||"attribute"==n.type&&"listType"==n.attributeKey)&&r(n.range.start);for(let e of n.values())(function(e){let i=0,n=null;for(;e&&e.is("element","listItem");){let r=e.getAttribute("listIndent");if(r>i){let s;null===n?(n=r-i,s=i):(n>r&&(n=r),s=r-n),t.setAttribute("listIndent",s,e),o=!0}else n=null,i=e.getAttribute("listIndent")+1;e=e.nextSibling}})(e),function(e){let i=[],n=null;for(;e&&e.is("element","listItem");){let r=e.getAttribute("listIndent");if(n&&n.getAttribute("listIndent")>r&&(i=i.slice(0,r+1)),0!=r)if(i[r]){let n=i[r];e.getAttribute("listType")!=n&&(t.setAttribute("listType",n,e),o=!0)}else i[r]=e.getAttribute("listType");n=e,e=e.nextSibling}}(e);return o;function r(e){let t=e.nodeBefore;if(t&&t.is("element","listItem")){let e=t;if(n.has(e))return;for(let t=e.previousSibling;t&&t.is("element","listItem");t=e.previousSibling)if(e=t,n.has(e))return;n.set(t,e)}else{let t=e.nodeAfter;t&&t.is("element","listItem")&&n.set(t,t)}}})(t.model,e)),n.mapper.registerViewToModelLength("li",g9),i.mapper.registerViewToModelLength("li",g9),n.mapper.on("modelToViewPosition",g5(n.view)),n.mapper.on("viewToModelPosition",(e=t.model,(t,i)=>{let n=i.viewPosition,o=n.parent,r=i.mapper;if("ul"==o.name||"ol"==o.name){if(n.isAtEnd){let t=r.toModelElement(n.nodeBefore),o=r.getModelLength(n.nodeBefore);i.modelPosition=e.createPositionBefore(t).getShiftedBy(o)}else{let t=r.toModelElement(n.nodeAfter);i.modelPosition=e.createPositionBefore(t)}t.stop()}else if("li"==o.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){let s=r.toModelElement(o),a=1,l=n.nodeBefore;for(;l&&g7(l);)a+=r.getModelLength(l),l=l.previousSibling;i.modelPosition=e.createPositionBefore(s).getShiftedBy(a),t.stop()}})),i.mapper.on("modelToViewPosition",g5(n.view)),t.conversion.for("editingDowncast").add(e=>{var i,n;e.on("insert",gJ,{priority:"high"}),e.on("insert:listItem",gY(t.model)),e.on("attribute:listType:listItem",gQ,{priority:"high"}),e.on("attribute:listType:listItem",gZ,{priority:"low"}),e.on("attribute:listIndent:listItem",(i=t.model,(e,t,n)=>{if(!n.consumable.consume(t.item,"attribute:listIndent"))return;let o=n.mapper.toViewElement(t.item),r=n.writer;r.breakContainer(r.createPositionBefore(o)),r.breakContainer(r.createPositionAfter(o));let s=o.parent,a=s.previousSibling,l=r.createRangeOn(s);for(let e of(r.remove(l),a&&a.nextSibling&&gW(r,a,a.nextSibling),g3(t.attributeOldValue+1,t.range.start,l.start,o,n,i),gH(t.item,o,n,i),t.item.getChildren()))n.consumable.consume(e,"insert")})),e.on("remove:listItem",(n=t.model,(e,t,i)=>{let o=i.mapper.toViewPosition(t.position).getLastMatchingPosition(e=>!e.item.is("element","li")).nodeAfter,r=i.writer;r.breakContainer(r.createPositionBefore(o)),r.breakContainer(r.createPositionAfter(o));let s=o.parent,a=s.previousSibling,l=r.createRangeOn(s),c=r.remove(l);for(let e of(a&&a.nextSibling&&gW(r,a,a.nextSibling),g3(i.mapper.toModelElement(o).getAttribute("listIndent")+1,t.position,l.start,o,i,n),r.createRangeIn(c).getItems()))i.mapper.unbindViewElement(e);e.stop()})),e.on("remove",gX,{priority:"low"})}),t.conversion.for("dataDowncast").add(e=>{e.on("insert",gJ,{priority:"high"}),e.on("insert:listItem",gY(t.model))}),t.conversion.for("upcast").add(e=>{e.on("element:ul",g1,{priority:"high"}),e.on("element:ol",g1,{priority:"high"}),e.on("element:li",g2,{priority:"high"}),e.on("element:li",g0)}),t.model.on("insertContent",g4,{priority:"high"}),t.commands.add("numberedList",new gR(t,"numbered")),t.commands.add("bulletedList",new gR(t,"bulleted")),t.commands.add("indentList",new gU(t,"forward")),t.commands.add("outdentList",new gU(t,"backward"));let o=n.view.document;this.listenTo(o,"enter",(e,t)=>{let i=this.editor.model.document,n=i.selection.getLastPosition().parent;i.selection.isCollapsed&&"listItem"==n.name&&n.isEmpty&&(this.editor.execute("outdentList"),t.preventDefault(),e.stop())},{context:"li"}),this.listenTo(o,"delete",(e,t)=>{if("backward"!==t.direction)return;let i=this.editor.model.document.selection;if(!i.isCollapsed)return;let n=i.getFirstPosition();if(!n.isAtStart)return;let o=n.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(this.editor.execute("outdentList"),t.preventDefault(),e.stop()))},{context:"li"}),this.listenTo(t.editing.view.document,"tab",(e,i)=>{let n=i.shiftKey?"outdentList":"indentList";this.editor.commands.get(n).isEnabled&&(t.execute(n),i.stopPropagation(),i.preventDefault(),e.stop())},{context:"li"})}afterInit(){let e=this.editor.commands,t=e.get("indent"),i=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),i&&i.registerChildCommand(e.get("outdentList"))}}function g9(e){let t=1;for(let i of e.getChildren())if("ul"==i.name||"ol"==i.name)for(let e of i.getChildren())t+=g9(e);return t}class g8 extends W{static get pluginName(){return"ListUI"}init(){let e=this.editor.t;gG(this.editor,"numberedList",e("Numbered List"),''),gG(this.editor,"bulletedList",e("Bulleted List"),'')}}function pe(e,t){return e=>{e.on("attribute:url:media",i)};function i(i,n,o){if(!o.consumable.consume(n.item,i.name))return;let r=n.attributeNewValue,s=o.writer,a=o.mapper.toViewElement(n.item),l=[...a.getChildren()].find(e=>e.getCustomProperty("media-content"));s.remove(l);let c=e.getMediaViewElement(s,r,t);s.insert(s.createPositionAt(a,0),c)}}function pt(e,t,i,n){return e.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(e,i,n),e.createSlot()])}function pi(e){let t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function pn(e,t,i,n){e.change(o=>{let r=o.createElement("media",{url:t});e.insertObject(r,i,null,{setSelection:"on",findOptimalPosition:n})})}class po extends ${refresh(){let e,t,i=this.editor.model,n=i.document.selection,o=pi(n);this.value=o?o.getAttribute("url"):null,this.isEnabled=!!(e=n.getSelectedElement())&&"media"===e.name||((t=c4(n,i).start.parent).isEmpty&&!i.schema.isLimit(t)&&(t=t.parent),i.schema.checkChild(t,"media"))}execute(e){let t=this.editor.model,i=t.document.selection,n=pi(i);n?t.change(t=>{t.setAttribute("url",e,n)}):pn(t,e,i,!0)}}class pr{constructor(e,t){let i=t.providers,n=t.extraProviders||[],o=new Set(t.removeProviders),r=i.concat(n).filter(e=>{let t=e.name;return t?!o.has(t):(m("media-embed-no-provider-name",{provider:e}),!1)});this.locale=e,this.providerDefinitions=r}hasMedia(e){return!!this._getMedia(e)}getMediaViewElement(e,t,i){return this._getMedia(t).getViewElement(e,i)}_getMedia(e){if(!e)return new ps(this.locale);for(let t of(e=e.trim(),this.providerDefinitions)){let i=t.html;for(let n of iA(t.url)){let t=this._getUrlMatches(e,n);if(t)return new ps(this.locale,e,t,i)}}return null}_getUrlMatches(e,t){let i=e.match(t);if(i)return i;let n=e.replace(/^https?:\/\//,"");return(i=n.match(t))||(i=(n=n.replace(/^www\./,"")).match(t))||null}}class ps{constructor(e,t,i,n){this.url=this._getValidUrl(t),this._locale=e,this._match=i,this._previewRenderer=n}getViewElement(e,t){let i,n={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),t.renderForEditingView&&(n.class="ck-media__wrapper");let o=this._getPreviewHtml(t);i=e.createRawElement("div",n,(e,t)=>{t.setContentOf(e,o)})}else this.url&&(n.url=this.url),i=e.createEmptyElement(t.elementName,n);return e.setCustomProperty("media-content",!0,i),i}_getPreviewHtml(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){let e=new lB,t=this._locale.t;return e.content='',e.viewBox="0 0 64 42",new a5({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":t("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(e){return e?e.match(/^https?/)?e:"https://"+e:null}}var pa=r(7442);ok()(pa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),pa.Z.locals;class pl extends W{static get pluginName(){return"MediaEmbedEditing"}constructor(e){super(e),e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:e=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{let t=e[1],i=e[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new pr(e.locale,e.config.get("mediaEmbed"))}init(){let e=this.editor,t=e.model.schema,i=e.t,n=e.conversion,o=e.config.get("mediaEmbed.previewsInData"),r=e.config.get("mediaEmbed.elementName"),s=this.registry;e.commands.add("mediaEmbed",new po(e)),t.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),n.for("dataDowncast").elementToStructure({model:"media",view:(e,{writer:t})=>{let i=e.getAttribute("url");return pt(t,s,i,{elementName:r,renderMediaPreview:i&&o})}}),n.for("dataDowncast").add(pe(s,{elementName:r,renderMediaPreview:o})),n.for("editingDowncast").elementToStructure({model:"media",view:(e,{writer:t})=>{var n,o;return n=pt(t,s,e.getAttribute("url"),{elementName:r,renderForEditingView:!0}),o=i("media widget"),t.setCustomProperty("media",!0,n),cX(n,t,{label:o})}}),n.for("editingDowncast").add(pe(s,{elementName:r,renderForEditingView:!0})),n.for("upcast").elementToElement({view:e=>["oembed",r].includes(e.name)&&e.getAttribute("url")?{name:!0}:null,model:(e,{writer:t})=>{let i=e.getAttribute("url");if(s.hasMedia(i))return t.createElement("media",{url:i})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(e,{writer:t})=>{let i=e.getAttribute("data-oembed-url");if(s.hasMedia(i))return t.createElement("media",{url:i})}}).add(e=>{e.on("element:figure",function(e,t,i){if(!i.consumable.consume(t.viewItem,{name:!0,classes:"media"}))return;let{modelRange:n,modelCursor:o}=i.convertChildren(t.viewItem,t.modelCursor);t.modelRange=n,t.modelCursor=o,r_(n.getItems())||i.consumable.revert(t.viewItem,{name:!0,classes:"media"})})})}}let pc=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class pd extends W{static get requires(){return[dw,cG,d4]}static get pluginName(){return"AutoMediaEmbed"}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){let e=this.editor,t=e.model.document;this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",()=>{let e=t.selection.getFirstRange(),i=av.fromPosition(e.start);i.stickiness="toPrevious";let n=av.fromPosition(e.end);n.stickiness="toNext",t.once("change:data",()=>{this._embedMediaBetweenPositions(i,n),i.detach(),n.detach()},{priority:"high"})}),e.commands.get("undo").on("execute",()=>{this._timeoutId&&(iC.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(e,t){let i=this.editor,n=i.plugins.get(pl).registry,o=new r6(e,t),r=o.getWalker({ignoreElementEnd:!0}),s="";for(let e of r)e.item.is("$textProxy")&&(s+=e.item.data);(s=s.trim()).match(pc)&&n.hasMedia(s)&&i.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=av.fromPosition(e),this._timeoutId=iC.window.setTimeout(()=>{i.model.change(e=>{let t;this._timeoutId=null,e.remove(o),o.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert),pn(i.model,s,t,!1),this._positionToInsert.detach(),this._positionToInsert=null}),i.plugins.get("Delete").requestUndoOnBackspace()},100)):o.detach()}}var ph=r(9292);ok()(ph.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ph.Z.locals;class pu extends lc{constructor(e,t){super(t);let i=t.t;this.focusTracker=new rA,this.keystrokes=new rC,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(i("Save"),lT.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",e=>!!e),this.cancelButtonView=this._createButton(i("Cancel"),lT.cancel,"ck-button-cancel","cancel"),this._focusables=new a2,this._focusCycler=new lG({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),lI(this)}render(){super.render(),lM({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);let e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e),this.listenTo(this.urlInputView.element,"selectstart",(e,t)=>{t.stopPropagation()},{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.element.value=e.trim()}isValid(){for(let e of(this.resetFormStatus(),this._validators)){let t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){let e=this.locale.t,t=new cm(this.locale,cf),i=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,i.on("input",()=>{t.infoText=i.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=i.element.value.trim()}),t}_createButton(e,t,i,n){let o=new lj(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:i}}),n&&o.delegate("execute").to(this,n),o}}class pg extends W{static get requires(){return[pl]}static get pluginName(){return"MediaEmbedUI"}init(){let e=this.editor,t=e.commands.get("mediaEmbed"),i=e.plugins.get(pl).registry;e.ui.componentFactory.add("mediaEmbed",n=>{var o;let r=ce(n),s=new pu((o=e.t,[e=>{if(!e.url.length)return o("The URL must not be empty.")},e=>{if(!i.hasMedia(e.url))return o("This media URL is not supported.")}]),e.locale);return this._setUpDropdown(r,s,t,e),this._setUpForm(r,s,t),r})}_setUpDropdown(e,t,i){let n=this.editor,o=n.t,r=e.buttonView;e.bind("isEnabled").to(i),e.panelView.children.add(t),r.set({label:o("Insert media"),icon:'',tooltip:!0}),r.on("open",()=>{t.disableCssTransitions(),t.url=i.value||"",t.urlInputView.fieldView.select(),t.enableCssTransitions()},{priority:"low"}),e.on("submit",()=>{t.isValid()&&(n.execute("mediaEmbed",t.url),n.editing.view.focus())}),e.on("change:isOpen",()=>t.resetFormStatus()),e.on("cancel",()=>{n.editing.view.focus()})}_setUpForm(e,t,i){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(i,"value"),t.urlInputView.bind("isReadOnly").to(i,"isEnabled",e=>!e)}}var pp=r(4652);function pm(e,t,i,{blockElements:n,inlineObjectElements:o}){let r=i.createPositionAt(e,"forward"==t?"after":"before");return r=r.getLastMatchingPosition(({item:e})=>e.is("element")&&!n.includes(e.name)&&!o.includes(e.name),{direction:t}),"forward"==t?r.nodeAfter:r.nodeBefore}function pf(e,t){return!!e&&e.is("element")&&t.includes(e.name)}function pb(e,t,i){let n=t.parent,o=i.createElement(e.type),r=n.getChildIndex(t)+1;return i.insertChild(r,o,n),e.style&&i.setStyle("list-style-type",e.style,o),e.startIndex&&e.startIndex>1&&i.setAttribute("start",e.startIndex,o),o}ok()(pp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),pp.Z.locals;let pk=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class pw{constructor(e){this.document=e}isActive(e){return pk.test(e)}execute(e){let t=new aG(this.document),{body:i}=e._parsedData;!function(e,t){for(let i of e.getChildren())if(i.is("element","b")&&"normal"===i.getStyle("font-weight")){let n=e.getChildIndex(i);t.remove(i),t.insertChild(n,i.getChildren(),e)}}(i,t),function(e,t){for(let i of t.createRangeIn(e)){let e=i.item;if(e.is("element","li")){let i=e.getChild(0);i&&i.is("element","p")&&t.unwrapElement(i)}}}(i,t),function(e,t){let i=new oM(new nB(t.document.stylesProcessor),{renderingMode:"data"}),n=i.blockElements,o=i.inlineObjectElements,r=[];for(let i of t.createRangeIn(e)){let e=i.item;if(e.is("element","br")){let i=pm(e,"forward",t,{blockElements:n,inlineObjectElements:o}),s=pm(e,"backward",t,{blockElements:n,inlineObjectElements:o}),a=pf(i,n);(pf(s,n)||a)&&r.push(e)}}for(let e of r)e.hasClass("Apple-interchange-newline")?t.remove(e):t.replace(e,t.createElement("p"))}(i,t),e.content=i}}let p_=//i,pA=/xmlns:o="urn:schemas-microsoft-com/i;class pC{constructor(e){this.document=e}isActive(e){return p_.test(e)||pA.test(e)}execute(e){let{body:t,stylesString:i}=e._parsedData;(function(e,t){if(!e.childCount)return;let i=new aG(e.document),n=function(e,t){let i=t.createRangeIn(e),n=new iz({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[];for(let e of i)if("elementStart"===e.type&&n.match(e.item)){let t=function(e){let t={},i=e.getStyle("mso-list");if(i){let e=i.match(/(^|\s{1,100})l(\d+)/i),n=i.match(/\s{0,100}lfo(\d+)/i),o=i.match(/\s{0,100}level(\d+)/i);e&&n&&o&&(t.id=e[2],t.order=n[1],t.indent=o[1])}return t}(e.item);o.push({element:e.item,id:t.id,order:t.order,indent:t.indent})}return o}(e,i);if(!n.length)return;let o=null,r=1;n.forEach((e,s)=>{var a;let l=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;let i=t.element.previousSibling;return!i||!(i.is("element","ol")||i.is("element","ul"))}(n[s-1],e),c=l?null:n[s-1],d=c?e.indent-c.indent:e.indent-1;if(l&&(o=null,r=1),!o||0!==d){let n=function(e,t){let i=RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi").exec(t),n="decimal",o="ol",r=null;if(i&&i[1]){let t=/mso-level-number-format:([^;]{0,100});/gi.exec(i[1]);if(t&&t[1]&&(o="bullet"!==(n=t[1].trim())&&"image"!==n?"ol":"ul"),"bullet"===n){let t=function(e){let t=function(e){if(e.getChild(0).is("$text"))return null;for(let t of e.getChildren()){if(!t.is("element","span"))continue;let e=t.getChild(0);return e.is("$text")?e:e.getChild(0)}}(e);if(!t)return null;let i=t._data;return"o"===i?"circle":"·"===i?"disc":"§"===i?"square":null}(e.element);t&&(n=t)}else{let e=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi.exec(i[1]);e&&e[1]&&(r=parseInt(e[1]))}}return{type:o,startIndex:r,style:function(e){if(e.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(e){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return e;default:return null}}(n)}}(e,t);if(o){if(e.indent>r){let e=o.getChild(o.childCount-1);o=pb(n,e.getChild(e.childCount-1),i),r+=1}else if(e.indente.indexOf(t)>-1)?r.push(i):i.getAttribute("src")||r.push(i)}for(let e of r)i.remove(e)}(function(e,t){let i=t.createRangeIn(e),n=new iz({name:/v:(.+)/}),o=[];for(let e of i){if("elementStart"!=e.type)continue;let t=e.item,i=t.previousSibling&&t.previousSibling.name||null;n.match(t)&&t.getAttribute("o:gfxdata")&&"v:shapetype"!==i&&o.push(e.item.getAttribute("id"))}return o}(e,i),e,i),function(e,t){let i=t.createRangeIn(e),n=new iz({name:/v:(.+)/}),o=[];for(let e of i)"elementStart"==e.type&&n.match(e.item)&&o.push(e.item);for(let e of o)t.remove(e)}(e,i);let n=function(e,t){let i=t.createRangeIn(e),n=new iz({name:"img"}),o=[];for(let e of i)n.match(e.item)&&e.item.getAttribute("src").startsWith("file://")&&o.push(e.item);return o}(e,i);n.length&&function(e,t,i){if(e.length===t.length)for(let n=0;nString.fromCharCode(parseInt(e,16))).join(""))}`;i.setAttribute("src",o,e[n])}}(n,function(e){if(!e)return[];let t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,i=RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),n=e.match(i),o=[];if(n)for(let e of n){let i=!1;e.includes("\\pngblip")?i="image/png":e.includes("\\jpegblip")&&(i="image/jpeg"),i&&o.push({hex:e.replace(t,"").replace(/[^\da-fA-F]/g,""),type:i})}return o}(t),i)}(t,e.dataTransfer.getData("text/rtf")),e.content=t}}function pv(e){return e.replace(/(\s+)<\/span>/g,(e,t)=>1===t.length?" ":Array(t.length+1).join("  ").substr(0,t.length))}function py(e,t,i,n,o=1){t>o?n.setAttribute(e,t,i):n.removeAttribute(e,i)}function px(e,t,i={}){let n=e.createElement("tableCell",i);return e.insertElement("paragraph",n),e.insert(n,t),n}function pE(e,t){let i=parseInt(t.parent.parent.getAttribute("headingColumns")||0),{column:n}=e.getCellLocation(t);return!!i&&n{t.on(`element:${e}`,(e,t,i)=>{if(t.modelRange&&t.viewItem.isEmpty){let e=t.modelRange.start.nodeAfter,n=i.writer.createPositionAt(e,0);i.writer.insertElement("paragraph",n)}},{priority:"low"})}}class pT{constructor(e,t={}){this._table=e,this._startRow=void 0!==t.row?t.row:t.startRow||0,this._endRow=void 0!==t.row?t.row:t.endRow,this._startColumn=void 0!==t.column?t.column:t.startColumn||0,this._endColumn=void 0!==t.column?t.column:t.endColumn,this._includeAllSlots=!!t.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){let e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0};if(!e.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let t=null,i=this._getSpanned();if(i)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(i.cell,i.row,i.column));else{let i=e.getChild(this._cellIndex);if(!i)return this._advanceToNextRow();let n=parseInt(i.getAttribute("colspan")||1),o=parseInt(i.getAttribute("rowspan")||1);(n>1||o>1)&&this._recordSpans(i,o,n),this._shouldSkipSlot()||(t=this._formatOutValue(i)),this._nextCellAtColumn=this._column+n}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(e,t=this._row,i=this._column){return{done:!1,value:new pS(this,e,t,i)}}_shouldSkipSlot(){let e=this._skipRows.has(this._row),t=this._rowthis._endColumn;return e||t||i||n}_getSpanned(){let e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,i){let n={cell:e,row:this._row,column:this._column};for(let e=this._row;e{let o=i.getAttribute("headingRows")||0,r=[];o>0&&r.push(n.createContainerElement("thead",null,n.createSlot(e=>e.is("element","tableRow")&&e.indexe.is("element","tableRow")&&e.index>=o)));let s=n.createContainerElement("figure",{class:"table"},[n.createContainerElement("table",null,r),n.createSlot(e=>!e.is("element","tableRow"))]);return t.asWidget?(n.setCustomProperty("table",!0,s),cX(s,n,{hasSelectionHandle:!0})):s}}function pM(e={}){return(t,{writer:i})=>{let n=t.parent,o=n.parent,r=o.getChildIndex(n),s=new pT(o,{row:r}),a=o.getAttribute("headingRows")||0,l=o.getAttribute("headingColumns")||0;for(let n of s)if(n.cell==t){let t=n.row{if(t.parent.is("element","tableCell")&&pP(t))return e.asWidget?i.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):(n.consume(t,"insert"),void o.bindElements(t,o.toViewElement(t.parent)))}}function pP(e){return 1==e.parent.childCount&&![...e.getAttributeKeys()].length}class pB extends ${refresh(){let e,t,i=this.editor.model,n=i.document.selection,o=i.schema;this.isEnabled=(t=(e=n.getFirstPosition().parent)===e.root?e:e.parent,o.checkChild(t,"table"))}execute(e={}){let t=this.editor.model,i=this.editor.plugins.get("TableUtils"),n=this.editor.config.get("table"),o=n.defaultHeadings.rows,r=n.defaultHeadings.columns;void 0===e.headingRows&&o&&(e.headingRows=o),void 0===e.headingColumns&&r&&(e.headingColumns=r),t.change(n=>{let o=i.createTable(n,e);t.insertObject(o,null,null,{findOptimalPosition:"auto"}),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))})}}class pz extends ${constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){let e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){let e=this.editor,t=e.model.document.selection,i=e.plugins.get("TableUtils"),n="above"===this.order,o=i.getSelectionAffectedTableCells(t),r=i.getRowIndexes(o),s=n?r.first:r.last,a=o[0].findAncestor("table");i.insertRows(a,{at:n?s:s+1,copyStructureFromAbove:!n})}}class pj extends ${constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){let e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){let e=this.editor,t=e.model.document.selection,i=e.plugins.get("TableUtils"),n="left"===this.order,o=i.getSelectionAffectedTableCells(t),r=i.getColumnIndexes(o),s=n?r.first:r.last,a=o[0].findAncestor("table");i.insertColumns(a,{columns:1,at:n?s:s+1})}}class pL extends ${constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){let e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===e.length}execute(){let e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?e.splitCellHorizontally(t,2):e.splitCellVertically(t,2)}}function pO(e,t,i){let n,o,{startRow:r,startColumn:s,endRow:a,endColumn:l}=t,c=i.createElement("table"),d=a-r+1;for(let e=0;e0&&py("headingRows",n-r,c,i,0),(o=parseInt(e.getAttribute("headingColumns")||0))>0&&py("headingColumns",o-s,c,i,0),c}function pR(e,t,i=0){let n=[];for(let o of new pT(e,{startRow:i,endRow:t-1})){let{row:e,cellHeight:i}=o,r=e+i-1;e1&&(a.rowspan=l);let c=parseInt(e.getAttribute("colspan")||1);c>1&&(a.colspan=c);let d=r+s,h=[...new pT(o,{startRow:r,endRow:d,includeAllSlots:!0})],u,g=null;for(let t of h){let{row:n,column:o,cell:r}=t;r===e&&void 0===u&&(u=o),void 0!==u&&u===o&&n===d&&(g=px(i,t.getPositionBefore(),a))}return py("rowspan",s,e,i),g}function pV(e,t){let i=[];for(let n of new pT(e)){let{column:e,cellWidth:o}=n,r=e+o-1;e1&&(r.colspan=s);let a=parseInt(e.getAttribute("rowspan")||1);a>1&&(r.rowspan=a);let l=px(n,n.createPositionAfter(e),r);return py("colspan",o,e,n),l}function pH(e,t,i,n,o,r){let s=parseInt(e.getAttribute("colspan")||1),a=parseInt(e.getAttribute("rowspan")||1);i+s-1>o&&py("colspan",o-i+1,e,r,1),t+a-1>n&&py("rowspan",n-t+1,e,r,1)}function pW(e,t){let i=Array(t.getColumns(e)).fill(0);for(let{column:t}of new pT(e))i[t]++;let n=i.reduce((e,t,i)=>t?e:[...e,i],[]);if(n.length>0){let i=n[n.length-1];return t.removeColumns(e,{at:i}),!0}return!1}function pq(e,t){let i=[],n=t.getRows(e);for(let t=0;t0){let n=i[i.length-1];return t.removeRows(e,{at:n}),!0}return!1}function p$(e,t){pW(e,t)||pq(e,t)}function pG(e,t){let i=Array.from(new pT(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(i.every(({cellHeight:e})=>1===e))return t.lastRow;let n=i[0].cellHeight-1;return t.lastRow+n}function pK(e,t){let i=Array.from(new pT(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(i.every(({cellWidth:e})=>1===e))return t.lastColumn;let n=i[0].cellWidth-1;return t.lastColumn+n}class pY extends ${constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){let e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){let e=this.editor.model,t=e.document,i=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(t.selection)[0],n=this.value,o=this.direction;e.change(e=>{let t="right"==o||"down"==o,r=t?i:n,s=t?n:i,a=s.parent;pQ(s)||(pQ(r)&&e.remove(e.createRangeIn(r)),e.move(e.createRangeIn(s),e.createPositionAt(r,"end"))),e.remove(s);let l=this.isHorizontal?"colspan":"rowspan",c=parseInt(i.getAttribute(l)||1),d=parseInt(n.getAttribute(l)||1);e.setAttribute(l,c+d,r),e.setSelection(e.createRangeIn(r));let h=this.editor.plugins.get("TableUtils");p$(a.findAncestor("table"),h)})}_getMergeableCell(){let e=this.editor.model.document,t=this.editor.plugins.get("TableUtils"),i=t.getTableCellsContainingSelection(e.selection)[0];if(!i)return;let n=this.isHorizontal?function(e,t,i){let n=e.parent.parent,o="right"==t?e.nextSibling:e.previousSibling,r=(n.getAttribute("headingColumns")||0)>0;if(!o)return;let s="right"==t?e:o,a="right"==t?o:e,{column:l}=i.getCellLocation(s),{column:c}=i.getCellLocation(a),d=parseInt(s.getAttribute("colspan")||1),h=pE(i,s),u=pE(i,a);if(!r||h==u)return l+d===c?o:void 0}(i,this.direction,t):function(e,t,i){let n=e.parent,o=n.parent,r=o.getChildIndex(n);if("down"==t&&r===i.getRows(o)-1||"up"==t&&0===r)return;let s=parseInt(e.getAttribute("rowspan")||1),a=o.getAttribute("headingRows")||0;if(a&&("down"==t&&r+s===a||"up"==t&&r===a))return;let l=parseInt(e.getAttribute("rowspan")||1),c="down"==t?r+l:r,d=[...new pT(o,{endRow:c})],h=d.find(t=>t.cell===e).column,u=d.find(({row:e,cellHeight:i,column:n})=>n===h&&("down"==t?e===c:c===e+i));return u&&u.cell}(i,this.direction,t);if(!n)return;let o=this.isHorizontal?"rowspan":"colspan",r=parseInt(i.getAttribute(o)||1);return parseInt(n.getAttribute(o)||1)===r?n:void 0}}function pQ(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}class pZ extends ${refresh(){let e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),i=t[0];if(i){let n=i.findAncestor("table"),o=this.editor.plugins.get("TableUtils").getRows(n)-1,r=e.getRowIndexes(t),s=0===r.first&&r.last===o;this.isEnabled=!s}else this.isEnabled=!1}execute(){let e=this.editor.model,t=this.editor.plugins.get("TableUtils"),i=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(i),o=i[0],r=o.findAncestor("table"),s=t.getCellLocation(o).column;e.change(e=>{let i=n.last-n.first+1;t.removeRows(r,{at:n.first,rows:i});let o=function(e,t,i,n){let o=e.getChild(Math.min(t,n-1)),r=o.getChild(0),s=0;for(let e of o.getChildren()){if(s>i)break;r=e,s+=parseInt(e.getAttribute("colspan")||1)}return r}(r,n.first,s,t.getRows(r));e.setSelection(e.createPositionAt(o,0))})}}class pJ extends ${refresh(){let e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),i=t[0];if(i){let n=i.findAncestor("table"),o=e.getColumns(n),{first:r,last:s}=e.getColumnIndexes(t);this.isEnabled=s-re.cell===s).column,last:c.find(e=>e.cell===a).column},h=parseInt(a.getAttribute("colspan")||1)>1?a:s.previousSibling||a.nextSibling?a.nextSibling||s.previousSibling:d.first?c.reverse().find(({column:e})=>ee>d.last).cell;this.editor.model.change(e=>{let t=d.last-d.first+1;this.editor.plugins.get("TableUtils").removeColumns(l,{at:d.first,columns:t}),e.setSelection(e.createPositionAt(h,0))})}}class pX extends ${refresh(){let e=this.editor.plugins.get("TableUtils"),t=this.editor.model,i=e.getSelectionAffectedTableCells(t.document.selection),n=i.length>0;this.isEnabled=n,this.value=n&&i.every(e=>this._isInHeading(e,e.parent.parent))}execute(e={}){if(e.forceValue===this.value)return;let t=this.editor.plugins.get("TableUtils"),i=this.editor.model,n=t.getSelectionAffectedTableCells(i.document.selection),o=n[0].findAncestor("table"),{first:r,last:s}=t.getRowIndexes(n),a=this.value?r:s+1,l=o.getAttribute("headingRows")||0;i.change(e=>{if(a)for(let{cell:t}of pR(o,a,a>l?l:0))pF(t,a,e);py("headingRows",a,o,e,0)})}_isInHeading(e,t){let i=parseInt(t.getAttribute("headingRows")||0);return!!i&&e.parent.index0;this.isEnabled=n,this.value=n&&i.every(e=>pE(t,e))}execute(e={}){if(e.forceValue===this.value)return;let t=this.editor.plugins.get("TableUtils"),i=this.editor.model,n=t.getSelectionAffectedTableCells(i.document.selection),o=n[0].findAncestor("table"),{first:r,last:s}=t.getColumnIndexes(n),a=this.value?r:s+1;i.change(e=>{if(a)for(let{cell:t,column:i}of pV(o,a))pU(t,i,a,e);py("headingColumns",a,o,e,0)})}}class p1 extends W{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){let t=e.parent,i=t.parent,n=i.getChildIndex(t);for(let{cell:t,row:o,column:r}of new pT(i,{row:n}))if(t===e)return{row:o,column:r}}createTable(e,t){let i=e.createElement("table"),n=parseInt(t.rows)||2,o=parseInt(t.columns)||2;return p2(e,i,0,n,o),t.headingRows&&py("headingRows",Math.min(t.headingRows,n),i,e,0),t.headingColumns&&py("headingColumns",Math.min(t.headingColumns,o),i,e,0),i}insertRows(e,t={}){let i=this.editor.model,n=t.at||0,o=t.rows||1,r=void 0!==t.copyStructureFromAbove,s=t.copyStructureFromAbove?n-1:n,a=this.getRows(e),l=this.getColumns(e);if(n>a)throw new p("tableutils-insertrows-insert-out-of-range",this,{options:t});i.change(t=>{let i=e.getAttribute("headingRows")||0;if(i>n&&py("headingRows",i+o,e,t,0),!r&&(0===n||n===a))return void p2(t,e,n,o,l);let c=new pT(e,{endRow:r?Math.max(n,s):n}),d=Array(l).fill(1);for(let{row:e,column:i,cellHeight:a,cellWidth:l,cell:h}of c){let c=e+a-1,u=e<=s&&s<=c;e0&&px(t,o,n>1?{colspan:n}:null),e+=Math.abs(n)-1}}})}insertColumns(e,t={}){let i=this.editor.model,n=t.at||0,o=t.columns||1;i.change(t=>{let i=e.getAttribute("headingColumns");no-1)throw new p("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});i.change(t=>{let i,{cellsToMove:n,cellsToTrim:o}=function(e,t,i){let n=new Map,o=[];for(let{row:r,column:s,cellHeight:a,cell:l}of new pT(e,{endRow:i})){let e=r+a-1;if(r>=t&&r<=i&&e>i){let e=a-(i-r+1);n.set(s,{cell:l,rowspan:e})}if(r=t){let n;n=e>=i?i-t+1:e-t+1,o.push({cell:l,rowspan:a-n})}}return{cellsToMove:n,cellsToTrim:o}}(e,r,s);n.size&&function(e,t,i,n){let o,r=[...new pT(e,{includeAllSlots:!0,row:t})],s=e.getChild(t);for(let{column:e,cell:t,isAnchor:a}of r)if(i.has(e)){let{cell:t,rowspan:r}=i.get(e),a=o?n.createPositionAfter(o):n.createPositionAt(s,0);n.move(n.createRangeOn(t),a),py("rowspan",r,t,n),o=t}else a&&(o=t)}(e,s+1,n,t);for(let i=s;i>=r;i--)t.remove(e.getChild(i));for(let{rowspan:e,cell:i}of o)py("rowspan",e,i,t);r<(i=e.getAttribute("headingRows")||0)&&py("headingRows",s{var i=n,o=r;let s=e.getAttribute("headingColumns")||0;if(s&&i=n;i--)for(let{cell:n,column:o,cellWidth:r}of[...new pT(e)])o<=i&&r>1&&o+r>i?py("colspan",r-1,n,t):o===i&&t.remove(n);pq(e,this)||pW(e,this)})}splitCellVertically(e,t=2){let i=this.editor.model,n=e.parent.parent,o=parseInt(e.getAttribute("rowspan")||1),r=parseInt(e.getAttribute("colspan")||1);i.change(i=>{if(r>1){let{newCellsSpan:n,updatedSpan:s}=p4(r,t);py("colspan",s,e,i);let a={};n>1&&(a.colspan=n),o>1&&(a.rowspan=o),p5(r>t?t-1:r-1,i,i.createPositionAfter(e),a)}if(rt===e);for(let{cell:t,cellWidth:n}of a.filter(({cell:t,cellWidth:i,column:n})=>t!==e&&n===l||nl))i.setAttribute("colspan",n+s,t);let c={};o>1&&(c.rowspan=o),p5(s,i,i.createPositionAfter(e),c);let d=n.getAttribute("headingColumns")||0;d>l&&py("headingColumns",d+s,n,i)}})}splitCellHorizontally(e,t=2){let i=this.editor.model,n=e.parent,o=n.parent,r=o.getChildIndex(n),s=parseInt(e.getAttribute("rowspan")||1),a=parseInt(e.getAttribute("colspan")||1);i.change(i=>{if(s>1){let n=[...new pT(o,{startRow:r,endRow:r+s-1,includeAllSlots:!0})],{newCellsSpan:l,updatedSpan:c}=p4(s,t);py("rowspan",c,e,i);let{column:d}=n.find(({cell:t})=>t===e),h={};for(let e of(l>1&&(h.rowspan=l),a>1&&(h.colspan=a),n)){let{column:t,row:n}=e,o=t===d,s=(n+r+c)%l==0;n>=r+c&&o&&s&&p5(1,i,e.getPositionBefore(),h)}}if(sr){let e=s+n;i.setAttribute("rowspan",e,t)}let l={};a>1&&(l.colspan=a),p2(i,o,r+1,n,1,l);let c=o.getAttribute("headingRows")||0;c>r&&py("headingRows",c+n,o,i)}})}getColumns(e){return[...e.getChild(0).getChildren()].reduce((e,t)=>e+parseInt(t.getAttribute("colspan")||1),0)}getRows(e){return Array.from(e.getChildren()).reduce((e,t)=>t.is("element","tableRow")?e+1:e,0)}createTableWalker(e,t={}){return new pT(e,t)}getSelectedTableCells(e){let t=[];for(let i of this.sortRanges(e.getRanges())){let e=i.getContainedElement();e&&e.is("element","tableCell")&&t.push(e)}return t}getTableCellsContainingSelection(e){let t=[];for(let i of e.getRanges()){let e=i.start.findAncestor("tableCell");e&&t.push(e)}return t}getSelectionAffectedTableCells(e){let t=this.getSelectedTableCells(e);return t.length?t:this.getTableCellsContainingSelection(e)}getRowIndexes(e){let t=e.map(e=>e.parent.index);return this._getFirstLastIndexesObject(t)}getColumnIndexes(e){let t=[...new pT(e[0].findAncestor("table"))].filter(t=>e.includes(t.cell)).map(e=>e.column);return this._getFirstLastIndexesObject(t)}isSelectionRectangular(e){let t,i;if(e.length<2||!this._areCellInTheSameTableSection(e))return!1;let n=new Set,o=new Set,r=0;for(let t of e){let{row:e,column:i}=this.getCellLocation(t),s=parseInt(t.getAttribute("rowspan")||1),a=parseInt(t.getAttribute("colspan")||1);n.add(e),o.add(i),s>1&&n.add(e+s-1),a>1&&o.add(i+a-1),r+=s*a}return t=Array.from(n.values()),(Math.max(...t)-Math.min(...t)+1)*(Math.max(...i=Array.from(o.values()))-Math.min(...i)+1)==r}sortRanges(e){return Array.from(e).sort(p3)}_getFirstLastIndexesObject(e){let t=e.sort((e,t)=>e-t);return{first:t[0],last:t[t.length-1]}}_areCellInTheSameTableSection(e){let t=e[0].findAncestor("table"),i=this.getRowIndexes(e),n=parseInt(t.getAttribute("headingRows")||0);if(!this._areIndexesInSameSection(i,n))return!1;let o=parseInt(t.getAttribute("headingColumns")||0),r=this.getColumnIndexes(e);return this._areIndexesInSameSection(r,o)}_areIndexesInSameSection({first:e,last:t},i){return e{let n=t.getSelectedTableCells(e.document.selection),o=n.shift(),{mergeWidth:r,mergeHeight:s}=function(e,t,i){let n=0,o=0;for(let e of t){let{row:t,column:r}=i.getCellLocation(e);n=p9(e,r,n,"colspan"),o=p9(e,t,o,"rowspan")}let{row:r,column:s}=i.getCellLocation(e);return{mergeWidth:n-s,mergeHeight:o-r}}(o,n,t);for(let e of(py("colspan",r,o,i),py("rowspan",s,o,i),n)){var a,l,c;a=e,l=o,c=i,p6(a)||(p6(l)&&c.remove(c.createRangeIn(l)),c.move(c.createRangeIn(a),c.createPositionAt(l,"end"))),c.remove(a)}p$(o.findAncestor("table"),t),i.setSelection(o,"in")})}}function p6(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function p9(e,t,i,n){return Math.max(i,t+parseInt(e.getAttribute(n)||1))}class p8 extends ${constructor(e){super(e),this.affectsData=!1}refresh(){let e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){let e=this.editor.model,t=this.editor.plugins.get("TableUtils"),i=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(i),o=i[0].findAncestor("table"),r=[];for(let t=n.first;t<=n.last;t++)for(let i of o.getChild(t).getChildren())r.push(e.createRangeOn(i));e.change(e=>{e.setSelection(r)})}}class me extends ${constructor(e){super(e),this.affectsData=!1}refresh(){let e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){let e=this.editor.plugins.get("TableUtils"),t=this.editor.model,i=e.getSelectionAffectedTableCells(t.document.selection),n=i[0],o=i.pop(),r=n.findAncestor("table"),s=e.getCellLocation(n),a=e.getCellLocation(o),l=Math.min(s.column,a.column),c=Math.max(s.column,a.column),d=[];for(let e of new pT(r,{startColumn:l,endColumn:c}))d.push(t.createRangeOn(e.cell));t.change(e=>{e.setSelection(d)})}}function mt(e,t){let i=!1;for(let n of e.getChildren())i=mi(n,t)||i;return i}function mi(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;let i=Array.from(e.getChildren()).filter(e=>e.is("$text"));for(let e of i)t.wrap(t.createRangeOn(e),"paragraph");return!!i.length}var mn=r(3881);ok()(mn.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),mn.Z.locals;class mo extends W{static get pluginName(){return"TableEditing"}static get requires(){return[p1]}init(){let e=this.editor,t=e.model,i=t.schema,n=e.conversion,o=e.plugins.get(p1);i.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),i.register("tableRow",{allowIn:"table",isLimit:!0}),i.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.for("upcast").add(e=>{e.on("element:figure",(e,t,i)=>{if(!i.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;let n=function(e){for(let t of e.getChildren())if(t.is("element","table"))return t}(t.viewItem);if(!n||!i.consumable.test(n,{name:!0}))return;i.consumable.consume(t.viewItem,{name:!0,classes:"table"});let o=r_(i.convertItem(n,t.modelCursor).modelRange.getItems());o?(i.convertChildren(t.viewItem,i.writer.createPositionAt(o,"end")),i.updateConversionResult(o,t)):i.consumable.revert(t.viewItem,{name:!0,classes:"table"})})}),n.for("upcast").add(e=>{e.on("element:table",(e,t,i)=>{let n=t.viewItem;if(!i.consumable.test(n,{name:!0}))return;let{rows:o,headingRows:r,headingColumns:s}=function(e){let t,i={headingRows:0,headingColumns:0},n=[],o=[];for(let r of Array.from(e.getChildren()))if("tbody"===r.name||"thead"===r.name||"tfoot"===r.name)for(let e of("thead"!==r.name||t||(t=r),Array.from(r.getChildren()).filter(e=>e.is("element","tr"))))if("thead"===e.parent.name&&e.parent===t)i.headingRows++,n.push(e);else{o.push(e);let t=function(e){let t=0,i=0,n=Array.from(e.getChildren()).filter(e=>"th"===e.name||"td"===e.name);for(;ii.headingColumns&&(i.headingColumns=t)}return i.rows=[...n,...o],i}(n),a={};s&&(a.headingColumns=s),r&&(a.headingRows=r);let l=i.writer.createElement("table",a);if(i.safeInsert(l,t.modelCursor)){if(i.consumable.consume(n,{name:!0}),o.forEach(e=>i.convertItem(e,i.writer.createPositionAt(l,"end"))),i.convertChildren(n,i.writer.createPositionAt(l,"end")),l.isEmpty){let e=i.writer.createElement("tableRow");i.writer.insert(e,i.writer.createPositionAt(l,"end")),px(i.writer,i.writer.createPositionAt(e,"end"))}i.updateConversionResult(l,t)}})}),n.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:pI(o,{asWidget:!0})}),n.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:pI(o)}),n.for("upcast").elementToElement({model:"tableRow",view:"tr"}),n.for("upcast").add(e=>{e.on("element:tr",(e,t)=>{t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()},{priority:"high"})}),n.for("downcast").elementToElement({model:"tableRow",view:(e,{writer:t})=>e.isEmpty?t.createEmptyElement("tr"):t.createContainerElement("tr")}),n.for("upcast").elementToElement({model:"tableCell",view:"td"}),n.for("upcast").elementToElement({model:"tableCell",view:"th"}),n.for("upcast").add(pD("td")),n.for("upcast").add(pD("th")),n.for("editingDowncast").elementToElement({model:"tableCell",view:pM({asWidget:!0})}),n.for("dataDowncast").elementToElement({model:"tableCell",view:pM()}),n.for("editingDowncast").elementToElement({model:"paragraph",view:pN({asWidget:!0}),converterPriority:"high"}),n.for("dataDowncast").elementToElement({model:"paragraph",view:pN(),converterPriority:"high"}),n.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),n.for("upcast").attributeToAttribute({model:{key:"colspan",value:mr("colspan")},view:"colspan"}),n.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),n.for("upcast").attributeToAttribute({model:{key:"rowspan",value:mr("rowspan")},view:"rowspan"}),e.data.mapper.on("modelToViewPosition",(e,t)=>{let i=t.modelPosition.parent,n=t.modelPosition.nodeBefore;if(!i.is("element","tableCell")||!n||!n.is("element","paragraph"))return;let o=t.mapper.toViewElement(n),r=t.mapper.toViewElement(i);o===r&&(t.viewPosition=t.mapper.findPositionIn(r,n.maxOffset))}),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new pB(e)),e.commands.add("insertTableRowAbove",new pz(e,{order:"above"})),e.commands.add("insertTableRowBelow",new pz(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new pj(e,{order:"left"})),e.commands.add("insertTableColumnRight",new pj(e,{order:"right"})),e.commands.add("removeTableRow",new pZ(e)),e.commands.add("removeTableColumn",new pJ(e)),e.commands.add("splitTableCellVertically",new pL(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new pL(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new p7(e)),e.commands.add("mergeTableCellRight",new pY(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new pY(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new pY(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new pY(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new p0(e)),e.commands.add("setTableRowHeader",new pX(e)),e.commands.add("selectTableRow",new p8(e)),e.commands.add("selectTableColumn",new me(e)),t.document.registerPostFixer(e=>(function(e,t){let i=t.document.differ.getChanges(),n=!1,o=new Set;for(let t of i){let i;"table"==t.name&&"insert"==t.type&&(i=t.position.nodeAfter),"tableRow"!=t.name&&"tableCell"!=t.name||(i=t.position.findAncestor("table")),function(e){let t="attribute"===e.type,i=e.attributeKey;return t&&("headingRows"===i||"colspan"===i||"rowspan"===i)}(t)&&(i=t.range.start.findAncestor("table")),i&&!o.has(i)&&(n=function(e,t){let i=!1,n=function(e){let t=parseInt(e.getAttribute("headingRows")||0),i=Array.from(e.getChildren()).reduce((e,t)=>t.is("element","tableRow")?e+1:e,0),n=[];for(let{row:o,cell:r,cellHeight:s}of new pT(e)){if(s<2)continue;let e=oe){let t=e-o;n.push({cell:r,rowspan:t})}}return n}(e);if(n.length)for(let e of(i=!0,n))py("rowspan",e.rowspan,e.cell,t,1);return i}(i,e)||n,n=function(e,t){let i=!1,n=function(e){let t=Array(e.childCount).fill(0);for(let{rowIndex:i}of new pT(e,{includeAllSlots:!0}))t[i]++;return t}(e),o=[];for(let[t,i]of n.entries())!i&&e.getChild(t).is("element","tableRow")&&o.push(t);if(o.length)for(let r of(i=!0,o.reverse()))t.remove(e.getChild(r)),n.splice(r,1);let r=n.filter((t,i)=>e.getChild(i).is("element","tableRow")),s=r[0];if(!r.every(e=>e===s)){let n=r.reduce((e,t)=>t>e?t:e,0);for(let[o,s]of r.entries()){let r=n-s;if(r){for(let i=0;i(function(e,t){let i=t.document.differ.getChanges(),n=!1;for(let t of i){var o;"insert"==t.type&&"table"==t.name&&(n=function(e,t){let i=!1;for(let n of e.getChildren())n.is("element","tableRow")&&(i=mt(n,t)||i);return i}(t.position.nodeAfter,e)||n),"insert"==t.type&&"tableRow"==t.name&&(n=mt(t.position.nodeAfter,e)||n),"insert"==t.type&&"tableCell"==t.name&&(n=mi(t.position.nodeAfter,e)||n),!(o=t).position||!o.position.parent.is("element","tableCell")||("insert"!=o.type||"$text"!=o.name)&&"remove"!=o.type||(n=mi(t.position.parent,e)||n)}return n})(e,t)),this.listenTo(t.document,"change:data",()=>{!function(e,t){for(let i of e.document.differ.getChanges()){let e,n=!1;if("attribute"==i.type){let t=i.range.start.nodeAfter;if(!t||!t.is("element","table")||"headingRows"!=i.attributeKey&&"headingColumns"!=i.attributeKey)continue;e=t,n="headingRows"==i.attributeKey}else"tableRow"!=i.name&&"tableCell"!=i.name||(e=i.position.findAncestor("table"),n="tableRow"==i.name);if(!e)continue;let o=e.getAttribute("headingRows")||0,r=e.getAttribute("headingColumns")||0;for(let i of new pT(e)){let e=i.row(function(e,t){if(!e.is("element","paragraph"))return!1;let i=t.toViewElement(e);return!!i&&pP(e)!==i.is("element","span")})(e,t.mapper)))t.reconvertItem(i)}(t,e.editing)})}}function mr(e){return t=>{let i=parseInt(t.getAttribute(e));return Number.isNaN(i)||i<=0?null:i}}var ms=r(1613);ok()(ms.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ms.Z.locals;class ma extends lc{constructor(e){super(e);let t=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new rC,this.focusTracker=new rA,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(e,t)=>`${t} \xd7 ${e}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:t.to("label")}]}],on:{mousedown:t.to(e=>{e.preventDefault()}),click:t.to(()=>{this.fire("execute")})}}),this.on("boxover",(e,t)=>{let{row:i,column:n}=t.target.dataset;this.items.get(10*(parseInt(i,10)-1)+(parseInt(n,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(e,t,i)=>{if(!i)return;let{row:n,column:o}=i.dataset;this.set({rows:parseInt(n),columns:parseInt(o)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){for(let e of(super.render(),function({keystrokeHandler:e,focusTracker:t,gridItems:i,numberOfColumns:n}){let o="number"==typeof n?()=>n:n;function r(e){return n=>{let o=i.find(e=>e.element===t.focusedElement),r=e(i.getIndex(o),i);i.get(r).focus(),n.stopPropagation(),n.preventDefault()}}e.set("arrowright",r((e,t)=>e===t.length-1?0:e+1)),e.set("arrowleft",r((e,t)=>0===e?t.length-1:e-1)),e.set("arrowup",r((e,t)=>{let i=e-o();return i<0&&(i=e+o()*Math.floor(t.length/o()))>t.length-1&&(i-=o()),i})),e.set("arrowdown",r((e,t)=>{let i=e+o();return i>t.length-1&&(i=e%o()),i}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10}),this.items))this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){let e=this.rows,t=this.columns;this.items.map((i,n)=>{let o=Math.floor(n/10){let n,o=e.commands.get("insertTable"),r=ce(i);return r.bind("isEnabled").to(o),r.buttonView.set({icon:'',label:t("Insert table"),tooltip:!0}),r.on("change:isOpen",()=>{n||(n=new ma(i),r.panelView.children.add(n),n.delegate("execute").to(r),r.on("execute",()=>{e.execute("insertTable",{rows:n.rows,columns:n.columns}),e.editing.view.focus()}))}),r}),e.ui.componentFactory.add("tableColumn",e=>{let n=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:i?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:i?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("Column"),'',n,e)}),e.ui.componentFactory.add("tableRow",e=>{let i=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("Row"),'',i,e)}),e.ui.componentFactory.add("mergeTableCells",e=>{let n=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:i?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:i?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("Merge cells"),'',n,e)})}_prepareDropdown(e,t,i,n){let o=this.editor,r=ce(n),s=this._fillDropdownWithListOptions(r,i);return r.buttonView.set({label:e,icon:t,tooltip:!0}),r.bind("isEnabled").toMany(s,"isEnabled",(...e)=>e.some(e=>e)),this.listenTo(r,"execute",e=>{o.execute(e.source.commandName),e.source instanceof lO||o.editing.view.focus()}),r}_prepareMergeSplitButtonDropdown(e,t,i,n){let o=this.editor,r=ce(n,lH),s="mergeTableCells",a=o.commands.get(s),l=this._fillDropdownWithListOptions(r,i);return r.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([a,...l],"isEnabled",(...e)=>e.some(e=>e)),this.listenTo(r.buttonView,"execute",()=>{o.execute(s),o.editing.view.focus()}),this.listenTo(r,"execute",e=>{o.execute(e.source.commandName),o.editing.view.focus()}),r}_fillDropdownWithListOptions(e,t){let i=this.editor,n=[],o=new iw;for(let e of t)!function(e,t,i,n){let o=e.model=new ck(e.model),{commandName:r,bindIsOn:s}=e.model;if("button"===e.type||"switchbutton"===e.type){let e=t.commands.get(r);i.push(e),o.set({commandName:r}),o.bind("isEnabled").to(e),s&&o.bind("isOn").to(e,"value")}o.set({withText:!0}),n.add(e)}(e,i,n,o);return ci(e,o,i.ui.componentFactory),n}}var mc=r(6945);ok()(mc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),mc.Z.locals;class md extends W{static get pluginName(){return"TableSelection"}static get requires(){return[p1,p1]}init(){let e=this.editor.model;this.listenTo(e,"deleteContent",(e,t)=>this._handleDeleteContent(e,t),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){let e=this.editor.plugins.get(p1),t=this.editor.model.document.selection,i=e.getSelectedTableCells(t);return 0==i.length?null:i}getSelectionAsFragment(){let e=this.editor.plugins.get(p1),t=this.getSelectedTableCells();return t?this.editor.model.change(i=>{let n=i.createDocumentFragment(),{first:o,last:r}=e.getColumnIndexes(t),{first:s,last:a}=e.getRowIndexes(t),l=t[0].findAncestor("table"),c=a,d=r;if(e.isSelectionRectangular(t)){let e={firstColumn:o,lastColumn:r,firstRow:s,lastRow:a};c=pG(l,e),d=pK(l,e)}let h=pO(l,{startRow:s,startColumn:o,endRow:c,endColumn:d},i);return i.insert(h,n,0),n}):null}setCellSelection(e,t){let i=this._getCellsToSelect(e,t);this.editor.model.change(e=>{e.setSelection(i.cells.map(t=>e.createRangeOn(t)),{backward:i.backward})})}getFocusCell(){let e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){let e=r_(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}_defineSelectionConverter(){let e=this.editor,t=new Set;e.conversion.for("editingDowncast").add(e=>e.on("selection",(e,i,n)=>{let o=n.writer;for(let e of t)o.removeClass("ck-editor__editable_selected",e);t.clear();let r=this.getSelectedTableCells();if(!r)return;for(let e of r){let i=n.mapper.toViewElement(e);o.addClass("ck-editor__editable_selected",i),t.add(i)}let s=n.mapper.toViewElement(r[r.length-1]);o.setSelection(s,0)},{priority:"lowest"}))}_enablePluginDisabling(){let e=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){let t=this.getSelectedTableCells();t&&e.model.change(i=>{let n=i.createPositionAt(t[0],0),o=e.model.schema.getNearestSelectionRange(n);i.setSelection(o)})}})}_handleDeleteContent(e,t){let i=this.editor.plugins.get(p1),[n,o]=t,r=this.editor.model,s=!o||"backward"==o.direction,a=i.getSelectedTableCells(n);a.length&&(e.stop(),r.change(e=>{let t=a[s?a.length-1:0];r.change(e=>{for(let t of a)r.deleteContent(e.createSelection(t,"in"))});let i=r.schema.getNearestSelectionRange(e.createPositionAt(t,0));n.is("documentSelection")?e.setSelection(i):n.setTo(i)}))}_getCellsToSelect(e,t){let i=this.editor.plugins.get("TableUtils"),n=i.getCellLocation(e),o=i.getCellLocation(t),r=Math.min(n.row,o.row),s=Math.max(n.row,o.row),a=Math.min(n.column,o.column),l=Math.max(n.column,o.column),c=Array(s-r+1).fill(null).map(()=>[]);for(let{row:t,cell:i}of new pT(e.findAncestor("table"),{startRow:r,endRow:s,startColumn:a,endColumn:l}))c[t-r].push(i);let d=o.rowe.reverse()),{cells:c.flat(),backward:d||h}}}class mh extends W{static get pluginName(){return"TableClipboard"}static get requires(){return[md,p1]}init(){let e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",(e,t)=>this._onCopyCut(e,t)),this.listenTo(t,"cut",(e,t)=>this._onCopyCut(e,t)),this.listenTo(e.model,"insertContent",(e,t)=>this._onInsertContent(e,...t),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){let i=this.editor.plugins.get(md);if(!i.getSelectedTableCells()||"cut"==e.name&&this.editor.isReadOnly)return;t.preventDefault(),e.stop();let n=this.editor.data,o=this.editor.editing.view.document,r=n.toView(i.getSelectionAsFragment());o.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:r,method:e.name})}_onInsertContent(e,t,i){if(i&&!i.is("documentSelection"))return;let n=this.editor.model,o=this.editor.plugins.get(p1),r=mu(t,n);if(!r)return;let s=o.getSelectionAffectedTableCells(n.document.selection);s.length?(e.stop(),n.change(e=>{var t,i;let n,a,l,c,d,h,u,g={width:o.getColumns(r),height:o.getRows(r)},p=(n=s[0].findAncestor("table"),a=o.getColumnIndexes(s),l=o.getRowIndexes(s),c={firstColumn:a.first,lastColumn:a.last,firstRow:l.first,lastRow:l.last},(d=1===s.length)&&(c.lastRow+=g.height-1,c.lastColumn+=g.width-1,t=c.lastRow+1,i=c.lastColumn+1,h=o.getColumns(n),u=o.getRows(n),i>h&&o.insertColumns(n,{at:h,columns:i-h}),t>u&&o.insertRows(n,{at:u,rows:t-u})),d||!o.isSelectionRectangular(s)?function(e,t,i){let{firstRow:n,lastRow:o,firstColumn:r,lastColumn:s}=t,a={first:n,last:o},l={first:r,last:s};mp(e,r,a,i),mp(e,s+1,a,i),mg(e,n,l,i),mg(e,o+1,l,i,n)}(n,c,e):(c.lastRow=pG(n,c),c.lastColumn=pK(n,c)),c),m=p.lastRow-p.firstRow+1,f=p.lastColumn-p.firstColumn+1,b={startRow:0,startColumn:0,endRow:Math.min(m,g.height)-1,endColumn:Math.min(f,g.width)-1};r=pO(r,b,e);let k=s[0].findAncestor("table"),w=this._replaceSelectedCellsWithPasted(r,g,k,p,e);if(this.editor.plugins.get("TableSelection").isEnabled){let t=o.sortRanges(w.map(t=>e.createRangeOn(t)));e.setSelection(t)}else e.setSelection(w[0],0)})):p$(r,o)}_replaceSelectedCellsWithPasted(e,t,i,n,o){let r,{width:s,height:a}=t,l=function(e,t,i){let n=Array(i).fill(null).map(()=>Array(t).fill(null));for(let{column:t,row:i,cell:o}of new pT(e))n[i][t]=o;return n}(e,s,a),c=[...new pT(i,{startRow:n.firstRow,endRow:n.lastRow,startColumn:n.firstColumn,endColumn:n.lastColumn,includeAllSlots:!0})],d=[];for(let e of c){let{row:t,column:i}=e;i===n.firstColumn&&(r=e.getPositionBefore());let c=t-n.firstRow,h=i-n.firstColumn,u=l[c%a][h%s],g=u?o.cloneElement(u):null,p=this._replaceTableSlotCell(e,g,r,o);p&&(pH(p,t,i,n.lastRow,n.lastColumn,o),d.push(p),r=o.createPositionAfter(p))}let h=parseInt(i.getAttribute("headingRows")||0),u=parseInt(i.getAttribute("headingColumns")||0),g=n.firstRowmm(e,t,i)).map(({cell:e})=>pF(e,t,n))}function mp(e,t,i,n){if(!(t<1))return pV(e,t).filter(({row:e,cellHeight:t})=>mm(e,t,i)).map(({cell:e,column:i})=>pU(e,i,t,n))}function mm(e,t,i){let{first:n,last:o}=i;return e>=n&&e<=o||e=n}class mf extends W{static get pluginName(){return"TableKeyboard"}static get requires(){return[md,p1]}init(){let e=this.editor.editing.view.document;this.listenTo(e,"arrowKey",(...e)=>this._onArrowKey(...e),{context:"table"}),this.listenTo(e,"tab",(...e)=>this._handleTabOnSelectedTable(...e),{context:"figure"}),this.listenTo(e,"tab",(...e)=>this._handleTab(...e),{context:["th","td"]})}_handleTabOnSelectedTable(e,t){let i=this.editor,n=i.model.document.selection.getSelectedElement();n&&n.is("element","table")&&(t.preventDefault(),t.stopPropagation(),e.stop(),i.model.change(e=>{e.setSelection(e.createRangeIn(n.getChild(0).getChild(0)))}))}_handleTab(e,t){let i,n=this.editor,o=this.editor.plugins.get(p1),r=n.model.document.selection,s=!t.shiftKey,a=o.getTableCellsContainingSelection(r)[0];if(a||(a=this.editor.plugins.get("TableSelection").getFocusCell()),!a)return;t.preventDefault(),t.stopPropagation(),e.stop();let l=a.parent,c=l.parent,d=c.getChildIndex(l),h=l.getChildIndex(a),u=0===h;if(!s&&u&&0===d)return void n.model.change(e=>{e.setSelection(e.createRangeOn(c))});let g=h===l.childCount-1,p=d===o.getRows(c)-1;if(s&&p&&g&&(n.execute("insertTableRowBelow"),d===o.getRows(c)-1))return void n.model.change(e=>{e.setSelection(e.createRangeOn(c))});if(s&&g)i=c.getChild(d+1).getChild(0);else if(!s&&u){let e=c.getChild(d-1);i=e.getChild(e.childCount-1)}else i=l.getChild(h+(s?1:-1));n.model.change(e=>{e.setSelection(e.createRangeIn(i))})}_onArrowKey(e,t){let i=this.editor,n=nQ(t.keyCode,i.locale.contentLanguageDirection);this._handleArrowKeys(n,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){let i=this.editor.plugins.get(p1),n=this.editor.model,o=n.document.selection,r=["right","down"].includes(e),s=i.getSelectedTableCells(o);if(s.length){let i;return i=t?this.editor.plugins.get("TableSelection").getFocusCell():r?s[s.length-1]:s[0],this._navigateFromCellInDirection(i,e,t),!0}let a=o.focus.findAncestor("tableCell");if(!a)return!1;if(!o.isCollapsed)if(t){if(o.isBackward==r&&!o.containsEntireContent(a))return!1}else{let e=o.getSelectedElement();if(!e||!n.schema.isObject(e))return!1}return!!this._isSelectionAtCellEdge(o,a,r)&&(this._navigateFromCellInDirection(a,e,t),!0)}_isSelectionAtCellEdge(e,t,i){let n=this.editor.model,o=this.editor.model.schema,r=i?e.getLastPosition():e.getFirstPosition();if(!o.getLimitElement(r).is("element","tableCell"))return n.createPositionAt(t,i?"end":0).isTouching(r);let s=n.createSelection(r);return n.modifySelection(s,{direction:i?"forward":"backward"}),r.isEqual(s.focus)}_navigateFromCellInDirection(e,t,i=!1){let n=this.editor.model,o=e.findAncestor("table"),r=[...new pT(o,{includeAllSlots:!0})],{row:s,column:a}=r[r.length-1],l=r.find(({cell:t})=>t==e),{row:c,column:d}=l;switch(t){case"left":d--;break;case"up":c--;break;case"right":d+=l.cellWidth;break;case"down":c+=l.cellHeight}if(c<0||c>s||d<0&&c<=0||d>a&&c>=s)return void n.change(e=>{e.setSelection(e.createRangeOn(o))});d<0?(d=i?0:a,c--):d>a&&(d=i?a:0,c++);let h=r.find(e=>e.row==c&&e.column==d).cell,u=["right","down"].includes(t),g=this.editor.plugins.get("TableSelection");if(i&&g.isEnabled){let t=g.getAnchorCell()||e;g.setCellSelection(t,h)}else{let e=n.createPositionAt(h,u?0:"end");n.change(t=>{t.setSelection(e)})}}}class mb extends o6{constructor(e){super(e),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class mk extends W{static get pluginName(){return"TableMouse"}static get requires(){return[md,p1]}init(){this.editor.editing.view.addObserver(mb),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){let e=this.editor,t=e.plugins.get(p1),i=!1,n=e.plugins.get(md);this.listenTo(e.editing.view.document,"mousedown",(o,r)=>{let s=e.model.document.selection;if(!this.isEnabled||!n.isEnabled||!r.domEvent.shiftKey)return;let a=n.getAnchorCell()||t.getTableCellsContainingSelection(s)[0];if(!a)return;let l=this._getModelTableCellFromDomEvent(r);l&&mw(a,l)&&(i=!0,n.setCellSelection(a,l),r.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{i=!1}),this.listenTo(e.editing.view.document,"selectionChange",e=>{i&&e.stop()},{priority:"highest"})}_enableMouseDragSelection(){let e=this.editor,t,i,n=!1,o=!1,r=e.plugins.get(md);this.listenTo(e.editing.view.document,"mousedown",(e,i)=>{this.isEnabled&&r.isEnabled&&(i.domEvent.shiftKey||i.domEvent.ctrlKey||i.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(i)))}),this.listenTo(e.editing.view.document,"mousemove",(e,s)=>{if(!s.domEvent.buttons||!t)return;let a=this._getModelTableCellFromDomEvent(s);a&&mw(t,a)&&(i=a,n||i==t||(n=!0)),n&&(o=!0,r.setCellSelection(t,i),s.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{n=!1,o=!1,t=null,i=null}),this.listenTo(e.editing.view.document,"selectionChange",e=>{o&&e.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(e){let t=e.target,i=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(i).parent.findAncestor("tableCell",{includeSelf:!0})}}function mw(e,t){return e.parent.parent==t.parent.parent}var m_=r(6306);function mA(e){let t=e.getSelectedElement();return t&&mv(t)?t:null}function mC(e){let t=e.getFirstPosition();if(!t)return null;let i=t.parent;for(;i;){if(i.is("element")&&mv(i))return i;i=i.parent}return null}function mv(e){return!!e.getCustomProperty("table")&&cJ(e)}ok()(m_.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),m_.Z.locals;let my={autoRefresh:!0};class mx{constructor(e,t=my){if(!e)throw new p("token-missing-token-url",this);t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),this._refresh="function"==typeof e?e:()=>new Promise((t,i)=>{let n=new XMLHttpRequest;n.open("GET",e),n.addEventListener("load",()=>{let e=n.status,o=n.response;return e<200||e>299?i(new p("token-cannot-download-new-token",null)):t(o)}),n.addEventListener("error",()=>i(Error("Network Error"))),n.addEventListener("abort",()=>i(Error("Abort"))),n.send()}),this._options=Object.assign({},my,t)}init(){return new Promise((e,t)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)):this.refreshToken().then(e).catch(t)})}refreshToken(){return this._refresh().then(e=>{this._validateTokenValue(e),this.set("value",e),this._options.autoRefresh&&this._registerRefreshTokenTimeout()}).then(()=>this)}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){let t="string"==typeof e,i=!/^".*"$/.test(e),n=t&&3===e.split(".").length;if(!i||!n)throw new p("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){let e=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},e)}_getTokenRefreshTimeoutTime(){try{let[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));if(!t)return 36e5;return Math.floor((1e3*t-Date.now())/2)}catch(e){return 36e5}}static create(e,t=my){return new mx(e,t).init()}}H(mx,j);let mE=/^data:(\S*?);base64,/;class mD{constructor(e,t,i){if(!e)throw new p("fileuploader-missing-file",null);if(!t)throw new p("fileuploader-missing-token",null);if(!i)throw new p("fileuploader-missing-api-address",null);this.file=!function(e){if("string"!=typeof e)return!1;let t=e.match(mE);return!(!t||!t.length)}(e)?e:function(e,t=512){try{let i=e.match(mE)[1],n=atob(e.replace(mE,"")),o=[];for(let e=0;ee(i)),this}onError(e){return this.once("error",(t,i)=>e(i)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){let e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){let e=this,t=this.xhr;function i(t){return()=>e.fire("error",t)}t.addEventListener("error",i("Network Error")),t.addEventListener("abort",i("Abort")),t.upload&&t.upload.addEventListener("progress",e=>{e.lengthComputable&&this.fire("progress",{total:e.total,uploaded:e.loaded})}),t.addEventListener("load",()=>{let e=t.status,i=t.response;if(e<200||e>299)return this.fire("error",i.message||i.error)})}_sendRequest(){let e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise((i,n)=>{t.addEventListener("load",()=>{let e=t.status,o=t.response;return e<200||e>299?o.message?n(new p("fileuploader-uploading-data-failed",this,{message:o.message})):n(o.error):i(o)}),t.addEventListener("error",()=>n(Error("Network Error"))),t.addEventListener("abort",()=>n(Error("Abort"))),t.send(e)})}}H(mD,v);class mT{constructor(e,t){if(!e)throw new p("uploadgateway-missing-token",null);if(!t)throw new p("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=t}upload(e){return new mD(e,this._token,this._apiAddress)}}class mS extends iD{static get pluginName(){return"CloudServicesCore"}createToken(e,t){return new mx(e,t)}createUploadGateway(e,t){return new mT(e,t)}}var mI=r(7657);ok()(mI.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),mI.Z.locals;class mM extends cM{}mM.builtinPlugins=[class extends W{static get requires(){return[dw,cF,dS,dv,dz,d4]}static get pluginName(){return"Essentials"}},class extends W{static get requires(){return[d7]}static get pluginName(){return"CKFinderUploadAdapter"}init(){let e=this.editor.config.get("ckfinder.uploadUrl");e&&(this.editor.plugins.get(d7).createUploadAdapter=t=>new hi(t,e,this.editor.t))}},class extends W{static get requires(){return[cG]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){let e=this.editor.commands;e.get("bulletedList")&&hn(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&hn(this.editor,this,/^1[.|)]\s$/,"numberedList"),e.get("todoList")&&hn(this.editor,this,/^\[\s?\]\s$/,"todoList"),e.get("checkTodoList")&&hn(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){let e=this.editor.commands;if(e.get("bold")){let e=hs(this.editor,"bold");ho(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),ho(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(e.get("italic")){let e=hs(this.editor,"italic");ho(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),ho(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(e.get("code")){let e=hs(this.editor,"code");ho(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(e.get("strikethrough")){let e=hs(this.editor,"strikethrough");ho(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){let e=this.editor.commands.get("heading");e&&e.modelElements.filter(e=>e.match(/^heading[1-6]$/)).forEach(t=>{let i=t[7],n=RegExp(`^(#{${i}})\\s$`);hn(this.editor,this,n,()=>{if(!e.isEnabled||e.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&hn(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){let e=this.editor,t=e.model.document.selection;e.commands.get("codeBlock")&&hn(e,this,/^```$/,()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&hn(this.editor,this,/^---$/,"horizontalLine")}},class extends W{static get pluginName(){return"BlockToolbar"}constructor(e){super(e),this._blockToolbarConfig=lZ(this.editor.config.get("blockToolbar")),this.toolbarView=this._createToolbarView(),this.panelView=this._createPanelView(),this.buttonView=this._createButtonView(),this._resizeObserver=null,lS({emitter:this.panelView,contextElements:[this.panelView.element,this.buttonView.element],activator:()=>this.panelView.isVisible,callback:()=>this._hidePanel()})}init(){let e=this.editor;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,i)=>{i?this.buttonView.listenTo(window,"resize",()=>this._updateButton()):(this.buttonView.stopListening(window,"resize"),this._hidePanel())}),e.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this._showPanel(),afterBlur:()=>this._hidePanel()})}afterInit(){let e=this.editor.ui.componentFactory,t=this._blockToolbarConfig;for(let i of(this.toolbarView.fillFromConfig(t,e),this.toolbarView.items))i.on("execute",()=>this._hidePanel(!0),{priority:"high"});t.shouldNotGroupWhenFull||this.listenTo(this.editor,"ready",()=>{let e=this.editor.ui.view.editable.element;this._resizeObserver=new rk(e,()=>{this.toolbarView.maxWidth=this._getToolbarMaxWidth()})})}destroy(){super.destroy(),this.panelView.destroy(),this.buttonView.destroy(),this.toolbarView.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_createToolbarView(){let e=this.editor.locale.t,t=!this._blockToolbarConfig.shouldNotGroupWhenFull,i=new l0(this.editor.locale,{shouldGroupWhenFull:t,isFloating:!0});return i.ariaLabel=e("Editor block content toolbar"),i.focusTracker.on("change:isFocused",(e,t,i)=>{i||this._hidePanel()}),i}_createPanelView(){let e=this.editor,t=new lf(e.locale);return t.content.add(this.toolbarView),t.class="ck-toolbar-container",e.ui.view.body.add(t),e.ui.focusTracker.add(t.element),this.toolbarView.keystrokes.set("Esc",(e,t)=>{this._hidePanel(!0),t()}),t}_createButtonView(){let e=this.editor,t=e.t,i=new cT(e.locale),n=i.bindTemplate;return i.set({label:t("Edit block"),icon:lE,withText:!1}),i.extendTemplate({on:{mousedown:n.to(e=>{nV.isSafari&&this.panelView.isVisible&&this.toolbarView.focus(),e.preventDefault()})}}),i.bind("isOn").to(this.panelView,"isVisible"),i.bind("tooltip").to(this.panelView,"isVisible",e=>!e),this.listenTo(i,"execute",()=>{this.panelView.isVisible?this._hidePanel(!0):this._showPanel()}),e.ui.view.body.add(i),e.ui.focusTracker.add(i.element),i}_updateButton(){let e=this.editor,t=e.model,i=e.editing.view;if(!e.ui.focusTracker.isFocused||e.isReadOnly)return void this._hideButton();let n=Array.from(t.document.selection.getSelectedBlocks())[0];if(!n||Array.from(this.toolbarView.items).every(e=>!e.isEnabled))return void this._hideButton();let o=i.domConverter.mapViewToDom(e.editing.mapper.toViewElement(n));this.buttonView.isVisible=!0,this._attachButtonToElement(o),this.panelView.isVisible&&this._showPanel()}_hideButton(){this.buttonView.isVisible=!1}_showPanel(){if(!this.buttonView.isVisible)return;let e=this.panelView.isVisible;this.panelView.show(),this.toolbarView.maxWidth=this._getToolbarMaxWidth(),this.panelView.pin({target:this.buttonView.element,limiter:this.editor.ui.getEditableElement()}),e||this.toolbarView.items.get(0).focus()}_hidePanel(e){this.panelView.isVisible=!1,e&&this.editor.editing.view.focus()}_attachButtonToElement(e){let t=window.getComputedStyle(e),i=new rT(this.editor.ui.getEditableElement()),n=parseInt(t.paddingTop,10),o=parseInt(t.lineHeight,10)||1.2*parseInt(t.fontSize,10),r=ld({element:this.buttonView.element,target:e,positions:[(e,t)=>{let r;return r="ltr"===this.editor.locale.uiLanguageDirection?i.left-t.width:i.right,{top:e.top+n+(o-t.height)/2,left:r}}]});this.buttonView.top=r.top,this.buttonView.left=r.left}_getToolbarMaxWidth(){let e=new rT(this.editor.ui.view.editable.element),t=new rT(this.buttonView.element),i="rtl"===this.editor.locale.uiLanguageDirection?t.left-e.right+t.width:e.left-t.left;return e.width+i+"px"}},class extends W{static get requires(){return[hc,hh]}static get pluginName(){return"Bold"}},class extends W{static get requires(){return[hg,hm]}static get pluginName(){return"Italic"}},class extends W{static get requires(){return[h_,hC]}static get pluginName(){return"BlockQuote"}},class extends W{static get pluginName(){return"CKBox"}static get requires(){return[hN,hv]}},class extends W{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",hL,hB]}},class extends iD{static get pluginName(){return"CloudServices"}static get requires(){return[mS]}init(){let e=this.context.config.get("cloudServices")||{};for(let t in e)this[t]=e[t];if(this._tokens=new Map,this.tokenUrl)return this.token=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}registerTokenUrl(e){if(this._tokens.has(e))return Promise.resolve(this.getTokenFor(e));let t=this.context.plugins.get("CloudServicesCore").createToken(e);return this._tokens.set(e,t),t.init()}getTokenFor(e){let t=this._tokens.get(e);if(!t)throw new p("cloudservices-token-not-registered",this);return t}destroy(){for(let e of(super.destroy(),this._tokens.values()))e.destroy()}},class extends W{static get requires(){return[hO,"ImageUpload"]}init(){let e=this.editor;e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||m("easy-image-image-feature-missing",e)}static get pluginName(){return"EasyImage"}},class extends W{static get requires(){return[hG,hY]}static get pluginName(){return"Heading"}},class extends W{static get requires(){return[up,uf]}static get pluginName(){return"Image"}},class extends W{static get requires(){return[uw,u_]}static get pluginName(){return"ImageCaption"}},class extends W{static get requires(){return[uj,uO]}static get pluginName(){return"ImageStyle"}},class extends W{static get requires(){return[hQ,h6]}static get pluginName(){return"ImageToolbar"}afterInit(){let e=this.editor,t=e.t,i=e.plugins.get(hQ),n=e.plugins.get("ImageUtils");i.register("image",{ariaLabel:t("Image toolbar"),items:(e.config.get("image.toolbar")||[]).map(e=>I(e)?e.name:e),getRelatedElement:e=>n.getClosestSelectedImageWidget(e)})}},class extends W{static get pluginName(){return"ImageUpload"}static get requires(){return[u0,uH,uG]}},class extends W{static get pluginName(){return"Indent"}static get requires(){return[u1,u4]}},class extends W{static get requires(){return[gx,gB,gL]}static get pluginName(){return"Link"}},class extends W{static get requires(){return[g6,g8]}static get pluginName(){return"List"}},class extends W{static get requires(){return[pl,pg,pd,dd]}static get pluginName(){return"MediaEmbed"}},hH,class extends W{static get pluginName(){return"PasteFromOffice"}static get requires(){return[cz]}init(){let e=this.editor,t=e.editing.view.document,i=[];i.push(new pC(t)),i.push(new pw(t)),e.plugins.get("ClipboardPipeline").on("inputTransformation",(n,o)=>{var r,s;let a,l,c,d,h;if(o._isTransformedWithPasteFromOffice||e.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;let u=o.dataTransfer.getData("text/html"),g=i.find(e=>e.isActive(u));g&&(r=u,s=t.stylesProcessor,a=new DOMParser,l=pv(pv(function(e){let t="",i=e.indexOf(t);if(i<0)return e;let n=e.indexOf("",i+t.length);return e.substring(0,i+t.length)+(n>=0?e.substring(n):"")}(r=r.replace(/