@ckeditor/ckeditor5-track-changes 35.4.0 → 36.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +3 -3
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +6 -3
- package/lang/translations/ar.po +16 -4
- package/lang/translations/az.po +16 -4
- package/lang/translations/bg.po +16 -4
- package/lang/translations/bn.po +16 -4
- package/lang/translations/ca.po +16 -4
- package/lang/translations/cs.po +16 -4
- package/lang/translations/da.po +16 -4
- package/lang/translations/de.po +16 -4
- package/lang/translations/el.po +16 -4
- package/lang/translations/en-au.po +16 -4
- package/lang/translations/en.po +16 -4
- package/lang/translations/es.po +16 -4
- package/lang/translations/et.po +16 -4
- package/lang/translations/fi.po +16 -4
- package/lang/translations/fr.po +16 -4
- package/lang/translations/gl.po +16 -4
- package/lang/translations/he.po +16 -4
- package/lang/translations/hi.po +16 -4
- package/lang/translations/hr.po +16 -4
- package/lang/translations/hu.po +16 -4
- package/lang/translations/id.po +16 -4
- package/lang/translations/it.po +16 -4
- package/lang/translations/ja.po +16 -4
- package/lang/translations/ko.po +16 -4
- package/lang/translations/lt.po +16 -4
- package/lang/translations/lv.po +16 -4
- package/lang/translations/ms.po +16 -4
- package/lang/translations/nl.po +16 -4
- package/lang/translations/no.po +16 -4
- package/lang/translations/pl.po +16 -4
- package/lang/translations/pt-br.po +16 -4
- package/lang/translations/pt.po +16 -4
- package/lang/translations/ro.po +16 -4
- package/lang/translations/ru.po +16 -4
- package/lang/translations/sk.po +16 -4
- package/lang/translations/sr-latn.po +32 -20
- package/lang/translations/sr.po +33 -21
- package/lang/translations/sv.po +16 -4
- package/lang/translations/th.po +16 -4
- package/lang/translations/tk.po +16 -4
- package/lang/translations/tr.po +16 -4
- package/lang/translations/tt.po +16 -4
- package/lang/translations/uk.po +16 -4
- package/lang/translations/ur.po +16 -4
- package/lang/translations/vi.po +16 -4
- package/lang/translations/zh-cn.po +16 -4
- package/lang/translations/zh.po +16 -4
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.js +1 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.js +23 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.js +23 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableproperties.js +23 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.js +2 -2
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
1
|
+
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* replace image URL":"*Format:* replace image URL","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
2
|
/*!
|
|
3
|
-
* @license Copyright (c) 2003-
|
|
3
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>La,TrackChanges:()=>Xa,TrackChangesData:()=>tc});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["refresh","affectsData","isEnabled","value","TrackChangesCommand","execute","commands","editor","_disableUnsupportedCommands","has","_enableCommands","_enabledCommands"];var c,l;c=a,l=155,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x0")]=e,this.value=!1,this[u("0x1")]()}[u("0x1")](){this[u("0x3")]=!0}[u("0x6")](){this[u("0x4")]=!this.value,this[u("0x4")]?this[u("0x9")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0x8")].commands[u("0x7")]())t[u("0x2")]&&!this[u("0x0")][u("0xa")](t)&&t.forceDisabled(u("0x5"))}[u("0xb")](){for(const t of this[u("0x8")][u("0x7")][u("0x7")]())t[u("0x2")]&&!this[u("0x0")][u("0xa")](t)&&t.clearForceDisabled(u("0x5"))}}const g=["_suggestions","get","editor","refresh","plugins","TrackChangesEditing","execute","track-changes-accept-suggestion-not-found","acceptSuggestion"];var m,f;m=g,f=270,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x0")]=e,this[h("0x3")]()}[h("0x3")](){this.isEnabled=!0}[h("0x6")](t){const n=this[h("0x0")].get(t);if(!n)throw new e.CKEditorError(h("0x7"),this);this[h("0x2")][h("0x4")][h("0x1")](h("0x5"))[h("0x8")](n)}}const b=["TrackChangesEditing","get","plugins","track-changes-discard-suggestion-not-found","_suggestions","isEnabled","editor","refresh"];var E,_;E=b,_=367,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh()}[T("0x0")](){this[T("0x6")]=!0}execute(t){const n=this[T("0x5")].get(t);if(!n)throw new e.CKEditorError(T("0x4"),this);this[T("0x7")][T("0x3")][T("0x2")](T("0x1")).discardSuggestion(n)}}const y=["createPositionAfter","isIntersecting","getRange","execute","add","isMultiRange","isInContent","createRange","replace","isObject","sort","createPositionBefore","length","end","createPositionAt","deletion","from","getMarkers","getRanges","next","isTouching","schema","content","type"," [color ","isCollapsed","start","isArray","change","push"];var k,A;k=y,A=197,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x17")](((t,e)=>"deletion"==t[v("0x6")]&&v("0x1c")!=e.type?-1:"deletion"!=t.type&&"deletion"==e[v("0x6")]?1:0))}function I(t,e){let n,o=0;const r=[],s=e[v("0x4")];for(;o<t[v("0x19")];){const i=t[o],x=t[o+1];n||(n=e[v("0x18")](i)),S(e,i,x)||(r[v("0xc")](e[v("0x14")](n,s[v("0x16")](i)?e.createPositionAfter(i):e[v("0x1b")](i,v("0x1a")))),n=null),o++}return r}function S(t,e,n){if(!n)return!1;const o=t[v("0xd")](e),r=t[v("0x18")](n);return o[v("0x3")](r)}function L(t,e,n){for(;n[v("0x19")];){const o=n.splice(0,100);t[v("0xb")]((()=>{for(const t of o)t.isInContent&&e[v("0x10")](t.id)}))}}const M=["isEnabled","some","_suggestions","editor","from","isInContent","refresh","_command","values"];var N,w;N=M,w=372,function(t){for(;--t;)N.push(N.shift())}(++w);const O=function(t,e){return M[t-=0]};class D extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this[O("0x8")]=n,this[O("0x3")]()}[O("0x3")](){const t=Array.from(this[O("0x8")].values())[O("0x7")]((t=>t[O("0x2")]));this.isEnabled=this[O("0x4")][O("0x6")]&&t}execute(){const t=R(Array[O("0x1")](this._suggestions[O("0x5")]()));L(this[O("0x0")].model,this[O("0x4")],t)}}const F=["model","_command","values","size","_selectedSuggestions","_suggestions","from","isEnabled","refresh","editor","execute","document","selection"];var P,B;P=F,B=459,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return F[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xa")]=e,this[j("0x1")]=n,this[j("0x0")]=new Set,this[j("0x4")]()}[j("0x4")](){const t=this[j("0x5")].model[j("0x7")][j("0x8")],e=Array[j("0x2")](this[j("0x1")][j("0xb")]());this[j("0x0")]=function(t,e){const n=Array[v("0x1d")](t[v("0x1")]()),o=new Set;for(const r of e)if(r[v("0x13")])for(const e of n)for(const n of r[v("0x0")]()){const s=n[v("0xf")]();(e[v("0xe")](s)||t[v("0x8")]&&!r[v("0x12")]&&r[v("0x2")]&&s[v("0x1a")].isTouching(e[v("0x9")]))&&o[v("0x11")](r)}return o}(t,e),this[j("0x3")]=this[j("0xa")][j("0x3")]&&!!this[j("0x0")][j("0xc")]}[j("0x6")](){const t=R(Array[j("0x2")](this[j("0x0")]));L(this.editor[j("0x9")],this[j("0xa")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=V(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]};const X=function(t){return V(this.__data__,t)>-1};const q=function(t,e){var n=this.__data__,o=V(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=X,$.prototype.set=q;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const rt=ot.Symbol;var st=Object.prototype,it=st.hasOwnProperty,xt=st.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Mt=Lt(ot,"Map");const Nt=Lt(Object,"create");const wt=function(){this.__data__=Nt?Nt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Dt=Object.prototype.hasOwnProperty;const Ft=function(t){var e=this.__data__;if(Nt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Dt.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Nt?void 0!==e[t]:Pt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Nt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Ft,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Mt||Q),string:new Gt}};const Vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const Xt=function(t){return zt(this,t).has(t)};const qt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=Xt,$t.prototype.set=qt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Mt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const se=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Me=Object.prototype.hasOwnProperty;const Ne=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&be(t),s=!n&&!o&&!r&&Le(t),i=n||o||r||s,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Me.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const De=function(t,e){return function(n){return t(e(n))}};const Fe=De(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Fe(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Ne(t):Be(t)};const Ge=function(t,e){return t&&se(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&Ve.call(t,o))&&n.push(o);return n};const We=function(t){return je(t)?Ne(t,!0):ze(t)};const Ke=function(t,e){return t&&se(e,We(e),t)};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=qe&&qe.exports===Xe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return se(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=De(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return se(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,We,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Mt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Mt&&Rn(new Mt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Mn=ot.Uint8Array;const Nn=function(t){var e=new t.constructor(t.byteLength);return new Mn(e).set(new Mn(t)),e};const wn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Dn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Fn=rt?rt.prototype:void 0,Pn=Fn?Fn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const jn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Nn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Dn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?ke(Wn):zn;const Xn=function(t){return xe(t)&&"[object Set]"==In(t)};var qn=Ie&&Ie.isSet;const $n=qn?ke(qn):Xn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(e,r,s,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Jn||"[object GeneratorFunction]"==d;if(be(e))return Je(e,a);if(d==Zn||d==Qn||g&&!s){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Yn[d])return s?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,i))})):Kn(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=u?void 0:(l?c?dn:un:c?We:Ue)(e);return te(f||e,(function(r,s){f&&(r=e[s=r]),re(x,s,t(r,n,o,s,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:so(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var r=-1,s=(e=po(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,s):o(m,f,u,t,e,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=rt?rt.prototype:void 0,Mo=Lo?Lo.valueOf:void 0;const No=function(t,e,n,o,r,s,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new Mn(t),new Mn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,r,s,i);return i.delete(t),l;case"[object Symbol]":if(Mo)return Mo.call(t)==Mo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,s){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,s):o(f,h,l,t,e,s);if(!(void 0===p?f===h||r(f,h,n,o,s):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(e),g};var Do="[object Arguments]",Fo="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,r,s){var i=ge(t),x=ge(e),a=i?Fo:In(t),c=x?Fo:In(e),l=(a=a==Do?Po:a)==Po,u=(c=c==Do?Po:c)==Po,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Yt),i||Le(t)?Ro(t,e,n,o,r,s):No(t,e,a,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return s||(s=new Yt),r(f,h,n,o,s)}}return!!d&&(s||(s=new Yt),Oo(t,e,n,o,r,s))};const Uo=function t(e,n,o,r,s){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,r,t,s))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const Wo=function(t,e){return e.length<2?t:Vo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const Xo=function(t,e){return null==t||Ko(t,e)},qo=["get","suggestion:","_saved","removeAttribute","change","head","reduce","getContainedElement","data","length","onAttributesChange","toJSON","from","previous","isIntersecting","creator","@external","isInContent","isExternal","getItems","clear","next","_markerNames","attributes","onDiscard","hasComments","createdAt","decorate","author","addRange","map","accept","removeMarker","getMarkers","set","push","addMarkerName","onAccept","discard","size","type","_model","getRange","getMultiRangeId","_onAccept","_onDiscard","filter","getMarkerNames","subType","nodeAfter","getRanges","end","getFirstMarker","commentThread","substr","add","removeMarkers","setAttribute","_onAttributesChange","delete"];var $o,Qo;$o=qo,Qo=217,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return qo[t-=0]};class Zo{constructor(t,e){this.id=e.id,this[Jo("0x3")]=e[Jo("0x3")],this.subType=e[Jo("0xb")]||null,this.author=e[Jo("0x33")],this[Jo("0x26")]=e[Jo("0x26")]||e.author,this[Jo("0x29")]=Boolean(e.attributes&&e[Jo("0x2e")][Jo("0x27")]),this[Jo("0x1f")]=null,this[Jo("0x4")]=t,this[Jo("0x7")]=e[Jo("0x0")],this._onDiscard=e[Jo("0x2f")],this[Jo("0x15")]=e[Jo("0x21")],this[Jo("0x2d")]=new Set,this[Jo("0x31")]=null,this.set("authoredAt",null),this.set(Jo("0x2e"),e.attributes||{}),this[Jo("0x39")](Jo("0x24"),null),this[Jo("0x39")](Jo("0x2c"),null),this[Jo("0x39")](Jo("0x10"),null),this[Jo("0x39")](Jo("0x19"),!1),this[Jo("0x32")]("accept"),this[Jo("0x32")](Jo("0x1"))}get head(){let t=this;for(;t[Jo("0x24")];)t=t[Jo("0x24")];return t}get[Jo("0x30")](){return!!this[Jo("0x10")]&&this.commentThread.length>0}get isMultiRange(){return 0!=this._markerNames[Jo("0x2")]&&6==Array[Jo("0x23")](this[Jo("0x2d")])[0].split(":")[Jo("0x20")]}get[Jo("0x28")](){return null!==this[Jo("0xf")]()}addMarkerName(t){this[Jo("0x2d")][Jo("0x12")](t)}[Jo("0xa")](){return Array.from(this[Jo("0x2d")])}[Jo("0x38")](){return this[Jo("0xa")]()[Jo("0x35")]((t=>this[Jo("0x4")].markers[Jo("0x17")](t)))[Jo("0x9")]((t=>t))}[Jo("0xf")](){return this[Jo("0x38")]()[0]||null}[Jo("0x13")](){this._model[Jo("0x1b")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this._markerNames[Jo("0x2b")]()}removeMarker(t){this[Jo("0x4")][Jo("0x1b")]((e=>{e[Jo("0x37")](t)})),this[Jo("0x2d")][Jo("0x16")](t)}[Jo("0x34")](t){const e=Jo("0x18")+this[Jo("0x3")]+":"+this[Jo("0xb")]+":"+this.id+":"+this.creator.id+":"+Zo[Jo("0x6")]();this[Jo("0x3b")](e),this[Jo("0x4")][Jo("0x1b")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this.getRanges())if(e[Jo("0x25")](t))return!0;return!1}[Jo("0xd")](){return this.getMarkers()[Jo("0x35")]((t=>t[Jo("0x5")]()))}[Jo("0x2a")](){return this[Jo("0xd")]()[Jo("0x1d")](((t,e)=>[...t,...e[Jo("0x2a")]()]),[])}getFirstRange(){return this[Jo("0xf")]()[Jo("0x5")]()}[Jo("0x1e")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e.start[Jo("0xc")],o=e[Jo("0xe")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Jo("0x36")](){this[Jo("0x7")](this[Jo("0xd")](),this.data,this[Jo("0x2e")]),this[Jo("0x13")]()}[Jo("0x1")](){this[Jo("0x8")](this[Jo("0xd")](),this[Jo("0x1f")],this[Jo("0x2e")]),this[Jo("0x13")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Jo("0x1c")];for(;e;)t[Jo("0x3a")](e),e=e[Jo("0x2c")];return t}[Jo("0x14")](t,e){const n=eo(this[Jo("0x2e")]);_o(n,t,e),Go(n,this[Jo("0x2e")])||(this.attributes=n,this[Jo("0x15")](n))}[Jo("0x1a")](t){const e=eo(this[Jo("0x2e")]);Xo(e,t),Go(e,this[Jo("0x2e")])||(this[Jo("0x2e")]=e,this[Jo("0x15")](this[Jo("0x2e")]))}[Jo("0x22")](){return{id:this.id,type:this[Jo("0xb")]?this.type+":"+this.subType:this[Jo("0x3")],authorId:this[Jo("0x26")].id,createdAt:this[Jo("0x31")],hasComments:this.hasComments,data:this[Jo("0x1f")],attributes:this[Jo("0x2e")]}}static[Jo("0x6")](){return(0,e.uid)()[Jo("0x11")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n)}}(0,e.mix)(Zo,e.ObservableMixin);const tr=["registerElementLabel","EmptyContainer","item","softBreak","remove","deletion","pop","replace","type","isEmpty","_itemLabelsCallbacks","addContainer","*Merge:* %0","isInContent","*Remove:* %0","add","elementStart","start","_addDescriptionItems","textProxy","text","quantity","indexOf","*Insert:* %0","registerDescriptionCallback","previousSibling","label","Container","removeObject","Object","getFirstRange","insertion","length","_itemLabels","addEmptyContainer","normal","$text","elementEnd","_schema","get","_locale","push","*Split:* %0","_customCallbacks","removeContainer","$1 $2","skip","isObject","getWalker","data","element","REPLACE_TEXT","getItemLabel","end","isEqual","checkChild","nextSibling","match","name"];var er,nr;er=tr,nr=103,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x3a")]=[],this[or("0x30")]=new Map,this[or("0x19")]=[],this[or("0x35")]=t,this[or("0x37")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[or("0x2f")];n++){const o=t[n];if(!o[or("0x1c")])continue;let r=!1;for(const t of this._customCallbacks){const n=t(o);if(n){n.type&&e[or("0x38")](n),r=!0;break}}if(!r){this[or("0x21")](e,o);const r=t[n+1];if(r&&!o[or("0x2d")]()[or("0x9")][or("0xa")](r[or("0x2d")]()[or("0x20")])){const t=e[e[or("0x2f")]-1],n="insertion"==o.type?"add":"remove";t&&or("0x23")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[or("0x27")](t){this[or("0x3a")][or("0x38")](t)}[or("0xf")](t,n,o=e.priorities[or("0x32")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x19")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[or("0x8")](t,e=1){let n;for(const e of this[or("0x19")])if(e.matchingCallback(t)){n=e[or("0x29")];break}return n||(n=this[or("0x30")][or("0x36")](t[or("0xe")])),n?n(e):1!==e?e+" "+t[or("0xe")]+"s":""+t[or("0xe")]}[or("0x21")](t,e){const n=e[or("0x2d")]()[or("0x4")](),o=or("0x2e")==e[or("0x17")]?or("0x1e"):or("0x13");for(const e of n){const r=e[or("0x11")],s=t[t.length-1];if(r.is(or("0x22")))s&&s[or("0x17")][or("0x25")](or("0x2a"))>-1&&t.pop(),s&&or("0x23")==s[or("0x17")]?s[o]+=r[or("0x5")]:t[or("0x38")]({type:or("0x23"),add:or("0x1e")==o?r[or("0x5")]:"",remove:or("0x13")==o?r[or("0x5")]:""});else if(this._schema[or("0x3")](r)){if(s&&s[or("0x17")][or("0x25")](or("0x2a"))>-1&&t[or("0x15")](),"elementEnd"==e[or("0x17")])continue;s&&s[or("0x17")]==o+or("0x2c")&&s[or("0x6")][or("0xe")]==r[or("0xe")]?s[or("0x24")]++:t[or("0x38")]({type:o+or("0x2c"),element:r,quantity:1}),n[or("0x2")]((t=>!(or("0x34")==t[or("0x17")]&&t.item==r)))}else if(this[or("0x35")][or("0xb")](r,or("0x33"))||r.is(or("0x6"),or("0x12"))){if(or("0x1e")==o&&or("0x1f")==e[or("0x17")]||or("0x13")==o&&or("0x34")==e[or("0x17")])continue;if(s&&-1==s[or("0x17")].indexOf(or("0x2a"))){or("0x23")==s[or("0x17")]&&(s[o]+="\n");continue}let n;if(n="add"==o?r.nextSibling&&!this[or("0x35")].isObject(r[or("0xc")])?r[or("0xc")]:null:r[or("0x28")]&&!this._schema[or("0x3")](r.previousSibling)?r[or("0x28")]:null,r[or("0x18")]||n&&n[or("0x18")]){const e=n&&n[or("0x18")]?n:r;s&&s.type==o+or("0x10")&&s[or("0x6")][or("0xe")]==e[or("0xe")]?s[or("0x24")]++:t[or("0x38")]({type:o+or("0x10"),element:e,quantity:1})}else t[or("0x38")]({type:o+or("0x2a"),element:r})}}}_resolveDescriptionItems(t){const e=this._locale,n=[];for(const o of t){switch(o[or("0x17")]){case or("0x23"):if(o[or("0x1e")]=o[or("0x1e")][or("0x16")](/(\S)\u000A+(\S)/g,or("0x1")).replace(/\u000A/g,""),o[or("0x13")]=o[or("0x13")].replace(/(\S)\u000A+(\S)/g,or("0x1"))[or("0x16")](/\u000A/g,""),""!=o[or("0x1e")]&&""!=o[or("0x13")]){n[or("0x38")]({type:"replace",content:Yo(e,or("0x7"),['"'+o[or("0x13")]+'"','"'+o.add+'"'])});continue}if(null!=o.add[or("0xd")](/^ +$/)){n[or("0x38")]({type:or("0x2e"),content:Yo(e,or("0x26"),Yo(e,"ELEMENT_SPACE",o[or("0x1e")][or("0x2f")]))});continue}if(null!=o.remove[or("0xd")](/^ +$/)){n.push({type:or("0x14"),content:Yo(e,or("0x1d"),Yo(e,"ELEMENT_SPACE",o[or("0x13")][or("0x2f")]))});continue}if(""!=o.add){n[or("0x38")]({type:or("0x2e"),content:Yo(e,or("0x26"),'"'+o.add+'"')});continue}n.push({type:or("0x14"),content:Yo(e,or("0x1d"),'"'+o[or("0x13")]+'"')});continue;case or("0x31"):case"addObject":n[or("0x38")]({type:or("0x2e"),content:Yo(e,or("0x26"),this[or("0x8")](o.element,o[or("0x24")]))});continue;case"removeEmptyContainer":case or("0x2b"):n[or("0x38")]({type:or("0x14"),content:Yo(e,or("0x1d"),this[or("0x8")](o[or("0x6")],o[or("0x24")]))});continue;case or("0x1a"):n[or("0x38")]({type:or("0x2e"),content:Yo(e,or("0x39"),this[or("0x8")](o[or("0x6")],o[or("0x24")]))});continue;case or("0x0"):n.push({type:or("0x14"),content:Yo(e,or("0x1b"),this[or("0x8")](o[or("0x6")],o[or("0x24")]))});continue}n[or("0x38")](o)}return n}}const sr=["AlignmentEditing","FORMAT_JUSTIFY_TEXT","editor","left","locale","document","get","schema","value","center","checkAttribute","has","change","justify","model","getAttribute","FORMAT_ALIGN_TO_RIGHT","right","commandName","markBlockFormat","*Format:* %0","plugins","alignment","enableCommand","registerDescriptionCallback","afterInit","getSelectedBlocks","selection","FORMAT_ALIGN_TO_LEFT","TrackChangesEditing","filter"];var ir,xr;ir=sr,xr=225,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{[ar("0x11")](){const t=this[ar("0x19")],e=t[ar("0x1b")];if(!t[ar("0xd")][ar("0x3")](ar("0x17")))return;const n=t.plugins[ar("0x1d")](ar("0x15"));n[ar("0xf")](ar("0xe"),((e,o={})=>{let r=o[ar("0x0")];o[ar("0x0")]||(r="ltr"===t[ar("0x1b")].contentLanguageDirection?ar("0x1a"):ar("0x9"));const s=Array.from(this[ar("0x19")].model[ar("0x1c")][ar("0x13")][ar("0x12")]())[ar("0x16")]((t=>function(t,e,n){const o=t[ar("0x7")]("alignment")||null;return e[ar("0x2")](t,"alignment")&&n!=o}(t,this[ar("0x19")][ar("0x6")][ar("0x1e")],r)));t[ar("0x6")][ar("0x4")]((()=>{for(const t of s)n[ar("0xb")](t,{commandName:"alignment",commandParams:[{value:r}]})}))})),n._descriptionFactory[ar("0x10")]((t=>{const{data:n}=t;if(n&&ar("0xe")==n[ar("0xa")]){const t=n.commandParams[0].value;return{type:"format",content:Yo(e,ar("0xc"),function(t){switch(t){case ar("0x1a"):return Yo(e,ar("0x14"));case ar("0x9"):return Yo(e,ar("0x8"));case ar("0x1"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case ar("0x5"):return Yo(e,ar("0x18"))}}(t))}}}))}}const lr=["isContent","test","getItems","ck-suggestion-marker--active","bindElementToMarker","listItem","markerRange","writer","ck-suggestion-marker-","nextSibling","addHighlight","schema","hasAttribute","plugins","element","getWalker","addClass","elementEnd","span","type","item","consumable","activeMarkers","toViewPosition","start","isLimit","model","TrackChangesEditing","markerName","previousPosition","toViewElement","mapper","parent","push","get","getAttribute"];var ur,dr;ur=lr,dr=311,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};function mr(t,e,n){const o=[];for(const r of e[gr("0xf")]())r[gr("0x19")](t)&&o.push(n.createRangeOn(r));return o}function fr(t){const e=[];if(t.is(gr("0x1b"),gr("0x12"))){let n=t[gr("0x16")];for(;n&&n.is(gr("0x1b"),"listItem")&&n[gr("0xc")]("listIndent")>0;)e[gr("0xa")](n),n=n[gr("0x16")]}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t[gr("0x1a")][gr("0xb")](gr("0x4"));return(r,s,i)=>{if(!i[gr("0x22")][gr("0xe")](s[gr("0x13")],r.name))return;const x=s[gr("0x13")][gr("0x1c")](),a=s.markerRange[gr("0x1")],c=t[gr("0x3")][gr("0x18")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gr("0x21")];d=d||c[gr("0xd")](e);const n=i[gr("0x8")][gr("0x7")](e);if(n&&n.getCustomProperty(gr("0x17")))return;gr("0x1e")==t[gr("0x20")]&&c.isBlock(e)&&!c[gr("0x2")](e)&&(e[gr("0x16")]||a.isAtEnd?l&&l[gr("0x9")]==e||(l=e,m(t[gr("0x6")]),g=!0):u=u||t[gr("0x6")])}function m(t){const r=i[gr("0x14")].createUIElement(gr("0x1f"),{class:gr("0x15")+e}),x=i[gr("0x8")][gr("0x0")](t);n&&o[gr("0x23")].includes(s[gr("0x5")])&&i[gr("0x14")][gr("0x1d")](gr("0x10"),r),i.writer.insert(x,r),i.mapper[gr("0x11")](r,s[gr("0x5")])}d||g||!u||m(u)}}const pr=["_descriptionFactory","*Format:* %0","getRanges","superscript","change","markInlineFormat","FORMAT_STRIKETHROUGH","subscript","value","FORMAT_SUPERSCRIPT","ItalicEditing","has","SubscriptEditing","format","model","get","UnderlineEditing","bold","isCollapsed","document","locale","strikethrough","italic","commandParams","*Remove format:* %0","FORMAT_UNDERLINE","plugins","commands","toLowerCase","enableCommand","FORMAT_SUBSCRIPT","TrackChangesEditing","FORMAT_ITALIC","registerDescriptionCallback","selection","afterInit","CodeEditing","editor","BoldEditing","forceValue"];var br,Er;br=pr,Er=312,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]},Tr=[_r("0x6"),_r("0x12"),_r("0x18"),_r("0x4"),"StrikethroughEditing",_r("0x14"),"SuperscriptEditing"];class Cr extends t.Plugin{[_r("0x3")](){const t=this[_r("0x5")],e=t[_r("0x16")],n=t[_r("0x22")][_r("0x17")](_r("0x27")),o=t[_r("0x1c")];for(const o of Tr){if(!t.plugins[_r("0x13")](o))continue;const r=o.slice(0,-7)[_r("0x24")](),s=t[_r("0x23")][_r("0x17")](r);n[_r("0x25")](r,((t,o={})=>{const i=e[_r("0x1b")][_r("0x2")];if(i[_r("0x1a")])return void t(o);const x=void 0!==o[_r("0x7")]?o[_r("0x7")]:!s[_r("0x10")];e[_r("0xc")]((()=>{const t=Array.from(i[_r("0xa")]());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n[_r("0xd")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[_r("0x8")][_r("0x1")]((n=>{const{data:r}=n;if(r&&r.commandName===t)return r[_r("0x1f")][0][_r("0x7")]?{type:_r("0x15"),content:Yo(o,_r("0x9"),e)}:{type:_r("0x15"),content:Yo(o,_r("0x20"),e)}}))}r(_r("0x19"),Yo(o,"FORMAT_BOLD")),r(_r("0x1e"),Yo(o,_r("0x0"))),r("underline",Yo(o,_r("0x21"))),r("code",Yo(o,"FORMAT_CODE")),r(_r("0x1d"),Yo(o,_r("0xe"))),r(_r("0xf"),Yo(o,_r("0x26"))),r(_r("0xb"),Yo(o,_r("0x11")))}}const yr=["change","forceValue","BlockQuoteEditing","get","_descriptionFactory","getSelectedBlocks","$root","plugins","from","format","name","*Format:* %0","commands","afterInit","has","blockQuote","filter","value","locale","selection","registerDescriptionCallback","editor","*Remove format:* %0","checkChild","commandParams","enableCommand","model","schema"];var kr,Ar;kr=yr,Ar=198,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0xb")](){const t=this[vr("0x13")],e=t[vr("0x10")];if(!t[vr("0x5")][vr("0xc")](vr("0x0")))return;const n=t[vr("0x5")].get("TrackChangesEditing"),o=this.editor[vr("0xa")][vr("0x1")]("blockQuote");n[vr("0x17")](vr("0xd"),((e,r={})=>{const s=this.editor[vr("0x18")].document[vr("0x11")],i=r&&void 0!==r[vr("0x1b")]?r[vr("0x1b")]:!o[vr("0xf")];let x=[];if(i){const e=Array[vr("0x6")](s[vr("0x3")]())[vr("0xe")]((t=>Ir(t)||function(t,e){const n=e.checkChild(t.parent,vr("0xd")),o=e[vr("0x15")]([vr("0x4"),vr("0xd")],t);return n&&o}(t,this[vr("0x13")].model[vr("0x19")])));x=I(e,t[vr("0x18")])}else{const e=Array[vr("0x6")](s[vr("0x3")]())[vr("0xe")]((t=>Ir(t)));x=I(e,t[vr("0x18")])}t.model[vr("0x1a")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vr("0x2")][vr("0x12")]((t=>{const{data:n}=t;if(n&&vr("0xd")==n.commandName){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vr("0x16")][0].forceValue?{type:vr("0x7"),content:Yo(e,vr("0x9"),t)}:{type:vr("0x7"),content:Yo(e,vr("0x14"),t)}}}))}}function Ir(t){return vr("0xd")==t.parent[vr("0x8")]}const Sr=["afterInit","plugins","editor","commands","get","enableCommand","ckbox"];var Lr,Mr;Lr=Sr,Mr=453,function(t){for(;--t;)Lr.push(Lr.shift())}(++Mr);const Nr=function(t,e){return Sr[t-=0]};class wr extends t.Plugin{[Nr("0x2")](){const t=this[Nr("0x4")];t[Nr("0x5")][Nr("0x6")](Nr("0x1"))&&t[Nr("0x3")][Nr("0x6")]("TrackChangesEditing")[Nr("0x0")](Nr("0x1"))}}const Or=["get","TrackChangesEditing","parent","getSelectedBlocks","find","value","outdentCodeBlock","schema","commands","model","selection","plugins","*Remove format:* %0","formatBlock","isLimit","*Format:* %0","blockName","indentCodeBlock","name","commandName","afterInit","markBlockFormat","checkChild","language","enableCommand","format","_descriptionFactory","ELEMENT_CODE_BLOCK","locale","registerElementLabel","config","commandParams","filter","forceValue","from","change","codeBlock","document","languages","label","CodeBlock"];var Dr,Fr;Dr=Or,Fr=130,function(t){for(;--t;)Dr.push(Dr.shift())}(++Fr);const Pr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{[Pr("0xd")](){const t=this.editor;if(!t[Pr("0x4")].has(Pr("0x21")))return;const e=t[Pr("0x4")][Pr("0x22")](Pr("0x23")),n=t[Pr("0x15")],o=t[Pr("0x17")][Pr("0x22")]("codeBlock")[Pr("0x1f")],r=t[Pr("0x1")][Pr("0x22")](Pr("0x1d"));e[Pr("0x11")](Pr("0xa")),e.enableCommand(Pr("0x28")),e[Pr("0x11")]("codeBlock",((n,s={})=>{const i=t[Pr("0x2")],x=t[Pr("0x2")][Pr("0x1e")][Pr("0x3")],a=s&&void 0!==s.forceValue?s[Pr("0x1a")]:!r[Pr("0x27")];let c;s[Pr("0x10")]||(s[Pr("0x10")]=o[0][Pr("0x10")]),c=a?Array[Pr("0x1b")](x[Pr("0x25")]())[Pr("0x19")]((t=>{return jr(t)||(e=t,n=i[Pr("0x0")],!e.is("rootElement")&&!n[Pr("0x7")](e)&&n[Pr("0xf")](e[Pr("0x24")],"codeBlock"));var e,n})):Array[Pr("0x1b")](x[Pr("0x25")]())[Pr("0x19")]((t=>jr(t)));const l=I(c,i);i[Pr("0x1c")]((()=>{for(const t of l)e[Pr("0xe")](t,{commandName:Pr("0x1d"),commandParams:[{...s,forceValue:a}],formatGroupId:Pr("0x9")})}))})),e[Pr("0x13")][Pr("0x16")](Pr("0x1d"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Pr("0x13")].registerDescriptionCallback((t=>{const{type:e,data:r}=t;if(Pr("0x6")==e&&r&&Pr("0x1d")==r[Pr("0xc")]){const t=r[Pr("0x18")][0][Pr("0x10")],e=o[Pr("0x26")]((e=>e[Pr("0x10")]===t))[Pr("0x20")],s=n._t(e);return r[Pr("0x18")][0].forceValue?{type:Pr("0x12"),content:Yo(n,Pr("0x8"),Yo(n,Pr("0x14"),1)+" ("+s+")")}:{type:Pr("0x12"),content:Yo(n,Pr("0x5"),Yo(n,Pr("0x14"),1))}}}))}}function jr(t){return"codeBlock"==t[Pr("0xb")]}const Ur=["has","afterInit","enableCommand","TrackChangesEditing","editor","get","plugins","addCommentThread"];var Gr,Hr;Gr=Ur,Hr=367,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Vr=function(t,e){return Ur[t-=0]};class zr extends t.Plugin{[Vr("0x2")](){const t=this[Vr("0x5")];t[Vr("0x7")][Vr("0x1")]("CommentsEditing")&&t[Vr("0x7")][Vr("0x6")](Vr("0x4"))[Vr("0x3")](Vr("0x0"))}}var Wr=n(181);const Kr=["enableCommand","init","downcastDispatcher","writer","model","requires","showSuggestionHighlights","createRange","enqueueChange","detach","modifySelection","removeMarker:suggestion:deletion","selection","plugins","unbindElementFromMarkerName","buffer","unlock","fromRange","mapper","setSelection","TrackChangesEditing","markerName","data","document","high","markerNameToElements","addMarker:suggestion:deletion","commands","get","editing","createSelection","deleteForward","unit","$graveyard","root","batch","start","forward","isCollapsed","uiElement","end"];var Xr,qr;Xr=Kr,qr=227,function(t){for(;--t;)Xr.push(Xr.shift())}(++qr);const $r=function(t,e){return Kr[t-=0]};class Qr extends t.Plugin{static get[$r("0x18")](){return[Wr.Delete]}[$r("0x14")](){const t=this.editor,e=t[$r("0x20")][$r("0x6")]($r("0x27"));e.enableCommand("delete");const n=t[$r("0x5")][$r("0x6")]($r("0x9"));e[$r("0x13")]($r("0x9"),((e,o={})=>{const r=t[$r("0x17")][$r("0x8")](t[$r("0x17")][$r("0x1")][$r("0x1f")]);r[$r("0x10")]&&t.model[$r("0x1d")](r,{direction:$r("0xf"),unit:o[$r("0xa")]});const s=r.getFirstRange(),x=i.LiveRange[$r("0x24")](s);let a;e(o),a=$r("0xb")==x[$r("0xc")].rootName?t[$r("0x17")][$r("0x1a")](s[$r("0xe")]):t[$r("0x17")].createRange(x[$r("0xe")],x[$r("0x12")]),x[$r("0x1c")](),t[$r("0x17")][$r("0x1b")](n[$r("0x22")][$r("0xd")],(t=>{n[$r("0x22")].lock(),t[$r("0x26")](t[$r("0x1a")](a[$r("0x12")])),n[$r("0x22")][$r("0x23")]()}))})),t[$r("0x7")][$r("0x15")].on("addMarker:suggestion:deletion",hr(t,"merge"),{priority:$r("0x2")}),t[$r("0x0")].downcastDispatcher.on($r("0x4"),((e,n,o)=>{o.options[$r("0x19")]&&hr(t,"merge",{showActiveMarker:!1})(e,n,o)}),{priority:$r("0x2")}),t[$r("0x7")].downcastDispatcher.on($r("0x1e"),((t,e,n)=>{const o=n[$r("0x25")][$r("0x3")](e[$r("0x28")]);if(o)for(const t of o)t.is($r("0x11"))&&(n[$r("0x25")][$r("0x21")](t,e[$r("0x28")]),n[$r("0x16")].remove(t))}),{priority:$r("0x2")})}}const Jr=["commandParams","_suggestionFactory","registerElementLabel","multipleBlocks","ELEMENT_BULLETED_LIST","from","schema","hasAttribute","indentList","getSelectedBlocks","nextSibling","markBlockFormat","refresh","*Indent:* %0","push","selection","expandListBlocksToCompleteList","listType","add","detach","registerDescriptionCallback","end","bulletedList","next","splitListItemBefore","listIndent","isFirstBlockOfListItem","before","enableCommand","value","getRanges","numberedList","listItemId","createRange","commands","format","TrackChangesEditing","outdentList","execute","setSelection","splitListItemAfter","accept","*Change to:* %0","document","get","model","fromRange","*Format:* insert into %0","createPositionAt","previousSibling","markMultiRangeBlockFormat","locale","plugins","formatBlock","start","_descriptionFactory","map","getAttribute","change","isObject","ELEMENT_LIST_ITEM","has","nodeAfter","*Outdent:* %0","commandName"];var Zr,Yr;Zr=Jr,Yr=383,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Jr[t-=0]};class es extends t.Plugin{afterInit(){const t=this.editor;if(!t[ts("0x3b")][ts("0x3")]("DocumentListEditing"))return;const e=t[ts("0x3a")],n=t[ts("0x3b")].get(ts("0x2b")),o=t.plugins[ts("0x33")]("DocumentListUtils");function r(e){return()=>{const r=t[ts("0x29")].get(e);let s=Array.from(t[ts("0x34")][ts("0x32")][ts("0x16")].getSelectedBlocks());if(a(e)){s=o[ts("0x17")](s);const t=[];for(const e of s)o[ts("0x21")](e)&&t[ts("0x15")](e);s=t}t[ts("0x34")][ts("0x0")]((()=>{n[ts("0x39")](s,{commandName:e,commandParams:[{forceValue:!r[ts("0x24")]}],formatGroupId:ts("0x18")},[],"documentList")}))}}function s(e){return()=>{const o=function(t){const e=(t=Array[ts("0xc")](t)).findIndex((t=>!t[ts("0xe")]("listItemId")));return e>-1&&(t=t.slice(0,e)),t}(t[ts("0x34")].document[ts("0x16")][ts("0x10")]()),r=t[ts("0x34")][ts("0x28")](t[ts("0x34")][ts("0x37")](o[0],ts("0x22")),t[ts("0x34")][ts("0x37")](o[o.length-1],ts("0x1c")));t[ts("0x34")].change((()=>{n[ts("0x12")](r,{commandName:e,commandParams:[],formatGroupId:ts("0x18")},function(t){const e=new Set;for(const n of t){let t=n[ts("0x11")];for(;t&&t[ts("0x40")](ts("0x20"))>n[ts("0x40")]("listIndent");)e[ts("0x19")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[ts("0x32")][ts("0x16")].getSelectedBlocks()[ts("0x1e")]()[ts("0x24")],r=t[ts("0x34")][ts("0x37")](o,"before"),s=t[ts("0x34")][ts("0x37")](o,0),i=t.model[ts("0x28")](r,s);t[ts("0x34")][ts("0x0")]((()=>{n[ts("0x12")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[ts("0x29")][ts("0x33")]("bulletedList")[ts("0x24")],o=t[ts("0x29")][ts("0x33")](ts("0x26")).value;return"numberedList"===e?n:o}n[ts("0x23")](ts("0x26"),r(ts("0x26"))),n.enableCommand(ts("0x1d"),r(ts("0x1d"))),n[ts("0x23")]("indentList",s(ts("0xf"))),n[ts("0x23")](ts("0x2c"),s("outdentList")),n.enableCommand(ts("0x2f"),x("splitListItemAfter")),n[ts("0x23")](ts("0x1f"),x(ts("0x1f"))),n[ts("0x3e")][ts("0x9")]((function(e){const n=!t[ts("0x34")][ts("0xd")][ts("0x1")](e),o=e[ts("0x38")],r=e[ts("0x11")],s=e[ts("0x40")]("listItemId"),i=!o||o[ts("0x40")](ts("0x27"))!==s,x=!r||r.getAttribute(ts("0x27"))!==s;return n&&s&&i&&x}),(t=>Yo(e,ts("0x2"),t))),n._descriptionFactory[ts("0x1b")]((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n[ts("0x6")]){case ts("0x1d"):s=n[ts("0x7")][0].forceValue,i=a(n[ts("0x6")]),o=s?ts("0x36"):"*Format:* remove from %0",i&&(o=ts("0x31")),r={type:ts("0x2a"),content:Yo(e,o,Yo(e,ts("0xb")))};break;case ts("0x26"):s=n[ts("0x7")][0].forceValue,i=a(n.commandName),o=s?ts("0x36"):"*Format:* remove from %0",i&&(o=ts("0x31")),r={type:ts("0x2a"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case ts("0xf"):o=ts("0x14"),r={type:ts("0x2a"),content:Yo(e,o,Yo(e,ts("0x2")))};break;case ts("0x2c"):o=ts("0x5"),r={type:ts("0x2a"),content:Yo(e,o,Yo(e,ts("0x2")))};break;case"mergeListItemBackward":case"mergeListItemForward":!1===n[ts("0xa")]&&(o="*Merge:* %0",r={type:"deletion",content:Yo(e,o,Yo(e,ts("0x2")))})}return r})),n[ts("0x8")].registerCustomCallback(ts("0x3c"),"documentList",ts("0x30"),(function(e,n){const o=[];for(let n of e)n[ts("0x3d")][ts("0x4")]===n.end.parent&&(n=t[ts("0x34")][ts("0x28")](t[ts("0x34")][ts("0x37")](n.start.nodeAfter,0))),o[ts("0x15")](n);t[ts("0x34")][ts("0x0")]((e=>{const r=t[ts("0x34")][ts("0x32")][ts("0x16")],s=Array[ts("0xc")](r[ts("0x25")]())[ts("0x3f")]((t=>i.LiveRange[ts("0x35")](t)));e[ts("0x2e")](o),t.commands[ts("0x33")](n.commandName)[ts("0x13")](),n[ts("0x7")].push({forceDefaultExecution:!0}),t[ts("0x2d")](n.commandName,...n.commandParams),e[ts("0x2e")](s);for(const t of s)t[ts("0x1a")]()}))}))}}var ns=n(331);const os=["remove","split","enter","markerName","writer","fromRange","document","nextSibling","addMarker:suggestion:insertion","afterExecute","plugins","editor","editing","markerNameToElements","fire","showSuggestionHighlights","createRange","detach","enableCommand","parent","model","getFirstPosition","init","removeMarker:suggestion:insertion","enterBlock","createPositionAt","get","ck-suggestion-marker-split","downcastDispatcher","end","unbindElementFromMarkerName","selection","mapper","commands","setSelection","markInsertion"];var rs,ss;rs=os,ss=289,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs extends t.Plugin{static get requires(){return[ns.Enter]}[is("0x15")](){const t=this[is("0xa")],e=t[is("0x9")][is("0x19")]("TrackChangesEditing"),n=t[is("0x20")].get(is("0x1"));e[is("0x11")](is("0x1"),(()=>{t[is("0x13")].change((o=>{const r=t.model[is("0x5")][is("0x1e")],s=r[is("0x14")](),x=i.LiveRange[is("0x4")](r.getFirstRange());if(n[is("0x17")](o)){const n=t[is("0x13")][is("0x18")](s[is("0x12")][is("0x6")],0),r=o[is("0xf")](s,n);e[is("0x22")](r)}else o[is("0x21")](o[is("0xf")](x[is("0x1c")]));x[is("0x10")](),n[is("0xd")](is("0x8"),{writer:o})}))})),t[is("0xb")][is("0x1b")].on(is("0x7"),hr(t,"split"),{priority:"high"}),t[is("0xb")][is("0x1b")].on(is("0x16"),((t,e,n)=>{const o=n[is("0x1f")][is("0xc")](e[is("0x2")]);if(o)for(const t of o)t.hasClass(is("0x1a"))&&(n[is("0x1f")][is("0x1d")](t,e.markerName),n[is("0x3")][is("0x23")](t))}),{priority:"high"}),t.data.downcastDispatcher.on(is("0x7"),((e,n,o)=>{o.options[is("0xe")]&&hr(t,is("0x0"),{showActiveMarker:!1})(e,n,o)}),{priority:"high"})}}const as=["commandName","commandParams","registerDescriptionCallback","from","*Reset font background color*","afterInit","*Reset font family*","fontSize","*Set font size:* %0","TrackChangesEditing","title","selection","fontColor","FontBackgroundColorEditing","format","config","editor","isCollapsed","plugins","get","*Set font color:* %0","toLowerCase","_enableCommand","locale","trim","enableCommand","getRanges","value","*Set font family:* %0","label","has","_descriptionFactory","fontFamily","find","fontColor.colors","model","fontBackgroundColor"];var cs,ls;cs=as,ls=132,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]},ds=[{pluginName:"FontSizeEditing",commandName:us("0x17")},{pluginName:"FontFamilyEditing",commandName:us("0xb")},{pluginName:"FontColorEditing",commandName:us("0x1c")},{pluginName:us("0x1d"),commandName:us("0xf")}];class gs extends t.Plugin{[us("0x15")](){const t=this[us("0x20")][us("0x2")];for(const{pluginName:t,commandName:e}of ds)this[us("0x20")][us("0x22")][us("0x9")](t)&&this[us("0x1")](e);this.editor.plugins[us("0x23")](us("0x19"))[us("0xa")][us("0x12")]((e=>{const{data:n}=e;if(null!=n){if("fontSize"==n[us("0x10")]){const e=n[us("0x11")][0][us("0x6")];if(e){const n=this[us("0x20")].plugins[us("0x23")]("FontSize").normalizeSizeOptions(this[us("0x20")][us("0x1f")].get("fontSize.options"))[us("0xc")]((t=>t.model==e))[us("0x1a")],o=this[us("0x20")][us("0x2")]._t(n)[us("0x0")]();return{type:us("0x1e"),content:Yo(t,us("0x18"),o)}}return{type:us("0x1e"),content:Yo(t,"*Reset font size*")}}if(us("0xb")==n.commandName){const e=n[us("0x11")][0][us("0x6")];return e?{type:us("0x1e"),content:Yo(t,us("0x7"),e)}:{type:"format",content:Yo(t,us("0x16"))}}if(us("0x1c")==n.commandName){const e=n[us("0x11")][0][us("0x6")];if(e){const n=(0,r.normalizeColorOptions)(this[us("0x20")][us("0x1f")][us("0x23")](us("0xd")))[us("0xc")]((t=>t[us("0xe")]==e));let o=e,s="";return n&&(o=n[us("0x8")],s=t._t(o)[us("0x0")]()),{type:us("0x1e"),content:Yo(t,us("0x24"),s)[us("0x3")](),color:{value:e,title:s||o}}}return{type:us("0x1e"),content:Yo(t,"*Reset font color*")}}if(us("0xf")==n[us("0x10")]){const e=n[us("0x11")][0].value;if(e){const n=(0,r.normalizeColorOptions)(this[us("0x20")].config[us("0x23")]("fontBackgroundColor.colors"))[us("0xc")]((t=>t.model==e));let o=e,s="";return n&&(o=n[us("0x8")],s=t._t(o)[us("0x0")]()),{type:"format",content:Yo(t,"*Set font background color:* %0",s).trim(),color:{value:e,title:s||o}}}return{type:"format",content:Yo(t,us("0x14"))}}}}))}[us("0x1")](t){const e=this[us("0x20")];e[us("0x22")][us("0x23")]("TrackChangesEditing")[us("0x4")](t,((n,o={})=>{const r=e[us("0xe")].document[us("0x1b")],s=o[us("0x6")];r[us("0x21")]?n(o):e[us("0xe")].change((()=>{const n=Array[us("0x13")](r[us("0x5")]());for(const o of n){const n=s?[o]:mr(t,o,e[us("0xe")]);for(const o of n)e[us("0x22")][us("0x23")](us("0x19")).markInlineFormat(o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const ms=["filter","checkChild","selection","name","parent","change","blockName","ELEMENT_HEADING_CUSTOM","paragraph","plugins","heading","find","has","enableCommand","_descriptionFactory","config","document","title","*Change to:* %0","from","match","model","afterInit","TrackChangesEditing","value","schema","editor","commandName","isObject","format","get","registerElementLabel","heading.options","registerDescriptionCallback"];var fs,hs;fs=ms,hs=201,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ps=function(t,e){return ms[t-=0]};class bs extends t.Plugin{[ps("0x19")](){const t=this[ps("0x1d")],e=t.locale,n=t[ps("0x12")][ps("0x21")](ps("0x1"));if(!t[ps("0xc")][ps("0xf")]("HeadingEditing"))return;const o=t[ps("0xc")].get(ps("0x1a"));o[ps("0x10")](ps("0xd"),((e,n)=>{const r=n[ps("0x1b")],s=Array[ps("0x16")](this[ps("0x1d")][ps("0x18")][ps("0x13")][ps("0x5")].getSelectedBlocks())[ps("0x3")]((t=>{return e=t,n=r,(o=this[ps("0x1d")][ps("0x18")][ps("0x1c")])[ps("0x4")](e[ps("0x7")],n)&&!o[ps("0x1f")](e)&&e[ps("0x6")]!=n;var e,n,o}));t[ps("0x18")][ps("0x8")]((()=>{for(const t of s)o.markBlockFormat(t,{commandName:ps("0xd"),commandParams:[n],formatGroupId:ps("0x9")},fr(t))}))}));for(const t of n)ps("0xb")!=t[ps("0x18")]&&o[ps("0x11")][ps("0x0")](t[ps("0x18")],(e=>{const n=Es(t[ps("0x18")]);return null!==n?r(e,n):s(e,t.title)}));function r(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function s(t,n){return Yo(e,ps("0xa"),[t,n])}o._descriptionFactory[ps("0x2")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&ps("0xd")==i[ps("0x1e")]){const t=i.commandParams[0].value,o=Es(t);if(null!==o)return{type:ps("0x20"),content:Yo(e,ps("0x15"),r(1,o))};const x=n[ps("0xe")]((e=>e[ps("0x18")]===t))[ps("0x14")];return{type:ps("0x20"),content:Yo(e,"*Change to:* %0",s(1,x))}}}))}}function Es(t){const e=t[ps("0x17")](/^heading(\d+)$/);return e?e[1]:null}const _s=["editor","backward","HighlightEditing","getLastMatchingPosition","find","enableCommand","hasAttribute","format","model","locale","get","item","registerDescriptionCallback","document","highlight","has","afterInit","getAttribute","formatInline","change","value","title","getRanges","toLowerCase","isCollapsed","color","_descriptionFactory","push","createRange","FORMAT_HIGHLIGHT","*Remove highlight*"];var Ts,Cs;Ts=_s,Cs=337,function(t){for(;--t;)Ts.push(Ts.shift())}(++Cs);const ys=function(t,e){return _s[t-=0]};class ks extends t.Plugin{[ys("0x14")](){const t=this[ys("0x4")];if(!t.plugins[ys("0x13")](ys("0x6")))return;const e=t.plugins[ys("0xe")]("TrackChangesEditing");e[ys("0x9")]("highlight",((n,o={})=>{const r=t[ys("0xc")][ys("0x11")].selection,s=r[ys("0x15")](ys("0x12"));let i=o.value,x=[];if(r[ys("0x1c")]){const e=r.getFirstPosition();if(!r[ys("0xa")](ys("0x12")))return void n(o);{const n=t=>t[ys("0xf")].getAttribute(ys("0x12"))===s,o=e.getLastMatchingPosition(n,{direction:ys("0x5")}),r=e[ys("0x7")](n);x=[t[ys("0xc")][ys("0x1")](o,r)],i==s&&(i=null)}}else for(const e of r[ys("0x1a")]())i?x[ys("0x0")](e):x[ys("0x0")](...mr("highlight",e,t.model));t[ys("0xc")][ys("0x17")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:ys("0x12"),commandParams:[{value:i}]})}))}));const n=t[ys("0xd")];e[ys("0x1e")][ys("0x10")]((e=>{const{type:o,data:r}=e;if(ys("0x16")==o&&r&&"highlight"==r.commandName){const e=r.commandParams[0][ys("0x18")];if(e){const o=t.config.get("highlight.options")[ys("0x8")]((t=>t[ys("0xc")]==e)),r=n._t(o.title)[ys("0x1b")]();return{type:ys("0xb"),content:Yo(n,"*Set highlight:* %0",r),color:{value:o[ys("0x1d")],title:o[ys("0x19")]}}}return{type:"format",content:Yo(n,ys("0x3"),Yo(n,ys("0x2")))}}}))}}const As=["div","createPositionAt","enableCommand","elementToStructure","plugins","get","has","insert","showSuggestionHighlights","addClass","HorizontalLineEditing","conversion","for","createContainerElement","TrackChangesEditing","dataDowncast","registerElementLabel"];var vs,Rs;vs=As,Rs=423,function(t){for(;--t;)vs.push(vs.shift())}(++Rs);const Is=function(t,e){return As[t-=0]};class Ss extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Is("0x8")](Is("0xc")))return;t[Is("0x6")][Is("0x7")](Is("0x10"))[Is("0x4")]("horizontalLine");const e=t[Is("0x6")].get("TrackChangesEditing"),n=t.locale;e._descriptionFactory[Is("0x1")]("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Is("0xd")][Is("0xe")](Is("0x0"))[Is("0x5")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Is("0xa")])return;const o=e[Is("0xf")](Is("0x2")),r=e.createEmptyElement("hr");return e[Is("0xb")]("ck-horizontal-line",o),e[Is("0x9")](e[Is("0x3")](o,0),r),o},converterPriority:"high"})}}const Ls=["TrackChangesEditing","getCustomProperty","get","cancel","plugins","afterInit","ELEMENT_HTML_EMBED","getSelectedElement","format","document","has","commandName","_descriptionFactory","HtmlEmbed","model","rawHtml","rawHtmlApi","value","editor","markBlockFormat","registerDescriptionCallback","selection","htmlEmbed","editing","enableCommand"];var Ms,Ns;Ms=Ls,Ns=141,function(t){for(;--t;)Ms.push(Ms.shift())}(++Ns);const ws=function(t,e){return Ls[t-=0]};class Os extends t.Plugin{[ws("0xe")](){const t=this[ws("0x2")];if(!t[ws("0xd")][ws("0x13")](ws("0x16")))return;const e=t[ws("0xd")][ws("0xb")]("TrackChangesEditing"),n=t.locale,o=t[ws("0x7")].view[ws("0x12")][ws("0x5")];e[ws("0x15")].registerElementLabel(ws("0x18"),(t=>Yo(n,ws("0xf"),t))),t[ws("0xd")].get(ws("0x9"))[ws("0x8")](ws("0x6"),((n,r)=>{const s=t[ws("0x17")],i=s[ws("0x12")][ws("0x5")];s.change((()=>{const t=function(t){const e=t[ws("0x10")]();return e&&e.is("element",ws("0x18"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const s=t.getAttribute(ws("0x1"))||"";void 0!==r&&r!==s&&(e[ws("0x3")](t,{commandName:ws("0x6"),commandParams:[r]}),o.getSelectedElement()[ws("0xa")](ws("0x0"))[ws("0xc")]())}))})),e[ws("0x15")][ws("0x4")]((t=>{const{data:e}=t;if(e&&ws("0x6")==e[ws("0x14")]){const t=Yo(n,ws("0xf"));return{type:ws("0x11"),content:Yo(n,"*Change %0 content*",t)}}}))}}const Ds=["getFirstRange","*Reset image width*","forward","forceDefaultExecution","schema","*Remove image text alternative*","has","newRange","commandName","value","toggleImageCaption","deletion","imageBlock","_suggestionFactory","insertion","isBefore","ImageCaptionEditing","get","editor","FORMAT_SIDE_IMAGE","from","differ","getCaptionFromImageModelElement","ImageCaptionUtils","name","findIndex","plugins","ImageStyleEditing","afterInit","backward","convertInlineImageToBlock","insertImage","newValue","selection","find","commandParams","commandReversedParams","imageStylePostApply","ImageTextAlternativeEditing","imageTextAlternative","commands","change","isBlockImage","getAttribute","createRange","toNext","type","formatInline","_findSuggestions","alt","getNearestSelectionRange","*Format:* %0","ELEMENT_INLINE_IMAGE","fromPosition","locale","accept","previous","Users","ImageUploadEditing","_descriptionFactory","imageStyle","forEach","getClosestSelectedImageElement","isInlineImage","ELEMENT_IMAGE","formatBlock","markBlockFormat","markInsertion","side","discardSuggestion","subType","nodeBefore","next","shouldConvertImageType","hasAttribute","hasSuggestion","getSuggestionCallback","chain","toPrevious","end","document","convertBlockImageToInline","author","filter","getContainedElement","TrackChangesEditing","width","nodeAfter","createRangeOn","toLowerCase","join","getSuggestion","imageTypeBlock","ImageInlineEditing","getSuggestions","registerDescriptionCallback","registerPostFixer","start","imageInline","isCollapsed","refresh","registerElementLabel","Block image to inline image","isOwn","registerCustomCallback","element","markInlineFormat","model","length","format","normalizedStyles","caption","isEqual","imageStylePreApply","suggestion","removeObject","discard","enableCommand","ImageUtils","head","resizeImage","isInContent","imageTypeInline"];var Fs,Ps;Fs=Ds,Ps=263,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Bs=function(t,e){return Ds[t-=0]};class js extends t.Plugin{[Bs("0xb")](){const t=this[Bs("0x1")];if(!t[Bs("0x9")][Bs("0x70")]("ImageEditing"))return;const n=t[Bs("0x9")][Bs("0x0")](Bs("0x44")),o=t[Bs("0x9")][Bs("0x0")](Bs("0x65")),r={},s=t[Bs("0x25")];if(n[Bs("0x64")](Bs("0xe")),n._descriptionFactory[Bs("0x54")](Bs("0x76"),(t=>Yo(s,Bs("0x2f"),t))),n._descriptionFactory[Bs("0x54")](Bs("0x51"),(t=>Yo(s,Bs("0x23"),t))),n[Bs("0x2a")].registerElementLabel(Bs("0x5e"),(()=>Yo(s,"ELEMENT_CAPTION"))),t[Bs("0x9")][Bs("0x70")](Bs("0x29"))&&n.enableCommand("uploadImage"),t[Bs("0x9")][Bs("0x70")]("ImageBlockEditing")&&t[Bs("0x9")][Bs("0x70")](Bs("0x4c"))&&(n[Bs("0x64")](Bs("0x69"),((e,r)=>{const s=o.getClosestSelectedImageElement(t[Bs("0x5a")].document.selection);t[Bs("0x5a")][Bs("0x18")]((()=>{n[Bs("0x31")](s,{commandName:"imageTypeInline",commandParams:[r]},[],Bs("0x40"))}))})),n[Bs("0x64")](Bs("0x4b"),((e,r)=>{t[Bs("0x5a")][Bs("0x18")]((s=>{let x=o[Bs("0x2d")](t.model[Bs("0x3f")][Bs("0x10")]),a=s[Bs("0x47")](x);const c=i.LivePosition.fromPosition(a.start,Bs("0x3d")),l=i.LivePosition[Bs("0x24")](a[Bs("0x3e")],Bs("0x1c"));n[Bs("0x6d")]((()=>e(r))),x=o[Bs("0x2d")](t[Bs("0x5a")][Bs("0x3f")].selection),a=s[Bs("0x47")](x);const u=s[Bs("0x1b")](c,l);c.detach(),l.detach(),n.markBlockFormat(x,{commandName:"imageTypeInline"},[],Bs("0xd")),u[Bs("0x50")][Bs("0x79")](a[Bs("0x50")])&&n[Bs("0x32")](s[Bs("0x1b")](u[Bs("0x50")],a[Bs("0x50")]),Bs("0xd")),a[Bs("0x3e")].isBefore(u[Bs("0x3e")])&&n.markInsertion(s.createRange(a[Bs("0x3e")],u[Bs("0x3e")]),Bs("0xd"))}))})),n[Bs("0x77")].registerCustomCallback("formatBlock","convertInlineImageToBlock",Bs("0x49"),(()=>{})),n[Bs("0x77")].registerCustomCallback(Bs("0x30"),Bs("0xd"),Bs("0x26"),(()=>{})),n[Bs("0x77")][Bs("0x57")](Bs("0x30"),Bs("0xd"),Bs("0x63"),n[Bs("0x77")][Bs("0x3b")](Bs("0x30"),"",Bs("0x26"))),n._suggestionFactory.registerCustomCallback(Bs("0x78"),Bs("0xd"),"join",(()=>{})),n[Bs("0x77")][Bs("0x57")](Bs("0x78"),"convertInlineImageToBlock",Bs("0x63"),(([e])=>{const o=n[Bs("0x77")][Bs("0x3b")](Bs("0x78"),"","discard");let r=e[Bs("0x50")],s=e[Bs("0x3e")];const i=t[Bs("0x5a")][Bs("0x6e")][Bs("0x21")](r,Bs("0xc")),x=t.model.schema[Bs("0x21")](s,Bs("0x6c"));i.isCollapsed&&(r=i.start),x[Bs("0x52")]&&(s=x[Bs("0x3e")]),o([t[Bs("0x5a")][Bs("0x1b")](r,s)])})),n[Bs("0x77")].registerCustomCallback(Bs("0x30"),Bs("0xd"),Bs("0x3c"),c),n[Bs("0x77")][Bs("0x57")]("insertion",Bs("0xd"),Bs("0x3c"),c)),t[Bs("0x9")][Bs("0x70")](Bs("0x7a"))&&(n.enableCommand(Bs("0x74"),((e,r)=>{const s=t[Bs("0x9")][Bs("0x0")](Bs("0x6"));let i=o.getClosestSelectedImageElement(t.model[Bs("0x3f")].selection),x=s[Bs("0x5")](i);t[Bs("0x5a")][Bs("0x18")]((()=>{if(x)return void n.markDeletion(t.model.createRangeOn(x));const a=o[Bs("0x19")](i);e(r),i=o[Bs("0x2d")](t[Bs("0x5a")][Bs("0x3f")][Bs("0x10")]),x=s.getCaptionFromImageModelElement(i),n.markInsertion(t.model[Bs("0x47")](x),a?null:"imageCaption")}))})),n[Bs("0x77")][Bs("0x57")]("insertion","imageCaption",Bs("0x3c"),c)),t.plugins.has(Bs("0xa"))){n[Bs("0x64")](Bs("0x2b"),((r,s)=>{const i=t.plugins.get(Bs("0x28")).me,x=t[Bs("0x17")][Bs("0x0")](Bs("0x2b"));let a=o[Bs("0x2d")](t[Bs("0x5a")][Bs("0x3f")][Bs("0x10")]),c=t.model[Bs("0x47")](a),l=x[Bs("0x73")];if(l==s.value)return;const u={commandName:Bs("0x2b"),commandParams:[s],formatGroupId:(0,e.uid)()};t[Bs("0x5a")][Bs("0x18")]((()=>{if(n[Bs("0x4d")]()[Bs("0x42")]((t=>t.isInContent&&i==t[Bs("0x41")]&&(Bs("0x30")==t[Bs("0x1d")]||Bs("0x1e")==t[Bs("0x1d")])&&(Bs("0x60")==t[Bs("0x35")]||Bs("0x14")==t[Bs("0x35")])&&t[Bs("0x6a")]()[Bs("0x5f")](c)))[Bs("0x2c")]((t=>n[Bs("0x34")](t[Bs("0x66")]))),a=o.getClosestSelectedImageElement(t.model[Bs("0x3f")][Bs("0x10")]),c=t[Bs("0x5a")][Bs("0x47")](a),x[Bs("0x53")](),t[Bs("0x17")][Bs("0x0")]("imageTypeInline")[Bs("0x53")](),t.commands[Bs("0x0")](Bs("0x4b"))[Bs("0x53")](),l=x[Bs("0x73")],l!=s[Bs("0x73")])return o[Bs("0x2e")](a)&&x[Bs("0x38")](s[Bs("0x73")],a)?(r(s),a=o.getClosestSelectedImageElement(t[Bs("0x5a")][Bs("0x3f")][Bs("0x10")]),void n[Bs("0x31")](a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Bs("0x19")](a)?n[Bs("0x31")](a,u,[],Bs("0x14")):n[Bs("0x59")](c,u,Bs("0x14")))}))}));for(const e of t[Bs("0x9")][Bs("0x0")](Bs("0xa"))[Bs("0x5d")])r[e[Bs("0x7")]]=e.title[Bs("0x48")]();n[Bs("0x77")].registerCustomCallback("formatBlock",Bs("0x60"),Bs("0x49"),(()=>{})),n[Bs("0x77")].registerCustomCallback(Bs("0x30"),Bs("0x14"),Bs("0x49"),(()=>{})),n[Bs("0x77")][Bs("0x57")](Bs("0x1e"),Bs("0x14"),Bs("0x49"),(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock",Bs("0x60"),Bs("0x26"),(()=>{})),n[Bs("0x77")].registerCustomCallback(Bs("0x30"),Bs("0x60"),"discard",((t,e)=>{n._suggestionFactory[Bs("0x3b")](Bs("0x30"),"",Bs("0x26"))(t,{commandName:e[Bs("0x72")],commandParams:e[Bs("0x13")]})})),n[Bs("0x77")][Bs("0x57")](Bs("0x30"),Bs("0x60"),"chain",c)}const x=[{type:Bs("0x30"),subType:Bs("0x60")},{type:Bs("0x78"),subType:"imageCaption"},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:Bs("0x78"),subType:Bs("0xd")}];function a(t,e){const r=x[Bs("0x8")]((({type:e,subType:n})=>t.type==e&&t[Bs("0x35")]==n)),s=x[Bs("0x8")]((({type:t,subType:n})=>e.type==t&&e[Bs("0x35")]==n));if(r<0||s<0)return!1;const i=t[Bs("0x6a")](),a=e.getFirstRange();if((0==r||1==r)&&2==s&&i.isIntersecting(a))return!0;if(2==r&&3==s){const t=n[Bs("0x1f")](i,Bs("0x78")).filter((({suggestion:t,meta:e})=>e[Bs("0x56")]&&Bs("0xd")==t[Bs("0x35")]));if(t.length>1&&a.end[Bs("0x5f")](i.start))return!0;if(1==t[Bs("0x5b")]&&(i.start[Bs("0x5f")](a[Bs("0x3e")])||i[Bs("0x3e")][Bs("0x5f")](a[Bs("0x50")])))return!0}if(3==r&&3==s&&i[Bs("0x50")][Bs("0x79")](a.start)){const t=i.end[Bs("0x46")],e=a.start[Bs("0x36")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Bs("0x5a")][Bs("0x3f")][Bs("0x4f")]((()=>{let e=!1;const r=Array[Bs("0x3")](t[Bs("0x5a")].document[Bs("0x4")].getChangedMarkers());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Bs("0x61")==r&&n[Bs("0x3a")](a)){if("formatBlock"==i&&("imageStylePreApply"==x||Bs("0x14")==x)){const t=n[Bs("0x4a")](a);if(s.newRange){const r=t[Bs("0x6a")]().getContainedElement();if(o.isBlockImage(r))continue;n.discardSuggestion(t),e=!0}}if(Bs("0x78")==i&&"imageCaption"==x&&!s[Bs("0x71")]){const t=n[Bs("0x4a")](a);t[Bs("0x37")]&&t[Bs("0x37")][Bs("0x68")]&&(n[Bs("0x34")](t[Bs("0x37")]),e=!0)}}}return e})),t[Bs("0x9")][Bs("0x70")]("ImageResize")&&n.enableCommand(Bs("0x67"),((e,r)=>{const s=o[Bs("0x2d")](t[Bs("0x5a")].document[Bs("0x10")]);s[Bs("0x1a")]("width")!=r[Bs("0x45")]&&t[Bs("0x5a")][Bs("0x18")]((()=>{n[Bs("0x31")](s,{commandName:Bs("0x67"),commandParams:[r]})}))})),t[Bs("0x9")][Bs("0x70")](Bs("0x15"))&&n[Bs("0x64")](Bs("0x16"),((e,r)=>{const s=o[Bs("0x2d")](t[Bs("0x5a")][Bs("0x3f")][Bs("0x10")]);(s[Bs("0x39")]("alt")?s[Bs("0x1a")](Bs("0x20")):"")!=r.newValue&&t[Bs("0x5a")].change((()=>{n[Bs("0x31")](s,{commandName:Bs("0x16"),commandParams:[r]})}))})),n[Bs("0x2a")].registerDescriptionCallback((t=>{if(x[Bs("0x11")]((({type:e,subType:n})=>t[Bs("0x1d")]==e&&t.subType==n)))return t[Bs("0x27")]?{}:void 0})),n[Bs("0x2a")][Bs("0x4e")]((t=>{if(Bs("0x78")==t[Bs("0x1d")]||Bs("0x75")==t.type){const e=t[Bs("0x43")]();if(e&&e.is(Bs("0x58"),Bs("0x5e")))return{type:Bs("0x78")==t[Bs("0x1d")]?"addObject":Bs("0x62"),element:e,quantity:1}}})),n[Bs("0x2a")][Bs("0x4e")]((t=>"formatBlock"==t.type&&Bs("0xd")==t[Bs("0x35")]?{type:Bs("0x5c"),content:"Inline image to block image"}:Bs("0x30")==t[Bs("0x1d")]&&Bs("0x40")==t[Bs("0x35")]?{type:"format",content:Bs("0x55")}:void 0)),n[Bs("0x2a")][Bs("0x4e")]((t=>{const{data:e}=t;if(e){if(Bs("0x2b")==e.commandName){const t=e.commandParams[0][Bs("0x73")];return n=Bs("0x33")===t?Yo(s,Bs("0x2")):r[t]||t,{type:"format",content:Yo(s,Bs("0x22"),n)}}if(Bs("0x16")==e[Bs("0x72")]){const t=e[Bs("0x12")][0][Bs("0xf")];return t?{type:Bs("0x5c"),content:Yo(s,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Bs("0x5c"),content:Yo(s,Bs("0x6f"))}}if("resizeImage"==e.commandName){const t=e[Bs("0x12")][0][Bs("0x45")];return t?{type:Bs("0x5c"),content:Yo(s,"*Set image width:* %0",t)}:{type:Bs("0x5c"),content:Yo(s,Bs("0x6b"))}}}var n}))}}const Us=["_handleImportedData","value","TrackChangesEditing","importWord","high","_trackChangesValueDuringImport","editor","execute","enableCommand","_trackChangesExecuted","plugins","bind","forEach","dataInsert","afterInit","get","lowest","_setSuggestionData","listenTo","commands","trackChanges"];var Gs,Hs;Gs=Us,Hs=211,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Vs=function(t,e){return Us[t-=0]};class zs extends t.Plugin{constructor(t){super(t),this[Vs("0x4")]=!1,this._trackChangesExecuted=!1}[Vs("0xd")](){const t=this[Vs("0x5")],e=t.commands.get(Vs("0x2")),n=t[Vs("0x12")][Vs("0xe")]("trackChanges");e&&(e.on(Vs("0x6"),((t,[,e])=>{this._trackChangesValueDuringImport=n[Vs("0x0")],e.collaboration_features.track_changes=!this[Vs("0x4")]}),{priority:Vs("0x3")}),this[Vs("0x11")](e,Vs("0xc"),this._handleImportedData[Vs("0xa")](this)),this.listenTo(e,Vs("0xc"),(()=>{this._trackChangesExecuted&&(n[Vs("0x6")](),this[Vs("0x8")]=!1)}),{priority:Vs("0xf")}),t[Vs("0x9")][Vs("0xe")](Vs("0x1"))[Vs("0x7")](Vs("0x2")))}[Vs("0x14")](t,e){const{suggestions:n}=e,o=this[Vs("0x5")][Vs("0x12")].get(Vs("0x13")),r=o[Vs("0x0")];this[Vs("0x4")]!==r&&(o[Vs("0x6")](),this[Vs("0x8")]=!0),n&&n[Vs("0xb")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[Vs("0x5")][Vs("0x9")][Vs("0xe")]("Users").me.id,createdAt:new Date,data:{},hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor.plugins[Vs("0xe")](da)[Vs("0x10")](r)}))}}const Ws=["from","afterInit","outdent","filter","get","_descriptionFactory","blockIndent","getItems","getItemLabel","enableCommand","getSelectedBlocks","*Outdent:* %0","registerDescriptionCallback","editor","selection","format","checkAttribute","document","model","*Indent:* %0","indent","plugins","IndentBlock","outdentBlock","change","has","schema","commandName","indentBlock","IndentEditing"];var Ks,Xs;Ks=Ws,Xs=231,function(t){for(;--t;)Ks.push(Ks.shift())}(++Xs);const qs=function(t,e){return Ws[t-=0]};class $s extends t.Plugin{[qs("0xa")](){const t=this[qs("0x16")],e=t[qs("0x0")][qs("0xd")]("TrackChangesEditing");t[qs("0x0")][qs("0x4")](qs("0x8"))&&(e[qs("0x12")](qs("0x1d")),e[qs("0x12")](qs("0xb")));const n=t.locale;if(t.plugins[qs("0x4")](qs("0x1"))){for(const n of["indentBlock",qs("0x2")])e[qs("0x12")](n,(()=>{const o=Array[qs("0x9")](this[qs("0x16")][qs("0x1b")][qs("0x1a")][qs("0x17")][qs("0x13")]())[qs("0xc")]((t=>this[qs("0x16")][qs("0x1b")][qs("0x5")][qs("0x19")](t,qs("0xf"))));t[qs("0x1b")][qs("0x3")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[qs("0xe")][qs("0x15")]((t=>{const{data:o}=t;if(!o)return;if(qs("0x7")!=o[qs("0x6")]&&"outdentBlock"!=o[qs("0x6")])return;const r=t[qs("0x10")]()[0],s=e[qs("0xe")][qs("0x11")](r);return qs("0x7")==o[qs("0x6")]?{type:qs("0x18"),content:Yo(n,qs("0x1c"),s)}:"outdentBlock"==o[qs("0x6")]?{type:qs("0x18"),content:Yo(n,qs("0x14"),s)}:void 0}))}}}var Qs,Js,Zs=["TrackChangesEditing","requires","get","input","enableCommand","plugins"];Qs=Zs,Js=164,function(t){for(;--t;)Qs.push(Qs.shift())}(++Js);var Ys=function(t,e){return Zs[t-=0]};class ti extends t.Plugin{static get[Ys("0x5")](){return[Wr.Input]}init(){this.editor[Ys("0x3")][Ys("0x0")](Ys("0x4"))[Ys("0x2")](Ys("0x1"))}}const ei=["editor","locale","isCollapsed","linkHref","getAttribute","*Set link:* %0","from","TrackChangesEditing","getFirstRange","commandName","hasAttribute","selection","markInlineFormat","_descriptionFactory","link","model","plugins","registerDescriptionCallback","has","enableCommand","get","format","unlink","commandParams","LinkEditing","change","getRanges","document","getFirstPosition"];var ni,oi;ni=ei,oi=243,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class si extends t.Plugin{afterInit(){const t=this[ri("0x12")];if(!t[ri("0x5")][ri("0x7")](ri("0xd")))return;const e=t[ri("0x5")][ri("0x9")](ri("0x19"));e.enableCommand(ri("0x3"),((n,o)=>{const r=t.model[ri("0x10")][ri("0x0")];let s=[];if(r.isCollapsed){if(!r[ri("0x1c")](ri("0x15")))return void n(o);{const e=(0,Wr.findAttributeRange)(r.getFirstPosition(),ri("0x15"),r[ri("0x16")](ri("0x15")),t[ri("0x4")]);s=[e]}}else s=Array[ri("0x18")](r[ri("0xf")]());t[ri("0x4")].change((()=>{for(const t of s)e[ri("0x1")](t,{commandName:ri("0x3"),commandParams:[o]})}))})),e[ri("0x8")](ri("0xb"),(()=>{const n=this[ri("0x12")].model,o=n[ri("0x10")][ri("0x0")];n[ri("0xe")]((()=>{let n=[];n=o[ri("0x14")]?[(0,Wr.findAttributeRange)(o[ri("0x11")](),ri("0x15"),o.getAttribute(ri("0x15")),t[ri("0x4")])]:mr(ri("0x15"),o[ri("0x1a")](),t[ri("0x4")]);for(const t of n)e[ri("0x1")](t,{commandName:ri("0xb"),commandParams:[]})}))})),e[ri("0x2")][ri("0x6")]((e=>{const{data:n}=e,o=t[ri("0x13")];if(n){if("link"==n[ri("0x1b")]){const t=n[ri("0xc")][0];return{type:"format",content:Yo(o,ri("0x17"),'"'+t+'"')}}return ri("0xb")==n.commandName?{type:ri("0xa"),content:Yo(o,"*Remove link*")}:void 0}}))}}const ii=["createPositionAt","getAttribute","registerElementLabel","indentList","numberedList","ELEMENT_NUMBERED_LIST","todoList","checkChild","afterInit","createRange","listIndent","previousSibling","numbered","bulletedList","end","*Uncheck item*","listItem","List","has","length","filter","get","_descriptionFactory","markBlockFormat","commands","paragraph","value","plugins","ListEditing","before","TodoListEditing","*Change to:* %0","enableCommand","format","todoListChecked","blockName","findIndex","name","push","selection","from","TrackChangesEditing","execute","checkTodoList","element","change","outdentList","document","isObject","slice","commandName","todo","add","ELEMENT_LIST_ITEM","replace","editor","getSelectedBlocks","bulleted","*Outdent:* %0","schema","registerDescriptionCallback","model","nextSibling"];var xi,ai;xi=ii,ai=463,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return ii[t-=0]};class li extends t.Plugin{[ci("0x31")](){const t=this[ci("0x21")],e=t.locale;if(!t[ci("0x5")][ci("0x3b")](ci("0x6")))return;const n=t.plugins.get(ci("0x13")),o=t.plugins[ci("0x3b")](ci("0x8"));function r(e){return()=>{const o=t[ci("0x27")].document[ci("0x11")],r=t[ci("0x2")].get(e);if(r.value)return void t[ci("0x14")](ci("0x3"),{});const s=e[ci("0x1b")](0,-4),i=function(t,e,n){let o=Array[ci("0x12")](t)[ci("0x3d")]((t=>{return e=t,(o=n)[ci("0x30")](e.parent,ci("0x39"))&&!o[ci("0x1a")](e);var e,o}));o=o.filter((t=>!t.is("element",ci("0x39"))||t[ci("0x2a")]("listType")!=e));const r=new Set;for(const t of o)t.is("element",ci("0x39"))?r[ci("0x1e")](ui(t)):r.add(t);return Array[ci("0x12")](r)}(o[ci("0x22")](),s,t.model[ci("0x25")]);t[ci("0x27")].change((()=>{for(const t of i)n[ci("0x1")](t,{commandName:e,commandParams:[{forceValue:!r[ci("0x4")]}],formatGroupId:ci("0xd")},di(t))}))}}function s(e){return()=>{const o=function(t){const e=(t=Array.from(t))[ci("0xe")]((t=>"listItem"!=t[ci("0xf")]));return e>-1&&(t=t.slice(0,e)),t}(t[ci("0x27")][ci("0x19")][ci("0x11")][ci("0x22")]()),r=t[ci("0x27")][ci("0x32")](t[ci("0x27")][ci("0x29")](o[0],ci("0x7")),t[ci("0x27")].createPositionAt(o[o[ci("0x3c")]-1],ci("0x37")));t[ci("0x27")].change((()=>{n[ci("0x1")](r,{commandName:e,commandParams:[],formatGroupId:ci("0x33")},function(t){const e=new Set;for(const n of t){let t=n[ci("0x28")];for(;t&&t[ci("0x2a")]("listIndent")>n[ci("0x2a")](ci("0x33"));)e[ci("0x1e")](t),t=t[ci("0x28")]}return Array.from(e)}(o))}))}}n[ci("0xa")](ci("0x2d"),r(ci("0x2d"))),n.enableCommand(ci("0x36"),r("bulletedList")),o&&n.enableCommand(ci("0x2f"),r(ci("0x2f"))),n.enableCommand(ci("0x2c"),s("indentList")),n[ci("0xa")](ci("0x18"),s(ci("0x18"))),o&&n[ci("0xa")](ci("0x15"),(()=>{const e=t[ci("0x2")][ci("0x3e")](ci("0x15")),o=Array[ci("0x12")](e._selectedElements);o.filter((t=>t[ci("0x2a")](ci("0xc"))!=e.value)),t[ci("0x27")][ci("0x17")]((()=>{for(const t of o)n[ci("0x1")](t,{commandName:ci("0x15"),commandParams:[{forceValue:!e.value}]})}))})),n._descriptionFactory[ci("0x2b")](ci("0x39"),(t=>Yo(e,ci("0x1f"),t))),n[ci("0x0")][ci("0x26")]((t=>{const{data:n}=t;if(n){if("numberedList"==n.commandName||ci("0x36")==n[ci("0x1c")]||ci("0x2f")==n[ci("0x1c")])switch(n[ci("0x1c")][ci("0x20")](ci("0x3a"),"")){case ci("0x23"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case ci("0x35"):return o(Yo(e,ci("0x2e")));case ci("0x1d"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(ci("0x2c")==n[ci("0x1c")])return{type:ci("0xb"),content:Yo(e,"*Indent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(ci("0x18")==n[ci("0x1c")])return{type:ci("0xb"),content:Yo(e,ci("0x24"),Yo(e,ci("0x1f")))};if(ci("0x15")==n[ci("0x1c")])return n.commandParams[0].forceValue?{type:ci("0xb"),content:Yo(e,"*Check item*")}:{type:"format",content:Yo(e,ci("0x38"))}}function o(t){return{type:"format",content:Yo(e,ci("0x9"),t)}}}))}}function ui(t){const e=t[ci("0x2a")](ci("0x33"));if(0==e)return t;let n=t;for(;t[ci("0x34")]&&t[ci("0x34")].is(ci("0x16"),ci("0x39"));){const o=t[ci("0x34")][ci("0x2a")](ci("0x33"));if(o==e)n=t[ci("0x34")];else if(o<e)break;t=t[ci("0x34")]}return n}function di(t){const e=[];if(t.is(ci("0x16"),ci("0x39"))&&t.getAttribute("listIndent")>0){let n=t[ci("0x28")];for(;n&&ci("0x39")==n[ci("0xf")]&&n[ci("0x2a")](ci("0x33"))==t[ci("0x2a")](ci("0x33"));)e[ci("0x10")](n),n=n.nextSibling}return e}const gi=["length","handleListStyleCommand","locale","*Format:* set start index to %0","createPositionAt","plugins","from","ELEMENT_","config","ListUtils","_getSuggestionBlocks","replaceAll","markMultiRangeBlockFormat","editor","list.properties","TrackChangesEditing","*Format:* set order to regular","*Format:* set order to reversed","listType","_getTranslationKeyForListStyle","map","enableCommand","format","bind","getListTypeFromListStyleType","getAttribute","getSelectedBlocks","reversed","type","handleDescriptions","listStart","model","handleListReversedCommand","document","getSiblingNodes","commandParams","handleListStartCommand","listStyle","toUpperCase","numbered","element","startIndex","registerDescriptionCallback","ListPropertiesEditing","listReversed","createRange","before","get","listItem","selection","*Change to:* %0","_descriptionFactory"];var mi,fi;mi=gi,fi=144,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{afterInit(){if(!this[hi("0x19")].plugins.has(hi("0x3")))return;const t=this[hi("0x19")][hi("0x14")].get(hi("0x1a")),e=this[hi("0x19")].plugins.get(hi("0x1b"));t.styles&&e[hi("0x21")](hi("0x31"),this[hi("0xd")][hi("0x23")](this)),t[hi("0x27")]&&e[hi("0x21")]("listReversed",this[hi("0x2c")][hi("0x23")](this)),t.startIndex&&e[hi("0x21")]("listStart",this[hi("0x30")].bind(this)),e[hi("0xb")][hi("0x2")](this[hi("0x29")][hi("0x23")](this))}[hi("0xd")](t,e){const n=this[hi("0x19")][hi("0x11")].get(hi("0x1b")),o=this[hi("0x16")]((t=>t.hasAttribute(hi("0x1e"))));o.length<1||this.editor[hi("0x2b")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e){const n=this[hi("0x19")][hi("0x11")][hi("0x7")](hi("0x1b")),o=this[hi("0x16")]((t=>t.is(hi("0x0"),"listItem")&&"numbered"===t[hi("0x25")](hi("0x1e"))));if(o.length<1)return;const r=o[hi("0x20")]((t=>this.editor.model[hi("0x5")](this[hi("0x19")][hi("0x2b")][hi("0x10")](t,hi("0x6")),this[hi("0x19")].model.createPositionAt(t,0))));this[hi("0x19")][hi("0x2b")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:"listReversed",commandParams:[{reversed:e[hi("0x27")]}],formatGroupId:hi("0x4")})}))}[hi("0x30")](t,e){const n=this[hi("0x19")][hi("0x11")].get(hi("0x1b")),o=this[hi("0x16")]((t=>t.is("element",hi("0x8"))&&hi("0x33")===t.getAttribute(hi("0x1e"))));if(o[hi("0xc")]<1)return;const r=o.map((t=>this.editor.model[hi("0x5")](this[hi("0x19")].model[hi("0x10")](t,hi("0x6")),this[hi("0x19")][hi("0x2b")][hi("0x10")](t,0))));this[hi("0x19")][hi("0x2b")].change((()=>{n[hi("0x18")](r,{commandName:"listStart",commandParams:[{startIndex:e[hi("0x1")]}],formatGroupId:hi("0x2a")})}))}[hi("0x29")](t){const e=this.editor[hi("0xe")],{data:n}=t;if(!n)return;let o,r;switch(n.commandName){case"listStyle":o=hi("0xa"),r={type:hi("0x22"),content:Yo(e,o,Yo(e,this[hi("0x1f")](n[hi("0x2f")][0][hi("0x28")])))};break;case hi("0x4"):o=n[hi("0x2f")][0].reversed?hi("0x1d"):hi("0x1c"),r={type:"format",content:Yo(e,o)};break;case hi("0x2a"):o=hi("0xf"),r={type:hi("0x22"),content:Yo(e,o,n[hi("0x2f")][0].startIndex)}}return r}[hi("0x16")](t){const e=this[hi("0x19")][hi("0x11")][hi("0x7")](hi("0x15"));let n=Array[hi("0x12")](this[hi("0x19")][hi("0x2b")][hi("0x2d")][hi("0x9")][hi("0x26")]()).filter(t).map((t=>{const n=this[hi("0x19")][hi("0x2b")][hi("0x10")](t,0);return[...e.getSiblingNodes(n,"backward"),...e[hi("0x2e")](n,"forward")]})).flat();return n=[...new Set(n)],n}[hi("0x1f")](t){return hi("0x13")+this[hi("0x19")].plugins[hi("0x7")](hi("0x15"))[hi("0x24")](t).toUpperCase()+"_LIST_"+t[hi("0x32")]()[hi("0x17")]("-","_")}}const bi=["createEmptyElement","TrackChangesEditing","media","MediaEmbedEditing","mediaEmbed","high","dataDowncast","plugins","div","has","get","afterInit","options","for","showSuggestionHighlights","attribute:url:media","ELEMENT_MEDIA","locale","_descriptionFactory"];var Ei,_i;Ei=bi,_i=381,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xa")](){const t=this.editor;if(!t[Ti("0x6")][Ti("0x8")](Ti("0x2")))return;const e=t[Ti("0x6")][Ti("0x9")](Ti("0x0")),n=t[Ti("0x10")];e.enableCommand(Ti("0x3")),e[Ti("0x11")].registerElementLabel("media",(t=>Yo(n,Ti("0xf"),t))),t.conversion[Ti("0xc")](Ti("0x5")).elementToElement({model:Ti("0x1"),view:(t,{writer:e,options:n})=>{if(n[Ti("0xd")])return e[Ti("0x12")](Ti("0x7"))},converterPriority:Ti("0x4")}),t.data.downcastDispatcher.on(Ti("0xe"),((t,e,n)=>{n[Ti("0xb")].showSuggestionHighlights&&t.stop()}),{priority:Ti("0x4")})}}const yi=["plugins","has","TrackChangesEditing","get","enableCommand","editor","mention","MentionEditing"];var ki,Ai;ki=yi,Ai=203,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x2")];t[vi("0x5")][vi("0x6")](vi("0x4"))&&t[vi("0x5")][vi("0x0")](vi("0x7"))[vi("0x1")](vi("0x3"))}}const Ii=["registerElementLabel","get","TrackChangesEditing","ELEMENT_PAGE_BREAK","editor","_descriptionFactory","plugins","afterInit","pageBreak","locale"];var Si,Li;Si=Ii,Li=285,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Mi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[Mi("0x2")](){const t=this[Mi("0x9")];if(!t.plugins.has("PageBreakEditing"))return;t[Mi("0x1")][Mi("0x6")](Mi("0x7")).enableCommand(Mi("0x3"));const e=t[Mi("0x1")].get("TrackChangesEditing"),n=t[Mi("0x4")];e[Mi("0x0")][Mi("0x5")]("pageBreak",(t=>Yo(n,Mi("0x8"),t)))}}const wi=["selection","highest","getFirstRange","parent","*Change to:* %0","insert","model","$text","markBlockFormat","document","TrackChangesEditing","nodeAfter","ck-suggestion-marker--active","enableCommand","insertParagraph","writer","registerElementLabel","type","start","toViewPosition","has","change","markerName","filter","from","end","paragraph","bindElementToMarker","getSelectedBlocks","ELEMENT_PARAGRAPH","name","isObject","editing","schema","editor","ck-suggestion-marker-split","insertion","_descriptionFactory","consume","isBlock","getItemLabel","checkChild","get","isLimit","isTouching","showSuggestionHighlights","locale","commandName","markerRange","afterInit","format","plugins","registerDescriptionCallback","downcastDispatcher"];var Oi,Di;Oi=wi,Di=456,function(t){for(;--t;)Oi.push(Oi.shift())}(++Di);const Fi=function(t,e){return wi[t-=0]};class Pi extends t.Plugin{[Fi("0x19")](){const t=this[Fi("0xa")];if(!t[Fi("0x1b")][Fi("0x32")]("Paragraph"))return;const e=t[Fi("0x16")],n=t[Fi("0x1b")][Fi("0x12")](Fi("0x28"));n._descriptionFactory[Fi("0x2e")]("paragraph",(t=>Yo(e,Fi("0x5"),t))),n[Fi("0x2b")]("paragraph",((e,o={})=>{const r=t[Fi("0x24")][Fi("0x27")],s=o[Fi("0x1e")]||r[Fi("0x1e")],i=Array[Fi("0x0")](s[Fi("0x4")]())[Fi("0x35")]((t=>{return e=t,(n=this[Fi("0xa")][Fi("0x24")].schema)[Fi("0x11")](e[Fi("0x21")],Fi("0x2"))&&!n[Fi("0x7")](e)&&"paragraph"!=e.name;var e,n}));t.model[Fi("0x33")]((()=>{for(const t of i)n[Fi("0x26")](t,{commandName:Fi("0x2"),commandParams:[],formatGroupId:"blockName"},fr(t))}))})),n[Fi("0xd")][Fi("0x1c")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Fi("0x17")])return{type:Fi("0x1a"),content:Yo(e,Fi("0x22"),Yo(e,Fi("0x5")))}})),n.enableCommand(Fi("0x2c")),t[Fi("0x8")][Fi("0x1d")].on("addMarker:suggestion:insertion",Bi(t),{priority:"highest"}),t.data[Fi("0x1d")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[Fi("0x15")]&&Bi(t,{showActiveMarker:!1})(e,n,o)}),{priority:Fi("0x1f")});const o=n[Fi("0xd")];o.registerDescriptionCallback((n=>{if(Fi("0xc")!==n[Fi("0x2f")])return;const{start:r,end:s}=n[Fi("0x20")]();if(!r.isTouching(s)||!r.nodeAfter)return;const i=t[Fi("0x24")].schema,x=r.nodeAfter;return i[Fi("0xf")](x)&&!i[Fi("0x13")](x)&&i[Fi("0x11")](x,"$text")?{type:Fi("0xc"),content:Yo(e,"*Insert:* %0",o[Fi("0x10")](x,1))}:void 0}))}}function Bi(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Fi("0x1b")][Fi("0x12")](Fi("0x28")),i=o[Fi("0x18")][Fi("0x30")],x=o[Fi("0x18")][Fi("0x1")],a=t[Fi("0x24")][Fi("0x9")];if(!i[Fi("0x14")](x)||!i[Fi("0x29")])return;const c=i[Fi("0x29")];if(a[Fi("0xf")](c)&&!a.isLimit(c)&&a[Fi("0x11")](c,Fi("0x25"))){if(!r.consumable[Fi("0xe")](o[Fi("0x18")],n[Fi("0x6")]))return;const t=r[Fi("0x2d")].createUIElement("span",{class:Fi("0xb")}),i=r.mapper[Fi("0x31")](x);e&&s.activeMarkers.includes(o[Fi("0x34")])&&r[Fi("0x2d")].addClass(Fi("0x2a"),t),r[Fi("0x2d")][Fi("0x23")](i,t),r.mapper[Fi("0x3")](t,o.markerName)}}}const ji=["createRangeOn","get","commandName","format","editor","document","getRanges","markInlineFormat","getItems","getAttributes","selection","_descriptionFactory","removeFormat","registerDescriptionCallback","schema","model","locale","getAttributeProperties","plugins","enableCommand","has","afterInit"];var Ui,Gi;Ui=ji,Gi=162,function(t){for(;--t;)Ui.push(Ui.shift())}(++Gi);const Hi=function(t,e){return ji[t-=0]};class Vi extends t.Plugin{[Hi("0xd")](){const t=this[Hi("0x12")];if(!t.plugins[Hi("0xc")]("RemoveFormatEditing"))return;const e=t[Hi("0xa")][Hi("0xf")]("TrackChangesEditing");e[Hi("0xb")](Hi("0x4"),(n=>{const o=t.model[Hi("0x13")][Hi("0x2")];o.isCollapsed?n():t[Hi("0x7")].change((()=>{const n=Array.from(o[Hi("0x14")]());for(const o of n)for(const n of o[Hi("0x0")]())zi(n,t[Hi("0x7")][Hi("0x6")])&&e[Hi("0x15")](t[Hi("0x7")][Hi("0xe")](n),{commandName:Hi("0x4"),commandParams:[]})}))})),e[Hi("0x3")][Hi("0x5")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[Hi("0x10")])return{type:Hi("0x11"),content:Yo(t[Hi("0x8")],"*Remove all formatting*")}}))}}function zi(t,e){for(const[n]of t[Hi("0x1")]()){const t=e[Hi("0x9")](n);if(t&&t.isFormatting)return!0}return!1}const Wi=["enableCommand","TrackChangesEditing","afterInit","goToPreviousRestrictedEditingException","discardAllSuggestions","has","discardSelectedSuggestions","discardSuggestion","goToNextRestrictedEditingException","plugins","RestrictedEditingModeEditing","get"];var Ki,Xi;Ki=Wi,Xi=160,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{[qi("0xa")](){const t=this.editor;if(!t[qi("0x5")][qi("0x1")](qi("0x6")))return;const e=t.plugins.get(qi("0x9"));e[qi("0x8")](qi("0xb")),e[qi("0x8")](qi("0x4"));const n=t[qi("0x5")][qi("0x7")](qi("0x6"));n[qi("0x8")]("trackChanges"),n[qi("0x8")]("acceptSuggestion"),n[qi("0x8")](qi("0x3")),n[qi("0x8")]("acceptAllSuggestions"),n[qi("0x8")](qi("0x0")),n[qi("0x8")]("acceptSelectedSuggestions"),n[qi("0x8")](qi("0x2"))}}const Qi=["editing","high","insert","markerRange","ck-suggestion-marker--active","model","editor","toViewPosition","addClass","addMarker:suggestion:deletion","registerElementLabel","addMarker:suggestion:insertion","enableCommand","shiftEnter","createPositionBefore","element","mapper","requires","markerName","get","downcastDispatcher","TrackChangesEditing","getItems","addMarker:suggestion","writer","softBreak","locale","test","split","merge","deletion","span","showSuggestionHighlights","init","consumable","bindElementToMarker","includes","ELEMENT_LINE_BREAK"];var Ji,Zi;Ji=Qi,Zi=142,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{static get[Yi("0x1b")](){return[ns.ShiftEnter]}[Yi("0x5")](){const t=this[Yi("0x10")],e=t.plugins[Yi("0x1d")](Yi("0x1f"));e[Yi("0x16")](Yi("0x17")),t[Yi("0xa")][Yi("0x1e")].on(Yi("0x15"),ex(t),{priority:Yi("0xb")}),t[Yi("0xa")][Yi("0x1e")].on(Yi("0x13"),ex(t),{priority:Yi("0xb")}),t.data[Yi("0x1e")].on(Yi("0x21"),((e,n,o)=>{o.options[Yi("0x4")]&&ex(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Yi("0x14")](Yi("0x23"),(e=>Yo(t[Yi("0x24")],Yi("0x9"),e)))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t.plugins[Yi("0x1d")](Yi("0x1f"));if(!r[Yi("0x6")][Yi("0x25")](o.markerRange,n.name))return;const i=t[Yi("0xf")];for(const t of o[Yi("0xd")][Yi("0x20")]()){if(!t.is(Yi("0x19"),"softBreak"))continue;const n=Yi("0x2")==o[Yi("0x1c")].split(":")[1]?Yi("0x1"):Yi("0x0"),x=r[Yi("0x22")].createUIElement(Yi("0x3"),{class:"ck-suggestion-marker-"+n}),a=r[Yi("0x1a")][Yi("0x11")](i[Yi("0x18")](t));e&&s.activeMarkers[Yi("0x8")](o.markerName)&&r[Yi("0x22")][Yi("0x12")](Yi("0xe"),x),r.writer[Yi("0xc")](a,x),r[Yi("0x1a")][Yi("0x7")](x,o.markerName)}}}const nx=["isCollapsed","get","getRanges","_descriptionFactory","markInlineFormat","TrackChangesEditing","registerDescriptionCallback","commandName","format","FORMAT_RESTRICTED_ENABLED","forceValue","enableCommand","change","plugins","model","value","StandardEditingModeEditing","from"];var ox,rx;ox=nx,rx=470,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this.editor,e=t[sx("0xc")],n=t.locale;if(!t.plugins.has(sx("0xe")))return;const o=t[sx("0xb")][sx("0x11")](sx("0x3")),r="restrictedEditingException",s=t.commands[sx("0x11")](r);o[sx("0x9")](r,((t,n={})=>{const i=e.document.selection;if(i[sx("0x10")])return void t(n);const x=void 0!==n[sx("0x8")]?n[sx("0x8")]:!s[sx("0xd")];e[sx("0xa")]((()=>{const t=Array[sx("0xf")](i[sx("0x0")]());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o[sx("0x2")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[sx("0x1")][sx("0x4")]((t=>{const{data:e}=t;if(e&&e[sx("0x5")]==r)return e.commandParams[0][sx("0x8")]?{type:sx("0x6"),content:Yo(n,sx("0x7"))}:{type:"format",content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const xx=["config","*Remove format:* %0","forceValue","getRangesWithClasses","classes","block","modelElements","commandName","style.definitions","includes","createRangeOn","enableCommand","isCollapsed","getRanges","find","from","inline","styleName","format","plugins","TrackChangesEditing","style:","_descriptionFactory","registerDescriptionCallback","style","document","markInlineFormat","getItems","*Format:* %0","selection","name","getAncestors","isBlock","get","Style","markBlockFormat","afterInit","toLowerCase","value","change","element","commandParams","push","model","enabledStyles","getStyleDefinition","commands"];var ax,cx;ax=xx,cx=260,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class ux extends t.Plugin{[lx("0xb")](){const t=this.editor;if(!t[lx("0x29")].has(lx("0x9")))return;const e=t[lx("0x15")][lx("0x8")](lx("0x2e")),n=t.plugins[lx("0x8")](lx("0x2a")),o=t.locale,r=t[lx("0x29")].get("DataSchema"),s=function(t,e=[]){const n={block:[],inline:[]};for(const o of e){const e=[],r=[];for(const n of t.getDefinitionsForView(o.element))n.isBlock?e.push(n.model):r.push(n.model);e.length?n.block.push({...o,modelElements:e,isBlock:!0}):n.inline.push({...o,ghsAttributes:r})}return n}(r,t[lx("0x16")][lx("0x8")](lx("0x1e")));n[lx("0x21")](lx("0x2e"),((o,{styleName:i})=>{const x=t.model[lx("0x0")][lx("0x4")],a=this[lx("0x14")](i,s);if(!a)return;if(!e[lx("0x13")][lx("0x1f")](i))return;if(x[lx("0x22")]&&!a[lx("0x7")])return void o({styleName:i});const c=!e[lx("0xd")][lx("0x1f")](a.name);if(a[lx("0x7")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[lx("0x6")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n.add(o);break}}return n}(x.getSelectedBlocks(),a[lx("0x1c")]);t.model[lx("0xe")]((()=>{for(const t of e)n[lx("0xa")](t,{commandName:lx("0x2e"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:lx("0x2b")+i})}))}else{let e=Array[lx("0x25")](x[lx("0x23")]());if(!c){const n=Array[lx("0x25")](r.getDefinitionsForView(a[lx("0xf")],!1))[0].model,o=[];for(const r of e){const e=this[lx("0x19")](t[lx("0x12")],r,a[lx("0x1a")],n);o[lx("0x11")](...e)}e=o}t.model[lx("0xe")]((()=>{for(const t of e)n[lx("0x1")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[lx("0x2c")][lx("0x2d")]((t=>{const{data:e}=t;if(e&&lx("0x2e")===e[lx("0x1d")])return e.commandParams[0][lx("0x18")]?{type:lx("0x28"),content:Yo(o,lx("0x3"),e[lx("0x10")][0][lx("0x27")][lx("0xc")]())}:{type:lx("0x28"),content:Yo(o,lx("0x17"),e[lx("0x10")][0][lx("0x27")][lx("0xc")]())}}))}getStyleDefinition(t,e){let n=e[lx("0x1b")][lx("0x24")]((e=>e[lx("0x5")]===t));return n||(n=e[lx("0x26")].find((e=>e[lx("0x5")]===t))),n}getRangesWithClasses(t,e,n,o){const r=[];for(const s of e[lx("0x2")]()){const e=s.getAttribute(o);e&&n.every((t=>e[lx("0x1a")][lx("0x1f")](t)))&&r.push(t[lx("0x20")](s))}return r}}const dx=["has","end","filter","nodeBefore","data","addRange","refresh","insertion","colspan","getChangedMarkers","last","fromRange","detach","from","textProxy","minRow","ELEMENT_TABLE_ROW_WITH_TEXT","some","addClass","batch","showSuggestionHighlights","registerDescriptionCallback","model","commands","toLowerCase","element","MIN_SAFE_INTEGER","*Remove:* %0","mapper","findAncestor","root","writer","_setupColumnsRowsFixing","hasAttribute","options","ELEMENT_TABLE_WITH_TEXT","maxColumn","getAttribute","type","length","TableUtils","max","rootName","tablePaste","afterInit","differ","createTableWalker","map","table","_acceptFormatSuggestionCallbackFactory","tableColumn","order","selectTableColumn","nodeAfter","removeTableRow","ELEMENT_TABLE","toViewElement","registerCustomCallback","locale","document","change:data","name","tableRow","isArray","execute","get","item","editor","cell","getSelectionAffectedTableCells","getChildren","values","join","substr","ELEMENT_TABLE_COLUMN","first","setSelection","startsWith","removeClass","discard","getCellLocation","MAX_SAFE_INTEGER","_tableSuggestions","ELEMENT_TABLE_ROW","subType","oldRange","enqueueChange","$graveyard","getItems","registerPostFixer","_suggestionFactory","accept","insertTableRowBelow","isEqual","minColumn","enableCommand","createPositionAt","selection","_getSuggestionCoords","removeTableColumn","above","getRanges","getRowIndexes","tableCell","classes","push","TrackChangesEditing","plugins","change","_descriptionFactory","span","getChanges","insert","registerElementLabel","add","downcastDispatcher","_tablePostFixingSubtypes","*Insert:* %0","markMultiRangeInsertion","createRangeOn","low","rowspan","ELEMENT_TABLE_COLUMN_WITH_TEXT","selectTableRow","start","getFirstRange","_splitMarkerName","position","highest","getColumnIndexes","insertTableColumnRight","min","deletion","_getCoordsForCells"];var gx,mx;gx=dx,mx=498,function(t){for(;--t;)gx.push(gx.shift())}(++mx);const fx=function(t,e){return dx[t-=0]};class hx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[fx("0x64"),"tableColumn"]}[fx("0x52")](){const t=this[fx("0x69")],e=t[fx("0x3c")][fx("0x61")].selection;if(!t[fx("0xb")][fx("0x26")]("TableEditing"))return;const n=t[fx("0x60")],o=t[fx("0xb")][fx("0x67")](fx("0xa")),r=t[fx("0xb")].get(fx("0x4e"));o[fx("0xd")][fx("0x11")]("table",(t=>Yo(n,fx("0x5d"),t))),this[fx("0x46")](),o[fx("0x85")]("insertTable"),o.enableCommand(fx("0x1b")),o[fx("0x85")](fx("0x5a"));for(const n of["insertTableRowAbove",fx("0x82")]){const s=t[fx("0x3d")].get(n);o[fx("0x85")](n,(n=>{t[fx("0x3c")].change((t=>{n();const i=fx("0x4")===s[fx("0x59")],x=r.getSelectionAffectedTableCells(e),a=r.getRowIndexes(x),c=i?a[fx("0x71")]-1:a[fx("0x30")]+1,l=x[0].findAncestor("table"),u=r[fx("0x54")](l,{startRow:c,endRow:c}),d=Array[fx("0x33")](u).map((e=>t.createRangeOn(e[fx("0x6a")])));o[fx("0x16")](d,"tableRow")}))}))}for(const n of["insertTableColumnLeft",fx("0x22")]){const s=t[fx("0x3d")][fx("0x67")](n);o[fx("0x85")](n,(n=>{t[fx("0x3c")][fx("0xc")]((t=>{n();const i="left"===s[fx("0x59")],x=r[fx("0x6b")](e),a=r[fx("0x21")](x),c=i?a[fx("0x71")]-1:a[fx("0x30")]+1,l=x[0][fx("0x43")](fx("0x56")),u=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[fx("0x33")](u).map((e=>t[fx("0x17")](e[fx("0x6a")])));o.markMultiRangeInsertion(d,fx("0x58"))}))}))}for(const n of[fx("0x5c"),fx("0x3")]){const s=n[fx("0x6f")](11),i=s.toLowerCase(),x=i.substr(0,3)+fx("0xe"),a=fx("0x56")+s,c="min"+s,l=fx("0x4f")+s;o[fx("0x85")](n,(()=>{t[fx("0x3c")][fx("0xc")]((t=>{const s=r[fx("0x6b")](e),u=s[0].findAncestor("table");let d;if(fx("0x5c")==n){const t=r[fx("0x6")](s);d={startRow:t[fx("0x71")],endRow:t[fx("0x30")],includeAllSlots:!0}}else{const t=r[fx("0x21")](s);d={startColumn:t[fx("0x71")],endColumn:t.last,includeAllSlots:!0}}const g=r[fx("0x54")](u,d),m=Array[fx("0x33")](g)[fx("0x55")]((({cell:t})=>t)),f=px(m.filter((t=>t.hasAttribute(x)))),h=px(m[fx("0x28")]((t=>!t[fx("0x47")](x)))).map((e=>t[fx("0x17")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&("tableRow"==p[fx("0x7a")]||fx("0x58")==p[fx("0x7a")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[fx("0x17")](n),s=r[fx("0x76")](n),a=n[fx("0x4b")](x)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+a<=d&&p[fx("0x2b")](o)}}}))}))}function s(n){const o=Array[fx("0x33")](e[fx("0x5")]()).map((t=>i.LiveRange[fx("0x31")](t)));t[fx("0x3c")][fx("0xc")]((e=>{const r=e[fx("0x39")];n=n[fx("0x28")]((t=>"$graveyard"!=t.root[fx("0x50")])),e.setSelection(n),t.commands.get(fx("0x5c"))[fx("0x2c")](),t[fx("0x66")](fx("0x5c"),{forceDefaultExecution:!0}),t[fx("0x3c")][fx("0x7c")]((()=>{t[fx("0x3c")][fx("0x7c")](r,(t=>{const e=o[fx("0x28")]((t=>fx("0x7d")!=t[fx("0x44")].rootName));e[fx("0x4d")]>0&&t[fx("0x72")](e);for(const t of o)t[fx("0x32")]()}))}))}))}function a(n){t[fx("0x3c")][fx("0xc")]((o=>{const r=Array[fx("0x33")](e[fx("0x5")]())[fx("0x55")]((t=>i.LiveRange.fromRange(t))),s=[];for(const t of n)for(const e of t[fx("0x7e")]({shallow:!0}))s[fx("0x9")](e);for(const e of s)fx("0x7d")!=e.root[fx("0x50")]&&(o[fx("0x72")](o[fx("0x0")](e,0)),t[fx("0x3d")].get("removeTableColumn")[fx("0x2c")](),t[fx("0x66")](fx("0x3"),{forceDefaultExecution:!0}));const x=r[fx("0x28")]((t=>fx("0x7d")!=t[fx("0x44")][fx("0x50")]));x.length>0&&o.setSelection(x);for(const t of r)t[fx("0x32")]()}))}function c(t,e){return e.every((e=>t[fx("0x37")]((t=>t[fx("0x27")][fx("0x83")](e.start)||e.end[fx("0x83")](t[fx("0x1c")])))))}function l(t,e){return t[fx("0x37")]((t=>e[fx("0x37")]((e=>t[fx("0x27")].isTouching(e.start)))))}t[fx("0x2a")][fx("0x13")].on("addMarker:suggestion",((t,e,n)=>{if(!n[fx("0x48")][fx("0x3a")])return;const o=e[fx("0x68")];if(!o)return;const r=n[fx("0x42")][fx("0x5e")](o);function s(t){return Array[fx("0x65")](t)?t:[t]}r&&fx("0x7")===o[fx("0x63")]&&(0,x.setHighlightHandling)(r,n[fx("0x45")],((t,e,n)=>n[fx("0x38")](s(e[fx("0x8")]),t)),((t,e,n)=>n[fx("0x74")](s(e[fx("0x8")]),t)))}),{priority:fx("0x20")}),o[fx("0xd")].registerDescriptionCallback((t=>{if("insertion"!=t[fx("0x4c")]&&fx("0x24")!=t[fx("0x4c")])return;const e=t.getContainedElement();if(null!=e&&e.is(fx("0x3f"),fx("0x56"))){if(fx("0x2d")==t[fx("0x4c")]){const e=t[fx("0x7e")]()[fx("0x28")]((t=>t.is(fx("0x34"))))[fx("0x55")]((t=>t[fx("0x2a")]));if(e[fx("0x4d")])return{type:"insertion",content:Yo(n,fx("0x15"),Yo(n,fx("0x49"),'"'+e[fx("0x6e")](" ")+'"'))}}if(fx("0x24")==t[fx("0x4c")]){const e=t.getItems()[fx("0x28")]((t=>t.is(fx("0x34"))))[fx("0x55")]((t=>t[fx("0x2a")]));if(e[fx("0x4d")])return{type:"deletion",content:Yo(n,fx("0x41"),Yo(n,fx("0x49"),'"'+e[fx("0x6e")](" ")+'"'))}}}})),o[fx("0xd")][fx("0x3b")]((t=>{if("tableRow"==t.subType){const e=t.getItems()[fx("0x28")]((t=>t.is(fx("0x34"))))[fx("0x55")]((t=>t[fx("0x2a")])),o=this[fx("0x2")](t),r=o.maxRow-o[fx("0x35")]+1;if(fx("0x2d")==t[fx("0x4c")])return e[fx("0x4d")]?{type:fx("0x2d"),content:Yo(n,"*Insert:* %0",Yo(n,fx("0x36"),[r,'"'+e[fx("0x6e")](" ")+'"']))}:{type:fx("0x2d"),content:Yo(n,fx("0x15"),Yo(n,fx("0x79"),r))};if("deletion"==t.type)return e[fx("0x4d")]?{type:fx("0x24"),content:Yo(n,"*Remove:* %0",Yo(n,fx("0x36"),[r,'"'+e[fx("0x6e")](" ")+'"']))}:{type:"deletion",content:Yo(n,fx("0x41"),Yo(n,"ELEMENT_TABLE_ROW",r))}}if(fx("0x58")==t[fx("0x7a")]){const e=t[fx("0x7e")]().filter((t=>t.is(fx("0x34"))))[fx("0x55")]((t=>t[fx("0x2a")])),o=this._getSuggestionCoords(t),r=o[fx("0x4a")]-o[fx("0x84")]+1;if(fx("0x2d")==t[fx("0x4c")])return e[fx("0x4d")]?{type:fx("0x2d"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[fx("0x6e")](" ")+'"']))}:{type:fx("0x2d"),content:Yo(n,fx("0x15"),Yo(n,fx("0x70"),r))};if(fx("0x24")==t.type)return e[fx("0x4d")]?{type:fx("0x24"),content:Yo(n,"*Remove:* %0",Yo(n,fx("0x1a"),[r,'"'+e[fx("0x6e")](" ")+'"']))}:{type:"deletion",content:Yo(n,fx("0x41"),Yo(n,fx("0x70"),r))}}})),o[fx("0x80")][fx("0x5f")](fx("0x2d"),"tableRow","discard",s),o[fx("0x80")][fx("0x5f")](fx("0x24"),"tableRow",fx("0x81"),s),o._suggestionFactory.registerCustomCallback("insertion",fx("0x58"),fx("0x75"),a),o[fx("0x80")].registerCustomCallback(fx("0x24"),fx("0x58"),fx("0x81"),a),o[fx("0x80")][fx("0x5f")](fx("0x2d"),fx("0x58"),"join",c),o[fx("0x80")][fx("0x5f")](fx("0x24"),fx("0x58"),fx("0x6e"),c),o[fx("0x80")].registerCustomCallback("insertion",fx("0x64"),fx("0x6e"),l),o[fx("0x80")][fx("0x5f")](fx("0x24"),fx("0x64"),"join",l)}[fx("0x57")](){const t=this[fx("0x69")],e=t[fx("0x3c")][fx("0x61")][fx("0x1")];return(n,o)=>{t[fx("0x3c")][fx("0xc")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][fx("0x27")][fx("0x29")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][fx("0x1c")][fx("0x5b")]);const c=r.createRangeIn(a);if("$graveyard"==c[fx("0x44")].rootName)return;const l=Array[fx("0x33")](e.getRanges()).map((t=>i.LiveRange.fromRange(t)));r[fx("0x72")](c),t.commands[fx("0x67")](s).refresh(),x[fx("0x9")]({forceDefaultExecution:!0}),t[fx("0x66")](s,...x);const u=l.filter((t=>fx("0x7d")!=t.root.rootName));u[fx("0x4d")]>0&&r[fx("0x72")](u);for(const t of l)t[fx("0x32")]()}))}}[fx("0x25")](t){const e=this[fx("0x69")][fx("0xb")][fx("0x67")](fx("0x4e"));let n=Number[fx("0x77")],o=Number[fx("0x40")],r=Number[fx("0x77")],s=Number[fx("0x40")];for(const i of t){if(fx("0x7d")==i[fx("0x44")][fx("0x50")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[fx("0x47")](fx("0x19"))?i.getAttribute(fx("0x19"))-1:0,c=i[fx("0x47")](fx("0x2e"))?i[fx("0x4b")](fx("0x2e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[fx("0x46")](){const t=this[fx("0x69")],e=t[fx("0xb")].get(fx("0xa")),n=t[fx("0xb")][fx("0x67")]("TableUtils");this[fx("0x78")]=new Set,t[fx("0x3c")][fx("0x61")].on(fx("0x62"),(()=>{const n=Array[fx("0x33")](t[fx("0x3c")][fx("0x61")][fx("0x53")][fx("0x2f")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[fx("0x1e")](t);if("suggestion"!=n)continue;if(null!=o[fx("0x7b")])continue;const i=e.getSuggestion(r);this[fx("0x14")].includes(s)&&this[fx("0x78")][fx("0x12")](i)}}),{priority:fx("0x18")});const o=(t,e)=>{let o=!1;const r=e[fx("0x17")](t),s=t.findAncestor(fx("0x56")),i=n[fx("0x76")](t);for(const e of this._tableSuggestions){const n=e[fx("0x7a")],x=n[fx("0x73")](fx("0x51")),a=n[fx("0x6f")](x?10:5),c=a[fx("0x3e")](),l=c[fx("0x6f")](0,3)+fx("0xe"),u=fx("0x23")+a,d=fx("0x4f")+a;if(!e.isInContent)continue;if(s!=e[fx("0x1d")]()[fx("0x1c")][fx("0x43")](fx("0x56")))continue;if(e.isIntersectingWithRange(r))continue;const g=t[fx("0x47")](l)?t[fx("0x4b")](l)-1:0,m=this[fx("0x2")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[fx("0x2b")](r),o=!0)}return o};t[fx("0x3c")].document[fx("0x7f")]((e=>{let n=!1;for(const r of t[fx("0x3c")][fx("0x61")][fx("0x53")][fx("0xf")]())if(fx("0x10")==r.type)if("tableRow"==r.name)for(const t of r[fx("0x1f")][fx("0x5b")][fx("0x6c")]())n=n||o(t,e);else"tableCell"==r[fx("0x63")]&&(n=n||o(r[fx("0x1f")][fx("0x5b")],e));return n}))}[fx("0x2")](t){return this._getCoordsForCells(t.getRanges()[fx("0x55")]((t=>t[fx("0x1c")].nodeAfter)))}}function px(t){return Array[fx("0x33")](new Set(t)[fx("0x6d")]())}const bx=["registerCustomCallback","rootName","refresh","selection","findAncestor","_areSelectedCellsMergable","_acceptFormatSuggestionCallbackFactory","highest","size","TrackChangesEditing","containsRange","tableCell","getCellLocation","getAncestors","horizontally","type","splitTableCellHorizontally","setSelection","mergeTableCellDown","commandName","enableCommand","push","_tablePostFixingSubtypes","createRangeOn","TableEditing","_suggestionFactory","get","TableUtils","registerDescriptionCallback","filter","mergeTableCellLeft","from","editor","detach","_areMergableCells","plugins","add","isEnabled","getSuggestions","trackChanges","deletion","getSelectionAffectedTableCells","mergeTableCellUp","change","*Split cell:* horizontally","root","forceDefaultExecution","*Merge cells*","value","format","createTableWalker","splitTableCellVertically","*Split cell:* vertically","execute","_isForcedDefaultExecutionBlock","mergeTableCellRight","map","element","accept","$graveyard","afterInit","model","has","low","cell","document","commands","mergeTableCells","return","length","getFirstPosition","markMultiRangeBlockFormat","set:isEnabled","find","formatBlock","_descriptionFactory","insertion","requires"];var Ex,_x;Ex=bx,_x=154,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0x1")](){return[hx]}[Tx("0x3e")](){const t=this.editor,e=t[Tx("0x3f")][Tx("0x43")][Tx("0x5")],n=t.locale;if(!t[Tx("0x25")][Tx("0x40")](Tx("0x1a")))return;const o=t.plugins[Tx("0x1c")](Tx("0xb")),r=t[Tx("0x25")][Tx("0x1c")](Tx("0x1d")),s=t[Tx("0x25")][Tx("0x1c")](hx);s[Tx("0x18")][Tx("0x17")](Tx("0x45")),o[Tx("0x16")](Tx("0x45"),(()=>{const e=r[Tx("0x2b")](t[Tx("0x3f")][Tx("0x43")][Tx("0x5")]);t[Tx("0x3f")][Tx("0x2d")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Tx("0x45"),commandParams:[]},[],Tx("0x45"))}))})),t[Tx("0x44")].get(Tx("0x45")).on(Tx("0x37"),((e,n)=>{t[Tx("0x44")][Tx("0x1c")](Tx("0x29"))[Tx("0x32")]&&(n[Tx("0x47")]>0&&n[n.length-1]&&n[n[Tx("0x47")]-1][Tx("0x30")]||o[Tx("0x38")]||this._areSelectedCellsMergable()||e.stop())}),{priority:Tx("0x9")});for(const e of[Tx("0x2c"),Tx("0x39"),Tx("0x14"),Tx("0x20")]){const n=t[Tx("0x44")].get(e);o[Tx("0x16")](e,(()=>{const e=t[Tx("0x3f")][Tx("0x43")][Tx("0x5")][Tx("0x48")]().getAncestors()[Tx("0x4b")]((t=>t.is("element",Tx("0xd")))),r=n[Tx("0x32")];t[Tx("0x3f")][Tx("0x2d")]((()=>{o[Tx("0x49")]([e,r],{commandName:Tx("0x45"),commandParams:[]},[],Tx("0x45"))}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t[Tx("0x44")][Tx("0x1c")](e);o.enableCommand(e,(()=>{const s=r[Tx("0x2b")](t.model[Tx("0x43")][Tx("0x5")])[0],i=s[Tx("0x6")]("table"),{column:x,row:a}=r[Tx("0xe")](s);let c=[];if(Tx("0x10")==n.direction){const t=r[Tx("0x34")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Tx("0x21")](t)[Tx("0x3a")]((t=>t[Tx("0x42")]))}else{const t=r[Tx("0x34")](i,{column:x,includeAllSlots:!0});c=Array.from(t).map((t=>t[Tx("0x42")]))}t[Tx("0x3f")].change((t=>{o.markBlockFormat(t[Tx("0x19")](s),{commandName:e,commandParams:[]},c,e)}))}))}o[Tx("0x4d")][Tx("0x1e")]((t=>{const{data:e}=t;if(e)return Tx("0x45")==e[Tx("0x15")]?{type:Tx("0x33"),content:Yo(n,Tx("0x31"))}:void 0})),o[Tx("0x4d")][Tx("0x1e")]((t=>{const{data:e}=t;if(e)return Tx("0x35")==e[Tx("0x15")]?{type:Tx("0x33"),content:Yo(n,Tx("0x36"))}:"splitTableCellHorizontally"==e[Tx("0x15")]?{type:Tx("0x33"),content:Yo(n,Tx("0x2e"))}:void 0}));const x=s[Tx("0x8")]();for(const t of[Tx("0x2c"),Tx("0x39"),Tx("0x14"),Tx("0x20")])o[Tx("0x1b")].registerCustomCallback(Tx("0x4c"),t,"accept",x);for(const t of[Tx("0x35"),Tx("0x12")])o[Tx("0x1b")][Tx("0x2")](Tx("0x4c"),t,Tx("0x3c"),x);o[Tx("0x1b")][Tx("0x2")](Tx("0x4c"),"mergeTableCells","accept",(n=>{t[Tx("0x3f")][Tx("0x2d")]((o=>{const r=Array[Tx("0x21")](e.getRanges())[Tx("0x3a")]((t=>i.LiveRange.fromRange(t)));o[Tx("0x13")](n),t.commands.get("mergeTableCells")[Tx("0x4")](),t[Tx("0x37")]("mergeTableCells",{forceDefaultExecution:!0});const s=r[Tx("0x1f")]((t=>Tx("0x3d")!=t[Tx("0x2f")][Tx("0x3")]));s.length>0&&o.setSelection(s);for(const t of r)t[Tx("0x23")]()}))}));for(const e of["mergeTableCellUp",Tx("0x14"),Tx("0x20"),Tx("0x39")]){const n=t[Tx("0x44")].get(e);n.on(Tx("0x4a"),((e,o,r)=>{if(r){const o=t.model.document[Tx("0x5")][Tx("0x48")]()[Tx("0xf")]()[Tx("0x4b")]((t=>t.is(Tx("0x3b"),Tx("0xd"))));this._areMergableCells(n[Tx("0x32")],o)||(e[Tx("0x46")]=!1,e.stop())}}),{priority:Tx("0x41")})}}[Tx("0x7")](){const t=this[Tx("0x22")].commands.get(Tx("0x45")),e=this[Tx("0x22")][Tx("0x25")][Tx("0x1c")](Tx("0x1d"));if(!t[Tx("0x27")])return!1;const n=e[Tx("0x2b")](this[Tx("0x22")][Tx("0x3f")].document[Tx("0x5")]);for(const t of n)for(const e of n)if(t!=e&&!this[Tx("0x24")](t,e))return!1;return!0}[Tx("0x24")](t,e){const n=this[Tx("0x22")].plugins[Tx("0x1c")]("TrackChangesEditing"),o=this.editor[Tx("0x3f")][Tx("0x19")](t),r=this.editor[Tx("0x3f")][Tx("0x19")](e),s=new Set,i=new Set;for(const t of n[Tx("0x28")]())if((Tx("0x0")==t[Tx("0x11")]||Tx("0x2a")==t[Tx("0x11")]||"mergeTableCells"==t.subType)&&t.isInContent)for(const e of t.getRanges())e.containsRange(o,!0)&&s[Tx("0x26")](t.type+":"+t.author.id),e[Tx("0xc")](r,!0)&&i[Tx("0x26")](t[Tx("0x11")]+":"+t.author.id);if(s[Tx("0xa")]!=i[Tx("0xa")])return!1;for(const t of s)if(!i[Tx("0x40")](t))return!1;return!0}}const yx=["data-suggestion","change","getCellLocation","TableUtils","createPositionAfter","registerDescriptionCallback","writer","data","setTableColumnHeader","childCount","markBlockFormat","createPositionBefore","parent","format","FORMAT_HEADER_ROW","ck-suggestion-marker-","plugins","selection","showSuggestionHighlights","commandName","headingColumns","last","ck-suggestion-marker--active","model","_splitMarkerName","FORMAT_HEADER_COLUMN","options","setTableRowHeader","has","table","getAttribute","item","getChild","TableEditing","toViewElement","setAttribute","getSelectionAffectedTableCells","activeMarkers","downcastDispatcher","accept","afterInit","first","start","nodeBefore","addClass","editing","*Format:* %0","index","markerNameToElements","markerName","registerCustomCallback","getColumnIndexes","includes","commands","removeClass","mapper","removeAttribute","createTableWalker","editor","enableCommand","cell","bindElementToMarker","headingRows","FORMAT_REGULAR_COLUMN","nodeAfter","stop","document","forceValue","createRange","markerRange","requires","formatBlock","getSuggestion","commandParams","_suggestionFactory","get","value","unbindElementFromMarkerName","isBefore","locale","_acceptFormatSuggestionCallbackFactory","consumable","TrackChangesEditing","findAncestor","highest"];var kx,Ax;kx=yx,Ax=394,function(t){for(;--t;)kx.push(kx.shift())}(++Ax);const vx=function(t,e){return yx[t-=0]};class Rx extends t.Plugin{static get[vx("0x10")](){return[hx]}[vx("0x47")](){const t=this[vx("0x4")];if(!t.plugins[vx("0x3b")](vx("0x40")))return;const e=t[vx("0x19")],n=t[vx("0x2f")].get(vx("0x1c")),o=t[vx("0x2f")][vx("0x15")](vx("0x22")),r=t.plugins[vx("0x15")](hx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[vx("0x37")](s[vx("0x50")]),c=n[vx("0x12")](a);if(!c[vx("0x26")]||vx("0x27")!=c[vx("0x26")][vx("0x32")])return;if(s[vx("0x3e")])return void r[vx("0xb")]();if(!i[vx("0x1b")].consume(s[vx("0xf")],r.name))return;const l=s[vx("0xf")][vx("0x49")][vx("0xa")],u=s[vx("0xf")].end[vx("0x4a")],d=l[vx("0x2b")][vx("0x2b")],{column:g}=o[vx("0x21")](l),{column:m}=o[vx("0x21")](u);for(let r=g;r<=m;r++){const c=o[vx("0x3")](d,{column:r,includeAllSlots:!1});for(const o of c){const r=o[vx("0x6")],c=i[vx("0x1")][vx("0x41")](r);i[vx("0x25")][vx("0x4b")](vx("0x2e")+x,c),e&&i.writer[vx("0x42")](vx("0x1f"),a,c),i[vx("0x1")][vx("0x7")](c,s.markerName),t&&(n[vx("0x44")][vx("0x53")](s.markerName)?i[vx("0x25")][vx("0x4b")](vx("0x35"),c):i.writer.removeClass(vx("0x35"),c))}}}}n[vx("0x5")](vx("0x3a"),((e,r)=>{const s=o[vx("0x43")](t[vx("0x36")][vx("0xc")].selection),i=o.getRowIndexes(s),x=s[0][vx("0x1d")](vx("0x3c")),a=x[vx("0x3d")](vx("0x8"))||0,c=r&&null!==r[vx("0xd")]?r[vx("0xd")]:!t[vx("0x54")].get("setTableRowHeader")[vx("0x16")],l=c?i[vx("0x34")]:i[vx("0x48")],u=x[vx("0x3f")](l);let d;if(c){const e=x[vx("0x3f")](a);if(u[vx("0x4e")]<e[vx("0x4e")])return;d=t[vx("0x36")][vx("0xe")](t[vx("0x36")].createPositionBefore(e.getChild(0)),t[vx("0x36")][vx("0x23")](u[vx("0x3f")](u[vx("0x28")]-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t.model.createRange(t[vx("0x36")].createPositionBefore(u[vx("0x3f")](0)),t.model[vx("0x23")](e.getChild(e.childCount-1)))}t.model[vx("0x20")]((()=>{n[vx("0x29")](d,{commandName:vx("0x3a"),commandParams:[{forceValue:c}]},[],vx("0x3a"))}))})),n.enableCommand(vx("0x27"),((e,o)=>{const r=t[vx("0x2f")][vx("0x15")]("TableUtils"),s=r[vx("0x43")](t.model[vx("0xc")][vx("0x30")]),i=r[vx("0x52")](s),x=s[0][vx("0x1d")](vx("0x3c")),a=x.getAttribute(vx("0x33"))||0,c=o&&null!==o[vx("0xd")]?o[vx("0xd")]:!t[vx("0x54")][vx("0x15")](vx("0x27"))[vx("0x16")];let l;const u=x.getChild(0),d=c?i[vx("0x34")]:i[vx("0x48")],g=r[vx("0x3")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array.from(g)[0][vx("0x6")];if(c){const e=u[vx("0x3f")](a);if(m[vx("0x18")](e))return;l=t[vx("0x36")].createRange(t[vx("0x36")].createPositionBefore(e),t[vx("0x36")][vx("0x23")](m))}else{const e=u[vx("0x3f")](a-1);if(!e)return;l=t[vx("0x36")][vx("0xe")](t[vx("0x36")][vx("0x2a")](m),t[vx("0x36")][vx("0x23")](e))}t.model.change((()=>{n[vx("0x29")](l,{commandName:vx("0x27"),commandParams:[{forceValue:c}]},[],vx("0x27"))}))})),t[vx("0x4c")][vx("0x45")].on("addMarker:suggestion",s(),{priority:vx("0x1e")}),t[vx("0x26")][vx("0x45")].on("addMarker:suggestion",((t,e,n)=>{n[vx("0x39")][vx("0x31")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[vx("0x4c")][vx("0x45")].on("removeMarker:suggestion",((t,e,o)=>{const{type:r,id:s}=n._splitMarkerName(e.markerName),i=n.getSuggestion(s);if(!i.data||"setTableColumnHeader"!=i[vx("0x26")][vx("0x32")])return;const x=o.mapper[vx("0x4f")](e[vx("0x50")]);if(x)for(const t of x)o[vx("0x25")][vx("0x0")](vx("0x2e")+r,t),o.writer[vx("0x0")](vx("0x35"),t),o.writer[vx("0x2")](vx("0x1f"),t),o[vx("0x1")][vx("0x17")](t,e[vx("0x50")])}),{priority:vx("0x1e")}),n._descriptionFactory[vx("0x24")]((t=>{const{data:n}=t;if(n){if(vx("0x3a")==n[vx("0x32")]){const t=n[vx("0x13")][0][vx("0xd")];return o(Yo(e,t?vx("0x2d"):"FORMAT_REGULAR_ROW"))}if(vx("0x27")==n[vx("0x32")]){const t=n[vx("0x13")][0][vx("0xd")];return o(Yo(e,vx(t?"0x38":"0x9")))}}function o(t){return{type:vx("0x2c"),content:Yo(e,vx("0x4d"),t)}}}));const i=r[vx("0x1a")]();n[vx("0x14")].registerCustomCallback(vx("0x11"),"setTableRowHeader",vx("0x46"),i),n[vx("0x14")][vx("0x51")](vx("0x11"),vx("0x27"),"accept",i)}}const Ix=["reduce","has","redo","suggestion","findAncestor","deletionRanges","isInContent","tablePaste","differ","deletion","getRanges","documentSelection","clipboardOutput","activeMarkers","insertRows","next","setAttributes","createRange","isEqual","batch","options","columns","remove","change","elementToElement","insertion","_getCoordsForCells","_tablePostFixingSubtypes","markers","set","selection","oldRange","rows","_replaceTableSlotCell","tableCellBorderColor","getColumns","getContainedElement","columnInsertionIndexes","previous","createRangeIn","trackChanges","showSuggestionHighlights","_splitMarkerName","discard","registerPostFixer","isEmpty","tablePasteChainId","fill","plugins","first","tablePasteColumn","push","registerCustomCallback","subType","join","for","rootName","insertContent","ck-suggestion-marker--active","ck-suggestion-marker-insertion","afterInit","view","getItems","endRow","model","every","getMarkers","cell","suggestionLoaded","getChildren","_isForcedDefaultExecutionBlock","markerName","table","root","formatBlock","insert","registerDescriptionCallback","rowInsertionIndexes","removeMarker","get","row","locale","editor","editing","getChangedMarkers","editingDowncast","register","markMultiRangeDeletion","tableCellSuggestion","forceDefaultExecution","getSuggestion","createElement","length","filter","markMultiRangeInsertion","name","getAttributes","document","type","newRange","listenTo","element","from","high","removeColumns","getRange","accept","map","Users","TrackChangesEditing","dataDowncast","createRangeOn","paragraph","getSuggestions","attributes","startsWith","author","commands","low","tablePasteRow","find","position","tablePasteCell","return","updateMarker","createTableWalker","some","tableCellVerticalAlignment","getChild","getAllAdjacentSuggestions","_suggestionFactory","tableCellBackgroundColor","start","nextSibling","getTableIfOnlyTableInContent","suggestion:formatBlock:tablePasteCell","cells","*Replace table cells*","content","getShiftedBy","tableCellBorderStyle","includes","getColumnIndexes","fromEntries","$graveyard","tableCellPadding","add","last","TableClipboard","tableCell","unwrap","suggestion-td","insertColumns","tableCellBorderWidth","createPositionBefore","_createdBatches","conversion","getRows","getRowIndexes","hasSuggestion","requires","columnInsertionRanges","value","end","markerAttributes"];var Sx,Lx;Sx=Ix,Lx=409,function(t){for(;--t;)Sx.push(Sx.shift())}(++Lx);const Mx=function(t,e){return Ix[t-=0]},Nx=[Mx("0x4a"),Mx("0x78"),Mx("0x3d"),"tableCellHorizontalAlignment",Mx("0x30"),Mx("0x34"),Mx("0x42")],wx=Object[Mx("0x40")](Nx[Mx("0x1c")]((t=>[t,null])));class Ox extends t.Plugin{static get[Mx("0x51")](){return[hx]}[Mx("0x92")](){const t=this[Mx("0x3")];if(!t[Mx("0x86")].has(Mx("0x45")))return;const n=t.plugins[Mx("0x0")](Mx("0x1e")),o=t.plugins.get("TableUtils"),r=t.plugins[Mx("0x0")](hx),s=t[Mx("0x86")][Mx("0x0")](Mx("0x45"));r[Mx("0x71")].push(Mx("0x28"),Mx("0x88")),t[Mx("0x96")].schema[Mx("0x7")]("tableCellSuggestion",{allowIn:Mx("0x46"),allowContentOf:Mx("0x46"),isLimit:!0}),t[Mx("0x4d")][Mx("0x6e")]({model:"tableCellSuggestion",view:Mx("0x48")});let i=null;t[Mx("0x96")].on(Mx("0x8f"),((r,x)=>{const[a,c]=x,l=x[x[Mx("0xd")]-1];l&&l[Mx("0xa")]||n[Mx("0x9c")]||this[Mx("0x3")][Mx("0x26")][Mx("0x0")](Mx("0x7e"))[Mx("0x53")]&&function(t,e,n,o,r){if(e&&!e.is(Mx("0x61")))return!1;const s=r[Mx("0x37")](t,n);if(!s||!Fx(s,null,o))return!1;const i=o.getSelectionAffectedTableCells(n.document[Mx("0x74")]);if(!i[Mx("0xd")])return!1;const x=i[0][Mx("0x5a")]("table"),a=o[Mx("0x4f")](i),c=o[Mx("0x3f")](i),l={startRow:a[Mx("0x87")],endRow:a.last,startColumn:c[Mx("0x87")],endColumn:c[Mx("0x44")]};return 1==i[Mx("0xd")]&&(l[Mx("0x95")]+=o[Mx("0x4e")](s)-1,l.endColumn+=o[Mx("0x79")](s)-1),Fx(x,l,o)}(a,c,t.model,o,s)&&(r.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Mx("0x96")][Mx("0x6d")]((()=>{t[Mx("0x96")][Mx("0x8f")](x[0],x[1],x[2],x[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r.length&&n[Mx("0xf")](r,Mx("0x28"),{tablePasteChainId:o}),s[Mx("0xd")]&&n[Mx("0xf")](s,"tablePasteColumn",{tablePasteChainId:o}),a[Mx("0xd")]&&n[Mx("0xf")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Mx("0xd")]&&n[Mx("0x8")](c,Mx("0x5d"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[Mx("0x1c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Mx("0x2b"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Mx("0x96")][Mx("0x20")](o),i=e[Mx("0x29")]((t=>t[Mx("0x1a")]()[Mx("0x68")](s)));i&&n[Mx("0x89")]([i[Mx("0x10")],r])}n[Mx("0xd")]&&u.setAttribute(Mx("0x55"),Object[Mx("0x40")](n))}i=null})))}),{priority:e.priorities[Mx("0x18")]+10}),t[Mx("0x86")][Mx("0x0")]("TableClipboard").on(Mx("0x77"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t.stop();const s=n[Mx("0x99")],x=o,a=Dx(s),c=Dx(x);t[Mx("0x2c")]=s;let l=null,u=null;if(c||a)if(a&&!c){r[Mx("0x6c")](s[Mx("0x31")](0));for(const t of Array.from(x[Mx("0x9b")]()))r.insert(t,s,"end");const t=i[Mx("0xa3")][Mx("0x3e")](n[Mx("0x1")]),e=i[Mx("0x7b")][Mx("0x3e")](n.column);t||e||(l=r[Mx("0x7d")](s))}else c&&!a&&(u=r[Mx("0x7d")](s));else{const t=r[Mx("0xc")](Mx("0x9")),e=r[Mx("0xc")](Mx("0x9"));r.wrap(r[Mx("0x7d")](s),e),r[Mx("0xa1")](t,s,0);for(const e of Array[Mx("0x17")](x[Mx("0x9b")]()))r.insert(e,t,Mx("0x54"));l=r[Mx("0x20")](t),u=r[Mx("0x20")](e)}const d=Array[Mx("0x17")](x[Mx("0x11")]()).filter((([t])=>Nx[Mx("0x3e")](t)));i[Mx("0x39")][Mx("0x89")]({element:s,attributes:d.length?Object[Mx("0x40")](d):null}),l&&i.insertionRanges[Mx("0x89")](l),u&&i[Mx("0x5b")][Mx("0x89")](u)}),{priority:Mx("0x18")}),o.on(Mx("0x49"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Mx("0x6b")]||1;i[Mx("0x7b")]=new Array(a).fill(x)[Mx("0x1c")](((t,e)=>t+e));for(const{cell:e}of o[Mx("0x2e")](r,{startColumn:x,endColumn:x+a-1}))i[Mx("0x52")].push(t[Mx("0x96")][Mx("0x20")](e))}),{priority:"low"}),o.on(Mx("0x64"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Mx("0x76")]||1;i.rowInsertionIndexes=new Array(a)[Mx("0x85")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Mx("0x89")](t[Mx("0x96")].createRangeOn(e))}),{priority:Mx("0x27")}),n._descriptionFactory[Mx("0xa2")]((e=>{if(e[Mx("0x8b")]&&e[Mx("0x8b")][Mx("0x24")]("tablePaste"))return e.previous?{}:{type:Mx("0x6f"),content:Yo(t[Mx("0x2")],Mx("0x3a"))}}));const x=()=>{};for(const t of[Mx("0x5d"),Mx("0x88"),Mx("0x28"),Mx("0x2b")])n._suggestionFactory[Mx("0x8a")](Mx("0x6f"),t,"join",x),n._suggestionFactory[Mx("0x8a")](Mx("0x5f"),t,Mx("0x8c"),x);n[Mx("0x33")][Mx("0x8a")](Mx("0xa0"),"tablePasteCell",Mx("0x81"),x),n._suggestionFactory[Mx("0x8a")](Mx("0xa0"),"tablePasteCell",Mx("0x1b"),((e,n,o)=>{const r=e.map((t=>t[Mx("0x7a")]())).filter((t=>t)),s=new Map(r[Mx("0x1c")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Mx("0x39")])e&&s[Mx("0x73")](t,e);else if(o&&o[Mx("0x55")])for(const[e,n]of Object.entries(o[Mx("0x55")])){const o=t[Mx("0x96")][Mx("0x72")].get(e),r=o?o[Mx("0x1a")]()[Mx("0x7a")]():null;r&&s[Mx("0x73")](r,n)}t[Mx("0x96")][Mx("0x6d")]((t=>{for(const[e,n]of s)t[Mx("0x66")]({...wx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Mx("0x8a")](e,Mx("0x5d"),o,((r,s,i)=>{t.model[Mx("0x6d")]((t=>{const x=[];for(const t of r){const e=t[Mx("0x35")].nodeAfter;e.is(Mx("0x16"),Mx("0x9"))&&x[Mx("0x89")](e)}n[Mx("0x33")].getSuggestionCallback(e,null,o)(r,s,i);for(const e of x)Mx("0x41")!=e[Mx("0x9f")][Mx("0x8e")]&&t[Mx("0x47")](e)}))}))};a(Mx("0x6f"),Mx("0x1b")),a(Mx("0x6f"),Mx("0x81")),a(Mx("0x5f"),"accept"),a(Mx("0x5f"),Mx("0x81")),n._suggestionFactory[Mx("0x8a")](Mx("0x6f"),Mx("0x28"),Mx("0x81"),(t=>{const e=t[Mx("0x1c")]((t=>t[Mx("0x7a")]())),n=e[0][Mx("0x5a")](Mx("0x9e")),{minRow:s,maxRow:i}=r._getCoordsForCells(e);o.removeRows(n,{at:s,rows:i-s+1})})),n[Mx("0x33")][Mx("0x8a")](Mx("0x6f"),Mx("0x88"),Mx("0x81"),(t=>{const e=t[Mx("0x1c")]((t=>t[Mx("0x7a")]())),n=e[0][Mx("0x5a")](Mx("0x9e")),{minColumn:s,maxColumn:i}=r[Mx("0x70")](e);o[Mx("0x19")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Mx("0x8b")]||!e[Mx("0x8b")][Mx("0x24")]("tablePaste"))return;const o=e.attributes[Mx("0x84")],r=n[Mx("0x22")]().filter((t=>t[Mx("0x5c")]&&t[Mx("0x23")]&&t[Mx("0x23")][Mx("0x84")]==o));r.length&&e[Mx("0x32")]()[Mx("0xd")]!=r.length&&r[Mx("0x56")](((t,e)=>(t[Mx("0x65")]=e,e[Mx("0x7c")]=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n[Mx("0x80")](t[Mx("0x9d")]),r=["ck-suggestion-marker",Mx("0x91")],s=n[Mx("0x63")][Mx("0x3e")](t[Mx("0x9d")]);return s&&r[Mx("0x89")](Mx("0x90")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Mx("0x9a"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:Mx("0x18")}),t.model.document[Mx("0x82")]((()=>{let e=!1;const o=Array.from(t.model[Mx("0x12")].differ[Mx("0x5")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Mx("0x80")](r);if(Mx("0x59")!=o||"deletion"!=i||s[Mx("0x75")])continue;if(!n[Mx("0x50")](x))continue;const a=n[Mx("0xb")](x)[Mx("0x60")](),c=t[Mx("0x86")][Mx("0x0")](Mx("0x1d")).me;for(const t of n[Mx("0x22")]())if(t[Mx("0x5c")]&&t[Mx("0x25")]==c&&Mx("0xa0")==t.type&&Mx("0x2b")==t[Mx("0x8b")]&&t[Mx("0x60")]()[Mx("0x97")]((t=>a[Mx("0x2f")]((e=>e.containsRange(t,!0))))))for(const n of t[Mx("0x32")]())n.isInContent&&(n.discard(),e=!0)}return e})),t.model[Mx("0x12")][Mx("0x82")]((e=>{const o=t[Mx("0x26")].get(Mx("0x58"));if(!o||!o[Mx("0x4c")][Mx("0x57")](e[Mx("0x69")]))return!1;let r=!1;const s=t.plugins[Mx("0x0")](Mx("0x1d")).me,i=t[Mx("0x96")].document[Mx("0x5e")].getChanges(),x=Array.from(t[Mx("0x96")][Mx("0x12")][Mx("0x5e")][Mx("0x5")]())[Mx("0xe")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Mx("0x80")](t);return Mx("0x59")==o&&Mx("0x5d")==r&&i==s.id&&!e[Mx("0x75")]}));for(const t of i){if(Mx("0xa1")!=t[Mx("0x13")]||Mx("0x9")!=t.name||1!=t[Mx("0xd")])continue;const n=e[Mx("0x67")](t.position,t[Mx("0x2a")][Mx("0x3c")](1));if(!x[Mx("0x29")]((({data:t})=>t[Mx("0x14")][Mx("0x68")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Mx("0x2d")](t,{range:n}),r=!0;break}}return r})),t[Mx("0x96")][Mx("0x12")].registerPostFixer((e=>{let o=!1;const r=t[Mx("0x86")][Mx("0x0")](Mx("0x1d")).me,s=n.getSuggestions().filter((t=>t[Mx("0x5c")]&&t[Mx("0x25")]==r)),i=new Set,x=new Set;for(const t of s)if(Mx("0x5d")==t[Mx("0x8b")])for(const e of t[Mx("0x98")]()){const n=e.getRange()[Mx("0x7a")]();if(n)if(n.is(Mx("0x16"),"tableCellSuggestion")&&Dx(n)){t[Mx("0xa4")](e[Mx("0x10")]),i[Mx("0x43")](n),o=!0;const r=n[Mx("0x36")],s=n.previousSibling,a=r&&r.is("element",Mx("0x9")),c=s&&s.is(Mx("0x16"),"tableCellSuggestion");a&&!i.has(r)&&x[Mx("0x43")](r),c&&!i[Mx("0x57")](s)&&x[Mx("0x43")](s)}else n.is(Mx("0x16"),"paragraph")&&n[Mx("0x83")]&&(t[Mx("0xa4")](e[Mx("0x10")]),o=!0)}else if(Mx("0x2b")==t[Mx("0x8b")]){if(!t[Mx("0x23")]||!t[Mx("0x23")][Mx("0x84")])continue;const e=t[Mx("0x23")].markerAttributes;if(e&&Object.keys(e)[Mx("0xd")])continue;const n=t[Mx("0x23")][Mx("0x84")];let r=!0,i=!0;for(const e of s)if(e[Mx("0x8b")]&&e.subType[Mx("0x24")](Mx("0x5d"))){if(!e[Mx("0x23")][Mx("0x84")]){i=!1;break}if(e.id!=t.id&&e[Mx("0x23")].tablePasteChainId==n){r=!1;break}}i&&r&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Mx("0x47")](t);return o})),t[Mx("0x4d")][Mx("0x8d")](Mx("0x6")).markerToHighlight({model:Mx("0x38"),view:l,converterPriority:Mx("0x18")}),t[Mx("0x4d")].for(Mx("0x1f")).markerToHighlight({model:Mx("0x38"),view:(t,e)=>{if(e[Mx("0x6a")][Mx("0x7f")])return l(t,{showActiveMarker:!1})},converterPriority:"high"});const u=t[Mx("0x4")][Mx("0x93")];this[Mx("0x15")](u[Mx("0x12")],Mx("0x62"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[Mx("0x3b")])[Mx("0x94")]())t.is(Mx("0x16"),"suggestion-td")&&n[Mx("0x89")](t);u[Mx("0x6d")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t[Mx("0x4b")](e)),t[Mx("0x6c")](e)}))}))}}function Dx(t){if(t[Mx("0x83")])return!0;const e=t.getChild(0);return e.is(Mx("0x16"),Mx("0x21"))&&e[Mx("0x83")]}function Fx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Mx("0x2e")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const Px=["editor","change","registerCustomCallback","subType","setAttribute","*Format:* resize table","TableColumnResizeEditing","discard","bind","accept","handleResizeTableWidthCommand","commandParams","model","get","locale","selection","_suggestionFactory","data","resizeColumnWidths","plugins","getSuggestionCallback","tableWidth","table","resizeTableWidth","document","getContainedElement","resizeTable","author","formatBlock","_descriptionFactory","TrackChangesEditing","handleSuggestionDescription","afterInit","getAttribute","columnWidths"];var Bx,jx;Bx=Px,jx=208,function(t){for(;--t;)Bx.push(Bx.shift())}(++jx);const Ux=function(t,e){return Px[t-=0]};class Gx extends t.Plugin{[Ux("0x22")](){if(!this[Ux("0x2")][Ux("0x15")].has(Ux("0x8")))return;const t=this[Ux("0x2")].plugins[Ux("0xf")](Ux("0x20"));t.enableCommand(Ux("0x19"),this[Ux("0xc")][Ux("0xa")](this)),t.enableCommand(Ux("0x14"),this[Ux("0xc")][Ux("0xa")](this)),t[Ux("0x12")][Ux("0x4")](Ux("0x1e"),Ux("0x1c"),"accept",t._suggestionFactory.getSuggestionCallback(Ux("0x1e"),null,Ux("0x9"))),t[Ux("0x12")][Ux("0x4")]("formatBlock","resizeTable",Ux("0x9"),t[Ux("0x12")][Ux("0x16")](Ux("0x1e"),null,Ux("0xb"))),t[Ux("0x1f")].registerDescriptionCallback(this[Ux("0x21")][Ux("0xa")](this))}[Ux("0xc")](t,e){const n=this[Ux("0x2")][Ux("0x15")].get("TrackChangesEditing"),o=e[Ux("0x18")]||this[Ux("0x2")][Ux("0xe")][Ux("0x1a")][Ux("0x11")].getSelectedElement();this[Ux("0x2")].model[Ux("0x3")]((t=>{let r=o[Ux("0x0")](Ux("0x17"))||null,s=o[Ux("0x0")]("columnWidths")||null;const i=e[Ux("0x17")]||r,x=e[Ux("0x1")]||s,a=this[Ux("0x2")][Ux("0x15")][Ux("0xf")]("Users").me;for(const t of n.getSuggestions()){const e=t[Ux("0x1b")]();if(Ux("0x1c")===t[Ux("0x5")]&&e===o){t[Ux("0x1d")]!==a&&t[Ux("0x9")](),r=t[Ux("0x13")][Ux("0xd")][0][Ux("0x17")],s=t[Ux("0x13")][Ux("0xd")][0][Ux("0x1")];break}}t[Ux("0x6")](Ux("0x17"),i,o),t.setAttribute(Ux("0x1"),x,o),n.markBlockFormat(o,{commandName:Ux("0x19"),commandParams:[{tableWidth:r,columnWidths:s}],formatGroupId:Ux("0x1c")},[],Ux("0x1c"))}))}[Ux("0x21")](t){const{data:e}=t;if(e&&Ux("0x1c")===e.formatGroupId){const t=Ux("0x7");return{type:"format",content:Yo(this[Ux("0x2")][Ux("0x10")],t)}}}}const Hx=["updateMarker","has","get","Title","nodeBefore","element","start","ELEMENT_TITLE","title-content","schema","locale","end","isTouching","forward","removeMarker","_descriptionFactory","document","plugins","registerPostFixer","TrackChangesEditing","suggestion","newRange","isCollapsed","model","afterInit","from"];var Vx,zx;Vx=Hx,zx=101,function(t){for(;--t;)Vx.push(Vx.shift())}(++zx);const Wx=function(t,e){return Hx[t-=0]};class Kx extends t.Plugin{[Wx("0x1")](){const t=this.editor;if(!t[Wx("0x14")][Wx("0x4")](Wx("0x6")))return;const e=t[Wx("0x14")][Wx("0x5")](Wx("0x16"));e[Wx("0x12")].registerElementLabel(Wx("0xb"),(()=>Yo(t[Wx("0xd")],Wx("0xa")))),t[Wx("0x0")][Wx("0x13")][Wx("0x15")]((n=>{let o=!1;const r=Array[Wx("0x2")](t[Wx("0x0")][Wx("0x13")].differ.getChangedMarkers());for(const{name:s,data:i}of r){const{group:r}=e._splitMarkerName(s);if(Wx("0x17")!==r||!i[Wx("0x18")])continue;const x=i[Wx("0x18")],a=x.end[Wx("0x7")];if(!a||!a.is(Wx("0x8"),Wx("0xb")))continue;if(!x.start[Wx("0xf")](x[Wx("0xe")]))continue;const c=t[Wx("0x0")][Wx("0xc")].getNearestSelectionRange(x[Wx("0xe")],Wx("0x10"));if(c&&c[Wx("0x19")]){const t=n.createRange(x[Wx("0x9")],c[Wx("0x9")]);t.isEqual(x)||(n[Wx("0x3")](s,{range:t}),o=!0)}o||(n[Wx("0x11")](s),o=!0)}return o}))}}const Xx=["plugins","editor","redo","has","get","UndoEditing","TrackChangesEditing","afterInit"];var qx,$x;qx=Xx,$x=243,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Qx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{[Qx("0x4")](){const t=this[Qx("0x6")],e=t[Qx("0x5")][Qx("0x1")](Qx("0x3"));t[Qx("0x5")][Qx("0x0")](Qx("0x2"))&&(e.enableCommand("undo"),e.enableCommand(Qx("0x7")))}}const Zx=["TableCaptionEditing","get","toggleTableCaption","afterInit","TrackChangesEditing","plugins","enableCommand","editor","requires","has"];var Yx,ta;Yx=Zx,ta=353,function(t){for(;--t;)Yx.push(Yx.shift())}(++ta);const ea=function(t,e){return Zx[t-=0]};class na extends t.Plugin{static get[ea("0x5")](){return[hx]}[ea("0x0")](){const t=this[ea("0x4")];t.plugins[ea("0x6")](ea("0x7"))&&t[ea("0x2")][ea("0x8")](ea("0x1"))[ea("0x3")](ea("0x9"))}}const oa=["model","TrackChangesEditing","toUpperCase","getSelectedBlocks","get","listReversed","bind","expandListBlocksToCompleteList","format","filter","plugins","change","reversed","document","_LIST_","hasAttribute","replaceAll","list.properties","isListItemBlock","_getSuggestionBlocks","startIndex","type","listStart","DocumentListPropertiesUtils","editor","handleDescriptions","handleListStyleCommand","push","_getTranslationKeyForListStyle","config","DocumentListPropertiesEditing","listType","from","isFirstBlockOfListItem","has","*Format:* set order to regular","enableCommand","getAttribute","commandName","commandParams","DocumentListUtils","numbered","handleListReversedCommand","length","afterInit","*Format:* set start index to %0","*Format:* set order to reversed","*Change to:* %0","markMultiRangeBlockFormat","listStyle"];var ra,sa;ra=oa,sa=311,function(t){for(;--t;)ra.push(ra.shift())}(++sa);const ia=function(t,e){return oa[t-=0]};class xa extends t.Plugin{[ia("0x21")](){if(!this[ia("0xd")][ia("0x31")][ia("0x17")](ia("0x13")))return;const t=this[ia("0xd")][ia("0x12")].get(ia("0x6")),e=this[ia("0xd")].plugins[ia("0x2b")](ia("0x28"));t.styles&&e.enableCommand(ia("0x26"),this[ia("0xf")][ia("0x2d")](this)),t.reversed&&e[ia("0x19")](ia("0x2c"),this.handleListReversedCommand.bind(this)),t[ia("0x9")]&&e.enableCommand("listStart",this.handleListStartCommand[ia("0x2d")](this)),e._descriptionFactory.registerDescriptionCallback(this[ia("0xe")][ia("0x2d")](this))}[ia("0xf")](t,e){const n=this[ia("0xd")][ia("0x31")][ia("0x2b")](ia("0x28")),o=this[ia("0x8")]((t=>t[ia("0x4")]("listType")));null!==o&&this[ia("0xd")].model[ia("0x0")]((()=>{n[ia("0x25")](o,{commandName:ia("0x26"),commandParams:[{type:e[ia("0xa")]}],formatGroupId:ia("0x26")})}))}[ia("0x1f")](t,e){const n=this[ia("0xd")][ia("0x31")][ia("0x2b")](ia("0x28")),o=this[ia("0xd")].plugins[ia("0x2b")]("DocumentListUtils"),r=this[ia("0x8")]((t=>o[ia("0x7")](t)&&ia("0x1e")===t[ia("0x1a")](ia("0x14"))));null!==r&&this[ia("0xd")][ia("0x27")][ia("0x0")]((()=>{n[ia("0x25")](r,{commandName:"listReversed",commandParams:[{reversed:e[ia("0x1")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e){const n=this[ia("0xd")][ia("0x31")].get(ia("0x28")),o=this.editor[ia("0x31")][ia("0x2b")](ia("0x1d")),r=this[ia("0x8")]((t=>o[ia("0x7")](t)&&ia("0x1e")===t.getAttribute("listType")));null!==r&&this[ia("0xd")][ia("0x27")][ia("0x0")]((()=>{n[ia("0x25")](r,{commandName:ia("0xb"),commandParams:[{startIndex:e[ia("0x9")]}],formatGroupId:"listStart"})}))}[ia("0xe")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,r;switch(n[ia("0x1b")]){case ia("0x26"):o=ia("0x24"),r={type:"format",content:Yo(e,o,Yo(e,this[ia("0x11")](n[ia("0x1c")][0][ia("0xa")])))};break;case ia("0x2c"):o=n[ia("0x1c")][0][ia("0x1")]?ia("0x23"):ia("0x18"),r={type:ia("0x2f"),content:Yo(e,o)};break;case ia("0xb"):o=ia("0x22"),r={type:ia("0x2f"),content:Yo(e,o,n[ia("0x1c")][0][ia("0x9")])}}return r}[ia("0x8")](t){const e=this[ia("0xd")][ia("0x31")][ia("0x2b")]("DocumentListUtils");let n=Array[ia("0x15")](this[ia("0xd")][ia("0x27")][ia("0x2")].selection[ia("0x2a")]())[ia("0x30")](t);if(!n[ia("0x20")])return null;n=e[ia("0x2e")](n);const o=[];for(const t of n)e[ia("0x16")](t)&&o[ia("0x10")](t);return o}[ia("0x11")](t){return"ELEMENT_"+this[ia("0xd")][ia("0x31")][ia("0x2b")](ia("0xc")).getListTypeFromListStyleType(t)[ia("0x29")]()+ia("0x3")+t.toUpperCase()[ia("0x5")]("-","_")}}const aa=["accept","_removeSuggestion","getMultiRangeId","formatBlock:accept","_isForcedDefaultExecutionBlock","isTouching","upcast","deletion:","_addSuggestionMarker","_updateSuggestionData","multi","getCommentThread","howMany","define","getLastMatchingPosition","rejected","getUser","_commentsRepository","isSelectable","isAfter","_registerDefaultCallbacks","isInsideObject","marker-count","execute","forward","batch","name","_descriptionFactory","hasCommentThread","getMarkers","forceDefaultExecution","deletion:join","nodeAfter","mapper","createdAt","change:data","removeClass","every","discardSelectedSuggestions","change","track-changes-suggestion-not-found","deletion","suggestionLoaded","formatGroupId","getItems","isLimit","start","markerToData","unbind","conversion","getCustomProperty","_breakSuggestionMarker","addMarker:suggestion","fromRange","getChangedMarkers","reconvertMarker","locale","toViewElement","markerReady","high","markerNameToElements","discardAllSuggestions","splitPosition","createPositionAfter","containsPosition","_splitMarkerName","formatInline:discard","createSelection","enableCommand","moveTargetPosition","chain","markInsertion","_getExternalAuthor","from","_customCallbacks","before","setTo","resolve","position","isMultiRange","_rangeIsInLocalUserInsertion","_saved","differ","isUndo","isRemovable","_suggestionFactory","createRange","commentThread","isIntersectingWithRange","createRangeIn","newRange","acceptSelectedSuggestions","set","isOwn","editing","dataReady","removed","markerName","stopListening","removeMarkers","activeMarkers","acceptAllSuggestions","targetPosition","track-changes-command-not-found","_editor","_enabledCommands","ck-suggestion-marker-","model","map","config","createPositionBefore","backward","change:_saved","insertion","_findSuggestions","hasSuggestion","then","authoredAt","pluginName","skipNestingCheck","formatBlock:chain","insertion:accept","documentSelection","markMultiRangeInsertion","_trackFormatChanges","root","getRange","getIntersection","formatBlock","@external","deletion:discard","isAtEnd","insertion:chain","delete","markMultiRangeDeletion","data","notReady","next","elementToElement","isCollapsed","_joinSuggestions","track-changes-suggestion-data-mismatch","has","_createSuggestion","type","createElement","ck-suggestion-marker-formatBlock","external:","widget","creator","schema","insertContent","hasComments","filter","sort","isEqual","setSelection","trackChangesCommand","track-changes-adapter-missing-getsuggestion","consume","trackChanges.trackFormatChanges","isAtStart","stop","nodeBefore","applyOperation","markBlockFormat","discardSuggestion","low","acceptSuggestion","multipleBlocks","length","after","suggestionChanged","trackChanges","isLocal","ck-suggestion-marker","error-saving-suggestion-data-suggestion-discarded","_getAuthorFromId","PendingActions","addComment","isInContent","isBefore","formatBlock:","addSuggestionData","isExternal","getFirstRange","splice","data-suggestion","commands","subType","value","normal","collaboration.channelId","range","addMarkerName","includes","fire","isObject","consumable","remove","track-changes-user-not-found","buildSuggestion","markInlineFormat","editingDowncast","addClass","createPositionAt","group","author","containsRange","getChanges","getWalker","setAttribute","update:suggestion","showSuggestionHighlights","open","insertion:discard","writer","_refreshSuggestionsChain","textProxy","containsItem","markDeletion","_addThreadToSuggestion","item","document","get","_handleNewSuggestionMarker","containsRangeInObject","registerPostFixer","detach","suggestionUnloaded","isNextTo","_getSuggestionData","rootName","return","formatInline","listenTo","Users","size","addHighlight","updateMarker","formatInline:join","markers","highest","getRanges","PENDING_ACTION_SUGGESTION","_defaultCallbacks","substr","markerToHighlight","getSuggestionCallback","getSuggestions","getDifference","discard","for","commandName","values","split","formatBlock:discard","CommentsRepository","rethrowUnexpectedError","suggestion","_setSuggestionData","enqueueChange","parent","editor","removeMarker","clear","$marker","fromCharCode","_setSuggestionRange","options","updateSuggestion","toJSON","suggestion:","_model","fetchCommentThread","dataToMarker","formatInline:accept","getNearestSelectionRange","_suggestions","_cutOutSuggestionMarker","ck-suggestion-marker--active","adapter","add","suggestion-type","addRange","some","head","join","insertion:","ready","_joinWithAdjacentSuggestions","getShiftedBy","_suggestionState","getAllAdjacentSuggestions","elementStart","push","containerElement","addMarker","oldRange","end","catch","previous","formatInline:","_adapter","isBlock","formatBlock:join","_checkSuggestionCorrectness","accepted","plugins","getSuggestion","init","$graveyard","attributes","getAttribute","insert","addSuggestion","dataDowncast"];var ca,la;ca=aa,la=445,function(t){for(;--t;)ca.push(ca.shift())}(++la);const ua=function(t,e){return aa[t-=0]};class da extends t.Plugin{static get requires(){return[ua("0x81"),s.Users,t.PendingActions,cr,Cr,Rr,wr,Br,zr,Qr,es,xa,xs,gs,bs,ks,Ss,Os,js,zs,$s,ti,si,li,pi,Ci,Ri,Ni,Pi,Vi,$i,tx,ix,ux,hx,Cx,Rx,na,Ox,Gx,Kx,Jx]}static get[ua("0x133")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[ua("0x129")]((t=>String[ua("0x8b")](t)))[ua("0x9f")]("")}super(t),this[ua("0x119")](ua("0x121"),[]),this.on("change:activeMarkers",((e,n,o,r)=>{this._model[ua("0xe4")]((()=>{for(const e of[...r,...o])this._model[ua("0x71")][ua("0xe")](e)&&t[ua("0x11b")][ua("0xf4")](e)}))})),this[ua("0xd8")]=new rr(this[ua("0x87")][ua("0x128")].schema,this[ua("0x87")][ua("0xf5")]),this[ua("0xaf")]=null,this[ua("0x112")]=new ga(this[ua("0x87")]),this[ua("0x96")]=new Map,this[ua("0xce")]=t[ua("0xb4")][ua("0x60")](ua("0x81")),this[ua("0x126")]=new Set,this[ua("0x91")]=this[ua("0x87")][ua("0x128")],this._suggestionState=new WeakMap,this[ua("0xc1")]=!1,t.config[ua("0xca")](ua("0x20"),!0),this[ua("0x139")]=t[ua("0x12a")][ua("0x60")](ua("0x20")),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,52,50,52,50,54])}[ua("0xb6")](){const t=this[ua("0x87")];t[ua("0xee")][ua("0x7c")](ua("0x4b")).markerToHighlight({model:"suggestion",view:t=>{const{id:e,type:n}=this[ua("0xfe")](t[ua("0x11e")]),o=["ck-suggestion-marker",ua("0x127")+n];let r=3e3;return this[ua("0x121")][ua("0x43")](t[ua("0x11e")])&&(o.push(ua("0x98")),r=3010),ua("0xe6")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[ua("0xee")][ua("0x7c")](ua("0xbc"))[ua("0x9a")]((e=>{e.on(ua("0xf1"),((e,n,o)=>{if(!o[ua("0x8d")][ua("0x55")])return;const r=n[ua("0x5e")];if(!r)return;const s=o[ua("0xde")].toViewElement(r);t.model[ua("0x16")].isObject(r)&&s&&!s[ua("0xef")](ua("0x14"))&&s.is(ua("0xa8"))&&(0,x.toWidget)(s,o[ua("0x58")])}),{priority:ua("0xf8")})})),t[ua("0xee")][ua("0x7c")](ua("0xbc"))[ua("0x77")]({model:ua("0x83"),view:(t,e)=>{if(!e[ua("0x8d")][ua("0x55")])return null;const{type:n}=this[ua("0xfe")](t[ua("0x11e")]);return{classes:["ck-suggestion-marker",ua("0x127")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[ua("0x5e")])return;if(o[ua("0x5e")].is("selection"))return void r[ua("0x46")].consume(o[ua("0x5e")],n[ua("0xd7")]);const s=r[ua("0xde")][ua("0xf6")](o[ua("0x5e")]);if(!o[ua("0x5e")].is("element")||!t[ua("0x128")][ua("0x16")][ua("0xb0")](o.item)||s.getCustomProperty("addHighlight"))return;const{id:i}=this._splitMarkerName(o[ua("0x11e")]);r[ua("0x58")].addClass([ua("0x2f"),"ck-suggestion-marker-formatBlock"],s),r[ua("0x58")][ua("0x53")](ua("0x3b"),i,s),r[ua("0xde")].bindElementToMarker(s,o[ua("0x11e")]),e&&(this[ua("0x121")].includes(o[ua("0x11e")])?r[ua("0x58")][ua("0x4c")](ua("0x98"),s):r[ua("0x58")].removeClass(ua("0x98"),s));for(const e of t[ua("0x128")][ua("0x116")](o[ua("0x5e")])[ua("0xe9")]())r[ua("0x46")][ua("0x1f")](e,n.name);r[ua("0x46")][ua("0x1f")](o.item,n.name)};t.conversion.for(ua("0xbc")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[ua("0x8d")][ua("0x55")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:ua("0x72")})})),t[ua("0xee")].for(ua("0xbc"))[ua("0xec")]({model:ua("0x83"),view:(t,e)=>e[ua("0x8d")][ua("0x55")]?null:{group:ua("0x83"),name:t[ua("0x76")](ua("0x83")[ua("0x2a")]+1)}}),t[ua("0xee")][ua("0x7c")](ua("0xc3"))[ua("0xa")]({view:{name:ua("0x83"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n=ua("0x90")+t[ua("0xb9")](ua("0x9b"))+":"+t[ua("0xb9")]("id");return t[ua("0xb9")]("marker-count")&&(n+=":"+t.getAttribute(ua("0xd3"))),e[ua("0x11")](ua("0x8a"),{"data-name":n})}}),t[ua("0xee")][ua("0x7c")](ua("0xc3"))[ua("0x93")]({view:ua("0x83")}),t[ua("0xee")][ua("0x7c")](ua("0x4b"))[ua("0x9a")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:ua("0xf8")})})),t[ua("0xee")][ua("0x7c")]("editingDowncast").add((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[ua("0xde")][ua("0xf9")](e.markerName);if(o)for(const t of o)t[ua("0xef")](ua("0x6e"))||(n[ua("0x58")][ua("0xe1")](["ck-suggestion-marker",ua("0x12"),ua("0x98")],t),n[ua("0x58")].removeAttribute(ua("0x3b"),t),n.mapper.unbindElementFromMarkerName(t,e[ua("0x11e")]))}),{priority:ua("0xf8")})})),t[ua("0x128")].document[ua("0x63")]((e=>{let n=!1;const o=Array[ua("0x106")](t[ua("0x128")][ua("0x5f")].differ[ua("0xf3")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[ua("0xfe")](x);if(ua("0x83")!==o)continue;const u=this[ua("0x96")].get(l);if(null!=a[ua("0x117")])if(ua("0x6a")==c&&(n=n||ha(a[ua("0x117")],x,e,t[ua("0x128")][ua("0x16")])),a[ua("0x117")][ua("0xb")]||ua("0xb7")==a.newRange[ua("0x13a")][ua("0x68")]||ua("0x0")==c&&!ba(a[ua("0x117")])||ua("0xe6")==c&&(fa(i=a.newRange)||(s=i).start.parent==s[ua("0xab")][ua("0x23")]&&s[ua("0xeb")][ua("0x3")]))e[ua("0x88")](x),n=!0;else{if(!u||!u[ua("0x34")])continue;r[ua("0x9a")](u)}}var s,i;return r[ua("0x6d")]>0&&(n=!!this[ua("0xa2")](r)||n),n})),t.model[ua("0x5f")][ua("0x63")]((e=>{let n=!1;for(const o of t[ua("0x128")][ua("0x5f")].differ[ua("0x51")]()){if("insert"!=o.type)continue;const r=o.position[ua("0xa3")](o[ua("0x2a")]);if(r[ua("0x3")])for(const s of this[ua("0x96")].values()){if(s[ua("0x10c")]||!s[ua("0x34")])continue;if("formatBlock"!=s[ua("0x10")])continue;const i=s.getFirstRange();if(i[ua("0xeb")][ua("0x86")]!=i[ua("0xab")][ua("0x86")]&&i[ua("0xab")][ua("0x1b")](o[ua("0x10b")])){const o=t[ua("0x128")][ua("0x113")](i[ua("0xeb")],r);e.updateMarker(s.getFirstMarker(),{range:o}),n=!0}}}return n})),t[ua("0x128")].markers.on(ua("0x54"),((t,e,n)=>{if(null==n){const{id:t}=this[ua("0xfe")](e.name),n=this[ua("0x96")][ua("0x60")](t);n&&n[ua("0x42")](e.name)}})),t[ua("0x128")][ua("0x5f")].on(ua("0xe0"),(()=>{const e=Array[ua("0x106")](t[ua("0x128")][ua("0x5f")][ua("0x10f")][ua("0xf3")]())[ua("0x19")]((t=>ua("0x83")===this[ua("0xfe")](t[ua("0xd7")])[ua("0x4e")]));if(0===e[ua("0x2a")])return;e[ua("0x1a")](((t,e)=>{const n=t[ua("0x7")][ua("0xaa")],o=e[ua("0x7")][ua("0xaa")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[ua("0xeb")][ua("0x35")](o[ua("0xeb")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[ua("0xfe")](t);if(null===r[ua("0xaa")]){const e=this._handleNewSuggestionMarker(t);o[ua("0x9a")](e)}else{const t=this._suggestions[ua("0x60")](e);null!==r[ua("0x117")]||t[ua("0x34")]?(n.add(t[ua("0x9e")]),o.add(t)):this[ua("0xbe")](t)}}o[ua("0x6d")]>0&&this[ua("0x59")](o);for(const t of n)this[ua("0x44")](ua("0x2c"),t)})),t[ua("0x128")].on(ua("0x24"),((e,n)=>{const o=n[0];if(!this[ua("0x96")][ua("0x6d")])return;if(!o.isDocumentOperation)return;if(o[ua("0xd6")][ua("0x110")]||!o[ua("0xd6")][ua("0x2e")])return;let r,s;switch(o[ua("0x10")]){case ua("0xba"):r=t.model[ua("0x4d")](o[ua("0x10b")]),s=r[ua("0xa3")](o[ua("0xc9")]);break;case ua("0x7f"):r=t.model[ua("0x4d")](o[ua("0xfb")]),s=t[ua("0x128")][ua("0x4d")](o[ua("0x102")]);break;case"move":r=t.model[ua("0x4d")](o[ua("0x123")]),s=r[ua("0xa3")](o[ua("0xc9")]);break;default:return}const i=t[ua("0x128")][ua("0x113")](r,s);t[ua("0x128")][ua("0xe4")]((()=>{for(const{suggestion:t,meta:e}of this[ua("0x12f")](i)){if(t[ua("0x10c")])continue;if(ua("0x6a")==t[ua("0x10")])continue;const n=t[ua("0x7")]&&t[ua("0x7")][ua("0x29")];("formatBlock"!=t[ua("0x10")]||ua("0x7f")==o[ua("0x10")]&&!n)&&(e.containsRangeInObject||"insertion"==t[ua("0x10")]&&e.isOwn||t[ua("0x39")]()[ua("0x50")](i)&&this[ua("0xf0")](t,r,s))}}))}),{priority:"lowest"}),t[ua("0x128")].on("deleteContent",((e,n)=>{const o=n[0],r=n[1];if(r&&r[ua("0xdb")])return;if(this[ua("0xc1")])return;if(!this.trackChangesCommand[ua("0x3e")])return;if(o[ua("0xb")])return;const s=t[ua("0x128")][ua("0x16")],{start:i,end:x}=o[ua("0x39")](),a=i[ua("0xdd")]&&s[ua("0xea")](i[ua("0xdd")])?null:s.getNearestSelectionRange(i,ua("0xd5")),c=x.nodeBefore&&s[ua("0xea")](x.nodeBefore)?null:s[ua("0x95")](x,ua("0x12c")),l=t[ua("0x128")].createRange(a?a.start:i,c?c[ua("0xab")]:x);t[ua("0x128")].change((e=>{this.markDeletion(l);const n=t[ua("0x128")][ua("0x16")][ua("0x95")](l[ua("0xeb")]);o.is(ua("0x137"))?e[ua("0x1c")](n):o[ua("0x109")](n)})),e[ua("0x22")]()}),{priority:e.priorities[ua("0x3f")]+10}),t.model.on(ua("0x17"),((e,n)=>{const o=n[n[ua("0x2a")]-1];o&&o[ua("0xdb")]||this[ua("0xc1")]||this[ua("0x1d")][ua("0x3e")]&&(t[ua("0x128")][ua("0xe4")]((()=>{let o=t[ua("0x128")][ua("0x17")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e[ua("0x69")]=o.clone();const r=o[ua("0xab")][ua("0x23")],s=t.model.schema;r&&s[ua("0xb0")](r)&&!s[ua("0x45")](r)&&(o=t[ua("0x128")].createRange(o[ua("0xeb")],t.model[ua("0x4d")](r,ua("0xab")))),this[ua("0x104")](o)})),e[ua("0x22")]())}),{priority:"high"}),this.trackChangesCommand=new d(t,this[ua("0x126")]),this[ua("0x87")][ua("0x3c")][ua("0x9a")]("trackChanges",this[ua("0x1d")]),this.enableCommand(ua("0x2d"));const o=new p(t,this[ua("0x96")]);t.commands.add("acceptSuggestion",o),this.enableCommand(ua("0x28"));const r=new C(t,this[ua("0x96")]);t[ua("0x3c")][ua("0x9a")]("discardSuggestion",r),this[ua("0x101")](ua("0x26")),t[ua("0x3c")][ua("0x9a")](ua("0x122"),new D(t,o,this[ua("0x96")])),this[ua("0x101")](ua("0x122")),t[ua("0x3c")][ua("0x9a")](ua("0xfa"),new D(t,r,this._suggestions)),this[ua("0x101")](ua("0xfa")),t[ua("0x3c")][ua("0x9a")]("acceptSelectedSuggestions",new U(t,o,this[ua("0x96")])),this[ua("0x101")](ua("0x118")),t[ua("0x3c")][ua("0x9a")](ua("0xe3"),new U(t,r,this[ua("0x96")])),this[ua("0x101")](ua("0xe3"));const s=t[ua("0xb4")][ua("0x60")]("CommentsRepository");this[ua("0x6b")](s,ua("0x33"),((t,{threadId:e})=>{const n=this._suggestions[ua("0x60")](e);n&&n[ua("0x114")]&&1===n.commentThread[ua("0x2a")]&&this[ua("0xc6")](e,{hasComments:!0})}),{priority:ua("0x27")}),this[ua("0x6b")](s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[ua("0x60")](e);n&&n.commentThread&&!n[ua("0x114")][ua("0x2a")]&&this[ua("0xc6")](e,{hasComments:!1})}),{priority:ua("0x27")})}set[ua("0x99")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[ua("0xaf")]=t}get adapter(){return this._adapter}[ua("0x79")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[ua("0x7e")]())t&&!e.isInContent||n[ua("0xa7")](e);return e?n.map((t=>t[ua("0x8f")]())):n}getSuggestion(t){const n=this[ua("0x96")][ua("0x60")](t);if(!n)throw new e.CKEditorError(ua("0xe5"),this);return n}[ua("0x130")](t){return this[ua("0x96")][ua("0xe")](t)}[ua("0x37")](t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t[ua("0x10")].split(":"),i=this[ua("0x96")].get(n)||this[ua("0xf")](r,s,n,e,o);if(this._addThreadToSuggestion(i),this[ua("0xb2")](i,r,s||null,e),i.createdAt=t[ua("0xdf")],o&&o[ua("0x1")]){const{authorName:t,createdAt:e}=o[ua("0x1")],n=this[ua("0x105")](t);i[ua("0x132")]=e,i[ua("0x4f")]=n,i[ua("0x38")]=!0}else i[ua("0x132")]=t[ua("0xdf")];switch(t[ua("0x7")]&&(i.data=t[ua("0x7")]),t[ua("0xb8")]&&(i.attributes=t.attributes),this[ua("0xaf")]&&this[ua("0xaf")][ua("0xbb")]||(i[ua("0x10e")]=!0),this[ua("0xa4")][ua("0x60")](i)){case ua("0x8"):this._suggestionState.set(i,ua("0x11c"));break;case ua("0xf7"):i.isInContent?(this._suggestionState[ua("0x119")](i,ua("0xa1")),this[ua("0x44")](ua("0xe7"),i)):this._suggestionState.set(i,ua("0x11d"))}return i}[ua("0x28")](t){this[ua("0xdb")]((()=>{this[ua("0x87")].model[ua("0xe4")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}[ua("0x26")](t){this[ua("0xdb")]((()=>{this.editor[ua("0x128")][ua("0xe4")]((()=>{for(const e of t[ua("0xa5")]())e[ua("0x7b")]()}))}))}[ua("0x101")](t,n){const o=this[ua("0x87")][ua("0x3c")][ua("0x60")](t);if(!o)throw new e.CKEditorError(ua("0x124"),this,{commandName:t});this[ua("0x126")][ua("0x9a")](o),n&&o.on(ua("0xd4"),((t,e)=>{this.trackChangesCommand[ua("0x3e")]&&(this[ua("0xc1")]||e[ua("0x2a")]>0&&e[e[ua("0x2a")]-1]&&e[e[ua("0x2a")]-1][ua("0xdb")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[ua("0x22")]()))}),{priority:ua("0xf8")})}[ua("0xdb")](t){let n,o;const r=this[ua("0xc1")];this[ua("0xc1")]=!0;try{n=t()}catch(t){o=t}return r||(this[ua("0xc1")]=!1),o&&e.CKEditorError[ua("0x82")](o,this),n}markInsertion(t,n=null,o={}){if(t[ua("0xb")])return null;const r=this[ua("0x87")][ua("0xb4")].get(ua("0x6c")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,ua("0x12e")))if(o[ua("0x11a")]){if(!o[ua("0x66")])return e;if(n==e[ua("0x3d")]){const n=e[ua("0x39")]();return n.start[ua("0x1b")](t[ua("0xab")])?this._setSuggestionRange(e,this[ua("0x91")][ua("0x113")](t.start,n[ua("0xab")])):this[ua("0x8c")](e,this[ua("0x91")][ua("0x113")](n[ua("0xeb")],t[ua("0xab")])),e}}const s=(0,e.uid)(),i=r.id,x=n?"insertion:"+n:ua("0x12e"),a=this[ua("0x84")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[ua("0xc5")](x,s,i,t),a}[ua("0x138")](t,n=ua("0xc7"),o={}){const r=this[ua("0x87")][ua("0xb4")].get("Users").me,s=this[ua("0x112")][ua("0x78")](ua("0x12e"),n,ua("0x9f"));for(const e of this[ua("0x79")]())if(e[ua("0x4f")].id==r.id&&ua("0x12e")==e[ua("0x10")]&&e[ua("0x3d")]==n&&(s(e.getRanges(),t)||s(t,e[ua("0x73")]()))){for(const n of t)e.addRange(n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this[ua("0x12f")](e,"insertion")){if(!o[ua("0x11a")])continue;let e=!0;for(const o of n[ua("0x73")]())for(const n of t)if(!o[ua("0x50")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=ua("0xa0")+n,c=this[ua("0x84")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[ua("0xc5")](a,i,x,e,Zo[ua("0xbf")]());return c}[ua("0x4a")](t,n,o=null,r={}){if(o=o||pa(n),t[ua("0xb")])return;if(!1===this._trackFormatChanges){const e=this[ua("0x112")][ua("0x78")]("formatInline",o,"accept");return void this[ua("0xdb")]((()=>e([t],n,r)))}const s=this[ua("0x87")].plugins[ua("0x60")](ua("0x6c")).me,i=[];for(const{suggestion:e,meta:n}of this[ua("0x12f")](t,ua("0x12e")))n[ua("0x11a")]&&!n[ua("0xd2")]&&i[ua("0xa7")](...e[ua("0x73")]());const x=function(t,e){const n=[];for(const o of e){const e=t[ua("0x13c")](o);e&&n[ua("0xa7")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][ua("0x7a")](t);n[ua("0x3a")](e,1,...o),e+=o[ua("0x2a")]}}return n}(t,i);x.length&&this[ua("0x91")].change((()=>{for(const t of x){const e=this[ua("0x112")][ua("0x78")](ua("0x6a"),o,"accept");this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[ua("0xeb")],a=t.end;for(const{suggestion:e,meta:n}of this[ua("0x12f")](t,"formatInline")){if(!n[ua("0x11a")])continue;if(e[ua("0x3d")]!=o)continue;const r=e[ua("0x39")]();if(r[ua("0x50")](t,!0))return;x=x[ua("0x35")](r[ua("0xeb")])?x:r[ua("0xeb")],a=a.isAfter(r[ua("0xab")])?a:r[ua("0xab")],i?r[ua("0xeb")].isBefore(i[ua("0x39")]().start)?(i[ua("0x120")](),i=e):e[ua("0x120")]():i=e}const c=this[ua("0x91")][ua("0x113")](x,a);if(i)this[ua("0x8c")](i,c);else{const t=(0,e.uid)(),i=s.id;this[ua("0x84")]({id:t,type:ua("0xae")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[ua("0xc5")]("formatInline:"+o,t,i,c)}}}[ua("0x25")](t,n,o=[],r=null,s={}){n[ua("0xe8")]||(n[ua("0xe8")]=n.commandName),n[ua("0x29")]=t.is(ua("0x41")),r=r||pa(n);const i=o.map((t=>Ea(t,this._model))),x=t.is(ua("0x41"))?t:Ea(t,this[ua("0x91")]);if(!1===this[ua("0x139")]){const t=this[ua("0x112")][ua("0x78")](ua("0x0"),r,ua("0xbd"));return void this[ua("0xdb")]((()=>t([x],n,s)))}i[ua("0xa7")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a){const t=this[ua("0x112")][ua("0x78")](ua("0x0"),r,"accept");return void this[ua("0xdb")]((()=>t([x],n,s)))}let c=null,l=x[ua("0xeb")],u=x[ua("0xab")];for(const{suggestion:t,meta:e}of this[ua("0x12f")](x,"formatBlock")){if(!e[ua("0x11a")]||e[ua("0x66")]||e[ua("0x62")]||e[ua("0xd2")])continue;if(t[ua("0x7")].formatGroupId!=n[ua("0xe8")])continue;const o=t[ua("0x39")]();if(t[ua("0x3d")]==r){if(o[ua("0x50")](x,!0))return;l=l.isBefore(o[ua("0xeb")])?l:o[ua("0xeb")],u=u[ua("0xd0")](o[ua("0xab")])?u:o[ua("0xab")],c?o[ua("0xeb")].isBefore(c.getFirstRange()[ua("0xeb")])?(c[ua("0x120")](),c=t):t[ua("0x120")]():c=t}else{const e=x.getIntersection(o);this[ua("0x97")](t,e)}}const d=this[ua("0x87")][ua("0xb4")].get(ua("0x6c")).me,g=(0,e.uid)(),m=d.id;c?this._setSuggestionRange(c,this[ua("0x91")].createRange(l,u)):(this._setSuggestionData({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:m,attributes:s}),this._addSuggestionMarker(ua("0x36")+r,g,m,this._model[ua("0x113")](l,u)))}markMultiRangeBlockFormat(t,n,o=[],r=null,s={}){n[ua("0xe8")]||(n.formatGroupId=n[ua("0x7d")]);const i=t[0];n[ua("0x29")]=i.is(ua("0x41")),r=r||pa(n);const x=o.map((t=>Ea(t,this[ua("0x91")]))),a=i.is(ua("0x41"))?t:t[ua("0x129")]((t=>Ea(t,this[ua("0x91")])));if(!1===this[ua("0x139")]){const t=this[ua("0x112")][ua("0x78")](ua("0x0"),r,ua("0xbd"));return void this[ua("0xdb")]((()=>t(a,n,s)))}x[ua("0xa7")](...a);let c=!0;for(const t of x)if(!this[ua("0x10d")](t)){c=!1;break}if(c){const t=this._suggestionFactory[ua("0x78")](ua("0x0"),r,ua("0xbd"));return void this.forceDefaultExecution((()=>t(a,n,s)))}const l=this.editor[ua("0xb4")][ua("0x60")]("Users").me;for(const t of this[ua("0x79")]()){if(t[ua("0x4f")].id!=l.id)continue;if(ua("0x0")!=t[ua("0x10")]||t[ua("0x7")].formatGroupId!=n[ua("0xe8")])continue;const e=t[ua("0x3d")]==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[ua("0xda")]()){const s=r[ua("0x13b")]();if(o[ua("0x1b")](s)){e?(a.splice(n,1),n--):t[ua("0x88")](r[ua("0xd7")]);break}}}}if(0==a[ua("0x2a")])return;const u=this[ua("0x112")].getSuggestionCallback("formatBlock",r,ua("0x9f"));for(const t of this[ua("0x79")]())if(t.author.id==l.id&&ua("0x0")==t[ua("0x10")]&&t[ua("0x7")].formatGroupId==n[ua("0xe8")]&&t[ua("0x3d")]==r&&(u(t[ua("0x73")](),a)||u(a,t[ua("0x73")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=ua("0x36")+r,f=this[ua("0x84")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this._addSuggestionMarker(m,d,g,t,Zo.getMultiRangeId());return f}[ua("0x5c")](t,n=null,o={}){if(t[ua("0xb")])return null;const r=this.editor[ua("0xb4")][ua("0x60")]("Users").me,s=new i.LiveRange(t[ua("0xeb")],t[ua("0xab")]);for(const{suggestion:t,meta:e}of this[ua("0x12f")](s,"insertion"))if(e[ua("0x11a")]&&!e[ua("0x66")])if(t[ua("0x10c")]){const e=t[ua("0x73")]()[ua("0x19")]((t=>"$graveyard"!=t[ua("0x13a")][ua("0x68")]));if(e[ua("0xe2")]((t=>s[ua("0x50")](t,!0)))&&t[ua("0x7b")](),e[ua("0x9d")]((t=>t.containsRange(s,!0)))){const t=this._suggestionFactory[ua("0x78")](ua("0xe6"),n,ua("0xbd"));return this[ua("0xdb")]((()=>t([s],null,o))),null}}else{const e=s.getIntersection(t.getFirstRange());t._onDiscard([e],null,o)}if(s.detach(),s.isCollapsed||ua("0xb7")==s[ua("0x13a")][ua("0x68")])return null;let x=null,a=s[ua("0xeb")],c=s[ua("0xab")];for(const{suggestion:t,meta:e}of this._findSuggestions(s,ua("0xe6")))if(e[ua("0x11a")])if(t[ua("0x10c")]){let e=!0;for(const n of t.getRanges()){if(n[ua("0x50")](s,!0))return t;s[ua("0x50")](n)||(e=!1)}e&&t[ua("0x7b")]()}else{const e=t[ua("0x39")]();if(e[ua("0x50")](s,!0))return t;a=a[ua("0x35")](e.start)?a:e[ua("0xeb")],c=c[ua("0xd0")](e[ua("0xab")])?c:e[ua("0xab")],x?e[ua("0xeb")][ua("0x35")](x.getFirstRange()[ua("0xeb")])?(x[ua("0x120")](),x=t):t[ua("0x120")]():x=t}if(x)return this[ua("0x8c")](x,this[ua("0x91")][ua("0x113")](a,c)),x;{const t=(0,e.uid)(),s=this[ua("0x91")].createRange(a,c),i=r.id,x=n?ua("0xc4")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,s),l}}[ua("0x6")](t,n="multi",o={}){const r=this.editor[ua("0xb4")][ua("0x60")](ua("0x6c")).me,s=t[ua("0x129")]((t=>new i.LiveRange(t[ua("0xeb")],t.end))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,ua("0x12e")))n.isOwn&&!n[ua("0x66")]&&x[ua("0x9a")](e);for(const e of x)if(e[ua("0x10c")]){const r=e[ua("0x73")]();if((!e[ua("0xb8")]||!e[ua("0xb8")][ua("0x134")])&&r[ua("0xe2")]((t=>s.some((e=>e[ua("0x50")](t,!0)))))&&e.discard(),s.every((t=>r[ua("0x9d")]((e=>e[ua("0x50")](t,!0)))))){const e=this[ua("0x112")][ua("0x78")](ua("0xe6"),n,ua("0xbd"));return this[ua("0xdb")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(s[ua("0x9d")]((e=>e[ua("0x50")](t,!0)))&&e[ua("0x7b")](),s.every((e=>t[ua("0x50")](e,!0)))){const t=this[ua("0x112")].getSuggestionCallback("deletion",n,ua("0xbd"));return this[ua("0xdb")]((()=>t(s,null,o))),null}}const a=this[ua("0x112")][ua("0x78")](ua("0xe6"),n,"join");let c=null;for(const t of this.getSuggestions())if(t.author.id==r.id&&t[ua("0x34")]&&"deletion"==t.type&&t.subType==n&&(a(t[ua("0x73")](),s)||a(s,t[ua("0x73")]())))if(c){if(t[ua("0x114")]&&t[ua("0x114")][ua("0x2a")])continue;for(const e of t[ua("0x73")]())c[ua("0x115")](e)||c[ua("0x9c")](e);t[ua("0x120")]()}else{c=t;for(const e of s)t.isIntersectingWithRange(e)||t[ua("0x9c")](e)}if(c)return c;x[ua("0x89")]();for(const t of s)for(const{suggestion:e,meta:n}of this[ua("0x12f")](t,"deletion"))n[ua("0x11a")]&&x[ua("0x9a")](e);for(const t of x){const e=t[ua("0x73")]();if((!o||!o.skipNestingCheck)&&s[ua("0xe2")]((t=>e.some((e=>e[ua("0x50")](t,!0))))))return t;(!t[ua("0xb8")]||!t[ua("0xb8")][ua("0x134")])&&e.every((t=>s.some((e=>e[ua("0x50")](t,!0)))))&&t[ua("0x7b")]()}const l=(0,e.uid)(),u=r.id,d=ua("0xc4")+n,g=this[ua("0x84")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of s)t[ua("0x64")](),t[ua("0xb")]||"$graveyard"==t.root[ua("0x68")]||this[ua("0xc5")](d,l,u,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[ua("0x91")][ua("0xe4")]((t=>{t[ua("0x6f")](n,{range:e})}))}[ua("0x5d")](t){const e=t.id,n=this[ua("0x87")][ua("0x12a")].get("collaboration.channelId");this[ua("0xce")][ua("0xd9")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e});const o=this[ua("0xce")][ua("0xc8")](e);o[ua("0xed")](ua("0x111")),o[ua("0x111")]=!1,t[ua("0x114")]=o}[ua("0xb2")](t,n,o,r){if(t[ua("0x10")]!=n||t.subType!=o||t[ua("0x15")].id!=r)throw this[ua("0x87")].enableReadOnlyMode(ua("0xd")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[ua("0x97")](t,n){const o=t[ua("0x39")]();if(n[ua("0x1b")](o))t[ua("0x120")]();else if(o[ua("0x50")](n)){const r=this._model[ua("0x4d")](n[ua("0xeb")][ua("0x23")],ua("0xab"));this[ua("0x8c")](t,this[ua("0x91")][ua("0x113")](o[ua("0xeb")],r));const s=(0,e.uid)(),i=t.creator.id,x=t[ua("0x10")]+":"+t.subType;this[ua("0x84")]({id:s,type:x,createdAt:new Date,authorId:i,data:t[ua("0x7")],attributes:t[ua("0xb8")]});const a=this._model[ua("0x4d")](n.end[ua("0x86")],ua("0x2b")),c=this[ua("0x91")][ua("0x113")](a,o[ua("0xab")]);this[ua("0xc5")](x,s,i,c)}else if(o[ua("0xfd")](n[ua("0xeb")])){const e=this[ua("0x91")][ua("0x4d")](n.start[ua("0x23")],"end");this[ua("0x8c")](t,this[ua("0x91")][ua("0x113")](o[ua("0xeb")],e))}else{const e=this._model[ua("0x4d")](n.end.parent,ua("0x2b"));this[ua("0x8c")](t,this[ua("0x91")][ua("0x113")](e,o[ua("0xab")]))}}[ua("0x10d")](t){for(const{suggestion:e,meta:n}of this[ua("0x12f")](t,"insertion")){if(!n[ua("0x11a")])continue;const o=e[ua("0x73")]();for(const e of o)if(!t[ua("0x7a")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[ua("0x87")].plugins[ua("0x60")](ua("0x6c"))[ua("0xcd")](t);if(!n)throw new e.CKEditorError(ua("0x48"),this);return n}[ua("0x105")](t){const e=this[ua("0x87")].plugins.get(ua("0x6c")),n=(0,s.hashObject)(ua("0x13")+t);return e[ua("0xcd")](n)||e.addUser({id:n,name:t})}[ua("0xf")](t,e,n,o,r){const s=this[ua("0x31")](o),i=this._suggestionFactory[ua("0x49")](t,e,n,s,r,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,ua("0xbd"),(()=>{this._updateSuggestionData(n,{state:ua("0xb3")})}),{priority:ua("0xf8")}),this[ua("0x6b")](i,ua("0x7b"),(()=>{this[ua("0xc6")](n,{state:ua("0xcc")})}),{priority:"high"}),this[ua("0x96")][ua("0x119")](n,i),this._suggestionState.set(i,ua("0x8")),i}[ua("0xfe")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[ua("0x2a")]<5?e[2]:e[3],authorId:e[ua("0x2a")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[ua("0xf0")](t,n,o){const r=t[ua("0x39")](),s=r[ua("0xeb")],i=r[ua("0xab")];this[ua("0x8c")](t,this[ua("0x91")][ua("0x113")](s,n));const x=(0,e.uid)(),a=t.creator.id,c=t[ua("0x10")]+(t[ua("0x3d")]?":"+t.subType:"");this[ua("0x84")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[ua("0x7")]}),"formatBlock"==t[ua("0x10")]&&(o=this[ua("0x91")][ua("0x12b")](o.parent)),this[ua("0xc5")](c,x,a,this[ua("0x91")].createRange(o,i))}[ua("0x12f")](t,e=null){const n=[],o=this[ua("0x91")][ua("0x16")],r=this[ua("0x87")][ua("0xb4")].get(ua("0x6c")).me;for(const s of this[ua("0x79")]())if(s[ua("0x34")]&&(!e||s.type==e))for(const e of s[ua("0x73")]()){const i=t[ua("0xeb")][ua("0x1b")](e[ua("0xab")])||t.end[ua("0x1b")](e.start);if(i||t[ua("0x13c")](e)){const x=t.containsRange(e)&&ma(o,e[ua("0xeb")],t),a=e[ua("0x50")](t)&&ma(o,t[ua("0xeb")],e);n[ua("0xa7")]({suggestion:s,meta:{isOwn:r==s.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[ua("0xc5")](t,e,n,o,r=null){this[ua("0x91")][ua("0xe4")]((s=>{let i=ua("0x90")+t+":"+e+":"+n;r&&(i=i+":"+r),s[ua("0xa9")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[ua("0xbe")](t){const e=t[ua("0xad")],n=t.next;t[ua("0xad")]=null,null!=e&&(e[ua("0x9")]=null),t[ua("0x9")]=null,null!=n&&(n[ua("0xad")]=null),ua("0xa1")==this[ua("0xa4")][ua("0x60")](t)&&(this[ua("0xa4")][ua("0x119")](t,"removed"),this.fire(ua("0x65"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this.addSuggestionData(t);if(this[ua("0xaf")]&&this[ua("0xaf")].addSuggestion){const r=this[ua("0x87")][ua("0xb4")][ua("0x60")](ua("0x32")),s=o[ua("0x18")],i=o.subType?o.type+":"+o[ua("0x3d")]:o[ua("0x10")],x=this[ua("0x87")][ua("0xf5")],a=r[ua("0x9a")](Yo(x,ua("0x74"))),c={id:n,type:i,hasComments:s,data:t[ua("0x7")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[ua("0xb8")]};this._adapter[ua("0xbb")](c)[ua("0x131")]((t=>{o[ua("0x10e")]=!0,r[ua("0x47")](a),t&&t[ua("0xdf")]&&(this[ua("0x96")][ua("0x60")](n)[ua("0xdf")]=t.createdAt)}))[ua("0xac")]((t=>{throw(0,e.logWarning)(ua("0x30")),this[ua("0x87")].model[ua("0x85")]({isUndoable:!1},(()=>{o[ua("0x7b")]()})),o[ua("0x11f")](),this[ua("0x96")][ua("0x5")](o.id),this._suggestionState[ua("0x5")](o),t}))}return o}[ua("0xc6")](t,e){const n=this[ua("0x87")][ua("0xb4")][ua("0x60")]("PendingActions"),o=this[ua("0x96")][ua("0x60")](t);if(this[ua("0xaf")]&&this[ua("0xaf")][ua("0x8e")])if(o._saved){const o=n[ua("0x9a")](Yo(this[ua("0x87")][ua("0xf5")],"PENDING_ACTION_SUGGESTION"));this[ua("0xaf")][ua("0x8e")](t,e)[ua("0x131")]((()=>{n.remove(o)}))}else o.on(ua("0x12d"),(()=>{this[ua("0xc6")](t,e)}))}[ua("0x67")](t){if(!this._adapter||!this[ua("0xaf")].getSuggestion)throw new e.CKEditorError(ua("0x1e"),this);return this[ua("0xaf")][ua("0xb5")](t)}[ua("0x61")](t){const{id:e,type:n,subType:o,authorId:r}=this[ua("0xfe")](t),s=this[ua("0x96")][ua("0x60")](e)||this._createSuggestion(n,o,e,r);switch(this._checkSuggestionCorrectness(s,n,o,r),this[ua("0xa4")][ua("0x60")](s)){case"notReady":this._getSuggestionData(e)[ua("0x131")]((t=>{let n=Promise[ua("0x10a")]();t[ua("0x18")]&&(n=this._commentsRepository[ua("0x92")]({channelId:this.editor.config[ua("0x60")](ua("0x40")),threadId:e})),n[ua("0x131")]((()=>{this[ua("0x37")](t)._saved=!0}))})),this[ua("0xa4")][ua("0x119")](s,ua("0xf7"));break;case ua("0x11d"):this[ua("0xc6")](e,{state:ua("0x56")});case ua("0x11c"):this[ua("0xa4")].set(s,ua("0xa1")),this.fire(ua("0xe7"),s);break;case ua("0xa1"):this[ua("0x44")](ua("0x2c"),s)}return s.addMarkerName(t),s}[ua("0x59")](t){const e=Array[ua("0x106")](t)[ua("0x19")]((t=>!t[ua("0x10c")])),n=this[ua("0x79")]({skipNotAttached:!0}).filter((t=>!t[ua("0x10c")])),o=n.filter((e=>!t[ua("0xe")](e))),r=new Map(n.map((t=>[t,this[ua("0x112")][ua("0x78")](t[ua("0x10")],t[ua("0x3d")],ua("0x103"))]))),s=new Map(n[ua("0x129")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[ua("0x2a")];t++)a(e[t],o,0);for(let t=0;t<e[ua("0x2a")];t++){const n=e[t];!x[ua("0xe")](n)&&n[ua("0xad")]&&(n[ua("0xad")][ua("0x9")]===n&&(n.previous[ua("0x9")]=null),n[ua("0xad")]=null),!i[ua("0xe")](n)&&n.next&&(n[ua("0x9")][ua("0xad")]===n&&(n[ua("0x9")][ua("0xad")]=null),n[ua("0x9")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][ua("0x9")]=n[1],n[1].previous=n[0],i.add(n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[ua("0x4f")].id)return null;const n=r[ua("0x60")](t)(t,e,s.get(t),s.get(e));return n&&r[ua("0x60")](e)(t,e,s[ua("0x60")](t),s[ua("0x60")](e))?n[1].commentThread&&n[1][ua("0x114")].length?null:n:null}}[ua("0xa2")](t){const e=Array.from(t),n=this[ua("0x79")]({skipNotAttached:!0}),o=n[ua("0x19")]((e=>!t[ua("0xe")](e))),r=new Map(e.map((t=>[t,this[ua("0x112")][ua("0x78")](t.type,t.subType,ua("0x9f"))]))),s=new Map(n[ua("0x129")]((t=>[t,t[ua("0x73")]()])));for(let t=0;t<e[ua("0x2a")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[ua("0x2a")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[ua("0x2a")];i++){const o=n[i];if(o[ua("0x10")]!==e[ua("0x10")]||o[ua("0x4f")].id!==e[ua("0x4f")].id||o.subType!==e[ua("0x3d")])continue;const x=r.get(e),a=s[ua("0x60")](e),c=s[ua("0x60")](o),l=e[ua("0x114")]&&e[ua("0x114")].length,u=o[ua("0x114")]&&o[ua("0x114")][ua("0x2a")];if(!l&&x(c,a))return t[ua("0xc")](o,e),s[ua("0x5")](e),!0;if(!u&&x(a,c))return t[ua("0xc")](e,o),s[ua("0x5")](o),!0}return!1}}[ua("0xc")](t,e){if(t[ua("0x10c")])for(const n of e[ua("0x73")]())t[ua("0x9c")](n);else{const n=e[ua("0x39")]()[ua("0xab")];this[ua("0x8c")](t,this[ua("0x91")].createRange(t[ua("0x39")]().start,n))}e[ua("0x120")]()}}(0,e.mix)(da,e.EmitterMixin);class ga{constructor(t){this[ua("0x125")]=t,this._model=t[ua("0x128")],this[ua("0x107")]=new Map,this[ua("0x75")]=new Map,this[ua("0xd1")]()}[ua("0x49")](t,e,n,o,r,s){return new Zo(this[ua("0x91")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[ua("0x78")](t,e,"accept")(...n),onDiscard:(...n)=>this[ua("0x78")](t,e,ua("0x7b"))(...n)})}registerCustomCallback(t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[ua("0x119")](r,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[ua("0x107")][ua("0x60")](o)||this[ua("0x75")][ua("0x60")](t+":"+n)}[ua("0xd1")](){const t=()=>{},e=t=>{t[ua("0x1a")](((t,e)=>t[ua("0xeb")][ua("0x35")](e.start)?1:-1)),this._model[ua("0xe4")]((e=>{for(const n of t){let t;t=n[ua("0xab")][ua("0x3")]&&n[ua("0xab")][ua("0x86")]==n.start[ua("0xdd")]?e[ua("0x100")](n[ua("0xeb")].nodeAfter,"on"):e[ua("0x100")](n),this[ua("0x91")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[ua("0x91")][ua("0xe4")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[ua("0x129")]((t=>(fa(t)&&(t=this[ua("0x91")][ua("0x113")](t[ua("0xab")])),t)))[ua("0x19")]((t=>ua("0xb7")!==t[ua("0x13a")][ua("0x68")]));if(s[ua("0x2a")]<1)return;const x=Array[ua("0x106")](this._model[ua("0x5f")].selection.getRanges())[ua("0x129")]((t=>i.LiveRange[ua("0xf2")](t)));n[ua("0x1c")](s);for(const t of this[ua("0x125")][ua("0x3c")][ua("0x3c")]())t.refresh();r[ua("0xa7")]({forceDefaultExecution:!0}),this[ua("0x125")][ua("0xd4")](o,...r);const a=x[ua("0x19")]((t=>"$graveyard"!=t[ua("0x13a")][ua("0x68")]));a[ua("0x2a")]>0&&n.setSelection(a);for(const t of x)t[ua("0x64")]()}))},o=(t,e)=>1==t[ua("0x2a")]&&1==e[ua("0x2a")]&&t[0][ua("0xab")][ua("0x1b")](e[0][ua("0xeb")]),r=(t,e,n,o)=>_a(t,e,n,o,this[ua("0x91")])?[t,e]:_a(e,t,o,n,this._model)?[e,t]:null;this[ua("0x75")].set(ua("0x136"),t),this[ua("0x75")][ua("0x119")](ua("0x57"),e),this[ua("0x75")].set("insertion:join",o),this[ua("0x75")].set(ua("0x4"),r),this._defaultCallbacks[ua("0x119")]("deletion:accept",e),this[ua("0x75")][ua("0x119")](ua("0x2"),t),this._defaultCallbacks[ua("0x119")](ua("0xdc"),o),this._defaultCallbacks[ua("0x119")]("deletion:chain",r),this[ua("0x75")][ua("0x119")](ua("0x94"),n),this[ua("0x75")][ua("0x119")](ua("0xff"),t),this[ua("0x75")][ua("0x119")](ua("0x70"),o),this._defaultCallbacks[ua("0x119")]("formatInline:chain",t),this[ua("0x75")].set(ua("0xc0"),n),this._defaultCallbacks[ua("0x119")](ua("0x80"),t),this[ua("0x75")].set(ua("0xb1"),o),this._defaultCallbacks[ua("0x119")](ua("0x135"),t)}}function ma(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[ua("0x5b")](o))return!1;if(t[ua("0x45")](o)||t[ua("0xea")](o))return!0}}function fa(t){return t[ua("0xab")][ua("0x86")]==t.start[ua("0xdd")]&&t[ua("0xab")][ua("0x21")]}function ha(t,e,n,o){const r=t=>!t[ua("0x5e")].is(ua("0x5a"))&&!o[ua("0x45")](t[ua("0x5e")]),s=t[ua("0xeb")][ua("0xcb")](r),i=t.end[ua("0xcb")](r,{direction:ua("0x12c")});return!(t[ua("0xeb")][ua("0x1b")](s)&&t[ua("0xab")].isEqual(i)||(s[ua("0x35")](i)?n[ua("0x6f")](e,{range:n.createRange(s,i)}):n[ua("0x88")](e),0))}function pa(t){return(0,s.hashObject)(t)}function ba(t){const e=t.start[ua("0xdd")];return e&&e.is("element")}function Ea(t,e){const n=e[ua("0x16")][ua("0x45")](t)||e[ua("0x16")][ua("0xcf")](t);return e[ua("0x113")](e[ua("0x4d")](t,ua("0x108")),n?e[ua("0xfc")](t):e.createPositionAt(t,"end"))}function _a(t,e,n,o,r){if(n.end[ua("0x1b")](o[ua("0xeb")]))return!0;if(t[ua("0x10")]!=e[ua("0x10")])return!1;if(!n[ua("0xab")][ua("0xc2")](o[ua("0xeb")]))return!1;const s=r[ua("0x113")](n[ua("0xab")],o[ua("0xeb")])[ua("0x52")]();for(const t of s)if([ua("0xa6"),"elementEnd"][ua("0x43")](t[ua("0x10")])&&r[ua("0x16")][ua("0xea")](t.item))return!1;return!0}const Ta=["_removePendingAction","_acceptCommand","add","model","PendingActions","view","change:isDirty","listenTo","execute","remove","acceptSuggestion","commentThreadController","_pendingAction","locale","_discardCommand","unbind","_setPendingAction","bind","destroy","isDirty","stopListening","commands","get","discardSuggestion","plugins","_editor","PENDING_ACTION_SUGGESTION"];var Ca,ya;Ca=Ta,ya=438,function(t){for(;--t;)Ca.push(Ca.shift())}(++ya);const ka=function(t,e){return Ta[t-=0]};class Aa{constructor(t,e,n,o){this[ka("0x18")]=e,this[ka("0x1a")]=n,this[ka("0x5")]=o,this[ka("0x13")]=t,this._acceptCommand=t[ka("0xf")].get(ka("0x4")),this[ka("0x8")]=t[ka("0xf")][ka("0x10")](ka("0x11")),this.view[ka("0xb")]("isEnabled").to(this[ka("0x16")]),this[ka("0x6")]=null,n[ka("0xd")]&&this._setPendingAction(),this[ka("0x1")](n,ka("0x4"),(()=>this.acceptSuggestion())),this[ka("0x1")](n,"discardSuggestion",(()=>this[ka("0x11")]())),this.listenTo(n,ka("0x0"),(()=>{n[ka("0xd")]?this[ka("0xa")]():this._removePendingAction()}))}[ka("0x4")](){this[ka("0x16")][ka("0x2")](this.model.id)}[ka("0x11")](){this[ka("0x8")].execute(this[ka("0x18")].id)}[ka("0xc")](){this[ka("0x1a")][ka("0x9")]("isEnabled"),this[ka("0xe")](),this[ka("0x5")][ka("0xc")](),this[ka("0x6")]&&this[ka("0x15")]()}[ka("0xa")](){const t=Yo(this[ka("0x13")][ka("0x7")],ka("0x14"));this[ka("0x6")]=this[ka("0x13")][ka("0x12")][ka("0x10")](ka("0x19"))[ka("0x17")](t)}[ka("0x15")](){this[ka("0x13")].plugins[ka("0x10")](ka("0x19"))[ka("0x3")](this._pendingAction),this._pendingAction=null}}(0,e.mix)(Aa,e.ObservableMixin);const va=["hasDirtyComment","_createCommentThreadInputView","commentThreadInputView","isEnabled","updateComment","fire","commentsListView","locale","set","delegate","disabledSubmit","addComment","isDirty","authoredAt","_model","destroy","commentThread","assign","value","_config","_createCommentViews","isReadOnly","_localUser","descriptionParts","submit","isActive","editor","showInput","focus","editorConfig","removeComment","length","bind","commentInputView"];var Ra,Ia;Ra=va,Ia=377,function(t){for(;--t;)Ra.push(Ra.shift())}(++Ia);const Sa=function(t,e){return va[t-=0]};class La extends r.View{constructor(t,e,n,o){super(t),this[Sa("0x3")]=null,this[Sa("0x21")]=null,this[Sa("0x5")]("isActive",!1),this.set(Sa("0xa"),e[Sa("0xa")]),this.bind(Sa("0xa")).to(e),this[Sa("0x5")](Sa("0x14"),[]),this.set(Sa("0x9"),!1),this[Sa("0x5")](Sa("0x0"),!1),this._model=e,this[Sa("0x13")]=n,this[Sa("0x10")]=o,o.disableComments?this[Sa("0x5")](Sa("0x1c"),1):this[Sa("0x11")]()}focus(){this.element[Sa("0x19")]()}[Sa("0xc")](){this.commentsListView&&this[Sa("0x3")][Sa("0xc")](),this.commentThreadInputView&&this.commentThreadInputView[Sa("0xc")](),super[Sa("0xc")]()}[Sa("0x11")](){const{CommentsListView:t}=this[Sa("0x10")];this[Sa("0x3")]=new t(this.locale,this[Sa("0xb")][Sa("0xd")],Object[Sa("0xe")]({CommentView:this[Sa("0x10")].CommentView},this[Sa("0x10")])),this[Sa("0x3")].delegate("removeComment").to(this),this[Sa("0x3")][Sa("0x6")](Sa("0x1")).to(this),this[Sa("0x3")].bind(Sa("0x16")).to(this),this[Sa("0x5")]("length",this[Sa("0x3")][Sa("0x1c")]+1),this[Sa("0x1d")](Sa("0x1c")).to(this[Sa("0x3")],Sa("0x1c"),(t=>t+1)),this[Sa("0x21")]=this[Sa("0x20")](),this.on(Sa("0x1b"),(()=>this[Sa("0x19")]())),this[Sa("0x1d")]("isDirty").to(this.commentsListView,Sa("0x1f"),this[Sa("0x21")][Sa("0x1e")],Sa("0xf"),((t,e)=>t||!!e))}[Sa("0x20")](){const{CommentThreadInputView:t}=this._config,e=new t(this[Sa("0x4")],this[Sa("0x13")],this._config[Sa("0x1a")]),n=e[Sa("0x1e")];return e.bind(Sa("0x18")).to(this,Sa("0x16"),this._model[Sa("0xd")],Sa("0x12"),n,Sa("0xf"),((t,e,n)=>!!n||t&&!e)),n.on(Sa("0x15"),((t,e)=>{this[Sa("0x2")](Sa("0x8"),e),n[Sa("0x17")].setData("")})),n.on("cancel",(()=>this[Sa("0x19")]())),n[Sa("0x1d")](Sa("0x7")).to(this[Sa("0xb")][Sa("0xd")],"isReadOnly"),e}}const Ma=["map","attributes","acceptButton","div","ck-suggestion__actions","push","getTemplate","commentsListView","content","ck-annotation__actions","title",'"></span>',"isExternal","join","Accept suggestion",'<span class="ck-suggestion-type">',"EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion--disabled-comments","getExternalSuggestionNote","bindTemplate","value","description","_descriptionElement",'<span class="ck-suggestion-color" style="background-color: ',"EXTERNAL_SUGGESTION","locale","execute","ck-annotation__info","formatDateTime","@external","ck-annotation","EXTERNAL_AVATAR","fire","authoredAt","querySelector","ck-annotation__info-time","ck-suggestion--accept","ck-suggestion__main","element","innerHTML","ck-annotation__content-wrapper","ck-suggestion-wrapper","discardButton","_config","render","getUserViewNotificationText","isActive","ck-suggestion__user","innerText","EXTERNAL_IMPORT_WORD_AVATAR","importWord","ck-annotation__main","author","check",'" title="',"</p>",".ck-annotation__content-wrapper","commentThreadInputView","source","disableComments","ck-suggestion__info-name","descriptionParts","set","creator","span","type","name","isEnabled","extendTemplate","bind","ck-annotation__info-name","ck-suggestion-","ck-suggestion-wrapper--active","time","ck-comment__info-time","ck-annotation__user","_model","change:description","_createButton","userView"];var Na,wa;Na=Ma,wa=120,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Oa=function(t,e){return Ma[t-=0]};class Da extends La{constructor(e,n,o,r){super(e,n,o,r),this.set("type",""),this.bind("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[Oa("0x1d")]("description").to(this,Oa("0x15"),this,Oa("0x6"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Fa(e[Oa("0x30")],e.color)+Oa("0xf");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[Oa("0x3e")]=null,this[Oa("0x2a")]=this._createButton(Yo(e,Oa("0x36")),t.icons[Oa("0xd")],Oa("0x4c"),"acceptSuggestion","sw"),this.discardButton=this[Oa("0x26")](Yo(e,"Discard suggestion"),t.icons.cancel,"ck-suggestion--discard","discardSuggestion","sw"),this[Oa("0x27")]=new s.UserView(e,this[Oa("0x24")][Oa("0xc")],this[Oa("0x5")]()),this.userView.extendTemplate({attributes:{class:[Oa("0x7"),Oa("0x23")]}}),this.setTemplate(this[Oa("0x2e")]())}[Oa("0x2e")](){const t=this[Oa("0x3b")],e=[{tag:Oa("0x2b"),attributes:{class:["ck-suggestion__info",Oa("0x43")]},children:[{tag:Oa("0x18"),children:[{text:this.userView[Oa("0x1a")]}],attributes:{class:[Oa("0x14"),Oa("0x1e")]}},{tag:Oa("0x21"),attributes:{datetime:t.to(Oa("0x49")),class:[Oa("0x22"),Oa("0x4b")]},children:[{text:t.to("authoredAt",(t=>this[Oa("0x3")][Oa("0x44")](t)))}]}]},{tag:Oa("0x2b"),attributes:{class:[Oa("0x2c"),Oa("0x31")]},children:[this[Oa("0x2a")],this[Oa("0x2")]]},{tag:"div",attributes:{class:[Oa("0x0")]}}];this[Oa("0x24")][Oa("0x34")]&&e[Oa("0x2d")]({tag:Oa("0x2b"),attributes:{class:["ck-comment__external"]},children:[{text:this[Oa("0x3a")]()}]});const n={tag:"div",attributes:{class:[Oa("0x1"),t.if(Oa("0x6"),Oa("0x20")),t.to(Oa("0x19"),(t=>Oa("0x1f")+t)),this._config[Oa("0x13")]&&Oa("0x39")],"data-suggestion-id":this._model.id,"data-thread-id":this[Oa("0x24")].commentThread.id,"data-author-id":this._model[Oa("0xc")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",Oa("0x46")]},children:[this[Oa("0x27")],{tag:Oa("0x2b"),attributes:{class:[Oa("0x4d"),Oa("0xb")]},children:e}]}]};return this[Oa("0x2f")]&&this[Oa("0x11")]&&n.children[Oa("0x2d")](this[Oa("0x2f")],this.commentThreadInputView),n}[Oa("0x4")](){super[Oa("0x4")](),this[Oa("0x3e")]=this[Oa("0x4e")][Oa("0x4a")](Oa("0x10")),this[Oa("0x3e")][Oa("0x4f")]=this[Oa("0x3d")],this.on(Oa("0x25"),((t,e,n)=>{this[Oa("0x3e")][Oa("0x4f")]=n}))}[Oa("0x26")](t,e,n,o,s){const i=new r.ButtonView(this[Oa("0x41")]);return i[Oa("0x16")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[Oa("0x1c")]({attributes:{class:n}}),i.on(Oa("0x42"),(()=>{this[Oa("0x48")](o,this[Oa("0x24")].id)})),i[Oa("0x1d")](Oa("0x1b")).to(this),i}[Oa("0x3a")](){return Oa("0xa")===this[Oa("0x24")].attributes[Oa("0x45")][Oa("0x12")]?Yo(this[Oa("0x41")],Oa("0x38")):Yo(this[Oa("0x41")],Oa("0x40"))}[Oa("0x5")](){return this[Oa("0x24")][Oa("0x34")]?Oa("0xa")===this._model[Oa("0x29")]["@external"].source?Yo(this[Oa("0x41")],Oa("0x9"),this[Oa("0x24")][Oa("0x17")].name):Yo(this[Oa("0x41")],Oa("0x47"),this[Oa("0x24")][Oa("0x17")][Oa("0x1a")]):null}}function Fa(t,e){let n="";return n+=t.split("*")[Oa("0x28")](((t,e)=>e%2!=0?Oa("0x37")+Pa(t)+"</span>":Pa(t)))[Oa("0x35")](""),e&&(n+=Oa("0x3f")+e[Oa("0x3c")]+Oa("0xe")+e[Oa("0x32")]+Oa("0x33")),n}function Pa(t){const e=document.createElement(Oa("0x18"));return e[Oa("0x8")]=t,e[Oa("0x4f")]}const Ba=["size","acceptSelectedSuggestions","_createUIButton","add","unbind","isDirty","some","getRanges","clear","Accept all suggestions","values","length","isMultiRange","SuggestionThreadView","locale","_annotationViews","type","set","_handleControllerBuffer","actionView","comments.maxThreadTotalWeight","lowest","_suggestionToController","toViewElement","pluginName","config","separator","createAnnotationView","_descriptionFactory","init","has","mapper","getSuggestion","trackChanges.disableComments","acceptButton","push","Annotations","_disableComments","createAnnotation","acceptAllSuggestions","getAllAdjacentSuggestions","editing","model","keys","commentThread","componentFactory","editor","_updateController","_destroyController","isOn","trackChanges","suggestion-","suggestionUnloaded","reduce","source","trackChanges.SuggestionThreadView","createCommentThreadController","discardSelectedSuggestions","comments.maxCommentsWhenCollapsed","isInContent","change:activeAnnotations","hasSuggestion","focus","refreshSelectedViews","mainView","getFirstRange","getFirstMarker","_viewToController","comments.editorConfig","getByInnerView","TrackChangesUI","head","requires","Discard all selected suggestions","arrowView","isEnabled","toMany","CommentsUI","TrackChangesEditing","value","destroy","_handleSuggestionControllerDelayed","define","stopListening","commandName","commands","CommentView","view","discardButton","getRange","bind","Track changes","getContainedElement","descriptionParts","change:previous","execute","from","_initializeController","delete","activeMarkers","button","filter","getMarkerNames","buttonView","EditorAnnotations","remove","suggestionLoaded","Discard all suggestions","CommentsRepository","get","getDescriptions","plugins","listenTo","addSourceCollector"];var ja,Ua;ja=Ba,Ua=348,function(t){for(;--t;)ja.push(ja.shift())}(++Ua);const Ga=function(t,e){return Ba[t-=0]};class Ha extends t.Plugin{static get[Ga("0x42")](){return[da,s.Users,Ga("0x66"),Ga("0x1e"),Ga("0x62")]}static get[Ga("0x12")](){return Ga("0x40")}constructor(t){super(t),this[Ga("0x10")]=new Map,this[Ga("0x3d")]=new Map,this[Ga("0x9")]=new Map,this._handleControllerBuffer=new Map;const e=this.editor.config;e[Ga("0x4c")](Ga("0x31"),Da),e[Ga("0x4c")](Ga("0x1b"),!1),this[Ga("0x1f")]=e[Ga("0x67")](Ga("0x1b"))}[Ga("0x4b")](t,e){0===this[Ga("0xc")][Ga("0x6c")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Ga("0x10")][Ga("0x18")](t);n||e?n&&e&&this[Ga("0x2a")](t):this._initializeController(t)}this[Ga("0x28")][Ga("0x69")].get(Ga("0x62"))[Ga("0x39")](),this[Ga("0xc")][Ga("0x2")]()}),10),this[Ga("0xc")].set(t,e)}[Ga("0x17")](){const t=this[Ga("0x28")],e=t[Ga("0x69")][Ga("0x67")](da),n=t[Ga("0x69")][Ga("0x67")]("Annotations"),o=t[Ga("0x69")][Ga("0x67")]("EditorAnnotations"),r=t.plugins.get(Ga("0x66"));t.ui[Ga("0x27")][Ga("0x6f")]("trackChanges",(t=>this._createUIButton(t))),o[Ga("0x6b")]((()=>{const t=[];for(const[e,n]of Array[Ga("0x5a")](this[Ga("0x10")])){const o=e[Ga("0x22")](),r=[];for(const t of o){if(!t.isInContent)continue;if(t[Ga("0x6")]){r[Ga("0x1d")](...t[Ga("0x1")]());continue}const e=t[Ga("0x3b")]();if(r[Ga("0x5")]>0){const t=r[0].getJoined(e);if(t){r[0]=t;continue}}r[Ga("0x1d")](e)}t[Ga("0x1d")]([n.view,r])}return t})),this[Ga("0x6a")](e,Ga("0x64"),((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,r)=>{e[Ga("0x35")]&&(null==o?(this[Ga("0x29")](r[Ga("0x41")]),this[Ga("0x4b")](e,!1)):(this[Ga("0x29")](o[Ga("0x41")]),this[Ga("0x4b")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Ga("0x41")])})),this[Ga("0x6a")](e,Ga("0x2e"),((t,e,n)=>{this[Ga("0x4d")](e,Ga("0x58")),this[Ga("0xc")][Ga("0x5c")](e);const o=n?n.head:e,r=this[Ga("0x10")][Ga("0x67")](o);null!==n&&this[Ga("0x29")](o),null===n&&r&&this[Ga("0x2a")](e)})),this[Ga("0x6a")](e,"suggestionChanged",((t,e)=>{this._updateController(e)})),this[Ga("0x6a")](n,Ga("0x36"),((t,n,o)=>{const r=Array.from(o,(t=>t.innerView))[Ga("0x5f")]((t=>this[Ga("0x3d")][Ga("0x18")](t))),s=[];for(const t of r){const e=this._viewToController[Ga("0x67")](t)[Ga("0x24")][Ga("0x22")]();s[Ga("0x1d")](...e[Ga("0x2f")](((t,e)=>[...t,...e[Ga("0x60")]()]),[]))}e[Ga("0x5d")]=s})),this[Ga("0x6a")](r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ga("0x37")](n))return;const r=e[Ga("0x1a")](n);this[Ga("0x10")].get(r)[Ga("0x51")].focus()}),{priority:Ga("0xf")})}[Ga("0x6e")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Ga("0x28")][Ga("0x4f")].get(Ga("0x2c")),s=Yo(t,Ga("0x55"));n[Ga("0x61")][Ga("0xb")]({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ga("0x61")][Ga("0x54")]("isOn").to(o,"value"),n.buttonView.on("execute",(()=>{o[Ga("0x59")](),this[Ga("0x28")][Ga("0x23")][Ga("0x51")].focus()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:s,commandName:Ga("0x2c")}},{type:Ga("0x14")},{type:Ga("0x5e"),model:{withText:!0,label:Yo(t,Ga("0x3")),commandName:Ga("0x21")}},{type:Ga("0x5e"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ga("0x6d")}},{type:"button",model:{withText:!0,label:Yo(t,Ga("0x65")),commandName:"discardAllSuggestions"}},{type:Ga("0x5e"),model:{withText:!0,label:Yo(t,Ga("0x43")),commandName:Ga("0x33")}}];for(const t of x){const e={type:t[Ga("0xa")]};if(t[Ga("0x24")]){const n=new r.Model(t[Ga("0x24")]),o=this[Ga("0x28")].commands[Ga("0x67")](n[Ga("0x4e")]);n.bind(Ga("0x2b"),Ga("0x45")).to(o,Ga("0x49"),Ga("0x45")),e[Ga("0x24")]=n}i[Ga("0x6f")](e)}(0,r.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ga("0x24")])).map((t=>this[Ga("0x28")][Ga("0x4f")][Ga("0x67")](t[Ga("0x24")][Ga("0x4e")])));return n[Ga("0x61")][Ga("0xd")][Ga("0x70")](Ga("0x45")),n[Ga("0x61")][Ga("0x44")].unbind(Ga("0x45")),n[Ga("0x61")][Ga("0xd")][Ga("0x54")](Ga("0x45")).to(o,Ga("0x45")),n[Ga("0x61")][Ga("0x44")][Ga("0x54")](Ga("0x45"))[Ga("0x46")](a,Ga("0x45"),((...t)=>t[Ga("0x0")]((t=>t)))),n.on(Ga("0x59"),(t=>{this[Ga("0x28")][Ga("0x59")](t[Ga("0x30")][Ga("0x4e")]),this[Ga("0x28")][Ga("0x23")][Ga("0x51")].focus()})),n}[Ga("0x5b")](t){const e=this[Ga("0x28")],n=e[Ga("0x13")],o=e[Ga("0x69")].get("Annotations"),r=e[Ga("0x69")][Ga("0x67")](Ga("0x66")),i=e.plugins.get(Ga("0x62")),x=t[Ga("0x22")]().filter((t=>t.isInContent)),a=e[Ga("0x69")][Ga("0x67")](s.Users).me,c=n[Ga("0x67")](Ga("0x2c"))[Ga("0x7")],{CommentsListView:l,CommentThreadInputView:u}=e.plugins[Ga("0x67")](Ga("0x47"));let d,g;this[Ga("0x9")][Ga("0x18")](t.id)?(g=this[Ga("0x9")][Ga("0x67")](t.id),d=g[Ga("0x3a")]):(d=new c(e[Ga("0x8")],t,a,{disableComments:this[Ga("0x1f")],editorConfig:n[Ga("0x67")](Ga("0x3e")),maxCommentsWhenCollapsed:n[Ga("0x67")](Ga("0x34")),maxThreadTotalWeight:n[Ga("0x67")](Ga("0xe")),maxCommentCharsWhenCollapsed:n[Ga("0x67")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,s.getDateTimeFormatter)(n[Ga("0x67")](Ga("0x8"))),CommentView:n[Ga("0x67")]("comments")[Ga("0x50")],CommentsListView:l,CommentThreadInputView:u}),d[Ga("0x1c")].on("execute",(()=>{e[Ga("0x23")][Ga("0x51")].focus()})),d[Ga("0x52")].on(Ga("0x59"),(()=>{e.editing[Ga("0x51")][Ga("0x38")]()})),g=o[Ga("0x15")](this[Ga("0x28")][Ga("0x8")],d),g[Ga("0x54")]("isDirty").to(d,Ga("0x71")),g.bind(Ga("0x5")).to(d),g[Ga("0x54")](Ga("0xa")).to(d,Ga("0xa"),(t=>Ga("0x2d")+t)),this[Ga("0x9")][Ga("0xb")](t.id,g));const m=r[Ga("0x32")](t[Ga("0x26")],d),f=new Aa(e,t,d,m);d[Ga("0x57")]=e[Ga("0x69")].get(Ga("0x48"))[Ga("0x16")][Ga("0x68")](x),this[Ga("0x10")].set(t,f),this[Ga("0x3d")].set(d,f);const h=o[Ga("0x20")]({view:g,target:()=>{const t=x[0][Ga("0x3c")]();if(!t)return null;const n=t[Ga("0x53")]()[Ga("0x56")]();return n&&!e[Ga("0x23")][Ga("0x19")][Ga("0x11")](n)?null:(0,s.getMarkerDomElement)(e[Ga("0x23")],t)||null},type:()=>Ga("0x2d")+f[Ga("0x51")][Ga("0xa")]});o[Ga("0x6f")](h),i.registerAnnotation(h)}_destroyController(t){const e=this[Ga("0x28")].plugins.get(Ga("0x1e")),n=this[Ga("0x10")].get(t),o=n[Ga("0x51")],r=e[Ga("0x3f")](o);r&&e[Ga("0x63")](r),this._suggestionToController[Ga("0x5c")](t),this[Ga("0x3d")][Ga("0x5c")](o),n[Ga("0x4a")]()}[Ga("0x29")](t){if(!t.isInContent||!this[Ga("0x10")][Ga("0x18")](t))return;const e=this[Ga("0x28")][Ga("0x69")][Ga("0x67")]("TrackChangesEditing"),n=this[Ga("0x10")][Ga("0x67")](t),o=t.getAllAdjacentSuggestions();n.view.descriptionParts=e[Ga("0x16")][Ga("0x68")](o)}[Ga("0x4a")](){for(const t of this[Ga("0x10")][Ga("0x25")]())this._destroyController(t);for(const t of this._annotationViews[Ga("0x4")]())t[Ga("0x3a")][Ga("0x4a")]();super[Ga("0x4a")]()}}var Va,za,Wa=["addSuggestionData","editor","getSuggestion","getSuggestions","requires","get","plugins","Comments","adapter","addSuggestion","TrackChanges","pluginName"];Va=Wa,za=358,function(t){for(;--t;)Va.push(Va.shift())}(++za);var Ka=function(t,e){return Wa[t-=0]};class Xa extends t.Plugin{static get[Ka("0x6")](){return[da,Ha,Ka("0x9")]}static get[Ka("0x1")](){return Ka("0x0")}set[Ka("0xa")](t){this[Ka("0x3")][Ka("0x8")].get(da)[Ka("0xa")]=t}get[Ka("0xa")](){return this[Ka("0x3")][Ka("0x8")].get(da)[Ka("0xa")]}[Ka("0xb")](t){return this[Ka("0x3")][Ka("0x8")][Ka("0x7")](da)[Ka("0x2")](t)}[Ka("0x5")](t){return this[Ka("0x3")][Ka("0x8")].get(da).getSuggestions(t)}getSuggestion(t){return this[Ka("0x3")][Ka("0x8")][Ka("0x7")](da)[Ka("0x4")](t)}}const qa=["pluginName","addSuggestionData","define","model","getDataWithDiscardedSuggestions","init","div","createDocumentFragment","includes","get","plugins","map","constructor","set","requires","getRootNames","filter","Autosave","reduce","has","RevisionTracker","Pagination","TrackChangesEditing","every","names","users","editor","data","getDataWithAcceptedSuggestions","create","WebSocketGateway","getUser","config","string","TrackChangesData","concat","extraPlugins","find","from","createElement","name","Users","trackChangesData","function","initialData","acceptAllSuggestions","push","appendChild","_adapter","editorCreator","toolbar","builtinPlugins","useAnonymousUser","context"];var $a,Qa;$a=qa,Qa=120,function(t){for(;--t;)$a.push($a.shift())}(++Qa);const Ja=function(t,e){return qa[t-=0]},Za=[Ja("0x20"),Ja("0x29"),Ja("0x26")],Ya=[Ja("0x12"),Ja("0x8"),Ja("0x5"),"WordCount",Ja("0x9")];class tc extends t.Plugin{static get requires(){return[da]}static get pluginName(){return Ja("0x16")}[Ja("0x2f")](){const t=this[Ja("0xe")];if(t.config[Ja("0x2c")]("trackChangesData.editorCreator",(e=>t[Ja("0x0")][Ja("0x11")]("",e))),"function"!=typeof t[Ja("0x14")][Ja("0x33")]("trackChangesData")[Ja("0x25")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Ja("0x10")](t){return nc(this[Ja("0xe")],!0,t)}[Ja("0x2e")](t){return nc(this[Ja("0xe")],!1,t)}}class ec extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}init(){this.result="end",this[Ja("0xe")][Ja("0x34")][Ja("0x33")]("CommentsRepository")[Ja("0x24")]={getCommentThread:()=>new Promise((()=>{}))},this[Ja("0xe")][Ja("0x34")].get(Ja("0xa"))[Ja("0x24")]=null}}async function nc(t,e,n){const o=function(t){const e={};for(const n of t.config[Ja("0xc")]())Za[Ja("0x32")](n)||(e[n]=t[Ja("0x14")][Ja("0x33")](n));const n=t[Ja("0x0")][Ja("0x27")]||[],o=e[Ja("0x18")]||[];delete e[Ja("0x18")];const r=n[Ja("0x17")](e[Ja("0x34")]).concat(o)[Ja("0x35")]((t=>Ja("0x15")==typeof t?n[Ja("0x19")]((e=>e.pluginName==t)):t)),s=Array[Ja("0x1a")](new Set(r)),i=new Map;return e[Ja("0x34")]=s[Ja("0x4")]((t=>oc(t,i))),e[Ja("0x34")][Ja("0x22")](ec),e[Ja("0x34")][Ja("0x22")](da),e}(t),r=document[Ja("0x31")](),s=t[Ja("0x14")][Ja("0x33")](Ja("0x1e"))[Ja("0x25")],i=await s(o,(()=>function(t){const e=document[Ja("0x1b")](Ja("0x30"));return t[Ja("0x23")](e),e}(r)));!function(t,e){const n=t[Ja("0x2d")].document[Ja("0x3")]()[Ja("0x6")](((e,n)=>(e[n]=t[Ja("0xf")].get({rootName:n}),e)),{}),o=t.plugins[Ja("0x33")](Ja("0x1d"))[Ja("0xd")][Ja("0x35")]((t=>({id:t.id}))),r=t[Ja("0x34")][Ja("0x33")](Ja("0xa")).getSuggestions({skipNotAttached:!0,toJSON:!0}),s=e[Ja("0x34")].get(Ja("0x1d")),i=e[Ja("0x34")][Ja("0x33")]("TrackChangesEditing");for(const t of o)s[Ja("0x13")](t.id)||s.addUser(t);s.me||s[Ja("0x28")]();for(const t of r)i[Ja("0x2b")](t);e[Ja("0xf")][Ja("0x1")](n)}(t,i),i.execute(e?Ja("0x21"):"discardAllSuggestions");const x=i[Ja("0xf")][Ja("0x33")](n);return await i.destroy(),x}function oc(t,e){const n=Ja("0x1f")==typeof t?t[Ja("0x2a")]||t[Ja("0x1c")]:t;if(e[Ja("0x7")](n))return e[Ja("0x33")](n);if(e.set(n,!0),n&&Ya.includes(n))return e[Ja("0x1")](n,!1),!1;if(!t[Ja("0x2")])return e[Ja("0x1")](n,!0),!0;const o=t.requires[Ja("0xb")]((t=>oc(t,e)));return e[Ja("0x1")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>tl,TrackChanges:()=>pl,TrackChangesData:()=>kl});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["_disableUnsupportedCommands","editor","TrackChangesCommand","execute","_enabledCommands","affectsData","has","clearForceDisabled","_enableCommands","value","commands","refresh","isEnabled"];var c,l;c=a,l=289,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x1")]=e,this[u("0x6")]=!1,this[u("0x8")]()}[u("0x8")](){this[u("0x9")]=!0}[u("0x0")](){this[u("0x6")]=!this[u("0x6")],this.value?this[u("0xa")]():this._enableCommands()}[u("0xa")](){for(const t of this[u("0xb")].commands[u("0x7")]())t[u("0x2")]&&!this[u("0x1")][u("0x3")](t)&&t.forceDisabled(u("0xc"))}[u("0x5")](){for(const t of this[u("0xb")].commands[u("0x7")]())t[u("0x2")]&&!this[u("0x1")].has(t)&&t[u("0x4")]("TrackChangesCommand")}}const g=["TrackChangesEditing","plugins","refresh","isEnabled","track-changes-accept-suggestion-not-found","_suggestions","get","acceptSuggestion"];var m,f;m=g,f=302,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this[h("0x4")]()}[h("0x4")](){this[h("0x5")]=!0}execute(t){const n=this[h("0x7")].get(t);if(!n)throw new e.CKEditorError(h("0x6"),this);this.editor[h("0x3")][h("0x0")](h("0x2"))[h("0x1")](n)}}const b=["plugins","TrackChangesEditing","_suggestions","editor","discardSuggestion","execute","isEnabled"];var E,_;E=b,_=191,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x0")]=e,this.refresh()}refresh(){this[T("0x4")]=!0}[T("0x3")](t){const n=this[T("0x0")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);this[T("0x1")][T("0x5")].get(T("0x6"))[T("0x2")](n)}}const y=["createRange","add","deletion"," [color ","createPositionAfter","length","replace","isMultiRange","isTouching","isArray","createPositionBefore","join","value","end","content","from","isIntersecting","change","getRange","start","sort","type","color","getRanges","createPositionAt","next","splice","isCollapsed"];var k,A;k=y,A=468,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x0")](((t,e)=>v("0xa")==t[v("0x1")]&&"deletion"!=e[v("0x1")]?-1:v("0xa")!=t[v("0x1")]&&v("0xa")==e[v("0x1")]?1:0))}function I(t,e){let n,o=0;const r=[],s=e.schema;for(;o<t[v("0xd")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),S(e,i,x)||(r.push(e[v("0x8")](n,s.isObject(i)?e[v("0xc")](i):e[v("0x4")](i,v("0x15")))),n=null),o++}return r}function S(t,e,n){if(!n)return!1;const o=t[v("0xc")](e),r=t[v("0x12")](n);return o[v("0x10")](r)}const L=100;function M(t,e,n){for(;n[v("0xd")];){const o=n[v("0x6")](0,L);t[v("0x19")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const N=["isEnabled","some","from","refresh","editor","_command","_suggestions","values"];var w,O;w=N,O=357,function(t){for(;--t;)w.push(w.shift())}(++O);const F=function(t,e){return N[t-=0]};class P extends t.Command{constructor(t,e,n){super(t),this[F("0x0")]=e,this[F("0x1")]=n,this[F("0x6")]()}[F("0x6")](){const t=Array[F("0x5")](this[F("0x1")].values())[F("0x4")]((t=>t.isInContent));this[F("0x3")]=this[F("0x0")][F("0x3")]&&t}execute(){const t=R(Array[F("0x5")](this[F("0x1")][F("0x2")]()));M(this[F("0x7")].model,this[F("0x0")],t)}}const D=["document","_suggestions","selection","_command","isEnabled","refresh","_selectedSuggestions","editor","values","model","from","execute"];var B,j;B=D,j=190,function(t){for(;--t;)B.push(B.shift())}(++j);const U=function(t,e){return D[t-=0]};class G extends t.Command{constructor(t,e,n){super(t),this[U("0x5")]=e,this[U("0x3")]=n,this[U("0x8")]=new Set,this.refresh()}[U("0x7")](){const t=this.editor.model[U("0x2")][U("0x4")],e=Array[U("0x0")](this[U("0x3")][U("0xa")]());this[U("0x8")]=function(t,e){const n=Array[v("0x17")](t[v("0x3")]()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r.getMarkers()){const s=n[v("0x1a")]();(e[v("0x18")](s)||t[v("0x7")]&&!r[v("0xf")]&&r[v("0x5")]&&s[v("0x15")][v("0x10")](e[v("0x1b")]))&&o[v("0x9")](r)}return o}(t,e),this[U("0x6")]=this[U("0x5")][U("0x6")]&&!!this._selectedSuggestions.size}[U("0x1")](){const t=R(Array[U("0x0")](this[U("0x8")]));M(this[U("0x9")][U("0xb")],this._command,t)}}const H=function(){this.__data__=[],this.size=0};const W=function(t,e){return t===e||t!=t&&e!=e};const V=function(t,e){for(var n=t.length;n--;)if(W(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const K=function(t){var e=this.__data__,n=V(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const q=function(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]};const X=function(t){return V(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=V(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function Q(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Q.prototype.clear=H,Q.prototype.delete=K,Q.prototype.get=q,Q.prototype.has=X,Q.prototype.set=$;const J=Q;const Z=function(){this.__data__=new J,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const tt=function(t){return this.__data__.get(t)};const et=function(t){return this.__data__.has(t)};const nt="object"==typeof global&&global&&global.Object===Object&&global;var ot="object"==typeof self&&self&&self.Object===Object&&self;const rt=nt||ot||Function("return this")();const st=rt.Symbol;var it=Object.prototype,xt=it.hasOwnProperty,at=it.toString,ct=st?st.toStringTag:void 0;const lt=function(t){var e=xt.call(t,ct),n=t[ct];try{t[ct]=void 0;var o=!0}catch(t){}var r=at.call(t);return o&&(e?t[ct]=n:delete t[ct]),r};var ut=Object.prototype.toString;const dt=function(t){return ut.call(t)};var gt="[object Null]",mt="[object Undefined]",ft=st?st.toStringTag:void 0;const ht=function(t){return null==t?void 0===t?mt:gt:ft&&ft in Object(t)?lt(t):dt(t)};const pt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var bt="[object AsyncFunction]",Et="[object Function]",_t="[object GeneratorFunction]",Tt="[object Proxy]";const Ct=function(t){if(!pt(t))return!1;var e=ht(t);return e==Et||e==_t||e==bt||e==Tt};const yt=rt["__core-js_shared__"];var kt,At=(kt=/[^.]+$/.exec(yt&&yt.keys&&yt.keys.IE_PROTO||""))?"Symbol(src)_1."+kt:"";const vt=function(t){return!!At&&At in t};var Rt=Function.prototype.toString;const It=function(t){if(null!=t){try{return Rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var St=/^\[object .+?Constructor\]$/,Lt=Function.prototype,Mt=Object.prototype,Nt=Lt.toString,wt=Mt.hasOwnProperty,Ot=RegExp("^"+Nt.call(wt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ft=function(t){return!(!pt(t)||vt(t))&&(Ct(t)?Ot:St).test(It(t))};const Pt=function(t,e){return null==t?void 0:t[e]};const Dt=function(t,e){var n=Pt(t,e);return Ft(n)?n:void 0};const Bt=Dt(rt,"Map");const jt=Dt(Object,"create");const Ut=function(){this.__data__=jt?jt(null):{},this.size=0};const Gt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ht="__lodash_hash_undefined__",Wt=Object.prototype.hasOwnProperty;const Vt=function(t){var e=this.__data__;if(jt){var n=e[t];return n===Ht?void 0:n}return Wt.call(e,t)?e[t]:void 0};var zt=Object.prototype.hasOwnProperty;const Kt=function(t){var e=this.__data__;return jt?void 0!==e[t]:zt.call(e,t)};var qt="__lodash_hash_undefined__";const Xt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=jt&&void 0===e?qt:e,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ut,$t.prototype.delete=Gt,$t.prototype.get=Vt,$t.prototype.has=Kt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(){this.size=0,this.__data__={hash:new Qt,map:new(Bt||J),string:new Qt}};const Zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Yt=function(t,e){var n=t.__data__;return Zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const te=function(t){var e=Yt(this,t).delete(t);return this.size-=e?1:0,e};const ee=function(t){return Yt(this,t).get(t)};const ne=function(t){return Yt(this,t).has(t)};const oe=function(t,e){var n=Yt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function re(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}re.prototype.clear=Jt,re.prototype.delete=te,re.prototype.get=ee,re.prototype.has=ne,re.prototype.set=oe;const se=re;var ie=200;const xe=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Bt||o.length<ie-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new se(o)}return n.set(t,e),this.size=n.size,this};function ae(t){var e=this.__data__=new J(t);this.size=e.size}ae.prototype.clear=Z,ae.prototype.delete=Y,ae.prototype.get=tt,ae.prototype.has=et,ae.prototype.set=xe;const ce=ae;const le=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ue=function(){try{var t=Dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const de=function(t,e,n){"__proto__"==e&&ue?ue(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var ge=Object.prototype.hasOwnProperty;const me=function(t,e,n){var o=t[e];ge.call(t,e)&&W(o,n)&&(void 0!==n||e in t)||de(t,e,n)};const fe=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?de(n,x,a):me(n,x,a)}return n};const he=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const pe=function(t){return null!=t&&"object"==typeof t};var be="[object Arguments]";const Ee=function(t){return pe(t)&&ht(t)==be};var _e=Object.prototype,Te=_e.hasOwnProperty,Ce=_e.propertyIsEnumerable;const ye=Ee(function(){return arguments}())?Ee:function(t){return pe(t)&&Te.call(t,"callee")&&!Ce.call(t,"callee")};const ke=Array.isArray;const Ae=function(){return!1};var ve="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=ve&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Re&&Re.exports===ve?rt.Buffer:void 0;const Se=(Ie?Ie.isBuffer:void 0)||Ae;var Le=9007199254740991,Me=/^(?:0|[1-9]\d*)$/;const Ne=function(t,e){var n=typeof t;return!!(e=null==e?Le:e)&&("number"==n||"symbol"!=n&&Me.test(t))&&t>-1&&t%1==0&&t<e};var we=9007199254740991;const Oe=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=we};var Fe={};Fe["[object Float32Array]"]=Fe["[object Float64Array]"]=Fe["[object Int8Array]"]=Fe["[object Int16Array]"]=Fe["[object Int32Array]"]=Fe["[object Uint8Array]"]=Fe["[object Uint8ClampedArray]"]=Fe["[object Uint16Array]"]=Fe["[object Uint32Array]"]=!0,Fe["[object Arguments]"]=Fe["[object Array]"]=Fe["[object ArrayBuffer]"]=Fe["[object Boolean]"]=Fe["[object DataView]"]=Fe["[object Date]"]=Fe["[object Error]"]=Fe["[object Function]"]=Fe["[object Map]"]=Fe["[object Number]"]=Fe["[object Object]"]=Fe["[object RegExp]"]=Fe["[object Set]"]=Fe["[object String]"]=Fe["[object WeakMap]"]=!1;const Pe=function(t){return pe(t)&&Oe(t.length)&&!!Fe[ht(t)]};const De=function(t){return function(e){return t(e)}};var Be="object"==typeof exports&&exports&&!exports.nodeType&&exports,je=Be&&"object"==typeof module&&module&&!module.nodeType&&module,Ue=je&&je.exports===Be&&nt.process;const Ge=function(){try{var t=je&&je.require&&je.require("util").types;return t||Ue&&Ue.binding&&Ue.binding("util")}catch(t){}}();var He=Ge&&Ge.isTypedArray;const We=He?De(He):Pe;var Ve=Object.prototype.hasOwnProperty;const ze=function(t,e){var n=ke(t),o=!n&&ye(t),r=!n&&!o&&Se(t),s=!n&&!o&&!r&&We(t),i=n||o||r||s,x=i?he(t.length,String):[],a=x.length;for(var c in t)!e&&!Ve.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ne(c,a))||x.push(c);return x};var Ke=Object.prototype;const qe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ke)};const Xe=function(t,e){return function(n){return t(e(n))}};const $e=Xe(Object.keys,Object);var Qe=Object.prototype.hasOwnProperty;const Je=function(t){if(!qe(t))return $e(t);var e=[];for(var n in Object(t))Qe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ze=function(t){return null!=t&&Oe(t.length)&&!Ct(t)};const Ye=function(t){return Ze(t)?ze(t):Je(t)};const tn=function(t,e){return t&&fe(e,Ye(e),t)};const en=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var nn=Object.prototype.hasOwnProperty;const on=function(t){if(!pt(t))return en(t);var e=qe(t),n=[];for(var o in t)("constructor"!=o||!e&&nn.call(t,o))&&n.push(o);return n};const rn=function(t){return Ze(t)?ze(t,!0):on(t)};const sn=function(t,e){return t&&fe(e,rn(e),t)};var xn="object"==typeof exports&&exports&&!exports.nodeType&&exports,an=xn&&"object"==typeof module&&module&&!module.nodeType&&module,cn=an&&an.exports===xn?rt.Buffer:void 0,ln=cn?cn.allocUnsafe:void 0;const un=function(t,e){if(e)return t.slice();var n=t.length,o=ln?ln(n):new t.constructor(n);return t.copy(o),o};const dn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const gn=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const mn=function(){return[]};var fn=Object.prototype.propertyIsEnumerable,hn=Object.getOwnPropertySymbols;const pn=hn?function(t){return null==t?[]:(t=Object(t),gn(hn(t),(function(e){return fn.call(t,e)})))}:mn;const bn=function(t,e){return fe(t,pn(t),e)};const En=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const _n=Xe(Object.getPrototypeOf,Object);const Tn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)En(e,pn(t)),t=_n(t);return e}:mn;const Cn=function(t,e){return fe(t,Tn(t),e)};const yn=function(t,e,n){var o=e(t);return ke(t)?o:En(o,n(t))};const kn=function(t){return yn(t,Ye,pn)};const An=function(t){return yn(t,rn,Tn)};const vn=Dt(rt,"DataView");const Rn=Dt(rt,"Promise");const In=Dt(rt,"Set");const Sn=Dt(rt,"WeakMap");var Ln="[object Map]",Mn="[object Promise]",Nn="[object Set]",wn="[object WeakMap]",On="[object DataView]",Fn=It(vn),Pn=It(Bt),Dn=It(Rn),Bn=It(In),jn=It(Sn),Un=ht;(vn&&Un(new vn(new ArrayBuffer(1)))!=On||Bt&&Un(new Bt)!=Ln||Rn&&Un(Rn.resolve())!=Mn||In&&Un(new In)!=Nn||Sn&&Un(new Sn)!=wn)&&(Un=function(t){var e=ht(t),n="[object Object]"==e?t.constructor:void 0,o=n?It(n):"";if(o)switch(o){case Fn:return On;case Pn:return Ln;case Dn:return Mn;case Bn:return Nn;case jn:return wn}return e});const Gn=Un;var Hn=Object.prototype.hasOwnProperty;const Wn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Hn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Vn=rt.Uint8Array;const zn=function(t){var e=new t.constructor(t.byteLength);return new Vn(e).set(new Vn(t)),e};const Kn=function(t,e){var n=e?zn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var qn=/\w*$/;const Xn=function(t){var e=new t.constructor(t.source,qn.exec(t));return e.lastIndex=t.lastIndex,e};var $n=st?st.prototype:void 0,Qn=$n?$n.valueOf:void 0;const Jn=function(t){return Qn?Object(Qn.call(t)):{}};const Zn=function(t,e){var n=e?zn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Yn="[object Boolean]",to="[object Date]",eo="[object Map]",no="[object Number]",oo="[object RegExp]",ro="[object Set]",so="[object String]",io="[object Symbol]",xo="[object ArrayBuffer]",ao="[object DataView]",co="[object Float32Array]",lo="[object Float64Array]",uo="[object Int8Array]",go="[object Int16Array]",mo="[object Int32Array]",fo="[object Uint8Array]",ho="[object Uint8ClampedArray]",po="[object Uint16Array]",bo="[object Uint32Array]";const Eo=function(t,e,n){var o=t.constructor;switch(e){case xo:return zn(t);case Yn:case to:return new o(+t);case ao:return Kn(t,n);case co:case lo:case uo:case go:case mo:case fo:case ho:case po:case bo:return Zn(t,n);case eo:return new o;case no:case so:return new o(t);case oo:return Xn(t);case ro:return new o;case io:return Jn(t)}};var _o=Object.create;const To=function(){function t(){}return function(e){if(!pt(e))return{};if(_o)return _o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Co=function(t){return"function"!=typeof t.constructor||qe(t)?{}:To(_n(t))};var yo="[object Map]";const ko=function(t){return pe(t)&&Gn(t)==yo};var Ao=Ge&&Ge.isMap;const vo=Ao?De(Ao):ko;var Ro="[object Set]";const Io=function(t){return pe(t)&&Gn(t)==Ro};var So=Ge&&Ge.isSet;const Lo=So?De(So):Io;var Mo=1,No=2,wo=4,Oo="[object Arguments]",Fo="[object Function]",Po="[object GeneratorFunction]",Do="[object Object]",Bo={};Bo[Oo]=Bo["[object Array]"]=Bo["[object ArrayBuffer]"]=Bo["[object DataView]"]=Bo["[object Boolean]"]=Bo["[object Date]"]=Bo["[object Float32Array]"]=Bo["[object Float64Array]"]=Bo["[object Int8Array]"]=Bo["[object Int16Array]"]=Bo["[object Int32Array]"]=Bo["[object Map]"]=Bo["[object Number]"]=Bo[Do]=Bo["[object RegExp]"]=Bo["[object Set]"]=Bo["[object String]"]=Bo["[object Symbol]"]=Bo["[object Uint8Array]"]=Bo["[object Uint8ClampedArray]"]=Bo["[object Uint16Array]"]=Bo["[object Uint32Array]"]=!0,Bo["[object Error]"]=Bo[Fo]=Bo["[object WeakMap]"]=!1;const jo=function t(e,n,o,r,s,i){var x,a=n&Mo,c=n&No,l=n&wo;if(o&&(x=s?o(e,r,s,i):o(e)),void 0!==x)return x;if(!pt(e))return e;var u=ke(e);if(u){if(x=Wn(e),!a)return dn(e,x)}else{var d=Gn(e),g=d==Fo||d==Po;if(Se(e))return un(e,a);if(d==Do||d==Oo||g&&!s){if(x=c||g?{}:Co(e),!a)return c?Cn(e,sn(x,e)):bn(e,tn(x,e))}else{if(!Bo[d])return s?e:{};x=Eo(e,d,a)}}i||(i=new ce);var m=i.get(e);if(m)return m;i.set(e,x),Lo(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,i))})):vo(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=u?void 0:(l?c?An:kn:c?rn:Ye)(e);return le(f||e,(function(r,s){f&&(r=e[s=r]),me(x,s,t(r,n,o,s,e,i))})),x};var Uo=1,Go=4;const Ho=function(t){return jo(t,Uo|Go)};var Wo="[object Symbol]";const Vo=function(t){return"symbol"==typeof t||pe(t)&&ht(t)==Wo};var zo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ko=/^\w*$/;const qo=function(t,e){if(ke(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Vo(t))||(Ko.test(t)||!zo.test(t)||null!=e&&t in Object(e))};var Xo="Expected a function";function $o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Xo);var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new($o.Cache||se),n}$o.Cache=se;const Qo=$o;var Jo=500;var Zo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yo=/\\(\\)?/g;const tr=function(t){var e=Qo(t,(function(t){return n.size===Jo&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Zo,(function(t,n,o,r){e.push(o?r.replace(Yo,"$1"):n||t)})),e}));const er=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var nr=1/0,or=st?st.prototype:void 0,rr=or?or.toString:void 0;const sr=function t(e){if("string"==typeof e)return e;if(ke(e))return er(e,t)+"";if(Vo(e))return rr?rr.call(e):"";var n=e+"";return"0"==n&&1/e==-nr?"-0":n};const ir=function(t){return null==t?"":sr(t)};const xr=function(t,e){return ke(t)?t:qo(t,e)?[t]:tr(ir(t))};var ar=1/0;const cr=function(t){if("string"==typeof t||Vo(t))return t;var e=t+"";return"0"==e&&1/t==-ar?"-0":e};const lr=function(t,e,n,o){if(!pt(t))return t;for(var r=-1,s=(e=xr(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=cr(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=pt(l)?l:Ne(e[r+1])?[]:{})}me(x,a,c),x=x[a]}return t};const ur=function(t,e,n){return null==t?t:lr(t,e,n)};var dr="__lodash_hash_undefined__";const gr=function(t){return this.__data__.set(t,dr),this};const mr=function(t){return this.__data__.has(t)};function fr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new se;++e<n;)this.add(t[e])}fr.prototype.add=fr.prototype.push=gr,fr.prototype.has=mr;const hr=fr;const pr=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const br=function(t,e){return t.has(e)};var Er=1,_r=2;const Tr=function(t,e,n,o,r,s){var i=n&Er,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=n&_r?new hr:void 0;for(s.set(t,e),s.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,s):o(m,f,u,t,e,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!pr(e,(function(t,e){if(!br(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Cr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const yr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var kr=1,Ar=2,vr="[object Boolean]",Rr="[object Date]",Ir="[object Error]",Sr="[object Map]",Lr="[object Number]",Mr="[object RegExp]",Nr="[object Set]",wr="[object String]",Or="[object Symbol]",Fr="[object ArrayBuffer]",Pr="[object DataView]",Dr=st?st.prototype:void 0,Br=Dr?Dr.valueOf:void 0;const jr=function(t,e,n,o,r,s,i){switch(n){case Pr:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Fr:return!(t.byteLength!=e.byteLength||!s(new Vn(t),new Vn(e)));case vr:case Rr:case Lr:return W(+t,+e);case Ir:return t.name==e.name&&t.message==e.message;case Mr:case wr:return t==e+"";case Sr:var x=Cr;case Nr:var a=o&kr;if(x||(x=yr),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=Ar,i.set(t,e);var l=Tr(x(t),x(e),o,r,s,i);return i.delete(t),l;case Or:if(Br)return Br.call(t)==Br.call(e)}return!1};var Ur=1,Gr=Object.prototype.hasOwnProperty;const Hr=function(t,e,n,o,r,s){var i=n&Ur,x=kn(t),a=x.length;if(a!=kn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Gr.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,s):o(f,h,l,t,e,s);if(!(void 0===p?f===h||r(f,h,n,o,s):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(t),s.delete(e),g};var Wr=1,Vr="[object Arguments]",zr="[object Array]",Kr="[object Object]",qr=Object.prototype.hasOwnProperty;const Xr=function(t,e,n,o,r,s){var i=ke(t),x=ke(e),a=i?zr:Gn(t),c=x?zr:Gn(e),l=(a=a==Vr?Kr:a)==Kr,u=(c=c==Vr?Kr:c)==Kr,d=a==c;if(d&&Se(t)){if(!Se(e))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new ce),i||We(t)?Tr(t,e,n,o,r,s):jr(t,e,a,n,o,r,s);if(!(n&Wr)){var g=l&&qr.call(t,"__wrapped__"),m=u&&qr.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return s||(s=new ce),r(f,h,n,o,s)}}return!!d&&(s||(s=new ce),Hr(t,e,n,o,r,s))};const $r=function t(e,n,o,r,s){return e===n||(null==e||null==n||!pe(e)&&!pe(n)?e!=e&&n!=n:Xr(e,n,o,r,t,s))};const Qr=function(t,e){return $r(t,e)};const Jr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Zr=function(t,e){for(var n=0,o=(e=xr(e,t)).length;null!=t&&n<o;)t=t[cr(e[n++])];return n&&n==o?t:void 0};const Yr=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};const ts=function(t,e){return e.length<2?t:Zr(t,Yr(e,0,-1))};const es=function(t,e){return e=xr(e,t),null==(t=ts(t,e))||delete t[cr(Jr(e))]};const ns=function(t,e){return null==t||es(t,e)},os=["isIntersecting","size","getMultiRangeId","head","end","decorate","map","getRanges","add","_onAccept","subType","removeMarker","getMarkers","nodeBefore","getItems","_saved","@external","getMarkerNames","author","isMultiRange","commentThread","from","removeAttribute","getAllAdjacentSuggestions","start","change","_model","getFirstMarker","data","setAttribute","next","delete","get","discard","isIntersectingWithRange","getRange","filter","attributes","removeMarkers","createdAt","set","split","previous","clear","_onAttributesChange","nodeAfter","creator","onAttributesChange","hasComments","isInContent","onAccept","_markerNames","push","_onDiscard","type","getFirstRange","substr","authoredAt","addMarkerName","accept"];var rs,ss;rs=os,ss=110,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs{constructor(t,e){this.id=e.id,this[is("0x4")]=e[is("0x4")],this[is("0x14")]=e[is("0x14")]||null,this[is("0x1c")]=e[is("0x1c")],this[is("0x38")]=e[is("0x38")]||e.author,this.isExternal=Boolean(e[is("0x2f")]&&e[is("0x2f")][is("0x1a")]),this[is("0x26")]=null,this[is("0x24")]=t,this[is("0x13")]=e[is("0x0")],this[is("0x3")]=e.onDiscard,this[is("0x36")]=e[is("0x39")],this._markerNames=new Set,this[is("0x31")]=null,this[is("0x32")](is("0x7"),null),this[is("0x32")](is("0x2f"),e[is("0x2f")]||{}),this[is("0x32")](is("0x34"),null),this[is("0x32")](is("0x28"),null),this[is("0x32")](is("0x1e"),null),this.set(is("0x19"),!1),this[is("0xf")](is("0x9")),this[is("0xf")]("discard")}get[is("0xd")](){let t=this;for(;t[is("0x34")];)t=t[is("0x34")];return t}get[is("0x3a")](){return!!this.commentThread&&this[is("0x1e")].length>0}get[is("0x1d")](){return 0!=this[is("0x1")][is("0xb")]&&6==Array[is("0x1f")](this[is("0x1")])[0][is("0x33")](":").length}get[is("0x3b")](){return null!==this[is("0x25")]()}[is("0x8")](t){this[is("0x1")][is("0x12")](t)}[is("0x1b")](){return Array[is("0x1f")](this._markerNames)}[is("0x16")](){return this.getMarkerNames().map((t=>this[is("0x24")].markers[is("0x2a")](t)))[is("0x2e")]((t=>t))}getFirstMarker(){return this[is("0x16")]()[0]||null}[is("0x30")](){this[is("0x24")][is("0x23")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this[is("0x1")][is("0x35")]()}[is("0x15")](t){this[is("0x24")][is("0x23")]((e=>{e[is("0x15")](t)})),this._markerNames[is("0x29")](t)}addRange(t){const e="suggestion:"+this[is("0x4")]+":"+this.subType+":"+this.id+":"+this[is("0x38")].id+":"+xs[is("0xc")]();this[is("0x8")](e),this._model[is("0x23")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[is("0x2c")](t){for(const e of this.getRanges())if(e[is("0xa")](t))return!0;return!1}[is("0x11")](){return this.getMarkers()[is("0x10")]((t=>t[is("0x2d")]()))}getItems(){return this[is("0x11")]().reduce(((t,e)=>[...t,...e[is("0x18")]()]),[])}[is("0x5")](){return this[is("0x25")]()[is("0x2d")]()}getContainedElement(){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e[is("0x22")][is("0x37")],o=e[is("0xe")][is("0x17")];return n instanceof i.Element?n!=o?null:n:null}[is("0x9")](){this[is("0x13")](this[is("0x11")](),this[is("0x26")],this[is("0x2f")]),this[is("0x30")]()}[is("0x2b")](){this[is("0x3")](this[is("0x11")](),this[is("0x26")],this[is("0x2f")]),this[is("0x30")]()}[is("0x21")](){const t=[];let e=this[is("0xd")];for(;e;)t[is("0x2")](e),e=e[is("0x28")];return t}[is("0x27")](t,e){const n=Ho(this[is("0x2f")]);ur(n,t,e),Qr(n,this[is("0x2f")])||(this[is("0x2f")]=n,this[is("0x36")](n))}[is("0x20")](t){const e=Ho(this.attributes);ns(e,t),Qr(e,this[is("0x2f")])||(this[is("0x2f")]=e,this[is("0x36")](this[is("0x2f")]))}toJSON(){return{id:this.id,type:this[is("0x14")]?this.type+":"+this[is("0x14")]:this[is("0x4")],authorId:this.creator.id,createdAt:this[is("0x31")],hasComments:this[is("0x3a")],data:this[is("0x26")],attributes:this[is("0x2f")]}}static getMultiRangeId(){return(0,e.uid)()[is("0x6")](1,5)}}function as(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n)}}(0,e.mix)(xs,e.ObservableMixin);const cs=["$1 $2","registerDescriptionCallback","push","*Split:* %0","textProxy","Container","isEmpty","start","addObject","_resolveDescriptionItems","elementEnd","get","_customCallbacks","checkChild","getFirstRange","getItemLabel","data","ELEMENT_SPACE","name","_schema","REPLACE_TEXT","match","insertion","function","*Remove:* %0","length","elementStart","removeContainer","Object","getDescriptions","element","text","isEqual","isObject","_itemLabels","end","item","remove","removeEmptyContainer","*Merge:* %0","EmptyContainer","*Insert:* %0","type","softBreak","indexOf","removeObject","quantity","registerElementLabel","_locale","nextSibling","add","_addDescriptionItems","addEmptyContainer","getWalker","matchingCallback","replace","previousSibling","_itemLabelsCallbacks","deletion","$text"];var ls,us;ls=cs,us=304,function(t){for(;--t;)ls.push(ls.shift())}(++us);const ds=function(t,e){return cs[t-=0]};class gs{constructor(t,e){this[ds("0x8")]=[],this[ds("0x1e")]=new Map,this._itemLabelsCallbacks=[],this[ds("0xf")]=t,this._locale=e}[ds("0x19")](t){const e=[];for(let n=0;n<t[ds("0x15")];n++){const o=t[n];if(!o.isInContent)continue;let r=!1;for(const t of this[ds("0x8")]){const n=t(o);if(n){n[ds("0x26")]&&e[ds("0x3a")](n),r=!0;break}}if(!r){this[ds("0x2f")](e,o);const r=t[n+1];if(r&&!o[ds("0xa")]()[ds("0x1f")][ds("0x1c")](r[ds("0xa")]()[ds("0x3")])){const t=e[e[ds("0x15")]-1],n=ds("0x12")==o[ds("0x26")]?ds("0x2e"):"remove";t&&"text"==t[ds("0x26")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[ds("0x39")](t){this[ds("0x8")][ds("0x3a")](t)}[ds("0x2b")](t,n,o=e.priorities.normal){ds("0x13")==typeof t?(0,e.insertToPriorityArray)(this[ds("0x35")],{matchingCallback:t,label:n,priority:o}):this[ds("0x1e")].set(t,n)}[ds("0xb")](t,e=1){let n;for(const e of this[ds("0x35")])if(e[ds("0x32")](t)){n=e.label;break}return n||(n=this[ds("0x1e")][ds("0x7")](t[ds("0xe")])),n?n(e):1!==e?e+" "+t[ds("0xe")]+"s":""+t[ds("0xe")]}_addDescriptionItems(t,e){const n=e[ds("0xa")]()[ds("0x31")](),o=ds("0x12")==e[ds("0x26")]?ds("0x2e"):"remove";for(const e of n){const r=e.item,s=t[t[ds("0x15")]-1];if(r.is(ds("0x0")))s&&s[ds("0x26")].indexOf("Container")>-1&&t.pop(),s&&ds("0x1b")==s[ds("0x26")]?s[o]+=r[ds("0xc")]:t[ds("0x3a")]({type:ds("0x1b"),add:ds("0x2e")==o?r[ds("0xc")]:"",remove:ds("0x21")==o?r.data:""});else if(this._schema.isObject(r)){if(s&&s.type[ds("0x28")](ds("0x1"))>-1&&t.pop(),ds("0x6")==e[ds("0x26")])continue;s&&s[ds("0x26")]==o+ds("0x18")&&s[ds("0x1a")].name==r[ds("0xe")]?s[ds("0x2a")]++:t[ds("0x3a")]({type:o+ds("0x18"),element:r,quantity:1}),n.skip((t=>!(ds("0x6")==t[ds("0x26")]&&t[ds("0x20")]==r)))}else if(this._schema[ds("0x9")](r,ds("0x37"))||r.is("element",ds("0x27"))){if(ds("0x2e")==o&&ds("0x16")==e[ds("0x26")]||ds("0x21")==o&&"elementEnd"==e[ds("0x26")])continue;if(s&&-1==s[ds("0x26")][ds("0x28")](ds("0x1"))){ds("0x1b")==s[ds("0x26")]&&(s[o]+="\n");continue}let n;if(n=ds("0x2e")==o?r[ds("0x2d")]&&!this._schema.isObject(r.nextSibling)?r.nextSibling:null:r[ds("0x34")]&&!this[ds("0xf")][ds("0x1d")](r[ds("0x34")])?r[ds("0x34")]:null,r[ds("0x2")]||n&&n.isEmpty){const e=n&&n.isEmpty?n:r;s&&s[ds("0x26")]==o+ds("0x24")&&s[ds("0x1a")][ds("0xe")]==e.name?s.quantity++:t[ds("0x3a")]({type:o+ds("0x24"),element:e,quantity:1})}else t[ds("0x3a")]({type:o+ds("0x1"),element:r})}}}[ds("0x5")](t){const e=this[ds("0x2c")],n=[];for(const o of t){switch(o[ds("0x26")]){case ds("0x1b"):if(o[ds("0x2e")]=o.add[ds("0x33")](/(\S)\u000A+(\S)/g,ds("0x38"))[ds("0x33")](/\u000A/g,""),o[ds("0x21")]=o[ds("0x21")][ds("0x33")](/(\S)\u000A+(\S)/g,ds("0x38")).replace(/\u000A/g,""),""!=o[ds("0x2e")]&&""!=o.remove){n[ds("0x3a")]({type:ds("0x33"),content:as(e,ds("0x10"),['"'+o[ds("0x21")]+'"','"'+o[ds("0x2e")]+'"'])});continue}if(null!=o[ds("0x2e")][ds("0x11")](/^ +$/)){n[ds("0x3a")]({type:ds("0x12"),content:as(e,ds("0x25"),as(e,ds("0xd"),o[ds("0x2e")][ds("0x15")]))});continue}if(null!=o.remove[ds("0x11")](/^ +$/)){n[ds("0x3a")]({type:ds("0x36"),content:as(e,"*Remove:* %0",as(e,"ELEMENT_SPACE",o[ds("0x21")][ds("0x15")]))});continue}if(""!=o.add){n.push({type:ds("0x12"),content:as(e,ds("0x25"),'"'+o[ds("0x2e")]+'"')});continue}n.push({type:"deletion",content:as(e,"*Remove:* %0",'"'+o[ds("0x21")]+'"')});continue;case ds("0x30"):case ds("0x4"):n[ds("0x3a")]({type:"insertion",content:as(e,ds("0x25"),this[ds("0xb")](o[ds("0x1a")],o.quantity))});continue;case ds("0x22"):case ds("0x29"):n[ds("0x3a")]({type:ds("0x36"),content:as(e,ds("0x14"),this[ds("0xb")](o[ds("0x1a")],o[ds("0x2a")]))});continue;case"addContainer":n[ds("0x3a")]({type:ds("0x12"),content:as(e,ds("0x3b"),this[ds("0xb")](o.element,o[ds("0x2a")]))});continue;case ds("0x17"):n[ds("0x3a")]({type:ds("0x36"),content:as(e,ds("0x23"),this[ds("0xb")](o.element,o[ds("0x2a")]))});continue}n.push(o)}return n}}const ms=["_descriptionFactory","schema","alignment","getSelectedBlocks","*Format:* %0","AlignmentEditing","center","plugins","filter","FORMAT_JUSTIFY_TEXT","afterInit","contentLanguageDirection","model","value","FORMAT_ALIGN_TO_CENTER","FORMAT_ALIGN_TO_LEFT","change","getAttribute","markBlockFormat","selection","document","enableCommand","commandParams","format","checkAttribute","justify","left","has","locale"];var fs,hs;fs=ms,hs=290,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ps=function(t,e){return ms[t-=0]};class bs extends t.Plugin{[ps("0xa")](){const t=this.editor,e=t[ps("0x1c")];if(!t[ps("0x7")][ps("0x1b")](ps("0x5")))return;const n=t[ps("0x7")].get("TrackChangesEditing");n[ps("0x15")]("alignment",((e,o={})=>{let r=o[ps("0xd")];o[ps("0xd")]||(r="ltr"===t[ps("0x1c")][ps("0xb")]?ps("0x1a"):"right");const s=Array.from(this.editor.model[ps("0x14")][ps("0x13")][ps("0x3")]())[ps("0x8")]((t=>function(t,e,n){const o=t[ps("0x11")](ps("0x2"))||null;return e[ps("0x18")](t,"alignment")&&n!=o}(t,this.editor[ps("0xc")][ps("0x1")],r)));t.model[ps("0x10")]((()=>{for(const t of s)n[ps("0x12")](t,{commandName:"alignment",commandParams:[{value:r}]})}))})),n[ps("0x0")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&ps("0x2")==n.commandName){const t=n[ps("0x16")][0][ps("0xd")];return{type:ps("0x17"),content:as(e,ps("0x4"),function(t){switch(t){case ps("0x1a"):return as(e,ps("0xf"));case"right":return as(e,"FORMAT_ALIGN_TO_RIGHT");case ps("0x6"):return as(e,ps("0xe"));case ps("0x19"):return as(e,ps("0x9"))}}(t))}}}))}}const Es=["isBlock","isLimit","getCustomProperty","schema","get","ck-suggestion-marker--active","markerName","isContent","getItems","hasAttribute","span","isAtEnd","toViewElement","consumable","addClass","push","elementEnd","parent","previousPosition","markerRange","writer","mapper","TrackChangesEditing","model","nextSibling","ck-suggestion-marker-","test","item","type","listIndent","name","element","addHighlight","getWalker","bindElementToMarker","toViewPosition","listItem","activeMarkers","plugins","getAttribute"];var _s,Ts;_s=Es,Ts=362,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};function ys(t,e,n){const o=[];for(const r of e[Cs("0x6")]())r[Cs("0x7")](t)&&o[Cs("0xd")](n.createRangeOn(r));return o}function ks(t){const e=[];if(t.is("element","listItem")){let n=t[Cs("0x16")];for(;n&&n.is(Cs("0x1d"),Cs("0x22"))&&n[Cs("0x25")](Cs("0x1b"))>0;)e[Cs("0xd")](n),n=n[Cs("0x16")]}return e}function As(t,e,{showActiveMarker:n=!0}={}){const o=t[Cs("0x24")][Cs("0x2")](Cs("0x14"));return(r,s,i)=>{if(!i[Cs("0xb")][Cs("0x18")](s.markerRange,r[Cs("0x1c")]))return;const x=s[Cs("0x11")][Cs("0x1f")](),a=s[Cs("0x11")].start,c=t[Cs("0x15")][Cs("0x1")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Cs("0x19")];d=d||c[Cs("0x5")](e);const n=i.mapper[Cs("0xa")](e);if(n&&n[Cs("0x0")](Cs("0x1e")))return;Cs("0xe")==t[Cs("0x1a")]&&c[Cs("0x26")](e)&&!c[Cs("0x27")](e)&&(e[Cs("0x16")]||a[Cs("0x9")]?l&&l[Cs("0xf")]==e||(l=e,m(t[Cs("0x10")]),g=!0):u=u||t[Cs("0x10")])}function m(t){const r=i[Cs("0x12")].createUIElement(Cs("0x8"),{class:Cs("0x17")+e}),x=i[Cs("0x13")][Cs("0x21")](t);n&&o[Cs("0x23")].includes(s[Cs("0x4")])&&i[Cs("0x12")][Cs("0xc")](Cs("0x3"),r),i[Cs("0x12")].insert(x,r),i[Cs("0x13")][Cs("0x20")](r,s[Cs("0x4")])}d||g||!u||m(u)}}const vs=["FORMAT_CODE","isCollapsed","FORMAT_BOLD","FORMAT_SUPERSCRIPT","code","enableCommand","get","StrikethroughEditing","registerDescriptionCallback","UnderlineEditing","*Format:* %0","forceValue","underline","format","toLowerCase","commandName","_descriptionFactory","model","commandParams","getRanges","value","ItalicEditing","selection","italic","FORMAT_UNDERLINE","TrackChangesEditing","has","FORMAT_ITALIC","plugins","subscript","markInlineFormat","from","*Remove format:* %0"];var Rs,Is;Rs=vs,Is=284,function(t){for(;--t;)Rs.push(Rs.shift())}(++Is);const Ss=function(t,e){return vs[t-=0]},Ls=["BoldEditing",Ss("0x1"),Ss("0x16"),"CodeEditing",Ss("0x14"),"SubscriptEditing","SuperscriptEditing"];class Ms extends t.Plugin{afterInit(){const t=this.editor,e=t[Ss("0x1e")],n=t[Ss("0x8")][Ss("0x13")](Ss("0x5")),o=t.locale;for(const o of Ls){if(!t[Ss("0x8")][Ss("0x6")](o))continue;const r=o.slice(0,-7)[Ss("0x1b")](),s=t.commands.get(r);n[Ss("0x12")](r,((t,o={})=>{const i=e.document[Ss("0x2")];if(i[Ss("0xe")])return void t(o);const x=void 0!==o[Ss("0x18")]?o[Ss("0x18")]:!s[Ss("0x0")];e.change((()=>{const t=Array[Ss("0xb")](i[Ss("0x20")]());for(const o of t){const t=x?[o]:ys(r,o,e);for(const e of t)n[Ss("0xa")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[Ss("0x1d")][Ss("0x15")]((n=>{const{data:r}=n;if(r&&r[Ss("0x1c")]===t)return r[Ss("0x1f")][0][Ss("0x18")]?{type:"format",content:as(o,Ss("0x17"),e)}:{type:Ss("0x1a"),content:as(o,Ss("0xc"),e)}}))}r("bold",as(o,Ss("0xf"))),r(Ss("0x3"),as(o,Ss("0x7"))),r(Ss("0x19"),as(o,Ss("0x4"))),r(Ss("0x11"),as(o,Ss("0xd"))),r("strikethrough",as(o,"FORMAT_STRIKETHROUGH")),r(Ss("0x9"),as(o,"FORMAT_SUBSCRIPT")),r("superscript",as(o,Ss("0x10")))}}const Ns=["checkChild","*Format:* %0","parent","has","*Remove format:* %0","schema","selection","commandName","blockQuote","editor","enableCommand","_descriptionFactory","forceValue","get","commandParams","TrackChangesEditing","format","from","ELEMENT_BLOCK_QUOTE","document","BlockQuoteEditing","filter","plugins","commands","getSelectedBlocks","model","locale"];var ws,Os;ws=Ns,Os=327,function(t){for(;--t;)ws.push(ws.shift())}(++Os);const Fs=function(t,e){return Ns[t-=0]};class Ps extends t.Plugin{afterInit(){const t=this.editor,e=t[Fs("0x17")];if(!t[Fs("0x13")][Fs("0x0")](Fs("0x11")))return;const n=t[Fs("0x13")][Fs("0xa")](Fs("0xc")),o=this[Fs("0x6")][Fs("0x14")].get(Fs("0x5"));n[Fs("0x7")]("blockQuote",((e,r={})=>{const s=this[Fs("0x6")][Fs("0x16")][Fs("0x10")][Fs("0x3")],i=r&&void 0!==r.forceValue?r[Fs("0x9")]:!o.value;let x=[];if(i){const e=Array[Fs("0xe")](s[Fs("0x15")]()).filter((t=>Ds(t)||function(t,e){const n=e[Fs("0x18")](t[Fs("0x1a")],Fs("0x5")),o=e[Fs("0x18")](["$root",Fs("0x5")],t);return n&&o}(t,this[Fs("0x6")][Fs("0x16")][Fs("0x2")])));x=I(e,t[Fs("0x16")])}else{const e=Array[Fs("0xe")](s[Fs("0x15")]())[Fs("0x12")]((t=>Ds(t)));x=I(e,t[Fs("0x16")])}t.model.change((()=>{for(const t of x)n.markBlockFormat(t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[Fs("0x8")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Fs("0x5")==n[Fs("0x4")]){const t=as(e,Fs("0xf"));return n[Fs("0xb")][0][Fs("0x9")]?{type:"format",content:as(e,Fs("0x19"),t)}:{type:Fs("0xd"),content:as(e,Fs("0x1"),t)}}}))}}function Ds(t){return Fs("0x5")==t[Fs("0x1a")].name}const Bs=["editor","enableCommand","commands","get","plugins","ckbox","afterInit"];var js,Us;js=Bs,Us=157,function(t){for(;--t;)js.push(js.shift())}(++Us);const Gs=function(t,e){return Bs[t-=0]};class Hs extends t.Plugin{[Gs("0x3")](){const t=this[Gs("0x4")];t[Gs("0x6")][Gs("0x0")](Gs("0x2"))&&t[Gs("0x1")].get("TrackChangesEditing")[Gs("0x5")]("ckbox")}}const Ws=["config","ELEMENT_CODE_BLOCK","registerElementLabel","value","from","*Format:* %0","formatBlock","codeBlock","filter","CodeBlock","registerDescriptionCallback","forceValue","model","outdentCodeBlock","languages","commandParams","rootElement","schema","format","find","blockName","get","_descriptionFactory","has","plugins","getSelectedBlocks","document","label","enableCommand","*Remove format:* %0","TrackChangesEditing","selection","language","indentCodeBlock"];var Vs,zs;Vs=Ws,zs=329,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ks=function(t,e){return Ws[t-=0]};class qs extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Ks("0x0")](Ks("0x14")))return;const e=t[Ks("0x1")].get(Ks("0x7")),n=t.locale,o=t[Ks("0xb")][Ks("0x20")](Ks("0x12"))[Ks("0x19")],r=t.commands[Ks("0x20")](Ks("0x12"));e[Ks("0x5")](Ks("0xa")),e[Ks("0x5")](Ks("0x18")),e[Ks("0x5")](Ks("0x12"),((n,s={})=>{const i=t.model,x=t[Ks("0x17")][Ks("0x3")][Ks("0x8")],a=s&&void 0!==s[Ks("0x16")]?s.forceValue:!r[Ks("0xe")];let c;s[Ks("0x9")]||(s[Ks("0x9")]=o[0][Ks("0x9")]),c=a?Array.from(x[Ks("0x2")]())[Ks("0x13")]((t=>{return Xs(t)||(e=t,n=i[Ks("0x1c")],!e.is(Ks("0x1b"))&&!n.isLimit(e)&&n.checkChild(e.parent,Ks("0x12")));var e,n})):Array[Ks("0xf")](x.getSelectedBlocks())[Ks("0x13")]((t=>Xs(t)));const l=I(c,i);i.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:"codeBlock",commandParams:[{...s,forceValue:a}],formatGroupId:Ks("0x1f")})}))})),e[Ks("0x21")][Ks("0xd")](Ks("0x12"),(t=>as(n,Ks("0xc"),t))),e[Ks("0x21")][Ks("0x15")]((t=>{const{type:e,data:r}=t;if(Ks("0x11")==e&&r&&"codeBlock"==r.commandName){const t=r[Ks("0x1a")][0].language,e=o[Ks("0x1e")]((e=>e[Ks("0x9")]===t))[Ks("0x4")],s=n._t(e);return r[Ks("0x1a")][0].forceValue?{type:Ks("0x1d"),content:as(n,Ks("0x10"),as(n,Ks("0xc"),1)+" ("+s+")")}:{type:Ks("0x1d"),content:as(n,Ks("0x6"),as(n,Ks("0xc"),1))}}}))}}function Xs(t){return Ks("0x12")==t.name}const $s=["afterInit","has","enableCommand","CommentsEditing","addCommentThread"];var Qs,Js;Qs=$s,Js=208,function(t){for(;--t;)Qs.push(Qs.shift())}(++Js);const Zs=function(t,e){return $s[t-=0]};class Ys extends t.Plugin{[Zs("0x2")](){const t=this.editor;t.plugins[Zs("0x3")](Zs("0x0"))&&t.plugins.get("TrackChangesEditing")[Zs("0x4")](Zs("0x1"))}}var ti=n(181);const ei=["merge","deleteForward","delete","uiElement","downcastDispatcher","end","start","plugins","editing","markerName","modifySelection","isCollapsed","buffer","lock","fromRange","high","enqueueChange","TrackChangesEditing","root","commands","enableCommand","$graveyard","selection","addMarker:suggestion:deletion","unit","removeMarker:suggestion:deletion","createRange","mapper","createSelection","init","setSelection","data","get","remove","model"];var ni,oi;ni=ei,oi=217,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class si extends t.Plugin{static get requires(){return[ti.Delete]}[ri("0x16")](){const t=this.editor,e=t[ri("0x0")][ri("0x19")](ri("0xa"));e.enableCommand(ri("0x1e"));const n=t[ri("0xc")][ri("0x19")](ri("0x1d"));e[ri("0xd")](ri("0x1d"),((e,o={})=>{const r=t.model[ri("0x15")](t[ri("0x1b")].document[ri("0xf")]);r[ri("0x4")]&&t[ri("0x1b")][ri("0x3")](r,{direction:"forward",unit:o[ri("0x11")]});const s=r.getFirstRange(),x=i.LiveRange[ri("0x7")](s);let a;e(o),a=ri("0xe")==x[ri("0xb")].rootName?t[ri("0x1b")][ri("0x13")](s[ri("0x22")]):t[ri("0x1b")][ri("0x13")](x[ri("0x22")],x[ri("0x21")]),x.detach(),t[ri("0x1b")][ri("0x9")](n.buffer.batch,(t=>{n[ri("0x5")][ri("0x6")](),t[ri("0x17")](t.createRange(a[ri("0x21")])),n[ri("0x5")].unlock()}))})),t[ri("0x1")][ri("0x20")].on(ri("0x10"),As(t,ri("0x1c")),{priority:ri("0x8")}),t[ri("0x18")][ri("0x20")].on("addMarker:suggestion:deletion",((e,n,o)=>{o.options.showSuggestionHighlights&&As(t,ri("0x1c"),{showActiveMarker:!1})(e,n,o)}),{priority:ri("0x8")}),t.editing[ri("0x20")].on(ri("0x12"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[ri("0x2")]);if(o)for(const t of o)t.is(ri("0x1f"))&&(n[ri("0x14")].unbindElementFromMarkerName(t,e[ri("0x2")]),n.writer[ri("0x1a")](t))}),{priority:ri("0x8")})}}const ii=["nextSibling","value","editor","toUpperCase","listType","start","registerDescriptionCallback","execute","getRanges","createRange","markMultiRangeBlockFormat","selection","createPositionAt","mergeListItemForward","*Outdent:* %0","format","commandParams","TrackChangesEditing","nodeAfter","map","commandName","_LIST","*Format:* remove from %0","registerCustomCallback","isObject","next","splitListItemBefore","getSelectedBlocks","document","parent","ELEMENT_LIST_ITEM","*Change to:* %0","from","accept","get","previousSibling","getFirstRange","documentList","numberedList","model","change","refresh","markBlockFormat","outdentList","indentList","length","setSelection","ELEMENT_","detach","registerElementLabel","plugins","end","findIndex","has","commands","deletion","forceValue","push","fromRange","before","locale","multipleBlocks","isFirstBlockOfListItem","*Format:* insert into %0","afterInit","_descriptionFactory","ELEMENT_BULLETED_LIST","enableCommand","slice","expandListBlocksToCompleteList","after","listItemId","getAttribute","splitListItemAfter","bulletedList","listIndent","*Indent:* %0"];var xi,ai;xi=ii,ai=208,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return ii[t-=0]};class li extends t.Plugin{[ci("0xa")](){const t=this[ci("0x19")];if(!t[ci("0x49")][ci("0x4c")]("DocumentListEditing"))return;const e=t[ci("0x6")],n=t[ci("0x49")][ci("0x39")](ci("0x28")),o=t[ci("0x49")][ci("0x39")]("DocumentListUtils");function r(e){return()=>{const r=t[ci("0x0")].get(e);let s=Array[ci("0x37")](t[ci("0x3e")].document[ci("0x22")].getSelectedBlocks());if(a(e)){s=o[ci("0xf")](s);const t=[];for(const e of s)o[ci("0x8")](e)&&t[ci("0x3")](e);s=t}t[ci("0x3e")][ci("0x3f")]((()=>{n[ci("0x21")](s,{commandName:e,commandParams:[{forceValue:!r[ci("0x18")]}],formatGroupId:ci("0x1b")},[],"documentList")}))}}function s(e){return()=>{const o=function(t){const e=(t=Array[ci("0x37")](t))[ci("0x4b")]((t=>!t.hasAttribute("listItemId")));return e>-1&&(t=t[ci("0xe")](0,e)),t}(t[ci("0x3e")][ci("0x33")].selection[ci("0x32")]()),r=o[o[ci("0x44")]-1],s=t.model.schema.isObject(r)?ci("0x10"):ci("0x4a"),i=t[ci("0x3e")][ci("0x20")](t.model.createPositionAt(o[0],ci("0x5")),t[ci("0x3e")][ci("0x23")](r,s));t[ci("0x3e")][ci("0x3f")]((()=>{n[ci("0x41")](i,{commandName:e,commandParams:[],formatGroupId:ci("0x1b")},function(t){const e=new Set;for(const n of t){let t=n[ci("0x17")];for(;t&&t[ci("0x12")](ci("0x15"))>n[ci("0x12")](ci("0x15"));)e.add(t),t=t.nextSibling}return Array[ci("0x37")](e)}(o))}))}}function x(e){return()=>{const o=t[ci("0x3e")][ci("0x33")].selection.getSelectedBlocks()[ci("0x30")]()[ci("0x18")],r=t[ci("0x3e")][ci("0x23")](o,ci("0x5")),s=t[ci("0x3e")][ci("0x23")](o,0),i=t[ci("0x3e")].createRange(r,s);t[ci("0x3e")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:ci("0x1b")})}))}}function a(e){const n=t.commands[ci("0x39")](ci("0x14")).value,o=t[ci("0x0")][ci("0x39")]("numberedList")[ci("0x18")];return ci("0x3d")===e?n:o}n[ci("0xd")](ci("0x3d"),r(ci("0x3d"))),n[ci("0xd")]("bulletedList",r(ci("0x14"))),n[ci("0xd")]("indentList",s(ci("0x43"))),n[ci("0xd")](ci("0x42"),s(ci("0x42"))),n[ci("0xd")](ci("0x13"),x(ci("0x13"))),n.enableCommand(ci("0x31"),x(ci("0x31"))),n[ci("0xb")][ci("0x48")]((function(e){const n=!t[ci("0x3e")].schema[ci("0x2f")](e),o=e[ci("0x3a")],r=e[ci("0x17")],s=e[ci("0x12")](ci("0x11")),i=!o||o[ci("0x12")](ci("0x11"))!==s,x=!r||r[ci("0x12")](ci("0x11"))!==s;return n&&s&&i&&x}),(t=>as(e,ci("0x35"),t))),n._descriptionFactory[ci("0x1d")]((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n[ci("0x2b")]){case ci("0x14"):s=n[ci("0x27")][0].forceValue,i=a(n[ci("0x2b")]),o=ci(s?"0x9":"0x2d"),i&&(o=ci("0x36")),r={type:"format",content:as(e,o,as(e,ci("0xc")))};break;case ci("0x3d"):s=n[ci("0x27")][0][ci("0x2")],i=a(n[ci("0x2b")]),o=ci(s?"0x9":"0x2d"),i&&(o=ci("0x36")),r={type:ci("0x26"),content:as(e,o,as(e,"ELEMENT_NUMBERED_LIST"))};break;case"indentList":o=ci("0x16"),r={type:ci("0x26"),content:as(e,o,as(e,ci("0x35")))};break;case ci("0x42"):o=function(t){const e=t[ci("0x3b")]();let n=e.start[ci("0x29")];for(;n&&e.containsItem(n);){if(n[ci("0x12")](ci("0x15"))>0)return!1;n=n[ci("0x17")]}return!0}(t)?as(e,ci("0x2d"),as(e,function(t){const e=t[ci("0x3b")]()[ci("0x1c")][ci("0x29")];return ci("0x46")+e.getAttribute(ci("0x1b"))[ci("0x1a")]()+ci("0x2c")}(t))):as(e,ci("0x25"),as(e,"ELEMENT_LIST_ITEM")),r={type:ci("0x26"),content:o};break;case"mergeListItemBackward":case ci("0x24"):!1===n[ci("0x7")]&&(o="*Merge:* %0",r={type:ci("0x1"),content:as(e,o,as(e,ci("0x35")))})}return r})),n._suggestionFactory[ci("0x2e")]("formatBlock",ci("0x3c"),ci("0x38"),(function(e,n){const o=[];for(let n of e)n[ci("0x1c")].nodeAfter===n[ci("0x4a")][ci("0x34")]&&(n=t[ci("0x3e")][ci("0x20")](t.model.createPositionAt(n.start.nodeAfter,0))),o[ci("0x3")](n);t[ci("0x3e")][ci("0x3f")]((e=>{const r=t[ci("0x3e")].document[ci("0x22")],s=Array[ci("0x37")](r[ci("0x1f")]())[ci("0x2a")]((t=>i.LiveRange[ci("0x4")](t)));e.setSelection(o),t[ci("0x0")][ci("0x39")](n[ci("0x2b")])[ci("0x40")](),n[ci("0x27")][ci("0x3")]({forceDefaultExecution:!0}),t[ci("0x1e")](n[ci("0x2b")],...n[ci("0x27")]),e[ci("0x45")](s);for(const t of s)t[ci("0x47")]()}))}))}}var ui=n(331);const di=["parent","init","end","editor","showSuggestionHighlights","split","editing","enter","downcastDispatcher","requires","markerNameToElements","get","plugins","markerName","addMarker:suggestion:insertion","detach","hasClass","model","document","data","afterExecute","remove","fromRange","mapper","getFirstPosition","enableCommand","getFirstRange","setSelection","high","createPositionAt","selection","createRange","ck-suggestion-marker-split","TrackChangesEditing","removeMarker:suggestion:insertion","change","commands"];var gi,mi;gi=di,mi=399,function(t){for(;--t;)gi.push(gi.shift())}(++mi);const fi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[fi("0x11")](){return[ui.Enter]}[fi("0x9")](){const t=this[fi("0xb")],e=t[fi("0x14")][fi("0x13")](fi("0x4")),n=t[fi("0x7")].get(fi("0xf"));e[fi("0x21")](fi("0xf"),(()=>{t[fi("0x19")][fi("0x6")]((o=>{const r=t[fi("0x19")][fi("0x1a")][fi("0x1")],s=r[fi("0x20")](),x=i.LiveRange[fi("0x1e")](r[fi("0x22")]());if(n.enterBlock(o)){const n=t[fi("0x19")][fi("0x0")](s[fi("0x8")].nextSibling,0),r=o.createRange(s,n);e.markInsertion(r)}else o[fi("0x23")](o[fi("0x2")](x[fi("0xa")]));x[fi("0x17")](),n.fire(fi("0x1c"),{writer:o})}))})),t[fi("0xe")].downcastDispatcher.on(fi("0x16"),As(t,fi("0xd")),{priority:"high"}),t[fi("0xe")].downcastDispatcher.on(fi("0x5"),((t,e,n)=>{const o=n[fi("0x1f")][fi("0x12")](e.markerName);if(o)for(const t of o)t[fi("0x18")](fi("0x3"))&&(n[fi("0x1f")].unbindElementFromMarkerName(t,e[fi("0x15")]),n.writer[fi("0x1d")](t))}),{priority:fi("0x24")}),t[fi("0x1b")][fi("0x10")].on(fi("0x16"),((e,n,o)=>{o.options[fi("0xc")]&&As(t,fi("0xd"),{showActiveMarker:!1})(e,n,o)}),{priority:fi("0x24")})}}const pi=["editor","replace","createPositionAt","find","start","FindAndReplaceEditing","enableCommand","end","get","getRange","suggestion:deletion","has","plugins","item","handleFindCommand","getIntersection","string","model","findByTextCallback","_isInDeletionRange","findPrevious","replaceAll","filter","findNext","TrackChangesEditing"];var bi,Ei;bi=pi,Ei=408,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{afterInit(){if(!this[_i("0x11")][_i("0x4")][_i("0x3")](_i("0x16")))return;const t=this[_i("0x11")].plugins[_i("0x0")](_i("0x10"));t[_i("0x17")](_i("0x14"),this[_i("0x6")].bind(this)),t[_i("0x17")](_i("0xf")),t[_i("0x17")](_i("0xc")),t[_i("0x17")](_i("0x12")),t[_i("0x17")](_i("0xd"))}handleFindCommand(t,e,n){const o=this[_i("0x11")][_i("0x4")][_i("0x0")]("FindAndReplaceUtils");void 0!==n&&t((t=>(_i("0x8")==typeof e?o[_i("0xa")](e,n):e)(t)[_i("0xe")]((e=>!1===this[_i("0xb")](e,t[_i("0x5")])))),n)}[_i("0xb")](t,e){const n=this[_i("0x11")][_i("0x9")].createRange(this[_i("0x11")][_i("0x9")][_i("0x13")](e,t[_i("0x15")]),this[_i("0x11")][_i("0x9")][_i("0x13")](e,t[_i("0x18")]));for(const t of this.editor[_i("0x9")].markers.getMarkersGroup(_i("0x2")))if(null!==n[_i("0x7")](t[_i("0x1")]()))return!0;return!1}}const Ci=["*Set font family:* %0","markInlineFormat","toLowerCase","FontBackgroundColorEditing","commandParams","fontSize.options","model","fontBackgroundColor","get","*Reset font background color*","value","afterInit","FontSizeEditing","selection","normalizeSizeOptions","plugins","fontColor.colors","*Set font background color:* %0","_descriptionFactory","editor","trim","fontColor","TrackChangesEditing","from","FontFamilyEditing","config","title","label","format","document","fontFamily","locale","find","_enableCommand","fontSize","commandName","enableCommand","FontColorEditing","getRanges","fontBackgroundColor.colors","change","FontSize","*Set font color:* %0","has","*Set font size:* %0","*Reset font color*"];var yi,ki;yi=Ci,ki=398,function(t){for(;--t;)yi.push(yi.shift())}(++ki);const Ai=function(t,e){return Ci[t-=0]},vi=[{pluginName:Ai("0x1c"),commandName:Ai("0x4")},{pluginName:Ai("0x28"),commandName:Ai("0x0")},{pluginName:Ai("0x7"),commandName:Ai("0x25")},{pluginName:Ai("0x13"),commandName:Ai("0x17")}];class Ri extends t.Plugin{[Ai("0x1b")](){const t=this[Ai("0x23")][Ai("0x1")];for(const{pluginName:t,commandName:e}of vi)this[Ai("0x23")][Ai("0x1f")][Ai("0xd")](t)&&this[Ai("0x3")](e);this[Ai("0x23")][Ai("0x1f")][Ai("0x18")]("TrackChangesEditing")[Ai("0x22")].registerDescriptionCallback((e=>{const{data:n}=e;if(null!=n){if(Ai("0x4")==n.commandName){const e=n.commandParams[0][Ai("0x1a")];if(e){const n=this[Ai("0x23")][Ai("0x1f")][Ai("0x18")](Ai("0xb"))[Ai("0x1e")](this[Ai("0x23")][Ai("0x29")].get(Ai("0x15")))[Ai("0x2")]((t=>t.model==e))[Ai("0x2a")],o=this[Ai("0x23")][Ai("0x1")]._t(n)[Ai("0x12")]();return{type:Ai("0x2c"),content:as(t,Ai("0xe"),o)}}return{type:Ai("0x2c"),content:as(t,"*Reset font size*")}}if(Ai("0x0")==n[Ai("0x5")]){const e=n[Ai("0x14")][0][Ai("0x1a")];return e?{type:Ai("0x2c"),content:as(t,Ai("0x10"),e)}:{type:Ai("0x2c"),content:as(t,"*Reset font family*")}}if(Ai("0x25")==n.commandName){const e=n[Ai("0x14")][0][Ai("0x1a")];if(e){const n=(0,r.normalizeColorOptions)(this[Ai("0x23")][Ai("0x29")][Ai("0x18")](Ai("0x20")))[Ai("0x2")]((t=>t.model==e));let o=e,s="";return n&&(o=n[Ai("0x2b")],s=t._t(o).toLowerCase()),{type:Ai("0x2c"),content:as(t,Ai("0xc"),s).trim(),color:{value:e,title:s||o}}}return{type:"format",content:as(t,Ai("0xf"))}}if(Ai("0x17")==n[Ai("0x5")]){const e=n[Ai("0x14")][0].value;if(e){const n=(0,r.normalizeColorOptions)(this[Ai("0x23")][Ai("0x29")][Ai("0x18")](Ai("0x9")))[Ai("0x2")]((t=>t[Ai("0x16")]==e));let o=e,s="";return n&&(o=n.label,s=t._t(o)[Ai("0x12")]()),{type:"format",content:as(t,Ai("0x21"),s)[Ai("0x24")](),color:{value:e,title:s||o}}}return{type:Ai("0x2c"),content:as(t,Ai("0x19"))}}}}))}[Ai("0x3")](t){const e=this[Ai("0x23")];e[Ai("0x1f")][Ai("0x18")](Ai("0x26"))[Ai("0x6")](t,((n,o={})=>{const r=e.model[Ai("0x2d")][Ai("0x1d")],s=o.value;r.isCollapsed?n(o):e[Ai("0x16")][Ai("0xa")]((()=>{const n=Array[Ai("0x27")](r[Ai("0x8")]());for(const o of n){const n=s?[o]:ys(t,o,e[Ai("0x16")]);for(const o of n)e.plugins[Ai("0x18")](Ai("0x26"))[Ai("0x11")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Ii=["match","registerElementLabel","heading","_descriptionFactory","afterInit","commandParams","from","HeadingEditing","schema","heading.options","enableCommand","ELEMENT_HEADING","ELEMENT_HEADING_CUSTOM","paragraph","registerDescriptionCallback","*Change to:* %0","model","format","selection","config","parent","editor","markBlockFormat","change","document","get","find","name","title","value"];var Si,Li;Si=Ii,Li=493,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Mi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[Mi("0x15")](){const t=this.editor,e=t.locale,n=t[Mi("0x6")][Mi("0xc")](Mi("0x1a"));if(!t.plugins.has(Mi("0x18")))return;const o=t.plugins.get("TrackChangesEditing");o[Mi("0x1b")](Mi("0x13"),((e,n)=>{const r=n[Mi("0x10")],s=Array[Mi("0x17")](this[Mi("0x8")][Mi("0x3")][Mi("0xb")][Mi("0x5")].getSelectedBlocks()).filter((t=>{return e=t,n=r,(o=this[Mi("0x8")][Mi("0x3")][Mi("0x19")]).checkChild(e[Mi("0x7")],n)&&!o.isObject(e)&&e[Mi("0xe")]!=n;var e,n,o}));t.model[Mi("0xa")]((()=>{for(const t of s)o[Mi("0x9")](t,{commandName:"heading",commandParams:[n],formatGroupId:"blockName"},ks(t))}))}));for(const t of n)Mi("0x0")!=t[Mi("0x3")]&&o[Mi("0x14")][Mi("0x12")](t.model,(e=>{const n=wi(t[Mi("0x3")]);return null!==n?r(e,n):s(e,t.title)}));function r(t,n){return as(e,Mi("0x1c"),[t,n])}function s(t,n){return as(e,Mi("0x1d"),[t,n])}o[Mi("0x14")][Mi("0x1")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&Mi("0x13")==i.commandName){const t=i[Mi("0x16")][0][Mi("0x10")],o=wi(t);if(null!==o)return{type:Mi("0x4"),content:as(e,Mi("0x2"),r(1,o))};const x=n[Mi("0xd")]((e=>e[Mi("0x3")]===t))[Mi("0xf")];return{type:Mi("0x4"),content:as(e,"*Change to:* %0",s(1,x))}}}))}}function wi(t){const e=t[Mi("0x11")](/^heading(\d+)$/);return e?e[1]:null}const Oi=["document","getLastMatchingPosition","selection","formatInline","has","registerDescriptionCallback","*Remove highlight*","*Set highlight:* %0","change","model","_descriptionFactory","getAttribute","color","toLowerCase","locale","find","config","enableCommand","editor","afterInit","FORMAT_HIGHLIGHT","HighlightEditing","createRange","push","plugins","commandName","get","format","getRanges","TrackChangesEditing","highlight","highlight.options","title","value","isCollapsed"];var Fi,Pi;Fi=Oi,Pi=300,function(t){for(;--t;)Fi.push(Fi.shift())}(++Pi);const Di=function(t,e){return Oi[t-=0]};class Bi extends t.Plugin{[Di("0x22")](){const t=this[Di("0x21")];if(!t.plugins[Di("0x13")](Di("0x1")))return;const e=t[Di("0x4")][Di("0x6")](Di("0x9"));e[Di("0x20")](Di("0xa"),((n,o={})=>{const r=t[Di("0x18")][Di("0xf")][Di("0x11")],s=r.getAttribute(Di("0xa"));let i=o[Di("0xd")],x=[];if(r[Di("0xe")]){const e=r.getFirstPosition();if(!r.hasAttribute(Di("0xa")))return void n(o);{const n=t=>t.item[Di("0x1a")](Di("0xa"))===s,o=e[Di("0x10")](n,{direction:"backward"}),r=e[Di("0x10")](n);x=[t.model[Di("0x2")](o,r)],i==s&&(i=null)}}else for(const e of r[Di("0x8")]())i?x[Di("0x3")](e):x.push(...ys(Di("0xa"),e,t[Di("0x18")]));t[Di("0x18")][Di("0x17")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Di("0xa"),commandParams:[{value:i}]})}))}));const n=t[Di("0x1d")];e[Di("0x19")][Di("0x14")]((e=>{const{type:o,data:r}=e;if(Di("0x12")==o&&r&&Di("0xa")==r[Di("0x5")]){const e=r.commandParams[0][Di("0xd")];if(e){const o=t[Di("0x1f")][Di("0x6")](Di("0xb"))[Di("0x1e")]((t=>t[Di("0x18")]==e)),r=n._t(o[Di("0xc")])[Di("0x1c")]();return{type:"format",content:as(n,Di("0x16"),r),color:{value:o[Di("0x1b")],title:o[Di("0xc")]}}}return{type:Di("0x7"),content:as(n,Di("0x15"),as(n,Di("0x0")))}}}))}}const ji=["dataDowncast","high","TrackChangesEditing","conversion","locale","insert","HorizontalLineEditing","horizontalLine","get","for","addClass","registerElementLabel","enableCommand","createContainerElement","plugins","ck-horizontal-line","editor","elementToStructure"];var Ui,Gi;Ui=ji,Gi=189,function(t){for(;--t;)Ui.push(Ui.shift())}(++Gi);const Hi=function(t,e){return ji[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[Hi("0x7")];if(!t[Hi("0x5")].has(Hi("0xf")))return;t.plugins[Hi("0x11")](Hi("0xb"))[Hi("0x3")]("horizontalLine");const e=t[Hi("0x5")][Hi("0x11")](Hi("0xb")),n=t[Hi("0xd")];e._descriptionFactory[Hi("0x2")](Hi("0x10"),(t=>as(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Hi("0xc")][Hi("0x0")](Hi("0x9"))[Hi("0x8")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return;const o=e[Hi("0x4")]("div"),r=e.createEmptyElement("hr");return e[Hi("0x1")](Hi("0x6"),o),e[Hi("0xe")](e.createPositionAt(o,0),r),o},converterPriority:Hi("0xa")})}}const Vi=["TrackChangesEditing","has","htmlEmbed","editing","commandName","element","registerDescriptionCallback","document","getSelectedElement","locale","HtmlEmbed","ELEMENT_HTML_EMBED","enableCommand","value","afterInit","plugins","model","_descriptionFactory","getCustomProperty","cancel","view","selection","registerElementLabel","rawHtml","get"];var zi,Ki;zi=Vi,Ki=245,function(t){for(;--t;)zi.push(zi.shift())}(++Ki);const qi=function(t,e){return Vi[t-=0]};class Xi extends t.Plugin{[qi("0x13")](){const t=this.editor;if(!t.plugins[qi("0x6")](qi("0xf")))return;const e=t[qi("0x14")][qi("0x4")](qi("0x5")),n=t[qi("0xe")],o=t[qi("0x8")][qi("0x0")][qi("0xc")][qi("0x1")];e._descriptionFactory[qi("0x2")](qi("0x3"),(t=>as(n,qi("0x10"),t))),t.plugins[qi("0x4")]("TrackChangesEditing")[qi("0x11")](qi("0x7"),((n,r)=>{const s=t[qi("0x15")],i=s[qi("0xc")][qi("0x1")];s.change((()=>{const t=function(t){const e=t[qi("0xd")]();return e&&e.is(qi("0xa"),"rawHtml")?t[qi("0xd")]():null}(i);if(!t)return void n(null);const s=t.getAttribute(qi("0x12"))||"";void 0!==r&&r!==s&&(e.markBlockFormat(t,{commandName:qi("0x7"),commandParams:[r]}),o.getSelectedElement()[qi("0x17")]("rawHtmlApi")[qi("0x18")]())}))})),e[qi("0x16")][qi("0xb")]((t=>{const{data:e}=t;if(e&&qi("0x7")==e[qi("0x9")]){const t=as(n,"ELEMENT_HTML_EMBED");return{type:"format",content:as(n,"*Change %0 content*",t)}}}))}}const $i=["plugins","filter","refresh","toPrevious","next","isOwn","title","subType","ImageBlockEditing","isInlineImage","afterInit","getClosestSelectedImageElement","suggestion","editor","markDeletion","TrackChangesEditing","*Remove image text alternative*","discard","isBefore","getFirstRange","newValue","newRange","registerCustomCallback","Inline image to block image","ImageStyleEditing","resizeImage","from","getSuggestions","head","registerDescriptionCallback","has","fromPosition","isEqual","imageStylePreApply","value","Users","alt","findIndex","forceDefaultExecution","getChangedMarkers","isBlockImage","ImageTextAlternativeEditing","element","ELEMENT_CAPTION","getContainedElement","imageTypeInline","toLowerCase","createRange","getAttribute","*Reset image width*","getSuggestionCallback","normalizedStyles","end","createRangeOn","isInContent","ImageUtils","imageStylePostApply","width","ImageCaptionEditing","FORMAT_SIDE_IMAGE","markInlineFormat","convertBlockImageToInline","commandName","isIntersecting","type","Block image to inline image","addObject","format","find","commandReversedParams","imageStyle","accept","imageTypeBlock","markInsertion","get","ELEMENT_IMAGE","ImageUploadEditing","markBlockFormat","imageCaption","chain","commandParams","*Format:* %0","schema","toNext","_suggestionFactory","isCollapsed","formatBlock","getSuggestion","start","join","discardSuggestion","previous","ImageCaptionUtils","_splitMarkerName","detach","author","formatInline","getNearestSelectionRange","registerElementLabel","registerPostFixer","backward","convertInlineImageToBlock","locale","ELEMENT_INLINE_IMAGE","enableCommand","document","insertImage","insertion","change","selection","*Set image text alternative:* %0","ImageEditing","imageTextAlternative","_descriptionFactory","length","_findSuggestions","imageBlock","model","getCaptionFromImageModelElement","imageInline","commands","forEach","caption"];var Qi,Ji;Qi=$i,Ji=452,function(t){for(;--t;)Qi.push(Qi.shift())}(++Ji);const Zi=function(t,e){return $i[t-=0]};class Yi extends t.Plugin{[Zi("0x32")](){const t=this[Zi("0x35")];if(!t.plugins[Zi("0x46")](Zi("0x1c")))return;const n=t.plugins[Zi("0x72")](Zi("0x37")),o=t.plugins[Zi("0x72")](Zi("0x5f")),r={},s=t[Zi("0x13")];if(n[Zi("0x15")](Zi("0x17")),n[Zi("0x1e")][Zi("0xf")](Zi("0x21"),(t=>as(s,Zi("0x73"),t))),n[Zi("0x1e")].registerElementLabel(Zi("0x24"),(t=>as(s,Zi("0x14"),t))),n[Zi("0x1e")][Zi("0xf")](Zi("0x27"),(()=>as(s,Zi("0x53")))),t[Zi("0x28")].has(Zi("0x74"))&&n.enableCommand("uploadImage"),t[Zi("0x28")][Zi("0x46")](Zi("0x30"))&&t[Zi("0x28")].has("ImageInlineEditing")&&(n[Zi("0x15")](Zi("0x55"),((e,r)=>{const s=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]);t[Zi("0x22")][Zi("0x19")]((()=>{n[Zi("0x75")](s,{commandName:Zi("0x55"),commandParams:[r]},[],Zi("0x65"))}))})),n[Zi("0x15")](Zi("0x70"),((e,r)=>{t[Zi("0x22")].change((s=>{let x=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]),a=s[Zi("0x5d")](x);const c=i.LivePosition[Zi("0x47")](a[Zi("0x5")],Zi("0x2b")),l=i.LivePosition[Zi("0x47")](a[Zi("0x5c")],Zi("0x0"));n[Zi("0x4e")]((()=>e(r))),x=o.getClosestSelectedImageElement(t[Zi("0x22")].document.selection),a=s[Zi("0x5d")](x);const u=s[Zi("0x57")](c,l);c[Zi("0xb")](),l[Zi("0xb")](),n[Zi("0x75")](x,{commandName:Zi("0x55")},[],"convertInlineImageToBlock"),u[Zi("0x5")].isBefore(a.start)&&n[Zi("0x71")](s[Zi("0x57")](u[Zi("0x5")],a[Zi("0x5")]),Zi("0x12")),a[Zi("0x5c")][Zi("0x3a")](u.end)&&n[Zi("0x71")](s[Zi("0x57")](a[Zi("0x5c")],u.end),Zi("0x12"))}))})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),"convertInlineImageToBlock",Zi("0x6"),(()=>{})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),Zi("0x12"),"accept",(()=>{})),n._suggestionFactory[Zi("0x3e")](Zi("0x3"),Zi("0x12"),"discard",n[Zi("0x1")][Zi("0x5a")](Zi("0x3"),"","accept")),n[Zi("0x1")].registerCustomCallback(Zi("0x18"),Zi("0x12"),"join",(()=>{})),n[Zi("0x1")][Zi("0x3e")](Zi("0x18"),Zi("0x12"),Zi("0x39"),(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Zi("0x18"),"",Zi("0x39"));let r=e[Zi("0x5")],s=e[Zi("0x5c")];const i=t[Zi("0x22")][Zi("0x7a")].getNearestSelectionRange(r,Zi("0x11")),x=t[Zi("0x22")][Zi("0x7a")][Zi("0xe")](s,"forward");i.isCollapsed&&(r=i[Zi("0x5")]),x[Zi("0x2")]&&(s=x[Zi("0x5c")]),o([t[Zi("0x22")][Zi("0x57")](r,s)])})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),"convertInlineImageToBlock",Zi("0x77"),c),n[Zi("0x1")][Zi("0x3e")]("insertion",Zi("0x12"),Zi("0x77"),c)),t[Zi("0x28")][Zi("0x46")](Zi("0x62"))&&(n.enableCommand("toggleImageCaption",((e,r)=>{const s=t.plugins.get(Zi("0x9"));let i=o[Zi("0x33")](t[Zi("0x22")].document[Zi("0x1a")]),x=s.getCaptionFromImageModelElement(i);t.model[Zi("0x19")]((()=>{if(x)return void n[Zi("0x36")](t.model[Zi("0x5d")](x));const a=o.isBlockImage(i);e(r),i=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]),x=s[Zi("0x23")](i),n.markInsertion(t[Zi("0x22")].createRangeOn(x),a?null:Zi("0x76"))}))})),n[Zi("0x1")][Zi("0x3e")](Zi("0x18"),"imageCaption",Zi("0x77"),c)),t[Zi("0x28")][Zi("0x46")](Zi("0x40"))){n[Zi("0x15")](Zi("0x6e"),((r,s)=>{const i=t[Zi("0x28")][Zi("0x72")](Zi("0x4b")).me,x=t[Zi("0x25")][Zi("0x72")](Zi("0x6e"));let a=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")].selection),c=t[Zi("0x22")][Zi("0x5d")](a),l=x.value;if(l==s.value)return;const u={commandName:Zi("0x6e"),commandParams:[s],formatGroupId:(0,e.uid)()};t[Zi("0x22")].change((()=>{if(n[Zi("0x43")]()[Zi("0x29")]((t=>t.isInContent&&i==t[Zi("0xc")]&&("formatBlock"==t[Zi("0x68")]||Zi("0xd")==t.type)&&(Zi("0x49")==t[Zi("0x2f")]||Zi("0x60")==t[Zi("0x2f")])&&t.getFirstRange().isEqual(c)))[Zi("0x26")]((t=>n[Zi("0x7")](t[Zi("0x44")]))),a=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]),c=t[Zi("0x22")][Zi("0x5d")](a),x.refresh(),t[Zi("0x25")][Zi("0x72")](Zi("0x55"))[Zi("0x2a")](),t[Zi("0x25")][Zi("0x72")](Zi("0x70"))[Zi("0x2a")](),l=x[Zi("0x4a")],l!=s.value)return o[Zi("0x31")](a)&&x.shouldConvertImageType(s[Zi("0x4a")],a)?(r(s),a=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]),void n[Zi("0x75")](a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Zi("0x50")](a)?n[Zi("0x75")](a,u,[],Zi("0x60")):n[Zi("0x64")](c,u,Zi("0x60")))}))}));for(const e of t[Zi("0x28")].get("ImageStyleEditing")[Zi("0x5b")])r[e.name]=e[Zi("0x2e")][Zi("0x56")]();n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),Zi("0x49"),Zi("0x6"),(()=>{})),n._suggestionFactory[Zi("0x3e")]("formatBlock","imageStylePostApply",Zi("0x6"),(()=>{})),n[Zi("0x1")][Zi("0x3e")]("formatInline",Zi("0x60"),Zi("0x6"),(()=>{})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),"imageStylePreApply",Zi("0x6f"),(()=>{})),n[Zi("0x1")][Zi("0x3e")](Zi("0x3"),Zi("0x49"),"discard",((t,e)=>{n[Zi("0x1")][Zi("0x5a")](Zi("0x3"),"",Zi("0x6f"))(t,{commandName:e[Zi("0x66")],commandParams:e[Zi("0x6d")]})})),n[Zi("0x1")].registerCustomCallback(Zi("0x3"),Zi("0x49"),"chain",c)}const x=[{type:Zi("0x3"),subType:Zi("0x49")},{type:Zi("0x18"),subType:"imageCaption"},{type:Zi("0x3"),subType:Zi("0x12")},{type:Zi("0x18"),subType:Zi("0x12")}];function a(t,e){const r=x.findIndex((({type:e,subType:n})=>t[Zi("0x68")]==e&&t.subType==n)),s=x[Zi("0x4d")]((({type:t,subType:n})=>e.type==t&&e.subType==n));if(r<0||s<0)return!1;const i=t[Zi("0x3b")](),a=e[Zi("0x3b")]();if((0==r||1==r)&&2==s&&i[Zi("0x67")](a))return!0;if(2==r&&3==s){const t=n[Zi("0x20")](i,"insertion")[Zi("0x29")]((({suggestion:t,meta:e})=>e[Zi("0x2d")]&&Zi("0x12")==t[Zi("0x2f")]));if(t[Zi("0x1f")]>1&&a[Zi("0x5c")][Zi("0x48")](i.start))return!0;if(1==t[Zi("0x1f")]&&(i[Zi("0x5")][Zi("0x48")](a[Zi("0x5c")])||i[Zi("0x5c")][Zi("0x48")](a[Zi("0x5")])))return!0}if(3==r&&3==s&&i[Zi("0x5")][Zi("0x3a")](a[Zi("0x5")])){const t=i[Zi("0x5c")].nodeAfter,e=a[Zi("0x5")].nodeBefore;return o[Zi("0x50")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Zi("0x22")].document[Zi("0x10")]((()=>{let e=!1;const r=Array[Zi("0x42")](t.model[Zi("0x16")].differ[Zi("0x4f")]());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Zi("0xa")](t);if(Zi("0x34")==r&&n.hasSuggestion(a)){if(Zi("0x3")==i&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[Zi("0x4")](a);if(s[Zi("0x3d")]){const r=t[Zi("0x3b")]()[Zi("0x54")]();if(o[Zi("0x50")](r))continue;n[Zi("0x7")](t),e=!0}}if(Zi("0x18")==i&&Zi("0x76")==x&&!s[Zi("0x3d")]){const t=n[Zi("0x4")](a);t.next&&t[Zi("0x2c")][Zi("0x5e")]&&(n.discardSuggestion(t[Zi("0x2c")]),e=!0)}}}return e})),t[Zi("0x28")].has("ImageResize")&&n[Zi("0x15")](Zi("0x41"),((e,r)=>{const s=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]);s[Zi("0x58")](Zi("0x61"))!=r[Zi("0x61")]&&t[Zi("0x22")].change((()=>{n[Zi("0x75")](s,{commandName:"resizeImage",commandParams:[r]})}))})),t[Zi("0x28")][Zi("0x46")](Zi("0x51"))&&n[Zi("0x15")]("imageTextAlternative",((e,r)=>{const s=o[Zi("0x33")](t[Zi("0x22")][Zi("0x16")][Zi("0x1a")]);(s.hasAttribute("alt")?s[Zi("0x58")](Zi("0x4c")):"")!=r[Zi("0x3c")]&&t.model[Zi("0x19")]((()=>{n.markBlockFormat(s,{commandName:Zi("0x1d"),commandParams:[r]})}))})),n[Zi("0x1e")][Zi("0x45")]((t=>{if(x[Zi("0x6c")]((({type:e,subType:n})=>t.type==e&&t[Zi("0x2f")]==n)))return t[Zi("0x8")]?{}:void 0})),n[Zi("0x1e")][Zi("0x45")]((t=>{if(Zi("0x18")==t.type||"deletion"==t[Zi("0x68")]){const e=t.getContainedElement();if(e&&e.is(Zi("0x52"),Zi("0x27")))return{type:Zi("0x18")==t[Zi("0x68")]?Zi("0x6a"):"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Zi("0x45")]((t=>Zi("0x3")==t.type&&Zi("0x12")==t.subType?{type:Zi("0x6b"),content:Zi("0x3f")}:Zi("0x3")==t.type&&Zi("0x65")==t.subType?{type:Zi("0x6b"),content:Zi("0x69")}:void 0)),n[Zi("0x1e")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Zi("0x66")]){const t=e[Zi("0x78")][0][Zi("0x4a")];return n="side"===t?as(s,Zi("0x63")):r[t]||t,{type:Zi("0x6b"),content:as(s,Zi("0x79"),n)}}if("imageTextAlternative"==e[Zi("0x66")]){const t=e.commandParams[0][Zi("0x3c")];return t?{type:Zi("0x6b"),content:as(s,Zi("0x1b"),'"'+t+'"')}:{type:"format",content:as(s,Zi("0x38"))}}if(Zi("0x41")==e[Zi("0x66")]){const t=e[Zi("0x78")][0][Zi("0x61")];return t?{type:Zi("0x6b"),content:as(s,"*Set image width:* %0",t)}:{type:Zi("0x6b"),content:as(s,Zi("0x59"))}}}var n}))}}const tx=["discard","getSuggestionCallback","handleReplaceImageCommand","format","plugins","commandName","change","author","getSelectedElement","ImageEditing","getSuggestions","TrackChangesEditing","locale","*Format:* replace image URL","data","_descriptionFactory","markBlockFormat","handleSuggestionDescription","accept","_suggestionFactory","editor","document","model","selection","get","getAttribute","formatBlock","commandParams","source","replaceImageSource","enableCommand","getContainedElement","registerCustomCallback","has"];var ex,nx;ex=tx,nx=226,function(t){for(;--t;)ex.push(ex.shift())}(++nx);const ox=function(t,e){return tx[t-=0]};class rx extends t.Plugin{afterInit(){if(!this[ox("0x20")].plugins[ox("0xb")](ox("0x15")))return;const t=this[ox("0x20")][ox("0x10")][ox("0x2")]("TrackChangesEditing");t[ox("0x8")](ox("0x7"),((t,e)=>this[ox("0xe")](t,e))),t[ox("0x1f")][ox("0xa")](ox("0x4"),ox("0x7"),ox("0x1e"),t._suggestionFactory[ox("0xd")](ox("0x4"),null,ox("0xc"))),t[ox("0x1f")][ox("0xa")](ox("0x4"),ox("0x7"),ox("0xc"),t[ox("0x1f")][ox("0xd")](ox("0x4"),null,ox("0x1e"))),t[ox("0x1b")].registerDescriptionCallback((t=>this[ox("0x1d")](t)))}[ox("0xe")](t,e){const n=this.editor[ox("0x10")][ox("0x2")](ox("0x17")),o=this[ox("0x20")][ox("0x0")][ox("0x21")][ox("0x1")][ox("0x14")]();this[ox("0x20")][ox("0x0")][ox("0x12")]((()=>{let r=o[ox("0x3")]("src");const s=this[ox("0x20")].plugins[ox("0x2")]("Users").me;for(const t of n[ox("0x16")]({skipNotAttached:!0})){const e=t[ox("0x9")]();if(ox("0x7")===t.subType&&e===o){t[ox("0x13")]!==s&&t[ox("0xc")](),r=t[ox("0x1a")][ox("0x5")][0][ox("0x6")];break}}t(e),n[ox("0x1c")](o,{commandName:ox("0x7"),commandParams:[{source:r}]},[],ox("0x7"))}))}[ox("0x1d")](t){const{data:e}=t;if(e&&ox("0x7")===e[ox("0x11")]){const t=ox("0x19");return{type:ox("0xf"),content:as(this[ox("0x20")][ox("0x18")],t)}}}}const sx=["value","dataInsert","enableCommand","trackChanges","lowest","TrackChangesEditing","plugins","track_changes","_handleImportedData","_trackChangesExecuted","high","get","Users","listenTo","collaboration_features","_trackChangesValueDuringImport","importWord","execute","forEach","afterInit","editor","commands","_setSuggestionData","bind"];var ix,xx;ix=sx,xx=188,function(t){for(;--t;)ix.push(ix.shift())}(++xx);const ax=function(t,e){return sx[t-=0]};class cx extends t.Plugin{constructor(t){super(t),this[ax("0x13")]=!1,this[ax("0xd")]=!1}[ax("0x17")](){const t=this[ax("0x0")],e=t[ax("0x1")][ax("0xf")](ax("0x14")),n=t[ax("0x1")].get("trackChanges");e&&(e.on(ax("0x15"),((t,[,e])=>{this[ax("0x13")]=n[ax("0x4")],e[ax("0x12")][ax("0xb")]=!this[ax("0x13")]}),{priority:ax("0xe")}),this[ax("0x11")](e,ax("0x5"),this[ax("0xc")][ax("0x3")](this)),this[ax("0x11")](e,ax("0x5"),(()=>{this[ax("0xd")]&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:ax("0x8")}),t[ax("0xa")][ax("0xf")](ax("0x9"))[ax("0x6")](ax("0x14")))}[ax("0xc")](t,e){const{suggestions:n}=e,o=this.editor[ax("0x1")][ax("0xf")](ax("0x7")),r=o[ax("0x4")];this[ax("0x13")]!==r&&(o.execute(),this._trackChangesExecuted=!0),n&&n[ax("0x16")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ax("0x0")].plugins.get(ax("0x10")).me.id,createdAt:new Date,data:{},hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor[ax("0xa")][ax("0xf")](Pc)[ax("0x2")](r)}))}}const lx=["model","*Outdent:* %0","editor","_descriptionFactory","getSelectedBlocks","has","schema","outdentBlock","markBlockFormat","*Indent:* %0","change","document","IndentBlock","get","enableCommand","filter","afterInit","getItems","registerDescriptionCallback","blockIndent","TrackChangesEditing","from","locale","indentBlock","checkAttribute","IndentEditing","getItemLabel","indent","plugins","commandName"];var ux,dx;ux=lx,dx=193,function(t){for(;--t;)ux.push(ux.shift())}(++dx);const gx=function(t,e){return lx[t-=0]};class mx extends t.Plugin{[gx("0x3")](){const t=this[gx("0x13")],e=t[gx("0xf")][gx("0x0")](gx("0x7"));t[gx("0xf")].has(gx("0xc"))&&(e[gx("0x1")](gx("0xe")),e[gx("0x1")]("outdent"));const n=t[gx("0x9")];if(t[gx("0xf")][gx("0x16")](gx("0x1d"))){for(const n of[gx("0xa"),gx("0x18")])e.enableCommand(n,(()=>{const o=Array[gx("0x8")](this[gx("0x13")][gx("0x11")][gx("0x1c")].selection[gx("0x15")]())[gx("0x2")]((t=>this.editor[gx("0x11")][gx("0x17")][gx("0xb")](t,gx("0x6"))));t[gx("0x11")][gx("0x1b")]((()=>{for(const t of o)e[gx("0x19")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:gx("0xa")})}))}));e[gx("0x14")][gx("0x5")]((t=>{const{data:o}=t;if(!o)return;if(gx("0xa")!=o.commandName&&gx("0x18")!=o[gx("0x10")])return;const r=t[gx("0x4")]()[0],s=e[gx("0x14")][gx("0xd")](r);return gx("0xa")==o[gx("0x10")]?{type:"format",content:as(n,gx("0x1a"),s)}:gx("0x18")==o[gx("0x10")]?{type:"format",content:as(n,gx("0x12"),s)}:void 0}))}}}var fx,hx,px=["editor","init","TrackChangesEditing","input","get","requires"];fx=px,hx=466,function(t){for(;--t;)fx.push(fx.shift())}(++hx);var bx=function(t,e){return px[t-=0]};class Ex extends t.Plugin{static get[bx("0x1")](){return[ti.Input]}[bx("0x3")](){this[bx("0x2")].plugins[bx("0x0")](bx("0x4")).enableCommand(bx("0x5"))}}const _x=["format","enableCommand","markInlineFormat","has","editor","*Set link:* %0","commandName","document","getFirstPosition","locale","linkHref","get","getFirstRange","plugins","model","link","getRanges","*Remove link*","commandParams","getAttribute","from","TrackChangesEditing","LinkEditing","change","hasAttribute"];var Tx,Cx;Tx=_x,Cx=361,function(t){for(;--t;)Tx.push(Tx.shift())}(++Cx);const yx=function(t,e){return _x[t-=0]};class kx extends t.Plugin{afterInit(){const t=this[yx("0x12")];if(!t[yx("0x2")][yx("0x11")](yx("0xb")))return;const e=t[yx("0x2")][yx("0x0")](yx("0xa"));e[yx("0xf")](yx("0x4"),((n,o)=>{const r=t.model.document.selection;let s=[];if(r.isCollapsed){if(!r[yx("0xd")](yx("0x18")))return void n(o);{const e=(0,ti.findAttributeRange)(r[yx("0x16")](),yx("0x18"),r[yx("0x8")](yx("0x18")),t[yx("0x3")]);s=[e]}}else s=Array[yx("0x9")](r[yx("0x5")]());t.model[yx("0xc")]((()=>{for(const t of s)e[yx("0x10")](t,{commandName:yx("0x4"),commandParams:[o]})}))})),e[yx("0xf")]("unlink",(()=>{const n=this[yx("0x12")][yx("0x3")],o=n[yx("0x15")].selection;n[yx("0xc")]((()=>{let n=[];n=o.isCollapsed?[(0,ti.findAttributeRange)(o[yx("0x16")](),yx("0x18"),o[yx("0x8")](yx("0x18")),t[yx("0x3")])]:ys(yx("0x18"),o[yx("0x1")](),t[yx("0x3")]);for(const t of n)e[yx("0x10")](t,{commandName:"unlink",commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e,o=t[yx("0x17")];if(n){if(yx("0x4")==n[yx("0x14")]){const t=n[yx("0x7")][0];return{type:yx("0xe"),content:as(o,yx("0x13"),'"'+t+'"')}}return"unlink"==n[yx("0x14")]?{type:yx("0xe"),content:as(o,yx("0x6"))}:void 0}}))}}const Ax=["format","editor","listType","add","name","commands","parent","todoListChecked","todo","nextSibling","before","isObject","numberedList","checkTodoList","slice","_descriptionFactory","outdentList","enableCommand","afterInit","_selectedElements","element","bulleted","getAttribute","bulletedList","value","model","registerElementLabel","createPositionAt","ListEditing","filter","listItem","numbered","commandName","listIndent","length","blockName","createRange","from","*Change to:* %0","execute","markBlockFormat","getSelectedBlocks","selection","todoList","forceValue","locale","ELEMENT_NUMBERED_LIST","document","paragraph","List","indentList","schema","TodoListEditing","end","ELEMENT_BULLETED_LIST","get","plugins","change","previousSibling","ELEMENT_LIST_ITEM"];var vx,Rx;vx=Ax,Rx=127,function(t){for(;--t;)vx.push(vx.shift())}(++Rx);const Ix=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{[Ix("0xb")](){const t=this[Ix("0x36")],e=t[Ix("0x26")];if(!t[Ix("0x31")].has(Ix("0x15")))return;const n=t.plugins[Ix("0x30")]("TrackChangesEditing"),o=t.plugins.has(Ix("0x2d"));function r(e){return()=>{const o=t.model[Ix("0x28")][Ix("0x23")],r=t[Ix("0x3a")][Ix("0x30")](e);if(r[Ix("0x11")])return void t[Ix("0x20")](Ix("0x29"),{});const s=e[Ix("0x7")](0,-4),i=function(t,e,n){let o=Array[Ix("0x1e")](t)[Ix("0x16")]((t=>{return e=t,(o=n).checkChild(e[Ix("0x3b")],Ix("0x17"))&&!o[Ix("0x4")](e);var e,o}));o=o[Ix("0x16")]((t=>!t.is(Ix("0xd"),Ix("0x17"))||t[Ix("0xf")](Ix("0x37"))!=e));const r=new Set;for(const t of o)t.is(Ix("0xd"),Ix("0x17"))?r[Ix("0x38")](Lx(t)):r.add(t);return Array[Ix("0x1e")](r)}(o.getSelectedBlocks(),s,t[Ix("0x12")][Ix("0x2c")]);t[Ix("0x12")][Ix("0x32")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r[Ix("0x11")]}],formatGroupId:Ix("0x1c")},Mx(t))}))}}function s(e){return()=>{const o=function(t){const e=(t=Array[Ix("0x1e")](t)).findIndex((t=>Ix("0x17")!=t[Ix("0x39")]));return e>-1&&(t=t[Ix("0x7")](0,e)),t}(t.model[Ix("0x28")].selection[Ix("0x22")]()),r=t.model[Ix("0x1d")](t.model[Ix("0x14")](o[0],Ix("0x3")),t.model[Ix("0x14")](o[o[Ix("0x1b")]-1],Ix("0x2e")));t[Ix("0x12")][Ix("0x32")]((()=>{n[Ix("0x21")](r,{commandName:e,commandParams:[],formatGroupId:Ix("0x1a")},function(t){const e=new Set;for(const n of t){let t=n[Ix("0x2")];for(;t&&t.getAttribute(Ix("0x1a"))>n[Ix("0xf")](Ix("0x1a"));)e[Ix("0x38")](t),t=t.nextSibling}return Array[Ix("0x1e")](e)}(o))}))}}n[Ix("0xa")]("numberedList",r(Ix("0x5"))),n.enableCommand(Ix("0x10"),r("bulletedList")),o&&n[Ix("0xa")](Ix("0x24"),r(Ix("0x24"))),n[Ix("0xa")]("indentList",s("indentList")),n[Ix("0xa")]("outdentList",s(Ix("0x9"))),o&&n[Ix("0xa")](Ix("0x6"),(()=>{const e=t[Ix("0x3a")][Ix("0x30")](Ix("0x6")),o=Array[Ix("0x1e")](e[Ix("0xc")]);o[Ix("0x16")]((t=>t.getAttribute(Ix("0x0"))!=e[Ix("0x11")])),t[Ix("0x12")].change((()=>{for(const t of o)n[Ix("0x21")](t,{commandName:Ix("0x6"),commandParams:[{forceValue:!e.value}]})}))})),n[Ix("0x8")][Ix("0x13")](Ix("0x17"),(t=>as(e,Ix("0x34"),t))),n[Ix("0x8")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(Ix("0x5")==n[Ix("0x19")]||Ix("0x10")==n[Ix("0x19")]||Ix("0x24")==n[Ix("0x19")])switch(n[Ix("0x19")].replace(Ix("0x2a"),"")){case Ix("0xe"):return o(as(e,Ix("0x2f")));case Ix("0x18"):return o(as(e,Ix("0x27")));case Ix("0x1"):return o(as(e,"ELEMENT_TODO_LIST"))}if(Ix("0x2b")==n[Ix("0x19")])return{type:Ix("0x35"),content:as(e,"*Indent:* %0",as(e,Ix("0x34")))};if(Ix("0x9")==n[Ix("0x19")])return{type:Ix("0x35"),content:as(e,"*Outdent:* %0",as(e,Ix("0x34")))};if(Ix("0x6")==n[Ix("0x19")])return n.commandParams[0][Ix("0x25")]?{type:"format",content:as(e,"*Check item*")}:{type:Ix("0x35"),content:as(e,"*Uncheck item*")}}function o(t){return{type:Ix("0x35"),content:as(e,Ix("0x1f"),t)}}}))}}function Lx(t){const e=t[Ix("0xf")](Ix("0x1a"));if(0==e)return t;let n=t;for(;t[Ix("0x33")]&&t[Ix("0x33")].is("element",Ix("0x17"));){const o=t[Ix("0x33")][Ix("0xf")](Ix("0x1a"));if(o==e)n=t[Ix("0x33")];else if(o<e)break;t=t.previousSibling}return n}function Mx(t){const e=[];if(t.is(Ix("0xd"),Ix("0x17"))&&t[Ix("0xf")]("listIndent")>0){let n=t[Ix("0x2")];for(;n&&Ix("0x17")==n[Ix("0x39")]&&n[Ix("0xf")](Ix("0x1a"))==t[Ix("0xf")]("listIndent");)e.push(n),n=n[Ix("0x2")]}return e}const Nx=["*Format:* set order to reversed","length","afterInit","toUpperCase","_getSuggestionBlocks","*Format:* set start index to %0","styles","change","listType","_getTranslationKeyForListStyle","get","has","listReversed","handleDescriptions","listStyle","from","forward","map","element","editor","bind","listItem","plugins","listStart","createPositionAt","handleListStartCommand","getSiblingNodes","list.properties","model","document","filter","*Change to:* %0","commandParams","getListTypeFromListStyleType","ELEMENT_","type","config","*Format:* set order to regular","before","startIndex","handleListStyleCommand","registerDescriptionCallback","createRange","TrackChangesEditing","markMultiRangeBlockFormat","ListUtils","format","enableCommand","numbered","_LIST_","reversed","handleListReversedCommand","replaceAll","commandName"];var wx,Ox;wx=Nx,Ox=224,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Nx[t-=0]};class Px extends t.Plugin{[Fx("0x30")](){if(!this[Fx("0xb")][Fx("0xe")][Fx("0x3")]("ListPropertiesEditing"))return;const t=this[Fx("0xb")][Fx("0x1c")][Fx("0x2")](Fx("0x13")),e=this[Fx("0xb")][Fx("0xe")].get(Fx("0x23"));t[Fx("0x34")]&&e[Fx("0x27")](Fx("0x6"),this[Fx("0x20")].bind(this)),t[Fx("0x2a")]&&e[Fx("0x27")](Fx("0x4"),this[Fx("0x2b")][Fx("0xc")](this)),t[Fx("0x1f")]&&e[Fx("0x27")](Fx("0xf"),this[Fx("0x11")][Fx("0xc")](this)),e._descriptionFactory[Fx("0x21")](this[Fx("0x5")].bind(this))}[Fx("0x20")](t,e){const n=this[Fx("0xb")].plugins.get(Fx("0x23")),o=this[Fx("0x32")]((t=>t.hasAttribute(Fx("0x0"))));o.length<1||this[Fx("0xb")][Fx("0x14")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:Fx("0x6"),commandParams:[{type:e[Fx("0x1b")]}],formatGroupId:Fx("0x6")})}))}[Fx("0x2b")](t,e){const n=this[Fx("0xb")][Fx("0xe")][Fx("0x2")](Fx("0x23")),o=this[Fx("0x32")]((t=>t.is(Fx("0xa"),Fx("0xd"))&&Fx("0x28")===t.getAttribute(Fx("0x0"))));if(o.length<1)return;const r=o.map((t=>this.editor[Fx("0x14")][Fx("0x22")](this[Fx("0xb")][Fx("0x14")][Fx("0x10")](t,Fx("0x1e")),this[Fx("0xb")].model[Fx("0x10")](t,0))));this[Fx("0xb")][Fx("0x14")][Fx("0x35")]((()=>{n[Fx("0x24")](r,{commandName:Fx("0x4"),commandParams:[{reversed:e[Fx("0x2a")]}],formatGroupId:Fx("0x4")})}))}[Fx("0x11")](t,e){const n=this.editor[Fx("0xe")][Fx("0x2")](Fx("0x23")),o=this[Fx("0x32")]((t=>t.is(Fx("0xa"),Fx("0xd"))&&"numbered"===t.getAttribute("listType")));if(o[Fx("0x2f")]<1)return;const r=o[Fx("0x9")]((t=>this[Fx("0xb")][Fx("0x14")][Fx("0x22")](this[Fx("0xb")][Fx("0x14")].createPositionAt(t,"before"),this[Fx("0xb")][Fx("0x14")][Fx("0x10")](t,0))));this[Fx("0xb")][Fx("0x14")][Fx("0x35")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Fx("0xf"),commandParams:[{startIndex:e[Fx("0x1f")]}],formatGroupId:Fx("0xf")})}))}[Fx("0x5")](t){const e=this[Fx("0xb")].locale,{data:n}=t;if(!n)return;let o,r;switch(n[Fx("0x2d")]){case Fx("0x6"):o=Fx("0x17"),r={type:"format",content:as(e,o,as(e,this[Fx("0x1")](n.commandParams[0][Fx("0x1b")])))};break;case Fx("0x4"):o=n[Fx("0x18")][0][Fx("0x2a")]?Fx("0x2e"):Fx("0x1d"),r={type:Fx("0x26"),content:as(e,o)};break;case"listStart":o=Fx("0x33"),r={type:Fx("0x26"),content:as(e,o,n[Fx("0x18")][0][Fx("0x1f")])}}return r}[Fx("0x32")](t){const e=this[Fx("0xb")][Fx("0xe")].get(Fx("0x25"));let n=Array[Fx("0x7")](this[Fx("0xb")].model[Fx("0x15")].selection.getSelectedBlocks())[Fx("0x16")](t).map((t=>{const n=this[Fx("0xb")].model[Fx("0x10")](t,0);return[...e[Fx("0x12")](n,"backward"),...e.getSiblingNodes(n,Fx("0x8"))]})).flat();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Fx("0x1a")+this[Fx("0xb")].plugins[Fx("0x2")](Fx("0x25"))[Fx("0x19")](t)[Fx("0x31")]()+Fx("0x29")+t[Fx("0x31")]()[Fx("0x2c")]("-","_")}}const Dx=["downcastDispatcher","stop","dataDowncast","high","showSuggestionHighlights","_descriptionFactory","registerElementLabel","MediaEmbedEditing","conversion","ELEMENT_MEDIA","locale","plugins","data","options","get","for","afterInit","enableCommand","attribute:url:media","media","editor"];var Bx,jx;Bx=Dx,jx=191,function(t){for(;--t;)Bx.push(Bx.shift())}(++jx);const Ux=function(t,e){return Dx[t-=0]};class Gx extends t.Plugin{[Ux("0xe")](){const t=this[Ux("0x12")];if(!t[Ux("0x9")].has(Ux("0x5")))return;const e=t[Ux("0x9")][Ux("0xc")]("TrackChangesEditing"),n=t[Ux("0x8")];e[Ux("0xf")]("mediaEmbed"),e[Ux("0x3")][Ux("0x4")]("media",(t=>as(n,Ux("0x7"),t))),t[Ux("0x6")][Ux("0xd")](Ux("0x0")).elementToElement({model:Ux("0x11"),view:(t,{writer:e,options:n})=>{if(n[Ux("0x2")])return e.createEmptyElement("div")},converterPriority:Ux("0x1")}),t[Ux("0xa")][Ux("0x13")].on(Ux("0x10"),((t,e,n)=>{n[Ux("0xb")][Ux("0x2")]&&t[Ux("0x14")]()}),{priority:Ux("0x1")})}}const Hx=["has","afterInit","plugins","get","MentionEditing","enableCommand","editor"];var Wx,Vx;Wx=Hx,Vx=328,function(t){for(;--t;)Wx.push(Wx.shift())}(++Vx);const zx=function(t,e){return Hx[t-=0]};class Kx extends t.Plugin{[zx("0x2")](){const t=this[zx("0x0")];t[zx("0x3")][zx("0x1")](zx("0x5"))&&t[zx("0x3")][zx("0x4")]("TrackChangesEditing")[zx("0x6")]("mention")}}const qx=["PageBreakEditing","pageBreak","get","editor","plugins","afterInit","has","locale","enableCommand","TrackChangesEditing"];var Xx,$x;Xx=qx,$x=337,function(t){for(;--t;)Xx.push(Xx.shift())}(++$x);const Qx=function(t,e){return qx[t-=0]};class Jx extends t.Plugin{[Qx("0x8")](){const t=this[Qx("0x6")];if(!t[Qx("0x7")][Qx("0x9")](Qx("0x3")))return;t.plugins.get(Qx("0x2"))[Qx("0x1")](Qx("0x4"));const e=t[Qx("0x7")][Qx("0x5")]("TrackChangesEditing"),n=t[Qx("0x0")];e._descriptionFactory.registerElementLabel("pageBreak",(t=>as(n,"ELEMENT_PAGE_BREAK",t)))}}const Zx=["start","activeMarkers","$text","markerName","paragraph","mapper","downcastDispatcher","insert","isTouching","consumable","from","type","has","enableCommand","*Change to:* %0","bindElementToMarker","toViewPosition","*Insert:* %0","writer","isObject","markBlockFormat","locale","commandName","TrackChangesEditing","markerRange","highest","nodeAfter","parent","editor","getSelectedBlocks","span","createUIElement","data","getFirstRange","schema","addMarker:suggestion:insertion","isLimit","plugins","insertion","filter","registerDescriptionCallback","showSuggestionHighlights","registerElementLabel","Paragraph","checkChild","end","selection","blockName","editing","get","isBlock","change","format","insertParagraph","document","_descriptionFactory","model","afterInit","ELEMENT_PARAGRAPH"];var Yx,ta;Yx=Zx,ta=389,function(t){for(;--t;)Yx.push(Yx.shift())}(++ta);const ea=function(t,e){return Zx[t-=0]};class na extends t.Plugin{[ea("0x16")](){const t=this[ea("0x34")];if(!t[ea("0x2")][ea("0x24")](ea("0x8")))return;const e=t[ea("0x2d")],n=t.plugins[ea("0xe")](ea("0x2f"));n[ea("0x14")][ea("0x7")](ea("0x1c"),(t=>as(e,ea("0x17"),t))),n[ea("0x25")](ea("0x1c"),((e,o={})=>{const r=t[ea("0x15")][ea("0x13")],s=o.selection||r[ea("0xb")],i=Array[ea("0x22")](s[ea("0x35")]())[ea("0x4")]((t=>{return e=t,(n=this.editor[ea("0x15")][ea("0x3a")])[ea("0x9")](e[ea("0x33")],ea("0x1c"))&&!n[ea("0x2b")](e)&&ea("0x1c")!=e.name;var e,n}));t[ea("0x15")][ea("0x10")]((()=>{for(const t of i)n[ea("0x2c")](t,{commandName:ea("0x1c"),commandParams:[],formatGroupId:ea("0xc")},ks(t))}))})),n[ea("0x14")][ea("0x5")]((t=>{const{data:n}=t;if(n&&ea("0x1c")==n[ea("0x2e")])return{type:ea("0x11"),content:as(e,ea("0x26"),as(e,ea("0x17")))}})),n[ea("0x25")](ea("0x12")),t[ea("0xd")][ea("0x1e")].on(ea("0x0"),oa(t),{priority:ea("0x31")}),t[ea("0x38")].downcastDispatcher.on(ea("0x0"),((e,n,o)=>{o.options[ea("0x6")]&&oa(t,{showActiveMarker:!1})(e,n,o)}),{priority:ea("0x31")});const o=n[ea("0x14")];o[ea("0x5")]((n=>{if(ea("0x3")!==n[ea("0x23")])return;const{start:r,end:s}=n[ea("0x39")]();if(!r[ea("0x20")](s)||!r.nodeAfter)return;const i=t[ea("0x15")][ea("0x3a")],x=r[ea("0x32")];return i[ea("0xf")](x)&&!i[ea("0x1")](x)&&i[ea("0x9")](x,ea("0x1a"))?{type:ea("0x3"),content:as(e,ea("0x29"),o.getItemLabel(x,1))}:void 0}))}}function oa(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[ea("0x2")][ea("0xe")]("TrackChangesEditing"),i=o[ea("0x30")][ea("0x18")],x=o.markerRange[ea("0xa")],a=t[ea("0x15")][ea("0x3a")];if(!i.isTouching(x)||!i[ea("0x32")])return;const c=i.nodeAfter;if(a.isBlock(c)&&!a[ea("0x1")](c)&&a[ea("0x9")](c,ea("0x1a"))){if(!r[ea("0x21")].consume(o[ea("0x30")],n.name))return;const t=r[ea("0x2a")][ea("0x37")](ea("0x36"),{class:"ck-suggestion-marker-split"}),i=r[ea("0x1d")][ea("0x28")](x);e&&s[ea("0x19")].includes(o.markerName)&&r[ea("0x2a")].addClass("ck-suggestion-marker--active",t),r.writer[ea("0x1f")](i,t),r[ea("0x1d")][ea("0x27")](t,o[ea("0x1b")])}}}const ra=["getAttributes","getAttributeProperties","isFormatting","RemoveFormatEditing","plugins","get","change","from","registerDescriptionCallback","document","_descriptionFactory","model","commandName","isCollapsed","enableCommand","format","removeFormat","*Remove all formatting*"];var sa,ia;sa=ra,ia=188,function(t){for(;--t;)sa.push(sa.shift())}(++ia);const xa=function(t,e){return ra[t-=0]};class aa extends t.Plugin{afterInit(){const t=this.editor;if(!t[xa("0xe")].has(xa("0xd")))return;const e=t[xa("0xe")][xa("0xf")]("TrackChangesEditing");e[xa("0x6")](xa("0x8"),(n=>{const o=t[xa("0x3")][xa("0x1")].selection;o[xa("0x5")]?n():t[xa("0x3")][xa("0x10")]((()=>{const n=Array[xa("0x11")](o.getRanges());for(const o of n)for(const n of o.getItems())ca(n,t[xa("0x3")].schema)&&e.markInlineFormat(t[xa("0x3")].createRangeOn(n),{commandName:xa("0x8"),commandParams:[]})}))})),e[xa("0x2")][xa("0x0")]((e=>{const{data:n}=e;if(n&&xa("0x8")==n[xa("0x4")])return{type:xa("0x7"),content:as(t.locale,xa("0x9"))}}))}}function ca(t,e){for(const[n]of t[xa("0xa")]()){const t=e[xa("0xb")](n);if(t&&t[xa("0xc")])return!0}return!1}const la=["discardSuggestion","trackChanges","has","acceptAllSuggestions","editor","afterInit","goToNextRestrictedEditingException","get","discardSelectedSuggestions","TrackChangesEditing","enableCommand","plugins","RestrictedEditingModeEditing","acceptSelectedSuggestions"];var ua,da;ua=la,da=167,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x6")](){const t=this[ga("0x5")];if(!t[ga("0xc")][ga("0x3")](ga("0xd")))return;const e=t[ga("0xc")][ga("0x8")](ga("0xa"));e[ga("0xb")]("goToPreviousRestrictedEditingException"),e.enableCommand(ga("0x7"));const n=t[ga("0xc")][ga("0x8")](ga("0xd"));n[ga("0xb")](ga("0x2")),n[ga("0xb")]("acceptSuggestion"),n.enableCommand(ga("0x1")),n[ga("0xb")](ga("0x4")),n[ga("0xb")]("discardAllSuggestions"),n[ga("0xb")](ga("0x0")),n[ga("0xb")](ga("0x9"))}}const fa=["showSuggestionHighlights","merge","insert","activeMarkers","split","TrackChangesEditing","addMarker:suggestion","span","addMarker:suggestion:deletion","ck-suggestion-marker--active","mapper","enableCommand","high","markerRange","_descriptionFactory","options","init","element","get","requires","data","createUIElement","ELEMENT_LINE_BREAK","downcastDispatcher","deletion","writer","softBreak","registerElementLabel","ck-suggestion-marker-","plugins","locale","markerName","bindElementToMarker","editing"];var ha,pa;ha=fa,pa=160,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{static get[ba("0x1d")](){return[ui.ShiftEnter]}[ba("0x1a")](){const t=this.editor,e=t[ba("0x5")][ba("0x1c")](ba("0xf"));e[ba("0x15")]("shiftEnter"),t.editing[ba("0x21")].on("addMarker:suggestion:insertion",_a(t),{priority:ba("0x16")}),t[ba("0x9")][ba("0x21")].on(ba("0x12"),_a(t),{priority:ba("0x16")}),t[ba("0x1e")][ba("0x21")].on(ba("0x10"),((e,n,o)=>{o[ba("0x19")][ba("0xa")]&&_a(t,{showActiveMarker:!1})(e,n,o)})),e[ba("0x18")][ba("0x3")](ba("0x2"),(e=>as(t[ba("0x6")],ba("0x20"),e)))}}function _a(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[ba("0x5")][ba("0x1c")](ba("0xf"));if(!r.consumable.test(o.markerRange,n.name))return;const i=t.model;for(const t of o[ba("0x17")].getItems()){if(!t.is(ba("0x1b"),"softBreak"))continue;const n=ba("0x0")==o[ba("0x7")][ba("0xe")](":")[1]?ba("0xb"):ba("0xe"),x=r[ba("0x1")][ba("0x1f")](ba("0x11"),{class:ba("0x4")+n}),a=r[ba("0x14")].toViewPosition(i.createPositionBefore(t));e&&s[ba("0xd")].includes(o[ba("0x7")])&&r[ba("0x1")].addClass(ba("0x13"),x),r[ba("0x1")][ba("0xc")](a,x),r[ba("0x14")][ba("0x8")](x,o[ba("0x7")])}}}const Ta=["commandParams","has","_descriptionFactory","format","value","commandName","from","FORMAT_RESTRICTED_ENABLED","locale","getRanges","markInlineFormat","commands","forceValue","StandardEditingModeEditing","registerDescriptionCallback","isCollapsed","get","model","enableCommand","document","plugins","restrictedEditingException"];var Ca,ya;Ca=Ta,ya=437,function(t){for(;--t;)Ca.push(Ca.shift())}(++ya);const ka=function(t,e){return Ta[t-=0]};class Aa extends t.Plugin{afterInit(){const t=this.editor,e=t[ka("0x14")],n=t[ka("0xb")];if(!t[ka("0x1")][ka("0x4")](ka("0x10")))return;const o=t[ka("0x1")][ka("0x13")]("TrackChangesEditing"),r=ka("0x2"),s=t[ka("0xe")][ka("0x13")](r);o[ka("0x15")](r,((t,n={})=>{const i=e[ka("0x0")].selection;if(i[ka("0x12")])return void t(n);const x=void 0!==n[ka("0xf")]?n[ka("0xf")]:!s[ka("0x7")];e.change((()=>{const t=Array[ka("0x9")](i[ka("0xc")]());for(const n of t){const t=x?[n]:ys(r,n,e);for(const e of t)o[ka("0xd")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[ka("0x5")][ka("0x11")]((t=>{const{data:e}=t;if(e&&e[ka("0x8")]==r)return e[ka("0x3")][0].forceValue?{type:ka("0x6"),content:as(n,ka("0xa"))}:{type:ka("0x6"),content:as(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const va=["enabledStyles","plugins","push","isCollapsed","commandName","getAncestors","block","includes","selection","element","getStyleDefinition","style","styleName","modelElements","change","*Format:* %0","classes","TrackChangesEditing","value","every","add","createRangeOn","enableCommand","find","has","inline","name","markBlockFormat","get","locale","format","toLowerCase","getDefinitionsForView","getAttribute","commands","*Remove format:* %0","model","isBlock","document","getRangesWithClasses","afterInit","style.definitions","_descriptionFactory"];var Ra,Ia;Ra=va,Ia=362,function(t){for(;--t;)Ra.push(Ra.shift())}(++Ia);const Sa=function(t,e){return va[t-=0]};class La extends t.Plugin{[Sa("0x16")](){const t=this.editor;if(!t[Sa("0x1a")][Sa("0x6")]("Style"))return;const e=t[Sa("0x10")][Sa("0xa")](Sa("0x24")),n=t[Sa("0x1a")].get(Sa("0x2a")),o=t[Sa("0xb")],r=t.plugins[Sa("0xa")]("DataSchema"),s=function(t,e=[]){const n={block:[],inline:[]};for(const o of e){const e=[],r=[];for(const n of t.getDefinitionsForView(o.element))n.isBlock?e.push(n.model):r.push(n.model);e.length?n.block.push({...o,modelElements:e,isBlock:!0}):n.inline.push({...o,ghsAttributes:r})}return n}(r,t.config[Sa("0xa")](Sa("0x17")));n[Sa("0x4")](Sa("0x24"),((o,{styleName:i})=>{const x=t[Sa("0x12")][Sa("0x14")][Sa("0x21")],a=this[Sa("0x23")](i,s);if(!a)return;if(!e[Sa("0x19")][Sa("0x20")](i))return;if(x[Sa("0x1c")]&&!a[Sa("0x13")])return void o({styleName:i});const c=!e[Sa("0x0")][Sa("0x20")](a.name);if(a[Sa("0x13")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Sa("0x1e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Sa("0x2")](o);break}}return n}(x.getSelectedBlocks(),a[Sa("0x26")]);t[Sa("0x12")][Sa("0x27")]((()=>{for(const t of e)n[Sa("0x9")](t,{commandName:Sa("0x24"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x.getRanges());if(!c){const n=Array.from(r[Sa("0xe")](a[Sa("0x22")],!1))[0].model,o=[];for(const r of e){const e=this[Sa("0x15")](t.model,r,a[Sa("0x29")],n);o[Sa("0x1b")](...e)}e=o}t[Sa("0x12")][Sa("0x27")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Sa("0x24"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Sa("0x18")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Sa("0x24")===e[Sa("0x1d")])return e.commandParams[0].forceValue?{type:Sa("0xc"),content:as(o,Sa("0x28"),e.commandParams[0][Sa("0x25")].toLowerCase())}:{type:"format",content:as(o,Sa("0x11"),e.commandParams[0][Sa("0x25")][Sa("0xd")]())}}))}[Sa("0x23")](t,e){let n=e[Sa("0x1f")].find((e=>e[Sa("0x8")]===t));return n||(n=e[Sa("0x7")][Sa("0x5")]((e=>e[Sa("0x8")]===t))),n}getRangesWithClasses(t,e,n,o){const r=[];for(const s of e.getItems()){const e=s[Sa("0xf")](o);e&&n[Sa("0x1")]((t=>e[Sa("0x29")].includes(t)))&&r.push(t[Sa("0x3")](s))}return r}}const Ma=["end","colspan","afterInit","mapper","push","ELEMENT_TABLE_WITH_TEXT","insertTable","isEqual","_acceptFormatSuggestionCallbackFactory","editor","detach","markMultiRangeInsertion","highest","get","nodeBefore","markMultiRangeDeletion","refresh","plugins","createTableWalker","document","ELEMENT_TABLE_COLUMN","values","_setupColumnsRowsFixing","hasAttribute","position","above","options","first","length","TableUtils","some","model","$graveyard","getSelectionAffectedTableCells","fromRange","classes","*Insert:* %0","getContainedElement","getChanges","findAncestor","substr","ELEMENT_TABLE_ROW_WITH_TEXT","includes","getChangedMarkers","setSelection","_getSuggestionCoords","max","deletion","showSuggestionHighlights","root","selection","createPositionAt","_descriptionFactory","discard","differ","locale","minColumn","getChildren","removeClass","_tableSuggestions","filter","registerDescriptionCallback","map","insertTableRowBelow","order","enableCommand","execute","getColumnIndexes","createRangeIn","type","span","insertTableColumnLeft","tableColumn","accept","TrackChangesEditing","rootName","from","forceValue","nodeAfter","minRow","rowspan","oldRange","getFirstRange","insert","enqueueChange","addClass","tableCell","addRange","insertTableRowAbove","data","commands","_getCoordsForCells","name","ELEMENT_TABLE","registerCustomCallback","isInContent","change","last","textProxy","startsWith","maxColumn","getItems","add","removeTableRow","_suggestionFactory","element","tablePaste","tableRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","getRowIndexes","getRanges","MIN_SAFE_INTEGER","table","TableEditing","has","registerElementLabel","registerPostFixer","min","getAttribute","cell","item","createRangeOn","_tablePostFixingSubtypes","MAX_SAFE_INTEGER","start","left","subType","*Remove:* %0","toLowerCase","isTouching","join","getCellLocation","insertion","selectTableColumn","removeTableColumn"];var Na,wa;Na=Ma,wa=298,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Oa=function(t,e){return Ma[t-=0]};class Fa extends t.Plugin{constructor(t){super(t),this[Oa("0x5e")]=[Oa("0x4f"),"tableColumn"]}[Oa("0x6d")](){const t=this[Oa("0x74")],e=t[Oa("0x3")][Oa("0x7e")][Oa("0x16")];if(!t[Oa("0x7c")][Oa("0x56")](Oa("0x55")))return;const n=t[Oa("0x1b")],o=t[Oa("0x7c")].get(Oa("0x2e")),r=t[Oa("0x7c")][Oa("0x78")](Oa("0x1"));o[Oa("0x18")][Oa("0x57")](Oa("0x54"),(t=>as(n,Oa("0x41"),t))),this[Oa("0x81")](),o[Oa("0x25")](Oa("0x71")),o[Oa("0x25")]("selectTableRow"),o[Oa("0x25")](Oa("0x69"));for(const n of[Oa("0x3c"),Oa("0x23")]){const s=t[Oa("0x3e")].get(n);o[Oa("0x25")](n,(n=>{t.model[Oa("0x44")]((t=>{n();const i=Oa("0x84")===s[Oa("0x24")],x=r[Oa("0x5")](e),a=r.getRowIndexes(x),c=i?a.first-1:a.last+1,l=x[0][Oa("0xb")](Oa("0x54")),u=r[Oa("0x7d")](l,{startRow:c,endRow:c}),d=Array[Oa("0x30")](u)[Oa("0x22")]((e=>t[Oa("0x5d")](e.cell)));o[Oa("0x76")](d,Oa("0x4f"))}))}))}for(const n of[Oa("0x2b"),"insertTableColumnRight"]){const s=t[Oa("0x3e")][Oa("0x78")](n);o[Oa("0x25")](n,(n=>{t[Oa("0x3")].change((t=>{n();const i=Oa("0x61")===s[Oa("0x24")],x=r[Oa("0x5")](e),a=r[Oa("0x27")](x),c=i?a[Oa("0x86")]-1:a[Oa("0x45")]+1,l=x[0].findAncestor("table"),u=r[Oa("0x7d")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Oa("0x22")]((e=>t[Oa("0x5d")](e[Oa("0x5b")])));o[Oa("0x76")](d,"tableColumn")}))}))}for(const n of[Oa("0x4b"),Oa("0x6a")]){const s=n[Oa("0xc")](11),i=s[Oa("0x64")](),x=i[Oa("0xc")](0,3)+"span",a=Oa("0x54")+s,c=Oa("0x59")+s,l=Oa("0x12")+s;o[Oa("0x25")](n,(()=>{t[Oa("0x3")][Oa("0x44")]((t=>{const s=r[Oa("0x5")](e),u=s[0][Oa("0xb")](Oa("0x54"));let d;if(Oa("0x4b")==n){const t=r[Oa("0x51")](s);d={startRow:t[Oa("0x86")],endRow:t.last,includeAllSlots:!0}}else{const t=r[Oa("0x27")](s);d={startColumn:t[Oa("0x86")],endColumn:t[Oa("0x45")],includeAllSlots:!0}}const g=r[Oa("0x7d")](u,d),m=Array[Oa("0x30")](g).map((({cell:t})=>t)),f=Pa(m[Oa("0x20")]((t=>t[Oa("0x82")](x)))),h=Pa(m[Oa("0x20")]((t=>!t[Oa("0x82")](x)))).map((e=>t.createRangeOn(e))),p=o[Oa("0x7a")](h,a);if(p&&(Oa("0x4f")==p[Oa("0x62")]||Oa("0x2c")==p[Oa("0x62")])){const e=this[Oa("0x11")](p);for(const n of f){const o=t[Oa("0x5d")](n),s=r[Oa("0x67")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+a<=d&&p[Oa("0x3b")](o)}}}))}))}function s(n){const o=Array[Oa("0x30")](e[Oa("0x52")]())[Oa("0x22")]((t=>i.LiveRange[Oa("0x6")](t)));t[Oa("0x3")].change((e=>{const r=e.batch;n=n[Oa("0x20")]((t=>Oa("0x4")!=t[Oa("0x15")].rootName)),e[Oa("0x10")](n),t[Oa("0x3e")][Oa("0x78")](Oa("0x4b"))[Oa("0x7b")](),t.execute(Oa("0x4b"),{forceDefaultExecution:!0}),t[Oa("0x3")][Oa("0x38")]((()=>{t[Oa("0x3")][Oa("0x38")](r,(t=>{const e=o[Oa("0x20")]((t=>Oa("0x4")!=t[Oa("0x15")][Oa("0x2f")]));e[Oa("0x0")]>0&&t[Oa("0x10")](e);for(const t of o)t[Oa("0x75")]()}))}))}))}function a(n){t[Oa("0x3")][Oa("0x44")]((o=>{const r=Array[Oa("0x30")](e[Oa("0x52")]()).map((t=>i.LiveRange[Oa("0x6")](t))),s=[];for(const t of n)for(const e of t[Oa("0x49")]({shallow:!0}))s[Oa("0x6f")](e);for(const e of s)Oa("0x4")!=e[Oa("0x15")][Oa("0x2f")]&&(o.setSelection(o[Oa("0x17")](e,0)),t[Oa("0x3e")][Oa("0x78")]("removeTableColumn").refresh(),t[Oa("0x26")](Oa("0x6a"),{forceDefaultExecution:!0}));const x=r[Oa("0x20")]((t=>Oa("0x4")!=t[Oa("0x15")].rootName));x[Oa("0x0")]>0&&o[Oa("0x10")](x);for(const t of r)t[Oa("0x75")]()}))}function c(t,e){return e.every((e=>t[Oa("0x2")]((t=>t[Oa("0x6b")][Oa("0x72")](e.start)||e.end.isEqual(t.start)))))}function l(t,e){return t[Oa("0x2")]((t=>e.some((e=>t[Oa("0x6b")][Oa("0x65")](e[Oa("0x60")])))))}t[Oa("0x3d")].downcastDispatcher.on("addMarker:suggestion",((t,e,n)=>{if(!n[Oa("0x85")][Oa("0x14")])return;const o=e[Oa("0x5c")];if(!o)return;const r=n[Oa("0x6e")].toViewElement(o);function s(t){return Array.isArray(t)?t:[t]}r&&"tableCell"===o[Oa("0x40")]&&(0,x.setHighlightHandling)(r,n.writer,((t,e,n)=>n[Oa("0x39")](s(e[Oa("0x7")]),t)),((t,e,n)=>n[Oa("0x1e")](s(e[Oa("0x7")]),t)))}),{priority:Oa("0x77")}),o[Oa("0x18")][Oa("0x21")]((t=>{if(Oa("0x68")!=t.type&&Oa("0x13")!=t[Oa("0x29")])return;const e=t[Oa("0x9")]();if(null!=e&&e.is(Oa("0x4d"),Oa("0x54"))){if(Oa("0x68")==t[Oa("0x29")]){const e=t[Oa("0x49")]()[Oa("0x20")]((t=>t.is(Oa("0x46"))))[Oa("0x22")]((t=>t[Oa("0x3d")]));if(e[Oa("0x0")])return{type:"insertion",content:as(n,Oa("0x8"),as(n,Oa("0x70"),'"'+e[Oa("0x66")](" ")+'"'))}}if("deletion"==t.type){const e=t[Oa("0x49")]()[Oa("0x20")]((t=>t.is(Oa("0x46")))).map((t=>t.data));if(e[Oa("0x0")])return{type:"deletion",content:as(n,"*Remove:* %0",as(n,Oa("0x70"),'"'+e[Oa("0x66")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t[Oa("0x49")]()[Oa("0x20")]((t=>t.is("textProxy")))[Oa("0x22")]((t=>t.data)),o=this[Oa("0x11")](t),r=o.maxRow-o[Oa("0x33")]+1;if(Oa("0x68")==t.type)return e[Oa("0x0")]?{type:Oa("0x68"),content:as(n,Oa("0x8"),as(n,Oa("0xd"),[r,'"'+e[Oa("0x66")](" ")+'"']))}:{type:"insertion",content:as(n,Oa("0x8"),as(n,"ELEMENT_TABLE_ROW",r))};if(Oa("0x13")==t.type)return e.length?{type:Oa("0x13"),content:as(n,Oa("0x63"),as(n,Oa("0xd"),[r,'"'+e[Oa("0x66")](" ")+'"']))}:{type:Oa("0x13"),content:as(n,"*Remove:* %0",as(n,"ELEMENT_TABLE_ROW",r))}}if(Oa("0x2c")==t[Oa("0x62")]){const e=t.getItems()[Oa("0x20")]((t=>t.is("textProxy")))[Oa("0x22")]((t=>t[Oa("0x3d")])),o=this[Oa("0x11")](t),r=o[Oa("0x48")]-o[Oa("0x1c")]+1;if(Oa("0x68")==t[Oa("0x29")])return e[Oa("0x0")]?{type:Oa("0x68"),content:as(n,"*Insert:* %0",as(n,Oa("0x50"),[r,'"'+e[Oa("0x66")](" ")+'"']))}:{type:Oa("0x68"),content:as(n,Oa("0x8"),as(n,Oa("0x7f"),r))};if("deletion"==t.type)return e[Oa("0x0")]?{type:Oa("0x13"),content:as(n,Oa("0x63"),as(n,Oa("0x50"),[r,'"'+e[Oa("0x66")](" ")+'"']))}:{type:Oa("0x13"),content:as(n,Oa("0x63"),as(n,Oa("0x7f"),r))}}})),o._suggestionFactory.registerCustomCallback("insertion",Oa("0x4f"),Oa("0x19"),s),o[Oa("0x4c")][Oa("0x42")]("deletion","tableRow","accept",s),o[Oa("0x4c")][Oa("0x42")](Oa("0x68"),"tableColumn",Oa("0x19"),a),o[Oa("0x4c")].registerCustomCallback("deletion",Oa("0x2c"),Oa("0x2d"),a),o[Oa("0x4c")].registerCustomCallback("insertion",Oa("0x2c"),Oa("0x66"),c),o[Oa("0x4c")][Oa("0x42")](Oa("0x13"),Oa("0x2c"),"join",c),o._suggestionFactory[Oa("0x42")](Oa("0x68"),Oa("0x4f"),"join",l),o[Oa("0x4c")].registerCustomCallback("deletion",Oa("0x4f"),Oa("0x66"),l)}[Oa("0x73")](){const t=this[Oa("0x74")],e=t[Oa("0x3")][Oa("0x7e")][Oa("0x16")];return(n,o)=>{t[Oa("0x3")][Oa("0x44")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][Oa("0x6b")][Oa("0x79")];x&&x[0]&&!1===x[0][Oa("0x31")]&&(a=n[0].start[Oa("0x32")]);const c=r[Oa("0x28")](a);if(Oa("0x4")==c[Oa("0x15")].rootName)return;const l=Array[Oa("0x30")](e.getRanges()).map((t=>i.LiveRange[Oa("0x6")](t)));r[Oa("0x10")](c),t[Oa("0x3e")].get(s)[Oa("0x7b")](),x[Oa("0x6f")]({forceDefaultExecution:!0}),t[Oa("0x26")](s,...x);const u=l[Oa("0x20")]((t=>Oa("0x4")!=t[Oa("0x15")][Oa("0x2f")]));u[Oa("0x0")]>0&&r[Oa("0x10")](u);for(const t of l)t[Oa("0x75")]()}))}}[Oa("0x3f")](t){const e=this[Oa("0x74")][Oa("0x7c")][Oa("0x78")](Oa("0x1"));let n=Number.MAX_SAFE_INTEGER,o=Number[Oa("0x53")],r=Number[Oa("0x5f")],s=Number[Oa("0x53")];for(const i of t){if(Oa("0x4")==i[Oa("0x15")][Oa("0x2f")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Oa("0x82")]("rowspan")?i[Oa("0x5a")](Oa("0x34"))-1:0,c=i[Oa("0x82")](Oa("0x6c"))?i[Oa("0x5a")](Oa("0x6c"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[Oa("0x81")](){const t=this[Oa("0x74")],e=t[Oa("0x7c")][Oa("0x78")]("TrackChangesEditing"),n=t[Oa("0x7c")][Oa("0x78")](Oa("0x1"));this._tableSuggestions=new Set,t[Oa("0x3")][Oa("0x7e")].on("change:data",(()=>{const n=Array[Oa("0x30")](t[Oa("0x3")][Oa("0x7e")][Oa("0x1a")][Oa("0xf")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Oa("0x35")])continue;const i=e.getSuggestion(r);this[Oa("0x5e")][Oa("0xe")](s)&&this[Oa("0x1f")][Oa("0x4a")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const r=e[Oa("0x5d")](t),s=t[Oa("0xb")]("table"),i=n[Oa("0x67")](t);for(const e of this._tableSuggestions){const n=e[Oa("0x62")],x=n[Oa("0x47")](Oa("0x4e")),a=n[Oa("0xc")](x?10:5),c=a[Oa("0x64")](),l=c.substr(0,3)+Oa("0x2a"),u="min"+a,d="max"+a;if(!e[Oa("0x43")])continue;if(s!=e[Oa("0x36")]()[Oa("0x60")][Oa("0xb")](Oa("0x54")))continue;if(e.isIntersectingWithRange(r))continue;const g=t[Oa("0x82")](l)?t[Oa("0x5a")](l)-1:0,m=this[Oa("0x11")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Oa("0x3b")](r),o=!0)}return o};t.model[Oa("0x7e")][Oa("0x58")]((e=>{let n=!1;for(const r of t[Oa("0x3")][Oa("0x7e")].differ[Oa("0xa")]())if(Oa("0x37")==r[Oa("0x29")])if("tableRow"==r[Oa("0x40")])for(const t of r[Oa("0x83")].nodeAfter[Oa("0x1d")]())n=n||o(t,e);else Oa("0x3a")==r[Oa("0x40")]&&(n=n||o(r[Oa("0x83")].nodeAfter,e));return n}))}[Oa("0x11")](t){return this._getCoordsForCells(t[Oa("0x52")]()[Oa("0x22")]((t=>t[Oa("0x60")][Oa("0x32")])))}}function Pa(t){return Array.from(new Set(t)[Oa("0x80")]())}const Da=["_suggestionFactory","element","selection","splitTableCellVertically","mergeTableCells","*Split cell:* horizontally","model","getAncestors","length","filter","getFirstPosition","getRanges","isEnabled","mergeTableCellDown","detach","insertion","from","value","registerCustomCallback","commands","getSelectionAffectedTableCells","deletion","has","plugins","containsRange","stop","splitTableCellHorizontally","isInContent","return","subType","document","TableEditing","*Merge cells*","push","format","formatBlock","_acceptFormatSuggestionCallbackFactory","_areMergableCells","low","mergeTableCellUp","TableUtils","*Split cell:* vertically","author","getSuggestions","createRangeOn","_tablePostFixingSubtypes","execute","mergeTableCellRight","tableCell","markMultiRangeBlockFormat","findAncestor","commandName","change","requires","enableCommand","createTableWalker","setSelection","mergeTableCellLeft","registerDescriptionCallback","_areSelectedCellsMergable","size","type","editor","locale","highest","getCellLocation","find","trackChanges","_descriptionFactory","set:isEnabled","_isForcedDefaultExecutionBlock","add","accept","rootName","map","TrackChangesEditing","refresh","forceDefaultExecution","get"];var Ba,ja;Ba=Da,ja=254,function(t){for(;--t;)Ba.push(Ba.shift())}(++ja);const Ua=function(t,e){return Da[t-=0]};class Ga extends t.Plugin{static get[Ua("0x24")](){return[Fa]}afterInit(){const t=this.editor,e=t[Ua("0x44")][Ua("0xd")][Ua("0x40")],n=t[Ua("0x2e")];if(!t[Ua("0x6")].has(Ua("0xe")))return;const o=t.plugins[Ua("0x3d")](Ua("0x3a")),r=t[Ua("0x6")][Ua("0x3d")](Ua("0x17")),s=t[Ua("0x6")][Ua("0x3d")](Fa);s[Ua("0x1c")][Ua("0x10")](Ua("0x42")),o[Ua("0x25")]("mergeTableCells",(()=>{const e=r[Ua("0x3")](t[Ua("0x44")][Ua("0xd")][Ua("0x40")]);t[Ua("0x44")][Ua("0x23")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],Ua("0x42"))}))})),t.commands[Ua("0x3d")](Ua("0x42")).on(Ua("0x1d"),((e,n)=>{t[Ua("0x2")][Ua("0x3d")](Ua("0x32"))[Ua("0x0")]&&(n[Ua("0x46")]>0&&n[n.length-1]&&n[n[Ua("0x46")]-1][Ua("0x3c")]||o[Ua("0x35")]||this[Ua("0x2a")]()||e[Ua("0x8")]())}),{priority:Ua("0x2f")});for(const e of[Ua("0x16"),"mergeTableCellRight",Ua("0x4b"),"mergeTableCellLeft"]){const n=t[Ua("0x2")][Ua("0x3d")](e);o[Ua("0x25")](e,(()=>{const e=t[Ua("0x44")][Ua("0xd")].selection[Ua("0x48")]().getAncestors()[Ua("0x31")]((t=>t.is(Ua("0x3f"),Ua("0x1f")))),r=n[Ua("0x0")];t[Ua("0x44")].change((()=>{o[Ua("0x20")]([e,r],{commandName:"mergeTableCells",commandParams:[]},[],Ua("0x42"))}))}))}for(const e of[Ua("0x41"),"splitTableCellHorizontally"]){const n=t[Ua("0x2")][Ua("0x3d")](e);o.enableCommand(e,(()=>{const s=r[Ua("0x3")](t[Ua("0x44")][Ua("0xd")][Ua("0x40")])[0],i=s[Ua("0x21")]("table"),{column:x,row:a}=r[Ua("0x30")](s);let c=[];if("horizontally"==n.direction){const t=r[Ua("0x26")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Ua("0x4e")](t).map((t=>t.cell))}else{const t=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Ua("0x4e")](t)[Ua("0x39")]((t=>t.cell))}t[Ua("0x44")][Ua("0x23")]((t=>{o.markBlockFormat(t[Ua("0x1b")](s),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Ua("0x29")]((t=>{const{data:e}=t;if(e)return Ua("0x42")==e.commandName?{type:Ua("0x11"),content:as(n,Ua("0xf"))}:void 0})),o[Ua("0x33")][Ua("0x29")]((t=>{const{data:e}=t;if(e)return Ua("0x41")==e[Ua("0x22")]?{type:Ua("0x11"),content:as(n,Ua("0x18"))}:Ua("0x9")==e[Ua("0x22")]?{type:Ua("0x11"),content:as(n,Ua("0x43"))}:void 0}));const x=s[Ua("0x13")]();for(const t of[Ua("0x16"),Ua("0x1e"),Ua("0x4b"),Ua("0x28")])o[Ua("0x3e")].registerCustomCallback(Ua("0x12"),t,Ua("0x37"),x);for(const t of[Ua("0x41"),Ua("0x9")])o[Ua("0x3e")][Ua("0x1")]("formatBlock",t,"accept",x);o[Ua("0x3e")][Ua("0x1")]("formatBlock",Ua("0x42"),Ua("0x37"),(n=>{t.model[Ua("0x23")]((o=>{const r=Array[Ua("0x4e")](e.getRanges())[Ua("0x39")]((t=>i.LiveRange.fromRange(t)));o[Ua("0x27")](n),t.commands.get(Ua("0x42"))[Ua("0x3b")](),t[Ua("0x1d")](Ua("0x42"),{forceDefaultExecution:!0});const s=r[Ua("0x47")]((t=>"$graveyard"!=t.root[Ua("0x38")]));s[Ua("0x46")]>0&&o[Ua("0x27")](s);for(const t of r)t[Ua("0x4c")]()}))}));for(const e of[Ua("0x16"),Ua("0x4b"),Ua("0x28"),"mergeTableCellRight"]){const n=t[Ua("0x2")].get(e);n.on(Ua("0x34"),((e,o,r)=>{if(r){const o=t[Ua("0x44")].document.selection[Ua("0x48")]()[Ua("0x45")]()[Ua("0x31")]((t=>t.is(Ua("0x3f"),Ua("0x1f"))));this[Ua("0x14")](n[Ua("0x0")],o)||(e[Ua("0xb")]=!1,e.stop())}}),{priority:Ua("0x15")})}}[Ua("0x2a")](){const t=this[Ua("0x2d")][Ua("0x2")].get(Ua("0x42")),e=this[Ua("0x2d")][Ua("0x6")].get(Ua("0x17"));if(!t[Ua("0x4a")])return!1;const n=e[Ua("0x3")](this.editor[Ua("0x44")][Ua("0xd")][Ua("0x40")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Ua("0x14")](t,e){const n=this[Ua("0x2d")][Ua("0x6")].get(Ua("0x3a")),o=this[Ua("0x2d")].model[Ua("0x1b")](t),r=this[Ua("0x2d")][Ua("0x44")][Ua("0x1b")](e),s=new Set,i=new Set;for(const t of n[Ua("0x1a")]())if((Ua("0x4d")==t.type||Ua("0x4")==t.type||Ua("0x42")==t[Ua("0xc")])&&t[Ua("0xa")])for(const e of t[Ua("0x49")]())e.containsRange(o,!0)&&s[Ua("0x36")](t[Ua("0x2c")]+":"+t.author.id),e[Ua("0x7")](r,!0)&&i.add(t[Ua("0x2c")]+":"+t[Ua("0x19")].id);if(s[Ua("0x2b")]!=i[Ua("0x2b")])return!1;for(const t of s)if(!i[Ua("0x5")](t))return!1;return!0}}const Ha=["model","commands","writer","showSuggestionHighlights","locale","toViewElement","ck-suggestion-marker--active","FORMAT_REGULAR_ROW","getSelectionAffectedTableCells","TableEditing","getRowIndexes","childCount","commandParams","_descriptionFactory","commandName","removeMarker:suggestion","editing","getCellLocation","selection","TrackChangesEditing","data-suggestion","nodeBefore","parent","highest","table","_acceptFormatSuggestionCallbackFactory","afterInit","formatBlock","_suggestionFactory","has","setTableColumnHeader","document","consumable","index","first","createRange","last","createPositionBefore","markerName","removeAttribute","unbindElementFromMarkerName","item","getChild","cell","forceValue","getColumnIndexes","addClass","setTableRowHeader","nodeAfter","start","*Format:* %0","from","_splitMarkerName","markBlockFormat","findAncestor","TableUtils","options","mapper","change","headingRows","markerRange","ck-suggestion-marker-","data","addMarker:suggestion","downcastDispatcher","consume","removeClass","accept","requires","registerCustomCallback","FORMAT_HEADER_COLUMN","createTableWalker","plugins","get","format","getAttribute","end","enableCommand","createPositionAfter"];var Wa,Va;Wa=Ha,Va=493,function(t){for(;--t;)Wa.push(Wa.shift())}(++Va);const za=function(t,e){return Ha[t-=0]};class Ka extends t.Plugin{static get[za("0x31")](){return[Fa]}[za("0x7")](){const t=this.editor;if(!t[za("0x35")][za("0xa")](za("0x45")))return;const e=t[za("0x40")],n=t.plugins.get(za("0x0")),o=t[za("0x35")][za("0x36")](za("0x24")),r=t[za("0x35")][za("0x36")](Fa);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[za("0x21")](s[za("0x13")]),c=n.getSuggestion(a);if(!c[za("0x2b")]||za("0xb")!=c[za("0x2b")][za("0x4a")])return;if(s[za("0x16")])return void r.stop();if(!i[za("0xd")][za("0x2e")](s.markerRange,r.name))return;const l=s[za("0x29")][za("0x1e")][za("0x1d")],u=s[za("0x29")][za("0x39")][za("0x2")],d=l[za("0x3")][za("0x3")],{column:g}=o[za("0x4d")](l),{column:m}=o[za("0x4d")](u);for(let r=g;r<=m;r++){const c=o[za("0x34")](d,{column:r,includeAllSlots:!1});for(const o of c){const r=o[za("0x18")],c=i[za("0x26")][za("0x41")](r);i[za("0x3e")].addClass(za("0x2a")+x,c),e&&i[za("0x3e")].setAttribute(za("0x1"),a,c),i.mapper.bindElementToMarker(c,s[za("0x13")]),t&&(n.activeMarkers.includes(s.markerName)?i[za("0x3e")][za("0x1b")](za("0x42"),c):i[za("0x3e")][za("0x2f")](za("0x42"),c))}}}}n.enableCommand("setTableRowHeader",((e,r)=>{const s=o[za("0x44")](t[za("0x3c")][za("0xc")][za("0x4e")]),i=o[za("0x46")](s),x=s[0].findAncestor("table"),a=x[za("0x38")](za("0x28"))||0,c=r&&null!==r.forceValue?r[za("0x19")]:!t[za("0x3d")].get(za("0x1c")).value,l=c?i[za("0x11")]:i[za("0xf")],u=x[za("0x17")](l);let d;if(c){const e=x[za("0x17")](a);if(u.index<e[za("0xe")])return;d=t[za("0x3c")].createRange(t.model[za("0x12")](e[za("0x17")](0)),t[za("0x3c")].createPositionAfter(u[za("0x17")](u[za("0x47")]-1)))}else{const e=x[za("0x17")](a-1);if(!e)return;d=t[za("0x3c")][za("0x10")](t[za("0x3c")][za("0x12")](u[za("0x17")](0)),t[za("0x3c")][za("0x3b")](e[za("0x17")](e[za("0x47")]-1)))}t[za("0x3c")].change((()=>{n[za("0x22")](d,{commandName:za("0x1c"),commandParams:[{forceValue:c}]},[],za("0x1c"))}))})),n[za("0x3a")]("setTableColumnHeader",((e,o)=>{const r=t.plugins[za("0x36")](za("0x24")),s=r.getSelectionAffectedTableCells(t.model.document[za("0x4e")]),i=r[za("0x1a")](s),x=s[0][za("0x23")](za("0x5")),a=x[za("0x38")]("headingColumns")||0,c=o&&null!==o.forceValue?o[za("0x19")]:!t[za("0x3d")][za("0x36")](za("0xb")).value;let l;const u=x[za("0x17")](0),d=c?i[za("0x11")]:i[za("0xf")],g=r[za("0x34")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[za("0x20")](g)[0][za("0x18")];if(c){const e=u[za("0x17")](a);if(m.isBefore(e))return;l=t[za("0x3c")][za("0x10")](t.model[za("0x12")](e),t[za("0x3c")].createPositionAfter(m))}else{const e=u[za("0x17")](a-1);if(!e)return;l=t[za("0x3c")][za("0x10")](t.model.createPositionBefore(m),t.model[za("0x3b")](e))}t[za("0x3c")][za("0x27")]((()=>{n.markBlockFormat(l,{commandName:za("0xb"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[za("0x4c")][za("0x2d")].on("addMarker:suggestion",s(),{priority:za("0x4")}),t[za("0x2b")].downcastDispatcher.on(za("0x2c"),((t,e,n)=>{n[za("0x25")][za("0x3f")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:za("0x4")}),t[za("0x4c")][za("0x2d")].on(za("0x4b"),((t,e,o)=>{const{type:r,id:s}=n._splitMarkerName(e.markerName),i=n.getSuggestion(s);if(!i[za("0x2b")]||za("0xb")!=i[za("0x2b")][za("0x4a")])return;const x=o[za("0x26")].markerNameToElements(e[za("0x13")]);if(x)for(const t of x)o[za("0x3e")][za("0x2f")](za("0x2a")+r,t),o[za("0x3e")][za("0x2f")](za("0x42"),t),o[za("0x3e")][za("0x14")](za("0x1"),t),o[za("0x26")][za("0x15")](t,e[za("0x13")])}),{priority:za("0x4")}),n[za("0x49")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(za("0x1c")==n[za("0x4a")]){const t=n[za("0x48")][0].forceValue;return o(as(e,t?"FORMAT_HEADER_ROW":za("0x43")))}if(za("0xb")==n[za("0x4a")]){const t=n[za("0x48")][0][za("0x19")];return o(as(e,t?za("0x33"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:za("0x37"),content:as(e,za("0x1f"),t)}}}));const i=r[za("0x6")]();n._suggestionFactory.registerCustomCallback(za("0x8"),za("0x1c"),"accept",i),n[za("0x9")][za("0x32")](za("0x8"),za("0xb"),za("0x30"),i)}}const qa=["model","markMultiRangeBlockFormat","end","nodeAfter","fromEntries","getContainedElement","high","table","find","Users","getSelectionAffectedTableCells","_tablePostFixingSubtypes","tablePasteCell","getColumnIndexes","getSuggestion","suggestion","has","wrap","insertionRanges","add","subType","selection","setAttribute","previousSibling","element","name","forceDefaultExecution","tableCellBorderWidth","removeMarkers","tableCellPadding","rows","ck-suggestion-marker-insertion","change","for","getSuggestions","_isForcedDefaultExecutionBlock","findAncestor","suggestionLoaded","markMultiRangeInsertion","suggestion-td","createPositionBefore","trackChanges","createElement","markMultiRangeDeletion","markers","commands","markerAttributes","attributes","next","formatBlock","move","author","unwrap","keys","removeRows","rowInsertionIndexes","schema","_getCoordsForCells","tableCellBackgroundColor","differ","endRow","_splitMarkerName","activeMarkers","nextSibling","registerPostFixer","cell","push","previous","markerToHighlight","isInContent","column","removeMarker","afterInit","tableCellVerticalAlignment","endColumn","suggestion:formatBlock:tablePasteCell","root","rootName","remove","editor","TableClipboard","length","start","clipboardOutput","getTableIfOnlyTableInContent","getColumns","dataDowncast","from","startsWith","set","view","columns","createRange","markerName","updateMarker","registerDescriptionCallback","createRangeIn","createTableWalker","content","isEmpty","low","getRanges","getChildren","columnInsertionIndexes","tablePasteColumn","redo","$graveyard","batch","stop","insert","some","every","ck-suggestion-marker","tablePasteRow","document","_createdBatches","getRows","isEqual","insertRows","get","register","columnInsertionRanges","includes","removeColumns","accept","type","listenTo","last","editingDowncast","requires","filter","registerCustomCallback","showSuggestionHighlights","createRangeOn","getItems","cells","fill","_replaceTableSlotCell","suggestionUnloaded","join","tablePasteChainId","getAllAdjacentSuggestions","getSuggestionCallback","tablePaste","_suggestionFactory","tableCellSuggestion","deletion","map","oldRange","insertion","row","reduce","getRowIndexes","paragraph","elementToElement","plugins","setAttributes","options","discard","conversion","getRange","tableCellBorderStyle","newRange","getChild","getChanges","tableCell","getMarkers","containsRange","position","tableCellBorderColor","entries","getChangedMarkers","first"];var Xa,$a;Xa=qa,$a=409,function(t){for(;--t;)Xa.push(Xa.shift())}(++$a);const Qa=function(t,e){return qa[t-=0]},Ja=[Qa("0x89"),Qa("0x6a"),Qa("0x62"),"tableCellHorizontalAlignment",Qa("0xa"),Qa("0xa8"),Qa("0x8b")],Za=Object[Qa("0x72")](Ja[Qa("0x54")]((t=>[t,null])));class Ya extends t.Plugin{static get[Qa("0x42")](){return[Fa]}[Qa("0x9")](){const t=this[Qa("0x10")];if(!t[Qa("0x5c")].has(Qa("0x11")))return;const n=t[Qa("0x5c")].get("TrackChangesEditing"),o=t[Qa("0x5c")][Qa("0x38")]("TableUtils"),r=t[Qa("0x5c")][Qa("0x38")](Fa),s=t[Qa("0x5c")][Qa("0x38")]("TableClipboard");r[Qa("0x79")][Qa("0x3")](Qa("0x32"),Qa("0x29")),t[Qa("0x6e")][Qa("0xa6")][Qa("0x39")](Qa("0x52"),{allowIn:"tableCell",allowContentOf:Qa("0x66"),isLimit:!0}),t[Qa("0x60")][Qa("0x5b")]({model:Qa("0x52"),view:Qa("0x95")});let i=null;t[Qa("0x6e")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x[Qa("0x12")]-1];l&&l[Qa("0x88")]||n[Qa("0x91")]||this[Qa("0x10")][Qa("0x9b")][Qa("0x38")](Qa("0x97")).value&&function(t,e,n,o,r){if(e&&!e.is("documentSelection"))return!1;const s=r[Qa("0x15")](t,n);if(!s||!ec(s,null,o))return!1;const i=o[Qa("0x78")](n[Qa("0x33")][Qa("0x83")]);if(!i.length)return!1;const x=i[0].findAncestor("table"),a=o[Qa("0x59")](i),c=o[Qa("0x7b")](i),l={startRow:a[Qa("0x6d")],endRow:a[Qa("0x40")],startColumn:c[Qa("0x6d")],endColumn:c[Qa("0x40")]};return 1==i.length&&(l[Qa("0xaa")]+=o[Qa("0x35")](s)-1,l[Qa("0xb")]+=o[Qa("0x16")](s)-1),ec(x,l,o)}(a,c,t[Qa("0x6e")],o,s)&&(r[Qa("0x2d")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Qa("0x8e")]((()=>{t[Qa("0x6e")].insertContent(x[0],x[1],x[2],x[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Qa("0x12")]&&n.markMultiRangeInsertion(r,Qa("0x32"),{tablePasteChainId:o}),s[Qa("0x12")]&&n.markMultiRangeInsertion(s,Qa("0x29"),{tablePasteChainId:o}),a[Qa("0x12")]&&n[Qa("0x94")](a,Qa("0x50"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Qa("0x12")]&&n[Qa("0x99")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Qa("0x6f")](l[Qa("0x54")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Qa("0x7a"),{tablePasteChainId:o});if(u){const e=u[Qa("0x67")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Qa("0x6e")].createRangeOn(o),i=e.find((t=>t[Qa("0x61")]().isEqual(s)));i&&n[Qa("0x3")]([i.name,r])}n.length&&u[Qa("0x84")](Qa("0x9c"),Object[Qa("0x72")](n))}i=null})))}),{priority:e.priorities[Qa("0x74")]+10}),t[Qa("0x5c")][Qa("0x38")](Qa("0x11")).on(Qa("0x4a"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t[Qa("0x2d")]();const s=n[Qa("0x2")],x=o,a=tc(s),c=tc(x);t.return=s;let l=null,u=null;if(c||a)if(a&&!c){r[Qa("0xf")](s[Qa("0x64")](0));for(const t of Array[Qa("0x18")](x[Qa("0x27")]()))r[Qa("0x2e")](t,s,Qa("0x70"));const t=i[Qa("0xa5")][Qa("0x3b")](n[Qa("0x57")]),e=i[Qa("0x28")].includes(n[Qa("0x7")]);t||e||(l=r[Qa("0x21")](s))}else c&&!a&&(u=r[Qa("0x21")](s));else{const t=r.createElement("tableCellSuggestion"),e=r[Qa("0x98")](Qa("0x52"));r[Qa("0x7f")](r[Qa("0x21")](s),e),r[Qa("0x2e")](t,s,0);for(const e of Array[Qa("0x18")](x[Qa("0x27")]()))r[Qa("0x2e")](e,t,"end");l=r[Qa("0x46")](t),u=r[Qa("0x46")](e)}const d=Array[Qa("0x18")](x.getAttributes())[Qa("0x43")]((([t])=>Ja[Qa("0x3b")](t)));i[Qa("0x48")][Qa("0x3")]({element:s,attributes:d[Qa("0x12")]?Object.fromEntries(d):null}),l&&i[Qa("0x80")][Qa("0x3")](l),u&&i.deletionRanges[Qa("0x3")](u)}),{priority:"high"}),o.on("insertColumns",((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Qa("0x1c")]||1;i[Qa("0x28")]=new Array(a)[Qa("0x49")](x)[Qa("0x54")](((t,e)=>t+e));for(const{cell:e}of o[Qa("0x22")](r,{startColumn:x,endColumn:x+a-1}))i[Qa("0x3a")][Qa("0x3")](t[Qa("0x6e")][Qa("0x46")](e))}),{priority:Qa("0x25")}),o.on(Qa("0x37"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Qa("0x8c")]||1;i.rowInsertionIndexes=new Array(a)[Qa("0x49")](x)[Qa("0x54")](((t,e)=>t+e));for(const{cell:e}of o[Qa("0x22")](r,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Qa("0x3")](t[Qa("0x6e")].createRangeOn(e))}),{priority:Qa("0x25")}),n._descriptionFactory[Qa("0x20")]((e=>{if(e[Qa("0x82")]&&e[Qa("0x82")][Qa("0x19")]("tablePaste"))return e[Qa("0x4")]?{}:{type:Qa("0x56"),content:as(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[Qa("0x50"),Qa("0x29"),"tablePasteRow",Qa("0x7a")])n[Qa("0x51")][Qa("0x44")]("insertion",t,"join",x),n[Qa("0x51")][Qa("0x44")](Qa("0x53"),t,Qa("0x4c"),x);n._suggestionFactory[Qa("0x44")](Qa("0x9f"),Qa("0x7a"),Qa("0x5f"),x),n[Qa("0x51")][Qa("0x44")]("formatBlock",Qa("0x7a"),Qa("0x3d"),((e,n,o)=>{const r=e.map((t=>t.getContainedElement()))[Qa("0x43")]((t=>t)),s=new Map(r[Qa("0x54")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Qa("0x48")])e&&s[Qa("0x1a")](t,e);else if(o&&o[Qa("0x9c")])for(const[e,n]of Object[Qa("0x6b")](o[Qa("0x9c")])){const o=t.model[Qa("0x9a")][Qa("0x38")](e),r=o?o[Qa("0x61")]()[Qa("0x73")]():null;r&&s[Qa("0x1a")](r,n)}t[Qa("0x6e")][Qa("0x8e")]((t=>{for(const[e,n]of s)t[Qa("0x5d")]({...Za,...n},e)}))}));const a=(e,o)=>{n[Qa("0x51")].registerCustomCallback(e,Qa("0x50"),o,((r,s,i)=>{t.model.change((t=>{const x=[];for(const t of r){const e=t[Qa("0x13")][Qa("0x71")];e.is(Qa("0x86"),Qa("0x52"))&&x.push(e)}n[Qa("0x51")][Qa("0x4f")](e,null,o)(r,s,i);for(const e of x)Qa("0x2b")!=e[Qa("0xd")][Qa("0xe")]&&t.unwrap(e)}))}))};a(Qa("0x56"),Qa("0x3d")),a(Qa("0x56"),Qa("0x5f")),a(Qa("0x53"),Qa("0x3d")),a(Qa("0x53"),Qa("0x5f")),n[Qa("0x51")][Qa("0x44")](Qa("0x56"),Qa("0x32"),Qa("0x5f"),(t=>{const e=t[Qa("0x54")]((t=>t[Qa("0x73")]())),n=e[0][Qa("0x92")](Qa("0x75")),{minRow:s,maxRow:i}=r[Qa("0xa7")](e);o[Qa("0xa4")](n,{at:s,rows:i-s+1})})),n[Qa("0x51")][Qa("0x44")](Qa("0x56"),Qa("0x29"),Qa("0x5f"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Qa("0x92")]("table"),{minColumn:s,maxColumn:i}=r[Qa("0xa7")](e);o[Qa("0x3c")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Qa("0x82")]||!e[Qa("0x82")][Qa("0x19")](Qa("0x50")))return;const o=e[Qa("0x9d")][Qa("0x4d")],r=n[Qa("0x90")]()[Qa("0x43")]((t=>t[Qa("0x6")]&&t[Qa("0x9d")]&&t[Qa("0x9d")][Qa("0x4d")]==o));r[Qa("0x12")]&&e[Qa("0x4e")]()[Qa("0x12")]!=r[Qa("0x12")]&&r[Qa("0x58")](((t,e)=>(t[Qa("0x9e")]=e,e[Qa("0x4")]=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n._splitMarkerName(t[Qa("0x1e")]),r=[Qa("0x31"),Qa("0x8d")],s=n[Qa("0xac")].includes(t[Qa("0x1e")]);return s&&r[Qa("0x3")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Qa("0x93"),c,{priority:Qa("0x74")}),n.on(Qa("0x4b"),c,{priority:"high"}),t[Qa("0x6e")][Qa("0x33")][Qa("0x1")]((()=>{let e=!1;const o=Array.from(t[Qa("0x6e")][Qa("0x33")][Qa("0xa9")][Qa("0x6c")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Qa("0xab")](r);if(Qa("0x7d")!=o||Qa("0x53")!=i||s.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[Qa("0x7c")](x)[Qa("0x26")](),c=t[Qa("0x5c")][Qa("0x38")](Qa("0x77")).me;for(const t of n[Qa("0x90")]())if(t[Qa("0x6")]&&t.author==c&&Qa("0x9f")==t[Qa("0x3e")]&&"tablePasteCell"==t[Qa("0x82")]&&t[Qa("0x26")]()[Qa("0x30")]((t=>a[Qa("0x2f")]((e=>e[Qa("0x68")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Qa("0x6")]&&(n.discard(),e=!0)}return e})),t[Qa("0x6e")][Qa("0x33")][Qa("0x1")]((e=>{const o=t[Qa("0x9b")][Qa("0x38")](Qa("0x2a"));if(!o||!o[Qa("0x34")][Qa("0x7e")](e[Qa("0x2c")]))return!1;let r=!1;const s=t[Qa("0x5c")][Qa("0x38")](Qa("0x77")).me,i=t[Qa("0x6e")][Qa("0x33")].differ[Qa("0x65")](),x=Array.from(t[Qa("0x6e")].document[Qa("0xa9")][Qa("0x6c")]())[Qa("0x43")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Qa("0xab")](t);return Qa("0x7d")==o&&Qa("0x50")==r&&i==s.id&&!e[Qa("0x55")]}));for(const t of i){if(Qa("0x2e")!=t[Qa("0x3e")]||Qa("0x52")!=t[Qa("0x87")]||1!=t[Qa("0x12")])continue;const n=e[Qa("0x1d")](t.position,t[Qa("0x69")].getShiftedBy(1));if(!x[Qa("0x76")]((({data:t})=>t[Qa("0x63")][Qa("0x36")](n))))for(const{name:t,data:o}of x)if(n[Qa("0x68")](o.newRange)){e[Qa("0x1f")](t,{range:n}),r=!0;break}}return r})),t[Qa("0x6e")][Qa("0x33")].registerPostFixer((e=>{let o=!1;const r=t.plugins.get("Users").me,s=n.getSuggestions().filter((t=>t[Qa("0x6")]&&t[Qa("0xa1")]==r)),i=new Set,x=new Set;for(const t of s)if(Qa("0x50")==t[Qa("0x82")])for(const e of t[Qa("0x67")]()){const n=e[Qa("0x61")]()[Qa("0x73")]();if(n)if(n.is(Qa("0x86"),Qa("0x52"))&&tc(n)){t[Qa("0x8")](e[Qa("0x87")]),i[Qa("0x81")](n),o=!0;const r=n[Qa("0x0")],s=n[Qa("0x85")],a=r&&r.is(Qa("0x86"),Qa("0x52")),c=s&&s.is(Qa("0x86"),Qa("0x52"));a&&!i.has(r)&&x[Qa("0x81")](r),c&&!i[Qa("0x7e")](s)&&x.add(s)}else n.is(Qa("0x86"),Qa("0x5a"))&&n[Qa("0x24")]&&(t[Qa("0x8")](e[Qa("0x87")]),o=!0)}else if(Qa("0x7a")==t[Qa("0x82")]){if(!t[Qa("0x9d")]||!t[Qa("0x9d")].tablePasteChainId)continue;const e=t.attributes[Qa("0x9c")];if(e&&Object[Qa("0xa3")](e).length)continue;const n=t[Qa("0x9d")][Qa("0x4d")];let r=!0,i=!0;for(const e of s)if(e[Qa("0x82")]&&e[Qa("0x82")][Qa("0x19")](Qa("0x50"))){if(!e[Qa("0x9d")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){r=!1;break}}i&&r&&(t[Qa("0x8a")](),o=!0)}for(const t of i)e[Qa("0xf")](t);for(const t of x)e[Qa("0xa2")](t);return o})),t[Qa("0x60")].for(Qa("0x41"))[Qa("0x5")]({model:Qa("0xc"),view:l,converterPriority:Qa("0x74")}),t[Qa("0x60")][Qa("0x8f")](Qa("0x17"))[Qa("0x5")]({model:Qa("0xc"),view:(t,e)=>{if(e[Qa("0x5e")][Qa("0x45")])return l(t,{showActiveMarker:!1})},converterPriority:Qa("0x74")});const u=t.editing[Qa("0x1b")];this[Qa("0x3f")](u[Qa("0x33")],Qa("0x14"),((t,e)=>{const n=[];for(const t of u[Qa("0x21")](e[Qa("0x23")])[Qa("0x47")]())t.is(Qa("0x86"),Qa("0x95"))&&n[Qa("0x3")](t);u[Qa("0x8e")]((t=>{for(const e of n)t[Qa("0xa0")](t[Qa("0x21")](e),t[Qa("0x96")](e)),t[Qa("0xf")](e)}))}))}}function tc(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(Qa("0x86"),Qa("0x5a"))&&e[Qa("0x24")]}function ec(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Qa("0x22")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const nc=["model","selection","has","registerCustomCallback","editor","TableColumnResizeEditing","formatGroupId","locale","setAttribute","handleResizeTableWidthCommand","_suggestionFactory","getSuggestions","handleSuggestionDescription","columnWidths","tableWidth","bind","formatBlock","getAttribute","plugins","document","markBlockFormat","get","table","_descriptionFactory","Users","resizeTable","getContainedElement","TrackChangesEditing","enableCommand","accept","data","*Format:* resize table","discard","resizeTableWidth","getSuggestionCallback"];var oc,rc;oc=nc,rc=475,function(t){for(;--t;)oc.push(oc.shift())}(++rc);const sc=function(t,e){return nc[t-=0]};class ic extends t.Plugin{afterInit(){if(!this[sc("0x13")].plugins[sc("0x11")](sc("0x14")))return;const t=this.editor.plugins[sc("0x1")](sc("0x7"));t[sc("0x8")](sc("0xd"),this[sc("0x18")].bind(this)),t[sc("0x8")]("resizeColumnWidths",this.handleResizeTableWidthCommand[sc("0x1e")](this)),t[sc("0x19")][sc("0x12")](sc("0x1f"),sc("0x5"),sc("0x9"),t[sc("0x19")].getSuggestionCallback(sc("0x1f"),null,sc("0xc"))),t[sc("0x19")].registerCustomCallback(sc("0x1f"),sc("0x5"),"discard",t[sc("0x19")][sc("0xe")](sc("0x1f"),null,sc("0x9"))),t[sc("0x3")].registerDescriptionCallback(this[sc("0x1b")].bind(this))}[sc("0x18")](t,e){const n=this[sc("0x13")][sc("0x21")][sc("0x1")](sc("0x7")),o=e[sc("0x2")]||this[sc("0x13")].model[sc("0x22")][sc("0x10")].getSelectedElement();this[sc("0x13")][sc("0xf")].change((t=>{let r=o[sc("0x20")](sc("0x1d"))||null,s=o.getAttribute(sc("0x1c"))||null;const i=e[sc("0x1d")]||r,x=e[sc("0x1c")]||s,a=this[sc("0x13")][sc("0x21")][sc("0x1")](sc("0x4")).me;for(const t of n[sc("0x1a")]()){const e=t[sc("0x6")]();if(sc("0x5")===t.subType&&e===o){t.author!==a&&t.discard(),r=t[sc("0xa")].commandParams[0][sc("0x1d")],s=t[sc("0xa")].commandParams[0].columnWidths;break}}t[sc("0x17")](sc("0x1d"),i,o),t.setAttribute(sc("0x1c"),x,o),n[sc("0x0")](o,{commandName:"resizeTableWidth",commandParams:[{tableWidth:r,columnWidths:s}],formatGroupId:"resizeTable"},[],sc("0x5"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"resizeTable"===e[sc("0x15")]){const t=sc("0xb");return{type:"format",content:as(this.editor[sc("0x16")],t)}}}}const xc=["locale","removeMarker","title-content","registerElementLabel","_splitMarkerName","forward","ELEMENT_TITLE","getChangedMarkers","nodeBefore","isEqual","isTouching","plugins","differ","model","getNearestSelectionRange","end","document","isCollapsed","newRange","TrackChangesEditing","editor","_descriptionFactory","start","schema","from","updateMarker","Title","afterInit","element","suggestion"];var ac,cc;ac=xc,cc=222,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends t.Plugin{[lc("0xf")](){const t=this[lc("0x8")];if(!t[lc("0x1d")].has(lc("0xe")))return;const e=t[lc("0x1d")].get(lc("0x7"));e[lc("0x9")][lc("0x15")](lc("0x14"),(()=>as(t[lc("0x12")],lc("0x18")))),t.model[lc("0x4")].registerPostFixer((n=>{let o=!1;const r=Array[lc("0xc")](t[lc("0x1")][lc("0x4")][lc("0x0")][lc("0x19")]());for(const{name:s,data:i}of r){const{group:r}=e[lc("0x16")](s);if(lc("0x11")!==r||!i[lc("0x6")])continue;const x=i[lc("0x6")],a=x[lc("0x3")][lc("0x1a")];if(!a||!a.is(lc("0x10"),lc("0x14")))continue;if(!x.start[lc("0x1c")](x[lc("0x3")]))continue;const c=t.model[lc("0xb")][lc("0x2")](x.end,lc("0x17"));if(c&&c[lc("0x5")]){const t=n.createRange(x[lc("0xa")],c[lc("0xa")]);t[lc("0x1b")](x)||(n[lc("0xd")](s,{range:t}),o=!0)}o||(n[lc("0x13")](s),o=!0)}return o}))}}const dc=["has","TrackChangesEditing","redo","undo","afterInit","plugins","editor"];var gc,mc;gc=dc,mc=418,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends t.Plugin{[fc("0x6")](){const t=this[fc("0x1")],e=t[fc("0x0")].get(fc("0x3"));t[fc("0x0")][fc("0x2")]("UndoEditing")&&(e.enableCommand(fc("0x5")),e.enableCommand(fc("0x4")))}}const pc=["get","enableCommand","requires","has","plugins","TrackChangesEditing"];var bc,Ec;bc=pc,Ec=468,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends t.Plugin{static get[_c("0x2")](){return[Fa]}afterInit(){const t=this.editor;t[_c("0x4")][_c("0x3")]("TableCaptionEditing")&&t.plugins[_c("0x0")](_c("0x5"))[_c("0x1")]("toggleTableCaption")}}const Cc=["config","toUpperCase","handleListReversedCommand","push","editor","isListItemBlock","replaceAll","listReversed","startIndex","DocumentListUtils","_descriptionFactory","isFirstBlockOfListItem","plugins","numbered","model","TrackChangesEditing","getAttribute","filter","DocumentListPropertiesUtils","styles","listStart","_getSuggestionBlocks","get","markMultiRangeBlockFormat","*Change to:* %0","handleDescriptions","handleListStyleCommand","enableCommand","*Format:* set order to regular","getSelectedBlocks","afterInit","list.properties","reversed","locale","change","ELEMENT_","length","_LIST_","listStyle","listType","registerDescriptionCallback","bind","commandName","from","hasAttribute","format","_getTranslationKeyForListStyle","DocumentListPropertiesEditing","*Format:* set start index to %0","expandListBlocksToCompleteList","handleListStartCommand","commandParams","selection"];var yc,kc;yc=Cc,kc=415,function(t){for(;--t;)yc.push(yc.shift())}(++kc);const Ac=function(t,e){return Cc[t-=0]};class vc extends t.Plugin{[Ac("0x27")](){if(!this[Ac("0xd")].plugins.has(Ac("0x3")))return;const t=this[Ac("0xd")][Ac("0x9")][Ac("0x1f")](Ac("0x28")),e=this[Ac("0xd")][Ac("0x15")][Ac("0x1f")](Ac("0x18"));t[Ac("0x1c")]&&e[Ac("0x24")](Ac("0x2f"),this.handleListStyleCommand.bind(this)),t[Ac("0x29")]&&e[Ac("0x24")](Ac("0x10"),this[Ac("0xb")][Ac("0x32")](this)),t[Ac("0x11")]&&e.enableCommand(Ac("0x1d"),this[Ac("0x6")].bind(this)),e[Ac("0x13")][Ac("0x31")](this[Ac("0x22")][Ac("0x32")](this))}[Ac("0x23")](t,e){const n=this.editor[Ac("0x15")][Ac("0x1f")](Ac("0x18")),o=this[Ac("0x1e")]((t=>t[Ac("0x0")]("listType")));null!==o&&this.editor[Ac("0x17")][Ac("0x2b")]((()=>{n[Ac("0x20")](o,{commandName:Ac("0x2f"),commandParams:[{type:e.type}],formatGroupId:Ac("0x2f")})}))}[Ac("0xb")](t,e){const n=this[Ac("0xd")].plugins.get(Ac("0x18")),o=this[Ac("0xd")][Ac("0x15")][Ac("0x1f")](Ac("0x12")),r=this[Ac("0x1e")]((t=>o[Ac("0xe")](t)&&Ac("0x16")===t[Ac("0x19")](Ac("0x30"))));null!==r&&this[Ac("0xd")].model[Ac("0x2b")]((()=>{n[Ac("0x20")](r,{commandName:"listReversed",commandParams:[{reversed:e[Ac("0x29")]}],formatGroupId:"listReversed"})}))}[Ac("0x6")](t,e){const n=this[Ac("0xd")][Ac("0x15")].get(Ac("0x18")),o=this[Ac("0xd")][Ac("0x15")][Ac("0x1f")]("DocumentListUtils"),r=this[Ac("0x1e")]((t=>o[Ac("0xe")](t)&&Ac("0x16")===t.getAttribute("listType")));null!==r&&this[Ac("0xd")][Ac("0x17")][Ac("0x2b")]((()=>{n[Ac("0x20")](r,{commandName:Ac("0x1d"),commandParams:[{startIndex:e[Ac("0x11")]}],formatGroupId:Ac("0x1d")})}))}[Ac("0x22")](t){const e=this[Ac("0xd")][Ac("0x2a")],{data:n}=t;if(!n)return;let o,r;switch(n[Ac("0x33")]){case Ac("0x2f"):o=Ac("0x21"),r={type:Ac("0x1"),content:as(e,o,as(e,this[Ac("0x2")](n[Ac("0x7")][0].type)))};break;case Ac("0x10"):o=n[Ac("0x7")][0].reversed?"*Format:* set order to reversed":Ac("0x25"),r={type:Ac("0x1"),content:as(e,o)};break;case"listStart":o=Ac("0x4"),r={type:Ac("0x1"),content:as(e,o,n[Ac("0x7")][0][Ac("0x11")])}}return r}[Ac("0x1e")](t){const e=this[Ac("0xd")].plugins[Ac("0x1f")](Ac("0x12"));let n=Array[Ac("0x34")](this[Ac("0xd")][Ac("0x17")].document[Ac("0x8")][Ac("0x26")]())[Ac("0x1a")](t);if(!n[Ac("0x2d")])return null;n=e[Ac("0x5")](n);const o=[];for(const t of n)e[Ac("0x14")](t)&&o[Ac("0xc")](t);return o}[Ac("0x2")](t){return Ac("0x2c")+this[Ac("0xd")].plugins[Ac("0x1f")](Ac("0x1b")).getListTypeFromListStyleType(t)[Ac("0xa")]()+Ac("0x2e")+t[Ac("0xa")]()[Ac("0xf")]("-","_")}}const Rc=["tableCellHeight","handleDiscardAction","_descriptionFactory","enableCommand","registerCustomCallback","has","tableProperties","_suggestionFactory","document","tableCellProperties","TrackChangesTableProperties","*Format:* change table properties","findAncestor","discard","tableCellPadding","data","subType","registerDescriptionCallback","table","tableWidth","get","*Format:* change table cell properties","getSelectionAffectedTableCells","TrackChangesEditing","TableUtils","tableBorderStyle","locale","editor","afterInit","tableBackgroundColor","tableCellBorderColor","formatBlock","_getSuggestion","plugins","getSuggestions","tableCellBorderStyle","getContainedElement","handleSuggestionDescription","tableCellHorizontalAlignment","change","getSuggestionCallback","accept","tableCellVerticalAlignment","enqueueChange","removeAttribute","batch","tableBorderWidth","selection","commandParams","tableCellBorderWidth","join","start","_handlePropertyChange","pluginName","format","model"];var Ic,Sc;Ic=Rc,Sc=144,function(t){for(;--t;)Ic.push(Ic.shift())}(++Sc);const Lc=function(t,e){return Rc[t-=0]};class Mc extends t.Plugin{static get[Lc("0x15")](){return Lc("0x22")}[Lc("0x34")](){const t=this[Lc("0x33")][Lc("0x1")][Lc("0x2c")]("TrackChangesEditing");if(this[Lc("0x33")].plugins[Lc("0x1d")]("TablePropertiesEditing")){this[Lc("0x1e")]=["tableBorderColor",Lc("0x31"),Lc("0xe"),"tableAlignment",Lc("0x2b"),"tableHeight",Lc("0x35")];for(const e of this[Lc("0x1e")])t[Lc("0x1b")](e,((t,n)=>{const o=this[Lc("0x33")].model[Lc("0x20")][Lc("0xf")].getFirstPosition()[Lc("0x24")](Lc("0x2a"));this[Lc("0x14")](e,[o],this[Lc("0x1e")],Lc("0x1e"),t,n)}));t[Lc("0x1f")][Lc("0x1c")]("formatBlock",Lc("0x1e"),Lc("0x9"),t[Lc("0x1f")][Lc("0x8")]("formatBlock",null,Lc("0x25"))),t[Lc("0x1f")][Lc("0x1c")](Lc("0x37"),Lc("0x1e"),Lc("0x25"),((t,e)=>this[Lc("0x19")](this.tableProperties,t,e))),t._suggestionFactory[Lc("0x1c")](Lc("0x37"),Lc("0x1e"),Lc("0x12"),(()=>!1))}if(this[Lc("0x33")][Lc("0x1")].has("TableCellPropertiesEditing")){this[Lc("0x21")]=[Lc("0x36"),Lc("0x3"),Lc("0x11"),Lc("0x26"),"tableCellWidth",Lc("0x18"),"tableCellBackgroundColor",Lc("0x6"),Lc("0xa")];for(const e of this.tableCellProperties)t.enableCommand(e,((t,n)=>{const o=this[Lc("0x33")].plugins[Lc("0x2c")](Lc("0x30"))[Lc("0x2e")](this[Lc("0x33")][Lc("0x17")].document.selection);this[Lc("0x14")](e,o,this[Lc("0x21")],Lc("0x21"),t,n)}));t[Lc("0x1f")].registerCustomCallback(Lc("0x37"),Lc("0x21"),Lc("0x9"),t[Lc("0x1f")][Lc("0x8")](Lc("0x37"),null,Lc("0x25"))),t._suggestionFactory.registerCustomCallback(Lc("0x37"),"tableCellProperties",Lc("0x25"),((t,e)=>this[Lc("0x19")](this[Lc("0x21")],t,e))),t[Lc("0x1f")][Lc("0x1c")](Lc("0x37"),"tableCellProperties",Lc("0x12"),(()=>!1))}t[Lc("0x1a")][Lc("0x29")]((t=>this[Lc("0x5")](t)))}[Lc("0x14")](t,e,n,o,r,s){const i=this[Lc("0x33")].plugins[Lc("0x2c")]("TrackChangesEditing");this[Lc("0x33")][Lc("0x17")][Lc("0xb")](s[Lc("0xd")],(()=>{for(const t of e)if(this[Lc("0x0")](t,o))r(s);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}r(s),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Lc("0x19")](t,e,n){const o=e[0][Lc("0x13")].nodeAfter,r=n[Lc("0x10")][0];this[Lc("0x33")].model[Lc("0x7")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],o):e[Lc("0xc")](n,o)}))}[Lc("0x5")](t){if(t[Lc("0x27")])switch(t[Lc("0x28")]){case Lc("0x1e"):return{type:Lc("0x16"),content:as(this[Lc("0x33")][Lc("0x32")],Lc("0x23"))};case Lc("0x21"):return{type:Lc("0x16"),content:as(this.editor[Lc("0x32")],Lc("0x2d"))}}}[Lc("0x0")](t,e){const n=this[Lc("0x33")][Lc("0x1")][Lc("0x2c")](Lc("0x2f"));for(const o of n[Lc("0x2")]({skipNotAttached:!0})){const n=o[Lc("0x4")]();if(o[Lc("0x28")]===e&&n===t)return o}return null}}const Nc=["_cutOutSuggestionMarker","change","_editor","deletion:discard","range","error-saving-suggestion-data-suggestion-discarded","_isForcedDefaultExecutionBlock","name","split","authoredAt","ck-suggestion-marker-","locale","discardSuggestion","formatInline","getAncestors","addMarker:suggestion:formatBlock","getRanges","dataReady","substr","after","requires","_adapter","insertion:","dataToMarker","newRange","suggestionChanged","accept","dataDowncast","track-changes-adapter-already-set","isAfter","execute","data","markers","formatGroupId","skipNestingCheck","commands","acceptSuggestion","_defaultCallbacks","_customCallbacks","getFirstRange","data-suggestion","next","some","addRange","addSuggestionData","containsRangeInObject","join","adapter","fetchCommentThread","_suggestionFactory","_enabledCommands","commentThread","isBefore","getSuggestion","documentSelection","createRangeIn","move","clone","isAtEnd","_onDiscard","deletion:","has","bindElementToMarker","addComment","subType","head","forceDefaultExecution","getUser","markerReady","_suggestions","markMultiRangeDeletion","showSuggestionHighlights","get","getDifference","writer","getMarkers","_commentsRepository","size","update:suggestion","markerName","getIntersection","position","author","CommentsRepository","_checkSuggestionCorrectness","formatBlock:join","$marker","trackChanges","every","_handleNewSuggestionMarker","removed","removeAttribute","formatBlock","targetPosition","insertion:join","enableCommand","getAllAdjacentSuggestions","conversion","PendingActions","hasComments","markMultiRangeBlockFormat","sort","multipleBlocks","unbind","suggestion","delete","trackChanges.trackFormatChanges","plugins","isLocal","suggestion:","activeMarkers","mapper","deleteContent","deletion:chain","change:activeMarkers","isIntersectingWithRange","track-changes-adapter-missing-getsuggestion","listenTo","element","end","_setSuggestionRange","deletion","getShiftedBy","insertContent","type","remove","deletion:accept","marker-count","insertion","removeMarker","value","filter","isLimit","formatBlock:discard","document","_removeSuggestion","_getExternalAuthor","removeMarkers","formatInline:discard","includes","toViewElement","track-changes-command-not-found","_saved","@external","accepted","_joinSuggestions","isCollapsed","getSuggestionCallback","Users","map","consume","addSuggestion","low","resolve","schema","consumable","_suggestionState","createSelection","getChangedMarkers","containsPosition","upcast","start","acceptSelectedSuggestions","_createSuggestion","formatBlock:accept","_model","getNearestSelectionRange","_rangeIsInLocalUserInsertion","_refreshSuggestionsChain","discard","detach","ck-suggestion-marker-formatBlock","previous","isObject","length","markMultiRangeInsertion","push","fromCharCode","collaboration.channelId","isDocumentOperation","group","enqueueChange","TrackChangesEditing","track-changes-suggestion-not-found","unbindElementFromMarkerName","getSuggestions","createPositionAt","define","open","discardAllSuggestions","_getAuthorFromId","editor","trackChangesCommand","isRemovable","addMarkerName","registerPostFixer","buildSuggestion","isSelectable","track-changes-suggestion-data-mismatch","for","formatInline:join","updateMarker","discardSelectedSuggestions","markInlineFormat","elementStart","lowest","normal","nodeBefore","insert","differ","markerToData","containsItem","root","ready","acceptAllSuggestions","then","getCustomProperty","createdAt","external:","batch","removeClass","_descriptionFactory","creator","from","highest","_updateSuggestionData","isInContent","model","high","markBlockFormat","markInsertion","_trackFormatChanges","ck-suggestion-marker--active","containerElement","clear","getMultiRangeId","add","catch","set","setAttribute","markerNameToElements","formatInline:","createPositionBefore","widget","isMultiRange","getRange","attributes","splice","ck-suggestion-marker","fire","getFirstMarker","registerCustomCallback","getAttribute","insertion:chain","item","rethrowUnexpectedError","rootName","removeMarker:suggestion:formatBlock","suggestionUnloaded","commandName","addHighlight","isEqual","editingDowncast","getLastMatchingPosition","parent","isAtStart","change:data","isNextTo","oldRange","elementEnd","fromRange","before","stop","_findSuggestions","selection","stopListening","isBlock","createElement","originalSuggestionId","_splitMarkerName","formatBlock:","addClass","isOwn","isInsideObject","insertion:accept","options","containsRange","refresh","_addSuggestionMarker","pluginName","init","_registerDefaultCallbacks","_setSuggestionData","backward","nodeAfter","deletion:join","markerToHighlight","setSelection","createRange","forward","notReady","config","addMarker","values","multi","_joinWithAdjacentSuggestions","editing","applyOperation","_addThreadToSuggestion","formatInline:accept","updateSuggestion","addMarker:suggestion","$graveyard"];var wc,Oc;wc=Nc,Oc=263,function(t){for(;--t;)wc.push(wc.shift())}(++Oc);const Fc=function(t,e){return Nc[t-=0]};class Pc extends t.Plugin{static get[Fc("0x46")](){return[Fc("0x85"),s.Users,t.PendingActions,bs,Ms,Ps,Hs,qs,Ys,si,li,vc,hi,Ti,Ri,Ni,Bi,Wi,Xi,Yi,rx,cx,mx,Ex,kx,Sx,Px,Gx,Kx,Jx,na,aa,ma,Ea,Aa,La,Fa,Ga,Ka,Tc,Ya,ic,Mc,uc,hc]}static get[Fc("0x1a")](){return Fc("0xe8")}constructor(t){function e(t){return t[Fc("0xc7")]((t=>String[Fc("0xe3")](t)))[Fc("0x60")]("")}super(t),this[Fc("0x120")](Fc("0xa0"),[]),this.on(Fc("0xa4"),((e,n,o,r)=>{this[Fc("0xd7")][Fc("0x33")]((()=>{for(const e of[...r,...o])this[Fc("0xd7")][Fc("0x52")][Fc("0x6f")](e)&&t[Fc("0x2b")].reconvertMarker(e)}))})),this[Fc("0x10f")]=new gs(this[Fc("0xf1")][Fc("0x115")][Fc("0xcc")],this[Fc("0xf1")][Fc("0x3d")]),this[Fc("0x47")]=null,this[Fc("0x63")]=new Dc(this[Fc("0xf1")]),this._suggestions=new Map,this[Fc("0x7e")]=t[Fc("0x9d")].get(Fc("0x85")),this[Fc("0x64")]=new Set,this[Fc("0xd7")]=this.editor[Fc("0x115")],this[Fc("0xce")]=new WeakMap,this[Fc("0x38")]=!1,t[Fc("0x26")][Fc("0xed")](Fc("0x9c"),!0),this[Fc("0x119")]=t.config.get(Fc("0x9c")),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,48,52,49,52])}[Fc("0x1b")](){const t=this[Fc("0xf1")];t.conversion[Fc("0xf9")](Fc("0x138"))[Fc("0x21")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[Fc("0x10")](t[Fc("0x81")]),o=[Fc("0x12a"),Fc("0x3c")+n];let r=3e3;return this.activeMarkers[Fc("0xbd")](t[Fc("0x81")])&&(o.push(Fc("0x11a")),r=3010),"deletion"==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[Fc("0x93")][Fc("0xf9")](Fc("0x4d")).add((e=>{e.on(Fc("0x30"),((e,n,o)=>{if(!o[Fc("0x16")].showSuggestionHighlights)return;const r=n.item;if(!r)return;const s=o[Fc("0xa1")][Fc("0xbe")](r);t.model[Fc("0xcc")][Fc("0xdf")](r)&&s&&!s[Fc("0x10a")](Fc("0x125"))&&s.is(Fc("0x11b"))&&(0,x.toWidget)(s,o[Fc("0x7c")])}),{priority:Fc("0x116")})})),t.conversion[Fc("0xf9")]("dataDowncast")[Fc("0x21")]({model:Fc("0x9a"),view:(t,e)=>{if(!e.options[Fc("0x79")])return null;const{type:n}=this._splitMarkerName(t[Fc("0x81")]);return{classes:[Fc("0x12a"),Fc("0x3c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[Fc("0x130")])return;if(o[Fc("0x130")].is("selection"))return void r[Fc("0xcd")][Fc("0xc8")](o[Fc("0x130")],n.name);const s=r[Fc("0xa1")][Fc("0xbe")](o[Fc("0x130")]);if(!o[Fc("0x130")].is(Fc("0xa8"))||!t[Fc("0x115")][Fc("0xcc")].isBlock(o.item)||s[Fc("0x10a")](Fc("0x136")))return;const{id:i}=this._splitMarkerName(o.markerName);r[Fc("0x7c")][Fc("0x12")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock"],s),r[Fc("0x7c")][Fc("0x121")](Fc("0x5a"),i,s),r[Fc("0xa1")][Fc("0x70")](s,o.markerName),e&&(this[Fc("0xa0")][Fc("0xbd")](o[Fc("0x81")])?r.writer[Fc("0x12")](Fc("0x11a"),s):r[Fc("0x7c")][Fc("0x10e")]("ck-suggestion-marker--active",s));for(const e of t[Fc("0x115")][Fc("0x69")](o[Fc("0x130")]).getItems())r[Fc("0xcd")].consume(e,n[Fc("0x39")]);r.consumable.consume(o[Fc("0x130")],n[Fc("0x39")])};t.conversion[Fc("0xf9")](Fc("0x4d"))[Fc("0x11e")]((t=>{t.on(Fc("0x41"),((t,e,o)=>{o.options[Fc("0x79")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Fc("0x112")})})),t[Fc("0x93")].for(Fc("0x4d"))[Fc("0x104")]({model:Fc("0x9a"),view:(t,e)=>e[Fc("0x16")][Fc("0x79")]?null:{group:"suggestion",name:t[Fc("0x44")](Fc("0x9a")[Fc("0xe0")]+1)}}),t[Fc("0x93")].for(Fc("0xd2")).elementToElement({view:{name:Fc("0x9a"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Fc("0x12e")]("suggestion-type")+":"+t[Fc("0x12e")]("id");return t[Fc("0x12e")](Fc("0xb1"))&&(n+=":"+t.getAttribute("marker-count")),e[Fc("0xe")](Fc("0x88"),{"data-name":n})}}),t[Fc("0x93")][Fc("0xf9")](Fc("0xd2"))[Fc("0x49")]({view:Fc("0x9a")}),t[Fc("0x93")][Fc("0xf9")](Fc("0x138"))[Fc("0x11e")]((t=>{t.on(Fc("0x41"),n(),{priority:"high"})})),t.conversion.for(Fc("0x138"))[Fc("0x11e")]((t=>{t.on(Fc("0x133"),((t,e,n)=>{const o=n[Fc("0xa1")][Fc("0x122")](e[Fc("0x81")]);if(o)for(const t of o)t[Fc("0x10a")](Fc("0x136"))||(n[Fc("0x7c")][Fc("0x10e")]([Fc("0x12a"),Fc("0xdd"),Fc("0x11a")],t),n.writer[Fc("0x8d")]("data-suggestion",t),n.mapper[Fc("0xea")](t,e[Fc("0x81")]))}),{priority:"high"})})),t.model.document[Fc("0xf5")]((e=>{let n=!1;const o=Array[Fc("0x111")](t[Fc("0x115")][Fc("0xb8")][Fc("0x103")][Fc("0xd0")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Fc("0x10")](x);if(Fc("0x9a")!==o)continue;const u=this[Fc("0x77")][Fc("0x7a")](l);if(null!=a[Fc("0x4a")])if(Fc("0x3f")==c&&(n=n||Uc(a.newRange,x,e,t[Fc("0x115")][Fc("0xcc")])),a[Fc("0x4a")][Fc("0xc4")]||Fc("0x31")==a.newRange[Fc("0x106")].rootName||Fc("0x8e")==c&&!Hc(a[Fc("0x4a")])||Fc("0xab")==c&&(jc(i=a[Fc("0x4a")])||(s=i)[Fc("0xd3")][Fc("0x1")]==s[Fc("0xa9")][Fc("0x101")]&&s.start[Fc("0x6c")]))e[Fc("0xb3")](x),n=!0;else{if(!u||!u[Fc("0x114")])continue;r[Fc("0x11e")](u)}}var s,i;return r[Fc("0x7f")]>0&&(n=!!this[Fc("0x2a")](r)||n),n})),t.model.document[Fc("0xf5")]((e=>{let n=!1;for(const o of t[Fc("0x115")].document[Fc("0x103")].getChanges()){if(Fc("0x102")!=o[Fc("0xae")])continue;const r=o[Fc("0x83")][Fc("0xac")](o[Fc("0xe0")]);if(r[Fc("0x6c")])for(const s of this[Fc("0x77")][Fc("0x28")]()){if(s[Fc("0x126")]||!s[Fc("0x114")])continue;if(Fc("0x8e")!=s[Fc("0xae")])continue;const i=s[Fc("0x59")]();if(i[Fc("0xd3")].parent!=i.end[Fc("0x1")]&&i[Fc("0xa9")][Fc("0x137")](o.position)){const o=t.model[Fc("0x23")](i[Fc("0xd3")],r);e[Fc("0xfb")](s[Fc("0x12c")](),{range:o}),n=!0}}}return n})),t.model[Fc("0x52")].on(Fc("0x80"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Fc("0x39")]),n=this[Fc("0x77")].get(t);n&&n[Fc("0xf4")](e.name)}})),t[Fc("0x115")][Fc("0xb8")].on(Fc("0x3"),(()=>{const e=Array[Fc("0x111")](t[Fc("0x115")][Fc("0xb8")].differ[Fc("0xd0")]())[Fc("0xb5")]((t=>Fc("0x9a")===this[Fc("0x10")](t[Fc("0x39")])[Fc("0xe6")]));if(0===e[Fc("0xe0")])return;e.sort(((t,e)=>{const n=t[Fc("0x51")][Fc("0x5")],o=e[Fc("0x51")][Fc("0x5")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Fc("0xd3")][Fc("0x66")](o[Fc("0xd3")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this._splitMarkerName(t);if(null===r[Fc("0x5")]){const e=this[Fc("0x8b")](t);o[Fc("0x11e")](e)}else{const t=this._suggestions[Fc("0x7a")](e);null!==r.newRange||t[Fc("0x114")]?(n.add(t[Fc("0x73")]),o[Fc("0x11e")](t)):this[Fc("0xb9")](t)}}o[Fc("0x7f")]>0&&this[Fc("0xda")](o);for(const t of n)this[Fc("0x12b")](Fc("0x4b"),t)})),t[Fc("0x115")].on(Fc("0x2c"),((e,n)=>{const o=n[0];if(!this[Fc("0x77")][Fc("0x7f")])return;if(!o[Fc("0xe5")])return;if(o[Fc("0x10d")].isUndo||!o.batch[Fc("0x9e")])return;let r,s;switch(o[Fc("0xae")]){case"insert":r=t[Fc("0x115")].createPositionAt(o[Fc("0x83")]),s=r[Fc("0xac")](o.howMany);break;case Fc("0x3a"):r=t[Fc("0x115")][Fc("0xec")](o.splitPosition),s=t[Fc("0x115")][Fc("0xec")](o.moveTargetPosition);break;case Fc("0x6a"):r=t[Fc("0x115")][Fc("0xec")](o[Fc("0x8f")]),s=r.getShiftedBy(o.howMany);break;default:return}const i=t[Fc("0x115")][Fc("0x23")](r,s);t[Fc("0x115")][Fc("0x33")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t.isMultiRange)continue;if(Fc("0x3f")==t[Fc("0xae")])continue;const n=t.data&&t[Fc("0x51")][Fc("0x98")];("formatBlock"!=t.type||Fc("0x3a")==o[Fc("0xae")]&&!n)&&(e.containsRangeInObject||Fc("0xb2")==t[Fc("0xae")]&&e.isOwn||t[Fc("0x59")]()[Fc("0x17")](i)&&this._breakSuggestionMarker(t,r,s))}}))}),{priority:Fc("0xff")}),t[Fc("0x115")].on(Fc("0xa2"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[Fc("0x74")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Fc("0xf2")][Fc("0xb4")])return;if(o.isCollapsed)return;const s=t[Fc("0x115")][Fc("0xcc")],{start:i,end:x}=o[Fc("0x59")](),a=i[Fc("0x1f")]&&s.isLimit(i[Fc("0x1f")])?null:s.getNearestSelectionRange(i,Fc("0x24")),c=x[Fc("0x101")]&&s[Fc("0xb6")](x[Fc("0x101")])?null:s[Fc("0xd8")](x,Fc("0x1e")),l=t.model[Fc("0x23")](a?a[Fc("0xd3")]:i,c?c[Fc("0xa9")]:x);t[Fc("0x115")][Fc("0x33")]((e=>{this.markDeletion(l);const n=t[Fc("0x115")][Fc("0xcc")][Fc("0xd8")](l[Fc("0xd3")]);o.is(Fc("0x68"))?e[Fc("0x22")](n):o.setTo(n)})),e.stop()}),{priority:e.priorities[Fc("0x100")]+10}),t[Fc("0x115")].on(Fc("0xad"),((e,n)=>{const o=n[n.length-1];o&&o[Fc("0x74")]||this[Fc("0x38")]||this[Fc("0xf2")][Fc("0xb4")]&&(t[Fc("0x115")][Fc("0x33")]((()=>{let o=t[Fc("0x115")][Fc("0xad")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e.return=o[Fc("0x6b")]();const r=o[Fc("0xa9")][Fc("0x101")],s=t[Fc("0x115")][Fc("0xcc")];r&&s[Fc("0xd")](r)&&!s.isObject(r)&&(o=t.model[Fc("0x23")](o[Fc("0xd3")],t[Fc("0x115")].createPositionAt(r,"end"))),this[Fc("0x118")](o)})),e[Fc("0x9")]())}),{priority:Fc("0x116")}),this[Fc("0xf2")]=new d(t,this[Fc("0x64")]),this[Fc("0xf1")].commands[Fc("0x11e")](Fc("0x89"),this[Fc("0xf2")]),this[Fc("0x91")](Fc("0x89"));const o=new p(t,this[Fc("0x77")]);t[Fc("0x55")][Fc("0x11e")](Fc("0x56"),o),this[Fc("0x91")]("acceptSuggestion");const r=new C(t,this[Fc("0x77")]);t[Fc("0x55")][Fc("0x11e")]("discardSuggestion",r),this[Fc("0x91")](Fc("0x3e")),t[Fc("0x55")][Fc("0x11e")]("acceptAllSuggestions",new P(t,o,this[Fc("0x77")])),this[Fc("0x91")](Fc("0x108")),t[Fc("0x55")][Fc("0x11e")](Fc("0xef"),new P(t,r,this[Fc("0x77")])),this[Fc("0x91")](Fc("0xef")),t[Fc("0x55")].add("acceptSelectedSuggestions",new G(t,o,this[Fc("0x77")])),this[Fc("0x91")](Fc("0xd4")),t.commands[Fc("0x11e")](Fc("0xfc"),new G(t,r,this[Fc("0x77")])),this[Fc("0x91")]("discardSelectedSuggestions");const s=t[Fc("0x9d")][Fc("0x7a")](Fc("0x85"));this[Fc("0xa7")](s,Fc("0x71"),((t,{threadId:e})=>{const n=this[Fc("0x77")][Fc("0x7a")](e);n&&n[Fc("0x65")]&&1===n[Fc("0x65")][Fc("0xe0")]&&this[Fc("0x113")](e,{hasComments:!0})}),{priority:Fc("0xca")}),this[Fc("0xa7")](s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[Fc("0x7a")](e);n&&n.commentThread&&!n.commentThread[Fc("0xe0")]&&this[Fc("0x113")](e,{hasComments:!1})}),{priority:Fc("0xca")})}set adapter(t){if(this[Fc("0x47")])throw new e.CKEditorError(Fc("0x4e"),this);this._adapter=t}get[Fc("0x61")](){return this[Fc("0x47")]}[Fc("0xeb")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e[Fc("0x114")]||n[Fc("0xe2")](e);return e?n[Fc("0xc7")]((t=>t.toJSON())):n}[Fc("0x67")](t){const n=this._suggestions[Fc("0x7a")](t);if(!n)throw new e.CKEditorError(Fc("0xe9"),this);return n}hasSuggestion(t){return this._suggestions[Fc("0x6f")](t)}[Fc("0x5e")](t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t[Fc("0xae")][Fc("0x3a")](":"),i=this[Fc("0x77")][Fc("0x7a")](n)||this[Fc("0xd5")](r,s,n,e,o);if(this[Fc("0x2d")](i),this._checkSuggestionCorrectness(i,r,s||null,e),i.createdAt=t[Fc("0x10b")],o&&o[Fc("0xc1")]){const{authorName:t,createdAt:e}=o[Fc("0xc1")],n=this[Fc("0xba")](t);i[Fc("0x3b")]=e,i[Fc("0x84")]=n,i.isExternal=!0}else i[Fc("0x3b")]=t[Fc("0x10b")];switch(t[Fc("0x51")]&&(i[Fc("0x51")]=t.data),t[Fc("0x128")]&&(i[Fc("0x128")]=t[Fc("0x128")]),this[Fc("0x47")]&&this[Fc("0x47")][Fc("0xc9")]||(i._saved=!0),this._suggestionState[Fc("0x7a")](i)){case Fc("0x25"):this[Fc("0xce")][Fc("0x120")](i,Fc("0x43"));break;case Fc("0x76"):i[Fc("0x114")]?(this[Fc("0xce")][Fc("0x120")](i,Fc("0x107")),this.fire("suggestionLoaded",i)):this._suggestionState[Fc("0x120")](i,Fc("0x8c"))}return i}[Fc("0x56")](t){this.forceDefaultExecution((()=>{this.editor[Fc("0x115")][Fc("0x33")]((()=>{for(const e of t[Fc("0x92")]())e[Fc("0x4c")]()}))}))}[Fc("0x3e")](t){this[Fc("0x74")]((()=>{this[Fc("0xf1")][Fc("0x115")].change((()=>{for(const e of t[Fc("0x92")]())e[Fc("0xdb")]()}))}))}[Fc("0x91")](t,n){const o=this.editor[Fc("0x55")][Fc("0x7a")](t);if(!o)throw new e.CKEditorError(Fc("0xbf"),this,{commandName:t});this[Fc("0x64")][Fc("0x11e")](o),n&&o.on(Fc("0x50"),((t,e)=>{this[Fc("0xf2")][Fc("0xb4")]&&(this[Fc("0x38")]||e.length>0&&e[e[Fc("0xe0")]-1]&&e[e[Fc("0xe0")]-1][Fc("0x74")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Fc("0x9")]()))}),{priority:Fc("0x116")})}forceDefaultExecution(t){let n,o;const r=this[Fc("0x38")];this[Fc("0x38")]=!0;try{n=t()}catch(t){o=t}return r||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[Fc("0x131")](o,this),n}markInsertion(t,n=null,o={}){if(t[Fc("0xc4")])return null;const r=this.editor[Fc("0x9d")].get(Fc("0xc6")).me;for(const{suggestion:e,meta:o}of this[Fc("0xa")](t,Fc("0xb2")))if(o.isOwn){if(!o.isNextTo)return e;if(n==e[Fc("0x72")]){const n=e.getFirstRange();return n.start[Fc("0x137")](t[Fc("0xa9")])?this[Fc("0xaa")](e,this._model.createRange(t[Fc("0xd3")],n[Fc("0xa9")])):this[Fc("0xaa")](e,this._model[Fc("0x23")](n.start,t[Fc("0xa9")])),e}}const s=(0,e.uid)(),i=r.id,x=n?Fc("0x48")+n:Fc("0xb2"),a=this[Fc("0x1d")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Fc("0x19")](x,s,i,t),a}[Fc("0xe1")](t,n=Fc("0x29"),o={}){const r=this[Fc("0xf1")].plugins[Fc("0x7a")](Fc("0xc6")).me,s=this[Fc("0x63")].getSuggestionCallback(Fc("0xb2"),n,"join");for(const e of this[Fc("0xeb")]())if(e[Fc("0x84")].id==r.id&&Fc("0xb2")==e[Fc("0xae")]&&e.subType==n&&(s(e[Fc("0x42")](),t)||s(t,e.getRanges()))){for(const n of t)e[Fc("0x5d")](n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this[Fc("0xa")](e,"insertion")){if(!o[Fc("0x13")])continue;let e=!0;for(const o of n[Fc("0x42")]())for(const n of t)if(!o[Fc("0x17")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=Fc("0x48")+n,c=this[Fc("0x1d")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Fc("0x19")](a,i,x,e,xs[Fc("0x11d")]());return c}[Fc("0xfd")](t,n,o=null,r={}){if(o=o||Gc(n),t.isCollapsed)return;if(!1===this[Fc("0x119")]){const e=this[Fc("0x63")].getSuggestionCallback("formatInline",o,Fc("0x4c"));return void this[Fc("0x74")]((()=>e([t],n,r)))}const s=this[Fc("0xf1")].plugins[Fc("0x7a")](Fc("0xc6")).me,i=[];for(const{suggestion:e,meta:n}of this[Fc("0xa")](t,"insertion"))n[Fc("0x13")]&&!n[Fc("0x14")]&&i.push(...e[Fc("0x42")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Fc("0x82")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Fc("0xe0")];){const o=n[e][Fc("0x7b")](t);n[Fc("0x129")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this[Fc("0xd7")][Fc("0x33")]((()=>{for(const t of x){const e=this[Fc("0x63")][Fc("0xc5")]("formatInline",o,Fc("0x4c"));this[Fc("0x74")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[Fc("0xd3")],a=t[Fc("0xa9")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n.isOwn)continue;if(e[Fc("0x72")]!=o)continue;const r=e[Fc("0x59")]();if(r[Fc("0x17")](t,!0))return;x=x.isBefore(r.start)?x:r[Fc("0xd3")],a=a[Fc("0x4f")](r.end)?a:r[Fc("0xa9")],i?r[Fc("0xd3")][Fc("0x66")](i.getFirstRange()[Fc("0xd3")])?(i[Fc("0xbb")](),i=e):e[Fc("0xbb")]():i=e}const c=this[Fc("0xd7")][Fc("0x23")](x,a);if(i)this[Fc("0xaa")](i,c);else{const t=(0,e.uid)(),i=s.id;this[Fc("0x1d")]({id:t,type:Fc("0x123")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[Fc("0x19")](Fc("0x123")+o,t,i,c)}}}[Fc("0x117")](t,n,o=[],r=null,s={}){n[Fc("0x53")]||(n.formatGroupId=n[Fc("0x135")]),n[Fc("0x98")]=t.is(Fc("0x36")),r=r||Gc(n);const i=o[Fc("0xc7")]((t=>Wc(t,this[Fc("0xd7")]))),x=t.is(Fc("0x36"))?t:Wc(t,this[Fc("0xd7")]);if(!1===this[Fc("0x119")]){const t=this._suggestionFactory[Fc("0xc5")]("formatBlock",r,Fc("0x4c"));return void this[Fc("0x74")]((()=>t([x],n,s)))}i[Fc("0xe2")](x);let a=!0;for(const t of i)if(!this[Fc("0xd9")](t)){a=!1;break}if(a){const t=this[Fc("0x63")][Fc("0xc5")](Fc("0x8e"),r,Fc("0x4c"));return void this.forceDefaultExecution((()=>t([x],n,s)))}let c=null,l=x[Fc("0xd3")],u=x[Fc("0xa9")];for(const{suggestion:t,meta:e}of this[Fc("0xa")](x,Fc("0x8e"))){if(!e[Fc("0x13")]||e[Fc("0x4")]||e[Fc("0x5f")]||e[Fc("0x14")])continue;if(t[Fc("0x51")][Fc("0x53")]!=n[Fc("0x53")])continue;const o=t[Fc("0x59")]();if(t[Fc("0x72")]==r){if(o.containsRange(x,!0))return;l=l[Fc("0x66")](o.start)?l:o[Fc("0xd3")],u=u[Fc("0x4f")](o[Fc("0xa9")])?u:o[Fc("0xa9")],c?o.start[Fc("0x66")](c[Fc("0x59")]()[Fc("0xd3")])?(c[Fc("0xbb")](),c=t):t[Fc("0xbb")]():c=t}else{const e=x[Fc("0x82")](o);this[Fc("0x32")](t,e)}}const d=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0xc6")).me,g=(0,e.uid)(),m=d.id;c?this[Fc("0xaa")](c,this[Fc("0xd7")][Fc("0x23")](l,u)):(this[Fc("0x1d")]({id:g,type:Fc("0x11")+r,data:n,createdAt:new Date,authorId:m,attributes:s}),this._addSuggestionMarker(Fc("0x11")+r,g,m,this[Fc("0xd7")].createRange(l,u)))}[Fc("0x96")](t,n,o=[],r=null,s={}){n.formatGroupId||(n[Fc("0x53")]=n[Fc("0x135")]);const i=t[0];n[Fc("0x98")]=i.is(Fc("0x36")),r=r||Gc(n);const x=o[Fc("0xc7")]((t=>Wc(t,this._model))),a=i.is(Fc("0x36"))?t:t.map((t=>Wc(t,this[Fc("0xd7")])));if(!1===this._trackFormatChanges){const t=this[Fc("0x63")].getSuggestionCallback(Fc("0x8e"),r,Fc("0x4c"));return void this.forceDefaultExecution((()=>t(a,n,s)))}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c){const t=this._suggestionFactory.getSuggestionCallback(Fc("0x8e"),r,Fc("0x4c"));return void this[Fc("0x74")]((()=>t(a,n,s)))}const l=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0xc6")).me;for(const t of this[Fc("0xeb")]()){if(t[Fc("0x84")].id!=l.id)continue;if("formatBlock"!=t[Fc("0xae")]||t[Fc("0x51")][Fc("0x53")]!=n[Fc("0x53")])continue;const e=t[Fc("0x72")]==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[Fc("0x7d")]()){const s=r[Fc("0x127")]();if(o[Fc("0x137")](s)){e?(a[Fc("0x129")](n,1),n--):t.removeMarker(r[Fc("0x39")]);break}}}}if(0==a[Fc("0xe0")])return;const u=this[Fc("0x63")][Fc("0xc5")](Fc("0x8e"),r,Fc("0x60"));for(const t of this[Fc("0xeb")]())if(t[Fc("0x84")].id==l.id&&Fc("0x8e")==t[Fc("0xae")]&&t.data[Fc("0x53")]==n[Fc("0x53")]&&t.subType==r&&(u(t.getRanges(),a)||u(a,t.getRanges()))){for(const e of a)t[Fc("0x5d")](e);return t}const d=(0,e.uid)(),g=l.id,m=Fc("0x11")+r,f=this[Fc("0x1d")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this[Fc("0x19")](m,d,g,t,xs[Fc("0x11d")]());return f}markDeletion(t,n=null,o={}){if(t[Fc("0xc4")])return null;const r=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0xc6")).me,s=new i.LiveRange(t[Fc("0xd3")],t[Fc("0xa9")]);for(const{suggestion:t,meta:e}of this[Fc("0xa")](s,Fc("0xb2")))if(e[Fc("0x13")]&&!e[Fc("0x4")])if(t.isMultiRange){const e=t[Fc("0x42")]().filter((t=>"$graveyard"!=t.root[Fc("0x132")]));if(e[Fc("0x8a")]((t=>s.containsRange(t,!0)))&&t.discard(),e[Fc("0x5c")]((t=>t.containsRange(s,!0)))){const t=this[Fc("0x63")][Fc("0xc5")](Fc("0xab"),n,Fc("0x4c"));return this[Fc("0x74")]((()=>t([s],null,o))),null}}else{const e=s[Fc("0x82")](t[Fc("0x59")]());t[Fc("0x6d")]([e],null,o)}if(s[Fc("0xdc")](),s[Fc("0xc4")]||Fc("0x31")==s[Fc("0x106")][Fc("0x132")])return null;let x=null,a=s[Fc("0xd3")],c=s[Fc("0xa9")];for(const{suggestion:t,meta:e}of this[Fc("0xa")](s,Fc("0xab")))if(e[Fc("0x13")])if(t[Fc("0x126")]){let e=!0;for(const n of t[Fc("0x42")]()){if(n[Fc("0x17")](s,!0))return t;s[Fc("0x17")](n)||(e=!1)}e&&t[Fc("0xdb")]()}else{const e=t.getFirstRange();if(e[Fc("0x17")](s,!0))return t;a=a.isBefore(e[Fc("0xd3")])?a:e[Fc("0xd3")],c=c[Fc("0x4f")](e.end)?c:e.end,x?e[Fc("0xd3")][Fc("0x66")](x[Fc("0x59")]()[Fc("0xd3")])?(x.removeMarkers(),x=t):t.removeMarkers():x=t}if(x)return this[Fc("0xaa")](x,this._model[Fc("0x23")](a,c)),x;{const t=(0,e.uid)(),s=this[Fc("0xd7")][Fc("0x23")](a,c),i=r.id,x=n?Fc("0x6e")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Fc("0x19")](x,t,i,s),l}}[Fc("0x78")](t,n=Fc("0x29"),o={}){const r=this.editor.plugins[Fc("0x7a")](Fc("0xc6")).me,s=t.map((t=>new i.LiveRange(t[Fc("0xd3")],t[Fc("0xa9")]))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,Fc("0xb2")))n.isOwn&&!n[Fc("0x4")]&&x.add(e);for(const e of x)if(e.isMultiRange){const r=e[Fc("0x42")]();if((!e.attributes||!e[Fc("0x128")][Fc("0x54")])&&r.every((t=>s[Fc("0x5c")]((e=>e[Fc("0x17")](t,!0)))))&&e[Fc("0xdb")](),s[Fc("0x8a")]((t=>r[Fc("0x5c")]((e=>e[Fc("0x17")](t,!0)))))){const e=this[Fc("0x63")][Fc("0xc5")]("deletion",n,Fc("0x4c"));return this[Fc("0x74")]((()=>e(t,null,o))),null}}else{const t=e[Fc("0x59")]();if(s.some((e=>e.containsRange(t,!0)))&&e.discard(),s.every((e=>t[Fc("0x17")](e,!0)))){const t=this._suggestionFactory[Fc("0xc5")](Fc("0xab"),n,"accept");return this[Fc("0x74")]((()=>t(s,null,o))),null}}const a=this[Fc("0x63")][Fc("0xc5")](Fc("0xab"),n,Fc("0x60"));let c=null;for(const t of this[Fc("0xeb")]())if(t[Fc("0x84")].id==r.id&&t.isInContent&&Fc("0xab")==t[Fc("0xae")]&&t[Fc("0x72")]==n&&(a(t.getRanges(),s)||a(s,t[Fc("0x42")]())))if(c){if(t[Fc("0x65")]&&t[Fc("0x65")].length)continue;for(const e of t[Fc("0x42")]())c[Fc("0xa5")](e)||c[Fc("0x5d")](e);t[Fc("0xbb")]()}else{c=t;for(const e of s)t.isIntersectingWithRange(e)||t[Fc("0x5d")](e)}if(c)return c;x[Fc("0x11c")]();for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n.isOwn&&x[Fc("0x11e")](e);for(const t of x){const e=t[Fc("0x42")]();if((!o||!o[Fc("0x54")])&&s.every((t=>e[Fc("0x5c")]((e=>e.containsRange(t,!0))))))return t;(!t[Fc("0x128")]||!t[Fc("0x128")].skipNestingCheck)&&e[Fc("0x8a")]((t=>s[Fc("0x5c")]((e=>e.containsRange(t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=r.id,d=Fc("0x6e")+n,g=this[Fc("0x1d")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of s)t[Fc("0xdc")](),t[Fc("0xc4")]||Fc("0x31")==t[Fc("0x106")][Fc("0x132")]||this._addSuggestionMarker(d,l,u,t,xs[Fc("0x11d")]());return g}_setSuggestionRange(t,e){const n=t[Fc("0x12c")]();this[Fc("0xd7")][Fc("0x33")]((t=>{t[Fc("0xfb")](n,{range:e})}))}[Fc("0x2d")](t){const e=t.id,n=this[Fc("0xf1")][Fc("0x26")].get(Fc("0xe4"));this._commentsRepository.hasCommentThread(e)||this[Fc("0x7e")].addCommentThread({channelId:n,threadId:e});const o=this[Fc("0x7e")].getCommentThread(e);o[Fc("0x99")](Fc("0xf3")),o[Fc("0xf3")]=!1,t[Fc("0x65")]=o}[Fc("0x86")](t,n,o,r){if(t[Fc("0xae")]!=n||t.subType!=o||t[Fc("0x110")].id!=r)throw this[Fc("0xf1")].enableReadOnlyMode(Fc("0xf8")),new e.CKEditorError(Fc("0xf8"),this)}[Fc("0x32")](t,n){const o=t[Fc("0x59")]();if(n[Fc("0x137")](o))t[Fc("0xbb")]();else if(o[Fc("0x17")](n)){const r=this._model.createPositionAt(n[Fc("0xd3")].nodeBefore,Fc("0xa9"));this[Fc("0xaa")](t,this[Fc("0xd7")].createRange(o[Fc("0xd3")],r));const s=(0,e.uid)(),i=t[Fc("0x110")].id,x=t[Fc("0xae")]+":"+t[Fc("0x72")];this[Fc("0x1d")]({id:s,type:x,createdAt:new Date,authorId:i,data:t[Fc("0x51")],attributes:t[Fc("0x128")]});const a=this[Fc("0xd7")][Fc("0xec")](n[Fc("0xa9")][Fc("0x1")],Fc("0x45")),c=this[Fc("0xd7")][Fc("0x23")](a,o[Fc("0xa9")]);this[Fc("0x19")](x,s,i,c)}else if(o[Fc("0xd1")](n[Fc("0xd3")])){const e=this[Fc("0xd7")][Fc("0xec")](n[Fc("0xd3")][Fc("0x101")],Fc("0xa9"));this[Fc("0xaa")](t,this[Fc("0xd7")][Fc("0x23")](o.start,e))}else{const e=this._model[Fc("0xec")](n[Fc("0xa9")].parent,"after");this[Fc("0xaa")](t,this[Fc("0xd7")][Fc("0x23")](e,o.end))}}[Fc("0xd9")](t){for(const{suggestion:e,meta:n}of this[Fc("0xa")](t,Fc("0xb2"))){if(!n[Fc("0x13")])continue;const o=e[Fc("0x42")]();for(const e of o)if(!t.getDifference(e)[Fc("0xe0")])return!0}return!1}_getAuthorFromId(t){const n=this[Fc("0xf1")].plugins[Fc("0x7a")](Fc("0xc6"))[Fc("0x75")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Fc("0xba")](t){const e=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0xc6")),n=(0,s.hashObject)(Fc("0x10c")+t);return e[Fc("0x75")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,r){const s=this[Fc("0xf0")](o),i=this[Fc("0x63")][Fc("0xf6")](t,e,n,s,r,(t=>this[Fc("0x113")](n,{attributes:t})));return this[Fc("0xa7")](i,Fc("0x4c"),(()=>{this[Fc("0x113")](n,{state:Fc("0xc2")})}),{priority:Fc("0x116")}),this[Fc("0xa7")](i,Fc("0xdb"),(()=>{this[Fc("0x113")](n,{state:"rejected"})}),{priority:Fc("0x116")}),this._suggestions[Fc("0x120")](n,i),this._suggestionState[Fc("0x120")](i,Fc("0x25")),i}_splitMarkerName(t){const e=t[Fc("0x3a")](":");return{group:e[0],type:e[1],subType:e[Fc("0xe0")]>=5?e[2]:null,id:e[Fc("0xe0")]<5?e[2]:e[3],authorId:e[Fc("0xe0")]<5?e[3]:e[4],markerCount:6==e[Fc("0xe0")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const r=t.getFirstRange(),s=r[Fc("0xd3")],i=r[Fc("0xa9")];this[Fc("0xaa")](t,this[Fc("0xd7")].createRange(s,n));const x=(0,e.uid)(),a=t.creator.id,c=t[Fc("0xae")]+(t.subType?":"+t[Fc("0x72")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Fc("0x128")],data:t[Fc("0x51")]}),Fc("0x8e")==t[Fc("0xae")]&&(o=this._model[Fc("0x124")](o.parent)),this[Fc("0x19")](c,x,a,this._model[Fc("0x23")](o,i))}[Fc("0xa")](t,e=null){const n=[],o=this._model[Fc("0xcc")],r=this[Fc("0xf1")][Fc("0x9d")].get("Users").me;for(const s of this.getSuggestions())if(s.isInContent&&(!e||s.type==e))for(const e of s[Fc("0x42")]()){const i=t.start[Fc("0x137")](e[Fc("0xa9")])||t[Fc("0xa9")][Fc("0x137")](e[Fc("0xd3")]);if(i||t[Fc("0x82")](e)){const x=t[Fc("0x17")](e)&&Bc(o,e.start,t),a=e[Fc("0x17")](t)&&Bc(o,t[Fc("0xd3")],e);n.push({suggestion:s,meta:{isOwn:r==s.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[Fc("0x19")](t,e,n,o,r=null){this[Fc("0xd7")][Fc("0x33")]((s=>{let i=Fc("0x9f")+t+":"+e+":"+n;r&&(i=i+":"+r),s[Fc("0x27")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Fc("0xb9")](t){const e=t[Fc("0xde")],n=t[Fc("0x5b")];t[Fc("0xde")]=null,null!=e&&(e[Fc("0x5b")]=null),t.next=null,null!=n&&(n[Fc("0xde")]=null),Fc("0x107")==this[Fc("0xce")][Fc("0x7a")](t)&&(this[Fc("0xce")][Fc("0x120")](t,Fc("0x8c")),this.fire(Fc("0x134"),t,e,n))}[Fc("0x1d")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Fc("0x47")]&&this._adapter.addSuggestion){const r=this[Fc("0xf1")].plugins.get(Fc("0x94")),s=o[Fc("0x95")],i=o[Fc("0x72")]?o.type+":"+o[Fc("0x72")]:o[Fc("0xae")],x=this[Fc("0xf1")][Fc("0x3d")],a=r[Fc("0x11e")](as(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:s,data:t.data||null,originalSuggestionId:t[Fc("0xf")]||null,attributes:o.attributes};this._adapter[Fc("0xc9")](c)[Fc("0x109")]((t=>{o[Fc("0xc0")]=!0,r[Fc("0xaf")](a),t&&t.createdAt&&(this._suggestions[Fc("0x7a")](n)[Fc("0x10b")]=t[Fc("0x10b")])}))[Fc("0x11f")]((t=>{throw(0,e.logWarning)(Fc("0x37")),this[Fc("0xf1")][Fc("0x115")][Fc("0xe7")]({isUndoable:!1},(()=>{o[Fc("0xdb")]()})),o[Fc("0xc")](),this._suggestions[Fc("0x9b")](o.id),this[Fc("0xce")][Fc("0x9b")](o),t}))}return o}[Fc("0x113")](t,e){const n=this[Fc("0xf1")][Fc("0x9d")][Fc("0x7a")](Fc("0x94")),o=this._suggestions[Fc("0x7a")](t);if(this[Fc("0x47")]&&this[Fc("0x47")][Fc("0x2f")])if(o[Fc("0xc0")]){const o=n[Fc("0x11e")](as(this.editor[Fc("0x3d")],"PENDING_ACTION_SUGGESTION"));this[Fc("0x47")][Fc("0x2f")](t,e).then((()=>{n[Fc("0xaf")](o)}))}else o.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this[Fc("0x47")]||!this._adapter[Fc("0x67")])throw new e.CKEditorError(Fc("0xa6"),this);return this[Fc("0x47")].getSuggestion(t)}[Fc("0x8b")](t){const{id:e,type:n,subType:o,authorId:r}=this[Fc("0x10")](t),s=this[Fc("0x77")][Fc("0x7a")](e)||this._createSuggestion(n,o,e,r);switch(this._checkSuggestionCorrectness(s,n,o,r),this._suggestionState[Fc("0x7a")](s)){case Fc("0x25"):this._getSuggestionData(e)[Fc("0x109")]((t=>{let n=Promise[Fc("0xcb")]();t[Fc("0x95")]&&(n=this._commentsRepository[Fc("0x62")]({channelId:this.editor[Fc("0x26")][Fc("0x7a")](Fc("0xe4")),threadId:e})),n[Fc("0x109")]((()=>{this[Fc("0x5e")](t)[Fc("0xc0")]=!0}))})),this[Fc("0xce")][Fc("0x120")](s,"markerReady");break;case Fc("0x8c"):this[Fc("0x113")](e,{state:Fc("0xee")});case Fc("0x43"):this[Fc("0xce")][Fc("0x120")](s,"ready"),this.fire("suggestionLoaded",s);break;case"ready":this[Fc("0x12b")](Fc("0x4b"),s)}return s[Fc("0xf4")](t),s}[Fc("0xda")](t){const e=Array[Fc("0x111")](t)[Fc("0xb5")]((t=>!t[Fc("0x126")])),n=this[Fc("0xeb")]({skipNotAttached:!0})[Fc("0xb5")]((t=>!t.isMultiRange)),o=n.filter((e=>!t[Fc("0x6f")](e))),r=new Map(n[Fc("0xc7")]((t=>[t,this._suggestionFactory[Fc("0xc5")](t.type,t[Fc("0x72")],"chain")]))),s=new Map(n.map((t=>[t,t[Fc("0x59")]()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[Fc("0xe0")];t++)a(e[t],o,0);for(let t=0;t<e[Fc("0xe0")];t++){const n=e[t];!x[Fc("0x6f")](n)&&n[Fc("0xde")]&&(n.previous[Fc("0x5b")]===n&&(n[Fc("0xde")][Fc("0x5b")]=null),n[Fc("0xde")]=null),!i[Fc("0x6f")](n)&&n[Fc("0x5b")]&&(n[Fc("0x5b")].previous===n&&(n.next[Fc("0xde")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[Fc("0xe0")];o++){const n=c(t,e[o]);n&&(n[0][Fc("0x5b")]=n[1],n[1][Fc("0xde")]=n[0],i[Fc("0x11e")](n[0]),x.add(n[1]))}}function c(t,e){if(t[Fc("0x84")].id!==e[Fc("0x84")].id)return null;const n=r[Fc("0x7a")](t)(t,e,s.get(t),s[Fc("0x7a")](e));return n&&r[Fc("0x7a")](e)(t,e,s[Fc("0x7a")](t),s[Fc("0x7a")](e))?n[1][Fc("0x65")]&&n[1][Fc("0x65")].length?null:n:null}}[Fc("0x2a")](t){const e=Array[Fc("0x111")](t),n=this[Fc("0xeb")]({skipNotAttached:!0}),o=n[Fc("0xb5")]((e=>!t.has(e))),r=new Map(e[Fc("0xc7")]((t=>[t,this[Fc("0x63")][Fc("0xc5")](t[Fc("0xae")],t[Fc("0x72")],Fc("0x60"))]))),s=new Map(n[Fc("0xc7")]((t=>[t,t[Fc("0x42")]()])));for(let t=0;t<e[Fc("0xe0")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Fc("0xe0")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Fc("0xae")]!==e[Fc("0xae")]||o[Fc("0x84")].id!==e[Fc("0x84")].id||o[Fc("0x72")]!==e[Fc("0x72")])continue;const x=r[Fc("0x7a")](e),a=s.get(e),c=s.get(o),l=e[Fc("0x65")]&&e[Fc("0x65")][Fc("0xe0")],u=o[Fc("0x65")]&&o[Fc("0x65")][Fc("0xe0")];if(!l&&x(c,a))return t[Fc("0xc3")](o,e),s.delete(e),!0;if(!u&&x(a,c))return t[Fc("0xc3")](e,o),s[Fc("0x9b")](o),!0}return!1}}[Fc("0xc3")](t,e){if(t[Fc("0x126")])for(const n of e[Fc("0x42")]())t[Fc("0x5d")](n);else{const n=e[Fc("0x59")]()[Fc("0xa9")];this._setSuggestionRange(t,this[Fc("0xd7")][Fc("0x23")](t.getFirstRange().start,n))}e[Fc("0xbb")]()}}(0,e.mix)(Pc,e.EmitterMixin);class Dc{constructor(t){this[Fc("0x34")]=t,this[Fc("0xd7")]=t[Fc("0x115")],this[Fc("0x58")]=new Map,this._defaultCallbacks=new Map,this[Fc("0x1c")]()}[Fc("0xf6")](t,e,n,o,r,s){return new xs(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this.getSuggestionCallback(t,e,Fc("0x4c"))(...n),onDiscard:(...n)=>this[Fc("0xc5")](t,e,Fc("0xdb"))(...n)})}[Fc("0x12d")](t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[Fc("0x120")](r,o)}[Fc("0xc5")](t,e,n){const o=t+":"+e+":"+n;return this[Fc("0x58")][Fc("0x7a")](o)||this[Fc("0x57")][Fc("0x7a")](t+":"+n)}[Fc("0x1c")](){const t=()=>{},e=t=>{t[Fc("0x97")](((t,e)=>t[Fc("0xd3")][Fc("0x66")](e[Fc("0xd3")])?1:-1)),this[Fc("0xd7")].change((e=>{for(const n of t){let t;t=n.end.isAtEnd&&n.end[Fc("0x1")]==n[Fc("0xd3")][Fc("0x1f")]?e[Fc("0xcf")](n.start[Fc("0x1f")],"on"):e[Fc("0xcf")](n),this[Fc("0xd7")][Fc("0xa2")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Fc("0xd7")][Fc("0x33")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t.map((t=>(jc(t)&&(t=this[Fc("0xd7")][Fc("0x23")](t[Fc("0xa9")])),t)))[Fc("0xb5")]((t=>Fc("0x31")!==t[Fc("0x106")].rootName));if(s[Fc("0xe0")]<1)return;const x=Array[Fc("0x111")](this._model[Fc("0xb8")][Fc("0xb")].getRanges()).map((t=>i.LiveRange[Fc("0x7")](t)));n[Fc("0x22")](s);for(const t of this[Fc("0x34")][Fc("0x55")][Fc("0x55")]())t[Fc("0x18")]();r.push({forceDefaultExecution:!0}),this[Fc("0x34")][Fc("0x50")](o,...r);const a=x[Fc("0xb5")]((t=>Fc("0x31")!=t[Fc("0x106")].rootName));a[Fc("0xe0")]>0&&n[Fc("0x22")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Fc("0xe0")]&&1==e.length&&t[0][Fc("0xa9")][Fc("0x137")](e[0].start),r=(t,e,n,o)=>Vc(t,e,n,o,this[Fc("0xd7")])?[t,e]:Vc(e,t,o,n,this[Fc("0xd7")])?[e,t]:null;this[Fc("0x57")][Fc("0x120")](Fc("0x15"),t),this[Fc("0x57")][Fc("0x120")]("insertion:discard",e),this[Fc("0x57")][Fc("0x120")](Fc("0x90"),o),this[Fc("0x57")].set(Fc("0x12f"),r),this[Fc("0x57")][Fc("0x120")](Fc("0xb0"),e),this._defaultCallbacks.set(Fc("0x35"),t),this[Fc("0x57")][Fc("0x120")](Fc("0x20"),o),this._defaultCallbacks[Fc("0x120")](Fc("0xa3"),r),this._defaultCallbacks[Fc("0x120")](Fc("0x2e"),n),this[Fc("0x57")][Fc("0x120")](Fc("0xbc"),t),this._defaultCallbacks[Fc("0x120")](Fc("0xfa"),o),this[Fc("0x57")].set("formatInline:chain",t),this[Fc("0x57")][Fc("0x120")](Fc("0xd6"),n),this._defaultCallbacks[Fc("0x120")](Fc("0xb7"),t),this._defaultCallbacks[Fc("0x120")](Fc("0x87"),o),this[Fc("0x57")][Fc("0x120")]("formatBlock:chain",t)}}function Bc(t,e,n){for(const o of e[Fc("0x1")][Fc("0x40")]({includeSelf:!0,parentFirst:!0})){if(o[Fc("0x106")]==o)return!1;if(!n[Fc("0x105")](o))return!1;if(t[Fc("0xdf")](o)||t[Fc("0xb6")](o))return!0}}function jc(t){return t[Fc("0xa9")][Fc("0x1")]==t[Fc("0xd3")][Fc("0x1f")]&&t.end[Fc("0x2")]}function Uc(t,e,n,o){const r=t=>!t[Fc("0x130")].is("textProxy")&&!o[Fc("0xdf")](t.item),s=t[Fc("0xd3")][Fc("0x0")](r),i=t[Fc("0xa9")][Fc("0x0")](r,{direction:Fc("0x1e")});return!(t[Fc("0xd3")][Fc("0x137")](s)&&t[Fc("0xa9")][Fc("0x137")](i)||(s[Fc("0x66")](i)?n[Fc("0xfb")](e,{range:n[Fc("0x23")](s,i)}):n[Fc("0xb3")](e),0))}function Gc(t){return(0,s.hashObject)(t)}function Hc(t){const e=t.start[Fc("0x1f")];return e&&e.is("element")}function Wc(t,e){const n=e[Fc("0xcc")][Fc("0xdf")](t)||e.schema[Fc("0xf7")](t);return e[Fc("0x23")](e.createPositionAt(t,Fc("0x8")),n?e.createPositionAfter(t):e.createPositionAt(t,Fc("0xa9")))}function Vc(t,e,n,o,r){if(n[Fc("0xa9")].isEqual(o.start))return!0;if(t.type!=e[Fc("0xae")])return!1;if(!n.end.isTouching(o[Fc("0xd3")]))return!1;const s=r[Fc("0x23")](n[Fc("0xa9")],o[Fc("0xd3")]).getWalker();for(const t of s)if([Fc("0xfe"),Fc("0x6")].includes(t.type)&&r[Fc("0xcc")].isLimit(t[Fc("0x130")]))return!1;return!0}const zc=["PendingActions","_editor","remove","PENDING_ACTION_SUGGESTION","add","locale","stopListening","_acceptCommand","unbind","_removePendingAction","_setPendingAction","get","_pendingAction","listenTo","destroy","commands","commentThreadController","bind","model","isDirty","discardSuggestion","isEnabled","execute","view","acceptSuggestion","plugins"];var Kc,qc;Kc=zc,qc=475,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return zc[t-=0]};class $c{constructor(t,e,n,o){this[Xc("0xb")]=e,this[Xc("0x10")]=n,this[Xc("0x9")]=o,this[Xc("0x14")]=t,this._acceptCommand=t[Xc("0x8")][Xc("0x4")]("acceptSuggestion"),this._discardCommand=t[Xc("0x8")][Xc("0x4")](Xc("0xd")),this[Xc("0x10")][Xc("0xa")](Xc("0xe")).to(this._acceptCommand),this[Xc("0x5")]=null,n[Xc("0xc")]&&this[Xc("0x3")](),this[Xc("0x6")](n,Xc("0x11"),(()=>this[Xc("0x11")]())),this[Xc("0x6")](n,Xc("0xd"),(()=>this.discardSuggestion())),this[Xc("0x6")](n,"change:isDirty",(()=>{n.isDirty?this[Xc("0x3")]():this[Xc("0x2")]()}))}[Xc("0x11")](){this[Xc("0x0")][Xc("0xf")](this.model.id)}discardSuggestion(){this._discardCommand.execute(this[Xc("0xb")].id)}[Xc("0x7")](){this[Xc("0x10")][Xc("0x1")](Xc("0xe")),this[Xc("0x19")](),this[Xc("0x9")].destroy(),this[Xc("0x5")]&&this[Xc("0x2")]()}_setPendingAction(){const t=as(this[Xc("0x14")][Xc("0x18")],Xc("0x16"));this[Xc("0x5")]=this[Xc("0x14")][Xc("0x12")].get(Xc("0x13"))[Xc("0x17")](t)}[Xc("0x2")](){this[Xc("0x14")][Xc("0x12")].get("PendingActions")[Xc("0x15")](this[Xc("0x5")]),this._pendingAction=null}}(0,e.mix)($c,e.ObservableMixin);const Qc=["editorConfig","cancel","disabledSubmit","commentsListView","CommentView","addComment","commentThreadInputView","isEnabled","descriptionParts","element","assign","destroy","isActive","value","isDirty","_createCommentThreadInputView","focus","fire","isReadOnly","length","updateComment","_config","disableComments","_createCommentViews","_localUser","hasDirtyComment","commentThread","removeComment","_model","commentInputView","bind","set","delegate","authoredAt","submit","editor","locale"];var Jc,Zc;Jc=Qc,Zc=318,function(t){for(;--t;)Jc.push(Jc.shift())}(++Zc);const Yc=function(t,e){return Qc[t-=0]};class tl extends r.View{constructor(t,e,n,o){super(t),this[Yc("0x12")]=null,this[Yc("0x15")]=null,this[Yc("0x9")](Yc("0x1b"),!1),this[Yc("0x9")](Yc("0xb"),e[Yc("0xb")]),this[Yc("0x8")]("authoredAt").to(e),this[Yc("0x9")](Yc("0x17"),[]),this[Yc("0x9")](Yc("0x1d"),!1),this[Yc("0x9")](Yc("0x16"),!1),this[Yc("0x6")]=e,this[Yc("0x2")]=n,this[Yc("0x24")]=o,o[Yc("0x0")]?this[Yc("0x9")](Yc("0x22"),1):this[Yc("0x1")]()}[Yc("0x1f")](){this[Yc("0x18")][Yc("0x1f")]()}[Yc("0x1a")](){this[Yc("0x12")]&&this[Yc("0x12")][Yc("0x1a")](),this[Yc("0x15")]&&this[Yc("0x15")][Yc("0x1a")](),super[Yc("0x1a")]()}[Yc("0x1")](){const{CommentsListView:t}=this[Yc("0x24")];this.commentsListView=new t(this[Yc("0xe")],this[Yc("0x6")][Yc("0x4")],Object[Yc("0x19")]({CommentView:this[Yc("0x24")][Yc("0x13")]},this[Yc("0x24")])),this.commentsListView[Yc("0xa")](Yc("0x5")).to(this),this[Yc("0x12")][Yc("0xa")](Yc("0x23")).to(this),this[Yc("0x12")][Yc("0x8")](Yc("0x1b")).to(this),this[Yc("0x9")]("length",this[Yc("0x12")][Yc("0x22")]+1),this[Yc("0x8")](Yc("0x22")).to(this[Yc("0x12")],Yc("0x22"),(t=>t+1)),this[Yc("0x15")]=this[Yc("0x1e")](),this.on(Yc("0x5"),(()=>this[Yc("0x1f")]())),this[Yc("0x8")]("isDirty").to(this[Yc("0x12")],Yc("0x3"),this[Yc("0x15")][Yc("0x7")],Yc("0x1c"),((t,e)=>t||!!e))}[Yc("0x1e")](){const{CommentThreadInputView:t}=this[Yc("0x24")],e=new t(this.locale,this[Yc("0x2")],this[Yc("0x24")][Yc("0xf")]),n=e[Yc("0x7")];return e[Yc("0x8")]("showInput").to(this,Yc("0x1b"),this[Yc("0x6")].commentThread,Yc("0x21"),n,Yc("0x1c"),((t,e,n)=>!!n||t&&!e)),n.on(Yc("0xc"),((t,e)=>{this[Yc("0x20")](Yc("0x14"),e),n[Yc("0xd")].setData("")})),n.on(Yc("0x10"),(()=>this[Yc("0x1f")]())),n[Yc("0x8")](Yc("0x11")).to(this._model[Yc("0x4")],Yc("0x21")),e}}const el=["extendTemplate","split","innerText","value","isEnabled","discardButton","getExternalSuggestionNote","importWord","color","setTemplate","ck-comment__external","ck-comment__info-time","source","ck-suggestion__main","isActive","ck-annotation","userView",'" title="',"span","commentThread","_descriptionElement","getUserViewNotificationText","change:description","cancel","type","ck-annotation__main","locale","name","acceptButton","acceptSuggestion","<p>","ck-suggestion--discard","ck-suggestion--disabled-comments","ck-annotation__user","disableComments","commentThreadInputView","element","push","Accept suggestion","ck-suggestion__user","EXTERNAL_IMPORT_WORD_AVATAR","isExternal","@external","fire","bind","ck-suggestion--accept","ck-annotation__info-time","children","author","</span>","createElement","_model","innerHTML","check",'<span class="ck-suggestion-type">',"attributes","Discard suggestion",".ck-annotation__content-wrapper","set","join","title","_config","commentsListView","</p>","descriptionParts","ck-suggestion__info-name","render","ck-annotation__info-name","ck-annotation__actions","getTemplate","div","content","_createButton","ck-suggestion-","authoredAt","EXTERNAL_IMPORT_WORD_SUGGESTION","creator"];var nl,ol;nl=el,ol=215,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const rl=function(t,e){return el[t-=0]};class sl extends tl{constructor(e,n,o,r){super(e,n,o,r),this.set("type",""),this[rl("0x3c")]("type").to(this,rl("0x3"),(t=>t&&t[0]?t[0].type:"")),this[rl("0x3c")]("description").to(this,"descriptionParts",this,rl("0x1e"),((t,e)=>{let n="";for(const e of t)n+=rl("0x2e")+il(e[rl("0xa")],e[rl("0x18")])+rl("0x2");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[rl("0x24")]=null,this[rl("0x2c")]=this._createButton(as(e,rl("0x36")),t.icons[rl("0x45")],rl("0x3d"),rl("0x2d"),"sw"),this[rl("0x15")]=this[rl("0xb")](as(e,rl("0x48")),t.icons[rl("0x27")],rl("0x2f"),"discardSuggestion","sw"),this[rl("0x20")]=new s.UserView(e,this[rl("0x43")][rl("0x40")],this[rl("0x25")]()),this.userView[rl("0x10")]({attributes:{class:[rl("0x37"),rl("0x31")]}}),this[rl("0x19")](this[rl("0x8")]())}[rl("0x8")](){const t=this.bindTemplate,e=[{tag:rl("0x9"),attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:rl("0x22"),children:[{text:this[rl("0x20")].name}],attributes:{class:[rl("0x4"),rl("0x6")]}},{tag:"time",attributes:{datetime:t.to(rl("0xd")),class:[rl("0x1b"),rl("0x3e")]},children:[{text:t.to("authoredAt",(t=>this[rl("0x0")].formatDateTime(t)))}]}]},{tag:rl("0x9"),attributes:{class:["ck-suggestion__actions",rl("0x7")]},children:[this[rl("0x2c")],this[rl("0x15")]]},{tag:rl("0x9"),attributes:{class:["ck-annotation__content-wrapper"]}}];this[rl("0x43")][rl("0x39")]&&e[rl("0x35")]({tag:"div",attributes:{class:[rl("0x1a")]},children:[{text:this[rl("0x16")]()}]});const n={tag:rl("0x9"),attributes:{class:["ck-suggestion-wrapper",t.if(rl("0x1e"),"ck-suggestion-wrapper--active"),t.to(rl("0x28"),(t=>rl("0xc")+t)),this._config[rl("0x32")]&&rl("0x30")],"data-suggestion-id":this._model.id,"data-thread-id":this[rl("0x43")][rl("0x23")].id,"data-author-id":this._model[rl("0x40")].id,tabindex:-1},children:[{tag:rl("0x9"),attributes:{class:["ck-suggestion",rl("0x1f")]},children:[this[rl("0x20")],{tag:"div",attributes:{class:[rl("0x1d"),rl("0x29")]},children:e}]}]};return this[rl("0x1")]&&this[rl("0x33")]&&n[rl("0x3f")][rl("0x35")](this[rl("0x1")],this[rl("0x33")]),n}[rl("0x5")](){super[rl("0x5")](),this[rl("0x24")]=this[rl("0x34")].querySelector(rl("0x49")),this[rl("0x24")].innerHTML=this.description,this.on(rl("0x26"),((t,e,n)=>{this._descriptionElement[rl("0x44")]=n}))}[rl("0xb")](t,e,n,o,s){const i=new r.ButtonView(this.locale);return i[rl("0x4a")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[rl("0x10")]({attributes:{class:n}}),i.on("execute",(()=>{this[rl("0x3b")](o,this[rl("0x43")].id)})),i[rl("0x3c")](rl("0x14")).to(this),i}[rl("0x16")](){return rl("0x17")===this[rl("0x43")][rl("0x47")][rl("0x3a")].source?as(this[rl("0x2a")],rl("0xe")):as(this[rl("0x2a")],"EXTERNAL_SUGGESTION")}[rl("0x25")](){return this._model.isExternal?rl("0x17")===this[rl("0x43")][rl("0x47")][rl("0x3a")][rl("0x1c")]?as(this[rl("0x2a")],rl("0x38"),this._model.creator.name):as(this[rl("0x2a")],"EXTERNAL_AVATAR",this._model[rl("0xf")][rl("0x2b")]):null}}function il(t,e){let n="";return n+=t[rl("0x11")]("*").map(((t,e)=>e%2!=0?rl("0x46")+xl(t)+rl("0x41"):xl(t)))[rl("0x4b")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[rl("0x13")]+rl("0x21")+e[rl("0x4c")]+'"></span>'),n}function xl(t){const e=document[rl("0x42")]("span");return e[rl("0x12")]=t,e[rl("0x44")]}const al=["getJoined","mainView","change:activeAnnotations","isOn","createAnnotationView","suggestionChanged","trackChanges.disableComments","_createUIButton","Annotations","CommentView","suggestion-","hasSuggestion","editor","define","activeMarkers","trackChanges","_annotationViews","createCommentThreadController","map","view","isEnabled","locale","from","length","suggestionLoaded","destroy","_updateController","getRanges","_handleSuggestionControllerDelayed","addComment","comments.editorConfig","head","remove","CommentsRepository","filter","suggestionUnloaded","pluginName","_suggestionToController","Accept all selected suggestions","TrackChangesEditing","push","CommentsUI","value","refreshSelectedViews","init","TrackChangesUI","execute","addSourceCollector","getDescriptions","focus","componentFactory","bind","editing","Accept all suggestions","config","trackChanges.SuggestionThreadView","Track changes","isMultiRange","set","keys","discardButton","get","model","acceptAllSuggestions","comments.maxThreadTotalWeight","listenTo","_handleControllerBuffer","unbind","Discard all selected suggestions","getAllAdjacentSuggestions","commandName","acceptSelectedSuggestions","innerView","delete","_descriptionFactory","createAnnotation","discardSelectedSuggestions","_refreshActiveMarkers","actionView","some","commentThread","stopListening","_disableComments","comments.maxCommentsWhenCollapsed","registerAnnotation","buttonView","EditorAnnotations","separator","plugins","reduce","button","change:previous","add","isInContent","descriptionParts","comments.maxCommentCharsWhenCollapsed","type","_viewToController","_destroyController","commands","arrowView","getMarkerNames","getSuggestion","activeAnnotations"];var cl,ll;cl=al,ll=323,function(t){for(;--t;)cl.push(cl.shift())}(++ll);const ul=function(t,e){return al[t-=0]};class dl extends t.Plugin{static get requires(){return[Pc,s.Users,ul("0x16"),ul("0x65"),ul("0x4b")]}static get[ul("0x19")](){return ul("0x22")}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this._annotationViews=new Map,this[ul("0x37")]=new Map;const e=this[ul("0x1")][ul("0x2b")];e[ul("0x2")](ul("0x2c"),sl),e[ul("0x2")](ul("0x63"),!1),this[ul("0x47")]=e[ul("0x32")](ul("0x63"))}[ul("0x11")](t,e){0===this[ul("0x37")].size&&setTimeout((()=>{for(const[t,e]of this[ul("0x37")]){const n=this[ul("0x1a")].has(t);n||e?n&&e&&this[ul("0x57")](t):this._initializeController(t)}this[ul("0x1")].plugins.get(ul("0x4b"))[ul("0x20")](),this[ul("0x42")](),this[ul("0x37")].clear()}),10),this._handleControllerBuffer[ul("0x2f")](t,e)}[ul("0x21")](){const t=this[ul("0x1")],e=t[ul("0x4d")][ul("0x32")](Pc),n=t.plugins[ul("0x32")]("Annotations"),o=t[ul("0x4d")][ul("0x32")](ul("0x4b")),r=t.plugins.get("CommentsRepository");t.ui[ul("0x27")][ul("0x51")]("trackChanges",(t=>this[ul("0x64")](t))),o[ul("0x24")]((()=>{const t=[];for(const[e,n]of Array[ul("0xb")](this[ul("0x1a")])){const o=e.getAllAdjacentSuggestions(),r=[];for(const t of o){if(!t[ul("0x52")])continue;if(t[ul("0x2e")]){r[ul("0x1d")](...t[ul("0x10")]());continue}const e=t.getFirstRange();if(r[ul("0xc")]>0){const t=r[0][ul("0x5d")](e);if(t){r[0]=t;continue}}r[ul("0x1d")](e)}t[ul("0x1d")]([n[ul("0x8")],r])}return t})),this[ul("0x36")](e,ul("0xd"),((t,e)=>{this[ul("0x36")](e,ul("0x50"),((t,n,o,r)=>{e.isInContent&&(null==o?(this._updateController(r[ul("0x14")]),this._handleSuggestionControllerDelayed(e,!1)):(this._updateController(o[ul("0x14")]),this[ul("0x11")](e,!0)))})),null===e.previous?this[ul("0x11")](e,!1):this._updateController(e[ul("0x14")])})),this.listenTo(e,ul("0x18"),((t,e,n)=>{this[ul("0x46")](e,"change:previous"),this[ul("0x37")].delete(e);const o=n?n[ul("0x14")]:e,r=this[ul("0x1a")][ul("0x32")](o);null!==n&&this[ul("0xf")](o),null===n&&r&&this[ul("0x57")](e)})),this[ul("0x36")](e,ul("0x62"),((t,e)=>{this[ul("0xf")](e)})),this[ul("0x36")](n,ul("0x5f"),(()=>{this[ul("0x42")]()})),this[ul("0x36")](r,ul("0x12"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[ul("0x0")](n))return;const r=e[ul("0x5b")](n);this[ul("0x1a")][ul("0x32")](r)[ul("0x8")][ul("0x26")]()}),{priority:"lowest"})}[ul("0x42")](){const t=this[ul("0x1")][ul("0x4d")].get("Annotations"),e=this.editor.plugins[ul("0x32")](Pc),n=Array[ul("0xb")](t[ul("0x5c")],(t=>t[ul("0x3d")]))[ul("0x17")]((t=>this[ul("0x56")].has(t))),o=[];for(const t of n){const e=this._viewToController[ul("0x32")](t)[ul("0x33")][ul("0x3a")]();o[ul("0x1d")](...e[ul("0x4e")](((t,e)=>[...t,...e[ul("0x5a")]()]),[]))}e[ul("0x3")]=o}[ul("0x64")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[ul("0x1")][ul("0x58")].get(ul("0x4")),s=as(t,ul("0x2d"));n[ul("0x4a")].set({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[ul("0x4a")][ul("0x28")](ul("0x60")).to(o,ul("0x1f")),n.buttonView.on("execute",(()=>{o[ul("0x23")](),this[ul("0x1")][ul("0x29")][ul("0x8")][ul("0x26")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:s,commandName:"trackChanges"}},{type:ul("0x4c")},{type:ul("0x4f"),model:{withText:!0,label:as(t,ul("0x2a")),commandName:ul("0x34")}},{type:ul("0x4f"),model:{withText:!0,label:as(t,ul("0x1b")),commandName:ul("0x3c")}},{type:ul("0x4f"),model:{withText:!0,label:as(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:ul("0x4f"),model:{withText:!0,label:as(t,ul("0x39")),commandName:ul("0x41")}}];for(const t of x){const e={type:t[ul("0x55")]};if(t[ul("0x33")]){const n=new r.Model(t.model),o=this[ul("0x1")].commands[ul("0x32")](n[ul("0x3b")]);n[ul("0x28")](ul("0x60"),"isEnabled").to(o,ul("0x1f"),ul("0x9")),e[ul("0x33")]=n}i[ul("0x51")](e)}(0,r.addListToDropdown)(n,i);const a=x[ul("0x17")]((t=>null!=t[ul("0x33")]))[ul("0x7")]((t=>this.editor[ul("0x58")][ul("0x32")](t[ul("0x33")][ul("0x3b")])));return n[ul("0x4a")][ul("0x43")].unbind(ul("0x9")),n[ul("0x4a")].arrowView[ul("0x38")](ul("0x9")),n[ul("0x4a")][ul("0x43")][ul("0x28")]("isEnabled").to(o,"isEnabled"),n[ul("0x4a")][ul("0x59")][ul("0x28")](ul("0x9")).toMany(a,"isEnabled",((...t)=>t[ul("0x44")]((t=>t)))),n.on(ul("0x23"),(t=>{this[ul("0x1")][ul("0x23")](t.source[ul("0x3b")]),this.editor[ul("0x29")][ul("0x8")][ul("0x26")]()})),n}_initializeController(t){const e=this[ul("0x1")],n=e.config,o=e[ul("0x4d")][ul("0x32")](ul("0x65")),r=e.plugins[ul("0x32")]("CommentsRepository"),i=e[ul("0x4d")].get(ul("0x4b")),x=e[ul("0x4d")].get(s.Users).me,a=n[ul("0x32")](ul("0x4")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[ul("0x32")](ul("0x1e"));let u,d;this._annotationViews.has(t.id)?(d=this._annotationViews[ul("0x32")](t.id),u=d.mainView):(u=new a(e.locale,t,x,{disableComments:this[ul("0x47")],editorConfig:n[ul("0x32")](ul("0x13")),maxCommentsWhenCollapsed:n[ul("0x32")](ul("0x48")),maxThreadTotalWeight:n[ul("0x32")](ul("0x35")),maxCommentCharsWhenCollapsed:n[ul("0x32")](ul("0x54")),formatDateTime:(0,s.getDateTimeFormatter)(n.get(ul("0xa"))),CommentView:n[ul("0x32")]("comments")[ul("0x66")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on(ul("0x23"),(()=>{e.editing.view.focus()})),u[ul("0x31")].on(ul("0x23"),(()=>{e[ul("0x29")][ul("0x8")][ul("0x26")]()})),d=o[ul("0x61")](this[ul("0x1")][ul("0xa")],u),d[ul("0x28")]("isDirty").to(u,"isDirty"),d.bind(ul("0xc")).to(u),d[ul("0x28")](ul("0x55")).to(u,ul("0x55"),(t=>ul("0x67")+t)),this[ul("0x5")].set(t.id,d));const g=r[ul("0x6")](t[ul("0x45")],u),m=new $c(e,t,u,g),f=t[ul("0x3a")]()[ul("0x17")]((t=>t.isInContent));u.descriptionParts=e[ul("0x4d")][ul("0x32")](ul("0x1c"))[ul("0x3f")].getDescriptions(f),this[ul("0x1a")][ul("0x2f")](t,m),this._viewToController[ul("0x2f")](u,m);const h=o[ul("0x40")]({view:d,target:()=>{const n=[],o=t[ul("0x3a")]()[ul("0x17")]((t=>t[ul("0x52")]));for(const t of o)n[ul("0x1d")](...t.getMarkers());return(0,s.getAllMarkersDomElementsSorted)(e[ul("0x29")],n)},type:()=>ul("0x67")+m[ul("0x8")][ul("0x55")]});o[ul("0x51")](h),i[ul("0x49")](h)}[ul("0x57")](t){const e=this.editor[ul("0x4d")][ul("0x32")](ul("0x65")),n=this[ul("0x1a")][ul("0x32")](t),o=n.view,r=e.getByInnerView(o);r&&e[ul("0x15")](r),this._suggestionToController[ul("0x3e")](t),this[ul("0x56")][ul("0x3e")](o),n[ul("0xe")]()}[ul("0xf")](t){if(!t[ul("0x52")]||!this[ul("0x1a")].has(t))return;const e=this.editor[ul("0x4d")].get(ul("0x1c")),n=this[ul("0x1a")][ul("0x32")](t),o=t[ul("0x3a")]();n.view[ul("0x53")]=e[ul("0x3f")][ul("0x25")](o)}[ul("0xe")](){for(const t of this[ul("0x1a")][ul("0x30")]())this[ul("0x57")](t);for(const t of this[ul("0x5")].values())t[ul("0x5e")][ul("0xe")]();super[ul("0xe")]()}}var gl,ml,fl=["getSuggestions","getSuggestion","Comments","get","pluginName","addSuggestionData","addSuggestion","adapter","plugins","editor"];gl=fl,ml=350,function(t){for(;--t;)gl.push(gl.shift())}(++ml);var hl=function(t,e){return fl[t-=0]};class pl extends t.Plugin{static get requires(){return[Pc,dl,hl("0x2")]}static get[hl("0x4")](){return"TrackChanges"}set[hl("0x7")](t){this[hl("0x9")].plugins[hl("0x3")](Pc)[hl("0x7")]=t}get[hl("0x7")](){return this[hl("0x9")].plugins.get(Pc)[hl("0x7")]}[hl("0x6")](t){return this[hl("0x9")][hl("0x8")][hl("0x3")](Pc)[hl("0x5")](t)}getSuggestions(t){return this[hl("0x9")][hl("0x8")][hl("0x3")](Pc)[hl("0x0")](t)}[hl("0x1")](t){return this[hl("0x9")][hl("0x8")][hl("0x3")](Pc)[hl("0x1")](t)}}const bl=["TrackChangesData","discardAllSuggestions","requires","acceptAllSuggestions","CommentsRepository","string","_adapter","config","appendChild","from","TrackChangesEditing","filter","WebSocketGateway","get","trackChangesData","plugins","addUser","every","getUser","WordCount","create","map","data","has","find","context","includes","reduce","result","pluginName","useAnonymousUser","editorCreator","addSuggestionData","Autosave","editor","Pagination","execute","track-changes-data-invalid-editor-creator","concat","constructor","function","users","name","extraPlugins","TrackChangesDataGetter","createDocumentFragment","model","set","Users","destroy"];var El,_l;El=bl,_l=137,function(t){for(;--t;)El.push(El.shift())}(++_l);const Tl=function(t,e){return bl[t-=0]},Cl=["initialData",Tl("0x26"),"toolbar"],yl=[Tl("0x19"),"RevisionTracker",Tl("0x2e"),Tl("0x20"),Tl("0x30")];class kl extends t.Plugin{static get[Tl("0xf")](){return[Pc]}static get[Tl("0x2a")](){return Tl("0xd")}init(){const t=this.editor;if(t[Tl("0x14")].define("trackChangesData.editorCreator",(e=>t[Tl("0x2")][Tl("0x21")]("",e))),Tl("0x3")!=typeof t[Tl("0x14")][Tl("0x1a")](Tl("0x1b"))[Tl("0x2c")])throw new e.CKEditorError(Tl("0x0"))}getDataWithAcceptedSuggestions(t){return vl(this[Tl("0x2f")],!0,t)}getDataWithDiscardedSuggestions(t){return vl(this[Tl("0x2f")],!1,t)}}class Al extends t.Plugin{static get[Tl("0x2a")](){return Tl("0x7")}init(){this[Tl("0x29")]="end",this.editor.plugins.get(Tl("0x11"))._adapter={getCommentThread:()=>new Promise((()=>{}))},this.editor[Tl("0x1c")][Tl("0x1a")](Tl("0x17"))[Tl("0x13")]=null}}async function vl(t,e,n){const o=function(t){const e={};for(const n of t[Tl("0x14")].names())Cl[Tl("0x27")](n)||(e[n]=t[Tl("0x14")].get(n));const n=t[Tl("0x2")].builtinPlugins||[],o=e[Tl("0x6")]||[];delete e[Tl("0x6")];const r=n.concat(e.plugins)[Tl("0x1")](o)[Tl("0x22")]((t=>Tl("0x12")==typeof t?n[Tl("0x25")]((e=>e[Tl("0x2a")]==t)):t)),s=Array[Tl("0x16")](new Set(r)),i=new Map;return e[Tl("0x1c")]=s[Tl("0x18")]((t=>Rl(t,i))),e[Tl("0x1c")].push(Al),e[Tl("0x1c")].push(Pc),e}(t),r=document[Tl("0x8")](),s=t[Tl("0x14")][Tl("0x1a")](Tl("0x1b")).editorCreator,i=await s(o,(()=>function(t){const e=document.createElement("div");return t[Tl("0x15")](e),e}(r)));!function(t,e){const n=t[Tl("0x9")].document.getRootNames()[Tl("0x28")](((e,n)=>(e[n]=t.data[Tl("0x1a")]({rootName:n}),e)),{}),o=t[Tl("0x1c")][Tl("0x1a")]("Users")[Tl("0x4")].map((t=>({id:t.id}))),r=t[Tl("0x1c")][Tl("0x1a")](Tl("0x17")).getSuggestions({skipNotAttached:!0,toJSON:!0}),s=e[Tl("0x1c")].get(Tl("0xb")),i=e[Tl("0x1c")][Tl("0x1a")]("TrackChangesEditing");for(const t of o)s[Tl("0x1f")](t.id)||s[Tl("0x1d")](t);s.me||s[Tl("0x2b")]();for(const t of r)i[Tl("0x2d")](t);e.data[Tl("0xa")](n)}(t,i),i[Tl("0x31")](Tl(e?"0x10":"0xe"));const x=i[Tl("0x23")][Tl("0x1a")](n);return await i[Tl("0xc")](),x}function Rl(t,e){const n=Tl("0x3")==typeof t?t[Tl("0x2a")]||t[Tl("0x5")]:t;if(e[Tl("0x24")](n))return e[Tl("0x1a")](n);if(e.set(n,!0),n&&yl[Tl("0x27")](n))return e[Tl("0xa")](n,!1),!1;if(!t[Tl("0xf")])return e[Tl("0xa")](n,!0),!0;const o=t[Tl("0xf")][Tl("0x1e")]((t=>Rl(t,e)));return e[Tl("0xa")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|